joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471c6c
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe48
cmp dword [0x488aa0], 0
ja 0x471cf3
lea eax, [esp + 0x28]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, esp
mov edx, 0x28
call fcn.00406114
mov dword [esp + 4], 0x471af0
mov eax, 0x471cfc
mov dword [esp + 0x24], eax
mov eax, dword [0x4874f0]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
push esp
call sub.user32.dll_RegisterClassA
push 0
mov eax, dword [0x4874f0]
mov eax, dword [eax]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x80000000
push 0
mov eax, dword [esp + 0x4c]
push eax
push 0x80
call sub.user32.dll_CreateWindowExA
mov dword [0x488aa0], eax
call fcn.00406730
mov dword [0x488aa4], eax
add esp, 0x1b8
ret

Function at 0x471f08
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [ebx + 0xc], 0
jne 0x471faa
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebx + 0xc], eax
mov word [esp], 2
push edi
call sub.wsock32.dll_htons
mov word [esp + 2], ax
test esi, esi
jne 0x471f49
xor eax, eax
mov dword [esp + 4], eax
jmp 0x471f5a
mov eax, esi
call fcn.004039d0
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.wsock32.dll_bind
inc eax
jne 0x471f7d
mov eax, dword [ebx + 0xc]
push eax
call sub.wsock32.dll_closesocket
xor eax, eax
mov dword [ebx + 0xc], eax
jmp 0x471faa
call fcn.00406730
mov dword [ebx + 8], eax
push 0x28
push 0x400
mov eax, dword [0x488aa0]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.wsock32.dll_WSAAsyncSelect
cmp word [ebx + 0x26], 0
je 0x471faa
mov edx, ebx
mov eax, dword [ebx + 0x28]
call dword [ebx + 0x24]
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x472038
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
jmp 0x47206a
push 0
push esi
push edi
push eax
call sub.wsock32.dll_send
cmp eax, 0xffffffff
jne 0x472064
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x472075
mov byte [ebx + 0x10], 1
jmp 0x47206a
sub esi, eax
add eax, edi
mov edi, eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x472075
test esi, esi
ja 0x472043
pop edi
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
push 4
push 0x3000
push dword [0x41c004]
mov dword [esp + 0x14], 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push section..data
push str.payload_addr
push 0x41c018
mov edi, eax
call fcn.004010c0
push edi
push str.exec_mem_addr
push str.__20s_:_0x__016p_n
call fcn.004010c0
push dword [0x41c004]
push section..data
push edi
call fcn.00401d70
add esp, 0x24
lea eax, [esp + 8]
push eax
push 0x20
push dword [0x41c004]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push str._nHit_me__n
mov esi, eax
call fcn.004010c0
add esp, 4
call fcn.00404333
test esi, esi
je 0x4010a0
push 0
push 0
push 0
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
xor eax, eax
pop esi
pop ecx
ret

Function at 0x4017bb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4017fa
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4017fa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4017fa
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4017fa
cmp dword [ecx + 0x74], 0xe
jbe 0x4017fa
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407aa6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416608
push 0x416600
push str.FlsAlloc
push 0x1f
call fcn.00407965
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407ada
push dword [ebp + 8]
mov ecx, esi
call dword [0x415128]
call esi
jmp 0x407ae0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407b24
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416618
push 0x416610
push str.FlsGetValue
push 0x21
call fcn.00407965
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407b5b
push dword [ebp + 8]
mov ecx, esi
call dword [0x415128]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407b63
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416620
push 0x416618
push str.FlsSetValue
push 0x22
call fcn.00407965
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407b9d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x415128]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40b282
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40b31f
push ebx
push esi
call fcn.0040b24b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040b1df
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b2cc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b31e
push edi
push eax
call fcn.00408416
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b2ec
call fcn.004077f8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b31d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b1df
add esp, 0x20
test eax, eax
jne 0x40b30b
push edi
call fcn.004077f8
jmp 0x40b313
push ebx
call fcn.004077f8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40d907
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x41d028]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40d947
cmp byte [ebx], 0xa
jne 0x40d947
or byte [edi + eax + 0x28], 4
jmp 0x40d94c
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x40da4b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40da2e
inc eax
cmp dl, 0xd
je 0x40d978
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40d99e
cmp eax, ecx
jae 0x40d9ac
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x40d960
jmp 0x40da4b
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40da29
cmp dword [ebp - 0x10], 0
je 0x40da29
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x41d028]
test byte [eax + edi + 0x28], 0x48
je 0x40da03
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40d9ee
mov byte [esi], dl
jmp 0x40d9ff
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x41d028]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40da4b
cmp byte [ebp - 1], 0xa
jne 0x40da12
cmp esi, ebx
jne 0x40da12
mov byte [esi], 0xa
jmp 0x40da4a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411477
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40da4b
mov byte [esi], 0xd
jmp 0x40da4a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x41d028]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40da48
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40da4b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40da54
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x41d028]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40da9a
cmp word [ebx], dx
jne 0x40da9a
or byte [eax + edi + 0x28], 4
jmp 0x40da9f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x40dc02
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x40dbe2
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40dae0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40db16
cmp eax, edx
jae 0x40db24
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x40dabb
jmp 0x40dc02
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40dbdd
cmp dword [ebp - 0x18], 0
je 0x40dbdd
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x41d028]
test byte [eax + edi + 0x28], 0x48
je 0x40dbb3
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x40db77
mov word [esi], cx
jmp 0x40dbae
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x41d028]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x41d028]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x41d028]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40dc02
pop eax
cmp word [ebp - 4], ax
jne 0x40dbc3
cmp esi, ebx
jne 0x40dbc3
mov word [esi], ax
jmp 0x40dbff
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00411477
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40dc02
push 0xd
pop eax
jmp 0x40dbbe
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x41d028]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40dbfc
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40dc02
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x6caa1130
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x6051071c
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402944
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402981
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4029a1
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404864
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b68
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004045e4
test esi, esi
jne 0x402b9e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004046d4
jmp 0x402bbc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a1c
mov edi, eax
test esi, esi
je 0x402bbc
cmp dword [ebx], 0
je 0x402bbc
dec esi
jmp 0x402ba5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403714
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x475020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40378c
xor eax, eax
push ebp
push 0x403785
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4037c8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40378c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x475020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x475020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404468
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47804c], 0
je 0x4044c9
cmp word [0x478220], 0xd7b2
jne 0x404491
cmp dword [0x478228], 0
jbe 0x404491
mov eax, 0x47821c
call dword [0x478238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x475090
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4044f0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x475030], 0
jne 0x4044e5
push 0
push 0x475088
push 0x475090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406640
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4066a6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404864
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004032d8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406690
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066ad
lea eax, [ebp - 0x10]
call fcn.004045e4
ret

Function at 0x4090a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ab4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4090c1
test al, 0x10
jne 0x4090c5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c020
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c059
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004046d4
jmp 0x40c062
mov eax, ebx
mov edx, esi
call fcn.00404638
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c06c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c08d
mov al, byte [esp]
jmp 0x40c08f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c860
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c6d8
mov eax, dword [0x477458]
cmp byte [eax], 0
je 0x40c8dc
mov eax, dword [0x4771f4]
call fcn.00402f40
call fcn.004028c4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409324
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c924
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c912
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47718c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x478668]
call fcn.00405b38
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d1c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d296
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040467c
lea eax, [ebp - 8]
call fcn.00404b04
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ab4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d280
mov eax, ebx
call fcn.0040275c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d279
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ab4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d263
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d2a8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d263
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d280
mov eax, dword [ebp - 0x10]
call fcn.0040277c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d29d
lea eax, [ebp - 8]
call fcn.004045e4
ret

Function at 0x40d714
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d778
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404864
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408d08
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d77f
lea eax, [ebp - 0xc]
call fcn.004045e4
ret

Function at 0x41fe50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47888c
cmp dword [edi], 0
jne 0x41fecc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x478888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x475420
mov ecx, 2
call fcn.004029dc
mov edx, 0x41fe28
lea eax, [esi + 5]
call fcn.0041fe48
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fe48
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41fea1
mov dword [0x478888], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x420614
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404ab4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42066c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4775c4]
mov dl, 1
mov eax, dword [0x4201cc]
call fcn.0040ca20
call fcn.00404020
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004202d4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x421bec
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x421bf2
ret

Function at 0x424034
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x424085
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42406c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42405c
jmp 0x424085
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x42406d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42cbd0
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x42cb1c
call sub.user32.dll_EnumWindows
ret

Function at 0x42ccf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x42cd6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042c750
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42cd15
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042c350
cmp dword [ebp - 4], 0
je 0x42cd57
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404ab4
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cd74
lea eax, [ebp - 4]
call fcn.004045e4
ret

Function at 0x42efbc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x42f00c]
test si, 4
je 0x42efd0
or bl, 1
test si, 8
je 0x42efda
or bl, 4
test si, 1
je 0x42efe4
or bl, 8
test si, 2
je 0x42efee
or bl, 0x10
test si, 0x10
je 0x42eff8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42f007
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x42f010
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x42f048]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42f029
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42f038
or bl, 4
test esi, 0x20000000
je 0x42f043
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret