joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ae808
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4ae8c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404988
mov eax, dword [0x4e28f0]
cmp byte [eax], 0
je 0x4ae877
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404ce8
mov eax, dword [ebx]
call fcn.00404b14
push eax
mov eax, dword [ebx]
call fcn.00404b04
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404b14
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404ce8
jmp 0x4ae8a9
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.004099c0
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404af4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae8c9
lea eax, [ebp - 0x3f0]
call fcn.0040427c
ret

Function at 0x4b19f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4b1a4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi + 0x2c8], ecx
mov dword [esi + 0x2cc], edx
mov eax, dword [edx + 0x4c]
mov dword [esi + 0x2bc], eax
mov eax, dword [eax + 0x44]
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0x2c8]
mov eax, esi
call fcn.004b1a54
mov eax, dword [esi + 0x2c8]
mov edx, dword [eax + 0x30]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1a51
ret

Function at 0x4b72e8
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov ebx, eax
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_IsWindow
test eax, eax
jne 0x4b731e
jmp 0x4b73c4
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esp
push eax
push 0
push 0x419
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
test esi, 2
jbe 0x4b7362
mov edx, dword [ebx + 0x4c]
cmp dword [edx + 0x168], 0
je 0x4b7362
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + 0x168]
mov eax, dword [eax + 0x14]
jmp 0x4b7372
mov edx, dword [ebx + 0x4c]
mov edx, dword [edx + 0x164]
test edx, edx
je 0x4b7372
mov eax, dword [edx + 0x14]
test eax, eax
je 0x4b738b
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.004b3cdc
jmp 0x4b73c4
mov dl, 1
mov eax, dword [0x425694]
call fcn.004275d8
mov esi, eax
mov edx, dword [edi + 0x10]
mov eax, esi
call fcn.004280f0
mov eax, dword [ebx + 0x4c]
mov edx, dword [eax + 0xbc]
mov eax, dword [esi + 0x10]
call fcn.00427188
mov edx, esp
mov eax, esi
call fcn.00427cdc
mov eax, esi
call fcn.00403468
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4b98dc
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.0046b934
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x279], 0
xor edx, edx
mov eax, ebx
call fcn.0046506c
pop ebx
ret
Function at 0x4becc0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4bed7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404988
mov eax, dword [0x4e28f0]
cmp byte [eax], 0
je 0x4bed2f
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404ce8
mov eax, dword [ebx]
call fcn.00404b14
push eax
mov eax, dword [ebx]
call fcn.00404b04
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404b14
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404ce8
jmp 0x4bed61
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.004099c0
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404af4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bed81
lea eax, [ebp - 0x3f0]
call fcn.0040427c
ret

Function at 0x4bef1c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov ebp, edx
mov esi, eax
mov edx, ebp
mov eax, dword [esi + 0x3c]
call dword [esi + 0x38]
cmp dword [ebp + 0xc], 0
jne 0x4befd5
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.0047c238
mov ebx, eax
mov dx, word [ebp + 4]
mov eax, esi
call fcn.004bec04
mov edi, eax
test edi, edi
je 0x4bef7b
mov al, byte [0x4befe0]
cmp al, bl
jne 0x4bef7b
mov edx, edi
mov eax, esi
call fcn.004beb3c
mov dword [ebp + 0xc], 1
mov byte [esi + 0x31], 1
jmp 0x4befd5
cmp byte [esi + 0x161], 2
jne 0x4befa6
mov eax, dword [ebp + 8]
push eax
movzx ecx, word [ebp + 4]
mov eax, dword [0x4e2d6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x50]
mov edx, 0xb006
call fcn.00466300
test eax, eax
jne 0x4befd5
jmp 0x4befd0
mov eax, dword [0x4e2c08]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
cmp eax, dword [esi + 0x128]
je 0x4befd0
mov edx, dword [ebp + 8]
push edx
movzx ecx, word [ebp + 4]
mov edx, dword [0x4e2c08]
mov edx, 0xb006
call fcn.00466300
xor eax, eax
mov dword [ebp + 0xc], eax
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c4f50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 0x80]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x84]
cdq
cmp edx, dword [esp + 4]
jne 0x4c4f84
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4c4fc0
jmp 0x4c4f88
pop edx
pop eax
jge 0x4c4fc0
mov eax, dword [0x4e2d6c]
mov eax, dword [eax]
mov dword [eax + 0x44], 2
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004bfdcc
mov eax, dword [ebx + 0xf4]
test eax, eax
je 0x4c4fe5
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x4c4fe5
cmp dword [ebx + 0x11c], 0
je 0x4c4fe5
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.00436c08
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x12c]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4cf6bc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4cf82d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x9c], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x4cf812
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.004099c0
mov dl, 1
mov eax, dword [0x4aae10]
call fcn.004aae68
mov edx, dword [ebp - 4]
mov dword [edx + 0x94], eax
mov dl, 1
mov eax, dword [0x418d34]
call fcn.00403438
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x98]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.004aaee4
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4cf80f
mov dl, 1
mov eax, dword [0x4abf88]
call fcn.004abff0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
mov edx, 0x4cf844
call fcn.004ab230
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404588
xor eax, eax
push ebp
push 0x4cf808
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.004ac2f0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004cf84c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cf80f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.00403468
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00403468
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00403468
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cf834
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004042a0
ret
Function at 0x4d2a94
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d2b4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404988
mov eax, dword [0x4e28f0]
cmp byte [eax], 0
je 0x4d2b03
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404ce8
mov eax, dword [ebx]
call fcn.00404b14
push eax
mov eax, dword [ebx]
call fcn.00404b04
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404b14
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404ce8
jmp 0x4d2b35
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.004099c0
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404af4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2b55
lea eax, [ebp - 0x3f0]
call fcn.0040427c
ret

Function at 0x4d2b5c
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.004099c0
add esp, 0x3ec
pop ebx
ret

Function at 0x4d4dec
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4d4edd
push dword fs:[eax]
mov dword fs:[eax], esp
lea ebx, [esi + 0x318]
mov dword [ebx], 0x58
mov eax, esi
call fcn.0046b934
mov dword [ebx + 4], eax
mov dword [ebx + 8], 1
mov dword [ebx + 0xc], 7
mov dword [ebx + 0x10], 0x4c8
mov eax, dword [0x4e2c08]
mov eax, dword [eax]
mov eax, dword [eax + 0x98]
call fcn.0042de8c
mov dword [ebx + 0x14], eax
mov eax, dword [0x4e2c08]
mov eax, dword [eax]
mov eax, dword [eax + 0x98]
call fcn.0042de8c
mov dword [ebx + 0x14], eax
lea eax, [ebp - 8]
lea edx, [esi + 0x37f]
call fcn.004044e0
mov ecx, dword [ebp - 8]
mov edx, dword [0x4e2cf0]
mov edx, dword [edx]
lea eax, [ebp - 4]
call fcn.00404588
mov eax, dword [ebp - 4]
call fcn.0040453c
mov edx, eax
dec edx
test edx, edx
jl 0x4d4e9b
inc edx
xor eax, eax
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + eax]
mov byte [ebx + eax + 0x18], cl
inc eax
dec edx
jne 0x4d4e8d
push 0
mov eax, dword [0x4e2c08]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, esi
call fcn.00481aa0
lea eax, [esi + 0x318]
push eax
push 0
call sub.shell32.dll_Shell_NotifyIconA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4ee4
lea eax, [ebp - 8]
mov edx, 2
call fcn.004042a0
ret
Function at 0x4d642c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4d649d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4e2740]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x4d6487
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.004d641c
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4d6228]
call fcn.004d64c4
mov dword [0x4e27a4], eax
mov eax, dword [ebp - 4]
call fcn.004d63cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d64a4
lea eax, [ebp - 8]
call fcn.00405f74
ret

Function at 0x4d71b4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.0040472c
xor eax, eax
push ebp
push 0x4d728f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040453c
add eax, 0x16
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov esi, eax
push esi
call sub.kernel32.dll_GlobalLock
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040453c
mov edx, eax
add edx, 0x16
mov eax, ebx
xor ecx, ecx
call fcn.00402e08
mov dword [ebx], 0x14
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.00419694
mov eax, dword [ebp - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ebx + 0xc], eax
xor eax, eax
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 4]
call fcn.0040453c
push eax
lea eax, [ebp - 4]
call fcn.00404794
mov edx, ebx
add edx, 0x14
pop ecx
call fcn.004029a8
push esi
call sub.kernel32.dll_GlobalUnlock
mov eax, edi
call fcn.0046b934
push eax
call sub.user32.dll_OpenClipboard
call sub.user32.dll_EmptyClipboard
push esi
push 0xf
call sub.user32.dll_SetClipboardData
call sub.user32.dll_CloseClipboard
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7296
lea eax, [ebp - 4]
call fcn.0040427c
ret
Function at 0x4da038
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
xor eax, eax
push ebp
push 0x4da0ca
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [0x4e2c08]
mov eax, dword [eax]
call fcn.004856c8
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00409504
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x4da0e0
call fcn.00404588
mov eax, dword [ebp - 4]
call fcn.004092e4
test al, al
jne 0x4da097
mov ecx, dword [ebp - 4]
mov edx, 0x4da0f4
mov eax, 0x4da108
call fcn.004a7050
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040473c
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da0d1
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004042a0
ret

Function at 0x4dbdf0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040472c
xor eax, eax
push ebp
push 0x4dbe38
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040473c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dbe3f
lea eax, [ebp - 4]
call fcn.0040427c
ret
Function at 0x40338c
Capabilities:
Query or enumerate registry value

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

Function at 0x404128
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46204c], 0
je 0x404189
cmp word [0x462220], 0xd7b2
jne 0x404151
cmp dword [0x462228], 0
jbe 0x404151
mov eax, 0x46221c
call dword [0x462238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46006c
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 0x4041b0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x460030], 0
jne 0x4041a5
push 0
push 0x460064
push 0x46006c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4061bc
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 0x406222
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.0040453c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f50
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40620c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406229
lea eax, [ebp - 0x10]
call fcn.004042cc
ret

Function at 0x40b350
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 0x40b389
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043bc
jmp 0x40b392
mov eax, ebx
mov edx, esi
call fcn.00404320
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40ba54
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b8bc
mov eax, dword [0x461228]
cmp byte [eax], 0
je 0x40bad0
mov eax, dword [0x46104c]
call fcn.00402dbc
call fcn.00402c54
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.00408b0c
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 0x40bb18
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bb06
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x460ff8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x462668]
call fcn.0040560c
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 0x40c3c8
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 0x40c49e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404364
lea eax, [ebp - 8]
call fcn.004047dc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040478c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c488
mov eax, ebx
call fcn.00402ac8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c481
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.0040478c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c46b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c4b0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c46b
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 0x40c488
mov eax, dword [ebp - 0x10]
call fcn.00402af8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4a5
lea eax, [ebp - 8]
call fcn.004042cc
ret

Function at 0x40ca04
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 0x40ca68
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.0040453c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408620
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca6f
lea eax, [ebp - 0xc]
call fcn.004042cc
ret

Function at 0x41e1ec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x462888
cmp dword [edi], 0
jne 0x41e268
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x462884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4603fc
mov ecx, 2
call fcn.00402ce8
mov edx, 0x41e1c4
lea eax, [esi + 5]
call fcn.0041e1e4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e1e4
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 0x41e23d
mov dword [0x462884], 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 0x41f72c
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 0x41f732
ret
Function at 0x421be8
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 0x421c39
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x421c20
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x421c10
jmp 0x421c39
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 0x421c21
pop ebx
mov esp, ebp
pop ebp
ret