joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f2d64
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4f2ea3
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 4]
mov edx, dword [ebx + 0x1c]
sub edx, dword [ebx + 0x18]
lea eax, [ebp - 8]
call fcn.00404244
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
xor ecx, ecx
mov edx, 0x44b
mov eax, esi
call fcn.004351c0
mov eax, dword [ebx + 0xc]
cmp eax, 0x201
jne 0x4f2e1d
test byte [ebx + 0x10], 1
je 0x4f2e1d
mov byte [esi + 0x382], 1
lea eax, [ebp - 0x14]
push eax
call sub.user32.dll_GetCursorPos
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.00433da0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xd7
mov eax, esi
call fcn.0043a4d0
push eax
call sub.user32.dll_SendMessageA
cmp eax, dword [ebx + 0x1c]
jg 0x4f2e14
cmp eax, dword [ebx + 0x18]
jge 0x4f2e8d
mov byte [esi + 0x382], 0
jmp 0x4f2e8d
cmp eax, 0x202
jne 0x4f2e8d
cmp byte [esi + 0x382], 0
je 0x4f2e8d
mov byte [ebp - 9], 1
mov byte [esi + 0x382], 0
lea ecx, [ebp - 9]
mov edx, dword [ebp - 8]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xf8]
cmp byte [ebp - 9], 0
je 0x4f2e8d
mov eax, dword [0x531558]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.00451640
push 1
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004040d4
push eax
push 0x4f2eb0
mov eax, esi
call fcn.0043a4d0
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x531558]
mov eax, dword [eax]
xor edx, edx
call fcn.00451640
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2eaa
lea eax, [ebp - 8]
call fcn.00403c90
ret
Function at 0x10017d30
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x10073040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x414]
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x10017d70
call fcn.10016590
jmp 0x10017e80
cmp dword [ebp - 0x41c], 0x100
jbe 0x10017d86
mov eax, 0x80020013
jmp 0x10017e80
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0x10049168
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x10017daf
call fcn.10016590
jmp 0x10017e80
mov eax, 2
imul ecx, eax, 0x103
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 0x208
jae 0x10017dce
jmp 0x10017dd3
call fcn.100058a5
xor edx, edx
mov eax, dword [ebp - 0x420]
mov word [ebp + eax - 0x20c], dx
push 0
push 0x2100
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0xffffffff
jne 0x10017e18
call fcn.10016590
jmp 0x10017e80
push 0
lea edx, [ebp - 0x42c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jne 0x10017e4c
call fcn.10016590
jmp 0x10017e80
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x10017e6f
call fcn.10016590
jmp 0x10017e80
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.10001cd0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100053f5
mov esp, ebp
pop ebp
ret
Function at 0x10018340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042055
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10073040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0x10]
test eax, eax
jne 0x100183ca
mov ecx, dword [ebp + 8]
call fcn.10001750
mov dword [ebp - 0x1c], eax
push 0x10049014
lea ecx, [ebp - 0x2c]
call fcn.100050a0
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
call fcn.100017a0
push eax
mov ecx, dword [ebp - 0x28]
call fcn.10004d80
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xb0]
call edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10005030
movzx eax, byte [ebp + 0x10]
test eax, eax
jne 0x100183ed
cmp dword [ebp - 0x10], 0
jl 0x100183ed
push 0
mov ecx, dword [ebp + 0xc]
call fcn.100017c0
movzx ecx, al
test ecx, ecx
je 0x1001852d
push 0x10049040
push 0x10049054
mov edx, dword [0x1007e094]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1001842f
mov eax, dword [ebp - 0x10]
push eax
push 0x76
push 0x86
push 0x82
call fcn.10017f30
add esp, 0x10
mov eax, 0x80004005
jmp 0x1001852f
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [0x1007e094]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [0x1007e094]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x14]
call fcn.100168f0
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
call fcn.10001750
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
call fcn.100017a0
push eax
lea ecx, [ebp - 0x14]
call fcn.10001660
push eax
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xb4]
call edx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x100184e5
mov eax, dword [ebp - 0x10]
push eax
push 0x76
push 0x87
push 0x82
call fcn.10017f30
add esp, 0x10
mov dword [ebp - 0x3c], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100168a0
mov eax, dword [ebp - 0x3c]
jmp 0x1001852f
cmp dword [ebp - 0x10], 0
jge 0x1001851e
mov ecx, dword [ebp - 0x10]
push ecx
push 0x76
push 0x88
push 0x82
call fcn.10017f30
add esp, 0x10
mov dword [ebp - 0x40], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100168a0
mov eax, dword [ebp - 0x40]
jmp 0x1001852f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100168a0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10019530
Capabilities:
Load windows common language runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100421f1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10073040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x80004005
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
call fcn.10001730
mov byte [ebp - 4], 1
push 0x10048f04
lea eax, [ebp + 8]
push eax
call fcn.100030f0
add esp, 8
test eax, eax
jl 0x10019594
mov dword [ebp - 0x20], 1
jmp 0x1001959b
mov dword [ebp - 0x20], 0
mov cl, byte [ebp - 0x20]
mov byte [ebp - 0xd], cl
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xe], dl
push 0x10048f10
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x100195dd
push 0
push 0x8c
push 0x72
push 0x8b
call fcn.10017f30
add esp, 0x10
mov dword [ebp - 0x14], 0x80004005
jmp 0x1001969e
push str.CLRCreateInstance
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10019617
push 0
push 0x8c
push 0x8d
push 0x8b
call fcn.10017f30
add esp, 0x10
mov dword [ebp - 0x14], 0x80004005
jmp 0x10019694
lea ecx, [ebp - 0x1c]
call fcn.100017a0
push eax
push 0x10048dcc
push 0x10048ddc
call dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1001965a
mov ecx, dword [ebp - 0x14]
push ecx
push 0x8c
push 0x8e
push 0x8b
call fcn.10017f30
add esp, 0x10
mov dword [ebp - 0x14], 0x80004005
jmp 0x10019694
mov edx, dword [ebp + 0x20]
push edx
lea ecx, [ebp - 0x1c]
call fcn.10001660
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x30], esp
lea eax, [ebp + 8]
push eax
call fcn.10001fb0
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
call fcn.100193e0
add esp, 0x20
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10001780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10001d60
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4209cb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420a0a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420a0a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420a0a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420a0a
cmp dword [ecx + 0x74], 0xe
jbe 0x420a0a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4331ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4331ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x7fa7476b
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, section..data_1
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x757c291b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x510028d0
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 0x5100290d
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 0x5100292d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.51004944
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x51002af4
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.510046dc
test esi, esi
jne 0x51002b2a
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.510047cc
jmp 0x51002b48
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.510029a8
mov edi, eax
test esi, esi
je 0x51002b48
cmp dword [ebx], 0
je 0x51002b48
dec esi
jmp 0x51002b31
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x51003734
Capabilities:
Query or enumerate registry value

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

Function at 0x510044bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x51091048], 0
je 0x5100451d
cmp word [0x5109121c], 0xd7b2
jne 0x510044e5
cmp dword [0x51091224], 0
jbe 0x510044e5
mov eax, 0x51091218
call dword [0x51091234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5108f060
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 0x51004544
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5108f020], 0
jne 0x51004539
push 0
push 0x5108f080
push 0x5108f060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x51004690
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.51002738
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x51091049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x51004658
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x510061a8
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 0x510063d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x5100622b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x510063d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x5100622b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x510063f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x510062b4
xor eax, eax
push ebp
push 0x510062ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.51005ff0
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 0x51006292
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x51006414
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x51006292
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 0x510062b4
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 0x510063ce
cmp byte [ebp - 0xd], 0
jne 0x510062fb
cmp byte [ebp - 0x12], 0
je 0x510063ce
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x51006314
dec ebx
cmp byte [ebx], 0x2e
je 0x51006323
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x51006313
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x510063ce
inc ebx
cmp byte [ebp - 0x12], 0
je 0x51006360
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 0x510063ce
cmp byte [ebp - 0xd], 0
je 0x510063ce
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 0x510063ce
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 0x510093fc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x5100942d
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x51009434
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x51009465
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.51004b8c
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x51009572
test byte [ebp - 0xc], 0x10
jne 0x51009576
xor eax, eax
jmp 0x51009578
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x51009a10
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.51004b8c
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x51009a38
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
call fcn.51004b8c
push eax
call sub.kernel32.dll_CreateDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x5100c770
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x5100c7b8
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.510047cc
jmp 0x5100c7c3
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.51004730
mov esp, ebp
pop ebp
ret 4
Function at 0x5100c7cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x5100c7fa
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x5100c800
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x5100cf88
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.5100cdd0
mov eax, dword [0x51090260]
cmp byte [eax], 0
je 0x5100d003
mov eax, dword [0x51090068]
call fcn.51002f0c
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44c]
call fcn.51009a64
push eax
lea eax, [ebp - 0x44c]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x5100d048
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x5100d039
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x5109001c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x51091714]
call fcn.51005fb4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov esp, ebp
pop ebp
ret

Function at 0x5100e154
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5100e1be
push dword fs:[eax]
mov dword fs:[eax], esp
push 7
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.51004944
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.510092a8
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5100e1c5
lea eax, [ebp - 0x14]
call fcn.510046dc
ret