joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406d00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
mov edx, dword [eax*4 + 0x419f70]
and edx, 4
mov ecx, 2
call sym._set_toolbar_state
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
mov edi, dword [eax*4 + 0x419f70]
and edi, 8
push 0x7d4
push dword [0x419f58]
call dword [sym.imp.user32.dll_GetDlgItem]
mov esi, eax
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
push 0
push 4
push 0x410
push eax
call ebx
push edi
push eax
push 0x423
push esi
call ebx
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
mov edi, dword [eax*4 + 0x419f70]
and edi, 8
push 0x7d4
push dword [0x419f58]
call dword [sym.imp.user32.dll_GetDlgItem]
mov esi, eax
push 0
push 5
push 0x410
push eax
call ebx
push edi
push eax
push 0x423
push esi
call ebx
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
mov edi, dword [eax*4 + 0x419f70]
and edi, 8
push 0x7d4
push dword [0x419f58]
call dword [sym.imp.user32.dll_GetDlgItem]
mov esi, eax
push 0
push 3
push 0x410
push eax
call ebx
push edi
push eax
push 0x423
push esi
call ebx
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
mov ecx, dword [eax*4 + 0x419f70]
and ecx, 0xfffffff7
or ecx, edi
mov dword [eax*4 + 0x419f70], ecx
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
mov edi, dword [eax*4 + 0x419f70]
and edi, 1
push 0x7d4
push dword [0x419f58]
call dword [sym.imp.user32.dll_GetDlgItem]
mov esi, eax
push 0
push 0
push 0x410
push eax
call ebx
push edi
push eax
push 0x423
push esi
call ebx
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
mov ecx, dword [eax*4 + 0x419f70]
and ecx, 0xfffffffe
or ecx, edi
mov dword [eax*4 + 0x419f70], ecx
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
mov edi, dword [eax*4 + 0x419f70]
mov esi, edi
and esi, 2
shl edi, 0x1e
sar edi, 0x1f
push 0x7d0
push dword [0x419f58]
call dword [sym.imp.user32.dll_GetDlgItem]
and edi, 5
push edi
push eax
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
mov ecx, dword [eax*4 + 0x419f70]
and ecx, 0xfffffffd
or ecx, esi
mov dword [eax*4 + 0x419f70], ecx
lea eax, [ebp - 0x1c]
push eax
push dword [0x419f58]
call dword [sym.imp.user32.dll_GetClientRect]
mov ecx, dword [0x419f58]
movzx eax, word [ebp - 0x14]
mov esi, dword [ebp - 0x10]
shl esi, 0x10
or esi, eax
xor edx, edx
push esi
call dbg.OnSize
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x300
mov edi, edx
mov esi, ecx
xorpd xmm0, xmm0
movupd xmmword [esp + 0xec], xmm0
movupd xmmword [esp + 0xdc], xmm0
movupd xmmword [esp + 0xcc], xmm0
movupd xmmword [esp + 0xbc], xmm0
movupd xmmword [esp + 0xac], xmm0
movupd xmmword [esp + 0x9c], xmm0
movupd xmmword [esp + 0x8c], xmm0
mov dword [esp + 0x88], 0x74
lea eax, [esp + 0x88]
push eax
push 1
push 0x43a
push dword [0x419f78]
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, 0x66666667
imul dword [esp + 0x94]
mov eax, edx
shr eax, 0x1f
sar edx, 3
add edx, eax
lea ebx, [esp + 0xfe]
push edx
push 0x40d418
push ebx
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0xc
push edi
push ebx
call dword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
je 0x408877
call dword [sym.imp.ucrtbase.dll__errno]
mov dword [eax], 0
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.ucrtbase.dll_wcstod]
add esp, 8
fstp qword [esp + 8]
movsd xmm1, qword [esp + 8]
xorpd xmm0, xmm0
movsd qword [esp], xmm1
ucomisd xmm1, xmm0
jne 0x40876e
jp 0x40876e
call dword [sym.imp.ucrtbase.dll__errno]
cmp dword [eax], 0
jne 0x408827
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x408827
test eax, eax
je 0x408827
movzx ecx, word [eax]
test ecx, ecx
je 0x4087b1
cmp ecx, 0x20
jne 0x4087ac
add eax, 2
nop word cs:[eax + eax]
movzx ecx, word [eax]
add eax, 2
cmp cx, 0x20
je 0x4087a0
test cx, cx
jne 0x408827
movsd xmm0, qword [esp]
cvtsd2ss xmm0, xmm0
xorpd xmm1, xmm1
ucomiss xmm0, xmm1
jbe 0x408827
xorps xmm1, xmm1
movups xmmword [esp + 0x1c], xmm1
movups xmmword [esp + 0x78], xmm1
movups xmmword [esp + 0x6c], xmm1
movups xmmword [esp + 0x5c], xmm1
movups xmmword [esp + 0x4c], xmm1
movups xmmword [esp + 0x3c], xmm1
movups xmmword [esp + 0x2c], xmm1
mov dword [esp + 0x14], 0x74
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x40d1a0]
mov dword [esp + 0x18], 0x80000000
cvttsd2si eax, xmm0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 1
push 0x444
push dword [0x419f78]
call dword [sym.imp.user32.dll_SendMessageW]
jmp 0x408877
push ebx
push esi
call dword [sym.imp.user32.dll_SetWindowTextW]
mov eax, dword [0x419f58]
mov dword [esp + 0x14], 0x28
mov dword [esp + 0x18], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x6a9
mov dword [esp + 0x24], 0x40d2c2
mov dword [esp + 0x28], 0x40
xorps xmm0, xmm0
movups xmmword [esp + 0x2c], xmm0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.user32.dll_MessageBoxIndirectW]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408880
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x6e8
mov esi, dword [sym.imp.user32.dll_GetDlgItem]
push 0x7d4
push dword [0x419f58]
call esi
push 0x7dd
mov dword [ebp - 0x10], eax
push eax
call esi
mov esi, dword [sym.imp.user32.dll_SendMessageW]
push 0
push 0
push 0x407
push eax
call esi
mov edi, eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x60], xmm0
movups xmmword [ebp - 0x70], xmm0
movups xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x84], 0x74
lea eax, [ebp - 0x84]
push eax
push 1
push 0x43a
push dword [0x419f78]
call esi
lea ebx, [ebp - 0x2f6]
push ebx
push 0x104
push 0xd
push edi
call esi
test eax, eax
je 0x408a22
lea esi, [ebp - 0x6a]
push esi
push ebx
call dword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
je 0x40894b
push esi
push 0
push 0xc
push edi
call dword [sym.imp.user32.dll_SendMessageW]
push 0x7de
push dword [ebp - 0x10]
call dword [sym.imp.user32.dll_GetDlgItem]
mov ecx, eax
call dbg.populate_size_list
jmp 0x408a22
push 0x7d4
push dword [0x419f58]
mov esi, dword [sym.imp.user32.dll_GetDlgItem]
call esi
push 0x7de
push eax
call esi
push 0
push 0
push 0x407
push eax
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
call ebx
mov esi, eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x94], xmm0
movups xmmword [ebp - 0xa4], xmm0
movups xmmword [ebp - 0xb4], xmm0
movups xmmword [ebp - 0xc4], xmm0
movups xmmword [ebp - 0xd4], xmm0
movups xmmword [ebp - 0xe4], xmm0
movups xmmword [ebp - 0xf4], xmm0
mov dword [ebp - 0xf8], 0x74
lea eax, [ebp - 0xf8]
push eax
push 1
push 0x43a
push dword [0x419f78]
call ebx
lea edi, [ebp - 0x6f2]
push edi
push 0x104
push 0xd
push esi
call ebx
mov eax, 0x66666667
imul dword [ebp - 0xec]
mov eax, edx
shr eax, 0x1f
sar edx, 3
add edx, eax
lea ebx, [ebp - 0x4f4]
push edx
push 0x40d418
push ebx
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0xc
push ebx
push edi
call dword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
je 0x408a22
push ebx
push 0
push 0xc
push esi
call dword [sym.imp.user32.dll_SendMessageW]
add esp, 0x6e8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408f50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x84
mov esi, edx
mov edi, ecx
sub esp, 0x1c
movaps xmm0, xmmword [0x40d1b0]
movups xmmword [esp + 4], xmm0
mov dword [esp], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x409100
mov ebx, eax
lea eax, [ebp - 0x90]
cmp esi, 0x11
jne 0x408fbc
push 0
push eax
push 2
push global_unicode
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
cmp dword [ebp - 0x90], 2
jne 0x409160
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], dbg._stream_out@16
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x10], esi
push esi
push 0x44a
push dword [0x419f78]
call dword [sym.imp.user32.dll_SendMessageW]
mov esi, eax
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [0x419f78]
call dword [sym.imp.user32.dll_SetFocus]
test esi, esi
lea esi, [ebp - 0x90]
je 0x40912b
xor eax, eax
nop word cs:[eax + eax]
movzx ecx, word [edi + eax]
mov word [eax + 0x41b3c0], cx
add eax, 2
test cx, cx
jne 0x409010
mov ecx, 0x41b3c0
call sym._set_caption
push 0
push 0
push 0xb9
push dword [0x419f78]
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [ebp - 0x10]
mov dword [0x419258], eax
call dbg.set_bar_states
xorps xmm0, xmm0
movsd qword [ebp - 0x24], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x54], xmm0
movups xmmword [ebp - 0x64], xmm0
movups xmmword [ebp - 0x74], xmm0
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x90], 0x74
mov dword [ebp - 0x8c], 0x20000007
mov dword [ebp - 0x88], 0
test byte [0x419258], 2
mov ecx, str.Courier_New
mov eax, str.Times_New_Roman
cmove eax, ecx
xor ecx, ecx
nop dword [eax]
movzx edx, word [eax + ecx]
mov word [ebp + ecx - 0x76], dx
add ecx, 2
test dx, dx
jne 0x4090b0
push esi
push 0
push 0x444
push dword [0x419f78]
call dword [sym.imp.user32.dll_SendMessageW]
mov esi, dword [0x419f58]
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
push dword [eax*4 + 0x419f60]
push esi
call dbg.target_device
add esp, 8
mov eax, 1
jmp 0x409169
mov ecx, dword fs:[0x18]
xor eax, eax
cmp dword [ecx + 0x34], 5
sete al
add eax, 0x6ab
push 0x30
push 0x40d2c2
push eax
push dword [0x419f58]
call dword [sym.imp.user32.dll_MessageBoxW]
jmp 0x409167
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0x4b0
push 0
push esi
push 0x45f
push dword [0x419f78]
call dword [sym.imp.user32.dll_SendMessageW]
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x409169
jmp 0x409002
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
add esp, 0x84
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40a5f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push 0
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteFile]
mov ecx, eax
mov eax, 1
test ecx, ecx
je 0x40a622
cmp dword [ebp - 8], esi
jne 0x40a622
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
xor eax, eax
add esp, 4
pop esi
pop ebp
ret 0x10
Function at 0x40a910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x40a939
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
jmp 0x40a93e
mov eax, 1
add esp, 4
pop ebp
ret 0x10

Function at 0x40aa30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.ucrtbase.dll_strlen]
add esp, 4
test eax, eax
je 0x40aa7d
mov esi, eax
xor eax, eax
cmp byte [edi + esi - 1], 0xa
je 0x40aa5a
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov ecx, 0x41b964
lock xchg dword [ecx], eax
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push eax
push esi
push 1
push edi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
jmp 0x40aa7f
xor eax, eax
pop esi
pop edi
pop ebp
ret
Function at 0x40aef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xcc
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [0x41b8d8]
test eax, eax
jne 0x40af49
mov edi, dword fs:[0x18]
mov ebx, dword [edi + 0x34]
push 0x415ccc
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.__wine_dbg_get_channel_flags
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
cmovne ecx, eax
mov eax, 0x41b8d8
lock xchg dword [eax], ecx
mov dword [edi + 0x34], ebx
mov edi, dword [ebp + 8]
mov eax, dword [0x41b8d8]
push esi
call eax
add esp, 4
movzx eax, al
bt eax, edi
jae 0x40b0ff
mov ecx, dword [0x41b964]
mov ebx, dword fs:[0x18]
xor eax, eax
cmp ecx, dword [ebx + 0x24]
je 0x40b104
lea edi, [ebp - 0xd8]
test byte [0x419265], 8
je 0x40b010
mov eax, dword [0x41b8d8]
test eax, eax
jne 0x40afc9
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x10], eax
push 0x415ccc
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.__wine_dbg_get_channel_flags
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
cmovne ecx, eax
mov eax, 0x41b8d8
lock xchg dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x34], eax
mov eax, dword [0x41b8d8]
push 0x419265
call eax
add esp, 4
test al, 8
je 0x40b010
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ecx, eax
mov edx, 0x10624dd3
mul edx
shr edx, 6
imul eax, edx, 0x3e8
sub ecx, eax
lea eax, [ebp - 0xd8]
push ecx
push edx
push str._3u._03u:
push eax
call dbg.sprintf
add esp, 0x10
lea edi, [eax + ebp]
add edi, 0xffffff28
test byte [0x419275], 8
je 0x40b07d
mov eax, dword [0x41b8d8]
test eax, eax
jne 0x40b05c
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x10], eax
push 0x415ccc
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.__wine_dbg_get_channel_flags
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
cmovne ecx, eax
mov eax, 0x41b8d8
lock xchg dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x34], eax
mov eax, dword [0x41b8d8]
push 0x419275
call eax
add esp, 4
test al, 8
je 0x40b07d
push dword [ebx + 0x20]
push str._04x:
push edi
call dbg.sprintf
add esp, 0xc
add edi, eax
push dword [ebx + 0x24]
push str._04x:
push edi
call dbg.sprintf
add esp, 0xc
mov edx, dword [ebp + 8]
cmp edx, 3
ja 0x40b0d2
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40b0d2
add edi, eax
lea eax, [ebp - 0xd8]
sub eax, edi
add eax, 0xc8
mov edx, dword [edx*4 + 0x415cf0]
inc esi
sub esp, 0x18
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov dword [esp], edi
mov dword [esp + 4], eax
call dbg.snprintf
add esp, 0x18
lea edi, [ebp - 0xd8]
push edi
call dword [sym.imp.ucrtbase.dll_strlen]
add esp, 4
mov esi, eax
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push eax
push esi
push 1
push edi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
jmp 0x40b104
mov eax, 0xffffffff
add esp, 0xcc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40b170
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push 1
call sym.__configure_narrow_argv
add esp, 4
call sym.__initialize_narrow_environment
call sym.___p___argc
mov edi, dword [eax]
call sym.___p___argv
mov ebx, dword [eax]
call sym.__get_initial_narrow_environment
mov esi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
xor edx, edx
cmp word [eax + ecx + 0x5c], 2
sete dl
inc edx
push edx
call sym.__set_app_type
add esp, 4
push esi
push ebx
push edi
call dbg.main
add esp, 0xc
push eax
call sym._exit
int3

Function at 0x40b1d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x44
call dbg.__main
xor ebx, ebx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov esi, eax
xor eax, eax
jmp 0x40b1f9
xor edx, edx
test eax, eax
je 0x40b235
inc esi
mov ebx, edx
movzx ecx, byte [esi]
cmp ecx, 9
je 0x40b1f0
test ecx, ecx
je 0x40b235
cmp cl, 0x20
jne 0x40b20e
test eax, eax
je 0x40b235
xor edx, edx
cmp ecx, 0x22
je 0x40b21f
cmp ecx, 0x5c
jne 0x40b1f6
inc ebx
mov edx, ebx
jmp 0x40b1f6
xor ecx, ecx
test eax, eax
sete cl
test bl, 1
cmove eax, ecx
jmp 0x40b1f6
movzx ecx, byte [esi + 1]
inc esi
cmp cl, 0x20
je 0x40b230
movzx eax, cl
cmp eax, 9
je 0x40b230
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
test byte [ebp - 0x20], 1
jne 0x40b258
mov word [ebp - 0x1c], 1
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
movzx ecx, word [ebp - 0x1c]
push ecx
push esi
push 0
push eax
call dbg._WinMain@16
add esp, 0x44
pop esi
pop ebx
pop ebp
ret
Function at 0x4016d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ba2d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4560c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x45600c]
mov ecx, 0x456b58
imul esi, dword [0x456010]
shl esi, 2
call fcn.00401380
cmp eax, esi
jae 0x401725
push esi
lea eax, [ebp - 0x24]
mov ecx, 0x456b58
push eax
call fcn.00401140
mov ecx, 0x456b58
call fcn.00401390
mov ecx, dword [0x45600c]
mov esi, eax
imul ecx, dword [0x456010]
mov dword [ebp - 0x18], esi
shl ecx, 2
push ecx
push 0
push esi
call fcn.00404740
movzx ecx, word [0x45600c]
xor eax, eax
mov dword [ebp - 0x2c], eax
add esp, 0xc
movzx eax, word [0x456010]
mov word [ebp - 0x28], ax
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x26], cx
mov word [ebp - 0x12], cx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], eax
call fcn.00401080
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push dword [ebp - 0x14]
push esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputA]
test eax, eax
je 0x40188b
mov ebx, dword [0x45600c]
xor edi, edi
test ebx, ebx
jle 0x401871
mov edx, dword [0x456010]
mov ecx, edx
imul ecx, edi
dec edx
shl ecx, 2
lea eax, [ecx + esi]
mov esi, dword [0x456b34]
add esi, ecx
mov dword [ebp - 0x14], eax
mov ecx, eax
sub esi, ecx
lea eax, [ecx + edx*4]
test edx, edx
js 0x401865
mov ecx, dword [eax]
cmp ecx, dword [esi + eax]
jne 0x4017f9
dec edx
sub eax, 4
jmp 0x4017e4
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 1
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401140
push edi
lea ecx, [ebp - 0x3c]
call fcn.004013f0
mov eax, dword [0x456010]
lea ecx, [ebp - 0x3c]
shl eax, 2
push eax
push dword [ebp - 0x14]
call fcn.00401420
lea ecx, [ebp - 0x3c]
call fcn.00401380
mov ecx, dword [ebp - 0x20]
push 0
mov dword [ecx], eax
lea ecx, [ebp - 0x3c]
call fcn.00401380
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401390
push eax
push dword [0x456004]
call sub.WSOCK32.dll_send
lea ecx, [ebp - 0x3c]
call fcn.004011e0
mov ebx, dword [0x45600c]
mov esi, dword [ebp - 0x18]
inc edi
cmp edi, ebx
jl 0x4017c0
imul ebx, dword [0x456010]
shl ebx, 2
push ebx
push esi
push dword [0x456b34]
call fcn.00403c40
add esp, 0xc
lea ecx, [ebp - 0x3c]
call fcn.004010b0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4018b0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4560c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 1
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push esi
movsx esi, bl
movups xmmword [ebp - 0x1c], xmm0
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
mov byte [ebp - 0xe], bl
push edi
lea edi, [esi + 0x456018]
cmp bl, 0x1a
jg 0x40190b
cmp byte [edi], 0
jne 0x40190b
lea eax, [ebx + 0x40]
movzx eax, al
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cbw
jmp 0x401912
push ebx
call dword [sym.imp.USER32.dll_VkKeyScanA]
push esi
push dword [0x456098]
mov word [ebp - 0x12], ax
call fcn.004048a0
add esp, 8
test eax, eax
je 0x401931
xor eax, eax
or eax, 0x10
mov dword [ebp - 8], eax
cmp esi, 0x7f
jae 0x401957
mov al, byte [edi]
test al, al
je 0x401945
movzx eax, al
mov word [ebp - 0x10], ax
jmp 0x40195b
cmp bl, 0x1a
jg 0x401957
movzx eax, byte [esi + 0x456058]
mov word [ebp - 0x10], ax
jmp 0x40195b
mov ax, word [ebp - 0x10]
test ax, ax
jne 0x40196d
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov word [ebp - 0x10], ax
movups xmm0, xmmword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
sub esp, 0x14
mov eax, esp
movups xmmword [eax], xmm0
mov dword [eax + 0x10], ecx
call fcn.00401ad0
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00402c1e
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x3c
call fcn.00402887
push 0x3c
mov esi, eax
push 0
push esi
call fcn.00404740
mov ebx, dword [ebp + 8]
mov edx, 1
add esp, 0x10
mov word [esi], dx
mov eax, 0x38
mov dword [esi + 4], edx
mov dword [esi + 8], 0x120001
mov dword [esi + 0x10], 2
push ebx
mov word [esi + 0xc], ax
mov word [esi + 0x28], dx
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0x120001
mov byte [esi + 0x36], 0
mov dword [esi + 0x38], 2
mov word [esi + 0x34], ax
mov word [esi + 0x14], dx
mov dword [esi + 0x18], edx
mov word [esi + 0x1c], dx
mov byte [esi + 0x22], bl
call dword [sym.imp.USER32.dll_VkKeyScanA]
or dword [esi + 0x24], 2
movsx ecx, bl
mov word [esi + 0x1e], ax
cmp ecx, 0x7f
jae 0x401a32
movzx eax, byte [ecx + 0x456018]
mov word [esi + 0x20], ax
cmp word [esi + 0x20], 0
jne 0x401a46
push 0
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov word [esi + 0x20], ax
push 3
push esi
call fcn.00402470
push esi
call fcn.00402890
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401a60
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4560c0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x18], 1
mov word [ebp - 0xa], ax
mov eax, 1
mov dword [ebp - 0x14], eax
mov word [ebp - 0x10], ax
movsx ax, byte [ebp + 8]
push 0
mov word [ebp - 0xe], ax
movsx eax, byte [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov word [ebp - 0xc], ax
sub esp, 0x14
movups xmm0, xmmword [ebp - 0x18]
mov eax, esp
movups xmmword [eax], xmm0
mov dword [eax + 0x10], pe_nt_image_headers32
call fcn.00401ad0
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
call fcn.00402c1e
mov esp, ebp
pop ebp
ret

Function at 0x401b20
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4560c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 1
xorps xmm0, xmm0
movups xmmword [ebp - 0x18], xmm0
mov word [ebp - 0x18], ax
mov dword [ebp - 0x14], eax
mov word [ebp - 0x10], ax
movsx ax, byte [ebp + 8]
push 0
mov byte [ebp - 0xa], 0
mov word [ebp - 0xe], ax
movsx eax, byte [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov word [ebp - 0xc], ax
sub esp, 0x14
movups xmm0, xmmword [ebp - 0x18]
mov eax, esp
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
call fcn.00401ad0
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
call fcn.00402c1e
mov esp, ebp
pop ebp
ret