joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101ab1c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x102c0f18]
jne 0x101ab1d2
repz ret
jmp fcn.101b4a86

Function at 0x101b989f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.101aaaae
and dword [ebp - 4], 0
cmp dword [0x102c278c], 0
mov ebx, eax
jne 0x101b9950
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x101b9a01
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x101b9a01
push eax
call fcn.101aaa3c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x102c278c], eax
call esi
push eax
call fcn.101aaa3c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x102c2790], eax
call esi
push eax
call fcn.101aaa3c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x102c2794], eax
call esi
push eax
call fcn.101aaa3c
pop ecx
mov dword [0x102c279c], eax
test eax, eax
je 0x101b9950
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.101aaa3c
pop ecx
mov dword [0x102c2798], eax
mov eax, dword [0x102c2798]
cmp eax, ebx
je 0x101b99a8
cmp dword [0x102c279c], ebx
je 0x101b99a8
push eax
call fcn.101aaab7
push dword [0x102c279c]
mov esi, eax
call fcn.101aaab7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x101b99a8
test edi, edi
je 0x101b99a8
call esi
test eax, eax
je 0x101b999f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x101b999f
test byte [ebp - 0xc], 1
jne 0x101b99a8
or dword [ebp + 0x10], 0x200000
jmp 0x101b99e1
mov eax, dword [0x102c2790]
cmp eax, ebx
je 0x101b99e1
push eax
call fcn.101aaab7
pop ecx
test eax, eax
je 0x101b99e1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x101b99e1
mov eax, dword [0x102c2794]
cmp eax, ebx
je 0x101b99e1
push eax
call fcn.101aaab7
pop ecx
test eax, eax
je 0x101b99e1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102c278c]
call fcn.101aaab7
pop ecx
test eax, eax
je 0x101b9a01
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x101b9a03
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101bd5a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x102c04a4], 0
mov byte [0x102c04a8], 0
mov dword [0x102c0498], 0x719
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [0x102c04a0], 0
mov dword [ebp - 0x1c], eax
jmp 0x101bd5f3
mov dword [0x102c04a0], 0
jmp 0x101bd62a
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x102c049c]
add eax, 0xfffff13a
mov dword [0x102c0498], eax
mov eax, dword [0x102c04a0]
add eax, 1
mov dword [0x102c04a0], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101bd5f3
jmp 0x101bd5e7
mov eax, 0x100
mov dword [0x102c04ac], 0
mov ecx, dword [0x102c04a4]
mov edx, dword [0x102c04a0]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x20], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x102c04ac], edi
mov dword [0x102c049c], 0xde7
mov eax, edi
cdq
mov edi, dword [ebp - 0x20]
idiv edi
mov dword [0x102c04a4], edx
mov edx, dword [0x102c04a0]
mov cl, byte [esi + edx]
mov byte [0x102c04a8], cl
mov edx, dword [0x102c0498]
add edx, 0x17b0
mov dword [0x102c0498], edx
mov edx, dword [0x102c04a4]
mov cl, byte [esi + edx]
mov edx, dword [0x102c04a0]
mov byte [esi + edx], cl
mov dword [0x102c0498], 0x20e9
mov cl, byte [0x102c04a8]
mov edx, dword [0x102c04a4]
mov byte [esi + edx], cl
mov edx, dword [0x102c04a0]
add edx, 1
mov dword [0x102c04a0], edx
cmp edx, 0x100
jl 0x101bd62a
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101bd710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x102c0498], 0x23d1
mov edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
jmp 0x101bd78e
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x40]
mov dword [esp + 8], ecx
call fcn.101bdd60
mov eax, dword [ebp - 0x3c]
add eax, 0xb6491
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov dword [ecx + 4], 0x122600
mov eax, dword [ebp - 0x3c]
add eax, 0xab20c
mov dword [ebp - 0x44], eax
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x44]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x1f40
mov dword [0x102c049c], 0xe43
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
imul esi, eax, 0x6c
mov edi, edx
add edi, esi
add edi, 0x68
mov esi, dword [edi]
imul edi, eax, 0x6c
add edx, edi
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x373
mov ecx, edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jne 0x101bd78e
lea eax, [0x102a5484]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov esi, dword [0x102c049c]
add esi, 0x831
mov dword [0x102c049c], esi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], ecx
call fcn.101bdab0
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call fcn.101bd340
mov ecx, eax
mov dword [0x102c04b8], eax
mov eax, esp
mov edx, dword [ebp - 0x40]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov dword [0x102c0498], 0x829
mov edx, ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
lea edx, section..data
imul esi, eax, 0x6c
mov edi, edx
add edi, esi
add edi, 0x68
mov esi, dword [edi]
imul edi, eax, 0x6c
mov ebx, edx
add ebx, edi
add ebx, 0x4c
mov edi, dword [ebx]
imul ebx, eax, 0x6c
add edx, ebx
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x3c]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], edx
call fcn.101bd8f0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
add eax, ecx
mov edx, dword [ebp - 0x58]
add edx, 1
cmp edx, 0x373
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], edx
je 0x101bd735
jmp 0x101bd85c
Function at 0x101bd950
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x102c04a0], 0
mov dword [0x102c04a4], 0
mov dword [0x102c04b0], 0
mov dword [0x102c0498], 0x819
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
je 0x101bda9d
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov edx, dword [0x102c04a0]
mov esi, eax
add esi, 1
add edx, 1
mov dword [ebp - 0x24], eax
mov eax, edx
cdq
idiv ecx
mov dword [0x102c04a0], edx
mov dword [0x102c0498], 0x110a
mov edi, dword [0x102c04a4]
mov ebx, dword [ebp - 0x1c]
movzx edx, byte [ebx + edx]
add edx, edi
mov eax, edx
cdq
idiv ecx
mov dword [0x102c04a4], edx
mov ecx, dword [0x102c04a0]
mov bl, byte [ebx + ecx]
mov byte [0x102c04a8], bl
mov edi, dword [ebp - 0x1c]
mov bl, byte [edi + edx]
mov byte [edi + ecx], bl
mov bl, byte [0x102c04a8]
mov ecx, dword [0x102c04a4]
mov byte [edi + ecx], bl
mov ecx, dword [0x102c04a0]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x102c04a4]
movzx edx, byte [edi + edx]
add edx, ecx
mov ecx, dword [0x102c0498]
add ecx, 0x154a
mov dword [0x102c0498], ecx
and edx, 0xff
mov dword [0x102c04b0], edx
mov ecx, dword [0x102c049c]
add ecx, 0x880
mov dword [0x102c049c], ecx
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx ecx, byte [ecx + edx]
mov dword [esp], ecx
movzx ecx, bl
mov dword [esp + 4], ecx
mov dword [ebp - 0x28], esi
call fcn.10001000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x10]
cmp esi, edi
mov dword [ebp - 0x20], esi
jne 0x101bd9a9
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x101bdc00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.101bdc00]
mov dword [0x102c0498], 0x183f
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
jne 0x101bdc3d
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x101bdc3d
mov eax, dword [ebp - 8]
add esp, 8
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [ebp - 4], eax
jmp 0x101bdc19
Function at 0x101be100
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [0x102c0498], 0x1c02
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x101be136
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
je 0x101be16a
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0x104
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ecx
jl 0x101be136
mov eax, dword [ebp - 0x18]
mov dword [0x102c0498], 0x848
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
jne 0x101be20e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov dx, word [eax + ecx*2 - 0x18]
mov word [ebp - 0x22], dx
mov ax, word [ebp - 0x22]
cmp ax, 0x6f
jne 0x101be20e
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff5
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
cmp word [eax], 0x61
jne 0x101be20e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov dx, word [eax + ecx*2 - 0x14]
mov word [ebp - 0x2a], dx
mov ax, word [ebp - 0x2a]
cmp ax, 0x64
jne 0x101be20e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x101be20e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x101be20e
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x30], eax
je 0x101be215
xor eax, eax
mov dword [ebp - 0x30], eax
jmp 0x101be215
mov eax, dword [ebp - 0x30]
add esp, 0x30
pop ebp
ret
Function at 0x402d20
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 0x402d5d
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 0x402d7d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405000
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402fcc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404d90
test esi, esi
jne 0x403003
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.00404e80
jmp 0x403024
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402e68
mov dword [esp], eax
test esi, esi
je 0x403024
cmp dword [ebx], 0
je 0x403024
dec esi
jmp 0x40300b
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403dec
Capabilities:
Query or enumerate registry value

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

Function at 0x404b88
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d904c], 0
je 0x404be9
cmp word [0x4d9220], 0xd7b2
jne 0x404bb1
cmp dword [0x4d9228], 0
jbe 0x404bb1
mov eax, 0x4d921c
call dword [0x4d9238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4cd094
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 0x404c10
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4cd034], 0
jne 0x404c05
push 0
push 0x4cd08c
push 0x4cd094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404d44
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.00402ae8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4d904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404d0c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406ea8
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 0x406f0e
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.00405000
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004037c0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406ef8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f15
lea eax, [ebp - 0x10]
call fcn.00404d90
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405250
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409f61
test al, 0x10
jne 0x409f65
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a0fc
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405250
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40a110
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405250
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40a132
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40d604
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 0x40d63d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404e80
jmp 0x40d646
mov eax, ebx
mov edx, esi
call fcn.00404de4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d650
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 0x40d671
mov al, byte [esp]
jmp 0x40d673
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40dd08
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40db70
mov eax, dword [0x4d8654]
cmp byte [eax], 0
je 0x40dd84
mov eax, dword [0x4d83e4]
call fcn.0040347c
call fcn.00402c74
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.0040a714
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 0x40ddcc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ddba
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4d837c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4d9668]
call fcn.004062d4
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 0x40e670
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 0x40e746
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404e28
lea eax, [ebp - 8]
call fcn.004052a0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405250
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e730
mov eax, ebx
call fcn.00402ae8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e729
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.00405250
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e713
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e758
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e713
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 0x40e730
mov eax, dword [ebp - 0x10]
call fcn.00402b18
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e74d
lea eax, [ebp - 8]
call fcn.00404d90
ret

Function at 0x40eeac
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 0x40ef10
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.00405000
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409ac4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ef17
lea eax, [ebp - 0xc]
call fcn.00404d90
ret
Function at 0x4214dc
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.00421334
dec esi
jne 0x4214fe
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x422658
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x4d988c
cmp dword [esi], 0
jne 0x4226fe
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x4d9888]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4cd538
mov ecx, 2
call fcn.00402e28
mov edx, 0x422630
mov eax, dword [ebp - 8]
add eax, 5
call fcn.00422650
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.00422650
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x4226c5
mov eax, dword [ebp - 8]
mov dword [0x4d9888], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x423cf4
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 0x423cfa
ret

Function at 0x426668
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 0x4266b9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4266a0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x426690
jmp 0x4266b9
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 0x4266a1
pop ebx
mov esp, ebp
pop ebp
ret