joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d16
Capabilities:
Print debug messages

Disassembly:
jmp 0x51a992
push esi
mov esi, ecx
call fcn.004070bd
mov eax, 0x400000
mov dword [esi], 0x38
lea ecx, [esi + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0xe00
mov dword [esi + 0x10], 0x5fdf64
call fcn.0040925a
test eax, eax
jns 0x51a9e1
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x51a9da
push str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x64e788], 1
mov eax, esi
pop esi
ret

Function at 0x402fa4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x51cd30
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x6501dc], 1
jge 0x51cd9f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x51cd75
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x51cd75
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x51cd52
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x51cd8b
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x51cd92
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x51ce8f
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x51ce60
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x51ce55
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x51ce49
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x51ce50
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x51ce8f
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x51ce8a
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x51ce73
mov eax, dword [ebx + 8]
jmp 0x51ce8f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x51ce81
xor eax, eax
jmp 0x51ce8f
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x51cdbf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4067e9
Capabilities:
Query environment variable

Disassembly:
jmp 0x5b46f2
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5b4706
xor edi, edi
jmp 0x5b474a
push ebx
push esi
call fcn.005b45e9
sub eax, esi
sar eax, 1
push 0x40
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
lea ebx, [eax + eax]
push ebx
call fcn.0040758b
mov edi, eax
add esp, 0x14
test edi, edi
je 0x5b4737
push ebx
push esi
push edi
call fcn.00406a28
add esp, 0xc
push 2
push 0
call fcn.004081c5
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x417640
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], 0
mov esi, esp
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00405efc
cwde
test eax, eax
jge 0x417672
mov ecx, dword [ebp - 4]
or ecx, 8
mov dword [ebp - 4], ecx
mov esi, esp
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00405efc
movsx edx, ax
test edx, edx
jge 0x417693
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov esi, esp
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00405efc
movsx ecx, ax
test ecx, ecx
jge 0x4176b4
mov edx, dword [ebp - 4]
or edx, 2
mov dword [ebp - 4], edx
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00405efc
cwde
test eax, eax
jge 0x4176d3
mov ecx, dword [ebp - 4]
or ecx, 4
mov dword [ebp - 4], ecx
mov esi, esp
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00405efc
movsx edx, ax
test edx, edx
jge 0x4176f4
mov eax, dword [ebp - 4]
or eax, 0x20
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
add esp, 4
cmp ebp, esp
call fcn.00405efc
mov esp, ebp
pop ebp
ret
Function at 0x4a3410
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
cmp dword [ebp + 0x14], 0
push edi
mov edi, dword [ebp + 0x10]
jg 0x4a3431
jl 0x4a3429
test edi, edi
ja 0x4a3431
mov eax, dword [ebp + 8]
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, 1
mov dword [ebp - 0x80], 0xedb88320
mov eax, ecx
nop
mov dword [ebp + eax*4 - 0x80], ecx
inc eax
add ecx, ecx
cmp eax, 0x20
jl 0x4a3440
push ebx
push esi
lea ebx, [ebp - 0x80]
lea eax, [ebp - 0x100]
call fcn.004a33c0
lea ebx, [ebp - 0x100]
lea eax, [ebp - 0x80]
call fcn.004a33c0
lea ebx, [ebx]
xor esi, esi
mov eax, dword [ebp + esi - 0x80]
xor edx, edx
lea ecx, [ebp - 0x80]
test eax, eax
je 0x4a348f
nop
test al, 1
je 0x4a3486
xor edx, dword [ecx]
shr eax, 1
add ecx, 4
test eax, eax
jne 0x4a3480
mov dword [ebp + esi - 0x100], edx
add esi, 4
cmp esi, 0x80
jl 0x4a3472
mov eax, edi
and eax, 1
xor ecx, ecx
or eax, ecx
je 0x4a34d2
mov eax, dword [ebp + 8]
xor edx, edx
lea ecx, [ebp - 0x100]
test eax, eax
je 0x4a34cf
jmp 0x4a34c0
test al, 1
je 0x4a34c6
xor edx, dword [ecx]
shr eax, 1
add ecx, 4
test eax, eax
jne 0x4a34c0
mov dword [ebp + 8], edx
mov edx, dword [ebp + 0x14]
mov eax, edi
mov cl, 1
call fcn.004069f1
mov edi, eax
or eax, edx
je 0x4a3563
xor eax, eax
jmp 0x4a34f0
mov ecx, dword [ebp + eax - 0x100]
xor ebx, ebx
lea esi, [ebp - 0x100]
test ecx, ecx
je 0x4a3513
test cl, 1
je 0x4a350a
xor ebx, dword [esi]
shr ecx, 1
add esi, 4
test ecx, ecx
jne 0x4a3503
mov dword [ebp + eax - 0x80], ebx
add eax, 4
cmp eax, 0x80
jl 0x4a34f0
mov ecx, edi
and ecx, 1
xor eax, eax
or ecx, eax
je 0x4a354b
mov ecx, dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x80]
test ecx, ecx
je 0x4a3548
test cl, 1
je 0x4a353f
xor esi, dword [eax]
shr ecx, 1
add eax, 4
test ecx, ecx
jne 0x4a3538
mov dword [ebp + 8], esi
mov eax, edi
mov cl, 1
call fcn.004069f1
mov edi, eax
mov ecx, edi
or ecx, edx
mov dword [ebp + 0x14], edx
jne 0x4a3470
mov eax, dword [ebp + 8]
xor eax, dword [ebp + 0xc]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x595790
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.0040628f
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5957ce
cmp dword [ebp + 8], 0
je 0x5957bc
lea eax, [ebp + 8]
push eax
call fcn.0040430e
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x5957ce
mov eax, 4
jmp 0x5958fe
call fcn.00408f76
movzx edx, al
test edx, edx
jne 0x5957fc
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5957ed
mov dword [ebp - 0xc], 4
jmp 0x5957f4
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x5958fe
movzx eax, byte [ebp - 1]
test eax, eax
je 0x5958a5
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x595c50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.00407e87
lea ecx, [ebp - 8]
call fcn.00403e40
movzx edx, al
test edx, edx
jne 0x595867
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.00407d47
mov eax, dword [ebp - 0x10]
jmp 0x5958fe
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.004059f7
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x595892
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.00407d47
mov eax, dword [ebp - 0x14]
jmp 0x5958fe
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.00407d47
mov eax, dword [ebp - 0x18]
jmp 0x5958fe
call fcn.004070d6
movzx ecx, al
test ecx, ecx
jne 0x5958de
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.004042dc
add esp, 0x10
jmp 0x5958fe
call fcn.00403b6b
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.0040148d
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x595960
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.0040628f
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x59599e
cmp dword [ebp + 8], 0
je 0x59598c
lea eax, [ebp + 8]
push eax
call fcn.00404e3a
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x59599e
mov eax, 4
jmp 0x595ace
call fcn.00408f76
movzx edx, al
test edx, edx
jne 0x5959cc
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5959bd
mov dword [ebp - 0xc], 4
jmp 0x5959c4
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x595ace
movzx eax, byte [ebp - 1]
test eax, eax
je 0x595a75
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x595cb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.00407e87
lea ecx, [ebp - 8]
call fcn.00403e40
movzx edx, al
test edx, edx
jne 0x595a37
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.00407d47
mov eax, dword [ebp - 0x10]
jmp 0x595ace
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.004059f7
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x595a62
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.00407d47
mov eax, dword [ebp - 0x14]
jmp 0x595ace
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.00407d47
mov eax, dword [ebp - 0x18]
jmp 0x595ace
call fcn.004070d6
movzx ecx, al
test ecx, ecx
jne 0x595aae
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00403b9d
add esp, 0x10
jmp 0x595ace
call fcn.00403b6b
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00401316
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x402d5c
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 0x402d99
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 0x402db9
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404f58
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402f98
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404ce8
test esi, esi
jne 0x402fcf
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.00404dd8
jmp 0x402ff0
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402e34
mov dword [esp], eax
test esi, esi
je 0x402ff0
cmp dword [ebx], 0
je 0x402ff0
dec esi
jmp 0x402fd7
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403cfc
Capabilities:
Query or enumerate registry value

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

Function at 0x404ae0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x53404c], 0
je 0x404b41
cmp word [0x534220], 0xd7b2
jne 0x404b09
cmp dword [0x534228], 0
jbe 0x404b09
mov eax, 0x53421c
call dword [0x534238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x530094
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 0x404b68
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x530034], 0
jne 0x404b5d
push 0
push 0x53008c
push 0x530094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404c9c
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.00402b50
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x53404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c64
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x407010
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 0x407076
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.00404f58
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403890
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x407060
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40707d
lea eax, [ebp - 0x10]
call fcn.00404ce8
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004051a8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409fed
test al, 0x10
jne 0x409ff1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40ce68
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 0x40cea1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404dd8
jmp 0x40ceaa
mov eax, ebx
mov edx, esi
call fcn.00404d3c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d56c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d3d4
mov eax, dword [0x533058]
cmp byte [eax], 0
je 0x40d5e8
mov eax, dword [0x532c20]
call fcn.004033e0
call fcn.00402cdc
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.0040a450
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 0x40d630
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d61e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x532b7c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x534668]
call fcn.0040647c
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 0x40def8
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 0x40dfce
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404d80
lea eax, [ebp - 8]
call fcn.004051f8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004051a8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40dfb8
mov eax, ebx
call fcn.00402b50
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40dfb1
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.004051a8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40df9b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40dfe0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40df9b
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 0x40dfb8
mov eax, dword [ebp - 0x10]
call fcn.00402b80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dfd5
lea eax, [ebp - 8]
call fcn.00404ce8
ret

Function at 0x40e5b0
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 0x40e614
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.00404f58
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409c34
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e61b
lea eax, [ebp - 0xc]
call fcn.00404ce8
ret

Function at 0x40f444
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.00404ce8
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.004051a8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40f489
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404dd8
jmp 0x40f4a2
mov edx, ebx
dec edx
mov eax, esi
call fcn.00405334
push ebx
mov eax, dword [esi]
call fcn.004051a8
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4266ec
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.00426544
dec esi
jne 0x42670e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x427850
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x53488c
cmp dword [edi], 0
jne 0x4278cc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x534888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5305d8
mov ecx, 2
call fcn.00402df4
mov edx, 0x427828
lea eax, [esi + 5]
call fcn.00427848
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00427848
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 0x4278a1
mov dword [0x534888], 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 0x428e80
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 0x428e86
ret

Function at 0x42b910
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 0x42b961
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42b948
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42b938
jmp 0x42b961
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 0x42b949
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435338
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.00405198
xor eax, eax
push ebp
push 0x435466
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x435439
xor eax, eax
push ebp
push 0x435432
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404fa8
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x435407
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 0x4353f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404fa8
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.004051a8
mov edx, ebx
pop ecx
call fcn.00402df4
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 0x4353fd
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x532a74]
mov dl, 1
mov eax, dword [0x408754]
call fcn.0040d714
call fcn.00404678
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43546d
lea eax, [ebp - 4]
call fcn.00404ce8
ret