joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49cd2c
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
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 ebp, eax
test ebp, ebp
je 0x49cdc4
push edi
push 0x63d894
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x63bbd8]
test edi, edi
je 0x49cd98
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x49cd91
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x63bbd8
call fcn.004c0a2b
pop ecx
pop ecx
jmp 0x49cd93
mov edi, dword [edi]
test edi, edi
jne 0x49cd68
pop ebx
mov eax, dword [0x636d8c]
mov esi, eax
inc eax
push 0x10
push 0x63bbd8
mov dword [0x636d8c], eax
call fcn.004c0a6b
pop ecx
pop ecx
push 0x63d894
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x49cdcc
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.0049cce0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x63d894
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x63bbd8]
jmp 0x49cdfd
cmp dword [esi + 0xc], edi
je 0x49ce03
mov esi, dword [esi]
test esi, esi
jne 0x49cdf6
jmp 0x49ce1b
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x63bbd8
call fcn.004c0a2b
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4
Function at 0x49d8a1
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x49d8f6
push dword [esp + 0x10]
push 0x49d820
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x63be14]
test esi, esi
je 0x49d94f
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x49d8ee
cmp byte [esi + 0x10], 0
je 0x49d8ee
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x49d8ca
jmp 0x49d94f
mov esi, dword [0x63be14]
test esi, esi
je 0x49d94f
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x49d948
cmp byte [esi + 0x11], 0
je 0x49d924
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x49d93b
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x63be14
call fcn.004c0a2b
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x49d903
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x49f1fd
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x49f25f
cmp word [esi], di
je 0x49f25f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004d1f70
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.004d2180
add esp, 0x10
test eax, eax
jne 0x49f25e
push 0x24
push 8
push dword [0x63b574]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [ecx + 0x20], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x4a0e51
Capabilities:
Reference http user-agent string

Disassembly:
push str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.004a0e66
ret 8

Function at 0x4a0e66
Capabilities:
Create thread

Disassembly:
push ebp
push edi
push dword [0x63da5c]
xor edi, edi
call fcn.004c0050
mov ebp, eax
cmp dword [esp + 0xc], edi
je 0x4a0f1d
push ebx
push esi
push 0x60
push 8
push dword [0x63b574]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [esp + 0x14]
mov esi, eax
xor ebx, ebx
inc ebx
or dword [esi + 4], 0xffffffff
mov dword [esi], ebx
call sub.MSVCRT.dll__wcsdup
push dword [esp + 0x20]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x40], eax
mov dword [esi + 0x24], ecx
mov eax, dword [ebp]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 4]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x58], ebx
test bl, cl
je 0x4a0f0b
lea eax, [esp + 0x14]
push eax
push edi
push esi
push 0x4a10b3
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4a0ef7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a0efb
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4a0f03
mov edi, esi
jmp 0x4a0f1b
push esi
call fcn.004a117c
jmp 0x4a0f1a
push esi
call fcn.004a0f32
push esi
mov edi, eax
call fcn.004a117c
pop ecx
pop ecx
pop esi
pop ebx
mov eax, edi
pop edi
pop ebp
ret 0xc

Function at 0x4a1701
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
push ebx
push edi
push dword [0x63da5c]
xor edi, edi
call fcn.004c0050
mov ebx, eax
cmp dword [esp + 0x10], edi
je 0x4a17f5
push ebp
push esi
push 0x60
push 8
push dword [0x63b574]
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 0x4a17e3
test ebx, ebx
je 0x4a17ad
push ebx
push edi
push dword [0x63b574]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x48], eax
test eax, eax
je 0x4a17a8
push ebx
push dword [esp + 0x20]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [esi + 0x48], edi
je 0x4a17da
lea eax, [esp + 0x18]
push eax
push edi
push esi
push 0x4a17fc
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4a17d2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a17d6
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x4a17f1
push esi
call fcn.004a117c
pop ecx
jmp 0x4a17f3
mov eax, dword [esp + 0x1c]
push esi
mov dword [esi + 0x48], eax
call fcn.004a12dc
pop ecx
mov edi, esi
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
ret 0x18
Function at 0x4a19c8
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x4a1917
push 0x10
push 0x2c
call fcn.004c03cf
push 0
push 0
push 8
mov dword [0x63c150], eax
call fcn.004c00bb
cmp word [0x63c148], 0
mov dword [0x63da64], eax
jne 0x4a1aad
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x4a1a20
mov word [0x63c148], di
jmp 0x4a1a28
xor eax, eax
mov word [0x63c148], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x63c164], eax
test eax, eax
je 0x4a1aac
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5611a4
push eax
call esi
push 0x5611b0
push dword [0x63c164]
mov dword [0x63c154], eax
call esi
push str.getnameinfo
push dword [0x63c164]
mov dword [0x63c158], eax
call esi
push str.WSAStringToAddressA
push dword [0x63c164]
mov dword [0x63c15c], eax
call esi
cmp dword [0x63c154], 0
mov dword [0x63c160], eax
pop esi
je 0x4a1aac
cmp dword [0x63c158], 0
je 0x4a1aac
cmp dword [0x63c15c], 0
je 0x4a1aac
test eax, eax
je 0x4a1aac
mov dword [0x63c14c], edi
pop edi
add esp, 0x190
ret

Function at 0x4a1e88
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x63d88c]
call fcn.004c02fc
mov ebx, eax
test ebx, ebx
je 0x4a1eec
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4a1eb1
push dword [esp + 0xc]
push ebx
call eax
jmp 0x4a1eec
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.004c0e80
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.004c0f60
pop edi
pop esi
pop ebx
ret 8

Function at 0x4a2079
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 0x4a2093
inc esi
push 2
call edi
test bx, ax
je 0x4a209f
or esi, 2
push 4
call edi
test bx, ax
je 0x4a20ab
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4a2641
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 0x4a2679
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.004a614a
test byte [edi + 0x14], 8
mov dword [esp + 0x14], eax
je 0x4a276a
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x4a276a
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 0x4a2798
test ebp, ebp
jle 0x4a2798
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x4a2798
push ebp
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4a2761
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x4a270b
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 0x4a2720
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 0x4a2798
cmp dword [edi + 0x10], ebx
je 0x4a2784
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 0x4a2798
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.004a6128
cmp dword [esp + 0x10], 0
je 0x4a27b2
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 0x4a27ba
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.004a631e
push eax
call fcn.004a7100
push dword [0x63c184]
mov dword [esp + 0x24], eax
call fcn.004c04a6
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 0x4a282e
inc ebx
push 0x12
call esi
test di, ax
je 0x4a283a
or ebx, 2
push 0x11
call esi
test di, ax
je 0x4a2846
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.004a2079
push 0x4a289b
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.004aa81b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4a6cae
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 0x4a6e24
mov eax, dword [esp + 0x24]
dec eax
je 0x4a6e07
dec eax
jne 0x4a6e24
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.004a6c67
pop ecx
test eax, eax
je 0x4a6d65
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x4a6d28
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x4a6e03
dec ebx
je 0x4a6dff
dec ebx
je 0x4a6dde
dec ebx
je 0x4a6d98
sub ebx, 4
jne 0x4a6e24
test edi, edi
jne 0x4a6e24
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x4a6e24
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 0x4a6d28
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x4a6d23
sub edi, 0
je 0x4a6dd0
dec edi
je 0x4a6dc2
dec edi
je 0x4a6db4
dec edi
jne 0x4a6e24
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x4a6e24
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x4a6e24
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x4a6e24
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x4a6e24
sub edi, 0
je 0x4a6dfb
dec edi
je 0x4a6df7
dec edi
jne 0x4a6e24
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x4a6e24
push 0x3c
jmp 0x4a6e23
push 0x32
jmp 0x4a6e23
push 0x14
jmp 0x4a6e23
push 5
jmp 0x4a6e23
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4a6e21
cmp eax, 0xa
je 0x4a6e1d
cmp eax, 0x5a
jne 0x4a6e24
push 0x28
jmp 0x4a6e23
push 0x1e
jmp 0x4a6e23
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x4a6f50
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
lea eax, [ebp - 0x40]
push 0x40
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 8], 6
jne 0x4a6f81
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x60]
jmp 0x4a7003
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4a6fdd
mov eax, dword [ebp + 8]
sub eax, 0
je 0x4a6fd5
dec eax
je 0x4a6fcd
dec eax
je 0x4a6fc5
dec eax
je 0x4a6fbd
dec eax
je 0x4a6fb5
dec eax
jne 0x4a6fdd
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
jmp 0x4a7005
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
jmp 0x4a7005
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x4a7005
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
jmp 0x4a7005
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jmp 0x4a7005
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
jmp 0x4a7005
cmp dword [ebp + 8], 7
jne 0x4a7001
push 0x2c
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetProcessMemoryInfo
test eax, eax
je 0x4a7001
mov eax, dword [ebp - 0x68]
jmp 0x4a7003
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a723a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x63d888]
call fcn.004c02fc
mov esi, eax
test esi, esi
je 0x4a7314
cmp dword [ebp + 0xc], 0
je 0x4a7286
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x4a7277
cmp dword [esi + 0x1c], 0
jne 0x4a7277
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4a7314
test byte [ebp + 0x10], 3
je 0x4a72a1
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004a852d
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x4a72c6
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 0x4a72da
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 0x4a72f7
test ebx, ebx
je 0x4a72eb
push 8
jmp 0x4a72fd
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x4a730a
test ebx, ebx
je 0x4a7300
push 3
pop ecx
jmp 0x4a730a
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 0x4a86c0
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 0x4a8758
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4a8755
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4a8755
lea eax, [esi - 1]
push eax
push dword [0x63d888]
call fcn.004c02fc
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4a8757
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x4a874c
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x4a883f
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4a8732
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4a87fe
push eax
call esi
test al, al
jns 0x4a87fe
push 0x11
call esi
test al, al
js 0x4a87fe
push 0x10
call esi
test al, al
js 0x4a87fe
push 0x12
call esi
test al, al
js 0x4a87fe
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4a87fe
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x4a87d2
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4a87e9
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4a8849
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4a8849
test ebp, ebp
je 0x4a8822
push 0x11
call esi
test al, al
js 0x4a881a
push 0x10
call esi
test al, al
js 0x4a881a
push 0x12
call esi
test al, al
jns 0x4a8822
push 1
push ebp
call fcn.004a8855
test ebx, ebx
je 0x4a8836
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4a8849
test edi, edi
je 0x4a8849
mov eax, dword [edi + 8]
jmp 0x4a884b
and dword [esp + 0x14], 0
jmp 0x4a8757
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x4a8ce9
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4a8d61
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4a8d42
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4a8d3f
cmp ecx, 0x5c
je 0x4a8d3f
cmp ecx, 0x2f
jne 0x4a8d4c
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4a8d2c
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4a8d63
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4a8d69
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 0x4a8eb1
xor ecx, ecx
cmp word [eax], cx
je 0x4a8eb1
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 0x4a8dc2
cmp eax, 3
jne 0x4a8dfc
cmp word [esp + 0xa], 0x3a
jne 0x4a8dfc
cmp eax, 2
jne 0x4a8de0
lea eax, [esp + 8]
push 0x561610
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 0x4a8eb1
push 0xfffffffffffffffe
pop edi
jmp 0x4a8eb1
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4a8e11
cmp ax, bx
jne 0x4a8e1b
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4a8e04
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4a8e5a
test byte [esp + 0x21c], 0x10
je 0x4a8e41
push 0xfffffffffffffffe
pop edi
jmp 0x4a8e51
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4a8eaf
cmp word [esp + 0x10], bp
jne 0x4a8e68
cmp word [esp + 0x12], bp
je 0x4a8e87
cmp word [esp + 0x10], bx
jne 0x4a8e76
cmp word [esp + 0x12], bx
je 0x4a8e87
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4a8eaf
cmp word [esp + 0x12], ax
jne 0x4a8eaf
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4a8e9c
test al, 0x10
je 0x4a8eaf
jmp 0x4a8eac
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4a8eaf
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x4a8f8f
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4a8fb8
test byte [esp + 8], 2
je 0x4a8fac
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4a8fba
xor eax, eax
ret 8

Function at 0x4a904a
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x4a906a
cmp dword [esp + 8], 0
je 0x4a906a
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4a906c
xor eax, eax
ret 8