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

Disassembly:
push ebx
push edi
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40ec6b
call fcn.00428890
push dword [esp + 0x2c]
call fcn.00415390
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00415060
mov dword [esp + 8], 0
push edx
call fcn.004286b0
pop edx
push eax
push edx
call fcn.004286b0
pop edx
push eax
push 0x104
call fcn.00426490
lea eax, [esp + 0x10]
push eax
call fcn.004286f0
lea eax, [esp + 0x10]
mov edx, 0x42c02e
push edx
push 3
push eax
call fcn.004287c0
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 0x40ecfe
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 0x40ed99
push edx
call fcn.004286b0
pop edx
push eax
push edx
call fcn.004286b0
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.004277c0
lea eax, [esp + 0x14]
push 3
push eax
call fcn.00428780
push dword [esp]
push edx
call fcn.004286b0
pop edx
push eax
lea edx, [esp + 0x18]
push edx
call fcn.004286b0
pop edx
push eax
push 3
push edx
call fcn.00428980
call fcn.00415372
add dword [esp], edx
call fcn.0040b40e
call fcn.004153a0
mov edx, eax
pop ecx
call fcn.004153b0
je 0x40ed8f
jmp 0x40ed99
inc dword [esp + 4]
jno 0x40ecfe
lea edx, [esp + 0x10]
push edx
call fcn.004286b0
pop edx
push eax
push 3
push edx
call fcn.00428980
pop eax
push eax
call fcn.00415360
pop edx
add eax, edx
jmp 0x40edc6
push dword [esp]
call fcn.00428920
push dword [esp + 0xc]
call fcn.00428920
push dword [esp + 0x18]
call fcn.00428920
add esp, 0x1c
pop edi
pop ebx
ret 4
Function at 0x40fdc3
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40fdca
call fcn.00428890
push dword [esp + 0x30]
call fcn.00415390
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.004286b0
pop edx
push eax
push edx
call fcn.004286b0
pop edx
push eax
push 0x104
call fcn.00426490
lea eax, [esp + 0x10]
push eax
call fcn.004286f0
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.004286b0
pop edx
push eax
push edx
call fcn.004286b0
pop edx
push eax
push dword [esp + 0x24]
call fcn.00426490
lea eax, [esp + 0x14]
push eax
call fcn.004286f0
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 0x40fe51
mov ebx, dword [esp + 4]
mov edi, dword [esp + 0x18]
add edi, edi
cmp ebx, edi
jge 0x40ff95
push edx
call fcn.004286b0
pop edx
push eax
push edx
call fcn.004286b0
pop edx
push eax
mov eax, dword [esp + 0x18]
mov ebx, eax
add ebx, dword [esp + 0xc]
push ebx
call fcn.004277c0
lea eax, [esp + 0x10]
push eax
call fcn.004286f0
push 1
push dword [esp + 4]
push dword [esp + 0x14]
call fcn.00426ac0
and eax, eax
je 0x40ff78
push edx
call fcn.004286b0
pop edx
push eax
push edx
call fcn.004286b0
pop edx
push eax
push edx
call fcn.004286b0
pop edx
push eax
push 1
mov eax, 0x42c02e
push eax
push dword [esp + 0x14]
push dword [esp + 0x24]
call fcn.00426580
call fcn.00415372
add dword [esp], edx
call fcn.0040f704
call fcn.00415390
and eax, eax
je 0x40ff78
mov edx, dword [esp + 8]
push edx
call fcn.004286b0
pop edx
push eax
push edx
call fcn.004287f0
mov edx, 0x42f808
push edx
call fcn.004287f0
mov edx, dword [esp + 0x10]
push edx
call fcn.004287f0
lea eax, [esp + 0xc]
push eax
call fcn.004286f0
mov ebx, dword [esp + 4]
push dword [esp + 0xc]
call fcn.004264e0
mov edi, eax
inc edi
add edi, edi
add ebx, edi
mov dword [esp + 4], ebx
jmp 0x40feaf
push dword [esp + 8]
call fcn.004264e0
mov ebx, eax
cmp ebx, 2
jle 0x40fff7
push edx
call fcn.004286b0
pop edx
push eax
push edx
call fcn.004286b0
pop edx
push eax
mov eax, 0x42c04e
push eax
push dword [esp + 0x14]
call fcn.004262a0
lea eax, [esp + 0xc]
push eax
call fcn.004286f0
push edx
call fcn.004286b0
pop edx
push eax
push edx
call fcn.004286b0
pop edx
push eax
mov eax, 0x42c04a
push eax
push dword [esp + 0x14]
call fcn.004262a0
lea eax, [esp + 0xc]
push eax
call fcn.004286f0
mov edx, dword [esp + 8]
push edx
call fcn.004286b0
pop edx
push eax
push edx
call fcn.004287f0
pop eax
push eax
call fcn.00415360
pop edx
add eax, edx
jmp 0x41001f
push dword [esp + 8]
call fcn.00428920
push dword [esp]
call fcn.00428920
push dword [esp + 0x10]
call fcn.00428920
push dword [esp + 0xc]
call fcn.00428920
add esp, 0x20
pop edi
pop ebx
ret 4
Function at 0x412ac2
Capabilities:
Get storage device properties

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x412ac8
call fcn.00428890
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.004038fe
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
cmp ebx, 0xffffffff
je 0x412b48
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 0x412b54
push dword [esp]
call fcn.00428920
add esp, 0x1c
pop ebx
ret 8
Function at 0x4158f1
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 0x415989
push edi
push 0x432d4c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x432374]
test edi, edi
je 0x41595d
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x415956
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x432374
call fcn.004285b5
pop ecx
pop ecx
jmp 0x415958
mov edi, dword [edi]
test edi, edi
jne 0x41592d
pop ebx
mov eax, dword [0x4301b4]
mov esi, eax
inc eax
push 0x10
push 0x432374
mov dword [0x4301b4], eax
call fcn.004285f5
pop ecx
pop ecx
push 0x432d4c
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 0x416b10
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x416b65
push dword [esp + 0x10]
push 0x416a8f
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x432594]
test esi, esi
je 0x416bbe
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x416b5d
cmp byte [esi + 0x10], 0
je 0x416b5d
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 0x416b39
jmp 0x416bbe
mov esi, dword [0x432594]
test esi, esi
je 0x416bbe
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 0x416bb7
cmp byte [esi + 0x11], 0
je 0x416b93
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x416baa
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 0x432594
call fcn.004285b5
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x416b72
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x4173bb
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x432d78]
call fcn.00427c88
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 0x4174bb
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x417411
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x417409
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x417451
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x417493
push 0x22
pop edx
cmp cx, dx
je 0x417443
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x417433
xor ecx, ecx
cmp word [eax], cx
je 0x417493
mov ecx, eax
add eax, 2
jmp 0x417495
test dx, dx
je 0x41749b
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x417443
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x417489
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x417493
cmp cx, dx
je 0x417486
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x417476
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x41745b
jmp 0x417443
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x41749d
xor edx, edx
cmp dword [ebp], ebx
jne 0x4174a6
test edi, edi
jne 0x4174c3
test edx, edx
je 0x4174ab
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x4173ff
test edi, edi
jne 0x4174d4
mov eax, ebx
jmp 0x4174d8
test esi, esi
je 0x4174d4
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x4174d8
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x417e77
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x432d98]
call fcn.00427c88
mov edi, dword [eax + 0x24]
test edi, edi
je 0x417f35
cmp dword [edi + 8], 1
je 0x417f35
mov edi, dword [edi + 0xc]
test edi, edi
je 0x417f35
mov al, byte [edi]
cmp al, 0x20
je 0x417eb0
cmp al, 9
jne 0x417eb3
inc edi
jmp 0x417ea6
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.00428b00
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x417f04
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 0x417f20
cmp cx, dx
je 0x417f20
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x417f18
cmp cx, dx
jne 0x417f24
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x417f0b
push ebp
call sub.MSVCRT.dll_wcslen
pop ecx
sub ebx, eax
push ebx
call fcn.00428be0
jmp 0x417f04
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.00428de0
Function at 0x418ba5
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x432dd0]
call fcn.00427df9
mov ebx, eax
test ebx, ebx
je 0x418c09
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x418bce
push dword [esp + 0xc]
push ebx
call eax
jmp 0x418c09
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.00428b00
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.00428be0
pop edi
pop esi
pop ebx
ret 8

Function at 0x41e106
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 0x41e27c
mov eax, dword [esp + 0x24]
dec eax
je 0x41e25f
dec eax
jne 0x41e27c
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0041e0bf
pop ecx
test eax, eax
je 0x41e1bd
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x41e180
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x41e25b
dec ebx
je 0x41e257
dec ebx
je 0x41e236
dec ebx
je 0x41e1f0
sub ebx, 4
jne 0x41e27c
test edi, edi
jne 0x41e27c
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x41e27c
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 0x41e180
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x41e17b
sub edi, 0
je 0x41e228
dec edi
je 0x41e21a
dec edi
je 0x41e20c
dec edi
jne 0x41e27c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x41e27c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x41e27c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x41e27c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x41e27c
sub edi, 0
je 0x41e253
dec edi
je 0x41e24f
dec edi
jne 0x41e27c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x41e27c
push 0x3c
jmp 0x41e27b
push 0x32
jmp 0x41e27b
push 0x14
jmp 0x41e27b
push 5
jmp 0x41e27b
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41e279
cmp eax, 0xa
je 0x41e275
cmp eax, 0x5a
jne 0x41e27c
push 0x28
jmp 0x41e27b
push 0x1e
jmp 0x41e27b
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x41eae8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x432de0]
call fcn.00427df9
mov esi, eax
test esi, esi
je 0x41ebc2
cmp dword [ebp + 0xc], 0
je 0x41eb34
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x41eb25
cmp dword [esi + 0x1c], 0
jne 0x41eb25
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41ebc2
test byte [ebp + 0x10], 3
je 0x41eb4f
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0041fcde
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x41eb74
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 0x41eb88
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 0x41eba5
test ebx, ebx
je 0x41eb99
push 8
jmp 0x41ebab
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x41ebb8
test ebx, ebx
je 0x41ebae
push 3
pop ecx
jmp 0x41ebb8
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 0x41f9ea
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 0x41fa82
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x41fa7f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x41fa7f
lea eax, [esi - 1]
push eax
push dword [0x432de0]
call fcn.00427df9
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x41fa81
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x41fa76
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x41fb69
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x41fa5c
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x41fb28
push eax
call esi
test al, al
jns 0x41fb28
push 0x11
call esi
test al, al
js 0x41fb28
push 0x10
call esi
test al, al
js 0x41fb28
push 0x12
call esi
test al, al
js 0x41fb28
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x41fb28
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x41fafc
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x41fb13
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x41fb73
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x41fb73
test ebp, ebp
je 0x41fb4c
push 0x11
call esi
test al, al
js 0x41fb44
push 0x10
call esi
test al, al
js 0x41fb44
push 0x12
call esi
test al, al
jns 0x41fb4c
push 1
push ebp
call fcn.0041fb7f
test ebx, ebx
je 0x41fb60
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x41fb73
test edi, edi
je 0x41fb73
mov eax, dword [edi + 8]
jmp 0x41fb75
and dword [esp + 0x14], 0
jmp 0x41fa81
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x4202ba
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 0x420402
xor ecx, ecx
cmp word [eax], cx
je 0x420402
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 0x420313
cmp eax, 3
jne 0x42034d
cmp word [esp + 0xa], 0x3a
jne 0x42034d
cmp eax, 2
jne 0x420331
lea eax, [esp + 8]
push 0x42b530
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 0x420402
push 0xfffffffffffffffe
pop edi
jmp 0x420402
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x420362
cmp ax, bx
jne 0x42036c
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x420355
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4203ab
test byte [esp + 0x21c], 0x10
je 0x420392
push 0xfffffffffffffffe
pop edi
jmp 0x4203a2
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x420400
cmp word [esp + 0x10], bp
jne 0x4203b9
cmp word [esp + 0x12], bp
je 0x4203d8
cmp word [esp + 0x10], bx
jne 0x4203c7
cmp word [esp + 0x12], bx
je 0x4203d8
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x420400
cmp word [esp + 0x12], ax
jne 0x420400
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4203ed
test al, 0x10
je 0x420400
jmp 0x4203fd
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x420400
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 0x420411
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x42043a
test byte [esp + 8], 2
je 0x42042e
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 0x42043c
xor eax, eax
ret 8
Function at 0x42077b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4207f3
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4207d4
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4207d1
cmp ecx, 0x5c
je 0x4207d1
cmp ecx, 0x2f
jne 0x4207de
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4207be
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4207f5
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4207fb
Capabilities:
Copy file

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

Function at 0x4208d4
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x432c3c]
push esi
test eax, eax
jne 0x4208e5
push fcn.004209ed
push 0x10
push 0x258
call fcn.00427ecc
mov dword [0x432c3c], eax
push dword [esp + 0xc]
push eax
call fcn.00427e38
mov esi, eax
test esi, esi
je 0x4209e6
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x420907
mov edi, 0x42b054
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x420917
xor eax, eax
cmp word [ebx], ax
jne 0x42091c
mov ebx, 0x42b534
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 [0x43214c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4209cd
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x42097d
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x420981
push 0x42b530
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x420981
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 0x4209a5
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x4209bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4209b9
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x43214c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x4209e4
cmp dword [esp + 0x14], 0xffffffff
je 0x4209d8
mov esi, dword [esp + 0x14]
push esi
push dword [0x432c3c]
call fcn.00427daa
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc