joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ec6a
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 0x40eca2
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.004210ed
test byte [edi + 0x14], 8
mov dword [esp + 0x14], eax
je 0x40ed93
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x40ed93
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 0x40edc1
test ebp, ebp
jle 0x40edc1
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x40edc1
push ebp
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x40ed8a
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x40ed34
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 0x40ed49
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 0x40edc1
cmp dword [edi + 0x10], ebx
je 0x40edad
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 0x40edc1
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.004210cb
cmp dword [esp + 0x10], 0
je 0x40eddb
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 0x40ede3
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.00420a24
push eax
call fcn.00422f31
push dword [0x4b94cc]
mov dword [esp + 0x24], eax
call fcn.0043418b
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 0x40ee57
inc ebx
push 0x12
call esi
test di, ax
je 0x40ee63
or ebx, 2
push 0x11
call esi
test di, ax
je 0x40ee6f
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.0040e6a2
push 0x40eec4
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.00424a3e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4119c6
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x4bda84]
call fcn.00433fc1
xor ebx, ebx
mov ebp, eax
cmp dword [0x4b9918], ebx
jne 0x411a5a
mov esi, 0xa4
push esi
push ebx
push 0x4b9920
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x4b9924], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x4b9920], 0xa
mov dword [0x4b9928], 0x41155b
push 0x7f89
push ebx
mov dword [0x4b9998], 0x4212f4
mov dword [0x4b999c], 0x4212ce
mov dword [0x4b992c], 0x41157a
mov dword [0x4b99b0], 0x41159a
call esi
mov dword [0x4b9918], eax
test eax, eax
jne 0x411a5a
push 0x7f00
push ebx
call esi
mov dword [0x4b9918], 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.00424e4c
push ebx
push dword [0x4b8b98]
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 0x411b26
push edi
push dword [esp + 0x14]
push dword [0x4bda7c]
call fcn.00434052
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 [0x4b8b94]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x4b9920
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.00420a53
push 0x411680
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 0x413f0d
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x4bda84]
call fcn.00433fc1
xor ebp, ebp
mov esi, eax
cmp dword [0x4b9e00], ebp
jne 0x413fe9
xor ebx, ebx
inc ebx
mov dword [0x4b9e00], ebx
call fcn.00420fb1
mov edi, 0xa4
push edi
push ebp
push 0x4b9e08
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x4b9e08], 0x13
lea eax, [esp + 0x10]
mov dword [0x4b9e0c], edi
mov dword [0x4b9e18], 0x413e58
mov dword [0x4b9e1c], 0x414183
push eax
mov dword [0x4b9e70], 0x413e33
mov dword [0x4b9e74], 0x4140ce
mov dword [0x4b9e14], 0x413e0e
mov dword [0x4b9e98], 0x413e73
mov dword [0x4b9eac], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x413fe9
cmp dword [esp + 0x20], ebx
je 0x413fd1
cmp dword [esp + 0x20], 2
jne 0x413fe9
cmp dword [esp + 0x14], 5
jae 0x413fd9
mov dword [0x4b9eac], ebp
jmp 0x413fe9
jne 0x413fe9
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x4b9eac], 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.00424e4c
mov eax, dword [esp + 0x140]
push ebp
push dword [0x4b8b98]
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 0x4140bf
push dword [esp + 0x128]
push dword [0x4bda7c]
call fcn.00434052
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x41408e
push edi
call fcn.004256c2
test eax, eax
je 0x41408e
push ebp
push ebp
push edi
call fcn.00425331
mov dword [esi + 0x18], eax
jmp 0x414091
mov dword [esi + 0x18], ebp
push 0x413b5d
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x4b9e08
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x4b9e04], eax
call fcn.00420a53
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x4173d8
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
push dword [0x4bda84]
call fcn.00433fc1
cmp dword [0x4ba240], 0
mov edi, eax
mov esi, 0x50010000
jne 0x417540
mov ebx, 0xa4
push ebx
push 0
push 0x4ba248
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x4ba248], 0x1b
mov dword [0x4ba24c], ebx
mov dword [0x4ba250], 0x416d48
mov dword [0x4ba254], 0x41708d
mov dword [0x4ba26c], 0x416ac5
mov dword [0x4ba27c], 0x417083
mov dword [0x4ba274], 0x41702e
mov dword [0x4ba270], 0x4176bf
mov dword [0x4ba25c], 0x417ba6
mov dword [0x4ba258], 0x4172d4
mov dword [0x4ba260], 0x41731e
mov dword [0x4ba264], 0x417bd7
mov dword [0x4ba288], 0x41724b
mov dword [0x4ba28c], 0x417b5f
mov dword [0x4ba280], 0x4171ba
mov dword [0x4ba284], 0x417a0c
mov dword [0x4ba2c0], 0x417859
mov dword [0x4ba2c4], 0x4170d2
mov dword [0x4ba2c8], 0x4178ac
mov dword [0x4ba2cc], 0x41715e
mov dword [0x4ba2d0], 0x41791e
mov dword [0x4ba2d4], 0x417198
mov dword [0x4ba2b8], 0x41712d
mov dword [0x4ba2e8], 0x417940
call fcn.00420fb1
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x417536
cmp dword [esp + 0x24], 2
jne 0x417536
cmp dword [esp + 0x18], 6
jb 0x417536
mov eax, dword [0x4b9400]
mov dword [0x4ba244], eax
mov dword [0x4ba240], 1
test byte [esp + 0x140], 2
jne 0x41754f
mov esi, 0x50010002
test byte [esp + 0x140], 1
jne 0x41755c
or esi, 5
test byte [esp + 0x140], 0x20
je 0x417569
or esi, 0x20
push 0x1f4
push 0
push dword [0x4b8b94]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
call fcn.00424e4c
test ebp, ebp
je 0x4176ac
push 0
push dword [0x4b8b98]
push 0xffffffffffffffff
push dword [edi]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push esi
push 0
push str.SysTreeView32
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4176b0
push dword [esp + 0x12c]
push dword [0x4bda7c]
call fcn.00434052
push 0x417c20
push 0xfffffffffffffffc
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 4
push 4
push 0x112c
push ebx
mov dword [0x4ba2ec], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x4ba248
push ebx
push edi
push dword [esp + 0x138]
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], 0x19
call fcn.00420a53
mov ebx, eax
mov eax, 0x100
test dword [esp + 0x140], eax
je 0x4176b0
or esi, eax
push esi
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test dword [esp + 0x140], 0x10000
je 0x4176b0
call fcn.00422cb9
cmp eax, 0x3c
jg 0x41767f
push edi
call fcn.00416f6a
pop ecx
push 0
push 2
push 0x1108
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41769c
push eax
push dword [edi]
call fcn.004216ce
push edi
push str.PB_3State
push dword [edi]
call dword [sym.imp.USER32.dll_SetPropW]
jmp 0x4176b0
mov ebx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x118
ret 0x18
Function at 0x41de2c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push esi
mov esi, dword [sym.imp.USER32.dll_GetParent]
push edi
push dword [ebp + 8]
call esi
push eax
call esi
push eax
call fcn.00421095
mov esi, eax
lea eax, [ebp - 0x208]
push eax
push 0x104
push 0xd
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
cmp word [ebp + eax*2 - 0x20a], 0x5c
jne 0x41de86
xor ecx, ecx
mov word [ebp + eax*2 - 0x20a], cx
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41dec9
test byte [ebp - 0x458], 0x10
je 0x41dec0
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.0041e223
push 0
push dword [esi]
call fcn.00420b13
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41dee7
push dword [esi + 0x14]
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.0041e223
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
push eax
push 0xb1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x422181
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp + 8]
or eax, 0x4000
push eax
push 0x2b4
lea eax, [ebp - 0x4bc]
push eax
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret 4

Function at 0x4221c6
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x422242
cmp dword [0x4bcfb0], 1
je 0x422242
push ebx
mov ebx, 0x4bcfb8
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x4bcfd4]
and dword [0x4bcfdc], 0
mov dword [0x4bcfd8], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x4bcfd0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x4bcfd4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42223a
push 0
push dword [0x4bcfb4]
mov dword [0x4bcfb0], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop esi
ret 4
Function at 0x422503
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x4bcad8], 0
jne 0x4225d4
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x4bdab0
mov dword [0x4bcad8], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x640
push eax
push 8
push dword [0x4b8b94]
mov dword [0x4bcf9c], eax
mov dword [0x4bcadc], 0x1f4
call esi
mov dword [0x4bcfac], eax
mov eax, dword [0x4bcadc]
add eax, eax
push eax
push 8
push dword [0x4b8b94]
call esi
xor ebx, ebx
mov dword [0x4bcfa8], eax
push 0x4bcfb8
mov dword [0x4bcfa0], ebx
mov dword [0x4bcfa4], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebp
push ebx
call esi
push ebx
push ebx
push ebp
push ebx
mov dword [0x4bcfd0], eax
call esi
mov dword [0x4bcfd4], eax
cmp dword [0x4bcfd0], ebx
je 0x4225cb
test eax, eax
je 0x4225cb
lea eax, [esp + 0xc]
mov dword [0x4bcfb0], ebx
push eax
push ebx
push ebx
push 0x421f86
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4bcfb4], eax
jmp 0x4225d1
mov dword [0x4bcfb0], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4225d6
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42267b
cmp dword [esp + 0xc], 0
je 0x42267b
cmp dword [0x4bcfb0], 1
je 0x42267b
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42267a
push ebp
mov ebp, 0x4bcfb8
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x4bcfd4]
mov dword [0x4bcfd8], esi
mov dword [0x4bcfdc], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x4bcfd0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x4bcfd4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x422672
push 0
push dword [0x4bcfb4]
mov dword [0x4bcfb0], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
ret 8

Function at 0x4228a5
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4228ce
test byte [esp + 8], 2
je 0x4228c2
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 0x4228d0
xor eax, eax
ret 8
Function at 0x42292f
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x4bcfe0]
push esi
test eax, eax
jne 0x422954
push 0x422a5c
push 0x10
push 0x258
call fcn.004340d3
mov dword [0x4bcfe0], eax
push dword [esp + 0xc]
push eax
call fcn.00434052
mov esi, eax
test esi, esi
je 0x422a55
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x422976
mov edi, 0x49d008
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x422986
xor eax, eax
cmp word [ebx], ax
jne 0x42298b
mov ebx, 0x49f354
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x4b8b94]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x422a3c
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x4229ec
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x4229f0
push 0x49f36c
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x4229f0
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x422a14
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x422a2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x422a28
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x4b8b94]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x422a53
cmp dword [esp + 0x14], 0xffffffff
je 0x422a47
mov esi, dword [esp + 0x14]
push esi
push dword [0x4bcfe0]
call fcn.00433ff0
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x422cb9
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 0x422e2f
mov eax, dword [esp + 0x24]
dec eax
je 0x422e12
dec eax
jne 0x422e2f
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00422c72
pop ecx
test eax, eax
je 0x422d70
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x422d33
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x422e0e
dec ebx
je 0x422e0a
dec ebx
je 0x422de9
dec ebx
je 0x422da3
sub ebx, 4
jne 0x422e2f
test edi, edi
jne 0x422e2f
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x422e2f
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 0x422d33
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x422d2e
sub edi, 0
je 0x422ddb
dec edi
je 0x422dcd
dec edi
je 0x422dbf
dec edi
jne 0x422e2f
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x422e2f
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x422e2f
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x422e2f
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x422e2f
sub edi, 0
je 0x422e06
dec edi
je 0x422e02
dec edi
jne 0x422e2f
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x422e2f
push 0x3c
jmp 0x422e2e
push 0x32
jmp 0x422e2e
push 0x14
jmp 0x422e2e
push 5
jmp 0x422e2e
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x422e2c
cmp eax, 0xa
je 0x422e28
cmp eax, 0x5a
jne 0x422e2f
push 0x28
jmp 0x422e2e
push 0x1e
jmp 0x422e2e
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x42331c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x4bdacc]
call fcn.0043402a
mov esi, eax
test esi, esi
je 0x4233f6
cmp dword [ebp + 0xc], 0
je 0x423368
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x423359
cmp dword [esi + 0x1c], 0
jne 0x423359
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4233f6
test byte [ebp + 0x10], 3
je 0x423383
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00423246
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x4233a8
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 0x4233bc
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 0x4233d9
test ebx, ebx
je 0x4233cd
push 8
jmp 0x4233df
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x4233ec
test ebx, ebx
je 0x4233e2
push 3
pop ecx
jmp 0x4233ec
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 0x424273
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 0x42430b
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x424308
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x424308
lea eax, [esi - 1]
push eax
push dword [0x4bdacc]
call fcn.0043402a
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x42430a
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x4242ff
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x4243f2
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4242e5
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4243b1
push eax
call esi
test al, al
jns 0x4243b1
push 0x11
call esi
test al, al
js 0x4243b1
push 0x10
call esi
test al, al
js 0x4243b1
push 0x12
call esi
test al, al
js 0x4243b1
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4243b1
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x424385
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x42439c
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4243fc
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4243fc
test ebp, ebp
je 0x4243d5
push 0x11
call esi
test al, al
js 0x4243cd
push 0x10
call esi
test al, al
js 0x4243cd
push 0x12
call esi
test al, al
jns 0x4243d5
push 1
push ebp
call fcn.00424408
test ebx, ebx
je 0x4243e9
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4243fc
test edi, edi
je 0x4243fc
mov eax, dword [edi + 8]
jmp 0x4243fe
and dword [esp + 0x14], 0
jmp 0x42430a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4