joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4050a0
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ecx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x40528a
cmp esi, 0xffffffff
je 0x40528a
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x405283
cmp eax, 0xffffffff
je 0x405283
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x40527a
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x405273
cmp dword [ebp - 0x24], 0
jne 0x405273
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x405273
cmp eax, 0x40
jbe 0x405273
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x405273
mov edx, dword [edi + 0x3c]
add edx, edi
mov dword [ebp - 0x10], edx
cmp dword [edx], 0x4550
jne 0x405273
mov esi, dword [edx + 0x80]
mov byte [ebp - 4], bl
test esi, esi
je 0x405268
movzx eax, word [edx + 6]
xor ecx, ecx
movzx ebx, ax
mov dword [ebp - 0x14], eax
xor eax, eax
cmp ax, bx
jae 0x405268
movzx eax, cx
lea eax, [eax + eax*4]
mov edi, dword [edx + eax*8 + 0x104]
lea edx, [edx + eax*8]
cmp esi, edi
jb 0x4051b3
mov eax, dword [edx + 0x108]
add eax, edi
cmp esi, eax
jb 0x4051c2
inc ecx
cmp cx, bx
jae 0x405265
mov edx, dword [ebp - 0x10]
jmp 0x405193
mov eax, dword [edx + 0x10c]
sub eax, edi
mov edi, dword [ebp - 8]
add eax, esi
je 0x405268
cmp dword [eax + edi], 0
lea ecx, [eax + edi]
mov dword [ebp - 0xc], ecx
je 0x405268
mov eax, dword [ebp - 0x14]
movzx ebx, ax
nop dword [eax + eax]
mov edi, dword [ecx + 0xc]
xor edx, edx
xor eax, eax
cmp dx, bx
jae 0x40522c
nop dword [eax]
mov edx, dword [ebp - 0x10]
movzx ecx, ax
lea ecx, [ecx + ecx*4]
mov esi, dword [edx + ecx*8 + 0x104]
lea edx, [edx + ecx*8]
cmp edi, esi
jb 0x405223
mov ecx, dword [edx + 0x108]
add ecx, esi
cmp edi, ecx
jb 0x405256
inc eax
cmp ax, bx
jb 0x405200
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov edi, dword [ebp - 8]
mov edx, dword [ebp - 4]
movzx edx, dl
cmp dword [eax + edi], 0x4356534d
mov eax, 1
cmove edx, eax
add ecx, 0x14
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ecx
cmp dword [ecx], 0
jne 0x4051f0
jmp 0x40526b
mov eax, dword [edx + 0x10c]
mov ecx, dword [ebp - 0xc]
sub eax, esi
add eax, edi
jmp 0x40522e
mov edi, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 0x18]
test dl, dl
sete bl
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40efb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450b18
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x470094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
mov edi, dword [ebp + 8]
push edi
call dword [eax + 0x24]
mov esi, eax
mov dword [ebp + 8], esi
push dword [ebp + 0x10]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
call dword [eax + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
push 0
push dword [ebp + 0x14]
push esi
push edi
call dword [eax + 0x30]
mov edx, dword [esi]
mov ecx, esi
push 1
mov edi, eax
call dword [edx]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40f910
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450ca8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x470094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x24]
mov esi, eax
mov dword [ebp - 0x10], esi
push dword [ebp + 0x14]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push esi
call dword [eax + 0x28]
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 0xc]
mov eax, dword [edi]
mov ecx, edi
push esi
mov eax, dword [eax + 0x30]
call eax
mov edx, dword [esi]
mov ecx, esi
push 1
mov bl, al
call dword [edx]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x42a630
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x10]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, esi
shr edi, 2
test edi, edi
je 0x42a678
mov esi, ebp
mov dword [esp + 0x10], edi
mov edx, ecx
sub esi, ecx
jmp 0x42a660
mov eax, dword [esi + edx]
lea edx, [edx + 4]
xor eax, dword [edx - 4]
or ebx, eax
sub edi, 1
jne 0x42a660
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
shl eax, 2
sub esi, eax
jne 0x42a68c
pop edi
xor eax, eax
test ebx, ebx
pop esi
pop ebp
sete al
pop ebx
pop ecx
ret
add ebp, eax
add ecx, eax
mov edx, ebx
mov eax, ebx
shr edx, 0x18
shr eax, 0x10
or dl, al
mov eax, ebx
shr eax, 8
or dl, al
or dl, bl
test esi, esi
je 0x42a6c0
sub ebp, ecx
jmp 0x42a6b0
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
or dl, al
sub esi, 1
jne 0x42a6b0
pop edi
xor eax, eax
test dl, dl
pop esi
pop ebp
sete al
pop ebx
pop ecx
ret
Function at 0x42a6d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, edx
mov dword [esp + 8], 0
shr ebp, 2
push edi
mov edi, dword [esp + 0x1c]
test ebp, ebp
je 0x42a72b
mov edx, edi
mov dword [esp + 0xc], ebp
mov ecx, ebx
sub edx, eax
sub ecx, eax
push esi
mov esi, eax
mov edi, ecx
jmp 0x42a710
mov ecx, dword [edx + esi]
lea esi, [esi + 4]
xor ecx, dword [esi - 4]
mov dword [edi + esi - 4], ecx
sub ebp, 1
jne 0x42a710
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
pop esi
mov ecx, dword [esp + 0xc]
shl ecx, 2
sub edx, ecx
je 0x42a756
add ebx, ecx
add edi, ecx
add eax, ecx
test edx, edx
je 0x42a756
sub edi, eax
sub ebx, eax
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + ebx - 1], cl
sub edx, 1
jne 0x42a744
pop edi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x42a760
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
push ebx
mov ebx, edx
mov dword [esp + 4], 0
shr ebx, 2
push edi
mov edi, dword [esp + 0x14]
test ebx, ebx
je 0x42a7a0
push ebp
mov ebp, edi
mov dword [esp + 0xc], ebx
push esi
mov esi, eax
sub ebp, eax
lea esp, [esp]
mov ecx, dword [esi + ebp]
lea esi, [esi + 4]
xor dword [esi - 4], ecx
sub ebx, 1
jne 0x42a790
pop esi
pop ebp
mov ecx, dword [esp + 8]
shl ecx, 2
sub edx, ecx
je 0x42a7c3
add eax, ecx
add edi, ecx
test edx, edx
je 0x42a7c3
sub edi, eax
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x42a7b5
pop edi
pop ebx
pop ecx
ret

Function at 0x42a850
Capabilities:
Hash data using sha256

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, 8
mov esi, 0x456390
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret
Function at 0x432c00
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
xor edx, edx
push esi
mov dword [esp + 0x18], edx
push edi
lea ecx, [ecx]
movzx edi, byte [edx + 0x456850]
mov eax, edi
mov dword [esp + 0x10], edi
shr eax, 5
mov esi, edi
mov edx, eax
shr esi, 6
mov ebx, eax
lea ecx, [edi + edi]
xor ecx, edi
and eax, 1
mov dword [esp + 0x14], eax
and ebx, 2
shr edi, 7
and edx, 4
imul eax, edi, 0x1b000000
lea ebp, [ecx + ecx]
mov dword [esp + 0x18], edx
xor ebp, dword [esp + 0x10]
mov edx, esi
shl ebp, 0x19
and esi, 1
shl ecx, 2
and edx, 2
xor ebp, eax
xor ecx, dword [esp + 0x10]
imul eax, dword [esp + 0x14], 0x1b000000
shl ecx, 8
xor ebp, eax
imul eax, ebx, 0x1b000000
xor ebp, eax
imul eax, esi, 0x1b000000
xor ebp, eax
imul eax, edx, 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x18], 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x14], 0x11b00
xor ecx, eax
imul eax, ebx, 0x11b00
xor ecx, eax
imul eax, esi, 0x11b00
mov esi, dword [esp + 0x18]
xor ecx, eax
imul eax, edx, 0x11b00
mov edx, dword [esp + 0x10]
xor ecx, eax
imul eax, esi, 0x11b00
xor ecx, eax
mov eax, dword [esp + 0x10]
or ebp, ecx
lea ecx, [eax*8]
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b0000
shl ecx, 0x10
xor ecx, eax
imul eax, ebx, 0x11b0000
xor ecx, eax
imul eax, esi, 0x11b0000
xor ecx, eax
mov eax, dword [esp + 0x10]
or ebp, ecx
lea ecx, [eax*4]
xor ecx, eax
imul eax, edi, 0x11b
add ecx, ecx
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b
xor ecx, eax
imul eax, ebx, 0x11b
xor ecx, eax
imul eax, esi, 0x11b
xor ecx, eax
xor eax, eax
xor ecx, edx
or edx, ebp
or ecx, ebp
or eax, edx
mov edx, dword [esp + 0x1c]
mov dword [edx*8 + 0x474720], eax
mov dword [edx*8 + 0x474724], ecx
inc edx
mov dword [esp + 0x1c], edx
cmp edx, 0x100
jl 0x432c10
pop edi
pop esi
pop ebp
mov byte [0x474f21], 1
pop ebx
add esp, 0x10
ret

Function at 0x432d60
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
xor eax, eax
push edi
movzx esi, byte [eax + str.cw]
mov edx, esi
mov ecx, esi
shr edx, 7
imul edi, edx, 0x1b000000
shl ecx, 0x19
imul edx, edx, 0x11b
xor edi, ecx
mov ecx, esi
shl ecx, 8
or ecx, esi
shl ecx, 8
or edi, ecx
lea ecx, [esi + esi]
xor edx, ecx
xor ecx, ecx
xor edx, esi
or ecx, edi
or edx, edi
mov dword [eax*8 + 0x473f10], ecx
mov dword [eax*8 + 0x473f14], edx
inc eax
cmp eax, 0x100
jl 0x432d64
pop edi
mov dword [0x474718], 0
mov dword [0x47471c], 0
mov dword [0x474710], 0
mov dword [0x474714], 0
mov byte [0x474f20], 1
pop esi
ret
Function at 0x434d50
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4538c8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x470094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x474f24], 0
mov esi, dword [ebp + 8]
jne 0x434da5
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x434da5
push str.SystemFunction036
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x474f24], eax
mov eax, dword [0x474f24]
test eax, eax
je 0x434db8
push dword [ebp + 0xc]
push esi
call eax
test eax, eax
jne 0x434dfa
push 0xc
push str.RtlGenRandom
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00409c90
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.00434b50
push 0x46e370
lea eax, [ebp - 0x50]
push eax
call fcn.0043a9f6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043844a
mov esp, ebp
pop ebp
ret 8

Function at 0x4434cf
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044336a

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x3bac0d29
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x2e9308b
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
call 0x43100c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x402ce4
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 0x402d21
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 0x402d41
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404ca4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402f20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402f79
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402dbc
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402dbc
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f63
inc ebx
jmp 0x402f4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f80
lea eax, [ebp - 8]
call fcn.00404a24
ret

Function at 0x402f88
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a24
test esi, esi
jne 0x402fbf
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.00404b14
jmp 0x402fe0
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402dbc
mov dword [esp], eax
test esi, esi
je 0x402fe0
cmp dword [ebx], 0
je 0x402fe0
dec esi
jmp 0x402fc7
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403afc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47a020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b94
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b74
xor eax, eax
push ebp
push 0x403b6d
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 0x403bb0
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 0x403b74
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x47a020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47a020], ax
mov esp, ebp
pop ebp
ret
Function at 0x4048a0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47d04c], 0
je 0x404901
cmp word [0x47d220], 0xd7b2
jne 0x4048c9
cmp dword [0x47d228], 0
jbe 0x4048c9
mov eax, 0x47d21c
call dword [0x47d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47a090
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 0x404928
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47a030], 0
jne 0x40491d
push 0
push 0x47a088
push 0x47a090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406b28
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 0x406b8e
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.00404ca4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004036c0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406b78
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406b95
lea eax, [ebp - 0x10]
call fcn.00404a24
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ef4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4096bd
test al, 0x10
jne 0x4096c1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c874
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 0x40c8ad
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b14
jmp 0x40c8b6
mov eax, ebx
mov edx, esi
call fcn.00404a78
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d0c4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cf2c
mov eax, dword [0x47c50c]
cmp byte [eax], 0
je 0x40d140
mov eax, dword [0x47c27c]
call fcn.00403364
call fcn.00402c64
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.00409a78
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 0x40d188
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d176
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47c214]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47d668]
call fcn.00405f78
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 0x40da38
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 0x40db0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404abc
lea eax, [ebp - 8]
call fcn.00404f44
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ef4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40daf8
mov eax, ebx
call fcn.00402ad8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40daf1
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.00404ef4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40dadb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40db20
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40dadb
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 0x40daf8
mov eax, dword [ebp - 0x10]
call fcn.00402b08
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db15
lea eax, [ebp - 8]
call fcn.00404a24
ret

Function at 0x40e074
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 0x40e0d8
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.00404ca4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409304
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e0df
lea eax, [ebp - 0xc]
call fcn.00404a24
ret

Function at 0x40f248
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.00404a24
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00404ef4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40f28d
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404b14
jmp 0x40f2a6
mov edx, ebx
dec edx
mov eax, esi
call fcn.00405080
push ebx
mov eax, dword [esi]
call fcn.00404ef4
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret