joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esi + 4]
test eax, eax
je 0x4011e2
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov eax, dword [esp + 4]
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [esi + 4], eax
test eax, eax
jne 0x4011fd
xor al, al
ret 4
push edi
push str.INSTALL_RES
push 0x3ff
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x401232
mov ecx, dword [esi + 4]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esi + 4]
push edi
push edx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401238
xor al, al
pop edi
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esi], eax
setne al
pop edi
ret 4

Function at 0x401250
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push ecx
cmp dword [esi + 1], 0xffffffff
je 0x4012d4
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, 0x103
mov dword [esp + 0xc], ebp
call edi
mov ebx, eax
cmp dword [esp + 0xc], ebp
jne 0x4012c0
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea esp, [esp]
mov ecx, dword [esi + 1]
lea eax, [esp + 0xc]
push eax
push ecx
call ebp
push 0x10
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, ebx
cmp eax, 0x3e8
ja 0x4012aa
cmp dword [esp + 0xc], 0x103
je 0x401280
jmp 0x4012c0
cmp dword [esp + 0xc], 0x103
jne 0x4012c0
mov edx, dword [esi + 1]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 1]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov dword [esi + 1], 0xffffffff
pop ebx
pop ecx
ret

Function at 0x4012e0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
movzx edi, word [esp + 0x2c]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, eax
mov eax, edi
call fcn.00403000
mov dword [esi + 4], eax
test eax, eax
je 0x401346
call fcn.00402490
mov eax, dword [0x405010]
push esi
push eax
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0x90000000
push 0
push 0x40427c
push 0x80000
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x401352
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 4
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
call esi
test eax, eax
je 0x4013a4
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea edx, [esp + 0xc]
push edx
call edi
lea eax, [esp + 0xc]
push eax
call ebx
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
call esi
test eax, eax
jne 0x401385
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret 4
Function at 0x402900
Capabilities:
Write file on windows

Disassembly:
push ecx
test esi, esi
je 0x402913
push 0
push 2
call esi
push edi
push 3
call esi
add esp, 0x10
test edi, edi
jne 0x402931
test esi, esi
je 0x402923
push 0x13
push edi
call esi
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffd
pop ecx
ret
mov ecx, dword [esp + 8]
push 0
lea eax, [esp + 4]
push eax
push edi
push ecx
push ebx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40297c
mov eax, dword [esp]
cmp eax, edi
jne 0x40297c
test esi, esi
je 0x402964
push eax
push 4
call esi
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x402978
push 0
push 5
call esi
add esp, 8
xor eax, eax
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x402990
push 0x14
push 0
call esi
add esp, 8
mov eax, 0xfffffffe
pop ecx
ret

Function at 0x402ae0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x800
push 0x40
mov ebx, eax
call edi
push 0x800
push 0x40
mov esi, eax
call edi
mov ecx, ebx
mov edi, eax
call fcn.00402a20
mov ecx, 0x404268
mov eax, esi
call fcn.00402a20
mov ecx, ebx
call fcn.004029e0
mov ecx, 0x40426c
call fcn.004029e0
mov ecx, dword [esp + 0x6c]
call fcn.004029e0
mov ecx, 0x44
lea edx, [esp + 0x20]
call fcn.00402a40
mov ecx, 0x10
lea edx, [esp + 0x10]
call fcn.00402a40
mov eax, edx
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push edi
mov dword [esp + 0x48], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402b98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
je 0x402b88
push edi
call ebx
test esi, esi
je 0x402b8f
push esi
call ebx
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x5c
ret
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esp + 0x14]
push eax
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
je 0x402bb9
push edi
call ebx
test esi, esi
je 0x402bc0
push esi
call ebx
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x5c
ret
Function at 0x402bd0
Capabilities:
Create directory
Get common file path

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x14]
mov esi, eax
call fcn.00402a50
mov ecx, ebp
mov dword [esp + 0xc], eax
call fcn.00402a50
mov ebx, eax
lea eax, [ebx + esi + 2]
cmp eax, 0x400
jbe 0x402c14
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.00402a20
jmp 0x402c3f
cmp word [edi + esi*2 - 2], 0x5c
je 0x402c26
mov ecx, 0x5c
mov word [edi + esi*2], cx
inc esi
lea eax, [edi + esi*2]
mov ecx, ebp
call fcn.00402a20
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x402c3f
add esi, ebx
mov edx, dword [esp + 0xc]
lea eax, [edx + esi + 2]
cmp eax, 0x400
jbe 0x402c5f
mov ecx, dword [esp + 0x14]
pop esi
pop ebp
mov eax, edi
pop ebx
add esp, 4
jmp fcn.00402a20
cmp word [edi + esi*2 - 2], 0x5c
je 0x402c71
mov ecx, 0x5c
mov word [edi + esi*2], cx
inc esi
mov ecx, dword [esp + 0x14]
lea eax, [edi + esi*2]
pop esi
pop ebp
pop ebx
add esp, 4
jmp fcn.00402a20
Function at 0x403000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
push 0x40429c
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40301c
pop edi
pop esi
pop ecx
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 2
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40307b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov ecx, edi
mov eax, ebx
call fcn.00402a70
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jge 0x403082
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esp + 0xc]
push edx
call fcn.00401180
mov esi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 4
push eax
call edx
pop ebx
pop edi
mov eax, esi
pop esi
pop ecx
ret
Function at 0x412402
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41242e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4124cb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4124f5
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412470
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x4124fa
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4124f5
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
nop
mov eax, section..reloc
mov ebx, 0x40c7d0
nop
mov ecx, 0x55e9585b
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x6196a8f
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4011ec
Capabilities:
Write file on windows

Disassembly:
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push 0x403400
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x401214
jmp 0x4012d6
mov dword [0x403ae0], eax
mov edx, dword [0x403ab8]
push 0
push 0x40374f
push edx
push dword [0x403950]
push dword [0x403ae0]
call sub.kernel32.dll_WriteFile
mov eax, dword [0x403ae0]
push eax
call sub.kernel32.dll_CloseHandle
ret

Function at 0x401245
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0
push 0x80
push 3
push 0
push 2
push 0x80000000
push section..data
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x40126a
jmp 0x4012d6
mov dword [0x403ad8], eax
push 0
push dword [0x403ad8]
call sub.kernel32.dll_GetFileSize
mov dword [0x403944], eax
push dword [0x403944]
push 0
call sub.oleaut32.dll_SysAllocStringByteLen
mov dword [0x403948], eax
push 0
push 0x40374f
push dword [0x403944]
push dword [0x403948]
push dword [0x403ad8]
call sub.kernel32.dll_ReadFile
mov eax, dword [0x403ad8]
push eax
call sub.kernel32.dll_CloseHandle
ret
push 0
push 0x403620
push 0x403640
push 0
call sub.user32.dll_MessageBoxA
push eax
call sub.kernel32.dll_ExitProcess
int3
Function at 0x4050c5
Capabilities:
Packed with generic packer

Disassembly:
push es
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add al, al
add al, byte [eax]
xor byte [edi], bh
add byte [eax], al
add al, al
add al, byte [eax]
aam 0x2a
add byte [eax], al
and byte [edx], ah
add dword [eax], eax
cmp byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov byte [esi + 2], dl
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], ah
add dword [eax], eax
fadd qword [ecx]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
je 0x405198
js 0x4051a9
add byte [eax], al
add cl, dl
add eax, 0x10000001
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
inc eax
add byte [eax], al
shr byte [esi], 0x72
jae 0x40521e
jb 0x40521e
jb 0x405210
arpl word [eax], ax
add byte [eax], al
mov eax, 6
add byte [eax], al
add byte [eax + 6], bh
mov al, 2
add byte [eax], al
or byte [eax], al
add byte [eax], al
mov word [edx], es
Function at 0x409300
Capabilities:
Parse pe header

Disassembly:
inc ebp
xor eax, eax
xor edx, edx
jmp 0x409430
Function at 0x402180
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x4021cb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x4021c4
test esi, esi
je 0x4021c4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4021a0
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4023b0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402400
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4024d8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40243e
cmp eax, 4
jne 0x402460
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40244e
cmp edx, 4
je 0x40244e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004023b0
Function at 0x402b48
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.004047e0
test esi, esi
jne 0x402b7e
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.004048d0
jmp 0x402b9c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a5c
mov edi, eax
test esi, esi
je 0x402b9c
cmp dword [ebx], 0
je 0x402b9c
dec esi
jmp 0x402b85
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4037dc
Capabilities:
Query or enumerate registry value

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

Function at 0x404644
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6f204c], 0
je 0x4046a5
cmp word [0x6f2220], 0xd7b2
jne 0x40466d
cmp dword [0x6f2228], 0
jbe 0x40466d
mov eax, 0x6f221c
call dword [0x6f2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x6ea070
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 0x4046cc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x6ea030], 0
jne 0x4046c1
push 0
push 0x6ea068
push 0x6ea070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40616c
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 0x40639c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4061ef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40639c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4061ef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406278
xor eax, eax
push ebp
push 0x406271
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405fb4
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 0x406256
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4063d8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406256
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 0x406278
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 0x406392
cmp byte [ebp - 0xd], 0
jne 0x4062bf
cmp byte [ebp - 0x12], 0
je 0x406392
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4062d8
dec ebx
cmp byte [ebx], 0x2e
je 0x4062e7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4062d7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406392
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406324
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 0x406392
cmp byte [ebp - 0xd], 0
je 0x406392
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 0x406392
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 0x406ab4
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 0x406b1a
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.00404a60
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403220
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406b04
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406b21
lea eax, [ebp - 0x10]
call fcn.004047e0
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404cb0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a089
test al, 0x10
jne 0x40a08d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d484
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 0x40d4bd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048d0
jmp 0x40d4c6
mov eax, ebx
mov edx, esi
call fcn.00404834
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40e4fc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e5d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404878
lea eax, [ebp - 8]
call fcn.00404d00
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404cb0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e5bc
mov eax, ebx
call fcn.00402820
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e5b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404cb0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e59f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e5e4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e59f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e5bc
mov eax, dword [ebp - 0x10]
call fcn.00402840
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e5d9
lea eax, [ebp - 8]
call fcn.004047e0
ret