joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b8b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b8e8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b8c9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b8d8
or bl, 4
test esi, 0x20000000
je 0x44b8e3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x451f90
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x451fa2
add esp, 0xfffffff0
call fcn.00403608
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cd44
mov eax, dword [0x45ff50]
mov dword [eax + 4], ebx
mov dword [eax], 0x452334
mov eax, dword [0x45ff5c]
mov dword [eax + 4], ebx
mov dword [eax], 0x452340
mov eax, ebx
call fcn.0045234c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41503c]
call fcn.004032b4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41503c]
call fcn.004032b4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41503c]
call fcn.004032b4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41503c]
call fcn.004032b4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41503c]
call fcn.004032b4
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44e768
push eax
push 0
push 0
mov eax, dword [0x4600ac]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e798]
call fcn.0041ffac
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e798]
call fcn.0041ffac
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e798]
call fcn.0041ffac
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045276c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452648
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452648
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452648
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4520df
call fcn.00403660
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45242c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4525d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4525b8
mov dl, 1
mov eax, dword [0x415458]
call fcn.004032b4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404034
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4525a7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00440390
test al, al
je 0x45259a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4525e8
lea eax, [ebp - 0x254]
call fcn.00408e8c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45259a
xor eax, eax
push ebp
push 0x452593
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x452620
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45257c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042a4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45257c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45259a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45249d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418f34
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4525de
lea eax, [ebp - 0x260]
call fcn.00404034
ret

Function at 0x452f0c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x461bb4]
cmp byte [eax + 0xa5], 0
jne 0x452f7d
cmp dword [0x461bcc], 0
jne 0x452f3e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x452ec8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x461bcc], eax
cmp dword [0x461bc8], 0
jne 0x452f59
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x461bc8], eax
cmp dword [0x461bd0], 0
jne 0x452f7d
push esp
push 0
push 0
push 0x452e6c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x461bd0], eax
pop edx
ret
Function at 0x453074
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45308b
add esp, 0xfffffff0
call fcn.00403608
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cd44
mov eax, dword [0x460098]
cmp word [eax + 2], 0
jne 0x4530b3
mov eax, dword [0x460098]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045474c
mov eax, dword [0x46014c]
cmp word [eax + 2], 0
jne 0x4530cd
mov eax, dword [0x46014c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454944
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41503c]
call fcn.004032b4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41503c]
call fcn.004032b4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41f318]
call fcn.00426c64
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x453254
mov eax, dword [0x45ffb4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427034
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x454ef4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45ffb4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c5dc
test eax, eax
je 0x4531c2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408880
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c604
test eax, eax
je 0x4531d6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004042a4
mov eax, dword [0x45fe84]
cmp byte [eax], 0
jne 0x45320a
mov eax, ebx
call fcn.0045337c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004550d0
mov eax, ebx
call fcn.00455a94
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45324a
call fcn.00403660
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4535fc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x461bb4]
cmp dword [eax + 0x30], 0
je 0x4536a6
cmp dword [ebx + 0x94], 0
jne 0x4536a0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45358c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4536a0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x453666
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4536a0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004173a4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453675
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454208
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45423d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404124
jmp 0x45424a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404088
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4552ac
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4552ed
mov eax, esi
call fcn.0043ba50
test al, al
je 0x4552ed
mov eax, dword [ebx + 0x84]
call fcn.0043b74c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4552ed
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b74c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x455fac
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4145c4]
call fcn.004049a0
xor eax, eax
push ebp
push 0x4560f0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45fd68], 0
jne 0x455fff
mov ecx, dword [0x45fe94]
mov dl, 1
mov eax, dword [0x4071cc]
call fcn.0040b888
call fcn.00403a70
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402cf8
mov eax, ebx
call fcn.00404870
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x456100
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405924
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404880
test eax, eax
jle 0x456097
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x456090
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004042bc
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004042a4
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00407fd8
test eax, eax
jne 0x456090
mov ebx, 0x15
jmp 0x45609c
mov ebx, 0x10
jmp 0x45609c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x45fd68]
call fcn.00455f04
mov eax, dword [ebp - 8]
call fcn.00455f04
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.0040593c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4560f7
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404058
lea eax, [ebp - 0x10]
mov edx, dword [0x4145c4]
call fcn.00404a70
ret
Function at 0x523c19
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00523c98
jae 0x523c25
xor ecx, ecx
call fcn.00523c98
jae 0x523c4f
xor eax, eax
call fcn.00523c98
jae 0x523c60
mov al, 0x10
call fcn.00523c98
adc al, al
jae 0x523c41
jne 0x523c8d
stosb byte es:[edi], al
jmp 0x523c26
call fcn.00523ca4
dec ecx
loop 0x523c6c
mov eax, ebp
call fcn.00523ca2
jmp 0x523c8e
lodsb al, byte [esi]
shr eax, 1
je 0x523cb4
adc ecx, 2
mov ebp, eax
jmp 0x523c8e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00523ca2
cmp eax, 0x7d00
jae 0x523c8c
cmp eax, 0x500
jae 0x523c8d
cmp eax, 0x7f
ja 0x523c8e
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x523c26
pop ebp
ret 8
Function at 0x402e84
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404550
test esi, esi
jne 0x402ebb
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404640
jmp 0x402edc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d20
mov dword [esp], eax
test esi, esi
je 0x402edc
cmp dword [ebx], 0
je 0x402edc
dec esi
jmp 0x402ec3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4035ac
Capabilities:
Query or enumerate registry value

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

Function at 0x404348
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49a04c], 0
je 0x4043a9
cmp word [0x49a220], 0xd7b2
jne 0x404371
cmp dword [0x49a228], 0
jbe 0x404371
mov eax, 0x49a21c
call dword [0x49a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49706c
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 0x4043d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x497030], 0
jne 0x4043c5
push 0
push 0x497064
push 0x49706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404504
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402ac0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49a04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4044cc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4064e0
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 0x406546
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.004047c0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403170
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406530
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40654d
lea eax, [ebp - 0x10]
call fcn.00404550
ret

Function at 0x40c464
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 0x40c49d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404640
jmp 0x40c4a6
mov eax, ebx
mov edx, esi
call fcn.004045a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cb68
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c9d0
mov eax, dword [0x49949c]
cmp byte [eax], 0
je 0x40cbe4
mov eax, dword [0x499174]
call fcn.00402fa0
call fcn.00402c4c
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.00409750
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 0x40cc2c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cc1a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4990fc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x49a668]
call fcn.00405930
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 0x40d4dc
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 0x40d5b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004045e8
lea eax, [ebp - 8]
call fcn.00404a60
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404a10
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d59c
mov eax, ebx
call fcn.00402ac0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d595
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.00404a10
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d57f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d5c4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d57f
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 0x40d59c
mov eax, dword [ebp - 0x10]
call fcn.00402af0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d5b9
lea eax, [ebp - 8]
call fcn.00404550
ret

Function at 0x40dbd8
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 0x40dc3c
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.004047c0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040901c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc43
lea eax, [ebp - 0xc]
call fcn.00404550
ret

Function at 0x41f6f4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41f741
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041f54c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41f759
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41f760
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041f54c
dec esi
jne 0x41f782
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x4208c4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49a8d4
cmp dword [edi], 0
jne 0x420940
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x49a8d0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4973fc
mov ecx, 2
call fcn.00402ce0
mov edx, 0x42089c
lea eax, [esi + 5]
call fcn.004208bc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004208bc
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 0x420915
mov dword [0x49a8d0], 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 0x421f84
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 0x421f8a
ret

Function at 0x424488
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 0x4244d9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4244c0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4244b0
jmp 0x4244d9
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 0x4244c1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42db78
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404a00
xor eax, eax
push ebp
push 0x42dca6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42dc79
xor eax, eax
push ebp
push 0x42dc72
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404810
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42dc47
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42dc36
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404810
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404a10
mov edx, ebx
pop ecx
call fcn.00402ce0
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dc3d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x499044]
mov dl, 1
mov eax, dword [0x407d3c]
call fcn.0040ccf8
call fcn.00403ee0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dcad
lea eax, [ebp - 4]
call fcn.00404550
ret