joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409583
Capabilities:
Get disk information

Disassembly:
push ebp
push ebx
push edi
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40958b
call fcn.00426dd0
push edx
call fcn.00426bf0
pop edx
push eax
push edx
call fcn.00426bf0
pop edx
push eax
push 0x104
call fcn.004249d0
lea eax, [esp + 0x10]
push eax
call fcn.00426c30
lea eax, [esp + 0x10]
mov edx, 0x42a02e
push edx
push 3
push eax
call fcn.00426d00
lea eax, [esp + 0x18]
mov edx, 0x42a02e
push edx
push 7
push eax
call fcn.00426d00
mov dword [esp + 0x28], 0
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0xc]
push eax
push 0x104
call sub.KERNEL32.dll_GetLogicalDriveStringsW
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
jmp 0x409615
mov ebx, dword [esp + 0x28]
mov eax, ebx
mov ecx, 4
cdq
idiv ecx
mov ebx, eax
dec ebx
cmp ebx, dword [esp + 0x2c]
jl 0x409718
push 0
push 0xc
lea eax, [esp + 8]
push eax
call fcn.00425d50
push edx
call fcn.00426bf0
pop edx
push eax
push edx
call fcn.00426bf0
pop edx
push eax
mov eax, dword [esp + 0x14]
mov ebx, eax
mov edi, dword [esp + 0x34]
shl edi, 2
add edi, edi
add ebx, edi
push ebx
call fcn.00425d00
lea eax, [esp + 0x14]
push 3
push eax
call fcn.00426cc0
push edx
call fcn.00426bf0
pop edx
push eax
mov edx, str.._
push edx
call fcn.00426d30
lea edx, [esp + 0x14]
push 3
push edx
call fcn.00426ec0
lea eax, [esp + 0x1c]
push 7
push eax
call fcn.00426cc0
push edx
call fcn.00426bf0
pop edx
push eax
lea eax, [esp + 4]
push eax
lea edx, [esp + 0x20]
push edx
call fcn.00426bf0
pop edx
push eax
push 7
push edx
call fcn.00426ec0
call fcn.00414322
add dword [esp], edx
call fcn.00409950
call fcn.00414340
and eax, eax
je 0x40970e
lea ebp, [esp]
mov ebx, dword [ebp + 4]
cmp ebx, dword [esp + 0x44]
jne 0x409701
mov ebx, dword [ebp + 8]
cmp ebx, dword [esp + 0x48]
jne 0x409701
mov eax, 1
jmp 0x409703
xor eax, eax
and eax, eax
je 0x40970e
mov byte [esp + 0x30], 1
jmp 0x409718
inc dword [esp + 0x2c]
jno 0x409615
movsx eax, byte [esp + 0x30]
movsx eax, al
jmp 0x409724
push dword [esp + 0xc]
call fcn.00426e60
add esp, 0x34
pop edi
pop ebx
pop ebp
ret 8

Function at 0x409950
Capabilities:
Get disk information via ioctl

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.00426dd0
mov edx, dword [esp + 0x18]
lea ecx, [esp]
call fcn.00414060
mov byte [esp + 0xc], 0
push 0
push 3
push 0
push dword [esp + 0xc]
call fcn.004037bd
mov dword [esp + 8], eax
mov ebx, dword [esp + 8]
cmp ebx, 0xffffffff
je 0x4099cc
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
push eax
pop eax
mov byte [esp + 0xc], al
push dword [esp + 8]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp + 0xc]
movsx eax, al
jmp 0x4099d8
push dword [esp]
call fcn.00426e60
add esp, 0x10
pop ebx
ret 8
Function at 0x40ac6f
Capabilities:
Get disk information

Disassembly:
mov edx, 0x83
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40ac74
call fcn.00426dd0
push dword [esp + 0x214]
call fcn.00414340
mov edx, dword [esp + 0x210]
lea ecx, [esp]
call fcn.00414060
push edx
call fcn.00426bf0
pop edx
push eax
push edx
call fcn.00426bf0
pop edx
push eax
push 0x104
call fcn.004249d0
lea eax, [esp + 8]
push 0x104
push eax
call fcn.00426cc0
push edx
call fcn.00426bf0
pop edx
push eax
push edx
call fcn.00426bf0
pop edx
push eax
mov eax, 0x42a180
push eax
mov eax, 0x42c064
push eax
push dword [esp + 0x10]
call fcn.00424e20
lea eax, [esp + 4]
push eax
call fcn.00426c30
push edx
call fcn.00426bf0
pop edx
push eax
push edx
call fcn.00426bf0
pop edx
push eax
mov eax, 0x42a42c
push eax
mov eax, 0x42cbb2
push eax
push dword [esp + 0x10]
call fcn.00424e20
lea eax, [esp + 4]
push eax
call fcn.00426c30
push edx
call fcn.00426bf0
pop edx
push eax
push edx
call fcn.00426bf0
pop edx
push eax
mov eax, 0x42a02e
push eax
mov eax, str.__
push eax
push dword [esp + 0x10]
call fcn.00424e20
lea eax, [esp + 4]
push eax
call fcn.00426c30
push edx
call fcn.00426bf0
pop edx
push eax
push edx
call fcn.00426bf0
pop edx
push eax
mov eax, 0x42a02e
push eax
mov eax, str.._
push eax
push dword [esp + 0x10]
call fcn.00424e20
lea eax, [esp + 4]
push eax
call fcn.00426c30
push 0x104
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_QueryDosDeviceW
push edx
call fcn.00426bf0
pop edx
push eax
push edx
call fcn.00426bf0
pop edx
push eax
lea edx, [esp + 0xc]
push edx
call fcn.00426bf0
pop edx
push eax
push 0x104
push edx
call fcn.00426ec0
call fcn.00414322
add dword [esp], edx
call fcn.004247c0
pop eax
push eax
call fcn.00414310
pop edx
add eax, edx
jmp 0x40ade3
push dword [esp]
call fcn.00426e60
add esp, 0x20c
ret 4
Function at 0x40e398
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40e39f
call fcn.00426dd0
push dword [esp + 0x2c]
call fcn.00414340
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00414060
mov dword [esp + 8], 0
push edx
call fcn.00426bf0
pop edx
push eax
push edx
call fcn.00426bf0
pop edx
push eax
push 0x104
call fcn.004249d0
lea eax, [esp + 0x10]
push eax
call fcn.00426c30
lea eax, [esp + 0x10]
mov edx, 0x42a02e
push edx
push 3
push eax
call fcn.00426d00
mov edx, 0x42a02e
lea ecx, [esp + 0x18]
call fcn.00414068
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 0x40e432
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 0x40e4cd
push edx
call fcn.00426bf0
pop edx
push eax
push edx
call fcn.00426bf0
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.00425d00
lea eax, [esp + 0x14]
push 3
push eax
call fcn.00426cc0
push dword [esp]
push edx
call fcn.00426bf0
pop edx
push eax
lea edx, [esp + 0x18]
push edx
call fcn.00426bf0
pop edx
push eax
push 3
push edx
call fcn.00426ec0
call fcn.00414322
add dword [esp], edx
call fcn.0040ac6f
call fcn.00414350
mov edx, eax
pop ecx
call fcn.00414360
je 0x40e4c3
jmp 0x40e4cd
inc dword [esp + 4]
jno 0x40e432
lea edx, [esp + 0x10]
push edx
call fcn.00426bf0
pop edx
push eax
push 3
push edx
call fcn.00426ec0
pop eax
push eax
call fcn.00414310
pop edx
add eax, edx
jmp 0x40e4fa
push dword [esp]
call fcn.00426e60
push dword [esp + 0xc]
call fcn.00426e60
push dword [esp + 0x18]
call fcn.00426e60
add esp, 0x1c
pop edi
pop ebx
ret 4
Function at 0x40f51a
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40f521
call fcn.00426dd0
push dword [esp + 0x30]
call fcn.00414340
mov edx, dword [esp + 0x2c]
lea ecx, [esp]
call fcn.00414060
mov dword [esp + 4], 0
mov edx, 0x42a02e
lea ecx, [esp + 8]
call fcn.00414068
push edx
call fcn.00426bf0
pop edx
push eax
push edx
call fcn.00426bf0
pop edx
push eax
push 0x104
call fcn.004249d0
lea eax, [esp + 0x10]
push eax
call fcn.00426c30
mov edx, 0x42a02e
lea ecx, [esp + 0x10]
call fcn.00414068
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
push 0
call sub.KERNEL32.dll_SetLastError
mov ebx, dword [esp + 0x1c]
add ebx, 0x6400
mov dword [esp + 0x1c], ebx
push edx
call fcn.00426bf0
pop edx
push eax
push edx
call fcn.00426bf0
pop edx
push eax
push dword [esp + 0x24]
call fcn.004249d0
lea eax, [esp + 0x14]
push eax
call fcn.00426c30
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 0x40f5a8
mov ebx, dword [esp + 4]
mov edi, dword [esp + 0x18]
add edi, edi
cmp ebx, edi
jge 0x40f6f2
push edx
call fcn.00426bf0
pop edx
push eax
push edx
call fcn.00426bf0
pop edx
push eax
mov eax, dword [esp + 0x18]
mov ebx, eax
add ebx, dword [esp + 0xc]
push ebx
call fcn.00425d00
lea eax, [esp + 0x10]
push eax
call fcn.00426c30
push 1
push dword [esp + 4]
push dword [esp + 0x14]
call fcn.00425000
and eax, eax
je 0x40f6d5
push edx
call fcn.00426bf0
pop edx
push eax
push edx
call fcn.00426bf0
pop edx
push eax
push edx
call fcn.00426bf0
pop edx
push eax
push 1
mov eax, 0x42a02e
push eax
push dword [esp + 0x14]
push dword [esp + 0x24]
call fcn.00424ac0
call fcn.00414322
add dword [esp], edx
call fcn.0040ee5b
call fcn.00414340
and eax, eax
je 0x40f6d5
mov edx, dword [esp + 8]
push edx
call fcn.00426bf0
pop edx
push eax
push edx
call fcn.00426d30
mov edx, 0x42ccda
push edx
call fcn.00426d30
mov edx, dword [esp + 0x10]
push edx
call fcn.00426d30
lea eax, [esp + 0xc]
push eax
call fcn.00426c30
mov ebx, dword [esp + 4]
push dword [esp + 0xc]
call fcn.00424a20
mov edi, eax
inc edi
add edi, edi
add ebx, edi
mov dword [esp + 4], ebx
jmp 0x40f60c
push dword [esp + 8]
call fcn.00424a20
mov ebx, eax
cmp ebx, 2
jle 0x40f754
push edx
call fcn.00426bf0
pop edx
push eax
push edx
call fcn.00426bf0
pop edx
push eax
mov eax, 0x42a04e
push eax
push dword [esp + 0x14]
call fcn.004247e0
lea eax, [esp + 0xc]
push eax
call fcn.00426c30
push edx
call fcn.00426bf0
pop edx
push eax
push edx
call fcn.00426bf0
pop edx
push eax
mov eax, 0x42a04a
push eax
push dword [esp + 0x14]
call fcn.004247e0
lea eax, [esp + 0xc]
push eax
call fcn.00426c30
mov edx, dword [esp + 8]
push edx
call fcn.00426bf0
pop edx
push eax
push edx
call fcn.00426d30
pop eax
push eax
call fcn.00414310
pop edx
add eax, edx
jmp 0x40f77c
push dword [esp + 8]
call fcn.00426e60
push dword [esp]
call fcn.00426e60
push dword [esp + 0x10]
call fcn.00426e60
push dword [esp + 0xc]
call fcn.00426e60
add esp, 0x20
pop edi
pop ebx
ret 4
Function at 0x411fed
Capabilities:
Get storage device properties

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x411ff3
call fcn.00426dd0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00414060
mov byte [esp + 0x18], 0
push 0
push 3
push 0
push dword [esp + 0xc]
call fcn.004037bd
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
cmp ebx, 0xffffffff
je 0x412075
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
push eax
pop eax
mov byte [esp + 0x18], al
push dword [esp + 0x14]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp + 0x18]
movsx eax, al
jmp 0x412081
push dword [esp]
call fcn.00426e60
add esp, 0x1c
pop ebx
ret 8
Function at 0x4148a1
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 0x414939
push edi
push 0x4300f4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x42f71c]
test edi, edi
je 0x41490d
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x414906
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x42f71c
call fcn.00426af5
pop ecx
pop ecx
jmp 0x414908
mov edi, dword [edi]
test edi, edi
jne 0x4148dd
pop ebx
mov eax, dword [0x42d68c]
mov esi, eax
inc eax
push 0x10
push 0x42f71c
mov dword [0x42d68c], eax
call fcn.00426b35
pop ecx
pop ecx
push 0x4300f4
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 0x415a6d
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x415ac2
push dword [esp + 0x10]
push 0x4159ec
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x42f93c]
test esi, esi
je 0x415b1b
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x415aba
cmp byte [esi + 0x10], 0
je 0x415aba
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 0x415a96
jmp 0x415b1b
mov esi, dword [0x42f93c]
test esi, esi
je 0x415b1b
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 0x415b14
cmp byte [esi + 0x11], 0
je 0x415af0
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x415b07
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 0x42f93c
call fcn.00426af5
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x415acf
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x416318
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x430120]
call fcn.004261c8
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 0x416418
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x41636e
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x416366
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x4163ae
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x4163f0
push 0x22
pop edx
cmp cx, dx
je 0x4163a0
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x416390
xor ecx, ecx
cmp word [eax], cx
je 0x4163f0
mov ecx, eax
add eax, 2
jmp 0x4163f2
test dx, dx
je 0x4163f8
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x4163a0
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x4163e6
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x4163f0
cmp cx, dx
je 0x4163e3
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4163d3
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x4163b8
jmp 0x4163a0
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x4163fa
xor edx, edx
cmp dword [ebp], ebx
jne 0x416403
test edi, edi
jne 0x416420
test edx, edx
je 0x416408
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x41635c
test edi, edi
jne 0x416431
mov eax, ebx
jmp 0x416435
test esi, esi
je 0x416431
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x416435
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x416dd4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x430140]
call fcn.004261c8
mov edi, dword [eax + 0x24]
test edi, edi
je 0x416e92
cmp dword [edi + 8], 1
je 0x416e92
mov edi, dword [edi + 0xc]
test edi, edi
je 0x416e92
mov al, byte [edi]
cmp al, 0x20
je 0x416e0d
cmp al, 9
jne 0x416e10
inc edi
jmp 0x416e03
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.00427040
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x416e61
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 0x416e7d
cmp cx, dx
je 0x416e7d
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x416e75
cmp cx, dx
jne 0x416e81
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x416e68
push ebp
call sub.MSVCRT.dll_wcslen
pop ecx
sub ebx, eax
push ebx
call fcn.00427120
jmp 0x416e61
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.00427320
Function at 0x417ae9
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x430178]
call fcn.00426339
mov ebx, eax
test ebx, ebx
je 0x417b4d
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x417b12
push dword [esp + 0xc]
push ebx
call eax
jmp 0x417b4d
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.00427040
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.00427120
pop edi
pop esi
pop ebx
ret 8

Function at 0x41cf00
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 0x41d076
mov eax, dword [esp + 0x24]
dec eax
je 0x41d059
dec eax
jne 0x41d076
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0041ceb9
pop ecx
test eax, eax
je 0x41cfb7
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x41cf7a
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x41d055
dec ebx
je 0x41d051
dec ebx
je 0x41d030
dec ebx
je 0x41cfea
sub ebx, 4
jne 0x41d076
test edi, edi
jne 0x41d076
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x41d076
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 0x41cf7a
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x41cf75
sub edi, 0
je 0x41d022
dec edi
je 0x41d014
dec edi
je 0x41d006
dec edi
jne 0x41d076
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x41d076
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x41d076
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x41d076
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x41d076
sub edi, 0
je 0x41d04d
dec edi
je 0x41d049
dec edi
jne 0x41d076
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x41d076
push 0x3c
jmp 0x41d075
push 0x32
jmp 0x41d075
push 0x14
jmp 0x41d075
push 5
jmp 0x41d075
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41d073
cmp eax, 0xa
je 0x41d06f
cmp eax, 0x5a
jne 0x41d076
push 0x28
jmp 0x41d075
push 0x1e
jmp 0x41d075
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x41d865
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x430188]
call fcn.00426339
mov esi, eax
test esi, esi
je 0x41d93f
cmp dword [ebp + 0xc], 0
je 0x41d8b1
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x41d8a2
cmp dword [esi + 0x1c], 0
jne 0x41d8a2
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41d93f
test byte [ebp + 0x10], 3
je 0x41d8cc
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0041e846
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x41d8f1
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 0x41d905
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 0x41d922
test ebx, ebx
je 0x41d916
push 8
jmp 0x41d928
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x41d935
test ebx, ebx
je 0x41d92b
push 3
pop ecx
jmp 0x41d935
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 0x41e472
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 0x41e50a
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x41e507
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x41e507
lea eax, [esi - 1]
push eax
push dword [0x430188]
call fcn.00426339
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x41e509
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x41e4fe
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x41e5f1
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x41e4e4
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x41e5b0
push eax
call esi
test al, al
jns 0x41e5b0
push 0x11
call esi
test al, al
js 0x41e5b0
push 0x10
call esi
test al, al
js 0x41e5b0
push 0x12
call esi
test al, al
js 0x41e5b0
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x41e5b0
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x41e584
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x41e59b
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x41e5fb
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x41e5fb
test ebp, ebp
je 0x41e5d4
push 0x11
call esi
test al, al
js 0x41e5cc
push 0x10
call esi
test al, al
js 0x41e5cc
push 0x12
call esi
test al, al
jns 0x41e5d4
push 1
push ebp
call fcn.0041e607
test ebx, ebx
je 0x41e5e8
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x41e5fb
test edi, edi
je 0x41e5fb
mov eax, dword [edi + 8]
jmp 0x41e5fd
and dword [esp + 0x14], 0
jmp 0x41e509
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x41ee22
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 0x41ef6a
xor ecx, ecx
cmp word [eax], cx
je 0x41ef6a
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 0x41ee7b
cmp eax, 3
jne 0x41eeb5
cmp word [esp + 0xa], 0x3a
jne 0x41eeb5
cmp eax, 2
jne 0x41ee99
lea eax, [esp + 8]
push 0x429530
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 0x41ef6a
push 0xfffffffffffffffe
pop edi
jmp 0x41ef6a
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x41eeca
cmp ax, bx
jne 0x41eed4
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x41eebd
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x41ef13
test byte [esp + 0x21c], 0x10
je 0x41eefa
push 0xfffffffffffffffe
pop edi
jmp 0x41ef0a
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41ef68
cmp word [esp + 0x10], bp
jne 0x41ef21
cmp word [esp + 0x12], bp
je 0x41ef40
cmp word [esp + 0x10], bx
jne 0x41ef2f
cmp word [esp + 0x12], bx
je 0x41ef40
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x41ef68
cmp word [esp + 0x12], ax
jne 0x41ef68
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x41ef55
test al, 0x10
je 0x41ef68
jmp 0x41ef65
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x41ef68
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 0x41ef79
Capabilities:
Delete file
Set file attributes

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