joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463070
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
mov eax, 0x10034
call fcn.004ebaf0
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x10030], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x10044]
mov word [esi + 0x6d4], 0
test edi, edi
jne 0x4630af
cmp dword [0x527690], edi
jne 0x4630af
mov edi, dword [esi + 0x6b4]
cmp dword [esi + 0x6d0], 0
jne 0x46319f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46319f
cmp dword [0x527690], 0
jne 0x46319f
mov ebx, dword [0x62271c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebx*4]
cmp byte [eax + 0x2198], 0
jne 0x4630fe
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + ebx*4]
mov eax, dword [edx + 0x298]
cmp byte [eax + 0x6d7], 0
jne 0x46314d
push edi
push str.Script_file_not_found.
push str._s_n_s
lea eax, [esp + 0x18]
push 0x8018
push eax
call fcn.004e6440
add esp, 0x14
lea eax, [esp + 0xc]
xorps xmm0, xmm0
push 0
sub esp, 8
movsd qword [esp], xmm0
push 0
push 0x10
push eax
call fcn.004e9320
add esp, 0x18
jmp 0x463182
cmp byte [edx + 0x2198], 0
lea edi, [esi + 0x6b4]
jne 0x463168
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebx*4]
mov ecx, esi
push 0x4f5b70
push str.Script_file_not_found.
mov dword [eax + 0x938], edi
call fcn.0046cf30
or eax, 0xffffffff
mov ecx, dword [esp + 0x1003c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ebadf
add esp, 0x10034
ret 4
cmp dword [esi + 0x6d0], 2
mov eax, 0x4ff0c8
push 0
push 0
cmovne eax, edi
mov ecx, esi
push eax
call fcn.00465140
test eax, eax
je 0x463182
push 0
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov ecx, esi
test eax, eax
jne 0x4631d8
push 0x4f5b70
push str.An_internal_function_call_failed.
jmp 0x46317d
push dword [esi]
call fcn.0046bf90
test eax, eax
je 0x463182
lea edi, [esi + 0x2c]
mov ecx, esi
push edi
call fcn.0046be00
test eax, eax
je 0x463182
lea ebx, [esi + 0x18]
mov ecx, esi
push ebx
call fcn.0046be00
test eax, eax
je 0x463182
push dword [esi]
mov ecx, esi
call fcn.0046c060
test eax, eax
je 0x463182
push edi
mov ecx, esi
call fcn.0046c360
test eax, eax
je 0x463182
push ebx
mov ecx, esi
call fcn.0046c360
test eax, eax
je 0x463182
cmp dword [esi + 0x274], 0
je 0x463260
mov ecx, esi
call fcn.0046cd60
test eax, eax
je 0x463182
mov eax, dword [esi + 0x274]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esi + 0x274], 0
cmp byte [esi + 0x6dc], 0
jne 0x4632af
push dword [esi + 0x6b8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push 0
push 0
push 0
push 7
mov ecx, esi
call fcn.00451ec0
test eax, eax
je 0x463182
push dword [esi]
mov ecx, esi
call fcn.0046b8e0
test eax, eax
je 0x463182
mov ecx, dword [esi + 0x6e0]
test ecx, ecx
je 0x4632b6
mov eax, dword [ecx]
push 1
call dword [eax]
xor eax, eax
jmp 0x463185
mov eax, 1
jmp 0x463185
Function at 0x465260
Capabilities:
Get number of processors

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
push edi
push 0x501798
push dword [esp + 0x40]
push ebx
call fcn.004e6440
mov ecx, dword fs:[0x2c]
add esp, 0xc
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x24], 0xffffffff
lea esi, [ebx + eax*2]
mov eax, dword [0x62271c]
mov dword [esp + 0x30], esi
mov ebx, 0x190
lea edi, [eax*4]
mov eax, dword [edi + ecx]
mov dword [esp + 0x14], edi
mov eax, dword [eax + 0x93c]
mov dword [esp + 0x1c], ebx
mov edx, esi
mov dword [esp + 0x18], edx
mov byte [esp + 0x13], 0
test ebx, ebx
jle 0x465449
mov esi, 2
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], esi
nop dword [eax]
mov edi, dword [edi + ecx]
lea ebp, [eax - 0x190]
cmp eax, 0x190
cmovl ebp, eax
lea ebx, [edi + ebp*4]
cmp dword [ebx + 0xfe0], 0
je 0x46542a
mov dl, byte [esp + 0x13]
lea eax, [esi - 1]
mov byte [esp + 0x2c], dl
mov byte [esp + 0x13], 0
cmp eax, dword [esp + 0x1c]
jge 0x465374
test dl, dl
jne 0x465426
mov edx, dword [ebx + 0x9a0]
lea eax, [ebp + 1]
xor esi, esi
cmp eax, 0x190
cmovl esi, eax
mov esi, dword [edi + esi*4 + 0x9a0]
sub esi, edx
cmp esi, 0x7fffffff
jbe 0x465393
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x13], 1
cmp dword [esp + 0x20], eax
je 0x465374
lea eax, [ebp + 2]
mov esi, 0xfffffe72
cmp eax, 0x190
mov eax, 2
cmovl esi, eax
add esi, ebp
mov esi, dword [edi + esi*4 + 0x9a0]
sub esi, edx
jmp 0x465393
mov edi, dword [esp + 0x14]
mov edi, dword [edi + ecx]
lea ebx, [edi + ebp*4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword fs:[0x2c]
mov esi, eax
sub esi, dword [ebx + 0x9a0]
mov eax, dword [ebx + 0xfe0]
mov ebx, dword [esp + 0x18]
movzx eax, word [eax + 2]
cmp dword [esp + 0x24], eax
je 0x4653dd
mov ecx, eax
mov eax, dword [edi + 0x938]
mov dword [esp + 0x24], ecx
push dword [eax + ecx*4]
mov eax, dword [esp + 0x40]
mov ecx, ebx
sub ecx, dword [esp + 0x3c]
sar ecx, 1
push str.______s_r_n
sub eax, ecx
push eax
push ebx
call fcn.004e6440
mov ecx, dword fs:[0x2c]
add esp, 0x10
lea ebx, [ebx + eax*2]
mov edi, dword [esp + 0x14]
mov eax, ebx
sub eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
sar eax, 1
sub edx, eax
mov eax, dword [edi + ecx]
push 1
push dword [esp + 0x30]
mov ecx, dword [eax + ebp*4 + 0xfe0]
mov eax, 0xc8
push esi
cmp edx, eax
push 1
cmovl eax, edx
push eax
push ebx
call fcn.0046e930
mov ecx, dword fs:[0x2c]
mov edx, eax
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], edx
jmp 0x46542e
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
inc esi
lea eax, [ebp + 1]
sub dword [esp + 0x28], 1
mov dword [esp + 0x20], esi
jne 0x4652e0
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov eax, edx
sub eax, ebp
sar eax, 1
sub esi, eax
cmp esi, 0x18
jg 0x46547b
cmp ebx, 0x78
jl 0x46547b
mov eax, dword [edi + ecx]
sub ebx, 0x64
mov esi, dword [esp + 0x30]
mov eax, dword [eax + 0x93c]
sub eax, ebx
add eax, 0x190
jmp 0x4652b5
push str._r_nPress__F5__to_refresh.
push esi
push edx
call fcn.004e6440
mov ecx, dword [esp + 0x24]
add esp, 0xc
pop edi
pop esi
pop ebp
lea eax, [ecx + eax*2]
pop ebx
add esp, 0x24
ret
Function at 0x46d1e0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x400c
call fcn.004ebaf0
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x4008], eax
mov eax, dword [esp + 0x4018]
push ebx
push ebp
mov ebp, dword [esp + 0x4018]
mov ebx, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x401c]
mov dword [esp + 0xc], eax
push esi
mov esi, dword [esp + 0x4028]
test ebp, ebp
je 0x46d397
test esi, esi
jne 0x46d246
mov esi, dword [ebx + 0x648]
test esi, esi
jne 0x46d246
mov ecx, dword [ebx + 0x280]
movzx edx, word [ebx + 0x284]
jmp 0x46d24e
movzx ecx, word [esi + 2]
movzx edx, word [esi + 4]
mov eax, dword [0x62271c]
push edi
push dword [esp + 0x14]
lea edi, [eax*4]
movzx eax, dx
push eax
mov eax, dword fs:[0x2c]
mov eax, dword [edi + eax]
mov eax, dword [eax + 0x938]
push dword [eax + ecx*4]
lea eax, [esp + 0x24]
push str._s___d__:___Warning:__s_n
push 0x2000
push eax
call fcn.004e6440
mov edx, eax
add esp, 0x18
mov eax, dword [esp + 0x10]
add edx, edx
cmp word [eax], 0
je 0x46d2bb
push eax
mov ecx, edx
mov eax, 0x2000
sar ecx, 1
sub eax, ecx
push str._____Specifically:__s_n
push eax
lea eax, [esp + 0x24]
add eax, edx
push eax
call fcn.004e6440
add esp, 0x10
cmp ebp, 3
jne 0x46d2d8
push 0x4ff0c8
push 0
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.0046c7e0
jmp 0x46d396
mov ecx, dword fs:[0x2c]
mov eax, dword [edi + ecx]
cmp byte [eax + 0x2198], 0
jne 0x46d2f7
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [edi + ecx]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [eax + 0x264]
call fcn.004273b0
test al, al
jne 0x46d319
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, 2
jne 0x46d396
mov ecx, dword fs:[0x2c]
mov eax, dword [edi + ecx]
cmp byte [eax + 0x2198], 0
jne 0x46d33d
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [edi + ecx]
cmp byte [eax + 0x2198], 0
mov ebx, dword [eax + 0x298]
jne 0x46d35b
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov ecx, dword [edi + ecx]
mov eax, dword [ecx + 0x29c]
cmp dword [eax + 0x38], 8
jne 0x46d375
mov eax, dword [ebx + 0x648]
test eax, eax
cmovne esi, eax
cmp byte [ecx + 0x2198], 0
jne 0x46d383
call fcn.004ebad3
mov eax, dword [esp + 0x10]
mov ecx, ebx
push esi
push eax
push 1
push dword [esp + 0x20]
call fcn.0046d960
pop edi
mov ecx, dword [esp + 0x4014]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebadf
add esp, 0x400c
ret 0x10
Function at 0x46fe70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
sub esp, 0x1c
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
push 0xa
lea eax, [esp + 0xc]
mov edi, ecx
push eax
push dword [esp + 0x30]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultow]
mov eax, dword [0x62271c]
add esp, 0xc
mov ecx, dword fs:[0x2c]
lea esi, [eax*4]
mov eax, dword [esi + ecx]
cmp byte [eax + 0x2198], 0
jne 0x46fec1
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [esi + ecx]
mov ecx, edi
push dword [eax + 0x2100]
lea eax, [esp + 0xc]
push 0
push dword [esp + 0x34]
push 0x4f5b70
push eax
call fcn.0046ce10
mov ecx, dword [esp + 0x20]
pop edi
pop esi
xor ecx, esp
call fcn.004ebadf
add esp, 0x1c
ret 8
Function at 0x495ad0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x526b24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x495bbf
cmp word [ebx], 0
je 0x495bbf
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x495b2e
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
shr eax, 4
and al, 1
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ebadf
mov esp, ebp
pop ebp
ret
push 0x5c
push ebx
call sub.VCRUNTIME140.dll_wcsrchr
mov esi, eax
add esp, 8
mov dword [ebp - 8], esi
cmp esi, ebx
jbe 0x495b9d
cmp word [esi - 2], 0x3a
je 0x495b9d
cmp dword [ebp + 0xc], 0
je 0x495b68
xor eax, eax
push ebx
push ebx
mov word [esi], ax
call fcn.00495ad0
mov ecx, 0x5c
add esp, 8
mov word [esi], cx
jmp 0x495b92
sub esi, ebx
sar esi, 1
lea eax, [esi*2 + 2]
call fcn.004ec520
mov edi, esp
lea eax, [esi + 1]
push eax
push ebx
push edi
call fcn.004e6a80
push edi
push edi
call fcn.00495ad0
mov esi, dword [ebp - 8]
add esp, 0x14
cmp word [esi + 2], 0
je 0x495bc9
test al, al
je 0x495bc9
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ebadf
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ebadf
mov esp, ebp
pop ebp
ret
Function at 0x497990
Capabilities:
Get disk information
Get process image filename

Disassembly:
sub esp, 0x218
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x21c]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x224]
push eax
push ecx
push 0x1000
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 4], eax
test eax, eax
jne 0x4979e3
pop edi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004ebadf
add esp, 0x218
ret
push ebx
push dword [esp + 0x22c]
push edi
push eax
call sub.PSAPI.DLL_GetProcessImageFileNameW
mov ebx, eax
test ebx, ebx
je 0x497ada
cmp byte [esp + 0x230], 0
push esi
je 0x497a46
push 0x5c
push edi
call sub.VCRUNTIME140.dll_wcsrchr
mov edx, eax
add esp, 8
test edx, edx
je 0x497ad9
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x497a21
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [edx + 2]
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
jmp 0x497ad9
mov eax, 0x41
mov dword [esp + 0x12], 0x3a
push ebp
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
mov word [esp + 0x14], ax
nop
push 0x104
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
cmp esi, 2
jbe 0x497a99
sub esi, 2
lea eax, [esp + 0x1c]
push esi
push edi
push eax
call ebp
add esp, 0xc
test eax, eax
jne 0x497a99
cmp word [edi + esi*2], 0x5c
lea ecx, [edi + esi*2]
je 0x497aad
mov ax, word [esp + 0x14]
inc ax
mov word [esp + 0x14], ax
cmp ax, 0x5a
jbe 0x497a60
jmp 0x497ad8
movzx eax, word [esp + 0x14]
sub ebx, esi
mov word [edi], ax
movzx eax, word [esp + 0x16]
mov word [edi + 2], ax
lea eax, [ebx*2 + 2]
push eax
push ecx
lea eax, [edi + 4]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
add ebx, 2
pop ebp
pop esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x21c]
mov eax, ebx
pop ebx
pop edi
xor ecx, esp
call fcn.004ebadf
add esp, 0x218
ret

Function at 0x497b00
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10004
call fcn.004ebaf0
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x10000], eax
lea eax, [esp]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x497b4d
lea eax, [esp]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
add esp, 4
mov ecx, dword [esp + 0x10000]
xor ecx, esp
call fcn.004ebadf
add esp, 0x10004
ret
mov ecx, dword [esp + 0x10000]
xor eax, eax
xor ecx, esp
call fcn.004ebadf
add esp, 0x10004
ret
Function at 0x49bbb0
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
sub esp, 0x51c
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x518], eax
mov ecx, dword fs:[0x2c]
push ebx
mov ebx, dword [esp + 0x524]
push ebp
push esi
push edi
mov edi, dword [0x62271c]
mov esi, ebx
mov dword [esp + 0x14], 0x4f5b70
mov eax, dword [ecx + edi*4]
cmp byte [eax + 0x2198], 0
jne 0x49bbfe
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + edi*4]
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [eax + 0x298]
push dword [eax + 0x6c8]
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne cl
mov byte [esp + 0x13], cl
jne 0x49bce0
xor esi, esi
lea eax, [esp + 0x118]
push esi
push 0x104
push eax
push str.InstallDir
push str.SOFTWAREAutoHotkey
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004e5340
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x49bc94
nop dword [eax]
test esi, esi
jne 0x49bc94
mov esi, 0x100
lea eax, [esp + 0x118]
push esi
push 0x104
push eax
push str.InstallDir
push str.SOFTWAREAutoHotkey
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004e5340
mov edx, eax
add esp, 0x18
test edx, edx
je 0x49bc60
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [esp + ecx + 0x118]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x31e], ax
test ax, ax
jne 0x49bca0
test edx, edx
je 0x49bdf3
lea eax, [esp + 0x320]
push eax
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49bdf3
mov cl, byte [esp + 0x13]
mov esi, ebx
cmp byte [esp + 0x534], 0
je 0x49bd3b
test cl, cl
je 0x49bd3b
push ebx
push str._script__s
lea eax, [esp + 0x20]
push 0x40
push eax
call fcn.004e6440
mov ecx, dword fs:[0x2c]
add esp, 0x10
mov eax, dword [ecx + edi*4]
cmp byte [eax + 0x2198], 0
jne 0x49bd22
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + edi*4]
mov eax, dword [eax + 0x298]
mov esi, dword [eax + 0x6c4]
lea eax, [esp + 0x18]
mov dword [esp + 0x14], eax
jmp 0x49bd42
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + edi*4]
cmp byte [eax + 0x2198], 0
jne 0x49bd5a
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + edi*4]
push 0
push 0
push 0
mov ecx, dword [eax + 0x298]
push 0
push 0
push 0
push 0
push dword [esp + 0x30]
push esi
call fcn.00451060
test eax, eax
jne 0x49bdb8
push ebx
push str.Could_not_launch__s
lea eax, [esp + 0xa0]
push 0x40
push eax
call fcn.004e6440
add esp, 0x10
lea eax, [esp + 0x98]
xorps xmm0, xmm0
push 0
sub esp, 8
movsd qword [esp], xmm0
push 0
push 0x10
push eax
call fcn.004e9320
add esp, 0x18
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + edi*4]
cmp byte [eax + 0x2198], 0
jne 0x49bdd7
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + edi*4]
mov ecx, 0x4f6190
mov eax, dword [eax + 0x6a0]
test eax, eax
je 0x49bdf0
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call ebp
mov ecx, dword [esp + 0x528]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebadf
add esp, 0x51c
ret
Function at 0x49f340
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test bl, bl
jne 0x49f34d
xor al, al
pop ebx
ret
mov eax, dword [esp + 0xc]
sub eax, 1
je 0x49f376
sub eax, 1
movzx eax, bl
push eax
je 0x49f36c
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
pop ebx
ret
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
pop ebx
ret
mov al, bl
dec al
push esi
cmp al, 5
ja 0x49f384
cmp bl, 3
jne 0x49f38c
mov al, bl
add al, 0x66
cmp al, 5
ja 0x49f3d5
mov eax, dword [0x62271c]
mov edx, dword fs:[0x2c]
lea esi, [eax*4]
mov eax, dword [esi + edx]
cmp byte [eax + 0x2198], 0
jne 0x49f3b7
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov eax, dword [esi + edx]
cmp dword [eax + 0x1f0], 0
jne 0x49f431
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
pop esi
and al, 1
pop ebx
ret
mov eax, dword [0x62271c]
mov ecx, dword fs:[0x2c]
lea esi, [eax*4]
mov eax, dword [esi + ecx]
cmp byte [eax + 0x2198], 0
jne 0x49f400
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [esi + ecx]
cmp dword [eax + 0x1f4], 0
je 0x49f3c3
push 0
push 0
push ebx
call fcn.0043e280
add esp, 0xc
test al, al
je 0x49f427
push 1
call fcn.0043d7d0
add esp, 4
mov edx, dword fs:[0x2c]
mov eax, dword [esi + edx]
cmp byte [eax + 0x2198], 0
jne 0x49f446
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov eax, dword [esi + edx]
movzx ecx, bl
pop esi
pop ebx
mov al, byte [eax + ecx + 0x570]
shr al, 7
ret
Function at 0x49ffd0
Capabilities:
Set current directory

Disassembly:
sub esp, 0xc
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x14]
movzx eax, word [esi]
test ax, ax
je 0x4a0011
cmp word [esi + 2], 0x3a
jne 0x4a0011
cmp word [esi + 4], 0
jne 0x4a0011
mov word [esp + 4], ax
lea esi, [esp + 4]
xor eax, eax
mov dword [esp + 6], 0x5c003a
mov word [esp + 0xa], ax
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x4a002c
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004ebadf
add esp, 0xc
ret
mov eax, dword [0x62271c]
mov ecx, dword fs:[0x2c]
push edi
lea edi, [eax*4]
mov eax, dword [edi + ecx]
cmp byte [eax + 0x2198], 0
jne 0x4a0058
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [edi + ecx]
pop edi
mov eax, dword [eax + 0x298]
cmp byte [eax + 0x6d4], 0
je 0x4a0074
push esi
call fcn.004a3b90
add esp, 4
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
xor ecx, esp
call fcn.004ebadf
add esp, 0xc
ret
Function at 0x4a3b40
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov edi, ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
lea edx, [esi + esi]
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [edi + 0xc], eax
test eax, eax
jne 0x4a3b6a
pop edi
pop esi
ret 4
push esi
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x4a3b82
mov eax, dword [edi + 0xc]
xor ecx, ecx
mov word [eax], cx
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x4a4170
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c7c
call fcn.004ebaf0
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x11c78], eax
mov ecx, dword [esp + 0x11c90]
xorps xmm0, xmm0
mov edx, dword [esp + 0x11c94]
push ebx
mov ebx, dword [esp + 0x11c88]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x1020], 0x4f5b70
mov dword [esp + 0x1854], 0
mov dword [esp + 0x1858], 0
mov dword [esp + 0x1864], 0
mov dword [esp + 0x1868], 0
mov byte [esp + 0x1841], 1
push ebp
mov ebp, dword [esp + 0x11c94]
push esi
mov esi, dword [esp + 0x11c94]
push edi
mov edi, dword [esp + 0x11c90]
movups xmmword [esp + 0x1850], xmm0
cmp ebx, 6
jne 0x4a4242
push 0
push 0
push 0
call fcn.004cc660
add esp, 0xc
mov dword [esp + 0x1870], eax
test eax, eax
jne 0x4a423a
mov ecx, edi
call fcn.004655d0
jmp 0x4a43bd
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
movzx eax, word [esi]
cmp eax, 0x41
je 0x4a4253
cmp eax, 0x61
jne 0x4a4338
cmp word [esi + 2], 0
jne 0x4a4338
cmp word [ebp], 0
jne 0x4a4338
cmp word [ecx], 0
jne 0x4a4338
cmp word [edx], 0
jne 0x4a4338
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4a42df
mov ecx, dword [0x62271c]
mov eax, dword fs:[0x2c]
lea ebp, [ecx*4]
mov ecx, dword [eax + ebp]
cmp byte [ecx + 0x2198], 0
jne 0x4a42b3
call fcn.004ebad3
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ebp]
mov eax, dword [eax + 0x29c]
cmp byte [eax + 0x93], 0
jne 0x4a42df
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a42dd
push esi
call fcn.004e9270
add esp, 4
test al, al
je 0x4a42df
xor esi, esi
cmp ebx, 5
jne 0x4a430e
test esi, esi
je 0x4a42f5
xor ecx, ecx
lea eax, [ebx - 4]
mov dword [edi + 4], ecx
jmp 0x4a43bb
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [edi + 4], ecx
jmp 0x4a43bb
test esi, esi
je 0x4a43a0
mov ecx, dword [esp + 0x1870]
push 0
push esi
call fcn.00470610
mov eax, dword [esp + 0x1870]
mov dword [edi + 8], 5
jmp 0x4a43bb
mov eax, dword [0x62271c]
mov ecx, dword fs:[0x2c]
shl eax, 2
mov dword [esp + 0x18], eax
mov eax, dword [eax + ecx]
cmp byte [eax + 0x2198], 0
jne 0x4a4363
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
push dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x18]
push ebp
mov eax, dword [eax + ecx]
lea ecx, [esp + 0x2c]
push esi
mov eax, dword [eax + 0x29c]
add eax, 0x58
push eax
call fcn.004e9790
test eax, eax
je 0x4a439b
lea eax, [esp + 0x20]
push eax
push 0x4e8c10
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 6
jne 0x4a43b0
mov eax, dword [esp + 0x1870]
mov dword [edi + 8], 5
jmp 0x4a43bb
mov eax, dword [esp + 0x1850]
cdq
mov dword [edi + 4], edx
mov dword [edi], eax
mov ecx, dword [esp + 0x11c88]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebadf
add esp, 0x11c7c
ret