joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f020
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x1dec844], 0
jne 0x45f02e
call fcn.0045efa0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x1dec848]
call esi
test eax, eax
jne 0x45f051
call fcn.0045efa0
push dword [0x1dec848]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x45f060
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x45f0c0
mov ebx, 0x10
test edi, edi
jns 0x45f0c9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x45f092
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x45f0e0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x1dec844], 0
jne 0x45f0ee
call fcn.0045efa0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x1dec848]
call esi
mov edx, eax
test edx, edx
jne 0x45f115
call fcn.0045efa0
push dword [0x1dec848]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x45f148
mov ebx, 0x10
test esi, esi
jns 0x45f151
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x45f160
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4604b4
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
push ebx
push edi
push dword [0x1deddcc]
xor edi, edi
call fcn.0048244e
mov ebx, eax
cmp dword [esp + 0x10], edi
je 0x4605a8
push ebp
push esi
push 0x60
push 8
push dword [0x1debc34]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [esp + 0x18]
mov esi, eax
xor ebp, ebp
inc ebp
or dword [esi + 4], 0xffffffff
mov dword [esi], ebp
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 8], eax
mov dword [esp], str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
call sub.MSVCRT.dll__wcsdup
pop ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x40], eax
mov dword [esi + 0x24], ecx
mov eax, dword [ebx]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 4]
mov ebx, dword [esp + 0x20]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], eax
test cl, 1
je 0x460596
test ebx, ebx
je 0x460560
push ebx
push edi
push dword [0x1debc34]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x48], eax
test eax, eax
je 0x46055b
push ebx
push dword [esp + 0x20]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [esi + 0x48], edi
je 0x46058d
lea eax, [esp + 0x18]
push eax
push edi
push esi
push 0x4605af
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x460585
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x460589
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x4605a4
push esi
call fcn.0045fffe
pop ecx
jmp 0x4605a6
mov eax, dword [esp + 0x1c]
push esi
mov dword [esi + 0x48], eax
call fcn.0046008f
pop ecx
mov edi, esi
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
ret 0x18

Function at 0x46077b
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
push 0x4606ca
push 0x10
push 0x2c
call fcn.0048272f
xor esi, esi
mov dword [0x1dec890], eax
push esi
push esi
push 8
call fcn.004824b9
mov dword [0x1deddd4], eax
cmp word [0x1dec888], si
jne 0x460864
push edi
lea eax, [esp + 8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x4607d3
mov word [0x1dec888], di
jmp 0x4607db
xor eax, eax
mov word [0x1dec888], ax
push 0x800
push esi
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x1dec8a4], eax
test eax, eax
je 0x460863
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x1dec8a4]
mov dword [0x1dec894], eax
call esi
push str.getnameinfo
push dword [0x1dec8a4]
mov dword [0x1dec898], eax
call esi
push str.WSAStringToAddressA
push dword [0x1dec8a4]
mov dword [0x1dec89c], eax
call esi
cmp dword [0x1dec894], 0
mov dword [0x1dec8a0], eax
je 0x460863
cmp dword [0x1dec898], 0
je 0x460863
cmp dword [0x1dec89c], 0
je 0x460863
test eax, eax
je 0x460863
mov dword [0x1dec88c], edi
pop edi
pop esi
add esp, 0x190
ret
Function at 0x4612a5
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x1ded9f4]
call fcn.0048265c
mov ebx, eax
test ebx, ebx
je 0x461309
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4612ce
push dword [esp + 0xc]
push ebx
call eax
jmp 0x461309
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.00483200
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.004832e0
pop edi
pop esi
pop ebx
ret 8

Function at 0x4620af
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 0x462121
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x4620d8
mov ebx, eax
push dword [ebp]
call fcn.00461831
push ebx
push dword [ebp]
mov edi, eax
call fcn.00461808
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.00462141
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x463c72
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x1dedde0]
call fcn.0048244e
xor ebp, ebp
mov esi, eax
cmp dword [0x1decc30], ebp
jne 0x463d4e
xor ebx, ebx
inc ebx
mov dword [0x1decc30], ebx
call fcn.0046838a
mov edi, 0xa4
push edi
push ebp
push 0x1decc38
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x1decc38], 0x13
lea eax, [esp + 0x10]
mov dword [0x1decc3c], edi
mov dword [0x1decc48], 0x463bbd
mov dword [0x1decc4c], 0x463f08
push eax
mov dword [0x1decca0], 0x463b98
mov dword [0x1decca4], 0x463e53
mov dword [0x1decc44], 0x463b73
mov dword [0x1deccc8], 0x463bd8
mov dword [0x1deccdc], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x463d4e
cmp dword [esp + 0x20], ebx
je 0x463d36
cmp dword [esp + 0x20], 2
jne 0x463d4e
cmp dword [esp + 0x14], 5
jae 0x463d3e
mov dword [0x1deccdc], ebp
jmp 0x463d4e
jne 0x463d4e
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x1deccdc], 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.0046d546
mov eax, dword [esp + 0x140]
push ebp
push dword [0x1debc38]
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 0x463e24
push dword [esp + 0x128]
push dword [0x1ded9f4]
call fcn.0048269b
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x463df3
push edi
call fcn.0047b520
test eax, eax
je 0x463df3
push ebp
push ebp
push edi
call fcn.0047b0de
mov dword [esi + 0x18], eax
jmp 0x463df6
mov dword [esi + 0x18], ebp
push 0x4638c2
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x1decc38
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x1decc34], eax
call fcn.00468565
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x465548
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x1dedde0]
call fcn.0048244e
xor ebx, ebx
mov ebp, eax
cmp dword [0x1decf10], ebx
jne 0x4655dc
mov esi, 0xa4
push esi
push ebx
push 0x1decf18
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x1decf1c], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x1decf18], 0xa
mov dword [0x1decf20], 0x4650dd
push 0x7f89
push ebx
mov dword [0x1decf90], 0x468652
mov dword [0x1decf94], 0x46862c
mov dword [0x1decf24], 0x4650fc
mov dword [0x1decfa8], 0x46511c
call esi
mov dword [0x1decf10], eax
test eax, eax
jne 0x4655dc
push 0x7f00
push ebx
call esi
mov dword [0x1decf10], 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.0046d546
push ebx
push dword [0x1debc38]
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 0x4656a8
push edi
push dword [esp + 0x14]
push dword [0x1ded9f4]
call fcn.0048269b
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 [0x1debc34]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x1decf18
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.00468565
push 0x465202
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 0x465d66
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 0x465d80
inc esi
push 2
call edi
test bx, ax
je 0x465d8c
or esi, 2
push 4
call edi
test bx, ax
je 0x465d98
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x46632e
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 0x466366
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.004686cf
test byte [edi + 0x14], 8
mov dword [esp + 0x14], eax
je 0x466457
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x466457
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 0x466485
test ebp, ebp
jle 0x466485
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x466485
push ebp
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x46644e
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x4663f8
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 0x46640d
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 0x466485
cmp dword [edi + 0x10], ebx
je 0x466471
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 0x466485
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.004686ad
cmp dword [esp + 0x10], 0
je 0x46649f
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 0x4664a7
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.00468536
push eax
call fcn.00468ca6
push dword [0x1ded084]
mov dword [esp + 0x24], eax
call fcn.00482806
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 0x46651b
inc ebx
push 0x12
call esi
test di, ax
je 0x466527
or ebx, 2
push 0x11
call esi
test di, ax
je 0x466533
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.00465d66
push 0x466588
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.0046c8d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x468a2e
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x468ba4
mov eax, dword [esp + 0x24]
dec eax
je 0x468b87
dec eax
jne 0x468ba4
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.004689e7
pop ecx
test eax, eax
je 0x468ae5
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x468aa8
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x468b83
dec ebx
je 0x468b7f
dec ebx
je 0x468b5e
dec ebx
je 0x468b18
sub ebx, 4
jne 0x468ba4
test edi, edi
jne 0x468ba4
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x468ba4
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x468aa8
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x468aa3
sub edi, 0
je 0x468b50
dec edi
je 0x468b42
dec edi
je 0x468b34
dec edi
jne 0x468ba4
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x468ba4
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x468ba4
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x468ba4
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x468ba4
sub edi, 0
je 0x468b7b
dec edi
je 0x468b77
dec edi
jne 0x468ba4
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x468ba4
push 0x3c
jmp 0x468ba3
push 0x32
jmp 0x468ba3
push 0x14
jmp 0x468ba3
push 5
jmp 0x468ba3
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x468ba1
cmp eax, 0xa
je 0x468b9d
cmp eax, 0x5a
jne 0x468ba4
push 0x28
jmp 0x468ba3
push 0x1e
jmp 0x468ba3
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x468fa0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x1ded9f0]
call fcn.0048265c
mov esi, eax
test esi, esi
je 0x46907a
cmp dword [ebp + 0xc], 0
je 0x468fec
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x468fdd
cmp dword [esi + 0x1c], 0
jne 0x468fdd
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x46907a
test byte [ebp + 0x10], 3
je 0x469007
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0046a4c9
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x46902c
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 0x469040
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 0x46905d
test ebx, ebx
je 0x469051
push 8
jmp 0x469063
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x469070
test ebx, ebx
je 0x469066
push 3
pop ecx
jmp 0x469070
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 0x46a0ee
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 0x46a186
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x46a183
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x46a183
lea eax, [esi - 1]
push eax
push dword [0x1ded9f0]
call fcn.0048265c
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x46a185
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x46a17a
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x46a26d
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x46a160
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x46a22c
push eax
call esi
test al, al
jns 0x46a22c
push 0x11
call esi
test al, al
js 0x46a22c
push 0x10
call esi
test al, al
js 0x46a22c
push 0x12
call esi
test al, al
js 0x46a22c
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x46a22c
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x46a200
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x46a217
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x46a277
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x46a277
test ebp, ebp
je 0x46a250
push 0x11
call esi
test al, al
js 0x46a248
push 0x10
call esi
test al, al
js 0x46a248
push 0x12
call esi
test al, al
jns 0x46a250
push 1
push ebp
call fcn.0046a283
test ebx, ebx
je 0x46a264
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x46a277
test edi, edi
je 0x46a277
mov eax, dword [edi + 8]
jmp 0x46a279
and dword [esp + 0x14], 0
jmp 0x46a185
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x46a6d4
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x46a81c
xor ecx, ecx
cmp word [eax], cx
je 0x46a81c
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x46a72d
cmp eax, 3
jne 0x46a767
cmp word [esp + 0xa], 0x3a
jne 0x46a767
cmp eax, 2
jne 0x46a74b
lea eax, [esp + 8]
push 0x523998
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x46a81c
push 0xfffffffffffffffe
pop edi
jmp 0x46a81c
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x46a77c
cmp ax, bx
jne 0x46a786
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x46a76f
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x46a7c5
test byte [esp + 0x21c], 0x10
je 0x46a7ac
push 0xfffffffffffffffe
pop edi
jmp 0x46a7bc
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x46a81a
cmp word [esp + 0x10], bp
jne 0x46a7d3
cmp word [esp + 0x12], bp
je 0x46a7f2
cmp word [esp + 0x10], bx
jne 0x46a7e1
cmp word [esp + 0x12], bx
je 0x46a7f2
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x46a81a
cmp word [esp + 0x12], ax
jne 0x46a81a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x46a807
test al, 0x10
je 0x46a81a
jmp 0x46a817
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x46a81a
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4