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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
jmp 0x403838
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
imul ecx, dword [ebp + 0x14]
cmp dword [ebp - 4], ecx
jge 0x403874
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov edx, 1
mov ecx, dword [ebp + 0x18]
shl edx, cl
cmp eax, edx
jl 0x403872
push 0x232
push 0x430030
push str.data_i_____1____codesize_
call fcn.0041ba94
add esp, 0xc
jmp 0x40382f
mov ecx, dword [ebp + 0x10]
imul ecx, dword [ebp + 0x14]
shl ecx, 1
push ecx
call fcn.0041916b
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x403897
or eax, 0xffffffff
jmp 0x403980
cmp dword [ebp + 0x18], 1
jne 0x4038a4
mov dword [ebp + 0x18], 2
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.00418f20
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x10]
imul edx, dword [ebp + 0x14]
shl edx, 1
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
imul ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00403990
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4038f7
mov eax, dword [ebp - 8]
push eax
call fcn.00419133
add esp, 4
or eax, 0xffffffff
jmp 0x403980
mov dword [ebp - 4], 0
jmp 0x40390c
mov ecx, dword [ebp - 4]
add ecx, 0xff
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0xc]
jge 0x403964
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
cmp eax, 0xff
jle 0x40392a
mov dword [ebp - 0x10], 0xff
jmp 0x403933
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00418f20
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 4]
push ecx
call fcn.004195d6
add esp, 0x10
jmp 0x403900
mov edx, dword [ebp + 0xc]
push edx
push 0
call fcn.00418f20
add esp, 8
mov eax, dword [ebp - 8]
push eax
call fcn.00419133
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40c8a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0
jmp 0x40c8bf
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x40c8ea
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
xor eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x430348]
mov dword [ebp - 8], ecx
jmp 0x40c8b6
mov eax, dword [ebp - 8]
xor eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x40d040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x431810
mov eax, dword [ebp + 0x10]
push eax
call fcn.00418f0b
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40d065
mov eax, 0x4f
jmp 0x40d089
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004195d6
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call fcn.00418c8b
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40d670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x43180c
mov eax, dword [ebp + 0x10]
push eax
call fcn.00418f0b
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40d697
mov eax, 0x4e
jmp 0x40d6cd
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004193d1
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00418c8b
add esp, 4
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
je 0x40d6cb
mov eax, 0x4e
jmp 0x40d6cd
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4184d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x431858
mov eax, dword [ebp + 8]
push eax
call fcn.00418f0b
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4184fa
mov eax, 1
jmp 0x4185b6
push 0x43185c
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00418f0b
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41851e
mov eax, 1
jmp 0x4185b6
mov edx, dword [ebp - 4]
push edx
call fcn.0041d141
add esp, 4
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.004190b0
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call fcn.0041cef0
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call fcn.0041d141
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.0041916b
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
call fcn.004193d1
add esp, 0x10
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
call fcn.004195d6
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00419133
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call fcn.00418c8b
add esp, 4
mov eax, dword [ebp - 4]
push eax
call fcn.00418c8b
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4185c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x10]
sar eax, 8
mov ecx, dword [ebp + 0x10]
shl ecx, 8
or eax, ecx
mov word [ebp - 8], ax
mov edx, dword [ebp + 8]
push edx
push 1
push 2
lea eax, [ebp - 8]
push eax
call fcn.004195d6
add esp, 0x10
mov ecx, dword [ebp + 0x14]
sar ecx, 8
mov edx, dword [ebp + 0x14]
shl edx, 8
or ecx, edx
mov word [ebp - 8], cx
mov eax, dword [ebp + 8]
push eax
push 1
push 2
lea ecx, [ebp - 8]
push ecx
call fcn.004195d6
add esp, 0x10
mov edx, 0x10
mov word [ebp - 8], dx
mov eax, dword [ebp + 8]
push eax
push 1
push 2
lea ecx, [ebp - 8]
push ecx
call fcn.004195d6
add esp, 0x10
mov dword [ebp - 0x1c], 0
jmp 0x418641
mov edx, dword [ebp - 0x1c]
add edx, 4
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0x10]
imul eax, dword [ebp + 0x14]
shl eax, 2
cmp dword [ebp - 0x1c], eax
jge 0x4186e8
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x1c]
mov dl, byte [ecx]
mov byte [ebp - 1], dl
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x1c]
mov cl, byte [eax + 1]
mov byte [ebp - 3], cl
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x1c]
mov al, byte [edx + 2]
mov byte [ebp - 2], al
movzx ecx, byte [ebp - 2]
sar ecx, 3
and ecx, 0x1f
mov word [ebp - 0x18], cx
movzx edx, byte [ebp - 3]
sar edx, 2
and edx, 0x3f
shl edx, 5
mov word [ebp - 0x14], dx
movzx eax, byte [ebp - 1]
sar eax, 3
and eax, 0x1f
shl eax, 0xb
mov word [ebp - 0x10], ax
movzx ecx, word [ebp - 0x10]
movzx edx, word [ebp - 0x14]
or ecx, edx
movzx eax, word [ebp - 0x18]
or ecx, eax
mov word [ebp - 0xc], cx
movzx ecx, word [ebp - 0xc]
sar ecx, 8
movzx edx, word [ebp - 0xc]
shl edx, 8
or ecx, edx
mov word [ebp - 8], cx
mov eax, dword [ebp + 8]
push eax
push 1
push 2
lea ecx, [ebp - 8]
push ecx
call fcn.004195d6
add esp, 0x10
jmp 0x418638
mov edx, dword [ebp + 0x10]
imul edx, dword [ebp + 0x14]
lea eax, [edx + edx + 6]
and eax, 0x800001ff
jns 0x418701
dec eax
or eax, 0xfffffe00
inc eax
mov ecx, 0x200
sub ecx, eax
and ecx, 0x800001ff
jns 0x418718
dec ecx
or ecx, 0xfffffe00
inc ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0
jmp 0x41872d
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jae 0x41874f
mov byte [ebp - 1], 0
mov ecx, dword [ebp + 8]
push ecx
push 1
push 1
lea edx, [ebp - 1]
push edx
call fcn.004195d6
add esp, 0x10
jmp 0x418724
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4187b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0x43187c
call fcn.0041966d
add esp, 4
push str.This_is_a_utility_to_create_or_remove_custom_screen_saver_images_n
call fcn.0041966d
add esp, 4
push str.on_the_Hubbell_NX_Simple_Touch_Display._n_n
call fcn.0041966d
add esp, 4
push str.To_Create_a_custom_screen_saver_image:_n
call fcn.0041966d
add esp, 4
push str.SimpleTouch_ImgConv__Image___drive__n
call fcn.0041966d
add esp, 4
push str._Image_:_path_and_name_of_source_image_n
call fcn.0041966d
add esp, 4
push 0x431968
call fcn.0041966d
add esp, 4
push 0x4319a0
call fcn.0041966d
add esp, 4
push str.SimpleTouch_ImgConv_mylogo.jpg_E:_n
call fcn.0041966d
add esp, 4
push 0x4319d0
call fcn.0041966d
add esp, 4
push str.To_Remove_a_custom_screen_saver_image:_n
call fcn.0041966d
add esp, 4
push str.SimpleTouch_ImgConv__remove__drive__n
call fcn.0041966d
add esp, 4
push str._drive_:_drive_letter_of_the_Simple_Touch_microSD_card_n
call fcn.0041966d
add esp, 4
push str.Example:_n
call fcn.0041966d
add esp, 4
push str.SimpleTouch_ImgConv__remove_E:_n
call fcn.0041966d
add esp, 4
push 0x431a88
call fcn.0041966d
add esp, 4
push str.Image_can_be_any_of_the_following_formats:_.bmp__.jpg__.png__.gif_n
call fcn.0041966d
add esp, 4
push str.SimpleTouch_ImgConv_Version_1.0_n
call fcn.0041966d
add esp, 4
push str._C__Hubbell_Control_Solutions_2018_n
call fcn.0041966d
add esp, 4
push 1
call fcn.00419c0b
pop ebp
ret
Function at 0x4224e7
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x431c94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00420d55
mov dword [ebp - 0x14], eax
cmp dword [0x433af4], esi
jne 0x4225da
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x422567
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4226ba
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4226ba
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4226ba
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x433af4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x433af8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x433afc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x433b04], eax
test eax, eax
je 0x4225d7
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x433b00], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4225ff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4225f2
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x422614
push 4
pop eax
jmp 0x4226bc
cmp dword [ebp - 0x14], esi
je 0x422614
push dword [0x433af4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4225f9
mov eax, dword [0x433b00]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x422672
cmp dword [0x433b04], edi
je 0x422672
push eax
call ebx
push dword [0x433b04]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x422672
test eax, eax
je 0x422672
call ecx
test eax, eax
je 0x422667
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x422667
test byte [ebp - 8], 1
jne 0x422672
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4226a2
mov eax, dword [0x433af8]
cmp eax, edi
je 0x42269f
push eax
call ebx
test eax, eax
je 0x42269f
call eax
mov esi, eax
test esi, esi
je 0x42269f
mov eax, dword [0x433afc]
cmp eax, edi
je 0x42269f
push eax
call ebx
test eax, eax
je 0x42269f
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x433af4]
call ebx
test eax, eax
je 0x4226ba
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4226bc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004191fd
mov esp, ebp
pop ebp
ret
Function at 0x402d10
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 0x402d4d
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 0x402d6d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404e14
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402f4c
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 0x402fa5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402de8
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402de8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f8f
inc ebx
jmp 0x402f78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fac
lea eax, [ebp - 8]
call fcn.00404ba4
ret

Function at 0x402fb4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404ba4
test esi, esi
jne 0x402feb
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.00404c94
jmp 0x40300c
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402de8
mov dword [esp], eax
test esi, esi
je 0x40300c
cmp dword [ebx], 0
je 0x40300c
dec esi
jmp 0x402ff3
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403c00
Capabilities:
Query or enumerate registry value

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

Disassembly:
push ecx
cmp byte [0x47204c], 0
je 0x4049fd
cmp word [0x472220], 0xd7b2
jne 0x4049c5
cmp dword [0x472228], 0
jbe 0x4049c5
mov eax, 0x47221c
call dword [0x472238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x470074
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 0x404a24
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x470034], 0
jne 0x404a19
push 0
push 0x47006c
push 0x470074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404b58
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.00402b10
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x47204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404b20
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406b8c
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 0x406bf2
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.00404e14
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004037c4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406bdc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406bf9
lea eax, [ebp - 0x10]
call fcn.00404ba4
ret

Function at 0x40c360
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 0x40c399
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404c94
jmp 0x40c3a2
mov eax, ebx
mov edx, esi
call fcn.00404bf8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40ca64
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c8cc
mov eax, dword [0x471124]
cmp byte [eax], 0
je 0x40cae0
mov eax, dword [0x470f18]
call fcn.00403438
call fcn.00402c9c
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.00409a48
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 0x40cb28
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cb16
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x470ec4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x472668]
call fcn.00405fdc
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 0x40d3cc
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 0x40d4a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404c3c
lea eax, [ebp - 8]
call fcn.004050b4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405064
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d48c
mov eax, ebx
call fcn.00402b10
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d485
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.00405064
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d46f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d4b4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d46f
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 0x40d48c
mov eax, dword [ebp - 0x10]
call fcn.00402b40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d4a9
lea eax, [ebp - 8]
call fcn.00404ba4
ret

Function at 0x40da08
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 0x40da6c
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.00404e14
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004094d8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da73
lea eax, [ebp - 0xc]
call fcn.00404ba4
ret

Function at 0x41e738
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.0041e590
dec esi
jne 0x41e75a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41f8b4
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, 0x47288c
cmp dword [esi], 0
jne 0x41f95a
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 [0x472888]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x470404
mov ecx, 2
call fcn.00402da8
mov edx, 0x41f88c
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041f8ac
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.0041f8ac
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 0x41f921
mov eax, dword [ebp - 8]
mov dword [0x472888], 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 0x420e10
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 0x420e16
ret

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