joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472e90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4917e1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4ae7cc]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, dword [0x4ae7cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea esi, [esp + 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
call fcn.00473130
push eax
mov esi, 1
push edi
mov dword [esp + 0x40], esi
call fcn.00472d70
add esp, 8
mov byte [esp + 0x38], 0
cmp dword [esp + 0x24], 0x10
mov dword [esp + 8], esi
jb 0x472f04
mov eax, dword [esp + 0x10]
push eax
call fcn.00475405
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00475410
add esp, 0x34
ret

Function at 0x473130
Capabilities:
Identify system language via api

Disassembly:
sub esp, 8
push edi
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
call fcn.00473030
lea eax, [eax + eax*2]
add eax, eax
mov ecx, dword [eax + eax + 0x49962c]
add eax, eax
add esp, 4
test ecx, ecx
jne 0x473166
mov ecx, dword [eax + 0x499628]
mov eax, ecx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x473180
sub eax, edi
push eax
push ecx
mov ecx, esi
call fcn.00402d50
mov eax, esi
pop edi
add esp, 8
ret

Function at 0x473e80
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20
mov eax, dword [0x4ae7cc]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
call fcn.00473f80
mov eax, dword [esp + 4]
add esp, 4
cmp dword [esp + 0x14], 8
jae 0x473ea8
lea eax, [esp]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [esp + 0x18], 8
jb 0x473ec9
mov ecx, dword [esp + 4]
push ecx
call fcn.00475405
add esp, 4
mov ecx, dword [esp + 0x20]
mov al, bl
pop ebx
xor ecx, esp
call fcn.00475410
add esp, 0x20
ret

Function at 0x474470
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov dword [esp + 4], 0
mov eax, dword [esi + 4]
sub eax, 0
push edi
je 0x47449f
dec eax
je 0x474498
dec eax
je 0x474491
xor al, al
pop edi
add esp, 8
ret
mov eax, 1
jmp 0x4744a4
mov eax, 2
jmp 0x4744a4
mov eax, 4
push 0
push 0
push 0
push eax
mov eax, dword [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
je 0x47448a
mov edx, dword [esi + 0x4c]
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 8], 0
mov edi, eax
ja 0x47448a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
jne 0x4744eb
test eax, eax
jne 0x47448a
mov dword [esi + 0xc], edi
mov al, 1
pop edi
add esp, 8
ret

Function at 0x475410
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ae7cc]
jne 0x47541a
repz ret
jmp fcn.0047aa1a
Function at 0x485dde
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ae7cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0047ea7b
and dword [ebp - 0x14], 0
cmp dword [0x4b1d64], 0
mov dword [ebp - 0x18], eax
jne 0x485e91
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x485f39
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4991ac
push ebx
call edi
test eax, eax
je 0x485f39
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4b1d64], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4b1d68], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4b1d6c], eax
call edi
push eax
call esi
mov dword [0x4b1d74], eax
test eax, eax
je 0x485e91
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4b1d70], eax
mov eax, dword [0x4b1d70]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x485eea
cmp dword [0x4b1d74], ecx
je 0x485eea
push eax
call esi
push dword [0x4b1d74]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x485eea
test ebx, ebx
je 0x485eea
call edi
test eax, eax
je 0x485ee1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x485ee1
test byte [ebp - 8], 1
jne 0x485eea
or dword [ebp + 0x10], 0x200000
jmp 0x485f1d
mov eax, dword [0x4b1d68]
cmp eax, dword [ebp - 0x18]
je 0x485f1d
push eax
call esi
test eax, eax
je 0x485f1d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x485f1d
mov eax, dword [0x4b1d6c]
cmp eax, dword [ebp - 0x18]
je 0x485f1d
push eax
call esi
test eax, eax
je 0x485f1d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b1d64]
call esi
test eax, eax
je 0x485f39
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x485f3b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475410
leave
ret
Function at 0x40c1a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov eax, dword [0x43300c]
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x21a]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x20a
push 0
push edi
call fcn.0040fff0
add esp, 0xc
push ebx
call fcn.00416af2
add esp, 4
xor esi, esi
cmp eax, 0x104
ja 0x40c210
mov esi, dword [ebp + 0xc]
push 0x104
push ebx
push edi
call fcn.00416f6b
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [esi], ecx
mov esi, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e0d1
mov eax, esi
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40c290
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x254
mov eax, dword [0x43300c]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40c2fc
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40c332
lea eax, [ebp - 0x22c]
push 0x105
push eax
push 0x4347a4
call fcn.00416f6b
add esp, 0xc
mov esi, 0x4347a4
mov word [0x4349ac], 0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040e0d1
mov eax, esi
add esp, 0x254
pop esi
pop ebp
ret
lea ecx, [ebp - 0x258]
lea eax, [esi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40c2c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004141ec
cmp esi, 2
mov ecx, 9
cmove ecx, esi
xor esi, esi
mov dword [eax], ecx
jmp 0x40c2e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x12
je 0x40c2e7
call fcn.004141ec
mov dword [eax], 2
jmp 0x40c2e7
Function at 0x40e810
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x431a80
call fcn.0040e2a0
push 1
call fcn.0040dd8f
pop ecx
test al, al
je 0x40e7ee
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040dd40
mov byte [ebp - 0x24], al
mov eax, dword [0x433a1c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x40e7ee
test eax, eax
jne 0x40e70c
mov dword [0x433a1c], ecx
push 0x4305b0
push 0x430594
call fcn.004147c9
pop ecx
pop ecx
test eax, eax
je 0x40e6ef
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40e7de
push 0x430590
push 0x430588
call fcn.0041476d
pop ecx
pop ecx
mov dword [0x433a1c], 2
jmp 0x40e711
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040dd72
pop ecx
call fcn.0040e923
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x40e742
push esi
call fcn.0040dcac
pop ecx
test al, al
je 0x40e742
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [section..00cfg]
call esi
call fcn.0040e929
mov esi, eax
cmp dword [esi], edi
je 0x40e760
push esi
call fcn.0040dcac
pop ecx
test al, al
je 0x40e760
push dword [esi]
call fcn.00413632
pop ecx
call fcn.00410822
mov edi, dword [eax]
call fcn.0041081c
mov esi, eax
call fcn.0041427d
push eax
push edi
push dword [esi]
call main
add esp, 0xc
mov esi, eax
call fcn.0040df16
test al, al
je 0x40e7f5
test bl, bl
jne 0x40e793
call fcn.00413614
push 0
push 1
call fcn.0040ddc8
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40e7de
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.0040df74
push esi
call fcn.004135e8
push dword [ebp - 0x20]
call fcn.004135fe
int3
call 0x4c7000
jmp 0x40e682

Function at 0x41d959
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041dba4

Function at 0x420360
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042036b
Function at 0x4027fc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x402c90
Capabilities:
Query or enumerate registry value

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

Function at 0x403720
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x418044], 0
je 0x403781
cmp word [0x418218], 0xd7b2
jne 0x403749
cmp dword [0x418220], 0
jbe 0x403749
mov eax, 0x418214
call dword [0x418230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x411064
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 0x4037a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x411028], 0
jne 0x40379d
push 0
push 0x41105c
push 0x411064
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4038d4
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.00402548
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x418045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40389c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x404a30
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404c60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ab3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404c60
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ab3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404c7c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404b3c
xor eax, eax
push ebp
push 0x404b35
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404878
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404b1a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404c9c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404b1a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404b3c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404c56
cmp byte [ebp - 0xd], 0
jne 0x404b83
cmp byte [ebp - 0x12], 0
je 0x404c56
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404b9c
dec ebx
cmp byte [ebx], 0x2e
je 0x404bab
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404b9b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404c56
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404be8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404c56
cmp byte [ebp - 0xd], 0
je 0x404c56
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404c56
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404b3c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404c60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ab3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404c60
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ab3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404c7c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404b3c
xor eax, eax
push ebp
push 0x404b35
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404878
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404b1a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404c9c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404b1a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404b3c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404c56
cmp byte [ebp - 0xd], 0
jne 0x404b83
cmp byte [ebp - 0x12], 0
je 0x404c56
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404b9c
dec ebx
cmp byte [ebx], 0x2e
je 0x404bab
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404b9b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404c56
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404be8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404c56
cmp byte [ebp - 0xd], 0
je 0x404c56
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404c56
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404e48
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 0x404eae
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.00403b6c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402884
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404e98
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404eb5
lea eax, [ebp - 0x10]
call fcn.00403918
ret

Function at 0x407028
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 0x407061
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403a08
jmp 0x40706a
mov eax, ebx
mov edx, esi
call fcn.0040396c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40771c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x407594
mov eax, dword [0x417874]
cmp byte [eax], 0
je 0x407798
mov eax, dword [0x4177c8]
call fcn.0040273c
call fcn.0040263c
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.0040651c
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 0x4077e0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4077ce
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4177a8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x418660]
call fcn.0040483c
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 0x40818c
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 0x4081f0
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.00403b6c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004063f0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4081f7
lea eax, [ebp - 0xc]
call fcn.00403918
ret
Function at 0x409294
Capabilities:
Allocate or change rwx memory
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff7cc
mov dword [esp], edx
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileW
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0xffffffff
je 0x409461
lea eax, [esp + 4]
mov edx, 6
call fcn.004054b4
push 0
lea eax, [esp + 0x20]
push eax
push 6
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_ReadFile
push 0
lea eax, [esp + 0x20]
push eax
movzx eax, word [esp + 0x10]
shl eax, 4
push eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_ReadFile
movzx eax, word [esp + 8]
dec eax
imul eax, eax, 0xe
add eax, 0x14
mov dword [esp + 0x18], eax
push 0x40
push 0x3000
mov eax, dword [esp + 0x20]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebp, eax
mov ax, word [esp + 8]
mov word [ebp + 4], ax
mov word [ebp], 0
mov word [ebp + 2], 1
movzx edi, word [ebp + 4]
dec edi
test edi, edi
jl 0x409386
inc edi
xor esi, esi
lea ebx, [esp + 0x24]
mov eax, esi
shl eax, 3
sub eax, esi
lea edx, [ebp + eax*2 + 6]
mov eax, ebx
mov ecx, 0xc
call fcn.0040268c
mov eax, esi
shl eax, 3
sub eax, esi
mov edx, esi
inc edx
mov word [ebp + eax*2 + 0x12], dx
inc esi
add ebx, 0x10
dec edi
jne 0x409359
push 0
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_BeginUpdateResourceW
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push eax
push ebp
push 0
push 1
push 0xe
mov eax, dword [esp + 0x24]
push eax
call sub.kernel32.dll_UpdateResourceW
movzx edi, word [ebp + 4]
dec edi
test edi, edi
jl 0x40943c
inc edi
xor esi, esi
lea ebx, [esp + 0x2c]
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
push 0x40
push 0x3000
mov eax, dword [esp + 0x1c]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp + 0x20], eax
push 0
push 0
mov eax, dword [ebx + 4]
push eax
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
push eax
push 0
lea eax, [esi + 1]
push eax
push 3
mov eax, dword [esp + 0x24]
push eax
call sub.kernel32.dll_UpdateResourceW
push 0x8000
push 0
mov eax, dword [esp + 0x28]
push eax
call sub.kernel32.dll_VirtualFree_1
inc esi
add ebx, 0x10
dec edi
jne 0x4093c0
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_EndUpdateResourceW
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_CloseHandle
push 0x8000
push 0
push ebp
call sub.kernel32.dll_VirtualFree_1
mov bl, 1
mov eax, ebx
add esp, 0x834
pop ebp
pop edi
pop esi
pop ebx
ret