joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bcd7
Capabilities:
Capture screenshot
Open clipboard
Write clipboard data

Disassembly:
mov edx, 0x3b
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40bcdc
call fcn.0042bdd0
push dword [esp + 0xf0]
call sub.USER32.dll_GetWindowDC
mov dword [esp + 0xe0], eax
push dword [esp + 0xe0]
call sub.GDI32.dll_CreateCompatibleDC
mov dword [esp + 0xe4], eax
push dword [esp + 0x100]
push dword [esp + 0x100]
push dword [esp + 0xe8]
call sub.GDI32.dll_CreateCompatibleBitmap
mov dword [esp + 0xe8], eax
push dword [esp + 0xe8]
push dword [esp + 0xe8]
call sub.GDI32.dll_SelectObject
push 0xcc0020
push dword [esp + 0xfc]
push dword [esp + 0xfc]
push dword [esp + 0xec]
push dword [esp + 0x110]
push dword [esp + 0x110]
push 0
push 0
push dword [esp + 0x104]
call sub.GDI32.dll_BitBlt
push 0
call sub.USER32.dll_OpenClipboard
call sub.USER32.dll_EmptyClipboard
push dword [esp + 0xe8]
push 2
call sub.USER32.dll_SetClipboardData
call sub.USER32.dll_CloseClipboard
push dword [esp + 0xe4]
call sub.GDI32.dll_DeleteDC
push dword [esp + 0xe0]
push dword [esp + 0xec]
call sub.USER32.dll_ReleaseDC
xor eax, eax
add esp, 0xec
ret 0x18

Function at 0x40c343
Capabilities:
Get disk information

Disassembly:
mov edx, 0x83
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40c348
call fcn.0042bdd0
push dword [esp + 0x214]
call fcn.00416420
mov edx, dword [esp + 0x210]
lea ecx, [esp]
call fcn.00416060
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x104
call fcn.004295b0
lea eax, [esp + 8]
push 0x104
push eax
call fcn.0042bd20
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, 0x42f1b4
push eax
mov eax, 0x431c9c
push eax
push dword [esp + 0x10]
call fcn.0042a2b0
lea eax, [esp + 4]
push eax
call fcn.0042bc30
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, 0x42fdc8
push eax
mov eax, 0x43291e
push eax
push dword [esp + 0x10]
call fcn.0042a2b0
lea eax, [esp + 4]
push eax
call fcn.0042bc30
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, 0x42f02e
push eax
mov eax, str.__
push eax
push dword [esp + 0x10]
call fcn.0042a2b0
lea eax, [esp + 4]
push eax
call fcn.0042bc30
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, 0x42f02e
push eax
mov eax, str.._
push eax
push dword [esp + 0x10]
call fcn.0042a2b0
lea eax, [esp + 4]
push eax
call fcn.0042bc30
push 0x104
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_QueryDosDeviceW
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
lea edx, [esp + 0xc]
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x104
push edx
call fcn.0042bec0
call fcn.00416402
add dword [esp], edx
call fcn.004296a0
pop eax
push eax
call fcn.004163f0
pop edx
add eax, edx
jmp 0x40c4b7
push dword [esp]
call fcn.0042be60
add esp, 0x20c
ret 4
Function at 0x40cabb
Capabilities:
Get disk information via ioctl

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.0042bdd0
mov edx, dword [esp + 0x18]
lea ecx, [esp]
call fcn.00416060
mov byte [esp + 0xc], 0
push 0
push 3
push 0
push dword [esp + 0xc]
call fcn.00403e0d
mov dword [esp + 8], eax
mov ebx, dword [esp + 8]
cmp ebx, 0xffffffff
je 0x40cb35
push 0
lea eax, [esp + 8]
push eax
push 0xc
push dword [esp + 0x28]
push 0
push 0
push 0x2d1080
push dword [esp + 0x24]
call sub.KERNEL32.dll_DeviceIoControl
mov byte [esp + 0xc], al
push dword [esp + 8]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp + 0xc]
movsx eax, al
jmp 0x40cb41
push dword [esp]
call fcn.0042be60
add esp, 0x10
pop ebx
ret 8

Function at 0x40eb47
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40eb4e
call fcn.0042bdd0
push dword [esp + 0x2c]
call fcn.00416420
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00416060
mov dword [esp + 8], 0
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x104
call fcn.004295b0
lea eax, [esp + 0x10]
push eax
call fcn.0042bc30
lea eax, [esp + 0x10]
mov edx, 0x42f02e
push edx
push 3
push eax
call fcn.0042bd60
mov edx, 0x42f02e
lea ecx, [esp + 0x18]
call fcn.00416068
mov eax, dword [esp + 0xc]
push eax
push 0x104
call sub.KERNEL32.dll_GetLogicalDriveStringsW
mov dword [esp + 8], eax
mov dword [esp + 4], 0
jmp 0x40ebe1
mov ebx, dword [esp + 8]
mov eax, ebx
mov ecx, 4
cdq
idiv ecx
mov ebx, eax
dec ebx
cmp ebx, dword [esp + 4]
jl 0x40ec9d
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, dword [esp + 0x14]
mov ebx, eax
mov edi, dword [esp + 0xc]
shl edi, 2
add edi, edi
add ebx, edi
push ebx
call fcn.0042acf0
lea eax, [esp + 0x14]
push 3
push eax
call fcn.0042bd20
push dword [esp]
push edx
call fcn.0042bbf0
pop edx
push eax
lea edx, [esp + 0x18]
push edx
call fcn.0042bbf0
pop edx
push eax
push 3
push edx
call fcn.0042bec0
call fcn.00416402
add dword [esp], edx
call fcn.0040c343
call fcn.00416430
mov edx, eax
pop ecx
call fcn.00416440
je 0x40ec93
lea edx, [esp + 0x10]
push edx
call fcn.0042bbf0
pop edx
push eax
push 3
push edx
call fcn.0042bec0
lea eax, [esp + 0x1c]
push eax
call fcn.0042bc30
jmp 0x40ec9d
inc dword [esp + 4]
jno 0x40ebe1
mov edx, dword [esp + 0x18]
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bcc0
pop eax
push eax
call fcn.004163f0
pop edx
add eax, edx
jmp 0x40ecc5
push dword [esp + 0x18]
call fcn.0042be60
push dword [esp]
call fcn.0042be60
push dword [esp + 0xc]
call fcn.0042be60
add esp, 0x1c
pop edi
pop ebx
ret 4
Function at 0x40fc44
Capabilities:
Get storage device properties

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40fc4a
call fcn.0042bdd0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00416060
mov byte [esp + 0x18], 0
push 0
push 3
push 0
push dword [esp + 0xc]
call fcn.00403e0d
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
cmp ebx, 0xffffffff
je 0x40fcca
push 0
lea eax, [esp + 0x14]
push eax
push 0x428
push dword [esp + 0x34]
push 0xc
lea eax, [esp + 0x18]
push eax
push 0x2d1400
push dword [esp + 0x30]
call sub.KERNEL32.dll_DeviceIoControl
mov byte [esp + 0x18], al
push dword [esp + 0x14]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp + 0x18]
movsx eax, al
jmp 0x40fcd6
push dword [esp]
call fcn.0042be60
add esp, 0x1c
pop ebx
ret 8
Function at 0x40fce5
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40fcec
call fcn.0042bdd0
push dword [esp + 0x30]
call fcn.00416420
mov edx, dword [esp + 0x2c]
lea ecx, [esp]
call fcn.00416060
mov dword [esp + 4], 0
mov edx, 0x42f02e
lea ecx, [esp + 8]
call fcn.00416068
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x104
call fcn.004295b0
lea eax, [esp + 0x10]
push eax
call fcn.0042bc30
mov edx, 0x42f02e
lea ecx, [esp + 0x10]
call fcn.00416068
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
push 0
call sub.KERNEL32.dll_SetLastError
add dword [esp + 0x1c], 0x6400
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push dword [esp + 0x24]
call fcn.004295b0
lea eax, [esp + 0x14]
push eax
call fcn.0042bc30
push dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push eax
push 0
call sub.KERNEL32.dll_QueryDosDeviceW
mov dword [esp + 0x18], eax
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
cmp ebx, 0x7a
je 0x40fd73
mov ebx, dword [esp + 4]
mov edi, dword [esp + 0x18]
add edi, edi
cmp ebx, edi
jge 0x40feb7
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, dword [esp + 0x18]
mov ebx, eax
add ebx, dword [esp + 0xc]
push ebx
call fcn.0042acf0
lea eax, [esp + 0x10]
push eax
call fcn.0042bc30
push 1
push dword [esp + 4]
push dword [esp + 0x14]
call fcn.00429ac0
and eax, eax
je 0x40fe9a
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push 1
mov eax, 0x42f02e
push eax
push dword [esp + 0x14]
push dword [esp + 0x24]
call fcn.00429f50
call fcn.00416402
add dword [esp], edx
call fcn.0040f585
call fcn.00416420
and eax, eax
je 0x40fe9a
mov edx, dword [esp + 8]
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bcc0
mov edx, 0x432a1a
push edx
call fcn.0042bcc0
mov edx, dword [esp + 0x10]
push edx
call fcn.0042bcc0
lea eax, [esp + 0xc]
push eax
call fcn.0042bc30
mov ebx, dword [esp + 4]
push dword [esp + 0xc]
call fcn.004296c0
mov edi, eax
inc edi
add edi, edi
add ebx, edi
mov dword [esp + 4], ebx
jmp 0x40fdd1
push dword [esp + 8]
call fcn.004296c0
mov ebx, eax
cmp ebx, 2
jle 0x40ff19
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, 0x42f04e
push eax
push dword [esp + 0x14]
call fcn.00429ba0
lea eax, [esp + 0xc]
push eax
call fcn.0042bc30
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, 0x42f04a
push eax
push dword [esp + 0x14]
call fcn.00429ba0
lea eax, [esp + 0xc]
push eax
call fcn.0042bc30
mov edx, dword [esp + 8]
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bcc0
pop eax
push eax
call fcn.004163f0
pop edx
add eax, edx
jmp 0x40ff41
push dword [esp + 8]
call fcn.0042be60
push dword [esp]
call fcn.0042be60
push dword [esp + 0x10]
call fcn.0042be60
push dword [esp + 0xc]
call fcn.0042be60
add esp, 0x20
pop edi
pop ebx
ret 4
Function at 0x4169b7
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 0x416a4f
push edi
push 0x437024
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x435a74]
test edi, edi
je 0x416a23
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x416a1c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x435a74
call fcn.0042bafc
pop ecx
pop ecx
jmp 0x416a1e
mov edi, dword [edi]
test edi, edi
jne 0x4169f3
pop ebx
mov eax, dword [0x4333fc]
mov esi, eax
inc eax
push 0x10
push 0x435a74
mov dword [0x4333fc], eax
call fcn.0042bb3c
pop ecx
pop ecx
push 0x437024
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 0x417a16
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x417a6b
push dword [esp + 0x10]
push 0x417995
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x435c90]
test esi, esi
je 0x417ac4
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x417a63
cmp byte [esi + 0x10], 0
je 0x417a63
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 0x417a3f
jmp 0x417ac4
mov esi, dword [0x435c90]
test esi, esi
je 0x417ac4
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 0x417abd
cmp byte [esi + 0x11], 0
je 0x417a99
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x417ab0
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 0x435c90
call fcn.0042bafc
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x417a78
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x418284
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x437050]
call fcn.0042b1b8
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x418384
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x4182da
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x4182d2
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x41831a
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x41835c
push 0x22
pop edx
cmp cx, dx
je 0x41830c
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4182fc
xor ecx, ecx
cmp word [eax], cx
je 0x41835c
mov ecx, eax
add eax, 2
jmp 0x41835e
test dx, dx
je 0x418364
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x41830c
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x418352
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x41835c
cmp cx, dx
je 0x41834f
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41833f
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x418324
jmp 0x41830c
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x418366
xor edx, edx
cmp dword [ebp], ebx
jne 0x41836f
test edi, edi
jne 0x41838c
test edx, edx
je 0x418374
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x4182c8
test edi, edi
jne 0x41839d
mov eax, ebx
jmp 0x4183a1
test esi, esi
je 0x41839d
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x4183a1
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x418d40
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x437070]
call fcn.0042b1b8
mov edi, dword [eax + 0x24]
test edi, edi
je 0x418dfe
cmp dword [edi + 8], 1
je 0x418dfe
mov edi, dword [edi + 0xc]
test edi, edi
je 0x418dfe
mov al, byte [edi]
cmp al, 0x20
je 0x418d79
cmp al, 9
jne 0x418d7c
inc edi
jmp 0x418d6f
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call esi
push dword [esp + 0x14]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
call fcn.0042c040
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x418dcd
push 9
pop edx
lea eax, [ebp - 2]
lea eax, [eax + ebx*2]
movzx ecx, word [eax]
push 0x20
pop esi
cmp cx, si
je 0x418de9
cmp cx, dx
je 0x418de9
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x418de1
cmp cx, dx
jne 0x418ded
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x418dd4
push ebp
call sub.MSVCRT.dll_wcslen
pop ecx
sub ebx, eax
push ebx
call fcn.0042c120
jmp 0x418dcd
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.0042c320
Function at 0x419b1a
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x4370a8]
call fcn.0042b329
mov ebx, eax
test ebx, ebx
je 0x419b7e
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x419b43
push dword [esp + 0xc]
push ebx
call eax
jmp 0x419b7e
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.0042c040
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.0042c120
pop edi
pop esi
pop ebx
ret 8
Function at 0x4211cc
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x4369f8], 0
jne 0x42129d
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x4370b4
mov dword [0x4369f8], 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 [0x435800]
mov dword [0x436ebc], eax
mov dword [0x4369fc], 0x1f4
call esi
mov dword [0x436ecc], eax
mov eax, dword [0x4369fc]
add eax, eax
push eax
push 8
push dword [0x435800]
call esi
xor ebx, ebx
mov dword [0x436ec8], eax
push 0x436ed8
mov dword [0x436ec0], ebx
mov dword [0x436ec4], 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 [0x436ef0], eax
call esi
mov dword [0x436ef4], eax
cmp dword [0x436ef0], ebx
je 0x421294
test eax, eax
je 0x421294
lea eax, [esp + 0xc]
mov dword [0x436ed0], ebx
push eax
push ebx
push ebx
push 0x420ccf
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x436ed4], eax
jmp 0x42129a
mov dword [0x436ed0], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4214d1
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 0x421647
mov eax, dword [esp + 0x24]
dec eax
je 0x42162a
dec eax
jne 0x421647
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0042148a
pop ecx
test eax, eax
je 0x421588
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x42154b
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x421626
dec ebx
je 0x421622
dec ebx
je 0x421601
dec ebx
je 0x4215bb
sub ebx, 4
jne 0x421647
test edi, edi
jne 0x421647
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x421647
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 0x42154b
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x421546
sub edi, 0
je 0x4215f3
dec edi
je 0x4215e5
dec edi
je 0x4215d7
dec edi
jne 0x421647
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x421647
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x421647
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x421647
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x421647
sub edi, 0
je 0x42161e
dec edi
je 0x42161a
dec edi
jne 0x421647
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x421647
push 0x3c
jmp 0x421646
push 0x32
jmp 0x421646
push 0x14
jmp 0x421646
push 5
jmp 0x421646
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x421644
cmp eax, 0xa
je 0x421640
cmp eax, 0x5a
jne 0x421647
push 0x28
jmp 0x421646
push 0x1e
jmp 0x421646
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x422066
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x4370d0]
call fcn.0042b329
mov esi, eax
test esi, esi
je 0x422140
cmp dword [ebp + 0xc], 0
je 0x4220b2
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x4220a3
cmp dword [esi + 0x1c], 0
jne 0x4220a3
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x422140
test byte [ebp + 0x10], 3
je 0x4220cd
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004230c2
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x4220f2
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 0x422106
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 0x422123
test ebx, ebx
je 0x422117
push 8
jmp 0x422129
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x422136
test ebx, ebx
je 0x42212c
push 3
pop ecx
jmp 0x422136
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 0x422dce
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 0x422e66
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x422e63
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x422e63
lea eax, [esi - 1]
push eax
push dword [0x4370d0]
call fcn.0042b329
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x422e65
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x422e5a
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x422f4d
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x422e40
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x422f0c
push eax
call esi
test al, al
jns 0x422f0c
push 0x11
call esi
test al, al
js 0x422f0c
push 0x10
call esi
test al, al
js 0x422f0c
push 0x12
call esi
test al, al
js 0x422f0c
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x422f0c
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x422ee0
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x422ef7
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x422f57
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x422f57
test ebp, ebp
je 0x422f30
push 0x11
call esi
test al, al
js 0x422f28
push 0x10
call esi
test al, al
js 0x422f28
push 0x12
call esi
test al, al
jns 0x422f30
push 1
push ebp
call fcn.00422f63
test ebx, ebx
je 0x422f44
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x422f57
test edi, edi
je 0x422f57
mov eax, dword [edi + 8]
jmp 0x422f59
and dword [esp + 0x14], 0
jmp 0x422e65
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x42376b
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x436f1c]
push esi
test eax, eax
jne 0x42377c
push fcn.00423884
push 0x10
push 0x258
call fcn.0042b3fc
mov dword [0x436f1c], eax
push dword [esp + 0xc]
push eax
call fcn.0042b368
mov esi, eax
test esi, esi
je 0x42387d
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x42379e
mov edi, 0x42e054
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4237ae
xor eax, eax
cmp word [ebx], ax
jne 0x4237b3
mov ebx, 0x42e208
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 [0x435800]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x423864
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x423814
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x423818
push 0x42e1fc
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x423818
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 0x42383c
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x423852
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x423850
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x435800]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x42387b
cmp dword [esp + 0x14], 0xffffffff
je 0x42386f
mov esi, dword [esp + 0x14]
push esi
push dword [0x436f1c]
call fcn.0042b2da
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc