joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401482
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x10
mov eax, 0x41657c
call fcn.004110e4
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x1c], edi
call fcn.00402025
push eax
lea ecx, [ebp - 0x14]
call fcn.00401e3b
mov esi, 0xf6
mov dword [ebp - 4], edi
push esi
lea ecx, [ebp - 0x14]
call fcn.00402376
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00401c9f
test esi, esi
je 0x4014d4
cmp esi, 0xf6
jbe 0x4014e1
push 0x41b87c
lea ecx, [ebp - 0x14]
call fcn.00401e06
call fcn.00402025
push eax
lea ecx, [ebp - 0x10]
call fcn.00401e3b
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
push edi
mov edi, dword [ebp - 0x14]
jmp 0x401511
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40155d
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
push eax
push 0x41baac
push edi
lea eax, [ebp - 0x10]
push str._s_s_d.tmp
push eax
call fcn.00401ad7
mov esi, dword [ebp - 0x10]
add esp, 0x14
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4014fc
push 0x5c
lea edx, [ebp - 0x10]
mov ecx, ebx
call fcn.004019de
pop ecx
lea ecx, [esi - 0x10]
call fcn.004023f1
lea ecx, [edi - 0x10]
call fcn.004023f1
mov eax, ebx
call fcn.004110b2
ret
push 0x41b9bc
mov ecx, ebx
call fcn.00401ccb
jmp 0x401545

Function at 0x4017fb
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebx
push esi
mov esi, dword [0x420568]
mov ebx, ecx
push edi
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
movzx eax, di
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x40182e
pop edi
pop esi
xor edx, edx
mov ecx, eax
pop ebx
jmp fcn.0040178b
push 0
mov edx, edi
mov ecx, ebx
call fcn.004017d2
pop ecx
pop edi
pop esi
pop ebx
ret

Function at 0x40183e
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
push ecx
push dword [0x420568]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x4018b5
lea edx, [ebp - 4]
mov ecx, eax
call fcn.0040178b
mov esi, eax
test esi, esi
je 0x4018b5
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4018b5
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4018ac
mov al, 1
jmp 0x4018b7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4020bb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402114
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402105
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x402101
cmp esi, ecx
jae 0x402105
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x4020f1
cmp esi, ecx
jb 0x402109
xor eax, eax
jmp 0x402113
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402857
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
xor eax, eax
mov ecx, dword [esi + 0x1b4]
cmp dword [ecx - 0xc], eax
je 0x402887
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x403088
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, ecx
call fcn.00402857
test al, al
jne 0x4030f6
cmp byte [ebx + 0x1b8], al
je 0x4030eb
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push dword [ebx + 4]
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x3f9
push dword [ebx + 4]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
push 0x3fc
push dword [ebx + 4]
call edi
push 5
push eax
call esi
push 0x3fb
push dword [ebx + 4]
call edi
push 5
push eax
call esi
pop edi
pop esi
jmp 0x4030f6
push 6
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
pop ebx
ret 0x10
Function at 0x404fcf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov bl, 1
mov ecx, dword [edi + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x40501b
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0xc], eax
call esi
push dword [edi + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xfffffffe
call esi
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0xc]
push ecx
push esi
push 0x4e
push eax
jmp 0x405046
shr ecx, 2
test cl, 1
je 0x40504e
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [edi + 4]
mov ecx, eax
movzx eax, si
push eax
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40507d
push 1
xor esi, esi
push esi
push esi
push dword [edi + 0x28]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x40507d
or byte [edi + 0x58], 2
push 1
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4074db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x416a51
call fcn.00411183
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x407558
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x407558
call fcn.00403db9
mov esi, eax
jmp 0x407663
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x40757b
call fcn.00403db9
jmp 0x407656
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x407571
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
lea ecx, [ebx + 1]
cmp ecx, ebx
jae 0x4075ae
mov esi, 0x8007000e
jmp 0x407658
xor eax, eax
mov byte [ebp - 4], 2
shld eax, ecx, 1
add ecx, ecx
cmp eax, esi
ja 0x4075e7
cmp ecx, 0xffffffff
ja 0x4075e7
cmp ecx, 0x400
jbe 0x4075d9
push ecx
lea ecx, [ebp - 0x418]
call fcn.00405fa6
jmp 0x407605
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x407605
push 0x80070216
call fcn.004023ae
mov eax, 0x4075f7
ret
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x4075a4
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x407571
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00407384
mov esi, eax
test edi, edi
je 0x407663
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40767c
lea ecx, [ebp - 0x418]
call fcn.00405f91
mov eax, esi
call fcn.004110d5
ret 0x10
Function at 0x410ecc
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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.0040dac4
mov dword [ebp - 0x14], eax
cmp dword [0x421468], esi
jne 0x410fbf
push 0x800
push esi
push 0x41b798
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x410f4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41109f
push esi
push esi
push 0x41b798
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41109f
push 0x41b7b0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41109f
push eax
call ebx
push 0x41b7bc
push edi
mov dword [0x421468], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42146c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x421470], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x421478], eax
test eax, eax
je 0x410fbc
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x421474], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x410fe4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410fd7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x410ff9
push 4
pop eax
jmp 0x4110a1
cmp dword [ebp - 0x14], esi
je 0x410ff9
push dword [0x421468]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x410fde
mov eax, dword [0x421474]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x411057
cmp dword [0x421478], edi
je 0x411057
push eax
call ebx
push dword [0x421478]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x411057
test eax, eax
je 0x411057
call ecx
test eax, eax
je 0x41104c
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 0x41104c
test byte [ebp - 8], 1
jne 0x411057
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x411087
mov eax, dword [0x42146c]
cmp eax, edi
je 0x411084
push eax
call ebx
test eax, eax
je 0x411084
call eax
mov esi, eax
test esi, esi
je 0x411084
mov eax, dword [0x421470]
cmp eax, edi
je 0x411084
push eax
call ebx
test eax, eax
je 0x411084
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x421468]
call ebx
test eax, eax
je 0x41109f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4110a1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407aee
mov esp, ebp
pop ebp
ret
Function at 0x10011349
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10011358
pop dword [ebp - 0xc]
mov eax, 0xeea69193
sub eax, 0xdea57e3b
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x41696
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x4c7e
mov edi, eax
mov ebx, 0xd26fd2e3
sub ebx, 0xc26b26e3
add ebx, dword [ebp - 0xc]
mov edx, 0xf542041
sub edx, 0x585db9c0
xor dword [ebp - 4], ebx
mov esi, dword [ebx]
xor dword [ebp - 4], 0xa84d2e6c
sub esi, edx
sub dword [ebp - 4], 0x7dcf596a
mov dword [edi], esi
add dword [ebp - 8], 0x837f0f3a
add edi, 0x3a7da7a8
sub edi, 0x3a7da7a4
add ebx, 0x92240b91
sub ebx, 0x92240b8d
loop 0x100113ac
add eax, 0x8339eac6
sub eax, 0x8338c5fb
mov ebx, eax
add eax, 0x83fd8baa
sub eax, 0x83fd8ba5
mov ecx, 0xd2418294
add ecx, 0x3dbe7d6c
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x40aa10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
xor ecx, ecx
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov edx, ecx
sub edx, eax
mov al, byte [edx + edi]
mov byte [ebp + ecx - 0x106], cl
mov byte [ebp + ecx - 0x208], al
inc ecx
cmp ecx, 0x100
jl 0x40aa22
xor eax, eax
lea ebx, [ebx]
movzx ecx, byte [ebp + eax - 0x208]
movzx edx, byte [ebp + eax - 0x106]
add ecx, esi
lea esi, [ecx + edx]
and esi, 0x800000ff
jns 0x40aa85
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [ebp + eax - 0x106]
mov dl, byte [ebp + esi - 0x106]
mov byte [ebp + eax - 0x106], dl
inc eax
mov byte [ebp + esi - 0x106], cl
cmp eax, 0x100
jl 0x40aa60
xor eax, eax
xor cl, cl
mov byte [ebp - 0x107], 0
cmp dword [ebp + 0xc], eax
jbe 0x40ab31
mov edi, dword [ebp + 8]
push ebx
jmp 0x40aac6
mov cl, byte [ebp - 0x108]
mov dl, byte [eax + edi]
inc cl
mov byte [ebp - 0x108], cl
movzx esi, cl
movzx ebx, byte [ebp + esi - 0x106]
movzx ecx, byte [ebp - 0x107]
add ecx, ebx
mov byte [ebp - 0x107], cl
movzx ebx, byte [ebp + esi - 0x106]
movzx ecx, cl
lea ecx, [ebp + ecx - 0x106]
mov byte [ebp - 1], bl
movzx ebx, byte [ecx]
mov byte [ebp + esi - 0x106], bl
movzx ebx, byte [ebp - 1]
mov byte [ecx], bl
movzx ebx, byte [ebp + esi - 0x106]
add bl, byte [ecx]
inc eax
movzx ecx, bl
mov cl, byte [ebp + ecx - 0x106]
xor cl, dl
mov byte [eax + edi - 1], cl
cmp eax, dword [ebp + 0xc]
jb 0x40aac0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b940
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x77
push esi
mov dword [ebp - 0x20], 0x6f726863
mov dword [ebp - 0x1c], 0x635f656d
mov dword [ebp - 0x18], 0x646c6968
mov dword [ebp - 0x14], 0x6c6c642e
mov byte [ebp - 0x10], 0
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
call fcn.00409c10
add esp, 8
test eax, eax
jne 0x40b9a3
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x1c]
push ecx
call fcn.0040acf0
add esp, 8
test eax, eax
je 0x40ba2e
push ebx
push edi
push eax
push esi
call fcn.00406b10
mov edx, dword [esi + 0xca0]
push 0x15db1ddc
push 0
push 0
mov edi, eax
push edx
lea eax, [esi + 0xc94]
push eax
call fcn.00414e50
add esp, 0x1c
mov ebx, eax
call fcn.0041f13a
mov dword [eax + 3], esi
call fcn.0041f14c
mov dword [eax + 3], esi
test edi, edi
je 0x40ba01
push 1
push 2
call fcn.0041f13a
add eax, 2
push eax
lea ecx, [esi + 0x1938]
push ecx
push edi
push esi
call fcn.004055a0
add esp, 0x18
test ebx, ebx
je 0x40ba23
push 0
push 0
call fcn.0041f14c
add eax, 2
push eax
lea edx, [esi + 0x19b8]
push edx
push ebx
push esi
call fcn.004055a0
add esp, 0x18
push esi
call fcn.004175e0
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402ed0
Capabilities:
Query or enumerate registry value

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

Function at 0x403834
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x575044], 0
je 0x403895
cmp word [0x575218], 0xd7b2
jne 0x40385d
cmp dword [0x575220], 0
jbe 0x40385d
mov eax, 0x575214
call dword [0x575230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40905c
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 0x4038bc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409020], 0
jne 0x4038b1
push 0
push 0x409054
push 0x40905c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4046d8
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 0x40473e
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.00403c00
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ac4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404728
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404745
lea eax, [ebp - 0x10]
call fcn.004039b8
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403d88
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40594d
test al, 0x10
jne 0x405951
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4065a8
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 0x4065e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403aa8
jmp 0x4065ea
mov eax, ebx
mov edx, esi
call fcn.00403a0c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x406cac
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406b14
mov eax, dword [0x574424]
cmp byte [eax], 0
je 0x406d28
mov eax, dword [0x574380]
call fcn.00402a40
call fcn.00402968
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.00405a7c
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 0x406d70
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406d5e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x574360]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x575660]
call fcn.004040a8
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 0x40774c
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 0x4077b0
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.00403c00
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405904
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4077b7
lea eax, [ebp - 0xc]
call fcn.004039b8
ret

Function at 0x408290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403d78
xor eax, eax
push ebp
push 0x408314
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x4082fe
push 0
push 0
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00403d88
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
je 0x4082fe
push 0
lea eax, [ebp - 0xc]
push eax
push esi
mov eax, dword [ebp - 8]
push eax
push edi
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb ebx, ebx
inc ebx
push edi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40831b
lea eax, [ebp - 4]
call fcn.004039b8
ret

Function at 0x4083a4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
xor ecx, ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403d78
mov eax, dword [ebp - 8]
call fcn.00403d78
xor eax, eax
push ebp
push 0x4084b2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4083f7
push 0x4084c8
push dword [ebp - 4]
push 0x4084d4
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403cec
lea eax, [ebp - 0x5c]
mov edx, 0x44
call fcn.00404adc
lea eax, [ebp - 0x18]
mov edx, 0x10
call fcn.00404adc
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 0x8008000
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403d88
push eax
mov eax, dword [ebp - 4]
call fcn.00403d88
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40848c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 0x8008000
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00403c78
mov eax, dword [ebp - 0x60]
call fcn.00403d88
push eax
push 0
call sub.kernel32.dll_CreateProcessA
mov ebx, dword [ebp - 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4084b9
lea eax, [ebp - 0x60]
call fcn.004039b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004039dc
ret
Function at 0x408540
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x408500
call fcn.00404950
xor eax, eax
push ebp
push 0x40860c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x408620
call fcn.00405934
test al, al
jne 0x408576
mov eax, 0x408620
call fcn.00405a60
mov edx, 0x409294
mov eax, 0x575798
mov ecx, 0xda2a8
call fcn.00403aa8
mov edx, dword [0x575798]
mov eax, 0x408630
call fcn.00408324
mov edx, 0x4e353c
mov eax, 0x575798
mov ecx, 0x90d8a
call fcn.00403aa8
mov edx, dword [0x575798]
mov eax, 0x40864c
call fcn.00408324
mov edx, 0x5742c8
mov eax, 0x575798
mov ecx, 0x4c
call fcn.00403aa8
mov edx, dword [0x575798]
mov eax, 0x408668
call fcn.00408324
mov edx, 0x40864c
mov eax, 0x408630
call fcn.004083a4
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408613
ret