joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a654
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x29c], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a24
xor eax, eax
push ebp
push 0x49a7a6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ecx, ecx
push ebp
push 0x49a77e
push dword fs:[ecx]
mov dword fs:[ecx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x298]
mov edx, dword [ebp - 4]
call fcn.004094b0
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x49a767
mov edx, dword [eax + 0xc]
test edx, edx
je 0x49a761
mov ebx, dword [edx]
test ebx, ebx
je 0x49a75b
lea eax, [ebp - 0x29c]
push eax
xor eax, eax
mov al, byte [ebx]
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 0x2b8], 0
xor eax, eax
mov al, byte [ebx + 1]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
xor eax, eax
mov al, byte [ebx + 2]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
xor eax, eax
mov al, byte [ebx + 3]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
lea edx, [ebp - 0x2bc]
mov ecx, 3
mov eax, 0x49a7c0
call fcn.00409b8c
mov edx, dword [ebp - 0x29c]
mov eax, esi
call fcn.004045d8
mov byte [ebp - 5], 1
jmp 0x49a76b
mov byte [ebp - 5], 0
jmp 0x49a76b
mov byte [ebp - 5], 0
jmp 0x49a76b
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a785
call sub.wsock32.dll_WSACleanup
ret
Function at 0x49a7cc
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a24
xor eax, eax
push ebp
push 0x49a8f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x20
call fcn.00403034
lea eax, [ebp - 4]
call fcn.00404a8c
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
push 1
push 0
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x49a8d2
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x2000
mov eax, dword [ebp - 0x14]
call fcn.0040279c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x49a8b9
test eax, eax
jne 0x49a8d2
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jl 0x49a834
inc esi
lea edx, [ebp - 0x40]
mov eax, dword [ebx + 0x14]
call fcn.00409610
push dword [ebp - 0x40]
push 0x49a910
lea edx, [ebp - 0x44]
mov eax, dword [ebx + 0x18]
call fcn.00409610
push dword [ebp - 0x44]
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.004048fc
mov edx, dword [ebp - 0x3c]
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 0x20
dec esi
jne 0x49a876
jmp 0x49a834
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x49a8d2
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0xc]
call fcn.004027bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a8fc
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.004045a8
lea eax, [ebp - 4]
call fcn.00404584
ret
Function at 0x49a914
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a24
xor eax, eax
push ebp
push 0x49aa43
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x20
call fcn.00403034
lea eax, [ebp - 4]
call fcn.00404a8c
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x3c], 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x49aa2d
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0x2000
mov eax, dword [ebp - 0x18]
call fcn.0040279c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
push ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x49aa14
test eax, eax
jne 0x49aa2d
mov esi, ebx
mov edi, dword [ebp - 0x14]
dec edi
test edi, edi
jl 0x49a987
inc edi
mov edx, dword [0x499fa8]
mov eax, 0xc
call fcn.004054a8
mov ebx, eax
mov eax, ebx
mov edx, dword [esi + 0x14]
call fcn.00404774
lea eax, [ebx + 4]
mov edx, dword [esi + 0x18]
call fcn.00404774
lea eax, [ebx + 8]
mov edx, dword [esi + 0x1c]
call fcn.00404774
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, ebx
call fcn.00416aec
add esi, 0x20
dec edi
jne 0x49a9cb
jmp 0x49a987
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x49aa2d
mov byte [ebp - 9], 1
mov eax, dword [ebp - 0x10]
call fcn.004027bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49aa4a
lea eax, [ebp - 4]
call fcn.00404584
ret
Function at 0x49aa54
Capabilities:
Enumerate network shares

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffc0
mov ebp, eax
mov byte [esp], 0
mov eax, dword [ebp]
mov edx, dword [eax]
call dword [edx + 8]
mov dl, 1
mov eax, dword [0x414388]
call fcn.00403764
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
push 0
push 2
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x49ac15
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0x2000
mov eax, dword [esp + 0xc]
call fcn.0040279c
mov dword [esp + 4], eax
lea eax, [esp + 0xc]
push eax
mov ebx, dword [esp + 8]
push ebx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x49ac15
test eax, eax
jne 0x49ac15
mov edi, ebx
mov eax, dword [esp + 8]
dec eax
test eax, eax
jl 0x49ab00
inc eax
mov dword [esp + 0x1c], eax
mov edx, edi
mov eax, dword [esp + 0x18]
call fcn.00416aec
add edi, 0x20
dec dword [esp + 0x1c]
jne 0x49aaec
mov eax, dword [esp + 0x14]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x49ac15
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x49abfd
inc eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
call fcn.00416c48
mov esi, eax
lea edi, [esp + 0x20]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
push 2
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x49ac15
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0x2000
mov eax, dword [esp + 0xc]
call fcn.0040279c
mov dword [esp + 4], eax
lea eax, [esp + 0xc]
push eax
mov ebx, dword [esp + 8]
push ebx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x49abe1
test eax, eax
jne 0x49ac15
mov edi, ebx
mov esi, dword [esp + 8]
dec esi
test esi, esi
jl 0x49ab66
inc esi
mov edx, dword [0x499fa8]
mov eax, 0xc
call fcn.004054a8
mov ebx, eax
mov eax, ebx
mov edx, dword [edi + 0x14]
call fcn.00404774
mov eax, dword [ebp]
mov edx, ebx
call fcn.00416aec
add edi, 0x20
dec esi
jne 0x49abb3
jmp 0x49ab66
mov eax, dword [esp + 0x14]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x49ac15
inc dword [esp + 0x10]
dec dword [esp + 0x1c]
jne 0x49ab2f
mov byte [esp], 1
mov eax, dword [esp + 4]
call fcn.004027bc
mov dl, 1
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
call dword [ecx - 4]
mov al, byte [esp]
add esp, 0x40
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a28e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a24
xor eax, eax
push ebp
push 0x4a298a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4a8db4]
mov eax, dword [eax + 0x608]
call fcn.00488128
test eax, eax
je 0x4a296f
push 5
push 0
push 0
push 0x4a29a0
mov eax, dword [0x4a8db4]
mov eax, dword [eax + 0x608]
call fcn.00488128
mov eax, dword [eax + 0x24]
lea edx, [ebp - 0xc]
call fcn.00408b90
push dword [ebp - 0xc]
push 0x4a29ac
push dword [ebp - 4]
lea eax, [ebp - 8]
mov edx, 4
call fcn.004048fc
mov eax, dword [ebp - 8]
call fcn.00404a34
push eax
push 0
mov eax, dword [0x4a8db4]
call fcn.0044b54c
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2991
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004045a8
ret
Function at 0x411172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0x4111a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x4111a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0x411dff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.00411f04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.00411f20
push edx
push dword [ebp + 0x10]
push eax
call fcn.00411eec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00411f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00411ecb
push ecx
push dword [ebp + 8]
call fcn.00411f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00411f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00411ecb
push ecx
push dword [ebp + 8]
call fcn.00411f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00411f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00411ecb
push ecx
push dword [ebp + 8]
call fcn.00411f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00411f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00411ecb
cmp ecx, 0x2b
jne 0x411e0f
leave
ret 0xc

Function at 0x4134b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0x413544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0x5610
push 0
call dword [eax + 0x20]
test eax, eax
je 0x4135d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0x5610
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0x5610
call fcn.004133fa
push 0x5610
push dword [ebp + 0xc]
call fcn.004111a8
test eax, eax
jne 0x4135b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0x5610
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.004135dd
test eax, eax
je 0x4135d6
jmp 0x413574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0x4135d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0x41360b
Capabilities:
Terminate process

Disassembly:
call fcn.00413618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x402fe4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45c020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40307c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40305c
xor eax, eax
push ebp
push 0x403055
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 0x403098
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 0x40305c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45c020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45c020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d48
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45e04c], 0
je 0x403da9
cmp word [0x45e220], 0xd7b2
jne 0x403d71
cmp dword [0x45e228], 0
jbe 0x403d71
mov eax, 0x45e21c
call dword [0x45e238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45c06c
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 0x403dd0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45c030], 0
jne 0x403dc5
push 0
push 0x45c064
push 0x45c06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405cec
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 0x405d52
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.00404134
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ba8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d3c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d59
lea eax, [ebp - 0x10]
call fcn.00403ec4
ret

Function at 0x40add4
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 0x40ae0d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fb4
jmp 0x40ae16
mov eax, ebx
mov edx, esi
call fcn.00403f18
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ae20
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 0x40ae41
mov al, byte [esp]
jmp 0x40ae43
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b4c8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b340
mov eax, dword [0x45d178]
cmp byte [eax], 0
je 0x40b544
mov eax, dword [0x45cf7c]
call fcn.00402a14
call fcn.004028ac
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.00408614
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 0x40b58c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b57a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45cf28]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45e668]
call fcn.004051e4
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 0x40be34
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 0x40bf0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403f5c
lea eax, [ebp - 8]
call fcn.004043d4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404384
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bef4
mov eax, ebx
call fcn.00402744
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40beed
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.00404384
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bed7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bf1c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bed7
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 0x40bef4
mov eax, dword [ebp - 0x10]
call fcn.00402764
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf11
lea eax, [ebp - 8]
call fcn.00403ec4
ret

Function at 0x40c414
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 0x40c478
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.00404134
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040813c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c47f
lea eax, [ebp - 0xc]
call fcn.00403ec4
ret

Function at 0x41db6c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45e888
cmp dword [edi], 0
jne 0x41dbe8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45e884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45c3fc
mov ecx, 2
call fcn.00402940
mov edx, 0x41db44
lea eax, [esi + 5]
call fcn.0041db64
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041db64
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 0x41dbbd
mov dword [0x45e884], 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 0x41f124
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 0x41f12a
ret
Function at 0x421578
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 0x4215c9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4215b0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4215a0
jmp 0x4215c9
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 0x4215b1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ca70
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 0x42c9bc
call sub.user32.dll_EnumWindows
ret

Function at 0x42cb90
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 0x42cc0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042c5f0
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 0x42cbb5
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042c1f0
cmp dword [ebp - 4], 0
je 0x42cbf7
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404384
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 0x42cc14
lea eax, [ebp - 4]
call fcn.00403ec4
ret

Function at 0x42f910
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x45eb58], 0
je 0x42fa5f
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x45d110]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42fa5f
mov eax, dword [0x45eb5c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x45eb58]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42fa2e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x45eb58]
call fcn.00417100
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42fa26
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42fa26
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42fa26
mov eax, dword [ebp - 0x14]
call fcn.004384d8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42fa26
push ebp
call fcn.0042f8cc
pop ecx
test al, al
jne 0x42fa26
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42f9e2
mov eax, dword [ebp - 0x14]
call fcn.00436fd0
dec eax
jle 0x42fa26
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403370
cmp byte [ebp - 1], 0
je 0x42fa26
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42fa26
mov edx, dword [ebp - 0x14]
mov eax, dword [0x45eb5c]
call fcn.0042f098
inc edi
dec ebx
jne 0x42f975
mov eax, dword [0x45eb5c]
cmp dword [eax + 8], 0
jle 0x42fa46
mov eax, dword [0x45eb5c]
call fcn.0042f128
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42fa5f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042f734
pop ecx
test al, al
jne 0x42fa5f
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret