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

Disassembly:
mov edx, 0x3b
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40bc1f
call fcn.00428aa0
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 0x40c286
Capabilities:
Get disk information

Disassembly:
mov edx, 0x83
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40c28b
call fcn.00428aa0
push dword [esp + 0x214]
call fcn.00415410
mov edx, dword [esp + 0x210]
lea ecx, [esp]
call fcn.00415060
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
push 0x104
call fcn.00426290
lea eax, [esp + 8]
push 0x104
push eax
call fcn.004289f0
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
mov eax, 0x42c1d6
push eax
mov eax, 0x42ecd4
push eax
push dword [esp + 0x10]
call fcn.00426f90
lea eax, [esp + 4]
push eax
call fcn.00428900
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
mov eax, 0x42cdea
push eax
mov eax, 0x42f8ba
push eax
push dword [esp + 0x10]
call fcn.00426f90
lea eax, [esp + 4]
push eax
call fcn.00428900
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
mov eax, 0x42c02e
push eax
mov eax, str.__
push eax
push dword [esp + 0x10]
call fcn.00426f90
lea eax, [esp + 4]
push eax
call fcn.00428900
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
mov eax, 0x42c02e
push eax
mov eax, str.._
push eax
push dword [esp + 0x10]
call fcn.00426f90
lea eax, [esp + 4]
push eax
call fcn.00428900
push 0x104
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_QueryDosDeviceW
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
lea edx, [esp + 0xc]
push edx
call fcn.004288c0
pop edx
push eax
push 0x104
push edx
call fcn.00428b90
call fcn.004153f2
add dword [esp], edx
call fcn.00426380
pop eax
push eax
call fcn.004153e0
pop edx
add eax, edx
jmp 0x40c3fa
push dword [esp]
call fcn.00428b30
add esp, 0x20c
ret 4
Function at 0x40e773
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40e77a
call fcn.00428aa0
push dword [esp + 0x2c]
call fcn.00415410
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00415060
mov dword [esp + 8], 0
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
push 0x104
call fcn.00426290
lea eax, [esp + 0x10]
push eax
call fcn.00428900
lea eax, [esp + 0x10]
mov edx, 0x42c02e
push edx
push 3
push eax
call fcn.00428a30
mov edx, 0x42c02e
lea ecx, [esp + 0x18]
call fcn.00415068
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 0x40e80d
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 0x40e8a8
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
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.004279d0
lea eax, [esp + 0x14]
push 3
push eax
call fcn.004289f0
push dword [esp]
push edx
call fcn.004288c0
pop edx
push eax
lea edx, [esp + 0x18]
push edx
call fcn.004288c0
pop edx
push eax
push 3
push edx
call fcn.00428b90
call fcn.004153f2
add dword [esp], edx
call fcn.0040c286
call fcn.00415420
mov edx, eax
pop ecx
call fcn.00415430
je 0x40e89e
jmp 0x40e8a8
inc dword [esp + 4]
jno 0x40e80d
lea edx, [esp + 0x10]
push edx
call fcn.004288c0
pop edx
push eax
push 3
push edx
call fcn.00428b90
pop eax
push eax
call fcn.004153e0
pop edx
add eax, edx
jmp 0x40e8d5
push dword [esp]
call fcn.00428b30
push dword [esp + 0xc]
call fcn.00428b30
push dword [esp + 0x18]
call fcn.00428b30
add esp, 0x1c
pop edi
pop ebx
ret 4
Function at 0x40f8e1
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40f8e8
call fcn.00428aa0
push dword [esp + 0x30]
call fcn.00415410
mov edx, dword [esp + 0x2c]
lea ecx, [esp]
call fcn.00415060
mov dword [esp + 4], 0
mov edx, 0x42c02e
lea ecx, [esp + 8]
call fcn.00415068
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
push 0x104
call fcn.00426290
lea eax, [esp + 0x10]
push eax
call fcn.00428900
mov edx, 0x42c02e
lea ecx, [esp + 0x10]
call fcn.00415068
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.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
push dword [esp + 0x24]
call fcn.00426290
lea eax, [esp + 0x14]
push eax
call fcn.00428900
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 0x40f96f
mov ebx, dword [esp + 4]
mov edi, dword [esp + 0x18]
add edi, edi
cmp ebx, edi
jge 0x40fab3
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
mov eax, dword [esp + 0x18]
mov ebx, eax
add ebx, dword [esp + 0xc]
push ebx
call fcn.004279d0
lea eax, [esp + 0x10]
push eax
call fcn.00428900
push 1
push dword [esp + 4]
push dword [esp + 0x14]
call fcn.004267a0
and eax, eax
je 0x40fa96
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
push 1
mov eax, 0x42c02e
push eax
push dword [esp + 0x14]
push dword [esp + 0x24]
call fcn.00426c30
call fcn.004153f2
add dword [esp], edx
call fcn.0040f222
call fcn.00415410
and eax, eax
je 0x40fa96
mov edx, dword [esp + 8]
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.00428990
mov edx, 0x42f9b6
push edx
call fcn.00428990
mov edx, dword [esp + 0x10]
push edx
call fcn.00428990
lea eax, [esp + 0xc]
push eax
call fcn.00428900
mov ebx, dword [esp + 4]
push dword [esp + 0xc]
call fcn.004263a0
mov edi, eax
inc edi
add edi, edi
add ebx, edi
mov dword [esp + 4], ebx
jmp 0x40f9cd
push dword [esp + 8]
call fcn.004263a0
mov ebx, eax
cmp ebx, 2
jle 0x40fb15
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
mov eax, 0x42c04e
push eax
push dword [esp + 0x14]
call fcn.00426880
lea eax, [esp + 0xc]
push eax
call fcn.00428900
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
mov eax, 0x42c04a
push eax
push dword [esp + 0x14]
call fcn.00426880
lea eax, [esp + 0xc]
push eax
call fcn.00428900
mov edx, dword [esp + 8]
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.00428990
pop eax
push eax
call fcn.004153e0
pop edx
add eax, edx
jmp 0x40fb3d
push dword [esp + 8]
call fcn.00428b30
push dword [esp]
call fcn.00428b30
push dword [esp + 0x10]
call fcn.00428b30
push dword [esp + 0xc]
call fcn.00428b30
add esp, 0x20
pop edi
pop ebx
ret 4
Function at 0x412307
Capabilities:
Get storage device properties

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x41230d
call fcn.00428aa0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00415060
mov byte [esp + 0x18], 0
push 0
push 3
push 0
push dword [esp + 0xc]
call fcn.00403dc8
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
cmp ebx, 0xffffffff
je 0x41238d
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 0x412399
push dword [esp]
call fcn.00428b30
add esp, 0x1c
pop ebx
ret 8
Function at 0x415981
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 0x415a19
push edi
push 0x433044
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x432678]
test edi, edi
je 0x4159ed
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4159e6
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x432678
call fcn.004287cb
pop ecx
pop ecx
jmp 0x4159e8
mov edi, dword [edi]
test edi, edi
jne 0x4159bd
pop ebx
mov eax, dword [0x4303ac]
mov esi, eax
inc eax
push 0x10
push 0x432678
mov dword [0x4303ac], eax
call fcn.0042880b
pop ecx
pop ecx
push 0x433044
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 0x416b60
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x416bb5
push dword [esp + 0x10]
push 0x416adf
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x43289c]
test esi, esi
je 0x416c0e
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x416bad
cmp byte [esi + 0x10], 0
je 0x416bad
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 0x416b89
jmp 0x416c0e
mov esi, dword [0x43289c]
test esi, esi
je 0x416c0e
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 0x416c07
cmp byte [esi + 0x11], 0
je 0x416be3
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x416bfa
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 0x43289c
call fcn.004287cb
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x416bc2
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x4173ce
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x433070]
call fcn.00427e98
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 0x4174ce
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x417424
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x41741c
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x417464
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x4174a6
push 0x22
pop edx
cmp cx, dx
je 0x417456
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x417446
xor ecx, ecx
cmp word [eax], cx
je 0x4174a6
mov ecx, eax
add eax, 2
jmp 0x4174a8
test dx, dx
je 0x4174ae
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x417456
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x41749c
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x4174a6
cmp cx, dx
je 0x417499
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x417489
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x41746e
jmp 0x417456
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x4174b0
xor edx, edx
cmp dword [ebp], ebx
jne 0x4174b9
test edi, edi
jne 0x4174d6
test edx, edx
je 0x4174be
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x417412
test edi, edi
jne 0x4174e7
mov eax, ebx
jmp 0x4174eb
test esi, esi
je 0x4174e7
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x4174eb
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x417e8a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x433090]
call fcn.00427e98
mov edi, dword [eax + 0x24]
test edi, edi
je 0x417f48
cmp dword [edi + 8], 1
je 0x417f48
mov edi, dword [edi + 0xc]
test edi, edi
je 0x417f48
mov al, byte [edi]
cmp al, 0x20
je 0x417ec3
cmp al, 9
jne 0x417ec6
inc edi
jmp 0x417eb9
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.00428d10
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x417f17
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 0x417f33
cmp cx, dx
je 0x417f33
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x417f2b
cmp cx, dx
jne 0x417f37
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x417f1e
push ebp
call sub.MSVCRT.dll_wcslen
pop ecx
sub ebx, eax
push ebx
call fcn.00428df0
jmp 0x417f17
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.00428ff0
Function at 0x418c86
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x4330c8]
call fcn.00428009
mov ebx, eax
test ebx, ebx
je 0x418cea
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x418caf
push dword [esp + 0xc]
push ebx
call eax
jmp 0x418cea
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.00428d10
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.00428df0
pop edi
pop esi
pop ebx
ret 8

Function at 0x41e1b7
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 0x41e32d
mov eax, dword [esp + 0x24]
dec eax
je 0x41e310
dec eax
jne 0x41e32d
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0041e170
pop ecx
test eax, eax
je 0x41e26e
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x41e231
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x41e30c
dec ebx
je 0x41e308
dec ebx
je 0x41e2e7
dec ebx
je 0x41e2a1
sub ebx, 4
jne 0x41e32d
test edi, edi
jne 0x41e32d
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x41e32d
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 0x41e231
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x41e22c
sub edi, 0
je 0x41e2d9
dec edi
je 0x41e2cb
dec edi
je 0x41e2bd
dec edi
jne 0x41e32d
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x41e32d
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x41e32d
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x41e32d
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x41e32d
sub edi, 0
je 0x41e304
dec edi
je 0x41e300
dec edi
jne 0x41e32d
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x41e32d
push 0x3c
jmp 0x41e32c
push 0x32
jmp 0x41e32c
push 0x14
jmp 0x41e32c
push 5
jmp 0x41e32c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41e32a
cmp eax, 0xa
je 0x41e326
cmp eax, 0x5a
jne 0x41e32d
push 0x28
jmp 0x41e32c
push 0x1e
jmp 0x41e32c
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x41eb99
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x4330d8]
call fcn.00428009
mov esi, eax
test esi, esi
je 0x41ec73
cmp dword [ebp + 0xc], 0
je 0x41ebe5
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x41ebd6
cmp dword [esi + 0x1c], 0
jne 0x41ebd6
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41ec73
test byte [ebp + 0x10], 3
je 0x41ec00
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0041fd96
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x41ec25
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 0x41ec39
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 0x41ec56
test ebx, ebx
je 0x41ec4a
push 8
jmp 0x41ec5c
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x41ec69
test ebx, ebx
je 0x41ec5f
push 3
pop ecx
jmp 0x41ec69
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 0x41faa2
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 0x41fb3a
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x41fb37
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x41fb37
lea eax, [esi - 1]
push eax
push dword [0x4330d8]
call fcn.00428009
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x41fb39
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x41fb2e
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x41fc21
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x41fb14
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x41fbe0
push eax
call esi
test al, al
jns 0x41fbe0
push 0x11
call esi
test al, al
js 0x41fbe0
push 0x10
call esi
test al, al
js 0x41fbe0
push 0x12
call esi
test al, al
js 0x41fbe0
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x41fbe0
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x41fbb4
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x41fbcb
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x41fc2b
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x41fc2b
test ebp, ebp
je 0x41fc04
push 0x11
call esi
test al, al
js 0x41fbfc
push 0x10
call esi
test al, al
js 0x41fbfc
push 0x12
call esi
test al, al
jns 0x41fc04
push 1
push ebp
call fcn.0041fc37
test ebx, ebx
je 0x41fc18
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x41fc2b
test edi, edi
je 0x41fc2b
mov eax, dword [edi + 8]
jmp 0x41fc2d
and dword [esp + 0x14], 0
jmp 0x41fb39
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x4201f8
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 0x420340
xor ecx, ecx
cmp word [eax], cx
je 0x420340
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 0x420251
cmp eax, 3
jne 0x42028b
cmp word [esp + 0xa], 0x3a
jne 0x42028b
cmp eax, 2
jne 0x42026f
lea eax, [esp + 8]
push 0x42b4c0
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 0x420340
push 0xfffffffffffffffe
pop edi
jmp 0x420340
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4202a0
cmp ax, bx
jne 0x4202aa
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x420293
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4202e9
test byte [esp + 0x21c], 0x10
je 0x4202d0
push 0xfffffffffffffffe
pop edi
jmp 0x4202e0
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x42033e
cmp word [esp + 0x10], bp
jne 0x4202f7
cmp word [esp + 0x12], bp
je 0x420316
cmp word [esp + 0x10], bx
jne 0x420305
cmp word [esp + 0x12], bx
je 0x420316
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x42033e
cmp word [esp + 0x12], ax
jne 0x42033e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x42032b
test al, 0x10
je 0x42033e
jmp 0x42033b
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x42033e
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 0x42034f
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x420378
test byte [esp + 8], 2
je 0x42036c
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 0x42037a
xor eax, eax
ret 8