joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a225
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x40e3f8
call fcn.0040a2f3
push 1
call fcn.0040a4c4
pop ecx
test al, al
jne 0x40a0ce
push 7
call fcn.0040a9a9
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040a48f
mov byte [ebp - 0x24], al
mov eax, dword [0x4130b0]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x40a0c7
test eax, eax
jne 0x40a138
mov dword [0x4130b0], ecx
push 0x40c230
push 0x40c218
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40a11b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40a21f
push 0x40c214
push 0x40c200
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x4130b0], 2
jmp 0x40a13d
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040a621
pop ecx
call fcn.0040a99d
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x40a16d
push esi
call fcn.0040a594
pop ecx
test al, al
je 0x40a16d
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0040abd8
call esi
call fcn.0040a9a3
mov esi, eax
cmp dword [esi], edi
je 0x40a18b
push esi
call fcn.0040a594
pop ecx
test al, al
je 0x40a18b
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.0040aabe
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.0040aaf1
test al, al
jne 0x40a1c4
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x40a1cd
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0040a63e
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40a21f
call fcn.0040a339
ret
call fcn.00409f34
jmp 0x40a0af

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40bc63
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x34]
mov dword [ebp - 0x38], 0x20
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 3
mov ecx, dword [ebp - 0x2c]
pop eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 2
push 0x4000000
push 0x30363165
mov dword [ebp - 0x14], esi
call fcn.0040c831
add esp, 0x14
push esi
push 0x202
call fcn.0040d6a2
push dword [ebp - 0x2c]
push 0x203
call fcn.0040d6a2
pop edi
pop esi
leave
ret 4

Function at 0x40ca03
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
push 0x46
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x118]
mov dword [ebp - 0x11c], ebx
push 0x412f80
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp + 8]
push 1
pop esi
mov dword [0x412f98], eax
push esi
call fcn.0040b800
cmp eax, ebx
mov dword [0x412fa4], eax
je 0x40ca5a
push 4
call fcn.0040b800
test eax, eax
mov dword [0x412fa8], esi
je 0x40ca60
mov dword [0x412fa8], ebx
cmp dword [0x412fa4], ebx
mov dword [ebp - 0x11c], 0x11c
je 0x40caa2
cmp dword [0x412fa8], ebx
jne 0x40caa2
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40caa2
cmp dword [ebp - 0x114], esi
jae 0x40ca9c
cmp dword [ebp - 0x118], 6
jb 0x40caa2
mov dword [0x412fa0], esi
push 4
call fcn.0040b800
test eax, eax
je 0x40cac2
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
mov dword [0x412fac], esi
jne 0x40cac8
mov dword [0x412fac], ebx
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [0x412fb0], eax
call fcn.0040c9d1
push dword [ebp + 0xc]
call fcn.0040d4cc
push dword [ebp + 0xc]
call fcn.0040e01d
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0xdd0dec
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdd0df6
pushal
call 0xdd0dfc
pop ebp
sub ebp, 0x10
sub ebp, 0x9d0dec
jmp 0xdd0e12
mov eax, 0x9d0dec
add eax, ebp
add eax, 0x4c
mov ecx, 0x5cd
mov edx, 0x119a0b9e
xor byte [eax], dl
inc eax
dec ecx
jne 0xdd0e29
jmp 0xdd0e3c
adc eax, 0xa2171553
sahf
sahf
sahf
pop ds
pop ss
mov byte [0x1f9e9e9e], al
pop edi
sahf
sahf
sahf
popfd
push ebx
lcall 0x9eb6, 0x249e9e9e
sahf
sahf
imul edi, dword [ebp + ebx*4 + 0x56], 0x9e921f15
sahf
sahf
popfd
pop ebx
adc edi, edx
mov edx, 0xba9a1762
adc edi, edx
mov edx, 0xba9a1762
mul byte [esi + 4]
mov edi, 0xec6af69e
in eax, 0x9e
lahf
mov dl, 0xba
not byte [eax + 0x763aed89]
wait
sahf
sahf
sahf
ja 0xdd0e3f
sahf
sahf
sahf
retf
Function at 0x40c1d8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417428]
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.004079db
mov dword [ebp - 0x14], eax
cmp dword [0x4ab5a0], esi
jne 0x40c2cb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c258
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c3ab
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c3ab
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c3ab
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ab5a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ab5a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ab5a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ab5b0], eax
test eax, eax
je 0x40c2c8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ab5ac], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c2f0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c2e3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c305
push 4
pop eax
jmp 0x40c3ad
cmp dword [ebp - 0x14], esi
je 0x40c305
push dword [0x4ab5a0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c2ea
mov eax, dword [0x4ab5ac]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c363
cmp dword [0x4ab5b0], edi
je 0x40c363
push eax
call ebx
push dword [0x4ab5b0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c363
test eax, eax
je 0x40c363
call ecx
test eax, eax
je 0x40c358
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 0x40c358
test byte [ebp - 8], 1
jne 0x40c363
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c393
mov eax, dword [0x4ab5a4]
cmp eax, edi
je 0x40c390
push eax
call ebx
test eax, eax
je 0x40c390
call eax
mov esi, eax
test esi, esi
je 0x40c390
mov eax, dword [0x4ab5a8]
cmp eax, edi
je 0x40c390
push eax
call ebx
test eax, eax
je 0x40c390
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ab5a0]
call ebx
test eax, eax
je 0x40c3ab
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c3ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403b45
mov esp, ebp
pop ebp
ret
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x405a12
pop dword [ebp - 0x30]
mov eax, 0x63cc9cb6
sub eax, 0x638c42a4
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x414f6f5d
add dword [ebp - 0x40], 0xd02d5ee
mov dword [ebp - 0x3c], 0x5d98ed5a
sub dword [ebp - 0x3c], 0x2b65a115
mov dword [ebp - 0x38], 0xa7fa8bd1
add dword [ebp - 0x38], 0xa451b85d
mov dword [ebp - 0x34], 0x1ed021c6
add dword [ebp - 0x34], 0xe12fde3a
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x4783ef9e
add dword [ebp - 0x40], 0x2cee79b8
mov dword [ebp - 0x3c], 0x3b37dc3
sub dword [ebp - 0x3c], 0xc2471c4e
mov dword [ebp - 0x38], 0x72de20f6
sub dword [ebp - 0x38], 0xf6eb48a
mov dword [ebp - 0x34], 0x7382dab6
add dword [ebp - 0x34], 0x8c7d254a
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x43cc0940
sub eax, 0x438b8840
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3aa54
push 0
call eax
mov ecx, 0x4fdd14c1
sub ecx, 0x4fdcbe18
mov esi, eax
mov edi, 0x98dec6c5
sub edi, 0x9897e2c5
add edi, dword [ebp - 0x30]
mov edx, 0x8f23cccd
add edx, 0x6880eb4c
add dword [ebp - 4], edx
mov ebx, dword [edi]
sub dword [ebp - 0x28], ebx
add ebx, edx
add dword [ebp - 0x20], edx
mov dword [esi], ebx
xor dword [ebp - 0x28], esi
add esi, 0xb8398d70
sub esi, 0xb8398d6c
add edi, 0xa541c372
add edi, 0x5abe3c92
loop 0x405b2f
add eax, 0x77443176
add eax, 0x88bd1c01
mov ebx, eax
add eax, 5
mov ecx, 0xe917cb5f
add ecx, 0x172834a1
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x403374
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 0x4033b0
movzx eax, 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 0x4033d0
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405b74
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4036d8
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.00405904
test esi, esi
jne 0x40370e
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.004059f4
jmp 0x40372c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040357c
mov edi, eax
test esi, esi
je 0x40372c
cmp dword [ebx], 0
je 0x40372c
dec esi
jmp 0x403715
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x404824
Capabilities:
Query or enumerate registry value

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

Function at 0x4056d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x478048], 0
je 0x405731
cmp word [0x47821c], 0xd7b2
jne 0x4056f9
cmp dword [0x478224], 0
jbe 0x4056f9
mov eax, 0x478218
call dword [0x478234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x405758
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x474030], 0
jne 0x40574d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405888
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x474038], 0
je 0x4058ae
mov edx, esi
mov eax, ebx
call dword [0x474038]
jmp 0x4058bd
mov eax, 8
call fcn.004030cc
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x478049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405850
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4070cc
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 0x4072fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40714f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4072fc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40714f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407318
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4071d8
xor eax, eax
push ebp
push 0x4071d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406f08
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 0x4071b6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x407338
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4071b6
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 0x4071d8
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 0x4072f2
cmp byte [ebp - 0xd], 0
jne 0x40721f
cmp byte [ebp - 0x12], 0
je 0x4072f2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x407238
dec ebx
cmp byte [ebx], 0x2e
je 0x407247
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x407237
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4072f2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x407284
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 0x4072f2
cmp byte [ebp - 0xd], 0
je 0x4072f2
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 0x4072f2
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 0x4071d8
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 0x4072fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40714f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4072fc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40714f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407318
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4071d8
xor eax, eax
push ebp
push 0x4071d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406f08
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 0x4071b6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x407338
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4071b6
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 0x4071d8
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 0x4072f2
cmp byte [ebp - 0xd], 0
jne 0x40721f
cmp byte [ebp - 0x12], 0
je 0x4072f2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x407238
dec ebx
cmp byte [ebx], 0x2e
je 0x407247
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x407237
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4072f2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x407284
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 0x4072f2
cmp byte [ebp - 0xd], 0
je 0x4072f2
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 0x4072f2
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 0x40b148
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40b19a
test eax, edx
je 0x40b19d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40b15d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40b183
add ecx, 4
js 0x40b173
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40b180
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x40b1a9
test edx, edx
jne 0x40b150
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405d94
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40ba09
test al, 0x10
je 0x40ba0d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405d94
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40ba2d
test al, 0x10
jne 0x40ba31
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40e67c
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 0x40e6b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004059f4
jmp 0x40e6be
mov eax, ebx
mov edx, esi
call fcn.00405958
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e6c8
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 0x40e6ea
movzx eax, byte [esp]
jmp 0x40e6ec
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret