joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45535f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0xc], 0
jle 0x45537d
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call sub.MSVCRT.dll_memmove
add esp, 0xc
push 0
lea eax, [ebp + 8]
push eax
mov eax, 0x1000
sub eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 4]
add eax, dword [esi + 0xc]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x4553a9
mov dword [esi + 0x10], 1
mov eax, dword [esi + 4]
add dword [esi + 0xc], ecx
mov dword [esi + 8], eax
pop esi
pop ebp
ret

Function at 0x456ffa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x457098
cmp dword [ebp + 0xc], edi
je 0x457098
push esi
push 0x58
push 8
push dword [0x5a8518]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0x14]
mov dword [esi + 0xc], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0x38], eax
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
test al, 1
je 0x457087
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x457210
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x45707f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x457097
push esi
call fcn.0045760e
jmp 0x457096
push esi
call fcn.004570b1
push esi
mov edi, eax
call fcn.0045760e
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0x10
Function at 0x4570b1
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
xor ebx, ebx
push edi
mov ebp, dword [esi + 0xc]
push dword [esi + 8]
mov dword [esp + 0x18], ebp
call fcn.0054c7a0
push dword [esi + 0x38]
mov dword [esp + 0x20], eax
call fcn.0054c7a0
mov dword [esp + 0x10], eax
call fcn.00516e80
mov edi, eax
test edi, edi
je 0x4571e6
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4571d1
test byte [esi + 0x24], 2
mov dword [esi + 0x10], ebp
jne 0x457123
push 1
push 0x34
push edi
call fcn.00519dd0
add esp, 0xc
mov eax, dword [0x5a9210]
test eax, eax
je 0x45713b
push eax
push 0x2714
push edi
call fcn.00519dd0
add esp, 0xc
mov eax, dword [0x5a9214]
test eax, eax
je 0x45716c
cmp dword [0x5a9218], ebx
je 0x45716c
push eax
push 0x27bf
push edi
call fcn.00519dd0
push dword [0x5a9218]
push 0x27c0
push edi
call fcn.00519dd0
add esp, 0x18
push dword [esp + 0x1c]
push 0x2712
push edi
call fcn.00519dd0
push dword [esp + 0x1c]
push 0x2722
push edi
call fcn.00519dd0
push 0x45721f
push 0x4e2b
push edi
call fcn.00519dd0
push esi
push 0x2711
push edi
call fcn.00519dd0
push edi
call fcn.00516f20
add esp, 0x34
test eax, eax
jne 0x4571bc
cmp dword [esi + 4], 0xfffffffb
je 0x4571bc
xor ebx, ebx
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4571d1
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call fcn.00516e60
pop ecx
cmp ebx, 1
jne 0x4571e6
mov dword [esi + 4], 0xfffffffe
jmp 0x4571f5
xor ecx, ecx
cmp dword [esi + 4], 0xfffffffb
setne cl
add ecx, 0xfffffffc
mov dword [esi + 4], ecx
push dword [esp + 0x1c]
call fcn.0054c790
push dword [esp + 0x10]
call fcn.0054c790
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret

Function at 0x457750
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
cmp word [0x5a921c], 0
jne 0x457812
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x457785
mov word [0x5a921c], di
jmp 0x45778d
xor eax, eax
mov word [0x5a921c], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x5a9238], eax
test eax, eax
je 0x457811
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x562880
push eax
call esi
push 0x56288c
push dword [0x5a9238]
mov dword [0x5a9228], eax
call esi
push str.getnameinfo
push dword [0x5a9238]
mov dword [0x5a922c], eax
call esi
push str.WSAStringToAddressA
push dword [0x5a9238]
mov dword [0x5a9230], eax
call esi
cmp dword [0x5a9228], 0
mov dword [0x5a9234], eax
pop esi
je 0x457811
cmp dword [0x5a922c], 0
je 0x457811
cmp dword [0x5a9230], 0
je 0x457811
test eax, eax
je 0x457811
mov dword [0x5a9220], edi
pop edi
movsx eax, word [0x5a921c]
add esp, 0x190
ret
Function at 0x4587e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push 0
push 0
push 0x1304
push dword [ebp]
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, eax
jle 0x458852
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x458809
mov ebx, eax
push dword [ebp]
call fcn.00457fac
push ebx
push dword [ebp]
mov edi, eax
call fcn.00457f83
add esp, 0xc
mov esi, eax
push 0
push ebx
push 0x130c
push dword [ebp]
call dword [sym.imp.USER32.DLL_SendMessageW]
push 0
push edi
call dword [sym.imp.USER32.DLL_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.DLL_EnableWindow]
push esi
push dword [ebp]
call fcn.00458872
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x45a99b
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x5aadd0]
call fcn.0047ce70
mov ebx, eax
test ebx, ebx
je 0x45a9ff
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x45a9c4
push dword [esp + 0xc]
push ebx
call eax
jmp 0x45a9ff
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0047d730
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.0047d810
pop edi
pop esi
pop ebx
ret 8
Function at 0x45c099
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x5aadb4]
call fcn.0047c830
xor ebp, ebp
mov esi, eax
cmp dword [0x5a98a0], ebp
jne 0x45c175
xor ebx, ebx
inc ebx
mov dword [0x5a98a0], ebx
call fcn.00461ead
mov edi, 0xa4
push edi
push ebp
push 0x5a98a8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x5a98a8], 0x13
lea eax, [esp + 0x10]
mov dword [0x5a98ac], edi
mov dword [0x5a98b8], 0x45bfe4
mov dword [0x5a98bc], 0x45c32f
push eax
mov dword [0x5a9910], 0x45bfbf
mov dword [0x5a9914], 0x45c27a
mov dword [0x5a98b4], 0x45bf9a
mov dword [0x5a9938], 0x45bfff
mov dword [0x5a994c], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45c175
cmp dword [esp + 0x20], ebx
je 0x45c15d
cmp dword [esp + 0x20], 2
jne 0x45c175
cmp dword [esp + 0x14], 5
jae 0x45c165
mov dword [0x5a994c], ebp
jmp 0x45c175
jne 0x45c175
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x5a994c], eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.00466eec
mov eax, dword [esp + 0x140]
push ebp
push dword [0x5a851c]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.DLL_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x45c24b
push dword [esp + 0x128]
push dword [0x5aadd0]
call fcn.0047ceaf
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x45c21a
push edi
call fcn.00474de9
test eax, eax
je 0x45c21a
push ebp
push ebp
push edi
call fcn.0047495e
mov dword [esi + 0x18], eax
jmp 0x45c21d
mov dword [esi + 0x18], ebp
push 0x45bce9
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push 0x5a98a8
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x5a98a4], eax
call fcn.00462071
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c

Function at 0x45c3bb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.DLL_GetKeyState]
xor esi, esi
push 1
call edi
mov ebx, 0x8000
test bx, ax
je 0x45c3d5
inc esi
push 2
call edi
test bx, ax
je 0x45c3e1
or esi, 2
push 4
call edi
test bx, ax
je 0x45c3ed
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x45c9cf
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.DLL_GetClientRect]
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x45ca07
push dword [edi]
call dword [sym.imp.USER32.DLL_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
test byte [edi + 0x14], 8
je 0x45caec
call dword [sym.imp.USER32.DLL_GetFocus]
cmp dword [edi], eax
jne 0x45caec
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
sub ebp, dword [esp + 0x18]
mov dword [esp + 0x28], eax
test eax, eax
jle 0x45cb1a
test ebp, ebp
jle 0x45cb1a
push esi
call dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x45cb1a
push ebp
push dword [esp + 0x2c]
push esi
call dword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x45cae3
push eax
push ebx
call dword [sym.imp.GDI32.DLL_SelectObject]
cmp dword [edi + 0x10], 0
je 0x45ca8d
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.DLL_DrawStateW]
jmp 0x45caa2
push 0
call dword [sym.imp.GDI32.DLL_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.DLL_FillRect]
push 2
pop eax
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
sub dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.DLL_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x3c]
push eax
push eax
push esi
call dword [sym.imp.GDI32.DLL_BitBlt]
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.DLL_DeleteObject]
push ebx
call dword [sym.imp.GDI32.DLL_DeleteDC]
jmp 0x45cb1a
cmp dword [edi + 0x10], ebx
je 0x45cb06
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.DLL_DrawStateW]
jmp 0x45cb1a
push ebx
call dword [sym.imp.GDI32.DLL_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.DLL_FillRect]
cmp dword [esp + 0x10], 0
je 0x45cb2a
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x45cb32
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call dword [sym.imp.USER32.DLL_GetMessagePos]
mov edi, dword [esp + 0x20]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowLongW]
push dword [edi]
mov dword [esp + 0x14], eax
call fcn.00462042
push eax
call fcn.0046327e
push dword [0x5a995c]
mov dword [esp + 0x24], eax
call fcn.0047c980
mov ebp, eax
movsx ecx, si
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.DLL_ScreenToClient]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
push 0x10
call esi
mov edi, 0x8000
test di, ax
je 0x45cba6
inc ebx
push 0x12
call esi
test di, ax
je 0x45cbb2
or ebx, 2
push 0x11
call esi
test di, ax
je 0x45cbbe
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.0045c3bb
push 0x45cc13
push ebp
push dword [esp + 0x2c]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x3c]
push dword [esp + 0x20]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x44]
movzx eax, ax
push 0x332c
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], eax
call fcn.00466284
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x461354
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x5aadb4]
call fcn.0047c830
xor ebx, ebx
mov ebp, eax
cmp dword [0x5a9f48], ebx
jne 0x4613e8
mov esi, 0xa4
push esi
push ebx
push 0x5a9f50
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x5a9f54], esi
mov esi, dword [sym.imp.USER32.DLL_LoadCursorW]
mov dword [0x5a9f50], 0xa
mov dword [0x5a9f58], 0x460ee9
push 0x7f89
push ebx
mov dword [0x5a9fc8], 0x462754
mov dword [0x5a9fcc], 0x46272e
mov dword [0x5a9f5c], 0x460f08
mov dword [0x5a9fe0], 0x460f28
call esi
mov dword [0x5a9f48], eax
test eax, eax
jne 0x4613e8
push 0x7f00
push ebx
call esi
mov dword [0x5a9f48], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00466eec
push ebx
push dword [0x5a851c]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40000000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.DLL_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4614b4
push edi
push dword [esp + 0x14]
push dword [0x5aadd0]
call fcn.0047ceaf
mov edi, eax
push 8
or dword [edi + 0x10], 0xffffffff
call dword [sym.imp.USER32.DLL_GetSysColor]
push 0x14
push 0
mov dword [edi + 0x14], eax
push dword [0x5a8518]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x5a9f50
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.00462071
push 0x46100e
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.DLL_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20
Function at 0x463024
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
mov esi, 0xc8
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x46317c
mov eax, dword [esp + 0x20]
dec eax
je 0x46315f
dec eax
jne 0x46317c
lea eax, [esp + 0x124]
xor ebp, ebp
push eax
call fcn.00462fdd
pop ecx
test eax, eax
je 0x463090
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp byte [esp + 0x23e], 1
jmp 0x4630bd
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4630c2
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x35a], 1
jne 0x4630c2
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x46315b
dec ebx
je 0x463157
dec ebx
je 0x463136
dec ebx
je 0x4630f0
sub ebx, 4
jne 0x46317c
test edi, edi
jne 0x46317c
push 0x6e
jmp 0x46317b
sub edi, 0
je 0x463128
dec edi
je 0x46311a
dec edi
je 0x46310c
dec edi
jne 0x46317c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x46317c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x46317c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x46317c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x46317c
sub edi, 0
je 0x463153
dec edi
je 0x46314f
dec edi
jne 0x46317c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x46317c
push 0x3c
jmp 0x46317b
push 0x32
jmp 0x46317b
push 0x14
jmp 0x46317b
push 5
jmp 0x46317b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x463179
cmp eax, 0xa
je 0x463175
cmp eax, 0x5a
jne 0x46317c
push 0x28
jmp 0x46317b
push 0x1e
jmp 0x46317b
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x463988
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x5aade0]
call fcn.0047ce70
mov esi, eax
test esi, esi
je 0x463a62
cmp dword [ebp + 0xc], 0
je 0x4639d4
push 4
push dword [esi]
call dword [sym.imp.USER32.DLL_GetWindow]
test eax, eax
je 0x4639c5
cmp dword [esi + 0x1c], 0
jne 0x4639c5
push eax
call dword [sym.imp.USER32.DLL_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.DLL_ShowWindow]
jmp 0x463a62
test byte [ebp + 0x10], 3
je 0x4639ef
push 4
push dword [esi]
call dword [sym.imp.USER32.DLL_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00464b14
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x463a14
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x463a28
push dword [esi]
call dword [sym.imp.USER32.DLL_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.DLL_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x463a45
test ebx, ebx
je 0x463a39
push 8
jmp 0x463a4b
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x463a58
test ebx, ebx
je 0x463a4e
push 3
pop ecx
jmp 0x463a58
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.DLL_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x464899
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x46492c
push 9
call esi
test al, al
jns 0x46492c
push 0x11
call esi
test al, al
js 0x46492c
push 0x10
call esi
test al, al
js 0x46492c
push 0x12
call esi
test al, al
js 0x46492c
push 0x10
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 5
lea eax, [ebp - 0x24]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x46490e
push 4
lea eax, [ebp - 0x24]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x46492c
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x46492c
xor eax, eax
jmp 0x4649ad
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x464954
push 0x11
call esi
test al, al
js 0x46494c
push 0x10
call esi
test al, al
js 0x46494c
push 0x12
call esi
test al, al
jns 0x464954
push 1
push edi
call fcn.004649b5
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x46496a
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x4649aa
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x4649aa
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x4649aa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x4649aa
lea eax, [esi - 1]
push eax
push dword [0x5aade0]
call fcn.0047ce70
test eax, eax
je 0x4649aa
mov eax, dword [eax + 8]
jmp 0x4649ac
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x464c60
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x464c9c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x4651c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x5aadf4]
call fcn.0047ce70
mov esi, eax
test esi, esi
je 0x46523f
cmp dword [esi + 4], 0
je 0x465210
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.004656a0
test eax, eax
je 0x465204
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46524a
cmp dword [esp + 8], 0
je 0x46524a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x465590
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x465698
cmp word [edx], 0
je 0x465698
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x4655be
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x46561d
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x4655f0
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4655d0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00465c70
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4655f0
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.00465d80
mov edi, eax
test edi, edi
je 0x465613
cmp dword [esi + 4], 0
je 0x46566b
push dword [esp + 0x14]
push edi
push esi
call fcn.00465c70
push edi
push 0
push dword [0x5a8518]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x5a8518]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x4656a0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x4656c1
push esi
call fcn.00464c60
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x465735
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x465722
dec ecx
je 0x46570d
sub ecx, 2
je 0x4656fa
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x46577a
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x46579b
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc