joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40109d
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
push edi
mov edi, eax
lea eax, [ebp - 0x11c]
push eax
xor ebx, ebx
push 0x104
mov byte [ebp - 2], bl
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call fcn.004013e3
lea eax, [edi + 0x10]
cmp dword [eax], ebx
jne 0x4010e5
push 0xffffffffffffffff
push dword [edi + 0x18]
mov esi, 0x46f2b0
push 1
call fcn.0040f894
jmp 0x401136
lea ecx, [ebp - 2]
push ecx
push eax
mov al, byte [0x4638dc]
lea esi, [edi + 0x24]
mov ebx, 0x46f2b0
call fcn.0040fcf7
test al, al
jne 0x40110f
mov dword [0x4638f4], 1
jmp 0x40126c
mov al, byte [0x46f2b0]
mov byte [edi + 0x14], al
mov al, byte [0x46f2b1]
mov byte [ebp - 1], al
lea eax, [edi + 0xc]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov esi, 0x46f2b0
call fcn.0040fcc5
push dword [edi + 0x10]
lea eax, [edi + 0x24]
mov esi, 0x46db20
push eax
mov ebx, esi
mov dword [ebp - 8], eax
call fcn.0041f691
test eax, eax
je 0x401180
mov edi, 0x46f2b0
call fcn.0040fa37
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x4638f4], 1
jmp 0x401279
xor ebx, ebx
inc ebx
cmp byte [ebp - 1], bl
jne 0x40123d
cmp byte [0x46d9d5], bl
jne 0x40123d
call fcn.00415d99
test al, al
jne 0x40123d
push 0x104
lea eax, [ebp - 0x224]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp - 2], 0
je 0x401214
mov edi, 0x45a4b0
push edi
lea esi, [ebp - 0x14]
call fcn.00416696
push dword [ebp - 8]
or eax, 0xffffffff
mov ecx, esi
call fcn.00416955
push edi
or eax, 0xffffffff
mov ecx, esi
call fcn.00416955
push ebx
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x224]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [ebp - 0x14]
call fcn.00448196
pop ecx
jmp 0x401262
push ebx
lea eax, [ebp - 0x11c]
push eax
push dword [0x46f278]
lea eax, [ebp - 0x224]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x401262
mov ebx, edi
call fcn.0040127e
call fcn.00401372
cmp byte [edi + 0x14], 0
jne 0x401259
mov ebx, 0x46e2c0
call fcn.0041265c
push 1
mov ecx, esi
call fcn.0041f8dc
mov edi, 0x46f2b0
call fcn.0040fa37
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d4f
Capabilities:
Log keystrokes

Disassembly:
mov eax, dword [esi]
push ebp
xor ebp, ebp
cmp eax, ebp
jne 0x401d5f
xor al, al
jmp 0x401deb
push ebx
push edi
push 1
push eax
push esi
call fcn.00403162
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push ebp
push 0x25
call edi
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
shl eax, 0x10
or eax, 1
cmp dword [esp + 0x10], ebp
push eax
jge 0x401dac
push 0x25
push 0x100
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
jmp 0x401dce
push 0x27
push 0x100
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
push 0x101
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push dword [esi]
push esi
call fcn.00403162
pop edi
mov al, 1
pop ebx
pop ebp
ret 4

Function at 0x402332
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
test eax, eax
jne 0x402345
xor al, al
jmp 0x4023cc
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0xb0
push eax
call esi
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x402368
xor al, al
jmp 0x4023cb
push edi
push 0
push 0
push 0xe
push dword [ebx]
call esi
mov edi, eax
test edi, edi
je 0x4023c8
lea eax, [edi + 0x101]
push eax
call fcn.00448308
pop ecx
push eax
mov dword [ebp - 4], eax
lea eax, [edi + 1]
push eax
push 0xd
push dword [ebx]
call esi
test eax, eax
je 0x4023bf
mov eax, dword [ebp - 8]
cmp eax, edi
mov esi, dword [ebp - 4]
je 0x4023a6
mov byte [esi + eax], 0
mov eax, dword [ebp - 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call fcn.00416786
push esi
call fcn.00448196
pop ecx
mov al, 1
jmp 0x4023ca
push dword [ebp - 4]
call fcn.00448196
pop ecx
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x402e29
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp byte [esi + 8], 0
push edi
je 0x402e61
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [esi + 0x30], eax
jne 0x402e5a
mov dword [esi + 0x38], edi
xor eax, eax
jmp 0x402f72
mov dword [ebp - 4], 1
cmp byte [esi + 4], 0
mov edi, dword [sym.imp.USER32.dll_GetClassNameA]
push ebx
mov ebx, 0x100
je 0x402ea0
push ebx
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 8]
call edi
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x40c]
push ecx
push eax
call fcn.00448480
test eax, eax
pop ecx
pop ecx
jne 0x402e9d
mov dword [ebp - 8], 1
inc dword [ebp - 4]
cmp byte [esi + 7], 0
je 0x402f12
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x40c]
push eax
push ebx
call edi
mov edi, dword [esi + 0x18]
lea eax, [ebp - 0x40c]
push eax
call fcn.00448680
push eax
lea eax, [ebp - 0x40c]
push eax
push edi
call fcn.00448640
add esp, 0x10
test eax, eax
jne 0x402f0d
inc dword [esi + 0x3c]
push dword [esi + 0x3c]
lea eax, [ebp - 0x40c]
push eax
push str._s_u
push eax
call fcn.0044870b
push dword [esi + 0x18]
lea eax, [ebp - 0x40c]
push eax
call fcn.00448480
add esp, 0x18
test eax, eax
jne 0x402f0d
mov dword [esi + 0x38], ebx
xor eax, eax
jmp 0x402f71
inc dword [ebp - 4]
jmp 0x402f15
mov ebx, dword [ebp + 8]
cmp byte [esi + 6], 0
je 0x402f47
push 0x400
lea eax, [ebp - 0x40c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esi + 0x24]
lea ecx, [ebp - 0x40c]
push ecx
push eax
call fcn.00448480
test eax, eax
pop ecx
pop ecx
je 0x402f06
inc dword [ebp - 4]
cmp byte [esi + 5], 0
je 0x402f66
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x402f63
inc dword [esi + 0x3c]
mov eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0x34]
jne 0x402f63
inc dword [ebp - 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
je 0x402f06
xor eax, eax
inc eax
pop ebx
pop edi
leave
ret 4

Function at 0x40307c
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 1
jne 0x4030a7
lea eax, [ebp + 0xc]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x4030c2
push 1
jmp 0x4030a9
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop ebp
ret 8

Function at 0x403162
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 0xc], 1
jne 0x40317a
push dword [esp + 8]
call fcn.00403c6d
test al, al
jne 0x403196
push 1
jmp 0x40317c
push 0
push 0
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
ret 0xc
Function at 0x40322d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x45a5cc
push dword [ebp + 8]
call fcn.00416786
mov eax, dword [ebx]
test eax, eax
jne 0x403248
xor al, al
jmp 0x403298
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xe
push eax
call esi
test eax, eax
je 0x403295
push edi
lea edi, [eax + 1]
push edi
call fcn.00448308
pop ecx
push eax
push edi
push 0xd
push dword [ebx]
mov dword [ebp - 4], eax
call esi
test eax, eax
pop edi
push dword [ebp - 4]
jg 0x403284
call fcn.00448196
pop ecx
xor al, al
jmp 0x403297
push dword [ebp + 8]
call fcn.00416786
push dword [ebp - 4]
call fcn.00448196
pop ecx
mov al, 1
pop esi
leave
ret 4
Function at 0x4039ea
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
and dword [ebp - 4], 0
and dword [ebp - 8], 0
cmp byte [edi + 0xb], 0
je 0x403a0a
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
cmp byte [edi + 9], 0
push esi
mov esi, 0x400
je 0x403a43
push esi
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
mov eax, dword [edi + 0x48]
lea ecx, [ebp - 0x418]
push ecx
push eax
call fcn.00448480
test eax, eax
pop ecx
pop ecx
jne 0x403a40
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 6], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
je 0x403ad9
push esi
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 8]
call ebx
cmp byte [edi + 0xc], 0
jne 0x403a82
lea eax, [ebp - 0x418]
push eax
call fcn.00448680
pop ecx
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
mov eax, dword [edi + 0x10]
dec eax
je 0x403ab8
dec eax
je 0x403aa1
dec eax
jne 0x403ad6
push dword [edi + 0x14]
lea eax, [ebp - 0x418]
push eax
call fcn.00448480
pop ecx
pop ecx
jmp 0x403acf
push dword [edi + 0x14]
lea eax, [ebp - 0x418]
push eax
call fcn.004487f0
test eax, eax
pop ecx
pop ecx
je 0x403ad6
jmp 0x403ad3
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
push eax
lea eax, [ebp - 0x418]
push eax
push ecx
call fcn.00448640
add esp, 0xc
test eax, eax
jne 0x403ad6
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 7], 0
je 0x403b1b
push esi
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 8]
call ebx
lea eax, [ebp - 0x418]
push eax
lea esi, [ebp - 0x14]
call fcn.00416696
lea esi, [edi + 0x2c]
lea eax, [ebp - 0x14]
call fcn.0040f107
push dword [ebp - 0x14]
mov bl, al
call fcn.00448196
test bl, bl
pop ecx
je 0x403b18
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 8], 0
pop ebx
je 0x403b3e
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x403b3b
push dword [ebp + 8]
mov esi, edi
call fcn.00403b86
test al, al
je 0x403b3b
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 0xa], 0
je 0x403b5d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x403b5a
inc dword [edi + 0x58]
mov eax, dword [edi + 0x58]
cmp eax, dword [edi + 0x54]
jne 0x403b5a
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x403b7e
lea eax, [ebp + 8]
push eax
lea esi, [edi + 0x68]
call fcn.0042f729
inc dword [edi + 0x5c]
xor eax, eax
cmp byte [edi + 4], al
sete al
jmp 0x403b81
xor eax, eax
inc eax
pop esi
leave
ret 4
Function at 0x403bd1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x403be9
cmp byte [ebx + 5], 1
jne 0x403c65
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xe
push dword [ebp + 8]
call esi
test eax, eax
je 0x403c65
push edi
lea edi, [eax + 1]
push edi
call fcn.00448308
pop ecx
push eax
push edi
push 0xd
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
test eax, eax
pop edi
jg 0x403c1f
xor esi, esi
inc esi
jmp 0x403c4f
cmp byte [ebx + 0xc], 0
jne 0x403c38
push dword [ebp - 4]
call fcn.00448680
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_CharUpperBuffA]
push dword [ebx + 0x20]
push dword [ebp - 4]
call fcn.004487f0
test eax, eax
pop ecx
pop ecx
je 0x403c5c
mov byte [ebx + 0x60], 1
xor esi, esi
push dword [ebp - 4]
call fcn.00448196
pop ecx
mov eax, esi
jmp 0x403c68
push dword [ebp - 4]
call fcn.00448196
pop ecx
xor eax, eax
inc eax
pop esi
leave
ret 4
Function at 0x405d3b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [esi]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x412c], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x4130], eax
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
lea eax, [esi + 0x4134]
cmp ecx, dword [eax]
jne 0x405d83
cmp edx, dword [esi + 0x4138]
je 0x405d9f
cmp dword [ebp + 0xc], 1
mov dword [eax], ecx
mov dword [esi + 0x4138], edx
jne 0x405d9f
push edx
push ecx
push esi
push dword [ebp + 8]
push 0xfffffffffffffff5
pop ebx
call fcn.0040431f
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 1
call ebx
mov edi, 0x8000
test di, ax
jne 0x405dc7
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x405dc7
and dword [ebp - 8], 0
jmp 0x405dce
mov dword [ebp - 8], 1
push 2
call ebx
test di, ax
jne 0x405dea
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x405dea
and dword [ebp - 4], 0
jmp 0x405df1
mov dword [ebp - 4], 1
mov edi, dword [ebp - 8]
cmp edi, dword [esi + 0x413c]
je 0x405e53
cmp dword [ebp + 0xc], 1
jne 0x405e53
test edi, edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
je 0x405e14
push 0xfffffffffffffff9
jmp 0x405e46
push 0xfffffffffffffff8
pop ebx
call fcn.0040431f
cmp byte [esi + 0x4144], 0
je 0x405e4c
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x1000000
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
je 0x405e44
push 0xfffffffffffffffa
jmp 0x405e46
push 0xfffffffffffffff4
pop ebx
call fcn.0040431f
mov byte [esi + 0x4144], 0
cmp dword [ebp + 0xc], 0
je 0x405e5f
mov dword [esi + 0x413c], edi
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x4140]
pop edi
je 0x405e91
cmp dword [ebp + 0xc], 1
jne 0x405e91
test eax, eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
je 0x405e89
push 0xfffffffffffffff7
pop ebx
call fcn.0040431f
jmp 0x405e97
push 0xfffffffffffffff6
pop ebx
call fcn.0040431f
cmp dword [ebp + 0xc], 0
je 0x405ea0
mov eax, dword [ebp - 4]
mov dword [esi + 0x4140], eax
pop ebx
leave
ret 8
Function at 0x40aca8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp byte [eax], bl
push esi
push edi
mov dword [ebp - 8], ebx
je 0x40adaf
push ebx
push ebx
push 3
push ebx
push ebx
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40ad4a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xc]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 8]
push eax
push 0x458e50
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 8]
cmp eax, ebx
jne 0x40ad51
xor eax, eax
jmp 0x40addb
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0xc]
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
cmp edx, ebx
mov eax, dword [ebp + 0x10]
jne 0x40ad86
cmp dword [eax], ebx
jne 0x40ad86
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
jmp 0x40ad8e
mov dword [ebp - 0x28], edx
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
push 0x2000
push dword [eax]
push dword [ecx]
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40adb2
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x40adc3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 4]
push eax
push ebx
mov dword [esi + 0x44], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b559
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x4150]
cmp eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push edi
je 0x40b5e1
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x40b5d8
lea edi, [esi + 0x5c]
mov eax, dword [edi]
test eax, eax
je 0x40b5ca
cmp byte [eax + 0x70], 0xb
je 0x40b5ca
mov cl, byte [eax + 0x73]
movzx edx, cl
cmp edx, dword [esi + 0x4150]
je 0x40b5ac
cmp byte [esi + 0x4158], 0
je 0x40b5ca
cmp cl, 0xff
je 0x40b5ca
cmp byte [eax + 0x70], 0xa
je 0x40b5ca
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x72], 0x40
je 0x40b5ca
cmp byte [eax + 0x70], 0x1a
jne 0x40b5ca
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [esi + 0x14]
jle 0x40b57e
mov eax, dword [ebp + 8]
mov dword [esi + 0x4150], eax
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x40b641
lea edi, [esi + 0x5c]
mov eax, dword [edi]
test eax, eax
je 0x40b633
cmp byte [eax + 0x70], 0xb
je 0x40b633
movzx ecx, byte [eax + 0x73]
cmp ecx, dword [esi + 0x4150]
jne 0x40b633
test byte [eax + 0x72], 0x20
jne 0x40b633
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
push 4
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x72], 0x40
je 0x40b633
cmp byte [eax + 0x70], 0x1a
jne 0x40b633
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [esi + 0x14]
jle 0x40b5ef
push 0
push dword [ebp + 8]
push 0x130c
push dword [esi + 0x4148]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop ebx
leave
ret 4
Function at 0x40f566
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10324
call fcn.0044b230
push ebx
xor ebx, ebx
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0x45aa18
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
push edi
mov dword [esi + 0x28], 0x45aa14
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
push 0x400
mov dword [esi + 0x40], ebx
call fcn.00448308
pop ecx
mov dword [esi + 0x3c], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00448f75
push edi
lea eax, [ebp - 0x21c]
push str.Include
push eax
call fcn.004490c0
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004491f5
push 0x105
call fcn.00448308
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x3c]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [esi + 0x40], eax
lea eax, [ebp - 0x118]
push eax
push ecx
call fcn.00448210
add esp, 0x40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f76e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10324]
push eax
push ebx
push ebx
push str.Include
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0xffff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f765
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x10324], bl
mov byte [ebp + eax - 0x10323], bl
lea eax, [ebp - 0x10324]
mov byte [ebp - 0x118], bl
mov dword [ebp - 8], eax
mov cl, byte [eax]
cmp cl, bl
mov byte [ebp - 4], cl
mov byte [ebp - 3], bl
je 0x40f6de
cmp cl, 0x3b
je 0x40f6de
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00448220
pop ecx
pop ecx
jmp 0x40f75a
lea eax, [ebp - 0x118]
push eax
call fcn.00448680
test eax, eax
pop ecx
je 0x40f71c
lea eax, [ebp - 0x118]
push eax
call fcn.00448680
pop ecx
lea ecx, [ebp - 0x118]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x40f71c
lea eax, [ebp - 0x118]
push 0x45abf8
push eax
call fcn.00448220
pop ecx
pop ecx
push 0x105
call fcn.00448308
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x3c]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [esi + 0x40], eax
push edi
lea eax, [ebp - 0x118]
push eax
push ecx
call fcn.00448a50
mov eax, dword [ebp - 8]
add esp, 0x10
cmp byte [eax], bl
mov byte [ebp - 0x118], bl
je 0x40f765
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
jmp 0x40f6b9
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
leave
ret
Function at 0x4106f9
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov esi, eax
push 5
pop eax
xor ebx, ebx
push ebx
push 0x5b
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x144], ebx
mov byte [esi + 8], 1
mov byte [esi + 9], bl
call edi
push ebx
push 0x10
mov byte [esi + 0x151], al
call edi
push ebx
push 0xa0
mov byte [esi + 0x14e], al
call edi
push ebx
push 0xa1
mov byte [esi + 0x14f], al
call edi
push ebx
push 0x11
mov byte [esi + 0x150], al
call edi
push ebx
push 0x12
mov byte [esi + 0x14c], al
call edi
mov byte [esi + 0x14d], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
xor edi, edi
inc edi
xor eax, eax
lea esi, [edi + 0x4628a8]
mov al, byte [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
jne 0x410790
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x410776
lea eax, [ebp - 8]
push str.0409
push eax
call fcn.00448480
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x4107d8
push 4
lea eax, [ebp - 0xc]
push str.0002
push eax
call fcn.00448640
add esp, 0xc
test eax, eax
mov byte [0x4628ad], 0x20
mov byte [0x4628aa], 0x20
je 0x41086a
jmp 0x410855
lea eax, [ebp - 8]
push str.0809
push eax
call fcn.00448480
test eax, eax
pop ecx
pop ecx
je 0x41081d
lea eax, [ebp - 6]
push 0x45ac58
push eax
call fcn.00448480
test eax, eax
pop ecx
pop ecx
jne 0x410809
mov byte [0x4628ad], 0x20
jmp 0x410863
lea eax, [ebp - 6]
push 0x45ac54
push eax
call fcn.00448480
test eax, eax
pop ecx
pop ecx
jne 0x410826
mov byte [0x4628aa], 0x20
jmp 0x41084e
lea eax, [ebp - 6]
push 0x45ac50
push eax
call fcn.00448480
test eax, eax
pop ecx
pop ecx
je 0x410863
lea eax, [ebp - 6]
push 0x45ac4c
push eax
call fcn.00448480
test eax, eax
pop ecx
pop ecx
jne 0x41086a
mov byte [0x4628ad], 0x20
mov byte [0x4628ab], 0x20
mov byte [str.___Id:_qmath.h_v_1.1_2004_01_15_19:50:35_jonbennett_Exp__], 0x20
mov byte [0x4628ac], 0x20
leave
ret