joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445a8c
Capabilities:
Create http request
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
or dword [ebp - 0xc], 0xffffffff
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
push eax
push dword [ebx]
mov dword [ebp - 8], eax
mov edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
push eax
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x20], xmm0
call fcn.0044042d
mov esi, eax
test esi, esi
js 0x445bf5
xor eax, eax
push eax
push eax
push eax
push eax
push str.Burn
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
jne 0x445b1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x8f
push str.dlutil.cpp
call fcn.0043bd8c
jmp 0x445bf5
lea eax, [ebp - 4]
push eax
push 0x78
push str.DownloadTimeout
push str.WiXBurn
call fcn.00444e10
mov eax, dword [ebp - 4]
test eax, eax
je 0x445b68
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
imul eax, eax, 0x3e8
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 2
push edi
call esi
push 4
lea eax, [ebp - 4]
push eax
push 6
push edi
call esi
push 4
lea eax, [ebp - 4]
push eax
push 5
push edi
call esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebx + 8]
push dword [ebx + 4]
push eax
push edi
call fcn.004452f1
mov esi, eax
test esi, esi
js 0x445bf5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x14]
call fcn.0044539a
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebx + 8]
push dword [ebx + 4]
push eax
push edi
call fcn.00444fee
mov esi, eax
test esi, esi
js 0x445be6
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x445be6
xor ecx, ecx
cmp word [eax], cx
je 0x445be6
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0xc], 0xffffffff
je 0x445bf5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x445c02
push eax
call fcn.004408e7
test edi, edi
je 0x445c0d
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 8], 0
je 0x445c1b
push dword [ebp - 8]
call fcn.004408e7
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x447ff2
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], 4
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x20000005
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x448043
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x448043
push esi
push 0x23
push str.inetutil.cpp
call fcn.0043bd8c
jmp 0x44804f
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
and dword [edx + 4], 0
mov dword [edx], ecx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x448189
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x246c
call fcn.004490b0
mov eax, dword [0x468004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2430], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x242c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x241c], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x2428], eax
xor esi, esi
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x2424], eax
mov eax, dword [ebp + 0x1c]
push 0x3c
mov dword [ebp - 0x2420], eax
lea eax, [ebp - 0x246c]
push esi
push eax
call fcn.0042b200
add esp, 0xc
mov dword [ebp - 0x246c], 0x3c
cmp dword [ebp - 0x241c], esi
je 0x44821b
lea eax, [ebp - 0x410]
mov dword [ebp - 0x2458], 0x101
mov dword [ebp - 0x245c], eax
mov ecx, 0x81
cmp dword [ebp - 0x2424], esi
je 0x44823a
lea eax, [ebp - 0x108]
mov dword [ebp - 0x244c], ecx
mov dword [ebp - 0x2450], eax
cmp dword [ebp - 0x2420], esi
je 0x448254
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x2444], ecx
mov dword [ebp - 0x2448], eax
mov ecx, 0x801
test ebx, ebx
je 0x44826f
lea eax, [ebp - 0x1414]
mov dword [ebp - 0x243c], ecx
mov dword [ebp - 0x2440], eax
test edi, edi
je 0x448285
lea eax, [ebp - 0x2418]
mov dword [ebp - 0x2434], ecx
mov dword [ebp - 0x2438], eax
lea eax, [ebp - 0x246c]
push eax
push 0x90000000
push esi
push dword [ebp - 0x2430]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4482d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x61
push str.uriutil.cpp
call fcn.0043bd8c
jmp 0x448396
mov ecx, dword [ebp - 0x242c]
test ecx, ecx
je 0x4482e4
mov eax, dword [ebp - 0x2460]
mov dword [ecx], eax
mov eax, dword [ebp - 0x241c]
test eax, eax
je 0x44830a
push dword [ebp - 0x2458]
push dword [ebp - 0x245c]
push eax
call fcn.0044042d
mov esi, eax
test esi, esi
js 0x448396
mov eax, dword [ebp - 0x2428]
test eax, eax
je 0x44831e
mov cx, word [ebp - 0x2454]
mov word [eax], cx
mov eax, dword [ebp - 0x2424]
test eax, eax
je 0x448340
push dword [ebp - 0x244c]
push dword [ebp - 0x2450]
push eax
call fcn.0044042d
mov esi, eax
test esi, esi
js 0x448396
mov eax, dword [ebp - 0x2420]
test eax, eax
je 0x448362
push dword [ebp - 0x2444]
push dword [ebp - 0x2448]
push eax
call fcn.0044042d
mov esi, eax
test esi, esi
js 0x448396
test ebx, ebx
je 0x44837e
push dword [ebp - 0x243c]
push dword [ebp - 0x2440]
push ebx
call fcn.0044042d
mov esi, eax
test esi, esi
js 0x448396
test edi, edi
je 0x448396
push dword [ebp - 0x2434]
push dword [ebp - 0x2438]
push edi
call fcn.0044042d
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a6d1
mov esp, ebp
pop ebp
ret 0x20
Function at 0x402810
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext
Encrypt data using aes via winapi

Disassembly:
sub esp, 0x4c
cmp dword [esi], 0
mov byte [esp], 0xda
mov byte [esp + 1], 0x21
mov byte [esp + 2], 0x1e
mov byte [esp + 3], 0xab
mov byte [esp + 4], 0x8c
mov byte [esp + 5], 0xc6
mov byte [esp + 6], 0xc8
mov byte [esp + 7], 0xb0
mov byte [esp + 8], 0xe6
mov byte [esp + 9], 0x1f
mov byte [esp + 0xa], 0x49
mov byte [esp + 0xb], 0x4f
mov byte [esp + 0xc], 7
mov byte [esp + 0xd], 0x56
mov byte [esp + 0xe], 0x39
mov byte [esp + 0xf], 0x2e
mov byte [esp + 0x10], 0xf9
mov byte [esp + 0x11], 0xc7
mov byte [esp + 0x12], 0x75
mov byte [esp + 0x13], 0xa0
mov byte [esp + 0x14], 0x14
mov byte [esp + 0x15], 0x7a
mov byte [esp + 0x16], 0x47
mov byte [esp + 0x17], 0xbd
mov byte [esp + 0x18], 0xe2
mov byte [esp + 0x19], 0xea
mov byte [esp + 0x1a], 5
mov byte [esp + 0x1b], 0x5b
mov byte [esp + 0x1c], 0xdd
mov byte [esp + 0x1d], 0xd2
mov byte [esp + 0x1e], 0xee
mov byte [esp + 0x1f], 0xb1
jne 0x4028d5
push 0xf0000000
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4028d5
mov dword [esi], eax
xor al, al
add esp, 0x4c
ret
push 0x2c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00401100
push 0x20
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x40]
push edx
mov word [esp + 0x38], 0x208
mov word [esp + 0x3c], 0x6610
mov byte [esp + 0x40], 0x20
call fcn.00401140
mov edx, dword [esi]
add esp, 0x18
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x2c
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x40293b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407a30
add esp, 4
xor al, al
add esp, 0x4c
ret
mov al, 1
add esp, 0x4c
ret
Function at 0x43b636
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
sub esi, 1
mov esi, 0x999fc8e
sub edi, 1
call fcn.0043b67e
and edi, esi
xor dword [edx], eax
add edi, esi
add edx, 1
and edi, esi
cmp edx, ebx
jne fcn.0043b636
add edi, 1
sub esp, 4
mov dword [esp], 0x25d9efda
mov esi, dword [esp]
add esp, 4
ret

Function at 0x401000
Capabilities:
Allocate or change rwx memory
Check for foreground window switch
Check for time delay via gettickcount
Check for unmoving mouse cursor
Execute shellcode via indirect call

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x403008]
cmp eax, 0
jne 0x401021
mov eax, dword [0x40300c]
cmp eax, 0
jne 0x401021
jmp 0x4010b6
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 4], eax
push 0x1388
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x401021
mov dword [ebp - 0x14], eax
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 4]
cmp eax, 0x1388
jl 0x401021
lea eax, [ebp - 8]
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x401021
mov eax, dword [0x403008]
cmp eax, 0
je 0x401093
push 0x3e8
call sub.KERNEL32.dll_Sleep
lea eax, [ebp - 0x10]
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x401067
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
cmp eax, ebx
je 0x401021
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
cmp eax, ebx
je 0x401067
mov eax, dword [0x40300c]
cmp eax, 0
je 0x4010b6
push 0x1388
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x401093
cmp eax, dword [ebp - 0x14]
je 0x401093
push dword [section.data]
mov eax, 0x40301a
mov ebx, 0x40322a
sub ebx, eax
push ebx
push 0x40301a
call fcn.00402bce
lea eax, [ebp - 4]
push eax
push 0x40
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call sub.KERNEL32.dll_VirtualProtect
push dword [0x403004]
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call fcn.00402bce
lea eax, [ebp - 4]
push eax
push dword [eax]
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call sub.KERNEL32.dll_VirtualProtect
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
cmp al, 0x2d
int 0
add byte [esp + ecx - 0x43ffff30], bh
invalid
Function at 0x438c90
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
mov eax, edx
sub edx, 0xe24978cc
call fcn.00438cc7
and eax, edx
xor dword [ebx], esi
sub eax, edx
inc ebx
or eax, edx
add eax, edx
cmp ebx, edi
jne fcn.00438c90
dec edx
sub eax, 1
ret
Function at 0x40b691
Capabilities:
Packed with generic packer
Terminate process

Disassembly:
xchg esp, eax
or eax, dword [ecx + 0x43]
mov dword [eax], ecx
mov eax, dword [0x1c40c0dc]
mov ebp, dword [esi + 0x414050a3]
add al, ch
lahf
test dword [eax], 0x503d4300
stosd dword es:[edi], eax
inc ecx
outsd dx, dword [esi]
add byte [ebp + 0xc], dh
push 0x40b927
adc dl, byte [0xf640c0be]
pop ecx
call 0x4145cf
stosb byte es:[edi], al
dec ebp
ror byte [edi], 1
push 0x40d008
call 0x7bc3b92c
mov eax, dword [0x410b90]
mov dword [eax + ebx*8], esp
lea eax, [ebx]
xor eax, 0x8c35ff50
xchg esi, eax
inc ecx
test dword [ebp - 0x72af55bb], ecx
inc ebp
aam 0x50
lea eax, [ebp - 0x1c]
push eax
call dword [0x4aa7b362]
mov bl, 0xa7
dec edx
push 0x40d004
push 0x7240d000
call 0xa1b92c
call dword [0x4020ec]
mov ecx, dword [ebp - 0x20]
pushal
or bh, bh
jne 0x40b6f2
push dword [ebp - 0x7c]
call dword [ebx]
in al, 0xe8
jecxz 0x40b773
inc ecx
inc dword [ebx + 0x45c8d7c4]
push eax
call dword [sym.imp.MSVCRT.dll_exit]
popal
inc ebp
in al, dx
mov ecx, dword [eax]
mov ecx, dword [ecx]
push edi
popal
rcl byte [eax + 0x51]
movsb byte es:[edi], byte [esi]
jmp 0x40b788
sbb byte [ebx], cl
loopne 0x40b7f4
adc ecx, dword [ebx - 0x8ebdbac]
fdiv st(7)
fisubr dword [esi - 0x5f76ff28]
and al, 0x18
mov dword [esp + 0x14], edx
push esp

Function at 0x40b742
Capabilities:
Terminate process

Disassembly:
test bh, bh
adc esp, esp
call 0xff821000
add esp, 0xffffffd7
enter 0xfffffffffffff345, 0x50
jne 0x40b714
adc byte [0x401ff4], 0xcc
int3
Function at 0x403144
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404e04
test esi, esi
jne 0x40317a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404ef4
jmp 0x403198
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403048
mov edi, eax
test esi, esi
je 0x403198
cmp dword [ebx], 0
je 0x403198
dec esi
jmp 0x403181
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031a4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x46e008], 0x8088405
inc edx
mov dword [ebx + 0x46e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403dd4
Capabilities:
Query or enumerate registry value

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

Function at 0x404c84
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x65204c], 0
je 0x404ce5
cmp word [0x652220], 0xd7b2
jne 0x404cad
cmp dword [0x652228], 0
jbe 0x404cad
mov eax, 0x65221c
call dword [0x652238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404d0c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46e030], 0
jne 0x404d01
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408c84
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408d14
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408d14
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408cc7
test edx, 3
jne 0x408cb6
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408cc1
jmp 0x408cc7
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408cc7
cmp dword [ecx - 8], 1
je 0x408cd1
mov edx, ebx
or edx, 3
call fcn.00405550
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408ce3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404e04

Function at 0x408d20
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408db0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408db0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408d63
test edx, 3
jne 0x408d52
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408d5d
jmp 0x408d63
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408d63
cmp dword [ecx - 8], 1
je 0x408d6d
mov edx, ebx
or edx, 3
call fcn.00405550
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408d7f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404e04

Function at 0x40c0d0
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 0x40c109
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404ef4
jmp 0x40c112
mov eax, ebx
mov edx, esi
call fcn.00404e58
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c11c
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 0x40c13e
movzx eax, byte [esp]
jmp 0x40c140
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c7d0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c648
mov eax, dword [0x650efc]
cmp byte [eax], 0
je 0x40c84c
mov eax, dword [0x650c9c]
call fcn.00403538
call fcn.00402ea8
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.00409784
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 0x40c894
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c882
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x650c38]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x6547f8]
call fcn.004063a8
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 0x40d128
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d1fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404e9c
lea eax, [ebp - 4]
call fcn.00405318
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004052c8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d1e8
mov eax, ebx
call fcn.00402d4c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d1e1
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 - 4]
call fcn.004052c8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d1cb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d210
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d1cb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d1e8
mov eax, dword [ebp - 0x10]
call fcn.00402d68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d205
lea eax, [ebp - 4]
call fcn.00404e04
ret
Function at 0x421f44
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x655304
cmp dword [edi], 0
jne 0x421fc0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x655300]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46ec18
mov ecx, 2
call fcn.00402f48
mov edx, 0x421f1c
lea eax, [esi + 5]
call fcn.00421f3c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421f3c
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 0x421f95
mov dword [0x655300], 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 0x4244e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004052c8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42453c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x651038]
mov dl, 1
mov eax, dword [0x424008]
call fcn.0040c990
call fcn.00404830
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00424110
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x425398
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 0x42539e
ret
Function at 0x435ea4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404e04
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x435ef2
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00405074
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x439f74
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43a0a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x424068]
call fcn.00424138
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x43a07d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004241d8
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00405074
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x43a0bc
call fcn.00405114
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0042423c
lea ecx, [ebp - 4]
mov edx, 0x43a0f8
mov eax, dword [ebp - 0xc]
call fcn.0042446c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040e53c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x43a060
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x43a104
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x46f5ec]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a067
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x43a154
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x43a19b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43a17e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43a18f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x43a19b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret