joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2000e340
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x91c
mov eax, dword [0x20026464]
xor eax, esp
mov dword [esp + 0x918], eax
mov eax, dword [esp + 0x930]
mov ecx, dword [esp + 0x934]
mov edx, dword [esp + 0x938]
push ebp
mov ebp, dword [esp + 0x930]
push esi
mov esi, dword [esp + 0x92c]
push edi
mov edi, dword [esp + 0x934]
push 0xff
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x29]
push 0
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], edx
mov byte [esp + 0x30], 0
call fcn.200132c0
push 0x3ff
lea ecx, [esp + 0x135]
push 0
push ecx
mov byte [esp + 0x13c], 0
call fcn.200132c0
push 0x3ff
lea edx, [esp + 0x541]
push 0
push edx
mov byte [esp + 0x548], 0
call fcn.200132c0
mov eax, dword [esp + 0x96c]
add esp, 0x24
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x52c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x134]
push ecx
mov ecx, dword [esp + 0x940]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push ecx
call sym.SDTAPI.DLL_SDT_ReadBaseFPMsg
cmp eax, 0x90
jne 0x2000e4e5
push 0x20020708
push esi
call fcn.200141ea
mov esi, eax
add esp, 8
test esi, esi
je 0x2000e4e5
push ebx
mov ebx, dword [esp + 0x14]
push esi
push ebx
lea edx, [esp + 0x30]
push 1
push edx
call fcn.200140a4
add esp, 0x10
cmp eax, ebx
jne 0x2000e4cc
push esi
call fcn.20013ec6
push 0x20020708
push ebp
mov dword [edi], ebx
call fcn.200141ea
mov esi, eax
add esp, 0xc
test esi, esi
je 0x2000e4cc
mov edi, dword [esp + 0x20]
push esi
push edi
lea eax, [esp + 0x130]
push 1
push eax
call fcn.200140a4
add esp, 0x10
cmp eax, edi
jne 0x2000e4cc
push esi
call fcn.20013ec6
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
push 0x20020708
push edx
mov dword [ecx], edi
call fcn.200141ea
mov esi, eax
add esp, 0xc
test esi, esi
je 0x2000e4cc
mov edi, dword [esp + 0x10]
push esi
push edi
lea eax, [esp + 0x530]
push 1
push eax
call fcn.200140a4
add esp, 0x10
cmp eax, edi
je 0x2000e4d0
xor eax, eax
jmp 0x2000e4e4
mov ecx, dword [esp + 0x18]
push esi
mov dword [ecx], edi
call fcn.20013ec6
add esp, 4
mov eax, 0x90
pop ebx
mov ecx, dword [esp + 0x924]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.20012ef0
add esp, 0x91c
ret 0x20
Function at 0x2000eff0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x510
mov eax, dword [0x20026464]
xor eax, esp
mov dword [esp + 0x50c], eax
mov ecx, dword [esp + 0x528]
mov eax, dword [esp + 0x524]
push ebx
mov ebx, dword [esp + 0x520]
push ebp
mov ebp, dword [esp + 0x528]
push esi
mov esi, dword [esp + 0x524]
push ecx
mov dword [esp + 0x10], eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x120]
push eax
mov eax, dword [esp + 0x52c]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
call sym.SDTAPI.DLL_SDT_ReadBaseMsg
cmp eax, 0x90
jne 0x2000f0d9
push 0x20020708
push esi
call fcn.200141ea
mov esi, eax
add esp, 8
test esi, esi
je 0x2000f0d9
push edi
mov edi, dword [esp + 0x14]
push esi
push edi
lea ecx, [esp + 0x24]
push 1
push ecx
call fcn.200140a4
add esp, 0x10
cmp eax, edi
jne 0x2000f0c0
push esi
call fcn.20013ec6
push 0x20020708
push ebp
mov dword [ebx], edi
call fcn.200141ea
mov esi, eax
add esp, 0xc
test esi, esi
je 0x2000f0c0
mov edi, dword [esp + 0x18]
push esi
push edi
lea edx, [esp + 0x124]
push 1
push edx
call fcn.200140a4
add esp, 0x10
cmp eax, edi
je 0x2000f0c4
xor eax, eax
jmp 0x2000f0d8
mov eax, dword [esp + 0x10]
push esi
mov dword [eax], edi
call fcn.20013ec6
add esp, 4
mov eax, 0x90
pop edi
mov ecx, dword [esp + 0x518]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.20012ef0
add esp, 0x510
ret 0x18
Function at 0x2000fd70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x71c
mov eax, dword [0x20026464]
xor eax, esp
mov dword [esp + 0x718], eax
mov ecx, dword [esp + 0x720]
mov eax, dword [esp + 0x724]
mov dword [esp + 8], eax
test ecx, ecx
je 0x2000ffb4
test eax, eax
je 0x2000ffb4
mov eax, dword [0x2002b328]
test eax, eax
jle 0x2000fdb4
cmp eax, 0x11
jl 0x2000fdd6
cmp eax, 0x3e8
jle 0x2000fdc2
cmp eax, 0x3f9
jl 0x2000fdd6
cmp eax, dword [0x20026270]
je 0x2000fdd6
cmp eax, dword [0x20026208]
jne 0x2000ffb4
push 0
lea edx, [esp + 8]
push edx
lea edx, [esp + 0x320]
push edx
lea edx, [esp + 0xc]
push edx
push ecx
push eax
call sym.SDTAPI.DLL_SDT_ReadBaseMsg
cmp eax, 0x90
jne 0x2000ffb4
push ebx
push ebp
push 0x102
lea ecx, [esp + 0x1a]
mov eax, 0x5c
push 0
push ecx
mov word [esp + 0x20], ax
call fcn.200132c0
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add esp, 0xc
push 0x104
lea edx, [esp + 0x11c]
push edx
push 0x2002049c
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push eax
call ebp
lea eax, [esp + 0x14]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x2000fe44
mov ecx, dword [str.photo.wlt]
mov edx, dword [0x20020770]
mov dword [eax], ecx
mov cx, word [0x20020774]
push esi
mov dword [eax + 4], edx
lea edx, [esp + 0x11c]
push 0x5c
push edx
mov word [eax + 8], cx
lea esi, [esp + 0x20]
call fcn.20012f10
add esp, 8
nop
mov cl, byte [esi]
mov byte [eax], cl
inc esi
inc eax
test cl, cl
jne 0x2000fe80
lea eax, [esp + 0x11c]
push 0x20020708
push eax
call fcn.200141ea
mov esi, eax
add esp, 8
test esi, esi
je 0x2000fecc
push edi
mov edi, dword [esp + 0x14]
push esi
push edi
lea ecx, [esp + 0x330]
push 1
push ecx
call fcn.200140a4
add esp, 0x10
cmp edi, eax
pop edi
push esi
je 0x2000fed3
call fcn.20013ec6
add esp, 4
xor eax, eax
jmp 0x2000ff9a
call fcn.20013ec6
add esp, 4
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x104
lea edx, [esp + 0x224]
push edx
push 0x2002049c
call ebx
push eax
call ebp
lea eax, [esp + 0x220]
push 0x5c
push eax
call fcn.20012f10
mov ecx, dword [str.dewlt.dll]
mov dword [eax], ecx
mov edx, dword [0x20020784]
mov dword [eax + 4], edx
mov cx, word [0x20020788]
mov word [eax + 8], cx
mov dl, byte [0x2002078a]
mov byte [eax + 0xa], dl
add esp, 8
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x2000ff4a
lea eax, [esi - 4]
jmp 0x2000ff9a
push str.dewlt
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x2000ff68
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 4
jmp 0x2000ff9a
lea ecx, [esp + 0x11c]
push ecx
call eax
push esi
cmp eax, 1
je 0x2000ff85
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0xfffffffb
jmp 0x2000ff9a
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov eax, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x718]
xor ecx, esp
call fcn.20012ef0
add esp, 0x71c
ret 8
mov ecx, dword [esp + 0x718]
xor ecx, esp
xor eax, eax
call fcn.20012ef0
add esp, 0x71c
ret 8
Function at 0x2000ffd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x618
mov eax, dword [0x20026464]
xor eax, esp
mov dword [esp + 0x614], eax
mov ecx, dword [esp + 0x61c]
push ebx
mov ebx, dword [esp + 0x624]
push esi
mov esi, dword [esp + 0x62c]
test ecx, ecx
je 0x2001012d
test ebx, ebx
je 0x2001012d
mov eax, dword [0x2002b328]
test eax, eax
jle 0x20010019
cmp eax, 0x11
jl 0x2001003b
cmp eax, 0x3e8
jle 0x20010027
cmp eax, 0x3f9
jl 0x2001003b
cmp eax, dword [0x20026270]
je 0x2001003b
cmp eax, dword [0x20026208]
jne 0x2001012d
push 0
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 0x224]
push edx
lea edx, [esp + 0x18]
push edx
push ecx
push eax
call sym.SDTAPI.DLL_SDT_ReadBaseMsg
cmp eax, 0x90
jne 0x2001012d
push 0x104
lea eax, [esp + 0x18]
push 0
push eax
call fcn.200132c0
add esp, 0xc
test esi, esi
je 0x200100d3
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x20010080
sub eax, edx
je 0x200100d3
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x20010090
sub eax, edx
cmp byte [eax + esi], 0x5c
push str.photo.wlt
jne 0x200100b9
push esi
lea ecx, [esp + 0x1c]
push str._s_s
push ecx
call fcn.2001364c
add esp, 0x10
jmp 0x200100ea
push 0x20020500
push esi
lea edx, [esp + 0x20]
push str._s_s_s
push edx
call fcn.2001364c
add esp, 0x14
jmp 0x200100ea
push str.photo.wlt
lea eax, [esp + 0x18]
push 0x2002078c
push eax
call fcn.2001364c
add esp, 0xc
lea ecx, [esp + 0x14]
push 0x20020708
push ecx
call fcn.200141ea
mov esi, eax
add esp, 8
test esi, esi
je 0x200101e1
push edi
mov edi, dword [esp + 0xc]
push esi
push edi
lea edx, [esp + 0x228]
push 1
push edx
call fcn.200140a4
add esp, 0x10
cmp edi, eax
pop edi
push esi
je 0x20010148
call fcn.20013ec6
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x61c]
pop esi
pop ebx
xor ecx, esp
call fcn.20012ef0
add esp, 0x618
ret 0xc
call fcn.20013ec6
add esp, 4
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x104
lea eax, [esp + 0x11c]
push eax
push 0x2002049c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x118]
push 0x5c
push ecx
call fcn.20012f10
mov edx, dword [str.dewlt.dll]
mov dword [eax], edx
mov ecx, dword [0x20020784]
mov dword [eax + 4], ecx
mov dx, word [0x20020788]
mov word [eax + 8], dx
mov cl, byte [0x2002078a]
add esp, 8
lea edx, [esp + 0x118]
push edx
mov byte [eax + 0xa], cl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x200101ca
lea eax, [esi - 4]
jmp 0x2001012f
push str.dewlt
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x200101eb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 4
jmp 0x2001012f
lea ecx, [esp + 0x14]
push ecx
call eax
push esi
cmp eax, 1
je 0x20010208
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0xfffffffb
jmp 0x2001012f
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0xc]
mov dword [ebx], edx
mov eax, 1
jmp 0x2001012f
Function at 0x20011960
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
ret

Function at 0x20012ef0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x20026464]
jne 0x20012efa
repz ret
jmp fcn.20014856

Function at 0x2001cc21
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.20015542
and dword [ebp - 4], 0
cmp dword [0x2002bdd8], 0
mov ebx, eax
jne 0x2001ccd2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x2001cd83
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x2001cd83
push eax
call fcn.200154d0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x2002bdd8], eax
call esi
push eax
call fcn.200154d0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x2002bddc], eax
call esi
push eax
call fcn.200154d0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x2002bde0], eax
call esi
push eax
call fcn.200154d0
pop ecx
mov dword [0x2002bde8], eax
test eax, eax
je 0x2001ccd2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.200154d0
pop ecx
mov dword [0x2002bde4], eax
mov eax, dword [0x2002bde4]
cmp eax, ebx
je 0x2001cd2a
cmp dword [0x2002bde8], ebx
je 0x2001cd2a
push eax
call fcn.2001554b
push dword [0x2002bde8]
mov esi, eax
call fcn.2001554b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x2001cd2a
test edi, edi
je 0x2001cd2a
call esi
test eax, eax
je 0x2001cd21
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x2001cd21
test byte [ebp - 0xc], 1
jne 0x2001cd2a
or dword [ebp + 0x10], 0x200000
jmp 0x2001cd63
mov eax, dword [0x2002bddc]
cmp eax, ebx
je 0x2001cd63
push eax
call fcn.2001554b
pop ecx
test eax, eax
je 0x2001cd63
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x2001cd63
mov eax, dword [0x2002bde0]
cmp eax, ebx
je 0x2001cd63
push eax
call fcn.2001554b
pop ecx
test eax, eax
je 0x2001cd63
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x2002bdd8]
call fcn.2001554b
pop ecx
test eax, eax
je 0x2001cd83
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x2001cd85
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5d7520
Capabilities:
Encode data using xor

Disassembly:
invalid
jl 0x5d74c3
adc byte [ebx + edx*8 + 0x23f63126], dh
cmp edx, ebp
dec eax
daa
mov edi, 0x2b273f68
jbe 0x5d7546
daa
cmp ch, dl
loope 0x5d755f
invalid
or al, 0x48
mov esp, 0x35ab382b
jmp 0x5d7598
cmp eax, dword [edx + 0x6a]
mov cl, ah
invalid
jmp 0xee6f9fb5
aad 0xe3
jmp 0x5d75e4
inc eax
xchg edx, eax
xchg byte [ebp + 0x23732a44], bh
inc edx
arpl word [ebx - 0x15c5d7cc], bp
xor al, 0x28
cmp ch, dl
dec eax
jp 0x5d7559
mov byte [eax], dh
mov al, 0x92
mov ebp, 0xe37c3644
xor edx, dword [edi + 0x3daebf82]
dec edx
cmp dword [eax - 0x7fd82d15], eax
not dl
daa
xor ah, 0xd0
daa
cmp ch, dl
enter 0x3b77, 0x42
mov dh, 0x87
loope 0x5d75a0
jmp 0x3947a88a
daa
xchg ebx, eax
js 0x5d7598
xor byte [edx - 0x44], bl
cmp dl, byte [ecx + 0x3a]
pushfd
dec eax
push ecx
aas
pushfd
dec eax
push ecx
cmp dword [edx + 0x6a3a2748], edx
sti
push edx
jo 0x5d75ab

Function at 0x5de966
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5de981
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124a3ba6]
pop edx
test eax, eax
je 0x5dea53
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5dea42
test dword [ebp - 0x2a8], 1
jne 0x5dea42
and dword [ebp - 0x2a8], 0x100
jne 0x5dea42
push esi
push edx
push 4
push esi
call dword [edx + 0x122d39ca]
pop edx
pop esi
test eax, eax
je 0x5de9e5
jmp 0x5dea42
cmp word [esi], 0x5a4d
jne 0x5dea42
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5dea42
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d3b3e]
pop edx
test eax, eax
je 0x5dea42
lea eax, [ebp - 0x28c]
push eax
call fcn.005de8c2
test eax, eax
jne 0x5dea3b
jmp 0x5dea42
mov eax, esi
jmp 0x5dea53
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5de981
pop esi
leave
ret 4
Function at 0x402b64
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.00404434
test esi, esi
jne 0x402b9a
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.00404524
jmp 0x402bb8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a78
mov edi, eax
test esi, esi
je 0x402bb8
cmp dword [ebx], 0
je 0x402bb8
dec esi
jmp 0x402ba1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4033a4
Capabilities:
Query or enumerate registry value

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

Function at 0x4042b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52504c], 0
je 0x404311
cmp word [0x525220], 0xd7b2
jne 0x4042d9
cmp dword [0x525228], 0
jbe 0x4042d9
mov eax, 0x52521c
call dword [0x525238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x519070
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 0x404338
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x519034], 0
jne 0x40432d
push 0
push 0x519068
push 0x519070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4069a0
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 0x406a06
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.004046b4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4069f0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a0d
lea eax, [ebp - 0x10]
call fcn.00404434
ret

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

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

Function at 0x40d624
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 0x40d65d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404524
jmp 0x40d666
mov eax, ebx
mov edx, esi
call fcn.00404488
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40dd18
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40db90
mov eax, dword [0x524234]
cmp byte [eax], 0
je 0x40dd94
mov eax, dword [0x523d7c]
call fcn.00402ce0
call fcn.004029a4
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.0040a234
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 0x40dddc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ddca
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x523ce4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x525668]
call fcn.00405e98
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 0x40e69c
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 0x40e772
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004044cc
lea eax, [ebp - 8]
call fcn.00404954
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404904
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e75c
mov eax, ebx
call fcn.0040283c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e755
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.00404904
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e73f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e784
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e73f
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 0x40e75c
mov eax, dword [ebp - 0x10]
call fcn.0040285c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e779
lea eax, [ebp - 8]
call fcn.00404434
ret

Function at 0x40edbc
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 0x40ee20
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.004046b4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004099e8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ee27
lea eax, [ebp - 0xc]
call fcn.00404434
ret

Function at 0x4280d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x52588c
cmp dword [edi], 0
jne 0x42814c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x525888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5195e0
mov ecx, 2
call fcn.00402a38
mov edx, 0x4280a8
lea eax, [esi + 5]
call fcn.004280c8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004280c8
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 0x428121
mov dword [0x525888], 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 0x429e78
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 0x429e7e
ret
Function at 0x42c3b0
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 0x42c401
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42c3e8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42c3d8
jmp 0x42c401
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 0x42c3e9
pop ebx
mov esp, ebp
pop ebp
ret