joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b09
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x1c]
mov dword [0x413ad0], eax
call fcn.004033a1
and eax, eax
je 0x403b36
call fcn.0040ab0f
mov ebx, eax
cmp ebx, 0x41
je 0x403b36
mov eax, 1
jmp 0x403b38
xor eax, eax
and eax, eax
je 0x403c91
push dword [0x413ad0]
push dword [0x413ad0]
push 0x800
call fcn.00405b50
lea eax, [esp + 4]
push eax
call fcn.0040f520
push 0x800
push dword [esp + 4]
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push dword [esp]
call sub.SHLWAPI.DLL_PathAddBackslashA
mov edx, dword [esp]
push dword [0x413ad0]
call fcn.0040f600
mov edx, 0x412037
call fcn.0040f600
lea eax, [esp + 4]
push eax
call fcn.0040f520
push dword [esp]
call sub.SHLWAPI.DLL_PathAddBackslashA
mov edx, dword [esp]
push dword [0x413ad0]
call fcn.0040f600
mov edx, dword [0x413534]
call fcn.0040f600
lea eax, [esp + 8]
push eax
call fcn.0040f520
mov edx, dword [esp]
push dword [0x413ad0]
call fcn.0040f600
mov edx, dword [0x413534]
call fcn.0040f600
mov edx, dword [0x413550]
call fcn.0040f600
lea eax, [esp + 0xc]
push eax
call fcn.0040f520
push dword [esp + 4]
push 0
call fcn.0040cee0
and eax, eax
je 0x403c17
mov dword [esp + 0xc], 1
push 0
call fcn.0040cbf0
jmp 0x403c1f
mov dword [esp + 0xc], 0
push dword [esp + 8]
push 0
call fcn.0040cee0
and eax, eax
je 0x403c45
mov dword [esp + 0x10], 1
push 0
call fcn.0040cbf0
jmp 0x403c4d
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0xc]
add ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x403c8f
push dword [0x413ad0]
push dword [0x413ad0]
push 0x800
call fcn.00405b50
lea eax, [esp + 4]
push eax
call fcn.0040f520
push 0x800
push dword [esp + 4]
call sub.KERNEL32.DLL_GetSystemDirectoryA
push dword [esp]
call sub.SHLWAPI.DLL_PathAddBackslashA
jmp 0x403cc7
push dword [0x413ad0]
push dword [0x413ad0]
push 0x800
call fcn.00405b50
lea eax, [esp + 4]
push eax
call fcn.0040f520
push 0x800
push dword [esp + 4]
call sub.KERNEL32.DLL_GetSystemDirectoryA
push dword [esp]
call sub.SHLWAPI.DLL_PathAddBackslashA
mov edx, dword [esp]
push dword [0x413ad0]
call fcn.0040f600
pop eax
add eax, dword [0x412320]
jmp 0x403cec
push dword [esp + 8]
call fcn.0040f5d0
push dword [esp]
call fcn.0040f5d0
push dword [esp + 4]
call fcn.0040f5d0
add esp, 0x14
pop ebx
ret
Function at 0x403d0b
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
mov ebx, dword [0x413580]
cmp ebx, 1
jne 0x403dc8
push dword [0x4135e0]
call fcn.00409d4b
mov ebx, eax
and ebx, ebx
jle 0x403d6f
push dword [0x4135e0]
call fcn.00409d55
push dword [0x4135e0]
call fcn.00409d6a
or eax, eax
je 0x403d6f
mov ebp, dword [0x4135e4]
push dword [ebp + 8]
call fcn.0040e090
mov ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x403d6d
mov ebp, dword [0x4135e4]
push dword [ebp + 8]
call fcn.0040ca1c
jmp 0x403d3b
push dword [0x4135e8]
call fcn.00409d4b
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x403dc8
push 5
push 0
push 1
push dword [0x4135e8]
call fcn.00407a00
push dword [0x4135e8]
call fcn.00409d55
push dword [0x4135e8]
call fcn.00409d6a
or eax, eax
je 0x403dc8
mov ebp, dword [0x4135ec]
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_RemoveDirectoryA
jmp 0x403da9
mov eax, 1
jmp 0x403dd1
add esp, 4
pop ebx
pop ebp
ret

Function at 0x403dd7
Capabilities:
Accept command line arguments
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [0x413558]
push 1
call fcn.0040ce10
and eax, eax
je 0x403f7c
push dword [0x41356c]
push 1
call fcn.0040d070
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
call sub.KERNEL32.DLL_GetCommandLineA
push eax
call fcn.0040c760
inc dword [0x413ad0]
mov edx, dword [0x412320]
add dword [esp], edx
call sub.SHLWAPI.DLL_PathGetArgsA
pop dword [0x413ad0]
push eax
call fcn.0040c760
inc dword [0x413ad0]
push dword [0x41359c]
mov edx, dword [0x412320]
add dword [esp + 4], edx
call fcn.004085cd
pop dword [0x413ad0]
push dword [0x413554]
push 1
call fcn.0040d070
mov ebx, dword [0x4134e4]
cmp ebx, 1
jne 0x403f70
push dword [0x413ad0]
push dword [0x413ad0]
mov ebp, 0x412125
mov ebx, ebp
mov ebp, 0x412078
sub ebx, ebp
push ebx
mov ebp, 0x412078
push ebp
call fcn.0040c6f0
lea eax, [esp + 4]
push eax
call fcn.0040f520
push dword [esp]
call fcn.004052c0
mov dword [esp + 4], eax
push dword [esp + 4]
call fcn.0040c6b0
mov dword [esp + 8], eax
push dword [esp + 4]
call fcn.0040c6b0
mov dword [esp + 0xc], eax
push dword [esp]
push dword [esp + 0xc]
call fcn.0040c8d0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 4]
cmp eax, dword [esp + 0x10]
jl 0x403f35
mov ebx, dword [esp + 8]
add ebx, dword [esp + 0x10]
push ebx
pop eax
call fcn.0040c6d0
mov ebx, eax
imul ebx, ebx, 0xffffffff
push ebx
mov ebx, dword [esp + 0x10]
add ebx, dword [esp + 0x14]
push ebx
pop eax
call fcn.0040c6e0
inc dword [esp + 0x10]
jno 0x403f01
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [esp + 0x18]
call fcn.0040c760
inc dword [0x413ad0]
push 1
mov edx, dword [0x412320]
add dword [esp + 4], edx
call fcn.0040d070
pop dword [0x413ad0]
push 1
call fcn.0040cbf0
jmp 0x403fb7
push dword [0x413558]
call fcn.0040ca1c
call fcn.00403d0b
push 0x10
push dword [0x413560]
push dword [0x4135bc]
call fcn.004080d0
push dword [0x4135b8]
call sub.KERNEL32.DLL_RemoveDirectoryA
push 1
jmp 0x4017bc
xor eax, eax
push dword [esp]
call fcn.0040f5d0
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x40831d
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x40836c
push dword [esp + 0x10]
push 0x40829b
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4135f8]
cmp esi, ebx
je 0x4083c0
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x408364
cmp byte [esi + 0x10], bl
je 0x408364
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x408341
jmp 0x4083c0
mov esi, dword [0x4135f8]
cmp esi, ebx
je 0x4083c0
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x4083b9
cmp byte [esi + 0x11], bl
je 0x408396
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x4083ac
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x4135f8
call fcn.0040f14d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x408377
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x408bf5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 4], 0xffffffff
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0x10]
xor esi, esi
test eax, eax
je 0x408c26
cmp byte [eax], 0
je 0x408c26
push eax
call fcn.00410080
push eax
push edi
mov dword [ebp + 0x10], eax
call fcn.004091dd
pop ecx
pop ecx
mov esi, eax
jmp 0x408c38
cmp dword [edi + 8], esi
je 0x408d28
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 4]
mov esi, dword [ecx + eax*4]
test esi, esi
je 0x408d28
cmp dword [ebp + 0x14], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_HeapAlloc]
je 0x408c61
push dword [esi]
push 0
push dword [0x4134c8]
call ebx
mov dword [ebp + 8], eax
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x408d27
mov eax, dword [ebp + 0xc]
cdq
cmp edx, dword [esi + 4]
jl 0x408d27
jg 0x408c82
cmp eax, dword [esi]
jb 0x408d27
push 0
push 0
push dword [esi + 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jne 0x408cc7
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jne 0x408cc7
push 0
lea eax, [ebp - 8]
push eax
push dword [esi]
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [ebp - 8]
mov eax, ecx
cdq
cmp dword [esi], eax
jne 0x408d27
cmp dword [esi + 4], edx
jne 0x408d27
mov dword [ebp - 4], ecx
jmp 0x408d27
push dword [esi + 8]
push 0
push dword [0x4134c8]
call ebx
mov ebx, eax
test ebx, ebx
je 0x408d27
push 0
lea eax, [ebp - 8]
push eax
push dword [esi + 8]
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp - 8]
cdq
cmp dword [esi + 8], eax
jne 0x408d18
cmp dword [esi + 0xc], edx
jne 0x408d18
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call fcn.00409341
cdq
add esp, 0xc
cmp eax, dword [esi]
jne 0x408d18
cmp edx, dword [esi + 4]
jne 0x408d18
mov eax, dword [esi]
mov dword [ebp - 4], eax
push ebx
push 0
push dword [0x4134c8]
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop ebx
mov eax, dword [ebp + 0x14]
xor edi, edi
cmp eax, edi
je 0x408d5b
cmp dword [ebp - 4], 0xffffffff
jne 0x408d51
cmp dword [ebp + 8], edi
je 0x408d4c
push dword [ebp + 8]
push edi
push dword [0x4134c8]
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov dword [ebp - 4], edi
jmp 0x408d5b
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, edi
pop edi
pop esi
je 0x408d6f
cmp byte [eax], 0
je 0x408d6f
push eax
call fcn.00410130
mov eax, dword [ebp - 4]
leave
ret
Function at 0x408e25
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 8], 0
push ebx
push esi
push edi
push dword [ebp + 0x14]
call fcn.00410080
mov esi, dword [ebp + 0x10]
lea ebx, [esi + 0x18]
push ebx
push 0
push dword [0x4134c8]
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edi, eax
mov dword [ebp + 0x10], edi
test edi, edi
je 0x408f13
push 0
push 5
push ebx
push edi
push esi
push dword [ebp + 0xc]
call fcn.004093a9
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x408e80
cmp ebx, esi
jge 0x408e80
mov dword [ebp + 0xc], edi
jmp 0x408e88
mov eax, dword [ebp + 0xc]
mov ebx, esi
mov dword [ebp + 0xc], eax
push dword [ebp + 0x14]
call sub.MSVCRT.dll_strlen
mov edi, dword [ebp + 8]
mov word [ebp - 0xc], ax
mov eax, esi
mov esi, dword [sym.imp.KERNEL32.DLL_WriteFile]
cdq
mov dword [ebp - 0x1c], eax
pop ecx
mov dword [ebp - 0x18], edx
mov eax, ebx
cdq
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push 0x12
lea eax, [ebp - 0x1c]
push eax
push dword [edi]
mov dword [ebp - 0x10], edx
call esi
cmp dword [ebp - 4], 0x12
jne 0x408efb
push 0
lea eax, [ebp - 4]
push eax
movsx eax, word [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push dword [edi]
call esi
movsx eax, word [ebp - 0xc]
cmp eax, dword [ebp - 4]
jne 0x408efb
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi]
call esi
cmp ebx, dword [ebp - 4]
jne 0x408efb
mov dword [ebp - 8], 1
push edi
call fcn.00409035
pop ecx
push dword [ebp + 0x10]
push 0
push dword [0x4134c8]
call dword [sym.imp.KERNEL32.DLL_HeapFree]
push dword [ebp + 0x14]
call fcn.00410130
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40907a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], 0x40
cmp dword [esi + 4], ebx
jne 0x4091d9
push edi
push 0x100
push ebx
push dword [0x4134c8]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
push ebx
push ebx
push 4
pop edi
push edi
push dword [esi]
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [ebp + 8], edi
cmp dword [esi + 0x14], 0x706c7a31
push ebx
lea eax, [ebp - 4]
push eax
jne 0x409109
push 0x18
lea eax, [ebp - 0x34]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 4], 0x18
jne 0x4091d8
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov ax, word [ebp - 0x24]
mov word [ebp - 0xc], ax
jmp 0x409121
push 0x12
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 4], 0x12
jne 0x4091d8
mov eax, dword [ebp - 8]
cmp dword [esi + 0xc], eax
jl 0x409147
add eax, 0x40
mov dword [ebp - 8], eax
shl eax, 2
push eax
push dword [esi + 4]
push 8
push dword [0x4134c8]
call dword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov dword [esi + 4], eax
movsx eax, word [ebp - 0xc]
add eax, 0x19
push eax
push ebx
push dword [0x4134c8]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0xc], eax
push ebx
lea eax, [ebp - 4]
push eax
movsx eax, word [ebp - 0xc]
push eax
lea eax, [edi + 0x14]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
movsx eax, word [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov byte [eax + edi + 0x14], bl
cmp dword [esi + 0x14], 0x706c7a31
movsx eax, word [ebp - 0xc]
jne 0x4091a9
lea eax, [ecx + eax + 0x18]
jmp 0x4091b0
lea eax, [ecx + eax + 0x12]
mov dword [ebp + 8], eax
mov dword [edi + 0x10], eax
add eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
push 1
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + eax*4], edi
inc dword [esi + 0xc]
push ebx
push dword [ebp - 0x14]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x4090c1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a784
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x413b80]
call fcn.0040ea7a
mov edi, eax
test edi, edi
je 0x40a7e6
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40a7ad
push dword [esp + 0xc]
push edi
call eax
jmp 0x40a7e6
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.0040f7a0
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.0040f8c0
pop esi
pop ebx
pop edi
ret 8

Function at 0x40ab0f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetVersionExA]
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0xc8
mov dword [ebp - 0x1c], 0x94
call edi
test eax, eax
je 0x40abf8
mov eax, dword [ebp - 0xc]
dec eax
je 0x40abdb
dec eax
jne 0x40abf8
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x40ab6e
cmp byte [ebp - 0x1e], 1
jne 0x40ab6e
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x40abd7
dec eax
je 0x40abd3
dec eax
je 0x40abb1
dec eax
jne 0x40abf8
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40aba5
dec eax
je 0x40ab99
dec eax
jne 0x40abf8
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x40abf8
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x40abf8
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x40abf8
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40abcf
dec eax
je 0x40abcb
dec eax
jne 0x40abf8
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x40abf8
push 0x3c
jmp 0x40abf7
push 0x32
jmp 0x40abf7
push 0x14
jmp 0x40abf7
push 5
jmp 0x40abf7
cmp dword [ebp - 0x14], 0
je 0x40abf5
cmp dword [ebp - 0x14], 0xa
je 0x40abf1
cmp dword [ebp - 0x14], 0x5a
jne 0x40abf8
push 0x28
jmp 0x40abf7
push 0x1e
jmp 0x40abf7
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret
Function at 0x40bb40
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x40bbbc
push 9
call esi
test bl, al
je 0x40bbbc
push 0x11
call esi
test bl, al
jne 0x40bbbc
push 0x10
call esi
test bl, al
jne 0x40bbbc
push 0x12
call esi
test bl, al
jne 0x40bbbc
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40bbbc
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40bbbc
xor eax, eax
jmp 0x40bc3e
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40bbe5
push 0x11
call esi
test bl, al
jne 0x40bbdd
push 0x10
call esi
test bl, al
jne 0x40bbdd
push 0x12
call esi
test bl, al
je 0x40bbe5
push 1
push ebp
call fcn.0040baf9
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40bbfb
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40bc3b
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40bc3b
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40bc3b
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40bc3b
dec esi
push esi
push dword [0x413b88]
call fcn.0040ea7a
test eax, eax
je 0x40bc3b
mov eax, dword [eax + 8]
jmp 0x40bc3d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x40bd00
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xor edi, edi
mov dword [0x413a5c], eax
cmp eax, edi
je 0x40bd33
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x413a60], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x413a58], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x40bd71
cmp dword [ebp - 0xc], 1
je 0x40bd82
cmp dword [ebp - 0xc], 2
jne 0x40bd71
cmp dword [ebp - 0x18], 5
jb 0x40bd82
jne 0x40bd71
cmp dword [ebp - 0x14], edi
jne 0x40bd71
mov dword [0x413a58], edi
cmp dword [0x413a58], edi
je 0x40bd88
call fcn.0040bc47
test eax, eax
jne 0x40bd88
mov dword [0x413a58], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x40c917
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x40c987
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x40c969
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x40c968
cmp dl, 0x5c
je 0x40c968
cmp dl, 0x2f
jne 0x40c973
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x40c956
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
jmp 0x40c989
xor eax, eax
leave
ret 4
Function at 0x40c9ee
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40ca17
test byte [esp + 8], 2
je 0x40ca0b
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
jmp 0x40ca19
xor eax, eax
ret 8

Function at 0x40cbb0
Capabilities:
Write file on windows

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

Function at 0x40cf90
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x40cfe9
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40cfe8
mov eax, dword [esp + 0x10]
mov ecx, dword [0x413c28]
push eax
push ecx
call fcn.0040ea7a
test eax, eax
je 0x40cfe4
cmp dword [eax + 4], 0
je 0x40cfd2
push esi
push edi
push eax
call fcn.0040d150
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc

Function at 0x40cff0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test esi, esi
je 0x40d037
cmp byte [esi], al
je 0x40d037
mov eax, dword [esp + 0xc]
mov ecx, dword [0x413c28]
push eax
push ecx
call fcn.0040ea7a
test eax, eax
je 0x40d065
cmp dword [eax + 4], 0
mov ecx, esi
push edi
lea edi, [ecx + 1]
je 0x40d040
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40d025
sub ecx, edi
push ecx
push esi
push eax
call fcn.0040d150
pop edi
pop esi
pop ecx
ret 8
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40d040
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
sub ecx, edi
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8
Function at 0x40d070
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x413c28]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.0040ea7a
mov esi, eax
test esi, esi
je 0x40d137
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
test ecx, ecx
je 0x40d0ef
cmp byte [ecx], 0
je 0x40d0ef
cmp dword [esi + 4], 0
mov eax, ecx
push edi
lea edi, [eax + 1]
je 0x40d0d7
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40d0c0
sub eax, edi
push eax
push ecx
push esi
call fcn.0040d150
mov dword [esp + 0xc], eax
jmp 0x40d0ee
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40d0d7
push 0
lea edx, [esp + 0x10]
push edx
sub eax, edi
push eax
mov eax, dword [esi]
push ecx
push eax
call ebp
pop edi
cmp dword [esi + 4], 0
je 0x40d112
push 2
push 0x41150c
push esi
call fcn.0040d150
mov ecx, eax
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 2
push 0x41150c
push edx
call ebp
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8

Function at 0x40d150
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x40d185
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x40d1fa
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x40d1e7
dec ecx
je 0x40d1d2
sub ecx, 2
je 0x40d1bf
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.0040cbb0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x40d227
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc