joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f158
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44f303
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44f2e4
mov dl, 1
mov eax, dword [0x41213c]
call fcn.004037f4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404574
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44f2d3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043d164
test al, al
je 0x44f2c6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44f314
lea eax, [ebp - 0x254]
call fcn.00409104
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44f2c6
xor eax, eax
push ebp
push 0x44f2bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44f34c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44f2a8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047e4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44f2a8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f2c6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44f1c9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415c18
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f30a
lea eax, [ebp - 0x260]
call fcn.00404574
ret

Function at 0x44fc38
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45bbb0]
cmp byte [eax + 0xa5], 0
jne 0x44fca9
cmp dword [0x45bbc8], 0
jne 0x44fc6a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44fbf4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45bbc8], eax
cmp dword [0x45bbc4], 0
jne 0x44fc85
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45bbc4], eax
cmp dword [0x45bbcc], 0
jne 0x44fca9
push esp
push 0
push 0
push 0x44fb98
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45bbcc], eax
pop edx
ret
Function at 0x44fda0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44fdb7
add esp, 0xfffffff0
call fcn.00403b48
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419abc
mov eax, dword [0x45a00c]
cmp word [eax + 2], 0
jne 0x44fddf
mov eax, dword [0x45a00c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451508
mov eax, dword [0x45a0b8]
cmp word [eax + 2], 0
jne 0x44fdf9
mov eax, dword [0x45a0b8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451700
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411d20]
call fcn.004037f4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411d20]
call fcn.004037f4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41bff8]
call fcn.004234c4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44ff80
mov eax, dword [0x459f2c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423894
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x451ca0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x459f2c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c908
test eax, eax
je 0x44feee
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408ae4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c930
test eax, eax
je 0x44ff02
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004047e4
mov eax, dword [0x459e14]
cmp byte [eax], 0
jne 0x44ff36
mov eax, ebx
call fcn.004500a8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00451e7c
mov eax, ebx
call fcn.00452840
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ff76
call fcn.00403ba0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450328
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45bbb0]
cmp dword [eax + 0x30], 0
je 0x4503d2
cmp dword [ebx + 0x94], 0
jne 0x4503cc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4502b8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4503cc
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x450392
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4503cc
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414088
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4503a1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x450f34
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x450f69
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404664
jmp 0x450f76
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004045c8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452058
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452099
mov eax, esi
call fcn.00438790
test al, al
je 0x452099
mov eax, dword [ebx + 0x84]
call fcn.0043848c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452099
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043848c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x6c34dc
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x3c]
add edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 4]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
jmp 0x6c3525
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 0x10], edx
jge 0x6c3572
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 0xc]
jb 0x6c3567
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 8]
cmp dword [ebp + 0xc], eax
jae 0x6c3567
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
and eax, 0x20
test eax, eax
je 0x6c3563
mov eax, 1
jmp 0x6c3574
xor eax, eax
jmp 0x6c3574
mov ecx, dword [ebp - 8]
add ecx, 0x28
mov dword [ebp - 8], ecx
jmp 0x6c351c
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x6c3c82
Capabilities:
Set global application hook
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
cmp dword [0x6c6578], 0
jne 0x6c3d9f
mov dword [0x6c6578], 1
mov ax, word [0x6c6588]
sub ax, 1
mov word [0x6c6588], ax
mov ecx, dword [0x6c69e0]
add ecx, 1
mov dword [0x6c69e0], ecx
cmp dword [0x6c69e0], 5
jbe 0x6c3cf5
call fcn.006c5660
mov dword [0x6c69e4], eax
cmp dword [0x6c69dc], 0
je 0x6c3ceb
cmp dword [0x6c69e4], 0
je 0x6c3ceb
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [0x6c69e0], 0
call fcn.006c4c1e
test eax, eax
je 0x6c3d14
xor edx, edx
mov dx, word [0x6c6588]
test edx, edx
jne 0x6c3d80
call fcn.006c4c52
test eax, eax
jne 0x6c3d80
push 0x64
lea eax, [ebp - 0x64]
push eax
push 0x6c61f0
call fcn.006c4ab4
add esp, 0xc
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x6c5268
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x6c659c], eax
push 0x2000
push 0x6c6168
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [0x6c659c]
push edx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov word [0x6c6588], 0
jmp 0x6c3cf5
xor eax, eax
mov ax, word [0x6c6588]
test eax, eax
jne 0x6c3d95
mov word [0x6c6588], 0xa
mov dword [0x6c6578], 0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x6c5318
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
jmp 0x6c5330
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x6c538a
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 8
jmp 0x6c5351
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jle 0x6c537b
mov eax, dword [ebp - 4]
and eax, 1
test eax, eax
je 0x6c5371
mov ecx, dword [ebp - 4]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 4], ecx
jmp 0x6c5379
mov edx, dword [ebp - 4]
shr edx, 1
mov dword [ebp - 4], edx
jmp 0x6c5348
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax*4 + 0x6c65b4], ecx
jmp 0x6c5327
mov esp, ebp
pop ebp
ret
Function at 0x401673
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
jne 0x4016c5
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10c]
push eax
lea edx, [ebp - 4]
mov dword [ebp - 8], 0x104
push ecx
push edx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4016c5
cmp dword [ebp - 4], 1
jne 0x4016c5
lea eax, [ebp - 0x10c]
mov ecx, dword [ebp + 0x10]
push eax
mov esi, 1
call sub.MFC40.DLL_CString::operator
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4016cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
jne 0x401711
lea eax, [ebp - 0xc]
lea ecx, [ebp - 4]
push eax
lea edx, [ebp - 8]
mov dword [ebp - 0xc], 4
push ecx
push edx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401711
cmp dword [ebp - 8], 4
jne 0x401711
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov esi, 1
mov dword [eax], ecx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40514e
Capabilities:
Set registry value

Disassembly:
add ecx, 0x404
jmp fcn.00401718
Function at 0x407210
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4092a0
push 0x407512
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT40.dll___set_app_type]
add esp, 4
mov dword [0x40b4dc], 0xffffffff
mov eax, dword [0x40b4dc]
mov dword [0x40b4e0], eax
call dword [sym.imp.MSVCRT40.dll___p__fmode]
mov ecx, dword [0x40b390]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT40.dll___p__commode]
mov ecx, dword [0x40b38c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT40.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40b4d8], eax
call fcn.00407510
cmp dword [0x40b388], 0
jne 0x4072a0
push 0x407500
call dword [sym.imp.MSVCRT40.dll___setusermatherr]
add esp, 4
call fcn.004074e0
push 0x40b034
push 0x40b030
call sub.MSVCRT40.dll__initterm
add esp, 8
mov eax, dword [0x40b384]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x40b380]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCRT40.dll___getmainargs]
add esp, 0x14
push 0x40b02c
push section..data
call sub.MSVCRT40.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT40.dll___p__acmdln]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x407314
mov al, byte [ebp - 0x40]
inc esi
mov al, byte [esi]
test al, al
je 0x40730c
cmp al, 0x22
jne 0x407301
cmp byte [esi], 0x22
jne 0x40731e
inc esi
jmp 0x40731e
cmp al, 0x20
jbe 0x40731e
inc esi
cmp byte [esi], 0x20
ja 0x407318
cmp byte [esi], 0
je 0x40732e
cmp byte [esi], 0x20
ja 0x40732e
inc esi
cmp byte [esi], 0
jne 0x407323
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x5c], 1
mov eax, 0xa
je 0x407355
mov eax, dword [ebp - 0x58]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.MSVCRT40.dll_exit]
jmp 0x407398
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402a04
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.00403fcc
test esi, esi
jne 0x402a3a
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.004040bc
jmp 0x402a58
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402918
mov edi, eax
test esi, esi
je 0x402a58
cmp dword [ebx], 0
je 0x402a58
dec esi
jmp 0x402a41
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030ec
Capabilities:
Query or enumerate registry value

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

Function at 0x403e50
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45d04c], 0
je 0x403eb1
cmp word [0x45d220], 0xd7b2
jne 0x403e79
cmp dword [0x45d228], 0
jbe 0x403e79
mov eax, 0x45d21c
call dword [0x45d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45b06c
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 0x403ed8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45b030], 0
jne 0x403ecd
push 0
push 0x45b064
push 0x45b06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4054e0
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 0x405710
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405563
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405710
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405563
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40572c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4055ec
xor eax, eax
push ebp
push 0x4055e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405328
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 0x4055ca
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40574c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4055ca
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 0x4055ec
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 0x405706
cmp byte [ebp - 0xd], 0
jne 0x405633
cmp byte [ebp - 0x12], 0
je 0x405706
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40564c
dec ebx
cmp byte [ebx], 0x2e
je 0x40565b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40564b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405706
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405698
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 0x405706
cmp byte [ebp - 0xd], 0
je 0x405706
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 0x405706
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 0x405df4
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 0x405e5a
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.0040423c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cb0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e44
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e61
lea eax, [ebp - 0x10]
call fcn.00403fcc
ret

Function at 0x40b1ac
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 0x40b1e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040bc
jmp 0x40b1ee
mov eax, ebx
mov edx, esi
call fcn.00404020
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b8a0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b718
mov eax, dword [0x45c208]
cmp byte [eax], 0
je 0x40b91c
mov eax, dword [0x45c008]
call fcn.00402b1c
call fcn.00402844
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.004088b4
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 0x40b964
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b952
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45bfb0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45d668]
call fcn.004052ec
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