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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1715ed0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4268ee
cmp byte [ebx], 0xa
jne 0x4268ee
or byte [edi + eax + 0x28], 4
jmp 0x4268f3
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4269f2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4269d5
inc eax
cmp dl, 0xd
je 0x42691f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x426945
cmp eax, ecx
jae 0x426953
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x426907
jmp 0x4269f2
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4269d0
cmp dword [ebp - 0x10], 0
je 0x4269d0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1715ed0]
test byte [eax + edi + 0x28], 0x48
je 0x4269aa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x426995
mov byte [esi], dl
jmp 0x4269a6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1715ed0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4269f2
cmp byte [ebp - 1], 0xa
jne 0x4269b9
cmp esi, ebx
jne 0x4269b9
mov byte [esi], 0xa
jmp 0x4269f1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004279a7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4269f2
mov byte [esi], 0xd
jmp 0x4269f1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1715ed0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4269ef
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4269f2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4269fb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1715ed0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x426a41
cmp word [ebx], dx
jne 0x426a41
or byte [eax + edi + 0x28], 4
jmp 0x426a46
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x426ba9
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x426b89
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x426a87
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x426abd
cmp eax, edx
jae 0x426acb
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x426a62
jmp 0x426ba9
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x426b84
cmp dword [ebp - 0x18], 0
je 0x426b84
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1715ed0]
test byte [eax + edi + 0x28], 0x48
je 0x426b5a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x426b1e
mov word [esi], cx
jmp 0x426b55
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1715ed0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1715ed0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1715ed0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x426ba9
pop eax
cmp word [ebp - 4], ax
jne 0x426b6a
cmp esi, ebx
jne 0x426b6a
mov word [esi], ax
jmp 0x426ba6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004279a7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x426ba9
push 0xd
pop eax
jmp 0x426b65
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1715ed0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x426ba3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x426ba9
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x434a1c
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x434ab7
push edi
push 0x1717490
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x1716234]
test edi, edi
je 0x434a8a
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x434a83
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0x1716234
call fcn.00470b06
pop ecx
pop ecx
jmp 0x434a85
mov edi, dword [edi]
test edi, edi
jne 0x434a58
pop ebp
mov esi, dword [0x171093c]
push 0x10
push 0x1716234
lea eax, [esi + 1]
mov dword [0x171093c], eax
call fcn.00470b46
pop ecx
pop ecx
push 0x1717490
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x435852
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4358a7
push dword [esp + 0x10]
push 0x4357d1
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x1716628]
test edi, edi
je 0x435900
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x43589f
cmp byte [edi + 0x10], 0
je 0x43589f
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, ebx
test ebx, ebx
jne 0x43587b
jmp 0x435900
mov edi, dword [0x1716628]
test edi, edi
je 0x435900
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x4358f9
cmp byte [edi + 0x11], 0
je 0x4358d2
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x4358e9
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [edi + 8]
push eax
push 0x1716628
call fcn.00470b06
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x4358b4
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x450fa6
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [0x1717660]
call fcn.004701d5
mov esi, eax
or ebx, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebp, dword [esp + 0x28]
mov edx, eax
movzx ecx, word [edx]
test cx, cx
je 0x4510e3
mov eax, dword [esi]
mov edi, ecx
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x20
push 0x22
pop ecx
movzx eax, di
cmp di, word [esp + 0x18]
jne 0x45100c
push 0x20
pop edi
add edx, 2
movzx eax, word [edx]
cmp ax, di
je 0x451001
mov dword [esp + 0x14], 1
cmp ax, cx
jne 0x451046
add edx, 2
mov edi, edx
movzx eax, word [edx]
mov ebx, eax
test ax, ax
je 0x4510a0
push 0x22
mov ecx, eax
pop esi
movzx ebx, cx
cmp cx, si
je 0x4510a0
add edx, 2
movzx eax, word [edx]
mov ecx, eax
mov ebx, eax
test ax, ax
jne 0x45102d
jmp 0x4510a0
test ax, ax
je 0x4510b3
push 0x20
mov edi, edx
movzx eax, ax
pop ebp
movzx ebx, ax
cmp ax, bp
je 0x45109c
add edx, 2
push 0x22
pop ebx
movzx eax, word [edx]
mov ecx, eax
cmp ax, bx
jne 0x451091
add edx, 2
movzx eax, word [edx]
mov ecx, eax
test ax, ax
je 0x451091
mov esi, eax
movzx ecx, si
cmp si, bx
je 0x451091
add edx, 2
movzx eax, word [edx]
mov esi, eax
mov ecx, eax
test ax, ax
jne 0x45107a
movzx eax, cx
movzx ebx, cx
test cx, cx
jne 0x451053
mov ebp, dword [esp + 0x28]
test bx, bx
lea eax, [edx + 2]
mov ebx, dword [esp + 0x10]
mov esi, edx
cmove eax, edx
mov edx, eax
jmp 0x4510ba
and dword [esp + 0x14], 0
xor edi, edi
cmp dword [esp + 0x1c], ebx
jne 0x4510c4
test ebp, ebp
jne 0x4510eb
cmp dword [esp + 0x14], 0
lea eax, [ebx + 1]
movzx ecx, word [edx]
cmove eax, ebx
mov edi, ecx
mov ebx, eax
mov dword [esp + 0x10], ebx
test cx, cx
jne 0x450ff1
test ebp, ebp
jne 0x451100
mov eax, ebx
jmp 0x451106
test edi, edi
je 0x451100
mov eax, dword [esp + 0x20]
sub esi, edi
sar esi, 1
mov dword [ebp], esi
inc dword [eax]
mov eax, edi
jmp 0x451106
and dword [ebp], 0
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4518c3
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x451982
cmp dword [esp + 0x24], 2
je 0x451982
push 0x2000
push ebp
push dword [0x1714814]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x451951
cmp dword [esp + 0x18], 2
jne 0x45196d
cmp dword [esp + 0x28], 0xffffffff
je 0x451915
cmp ebp, dword [esp + 0x28]
jae 0x45196d
add ebp, 2
test ebx, ebx
jne 0x45193a
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x1714814]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x45196d
cmp ax, 0xd
je 0x451951
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x451901
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.004e2420
jmp 0x451a14
push eax
push 0
push dword [0x1714814]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x4519a0
cmp ebp, dword [esp + 0x28]
jae 0x4519f8
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4519f8
cmp dword [esp + 0x18], 1
jne 0x4519f8
inc ebp
test ebx, ebx
jne 0x4519e5
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x1714814]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x4519f8
cmp al, 0xd
je 0x451993
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x451993
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x451a0f
call fcn.004e2470
jmp 0x451a14
call fcn.004e23b0
push esi
push 0
push dword [0x1714814]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x4528af
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x452802
push 0x10
push 0x2c
call fcn.00470447
push 0
push 0
push 8
mov dword [0x1716654], eax
call fcn.00470240
cmp word [0x171664c], 0
mov dword [0x1717688], eax
jne 0x45298f
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
push str.ws2_32.dll
sbb eax, eax
inc eax
mov word [0x171664c], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1716658], eax
test eax, eax
je 0x45298f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x1716658]
mov dword [0x171663c], eax
call esi
push str.getnameinfo
push dword [0x1716658]
mov dword [0x1716640], eax
call esi
push str.WSAStringToAddressA
push dword [0x1716658]
mov dword [0x1716644], eax
call esi
cmp dword [0x171663c], 0
mov ecx, eax
mov dword [0x1716648], ecx
pop esi
je 0x45298f
cmp dword [0x1716640], 0
je 0x45298f
cmp dword [0x1716644], 0
je 0x45298f
mov eax, dword [0x1716650]
xor edx, edx
inc edx
test ecx, ecx
cmovne eax, edx
mov dword [0x1716650], eax
add esp, 0x190
ret
Function at 0x454b5f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push ebp
push esi
push edi
push 1
call ebx
movzx esi, ax
push 2
shr esi, 0xf
call ebx
mov edi, esi
or edi, 2
bt ax, 0xf
push 4
cmovae edi, esi
call ebx
mov cx, ax
mov eax, edi
or eax, 4
bt cx, 0xf
cmovae eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x45511c
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x455154
push dword [edi]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
push dword [edi]
push esi
call fcn.004581cf
test byte [edi + 0x14], 8
mov dword [esp + 0x14], eax
je 0x455245
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x455245
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x455273
test ebp, ebp
jle 0x455273
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x455273
push ebp
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x45523c
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x4551e6
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 0x4551fb
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 2
pop eax
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
sub dword [esp + 0x24], eax
lea eax, [esp + 0x18]
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 + 0x40]
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x455273
cmp dword [edi + 0x10], ebx
je 0x45525f
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 0x455273
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push dword [esp + 0x14]
push esi
call fcn.004581ad
cmp dword [esp + 0x10], 0
je 0x45528d
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x455295
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
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.004583a1
push eax
call fcn.00458b9f
push dword [0x17166c4]
mov dword [esp + 0x24], eax
call fcn.0047058c
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 edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
movzx esi, ax
push 0x12
shr esi, 0xf
call edi
mov ebx, esi
or ebx, 2
bt ax, 0xf
push 0x11
cmovae ebx, esi
call edi
mov ecx, 0x8000
and ax, cx
movzx esi, ax
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.00454b5f
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [ebp + 0xc], eax
mov eax, ebx
push 0x455380
push ebp
push dword [esp + 0x2c]
or eax, 4
test si, si
push dword [esp + 0x2c]
cmove eax, ebx
push dword [esp + 0x20]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [ebp + 0x14], eax
movzx eax, word [esp + 0x44]
push 0x332c
mov dword [ebp + 0x18], eax
call fcn.0045e240
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x458896
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4589ff
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x4589e2
sub eax, 1
jne 0x4589ff
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.0045884f
pop ecx
test eax, eax
je 0x45890d
cmp byte [esp + 0x23a], 1
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
jne 0x458943
inc edi
jmp 0x458943
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4589ff
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esp + 0x14]
inc edx
cmp byte [esp + 0x356], dl
cmove edi, edx
sub ecx, 3
je 0x4589de
sub ecx, 1
je 0x4589da
sub ecx, 1
je 0x4589bc
sub ecx, 1
je 0x458980
sub ecx, 4
jne 0x4589ff
test eax, eax
jne 0x4589ff
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x4589ff
sub eax, 0
je 0x4589af
sub eax, 1
je 0x4589a2
sub eax, 1
je 0x45899b
sub eax, 1
jne 0x4589ff
push 0x69
pop esi
push 0x64
jmp 0x4589b4
push 0x5a
pop esi
push 0x5f
jmp 0x4589a7
push 0x50
pop esi
push 0x55
test edi, edi
pop eax
cmove esi, eax
jmp 0x4589ff
push 0x4b
pop esi
push 0x46
test edi, edi
pop eax
cmovne esi, eax
jmp 0x4589ff
sub eax, 0
je 0x4589d6
sub eax, 1
je 0x4589d2
sub eax, 1
jne 0x4589ff
push 0x41
pop esi
push 0x3c
jmp 0x4589b4
push 0x3c
jmp 0x4589fe
push 0x32
jmp 0x4589fe
push 0x14
jmp 0x4589fe
push 5
jmp 0x4589fe
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4589fc
cmp eax, 0xa
je 0x4589f8
cmp eax, 0x5a
jne 0x4589ff
push 0x28
jmp 0x4589fe
push 0x1e
jmp 0x4589fe
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x458eed
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x17176d0]
call fcn.00470375
mov esi, eax
test esi, esi
je 0x458fc9
cmp dword [ebp + 0xc], 0
je 0x458f39
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x458f2a
cmp dword [esi + 0x1c], 0
jne 0x458f2a
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x458fc9
test byte [ebp + 0x10], 3
push ebx
push 4
pop ebx
je 0x458f57
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0045a0ac
cmp dword [esi + 0x3c], 0xffffffff
je 0x458f7b
xor eax, eax
cmp dword [esi + 0x3c], 0x1000000
sete al
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x458f93
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
mov eax, dword [ebp + 8]
test dword [ebp + 0x10], 0x2000000
je 0x458fae
test eax, eax
je 0x458fa4
push 8
jmp 0x458fb4
push 7
test ecx, ecx
pop eax
cmovne ebx, eax
jmp 0x458fbf
test eax, eax
je 0x458fb7
push 3
pop ebx
jmp 0x458fbf
xor ebx, ebx
test ecx, ecx
setne bl
inc ebx
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x45a22c
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x45a2c2
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x45a2bf
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x45a2bf
lea eax, [esi - 1]
push eax
push dword [0x17176d0]
call fcn.00470375
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x45a2c1
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x45a2af
mov edx, 0xfa01
cmp word [ecx], dx
je 0x45a2ba
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x45a29f
jmp 0x45a2bf
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x45a368
push eax
call esi
test al, al
jns 0x45a368
push 0x11
call esi
test al, al
js 0x45a368
push 0x10
call esi
test al, al
js 0x45a368
push 0x12
call esi
test al, al
js 0x45a368
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x45a368
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.0041e9ee
add esp, 0xc
test eax, eax
je 0x45a33c
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.0041e9ee
add esp, 0xc
test eax, eax
jne 0x45a353
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x45a3a9
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.004f8d14
pop ecx
pop ecx
test eax, eax
je 0x45a3a9
test ebp, ebp
je 0x45a38c
push 0x11
call esi
test al, al
js 0x45a384
push 0x10
call esi
test al, al
js 0x45a384
push 0x12
call esi
test al, al
jns 0x45a38c
push 1
push ebp
call fcn.0045a3b5
test ebx, ebx
je 0x45a3a0
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x45a3a9
test edi, edi
je 0x45a3a9
mov eax, dword [edi + 8]
jmp 0x45a3ab
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4