joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x402c00
pop dword [ebp - 0x44]
mov eax, 0xeac5fbba
add eax, 0x157a3046
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xc43a3bff
sub dword [ebp - 0x54], 0x75e7f6b4
mov dword [ebp - 0x50], 0xf7ffb671
sub dword [ebp - 0x50], 0xc5cc6a2c
mov dword [ebp - 0x4c], 0x312aacb9
add dword [ebp - 0x4c], 0x1b219775
mov dword [ebp - 0x48], 0x6fa23863
sub dword [ebp - 0x48], 0x6fa23863
lea eax, [ebp - 0x54]
push eax
mov eax, 0xa4feb1a
sub eax, 0xa0f6a8e
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xd99182ce
add dword [ebp - 0x54], 0x9ae0e688
mov dword [ebp - 0x50], 0xf1448bd9
add dword [ebp - 0x50], 0x5027d59c
mov dword [ebp - 0x4c], 0xaae6cdbc
add dword [ebp - 0x4c], 0xb8889eb0
mov dword [ebp - 0x48], 0xfd47ca68
add dword [ebp - 0x48], 0x2b83598
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x150bdc3c
add eax, 0xeb34a498
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x347ee
push 0
call eax
mov ecx, 0x7e31b3de
sub ecx, 0x7e3174a4
xor ebx, ebx
add ebx, eax
mov esi, 0x411000
add esi, dword [ebp - 0x44]
mov edi, 0xe71b82b1
add edi, 0xb508dcaf
sub dword [ebp - 0x34], 0xc0a4a5ba
mov edx, dword [esi]
sub dword [ebp - 0x24], 0xb57b20b0
xor edx, edi
add dword [ebp - 0x20], 0x59ded42d
mov dword [ebx], edx
sub dword [ebp - 0x14], 0x9506dbbc
add ebx, 4
add esi, 0x4b9a9238
sub esi, 0x4b9a9234
loop 0x402d1e
add eax, 0x1b802cfc
sub eax, 0x1b7f3d41
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7308ffd0
sub ecx, 0x72c8ffd0
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x100433fe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1004340d
pop dword [ebp - 8]
mov eax, 0xf526ff5a
sub eax, 0xe522cb4d
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x9830d83d
add dword [ebp - 0x18], 0xb6216d0e
mov dword [ebp - 0x14], 0x4f76d567
sub dword [ebp - 0x14], 0x1d438922
mov dword [ebp - 0x10], 0xba4b0ef0
sub dword [ebp - 0x10], 0x6dfecac2
mov dword [ebp - 0xc], 0x51bb9168
add dword [ebp - 0xc], 0xae446e98
lea eax, [ebp - 0x18]
push eax
mov eax, 0x8c2e76b0
sub eax, 0x7c2876a0
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x6ec9f00c
sub dword [ebp - 0x18], 0xfa5786b6
mov dword [ebp - 0x14], 0x47b33386
add dword [ebp - 0x14], 0xf9b92def
mov dword [ebp - 0x10], 0x5717cdf5
sub dword [ebp - 0x10], 0xf3a86189
mov dword [ebp - 0xc], 0x1099c6af
add dword [ebp - 0xc], 0xef663951
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x7df501d4
add eax, 0x9210fe40
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x55b4e
push 0
call eax
mov ecx, 0xb15a81d4
add ecx, 0x4ea5c5d4
mov edx, eax
mov ebx, 0x1008bc00
add ebx, dword [ebp - 8]
mov esi, 0x3bf863de
add esi, 0x9d12516a
add dword [ebp - 4], 0xb9adbe7a
mov edi, dword [ebx]
add dword [ebp - 4], 0xdb48ee40
sub edi, esi
xor dword [ebp - 4], 0xbbbd8e3c
mov dword [edx], edi
add edx, 4
add ebx, 4
loop 0x10043529
add eax, 0x3d0e4263
add eax, 0xc2f2cf10
mov ebx, eax
add eax, 0x853b0a3c
sub eax, 0x853b0a37
mov ecx, 0xbf8b6f00
add ecx, 0x50749100
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x401bbf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push edi
mov edi, eax
push str.PyImport_ImportModule
push edi
call esi
push str.PyObject_SetAttrString
push edi
mov ebx, eax
call esi
push str.PyObject_GetAttrString
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyCFunction_New
push edi
mov dword [ebp - 4], eax
call esi
push str.Py_BuildValue
push edi
mov dword [ebp - 8], eax
call esi
push str.PyArg_ParseTuple
push edi
mov dword [ebp - 0x10], eax
call esi
push str.PyErr_Format
push edi
mov dword [ebp - 0x14], eax
call esi
push str.PyLong_FromVoidPtr
push edi
mov dword [ebp - 0x18], eax
call esi
xor esi, esi
mov dword [ebp - 0x1c], eax
cmp ebx, esi
je 0x401cc6
cmp dword [ebp - 4], esi
je 0x401cc6
cmp dword [ebp - 0xc], esi
je 0x401cc6
cmp dword [ebp - 8], esi
je 0x401cc6
cmp dword [ebp - 0x10], esi
je 0x401cc6
cmp dword [ebp - 0x14], esi
je 0x401cc6
cmp dword [ebp - 0x18], esi
je 0x401cc6
push str.builtins
call ebx
mov edi, eax
pop ecx
cmp edi, esi
je 0x401ca2
push str.ValueError
push edi
call dword [ebp - 4]
push str.OSError
push edi
mov dword [0x43259c], eax
call dword [ebp - 4]
add esp, 0x10
push 6
mov dword [0x432924], eax
mov esi, 0x42f0e8
pop ebx
push 0
push esi
call dword [ebp - 8]
push eax
push dword [esi]
push edi
call dword [ebp - 0xc]
add esp, 0x14
add esi, 0x10
dec ebx
jne 0x401c8c
mov eax, dword [ebp - 0x10]
mov dword [0x432810], eax
mov eax, dword [ebp - 0x14]
mov dword [0x431544], eax
mov eax, dword [ebp - 0x18]
mov dword [0x431548], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x43258c], eax
xor eax, eax
jmp 0x401cc9
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401cce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x401cdd
pop dword [ebp - 0x48]
mov eax, 0xc41dce08
sub eax, 0xc3ddb12b
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3e98f
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x557b4b5a
add ecx, 0xaa84ffeb
xor esi, esi
add esi, eax
mov edi, 0x435400
add edi, dword [ebp - 0x48]
mov ebx, 0x833344a4
mov dword [ebp - 0x34], 0x6ac140d8
mov edx, dword [edi]
xor dword [ebp - 0x28], 0xc8a8194e
xor edx, ebx
sub dword [ebp - 0x1c], ecx
mov dword [esi], edx
add dword [ebp - 8], ecx
add esi, 0x788385da
sub esi, 0x788385d6
add edi, 0x8a2e4554
add edi, 0x75d1bab0
loop 0x401d2d
add eax, 0x424a1af6
add eax, 0xbdb704f1
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7d87bfa2
sub ecx, 0x7d47bfa2
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x41f993
Capabilities:
Parse pe header

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

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x100024be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x100024cd
pop dword [ebp - 0x28]
mov eax, 0x100024cd
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x4c0e7062
add dword [ebp - 0x38], 0x243d4e9
mov dword [ebp - 0x34], 0x83410536
add dword [ebp - 0x34], 0xaef2470f
mov dword [ebp - 0x30], 0x3c3748b5
add dword [ebp - 0x30], 0x1014fb79
mov dword [ebp - 0x2c], 0x258989c4
add dword [ebp - 0x2c], 0xda76763c
lea eax, [ebp - 0x38]
push eax
mov eax, 0xd4521ae2
add eax, 0x3bae2566
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x93639353
sub dword [ebp - 0x38], 0x1ef129fd
mov dword [ebp - 0x34], 0x83b2da65
add dword [ebp - 0x34], 0xbdb98710
mov dword [ebp - 0x30], 0x3c28302e
sub dword [ebp - 0x30], 0xd8b8c3c2
mov dword [ebp - 0x2c], 0x9c1d2923
sub dword [ebp - 0x2c], 0x9c1d2923
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x34bd7
push 0
call eax
mov ecx, 0x40c0
xor edi, edi
add edi, eax
mov esi, 0xa93e1241
add esi, 0x66c283bf
add esi, dword [ebp - 0x28]
mov ebx, 0x7fe18d94
sub ebx, 0x1502ab47
sub dword [ebp - 4], 0xc0e0d8a0
mov edx, dword [esi]
xor dword [ebp - 0x10], 0x317cded
add edx, ebx
xor dword [ebp - 0x18], 0x4c2b2e6f
mov dword [edi], edx
xor dword [ebp - 4], ecx
add edi, 4
add esi, 0xdf5f8b36
add esi, 0x20a074ce
loop 0x100025e1
add eax, 0xbc279320
add eax, 0x43d962b3
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x100032c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10007040]
jne 0x100032d2
repz ret
jmp fcn.100036ab
Function at 0x402c78
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 0x402cb5
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 0x402cd5
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004047ac
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402eb4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402f0d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.KERNEL32.DLL_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d50
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d50
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402ef7
inc ebx
jmp 0x402ee0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f14
lea eax, [ebp - 8]
call fcn.0040453c
ret

Function at 0x402f1c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040453c
test esi, esi
jne 0x402f53
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.0040462c
jmp 0x402f74
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d50
mov dword [esp], eax
test esi, esi
je 0x402f74
cmp dword [ebx], 0
je 0x402f74
dec esi
jmp 0x402f5b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x40363c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47b020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4036d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4036b4
xor eax, eax
push ebp
push 0x4036ad
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 0x4036f0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4036b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x47b020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47b020], ax
mov esp, ebp
pop ebp
ret
Function at 0x4043b8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47d048], 0
je 0x404419
cmp word [0x47d21c], 0xd7b2
jne 0x4043e1
cmp dword [0x47d224], 0
jbe 0x4043e1
mov eax, 0x47d218
call dword [0x47d234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47b06c
push 0xfffffffffffffff5
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 0x404440
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x47b030], 0
jne 0x404435
push 0
push 0x47b064
push 0x47b06c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x406160
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 0x4061c6
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004047ac
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403200
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4061b0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061cd
lea eax, [ebp - 0x10]
call fcn.0040453c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004049fc
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408b35
test al, 0x10
jne 0x408b39
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b6a4
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
test eax, eax
jle 0x40b6dd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040462c
jmp 0x40b6e6
mov eax, ebx
mov edx, esi
call fcn.00404590
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b6f0
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
test eax, eax
jle 0x40b711
mov al, byte [esp]
jmp 0x40b713
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c6c8
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 0x40c79e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004045d4
lea eax, [ebp - 8]
call fcn.00404a4c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004049fc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c788
mov eax, ebx
call fcn.00402a40
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c781
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.004049fc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c76b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c7b0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c76b
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 0x40c788
mov eax, dword [ebp - 0x10]
call fcn.00402a70
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c7a5
lea eax, [ebp - 8]
call fcn.0040453c
ret
Function at 0x40ccf0
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 0x40cd54
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004047ac
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.0040879c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd5b
lea eax, [ebp - 0xc]
call fcn.0040453c
ret

Function at 0x40db30
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.0040453c
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.004049fc
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40db75
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040462c
jmp 0x40db8e
mov edx, ebx
dec edx
mov eax, esi
call fcn.00404b88
push ebx
mov eax, dword [esi]
call fcn.004049fc
push eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41b3f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47d884
cmp dword [edi], 0
jne 0x41b470
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x47d880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47b46c
mov ecx, 2
call fcn.00402d10
mov edx, 0x41b3cc
lea eax, [esi + 5]
call fcn.0041b3ec
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b3ec
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 0x41b445
mov dword [0x47d880], 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 0x41c69c
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 0x41c6a2
ret

Function at 0x41ed14
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 0x41ed65
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41ed4c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41ed3c
jmp 0x41ed65
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 0x41ed4d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4373c0
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 0x43730c
call sub.user32.dll_EnumWindows
ret

Function at 0x4374e0
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 0x43755d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00436f40
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 0x437505
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00436b40
cmp dword [ebp - 4], 0
je 0x437547
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004049fc
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 0x437564
lea eax, [ebp - 4]
call fcn.0040453c
ret

Function at 0x43a9e8
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 [0x47db54], 0
je 0x43ab37
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x47c220]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x43ab37
mov eax, dword [0x47db58]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x47db54]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43ab06
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x47db54]
call fcn.00414724
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43aafe
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x43aafe
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43aafe
mov eax, dword [ebp - 0x14]
call fcn.00443680
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43aafe
push ebp
call fcn.0043a9a4
pop ecx
test al, al
jne 0x43aafe
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x43aaba
mov eax, dword [ebp - 0x14]
call fcn.004421b0
dec eax
jle 0x43aafe
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.004039d0
cmp byte [ebp - 1], 0
je 0x43aafe
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43aafe
mov edx, dword [ebp - 0x14]
mov eax, dword [0x47db58]
call fcn.0043a170
inc edi
dec ebx
jne 0x43aa4d
mov eax, dword [0x47db58]
cmp dword [eax + 8], 0
jle 0x43ab1e
mov eax, dword [0x47db58]
call fcn.0043a200
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43ab37
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043a80c
pop ecx
test al, al
jne 0x43ab37
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