joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b45
Capabilities:
Set registry value

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, str.Drive_shellChkDskGui
push eax
push 0x80000000
call sub.ADVAPI32.DLL_RegCreateKeyExW
mov ebx, eax
and ebx, ebx
jne 0x402c30
mov edx, str.ChkDskGui
lea ecx, [esp + 8]
call fcn.00405008
push 0x19
push dword [esp + 0xc]
call fcn.004106e0
push eax
mov eax, dword [esp + 0xc]
push eax
push 1
push 0
mov eax, 0x416026
push eax
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegSetValueExW
push dword [0x4199cc]
mov edx, 0x416080
push edx
call fcn.00413260
push dword [0x4199cc]
push dword [0x4199cc]
call fcn.0040564c
pop eax
mov edx, 0x416080
push edx
call fcn.00413260
lea eax, [esp + 0xc]
push eax
call fcn.004131e0
push 0x19
push dword [esp + 0xc]
call fcn.004106e0
push eax
mov eax, dword [esp + 0xc]
push eax
push 1
push 0
mov eax, str.Icon
push eax
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegSetValueExW
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, 0x416c48
push eax
push 0x80000000
call sub.ADVAPI32.DLL_RegCreateKeyExW
mov ebx, eax
and ebx, ebx
jne 0x402cd6
push dword [0x4199cc]
mov edx, 0x416080
push edx
call fcn.00413260
push dword [0x4199cc]
push dword [0x4199cc]
call fcn.0040564c
pop eax
mov edx, str.____1_
push edx
call fcn.00413260
lea eax, [esp + 0xc]
push eax
call fcn.004131e0
push 0x19
push dword [esp + 0xc]
call fcn.004106e0
push eax
mov eax, dword [esp + 0xc]
push eax
push 1
push 0
mov eax, 0x416026
push eax
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegSetValueExW
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
xor eax, eax
push dword [esp + 8]
call fcn.004132c0
add esp, 0xc
pop ebx
ret

Function at 0x402db0
Capabilities:
Set registry value

Disassembly:
push ebx
xor eax, eax
push eax
push eax
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.00405000
lea eax, [esp + 4]
push eax
push 0x20006
push 0
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegedit
push eax
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
mov ebx, eax
and ebx, ebx
jne 0x402e55
push 0x19
push dword [esp + 4]
call fcn.004106e0
push eax
mov eax, dword [esp + 4]
push eax
push 1
push 0
mov eax, str.LastKey
push eax
push dword [esp + 0x18]
call sub.ADVAPI32.DLL_RegSetValueExW
push dword [esp + 4]
call sub.ADVAPI32.DLL_RegCloseKey
push 0
mov eax, str.RegEdit_RegEdit
push eax
push 0
push 0
call sub.USER32.DLL_FindWindowExW
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x402e4a
push dword [esp + 4]
call fcn.00402e66
mov eax, str.regedit.exe
push eax
call fcn.00405dfd
xor eax, eax
push dword [esp]
call fcn.004132c0
add esp, 8
pop ebx
ret 4
Function at 0x402e66
Capabilities:
Terminate process

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 8]
push eax
push dword [esp + 0x18]
call sub.USER32.DLL_GetWindowThreadProcessId
push dword [esp + 8]
push 0
push 1
call sub.KERNEL32.dll_OpenProcess
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
je 0x402eb1
push 1
push dword [esp + 4]
call sub.KERNEL32.dll_TerminateProcess
mov dword [esp + 4], eax
push dword [esp]
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [esp + 4]
jmp 0x402eb9
add esp, 0xc
pop ebx
ret 4

Function at 0x402ec0
Capabilities:
Get disk information

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetLogicalDrives
mov dword [esp + 4], eax
push dword [0x4194d8]
pop eax
mov dword [esp + 8], eax
jmp 0x402ee5
mov eax, 0x19
cmp eax, dword [esp + 8]
jl 0x402f7f
mov ebx, dword [esp + 4]
mov ecx, dword [esp + 8]
sar ebx, cl
and ebx, 1
and ebx, ebx
je 0x402f75
push dword [0x4199cc]
push dword [0x4199cc]
push dword [0x4199cc]
mov ebx, dword [esp + 0x14]
add ebx, 0x41
push ebx
call fcn.004109e0
mov edx, dword [0x417b40]
add dword [esp], edx
call fcn.00404659
lea eax, [esp + 0x10]
push eax
call fcn.004131e0
push dword [esp + 0xc]
mov edx, 0x4160c6
pop ecx
call fcn.00405110
jne 0x402f75
push dword [esp]
call fcn.0040cde6
mov edx, dword [esp + 0xc]
push dword [0x4199cc]
push edx
call fcn.00413260
mov eax, dword [esp + 4]
mov ebp, dword [eax + 8]
lea eax, [ebp + 8]
push eax
call fcn.004131e0
inc dword [esp + 8]
jno 0x402ee5
xor eax, eax
push dword [esp + 0xc]
call fcn.004132c0
add esp, 0x10
pop ebx
pop ebp
ret 4
Function at 0x40412e
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x404134
mov eax, dword [esp + 0x28]
mov dword [0x4199cc], eax
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00405000
mov edx, 0x416e62
lea ecx, [esp + 0x14]
call fcn.00405008
push dword [0x4199cc]
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0
push dword [0x4199cc]
mov edx, 0x416bf8
push edx
call fcn.00413260
mov edx, dword [esp + 0x20]
push edx
call fcn.00413260
mov edx, dword [0x417b40]
add dword [esp], edx
call sub.KERNEL32.dll_CreateFileW
pop dword [0x4199cc]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
je 0x404247
push 0
lea eax, [esp + 0x14]
push eax
push 0xc
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x2d1080
push dword [esp + 0x34]
call sub.KERNEL32.dll_DeviceIoControl
and eax, eax
je 0x40423e
push dword [0x4199cc]
push dword [0x4199cc]
lea ebp, [esp + 0xc]
mov eax, dword [ebp + 4]
cdq
push edx
push eax
call fcn.00410a30
mov edx, 0x416136
push edx
call fcn.00413260
push dword [0x4199cc]
push dword [0x4199cc]
mov eax, dword [ebp + 8]
cdq
push edx
push eax
call fcn.00410a30
pop eax
lea eax, [esp + 0x18]
push eax
call fcn.004131e0
push dword [esp + 0x18]
call sub.KERNEL32.dll_CloseHandle
mov edx, dword [esp + 0x14]
push dword [0x4199cc]
push edx
call fcn.00413260
pop eax
add eax, dword [0x417b40]
jmp 0x404270
push dword [esp]
call fcn.004132c0
push dword [esp + 0x14]
call fcn.004132c0
add esp, 0x1c
pop ebp
ret 4
Function at 0x40433e
Capabilities:
Find taskbar

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push dword [0x4199cc]
push dword [esp + 0x18]
call fcn.00403b34
lea eax, [esp + 4]
push eax
call fcn.004131e0
mov edx, dword [esp]
xor ecx, ecx
call fcn.00405110
jne 0x404370
mov eax, 1
jmp 0x404372
xor eax, eax
and eax, eax
je 0x40437a
xor eax, eax
jmp 0x40437f
mov eax, 1
and eax, eax
je 0x404388
jmp 0x4044f5
push dword [0x4199cc]
mov edx, dword [0x4194e4]
push dword [0x4199cc]
push edx
call fcn.00413260
mov edx, str.__c__
push edx
call fcn.00413260
mov edx, dword [esp + 8]
push edx
call fcn.00413260
mov edx, str._set__p_Ok___
push edx
call fcn.00413260
mov edx, dword [0x417b40]
add dword [esp], edx
call fcn.004130d8
pop dword [0x4199cc]
mov eax, 0x416026
push eax
mov eax, str.Shell_TrayWnd
push eax
call sub.USER32.DLL_FindWindowW
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x40440a
push 0
push 0x191
push 0x111
push dword [esp + 0x10]
call sub.USER32.DLL_SendMessageW
jmp 0x404421
mov eax, 0x416026
push eax
mov eax, str.SHELL32.DLL_61
push eax
mov eax, str.RUNDLL32
push eax
call fcn.0040589e
mov dword [esp + 8], 0
mov eax, 0x416ad2
push eax
mov eax, str.32770
push eax
push 0
push 0
call sub.USER32.DLL_FindWindowExW
mov dword [esp + 4], eax
push 0x3c
call fcn.0040a4fd
mov ebx, dword [esp + 8]
inc ebx
mov dword [esp + 8], ebx
mov ebx, dword [esp + 8]
cmp ebx, 0x1e
jle 0x404466
jmp 0x40446d
cmp dword [esp + 4], 0
je 0x404429
cmp dword [esp + 4], 0
je 0x4044f3
push 0
mov eax, 0x416d48
push eax
push 0
push dword [esp + 0x10]
call sub.USER32.DLL_FindWindowExW
mov dword [esp + 4], eax
push dword [0x4199cc]
mov edx, dword [0x4194e4]
push dword [0x4199cc]
push edx
call fcn.00413260
mov edx, str.__c__
push edx
call fcn.00413260
mov edx, dword [esp + 8]
push edx
call fcn.00413260
mov edx, str._set__p_Ok___
push edx
call fcn.00413260
add dword [0x4199cc], 2
push 0
push 0xc
push dword [esp + 0x14]
mov edx, dword [0x417b40]
add dword [esp + 0xc], edx
call sub.USER32.DLL_SendMessageW
pop dword [0x4199cc]
xor eax, eax
push dword [esp]
call fcn.004132c0
add esp, 0xc
pop ebx
ret 4
Function at 0x40553c
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x405591
push dword [esp + 0x10]
push 0x4054bb
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x419588]
test esi, esi
je 0x4055ea
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x405589
cmp byte [esi + 0x10], 0
je 0x405589
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 0x405565
jmp 0x4055ea
mov esi, dword [0x419588]
test esi, esi
je 0x4055ea
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 0x4055e3
cmp byte [esi + 0x11], 0
je 0x4055bf
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x4055d6
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 0x419588
call fcn.00412da9
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40559e
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x4056ee
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x4199d8]
call fcn.004125d6
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 0x4057ee
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x405744
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x40573c
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x405784
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x4057c6
push 0x22
pop edx
cmp cx, dx
je 0x405776
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x405766
xor ecx, ecx
cmp word [eax], cx
je 0x4057c6
mov ecx, eax
add eax, 2
jmp 0x4057c8
test dx, dx
je 0x4057ce
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x405776
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x4057bc
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x4057c6
cmp cx, dx
je 0x4057b9
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4057a9
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x40578e
jmp 0x405776
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x4057d0
xor edx, edx
cmp dword [ebp], ebx
jne 0x4057d9
test edi, edi
jne 0x4057f6
test edx, edx
je 0x4057de
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x405732
test edi, edi
jne 0x405807
mov eax, ebx
jmp 0x40580b
test esi, esi
je 0x405807
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x40580b
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x405e3a
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x405e8e
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405e7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x405e88
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x405e4d
jmp 0x405e8c
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc
Function at 0x408d18
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x419a10]
call fcn.004125d6
xor ebx, ebx
mov ebp, eax
cmp dword [0x419710], ebx
jne 0x408dac
mov esi, 0xa4
push esi
push ebx
push 0x419718
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x41971c], esi
mov esi, dword [sym.imp.USER32.DLL_LoadCursorW]
mov dword [0x419718], 0xa
mov dword [0x419720], 0x4088ad
push 0x7f89
push ebx
mov dword [0x419790], 0x40a236
mov dword [0x419794], 0x40a210
mov dword [0x419724], 0x4088cc
mov dword [0x4197a8], 0x4088ec
call esi
mov dword [0x419710], eax
test eax, eax
jne 0x408dac
push 0x7f00
push ebx
call esi
mov dword [0x419710], eax
push ebx
push dword [0x4194c8]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40000000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.DLL_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x408e58
push edi
push dword [esp + 0x14]
push dword [0x419a2c]
call fcn.00412667
mov edi, eax
push 0x14
push 0
or dword [edi + 0x10], 0xffffffff
and dword [edi + 0x14], 0
push dword [0x4194c4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x419718
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.0040a17f
push 0x4089d2
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.DLL_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20

Function at 0x4091f3
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x419a2c]
call fcn.0041263f
mov ebx, eax
test ebx, ebx
je 0x409257
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x40921c
push dword [esp + 0xc]
push ebx
call eax
jmp 0x409257
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.004133f0
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.00413470
pop edi
pop esi
pop ebx
ret 8
Function at 0x40a398
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
mov esi, 0xc8
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40a4f0
mov eax, dword [esp + 0x20]
dec eax
je 0x40a4d3
dec eax
jne 0x40a4f0
lea eax, [esp + 0x124]
xor ebp, ebp
push eax
call fcn.0040a351
pop ecx
test eax, eax
je 0x40a404
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp byte [esp + 0x23e], 1
jmp 0x40a431
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40a436
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x35a], 1
jne 0x40a436
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x40a4cf
dec ebx
je 0x40a4cb
dec ebx
je 0x40a4aa
dec ebx
je 0x40a464
sub ebx, 4
jne 0x40a4f0
test edi, edi
jne 0x40a4f0
push 0x6e
jmp 0x40a4ef
sub edi, 0
je 0x40a49c
dec edi
je 0x40a48e
dec edi
je 0x40a480
dec edi
jne 0x40a4f0
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x40a4f0
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x40a4f0
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x40a4f0
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x40a4f0
sub edi, 0
je 0x40a4c7
dec edi
je 0x40a4c3
dec edi
jne 0x40a4f0
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x40a4f0
push 0x3c
jmp 0x40a4ef
push 0x32
jmp 0x40a4ef
push 0x14
jmp 0x40a4ef
push 5
jmp 0x40a4ef
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40a4ed
cmp eax, 0xa
je 0x40a4e9
cmp eax, 0x5a
jne 0x40a4f0
push 0x28
jmp 0x40a4ef
push 0x1e
jmp 0x40a4ef
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x40b702
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x40b77c
push 9
call esi
test al, al
jns 0x40b77c
push 0x11
call esi
test al, al
js 0x40b77c
push 0x10
call esi
test al, al
js 0x40b77c
push 0x12
call esi
test al, al
js 0x40b77c
push 5
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [ebp - 0x10]
push str.Rich
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x40b77c
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x40b77c
xor eax, eax
jmp 0x40b7fd
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40b7a4
push 0x11
call esi
test al, al
js 0x40b79c
push 0x10
call esi
test al, al
js 0x40b79c
push 0x12
call esi
test al, al
jns 0x40b7a4
push 1
push edi
call fcn.0040b805
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x40b7ba
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x40b7fa
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x40b7fa
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40b7fa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x40b7fa
lea eax, [esi - 1]
push eax
push dword [0x419a38]
call fcn.0041263f
test eax, eax
je 0x40b7fa
mov eax, dword [eax + 8]
jmp 0x40b7fc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c2c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4198ac], eax
test eax, eax
je 0x40c2ee
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4198a8], eax
lea eax, [ebp - 0x114]
mov dword [0x4198b0], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40c350
cmp dword [ebp - 0x104], 1
jne 0x40c325
and dword [0x4198b0], 0
jmp 0x40c368
cmp dword [ebp - 0x104], 2
jne 0x40c350
cmp dword [ebp - 0x110], 5
jb 0x40c31c
jne 0x40c350
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x4198b0]
mov dword [0x4198b0], eax
jmp 0x40c355
mov eax, dword [0x4198b0]
test eax, eax
je 0x40c368
call fcn.0040bfc3
neg eax
sbb eax, eax
and dword [0x4198b0], eax
mov esp, ebp
pop ebp
ret

Function at 0x40de40
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40de72
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40de6d
cmp dword [esp + 0xc], esi
je 0x40de89
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x4111b6
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 0x4112f1
push ebp
xor ebp, ebp
cmp word [eax], bp
je 0x4112f0
push 0x104
push eax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x220], ax
lea eax, [esp + 0x18]
push eax
call sub.MSVCRT.dll_wcslen
mov ecx, eax
add esp, 0x10
lea eax, [esp + ecx*2 + 0xa]
cmp ecx, 2
je 0x411212
cmp ecx, 3
jne 0x41124c
cmp word [esp + 0xe], 0x3a
jne 0x41124c
cmp ecx, 2
jne 0x411230
lea eax, [esp + 0xc]
push 0x415498
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4112f0
push 0xfffffffffffffffe
pop edi
jmp 0x4112f0
push ebx
push 0x5c
pop ebx
movzx ecx, word [eax]
cmp cx, bx
je 0x41125d
cmp ecx, 0x2f
jne 0x411267
xor ecx, ecx
mov word [eax], cx
sub eax, 2
jmp 0x411250
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4112a8
test byte [esp + 0x21c], 0x10
je 0x41128d
push 0xfffffffffffffffe
pop edi
jmp 0x41129f
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
or esi, ebp
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4112ef
cmp word [esp + 0x10], bx
jne 0x4112b6
cmp word [esp + 0x12], bx
je 0x4112c7
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4112ef
cmp word [esp + 0x12], ax
jne 0x4112ef
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4112dc
test al, 0x10
je 0x4112ef
jmp 0x4112ec
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4112ef
push 0xfffffffffffffffe
pop edi
pop ebx
pop ebp
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x411520
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x41155c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x411860
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x4118c5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4118bd
push dword [esp + 0x10]
push dword [0x419b60]
call fcn.0041263f
test eax, eax
je 0x4118b3
cmp dword [eax + 4], 0
je 0x4118a2
push edi
push esi
push eax
call fcn.004118d0
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc