joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30003396
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x30001dbc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.30002f57
mov edi, eax
cmp edi, esi
je 0x300033f6
lea ecx, [ebp - 0x208]
call fcn.30002ef2
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3000adb6
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x30003414
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
call fcn.30003396
cmp eax, esi
jne 0x3000345c
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
je 0x300033fe
lea ecx, [ebp - 0x208]
call fcn.30002ef2
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.30002ef2
mov eax, esi
jmp 0x300033e5

Function at 0x30003e34
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov ebx, ecx
jne 0x30003e4d
push 0x80004005
call fcn.30002d72
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x30003e4f
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x30005b77
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x3000e2b4
call fcn.3000b7e5
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
call dword [0x30011508]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x428], ebx
jne 0x30005be6
call fcn.30002e59
mov esi, eax
jmp 0x30005ce8
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x30005c09
call fcn.30002e59
jmp 0x30005cda
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x420], eax
je 0x30005bff
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x41c], edi
jae 0x30005c65
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x30005c4b
lea ecx, [ebp - 0x418]
call fcn.30004370
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.3000314a
mov eax, esi
call fcn.3000b83e
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.30004cc5
mov dword [ebp - 4], 1
jmp 0x30005c8c
mov ebx, dword [ebp - 0x418]
cmp ebx, esi
jne 0x30005c9d
mov esi, 0x8007000e
jmp 0x30005cdc
call dword [0x30011508]
push edi
push ebx
push edi
push dword [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x30005bff
mov ecx, dword [ebp - 0x418]
push dword [ebp + 0x14]
mov word [ecx + eax*2], si
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.300059e7
mov esi, eax
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x30005c50
lea ecx, [ebp - 0x418]
call fcn.30004370
jmp 0x30005c50
Function at 0x30007514
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc84
mov eax, dword [0x30001dbc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x22c], edi
mov dword [ebp - 0xc30], esi
mov dword [ebp - 0xc2c], ebx
mov dword [ebp - 0xc28], eax
jne 0x30007564
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x30007564
mov eax, 0xc6c8120d
jmp 0x30007732
push edi
push 0x30001bd4
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x300075b5
lea ecx, [ebp - 0xc]
push ecx
push 0x7d0
push edi
push edi
push edi
push 0x407
push eax
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x300075b5
cmp dword [ebp - 0xc], 0xa
jb 0x300075b5
push dword [esi + 0x22c]
push dword [ebp - 0xc28]
push ebx
call fcn.3000726a
mov eax, 0xc6c81211
jmp 0x30007732
push 0x104
lea eax, [ebp - 0x624]
push eax
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x30007711
mov eax, 0x100
push eax
lea ecx, [ebp - 0x824]
push ecx
push eax
lea ecx, [ebp - 0xc24]
push ecx
push eax
lea eax, [ebp - 0xa24]
push eax
push 3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.MSVCR80.dll__wsplitpath_s]
lea eax, [ebp - 0x824]
push eax
push 0x30001c08
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0xc]
push eax
mov esi, 0x30c
lea eax, [ebp - 0x624]
push esi
push eax
call dword [sym.imp.MSVCR80.dll__wmakepath_s]
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0xc84]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0x48
cmp dword [ebp - 0xc28], edi
mov dword [ebp - 0xc84], ebx
mov ebx, 0x30001c04
je 0x30007686
push 0x30001bf0
push esi
lea eax, [ebp - 0x624]
push eax
call fcn.30007498
push dword [ebp - 0xc28]
lea eax, [ebp - 0x624]
push esi
push eax
call fcn.30007498
push ebx
push esi
lea eax, [ebp - 0x624]
push eax
call fcn.30007498
push 0x30001be8
push esi
lea eax, [ebp - 0x624]
push eax
call fcn.30007498
push dword [ebp - 0xc2c]
lea eax, [ebp - 0x624]
push esi
push eax
call fcn.30007498
push ebx
push esi
lea eax, [ebp - 0x624]
push eax
call fcn.30007498
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0xc84]
push eax
push edi
push edi
push 0x20
push edi
push edi
push edi
lea eax, [ebp - 0x624]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
cmp ebx, edi
je 0x3000770b
push 0xbb8
push dword [ebp - 0xc40]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0xc3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc40]
call esi
jmp 0x30007730
mov esi, dword [ebp - 0xc30]
push dword [esi + 0x22c]
push dword [ebp - 0xc28]
push dword [ebp - 0xc2c]
call fcn.3000726a
cmp ebx, edi
je 0x3000755a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3000adb6
leave
ret 8
Function at 0x300078d2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
lea eax, [ebp - 8]
lea edi, [esi + 4]
push eax
mov ecx, edi
call fcn.300077a4
push edi
push dword [edi + 4]
lea ecx, [ebp - 0x14]
call fcn.30007408
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 8]
call fcn.30007386
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x30007944
lea ecx, [ebp - 8]
call fcn.3000775b
cmp dword [eax + 0x18], 8
jb 0x3000791e
mov eax, dword [eax + 4]
jmp 0x30007921
add eax, 4
push eax
call ebx
lea ecx, [ebp - 8]
call fcn.30007334
push edi
push dword [edi + 4]
lea ecx, [ebp - 0x14]
call fcn.30007408
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 8]
call fcn.30007386
test al, al
je 0x3000790b
mov eax, dword [esi + 0x10]
mov edi, 0x35c
add eax, edi
push eax
push dword [eax + 0xc]
lea ecx, [ebp - 0x18]
call fcn.30006eaf
jmp 0x30007981
lea ecx, [ebp - 0x18]
call fcn.30006e73
cmp dword [eax + 0x18], 8
jb 0x30007973
mov eax, dword [eax + 4]
jmp 0x30007976
add eax, 4
push eax
call ebx
lea ecx, [ebp - 0x18]
call fcn.300073b1
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 0xc]
push eax
add ecx, edi
call fcn.30007887
push eax
lea ecx, [ebp - 0x18]
call fcn.300073db
test al, al
je 0x30007960
mov esi, dword [esi + 0x18]
mov eax, dword [esi + 0x214]
pop edi
mov dword [esi + 0x210], eax
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x30008a28
Capabilities:
Set registry value

Disassembly:
test byte [ecx], 2
je 0x30008a60
cmp dword [ecx + 0x218], 0
jne 0x30008a60
push esi
push 4
lea esi, [ecx + 0x20c]
add ecx, 0x210
push ecx
push 4
push 0
push 0x30001608
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
ret

Function at 0x30008a61
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
mov edi, 0x104
push edi
lea ebx, [esi + 4]
push ebx
mov dword [esi], eax
call fcn.3000691b
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x30008a85
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], 0x5c
je 0x30008aab
push 0x30001c5c
push edi
push ebx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
test byte [esi], 2
je 0x30008b19
xor edi, edi
push edi
lea ebx, [esi + 0x20c]
push ebx
push edi
push 0x2001f
push edi
push edi
push edi
push 0x30001580
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
mov dword [esi + 0x218], eax
je 0x30008ae5
mov dword [esi + 0x210], edi
jmp 0x30008b19
lea eax, [ebp + 8]
push eax
lea edi, [esi + 0x210]
push edi
lea eax, [ebp + 0xc]
push eax
push 0
push 0x30001608
push dword [ebx]
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x30008b11
and dword [edi], 0
mov eax, dword [edi]
mov dword [esi + 0x214], eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x3000ab40
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x30001dbc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.3000aad5
mov eax, 0x30000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x3000ab8f
cmp dword [ebp - 0x1c], 5
jb 0x3000aba7
jmp 0x3000aba3
cmp dword [ebp - 0x10], 1
jne 0x3000aba7
cmp dword [ebp - 0x1c], 4
ja 0x3000aba3
jne 0x3000aba7
cmp dword [ebp - 0x18], 0
jbe 0x3000aba7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x30001dac
call fcn.30002e0e
test eax, eax
jge 0x3000abc8
mov byte [0x30011608], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.3000adb6
add ebp, 0x78
leave
ret

Function at 0x3000adb6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30001dbc]
jne 0x3000ba21
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x30011a50], eax
mov dword [0x30011a4c], ecx
mov dword [0x30011a48], edx
mov dword [0x30011a44], ebx
mov dword [0x30011a40], esi
mov dword [0x30011a3c], edi
mov word [0x30011a68], ss
mov word [0x30011a5c], cs
mov word [0x30011a38], ds
mov word [0x30011a34], es
mov word [0x30011a30], fs
mov word [0x30011a2c], gs
pushfd
pop dword [0x30011a60]
mov eax, dword [ebp]
mov dword [0x30011a54], eax
mov eax, dword [ebp + 4]
mov dword [0x30011a58], eax
lea eax, [ebp + 8]
mov dword [0x30011a64], eax
mov eax, dword [ebp - 0x320]
mov dword [0x300119a0], 0x10001
mov eax, dword [0x30011a58]
mov dword [0x30011954], eax
mov dword [0x30011948], 0xc0000409
mov dword [0x3001194c], 1
mov eax, dword [0x30001dbc]
mov dword [ebp - 0x328], eax
mov eax, dword [0x3001150c]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x30011998], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30002138
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x30011998], 0
jne 0x3000bb11
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x3000adce
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x30001e08
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3000ae26
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x30001e00
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x3000ae26
mov al, 1
jmp 0x3000ae28
xor al, al
leave
ret 8
Function at 0x3000dbc1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
mov eax, dword [0x30001dbc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x3000dbe9
xor eax, eax
inc eax
jmp 0x3000dc2f
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.3000742f
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x104
push esi
call fcn.3000d90b
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.3000adb6
leave
ret 4
Function at 0x402f74
Capabilities:
Query or enumerate registry value

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

Function at 0x403d40
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x450044], 0
je 0x403da1
cmp word [0x450218], 0xd7b2
jne 0x403d69
cmp dword [0x450220], 0
jbe 0x403d69
mov eax, 0x450214
call dword [0x450230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x44e06c
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 0x403dc8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44e030], 0
jne 0x403dbd
push 0
push 0x44e064
push 0x44e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40511c
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 0x40534c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40519f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40534c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40519f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405368
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405228
xor eax, eax
push ebp
push 0x405221
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404f64
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 0x405206
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405388
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405206
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 0x405228
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 0x405342
cmp byte [ebp - 0xd], 0
jne 0x40526f
cmp byte [ebp - 0x12], 0
je 0x405342
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405288
dec ebx
cmp byte [ebx], 0x2e
je 0x405297
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405287
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405342
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4052d4
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 0x405342
cmp byte [ebp - 0xd], 0
je 0x405342
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 0x405342
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 0x405a5c
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 0x405ac2
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.0040412c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405aac
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ac9
lea eax, [ebp - 0x10]
call fcn.00403ebc
ret

Function at 0x40aa6c
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 0x40aaa5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fac
jmp 0x40aaae
mov eax, ebx
mov edx, esi
call fcn.00403f10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b160
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40afd8
mov eax, dword [0x44f018]
cmp byte [eax], 0
je 0x40b1dc
mov eax, dword [0x44ee44]
call fcn.004029a4
call fcn.00402824
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.004082e0
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 0x40b224
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b212
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44edf4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x450660]
call fcn.00404f28
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 0x40ba9c
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 0x40bb72
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403f54
lea eax, [ebp - 8]
call fcn.004043cc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040437c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bb5c
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bb55
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.0040437c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bb3f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bb84
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bb3f
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 0x40bb5c
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb79
lea eax, [ebp - 8]
call fcn.00403ebc
ret

Function at 0x40bff0
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 0x40c054
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.0040412c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407e70
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c05b
lea eax, [ebp - 0xc]
call fcn.00403ebc
ret

Function at 0x41a130
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x450884
cmp dword [edi], 0
jne 0x41a1ac
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x450880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x44e3f8
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a108
lea eax, [esi + 5]
call fcn.0041a128
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a128
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41a181
mov dword [0x450880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41bb48
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41bb4e
ret