joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e188
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4f6880]
cmp byte [eax + 0xc], 0
je 0x45e2f5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45e2ee
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f8350], 0
jne 0x45e1dc
push 0x45e2fc
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x45e304
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f8350], eax
cmp dword [0x4f4ebc], 0
jne 0x45e2d7
push 0x45e314
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4f4ebc], eax
cmp dword [0x4f4ebc], 0
je 0x45e2d7
push 0x45e320
mov eax, dword [0x4f4ebc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f8354], eax
push 0x45e330
mov eax, dword [0x4f4ebc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f8358], eax
push 0x45e344
mov eax, dword [0x4f4ebc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f835c], eax
push 0x45e35c
mov eax, dword [0x4f4ebc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f8360], eax
push 0x45e374
mov eax, dword [0x4f4ebc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f8364], eax
push 0x45e388
mov eax, dword [0x4f4ebc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f8368], eax
push 0x45e3a0
mov eax, dword [0x4f4ebc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f836c], eax
push 0x45e3b8
mov eax, dword [0x4f4ebc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f8370], eax
push 0x45e3d4
mov eax, dword [0x4f4ebc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f8374], eax
push 0x45e3e0
mov eax, dword [0x4f4ebc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f8378], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e2f5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x462ba4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403804
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x462bf3
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403ae4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46a3e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46a438]
test si, 4
je 0x46a3fc
or bl, 1
test si, 8
je 0x46a406
or bl, 4
test si, 1
je 0x46a410
or bl, 8
test si, 2
je 0x46a41a
or bl, 0x10
test si, 0x10
je 0x46a424
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46a433
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x46a43c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46a474]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46a455
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46a464
or bl, 4
test esi, 0x20000000
je 0x46a46f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x470b38
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x470b4a
add esp, 0xfffffff0
call fcn.00402c98
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423844
mov eax, dword [0x4f6408]
mov dword [eax + 4], ebx
mov dword [eax], 0x470edc
mov eax, dword [0x4f6420]
mov dword [eax + 4], ebx
mov dword [eax], 0x470ee8
mov eax, ebx
call fcn.00470ef4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4182ac]
call fcn.004028b0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4182ac]
call fcn.004028b0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4182ac]
call fcn.004028b0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4182ac]
call fcn.004028b0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4182ac]
call fcn.004028b0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x46d30c
push eax
push 0
push 0
mov eax, dword [0x4f65d4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4252c8]
call fcn.00426a84
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4252c8]
call fcn.00426a84
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4252c8]
call fcn.00426a84
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004713f8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x471278
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x471278
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x471278
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x470c87
call fcn.00402cf0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47105c
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 0x471207
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4711e8
mov dl, 1
mov eax, dword [0x418910]
call fcn.004028b0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403804
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4711d7
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.0045e4e8
test al, al
je 0x4711ca
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, 0x471218
lea eax, [ebp - 0x254]
call fcn.00409f78
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4711ca
xor eax, eax
push ebp
push 0x4711c3
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 0x471250
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4711ac
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403ae4
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 0x4711ac
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403ae4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4711ca
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4710cd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041d290
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 0x47120e
lea eax, [ebp - 0x260]
call fcn.00403804
ret

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

Disassembly:
push ecx
mov eax, dword [0x4f839c]
cmp byte [eax + 0xa5], 0
jne 0x471c09
cmp dword [0x4f83b4], 0
jne 0x471bca
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x471b54
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4f83b4], eax
cmp dword [0x4f83b0], 0
jne 0x471be5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4f83b0], eax
cmp dword [0x4f83b8], 0
jne 0x471c09
push esp
push 0
push 0
push 0x471af8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4f83b8], eax
pop edx
ret
Function at 0x47229c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4f839c]
cmp dword [eax + 0x30], 0
je 0x472346
cmp dword [ebx + 0x94], 0
jne 0x472340
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47222c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x472340
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 0x472306
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x472340
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.0041ab58
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x472315
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x472ea4
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 0x472ed9
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.0040396c
jmp 0x472ee6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004038c4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4740b0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4740f1
mov eax, esi
call fcn.00459ad0
test al, al
je 0x4740f1
mov eax, dword [ebx + 0x84]
call fcn.004597cc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4740f1
push 0
mov eax, dword [ebx + 0x84]
call fcn.004597cc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x475250
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4752aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4f63a4]
cmp byte [eax], 0
je 0x47527a
push ebx
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
jmp 0x475294
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00403a9c
mov eax, dword [ebp - 4]
call fcn.00403d04
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4752b1
lea eax, [ebp - 4]
call fcn.00403804
ret
Function at 0x475500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor esi, esi
mov eax, ebx
call fcn.00407364
cmp ax, 0xffff
jne 0x475528
neg ebx
jno 0x475528
call fcn.0040282c
mov eax, ebx
shr eax, 4
and eax, 0xffff
add eax, 1
jae 0x47553c
call fcn.0040282c
and ebx, 0xf
push 6
push eax
push edi
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x4755e5
push eax
push edi
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
je 0x4755e5
push edi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
mov eax, ebx
sub eax, 1
jno 0x475576
call fcn.0040282c
test eax, eax
jl 0x475597
inc eax
mov edx, dword [ebp - 8]
movzx edx, word [edx]
imul edx, edx, 2
jno 0x47558b
call fcn.0040282c
add edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
dec eax
jne 0x47557b
mov eax, dword [ebp - 8]
movzx esi, word [eax]
add dword [ebp - 8], 2
cmp dword [ebp - 4], 0
je 0x4755e5
cmp dword [ebp + 8], 0
jle 0x4755e5
mov eax, dword [ebp + 8]
sub eax, 1
jno 0x4755ba
call fcn.0040282c
mov edx, esi
call fcn.0042e6c4
mov esi, eax
test esi, esi
jle 0x4755dc
imul ecx, esi, 2
jno 0x4755d1
call fcn.0040282c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00407378
mov eax, dword [ebp - 4]
mov word [eax + esi*2], 0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4761b8
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 0x47621c
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
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.00403ae4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409138
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476223
lea eax, [ebp - 0xc]
call fcn.00403804
ret

Function at 0x4762c8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x476324
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4762f3
call fcn.0040ece0
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00401748
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x476324
call fcn.0040ece0
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x481470
Capabilities:
Set global application hook

Disassembly:
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x481410
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4f877c], eax
cmp dword [0x4f877c], 0
jne 0x481497
call fcn.0040ece0
ret
Function at 0x481840
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 6
setae al
add esp, 0x94
ret

Function at 0x481864
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404130
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4818b3
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004042d0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4818b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x481a2d
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x20
lea edx, [ebp - 0x40]
push edx
and eax, 0x1ff
shl eax, 0x10
push eax
call sub.user32.dll_GetKeyNameTextW
mov esi, eax
lea edx, [ebp - 0x40]
mov eax, ebx
mov ecx, esi
call fcn.00404224
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x48]
mov eax, dword [ebx]
call fcn.00408b58
mov eax, dword [ebp - 0x48]
mov ecx, esi
sub ecx, 1
jno 0x481926
call fcn.0040282c
mov edx, 2
call fcn.0040451c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebx]
mov ecx, 1
mov edx, 1
call fcn.0040451c
mov edx, dword [ebp - 0x4c]
mov eax, ebx
pop ecx
call fcn.004043e8
mov edx, dword [ebx]
mov eax, 0x481a40
call fcn.00404694
test eax, eax
jle 0x481a12
lea eax, [ebp - 0x50]
push eax
mov edx, dword [ebx]
mov eax, 0x481a40
call fcn.00404694
mov ecx, eax
mov eax, dword [ebx]
mov edx, 1
call fcn.0040451c
push dword [ebp - 0x50]
lea eax, [ebp - 0x58]
push eax
mov edx, dword [ebx]
mov eax, 0x481a40
call fcn.00404694
mov edx, eax
add edx, 1
jno 0x4819a5
call fcn.0040282c
mov eax, dword [ebx]
mov ecx, 1
call fcn.0040451c
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.00408b24
push dword [ebp - 0x54]
lea eax, [ebp - 0x5c]
push eax
mov edx, dword [ebx]
mov eax, 0x481a40
call fcn.00404694
sub esi, eax
jno 0x4819d8
call fcn.0040282c
sub esi, 1
jno 0x4819e2
call fcn.0040282c
push esi
mov edx, dword [ebx]
mov eax, 0x481a40
call fcn.00404694
mov edx, eax
add edx, 2
jno 0x4819fb
call fcn.0040282c
mov eax, dword [ebx]
pop ecx
call fcn.0040451c
push dword [ebp - 0x5c]
mov eax, ebx
mov edx, 3
call fcn.00404450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481a34
lea eax, [ebp - 0x5c]
mov edx, 7
call fcn.00404148
ret
Function at 0x481a44
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x481b7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, ebx
and di, 0xff
movzx eax, di
cmp eax, 0x20
jge 0x481a85
add eax, 0xfffffff8
sub eax, 2
jb 0x481abf
sub eax, 3
je 0x481abf
sub eax, 0xe
je 0x481abf
jmp 0x481ad3
add eax, 0xffffffe0
sub eax, 9
jb 0x481a9f
add eax, 0xfffffffc
sub eax, 2
jb 0x481a9f
add eax, 0xffffffbf
sub eax, 0x18
jb 0x481abf
jmp 0x481ad3
push 0
movzx eax, di
push eax
call sub.user32.dll_MapVirtualKeyW
add eax, 0x100
jae 0x481ab6
call fcn.0040282c
mov edx, esi
call fcn.004818b8
jmp 0x481adc
push 0
movzx eax, di
push eax
call sub.user32.dll_MapVirtualKeyW
mov edx, esi
call fcn.004818b8
jmp 0x481adc
mov edx, esi
mov eax, edi
call fcn.00481864
test bh, 0x20
je 0x481b08
push 0
push 0x10
call sub.user32.dll_MapVirtualKeyW
lea edx, [ebp - 4]
call fcn.004818b8
push dword [ebp - 4]
push 0x481b90
push dword [esi]
mov eax, esi
mov edx, 3
call fcn.00404450
test bh, 0x80
je 0x481b34
push 0
push 0x12
call sub.user32.dll_MapVirtualKeyW
lea edx, [ebp - 8]
call fcn.004818b8
push dword [ebp - 8]
push 0x481b90
push dword [esi]
mov eax, esi
mov edx, 3
call fcn.00404450
test bh, 0x40
je 0x481b60
push 0
push 0x11
call sub.user32.dll_MapVirtualKeyW
lea edx, [ebp - 0xc]
call fcn.004818b8
push dword [ebp - 0xc]
push 0x481b90
push dword [esi]
mov eax, esi
mov edx, 3
call fcn.00404450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481b82
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404148
ret
Function at 0x483ae0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x483c56
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4f63a4]
cmp byte [eax], 0
je 0x483b36
mov eax, ebx
mov edx, dword [0x44ecc8]
call fcn.00402a80
test al, al
je 0x483b4f
mov eax, ebx
call fcn.00459ad0
test al, al
je 0x483b4f
mov eax, ebx
call fcn.004597cc
push eax
call sub.user32.dll_IsWindowUnicode
test eax, eax
jne 0x483b4f
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00452f3c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004042ec
jmp 0x483c2b
mov eax, ebx
mov edx, dword [0x44ecc8]
call fcn.00402a80
test al, al
jne 0x483ba4
xor edx, edx
mov eax, ebx
call fcn.00483a00
mov edi, eax
test edi, edi
jne 0x483b88
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00452f3c
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004042ec
jmp 0x483c2b
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00452f3c
mov edx, dword [ebp - 0xc]
mov ecx, esi
lea eax, [edi + 0x38]
call fcn.0047bcd8
jmp 0x483c2b
mov edi, ebx
mov eax, edi
call fcn.00459ad0
test al, al
jne 0x483bd4
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00452f3c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.004042ec
mov edx, dword [ebp - 0x10]
mov ecx, esi
mov eax, ebx
call fcn.00483a4c
jmp 0x483c2b
mov eax, edi
call fcn.004597cc
push eax
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
add edx, 1
jno 0x483bed
call fcn.0040282c
mov eax, esi
call fcn.004046e4
mov eax, dword [esi]
call fcn.0040437c
push eax
mov eax, dword [esi]
call fcn.0040436c
push eax
mov eax, edi
call fcn.004597cc
push eax
call sub.user32.dll_GetWindowTextW
mov eax, dword [esi]
call fcn.0040437c
mov edx, eax
sub edx, 1
jno 0x483c24
call fcn.0040282c
mov eax, esi
call fcn.004046e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483c5d
lea eax, [ebp - 0x14]
call fcn.00403804
lea eax, [ebp - 0x10]
call fcn.00404130
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040386c
ret

Function at 0x4937e8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
xor edx, edx
push ebp
push 0x493861
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, byte [eax + 0x2a0]
mov ecx, edx
sub cl, 1
jae 0x493849
push 2
lea eax, [ebp - 2]
push eax
push 0x100c
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 8]
lea edx, [ebp - 2]
mov ecx, 2
call fcn.00403ae4
mov eax, dword [ebp - 8]
call fcn.004090fc
sub eax, 1
jae 0x493845
mov bl, 1
jmp 0x49384b
mov bl, 2
jmp 0x49384b
mov ebx, edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493868
lea eax, [ebp - 8]
call fcn.00403804
ret
Function at 0x499b44
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x499c7a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dl, byte [esi + 0x280]
je 0x499c5c
mov eax, edx
mov byte [esi + 0x280], al
test al, al
je 0x499c18
mov eax, esi
call fcn.00452984
mov edx, eax
lea ecx, [ebp - 0x10]
or eax, 0xffffffff
call fcn.004194d8
lea edx, [ebp - 0x10]
lea ecx, [ebp - 8]
mov eax, esi
call fcn.00452a54
mov edx, dword [esi + 0x68]
mov eax, dword [esi + 0x278]
call fcn.00453030
mov ebx, dword [esi + 0x278]
mov edx, dword [esi + 0x48]
mov eax, ebx
call fcn.004526f8
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.00487688
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.00403afc
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x278]
call fcn.00452f6c
lea edx, [ebp - 8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x158]
mov byte [esi + 0x234], 1
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xe8]
cmp byte [esi + 0x281], 1
jne 0x499c5c
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x7c]
jmp 0x499c5c
mov eax, dword [esi + 0x278]
mov byte [eax + 0x254], 1
call sub.user32.dll_ReleaseCapture
mov byte [esi + 0x234], 0
xor edx, edx
mov eax, dword [esi + 0x274]
call fcn.00496a78
push 0
mov eax, dword [esi + 0x278]
call fcn.004597cc
push eax
call sub.user32.dll_ShowWindow
mov eax, esi
mov si, 0xffad
call fcn.00402b28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499c81
lea eax, [ebp - 0x18]
call fcn.00404130
lea eax, [ebp - 0x14]
call fcn.00403804
ret