joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005b860
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x1005b875
xor eax, eax
jmp 0x1005b8ea
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x1005b8a2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x1005b8e5
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x1005b8e3
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x1005b8df
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x1005b8e3
xor eax, eax
jmp 0x1005b8ea
jmp 0x1005b899
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x1005b990
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x102de92c], 0
je 0x1005b9a9
mov eax, dword [0x102de92c]
jmp 0x1005ba46
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1005b9ba
xor eax, eax
jmp 0x1005ba46
push 8
call fcn.10047777
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1005ba10
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x1005b9f9
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10044eea
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x102de92c], eax
mov dword [0x102de930], 0
mov eax, dword [ebp - 4]
jmp 0x1005ba46
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1005ba28
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 4], eax
jmp 0x1005b9da
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x102de934]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x102de934], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1005c340
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1005abc0
add esp, 0xc
mov dword [ebp - 0x10], 0
cmp dword [0x102de91c], 0
jne 0x1005c37d
cmp dword [0x102de918], 0
je 0x1005c37d
mov eax, dword [0x102de918]
mov dword [0x102de91c], eax
cmp dword [0x102de91c], 0
je 0x1005c3fa
mov ecx, dword [0x102de91c]
cmp dword [ecx + 8], 0
je 0x1005c3fa
mov edx, dword [0x102de91c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 8]
jb 0x1005c3fa
mov ecx, dword [0x102de91c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1005c3fa
mov eax, dword [0x102de91c]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 8]
jb 0x1005c3c9
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jbe 0x1005c3d0
xor eax, eax
jmp 0x1005c51d
mov ecx, dword [0x102de91c]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10045030
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x1005c51d
mov edx, dword [0x102de918]
mov dword [0x102de91c], edx
jmp 0x1005c416
mov eax, dword [0x102de91c]
mov ecx, dword [eax + 4]
mov dword [0x102de91c], ecx
cmp dword [0x102de91c], 0
je 0x1005c456
cmp dword [0x102de91c], 0
je 0x1005c454
mov edx, dword [0x102de91c]
cmp dword [edx + 8], 0
je 0x1005c454
mov eax, dword [0x102de91c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jb 0x1005c454
mov edx, dword [0x102de91c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1005c454
jmp 0x1005c3ae
jmp 0x1005c408
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1005aca0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1005c51b
mov eax, dword [ebp - 4]
mov dword [0x102de91c], eax
mov ecx, dword [0x102de91c]
mov dword [ecx], 0x52727464
mov edx, dword [0x102de91c]
mov dword [edx + 8], 0
mov eax, dword [0x102de91c]
mov ecx, dword [0x102de918]
mov dword [eax + 4], ecx
mov edx, dword [0x102de91c]
mov dword [0x102de918], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x102de91c]
add eax, 0x48
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x38c
jmp 0x1005c4e7
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 1
jle 0x1005c50b
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x48
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x48
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
jmp 0x1005c4de
mov eax, dword [0x102de91c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1005c3ae
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1005c530
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x102de928], eax
je 0x1005c554
mov eax, 0x10dd
jmp 0x1005c6fa
cmp dword [0x102de92c], 0
je 0x1005c567
mov eax, dword [0x102de92c]
jmp 0x1005c6fa
cmp dword [ebp + 0xc], 0
jne 0x1005c577
mov eax, 0x57
jmp 0x1005c6fa
cmp dword [ebp + 8], 0
jne 0x1005c587
mov eax, 6
jmp 0x1005c6fa
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1005c5b0
mov dword [ebp - 0xc], 6
mov ecx, dword [ebp - 0xc]
mov dword [0x102de92c], ecx
mov edx, dword [ebp + 8]
mov dword [0x102de930], edx
mov eax, dword [ebp - 0xc]
jmp 0x1005c6fa
push 0x18
call fcn.10047777
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1005c609
mov dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0xc]
mov dword [0x102de92c], ecx
cmp dword [ebp - 0x18], 0
je 0x1005c5f8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.10044eea
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x102de930], ecx
mov eax, dword [ebp - 0xc]
jmp 0x1005c6fa
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1005af20
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1005af20
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 0
je 0x1005c649
cmp dword [ebp - 8], 0x1e
jbe 0x1005c665
mov dword [ebp - 0xc], 9
cmp dword [0x102de920], 0
je 0x1005c660
jmp 0x1005c5d9
jmp 0x1005c5d0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1005c68c
mov dword [ebp - 0xc], 9
cmp dword [0x102de920], 0
je 0x1005c687
jmp 0x1005c5d9
jmp 0x1005c5d0
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1005c6b7
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0xc], eax
jmp 0x1005c5d0
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x102de938]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x102de938], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x402297
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x14
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40229e
mov edx, dword [esp + 0x5c]
lea ecx, [esp]
call fcn.00403060
mov edx, dword [esp + 0x60]
lea ecx, [esp + 4]
call fcn.00403060
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
call fcn.00403060
lea eax, [esp + 0xc]
lea ebp, [esp + 0xc]
mov dword [ebp], 0x3c
mov dword [ebp + 4], 0x140
mov dword [ebp + 0x1c], 0
mov eax, 0x40c08d
push eax
pop eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp]
push eax
pop eax
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 8]
push eax
pop eax
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 4]
push eax
pop eax
mov dword [ebp + 0x18], eax
lea eax, [esp + 0xc]
push eax
call sub.SHELL32.DLL_ShellExecuteExA
mov dword [esp + 0x48], eax
push 0x19
call fcn.00404f12
lea eax, [esp + 0x4c]
push eax
lea ebp, [esp + 0x10]
push dword [ebp + 0x38]
call sub.KERNEL32.dll_GetExitCodeProcess
and eax, eax
je 0x40234d
mov ebx, dword [esp + 0x4c]
cmp ebx, 0x103
je 0x40234d
jmp 0x40234f
jmp 0x402320
mov eax, 1
jmp 0x402358
push dword [esp]
call fcn.00409790
push dword [esp + 4]
call fcn.00409790
push dword [esp + 8]
call fcn.00409790
add esp, 0x50
pop ebx
pop ebp
ret 0xc

Function at 0x40237a
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.00406a90
mov dword [esp], eax
push dword [0x40d6f0]
push dword [0x40d6f0]
call fcn.00406c0d
lea eax, [esp + 8]
push eax
call fcn.00409680
push dword [esp]
push 0
push 0x40c01e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x40d6f0]
push dword [0x40d6f0]
push dword [esp + 8]
call fcn.004069a0
lea eax, [0x40d400]
push eax
call fcn.00409680
push dword [esp]
call fcn.00406ab0
push dword [0x40d400]
call fcn.00406c9c
push dword [0x40d400]
call fcn.00406caa
push dword [0x40d6f0]
push dword [0x40d6f0]
call fcn.00406b45
lea eax, [0x40d3a0]
push eax
call fcn.00409680
push dword [esp + 0x14]
pop eax
call fcn.00406ad0
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x402453
mov edx, dword [0x40d400]
push dword [0x40d6f0]
call fcn.00409730
lea eax, [0x40d3a0]
push eax
call fcn.00409680
mov dword [esp + 0xc], 2
jmp 0x402465
mov ebx, 1
cmp ebx, dword [esp]
jne 0x402465
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.00406ad0
mov dword [0x40d3cc], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
push ebx
pop eax
call fcn.00406ad0
mov dword [0x40d338], eax
mov eax, 1
jmp 0x402498
push dword [esp + 4]
call fcn.00409790
add esp, 0xc
pop ebx
ret 4
Function at 0x4028d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00403060
push 0xa
push dword [esp + 4]
push dword [esp + 0x28]
call sub.KERNEL32.dll_FindResourceA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x40292a
push dword [esp + 4]
push dword [esp + 0x24]
call sub.KERNEL32.dll_LoadResource
mov dword [0x40d33c], eax
push dword [esp + 4]
push dword [esp + 0x24]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x40d350], eax
push dword [esp]
mov edx, 0x40c06c
pop ecx
call fcn.00409700
je 0x4029a1
push dword [0x40d350]
call fcn.00406a90
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov ebx, dword [0x40d350]
dec ebx
cmp ebx, dword [esp + 0xc]
jl 0x402997
mov ebx, dword [0x40d33c]
add ebx, dword [esp + 0xc]
push ebx
pop eax
call fcn.00406ad0
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
imul ebx, ebx, 0xffffffff
mov dword [esp + 0x14], ebx
push dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
add ebx, dword [esp + 0x10]
push ebx
pop eax
call fcn.00406ae0
inc dword [esp + 0xc]
jno 0x402951
push dword [esp + 8]
pop eax
mov dword [0x40d33c], eax
mov eax, dword [esp + 4]
jmp 0x4029a9
push dword [esp]
call fcn.00409790
add esp, 0x18
pop ebx
ret 8
Function at 0x403af1
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x403b40
push dword [esp + 0x10]
push 0x403a6f
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x40d42c]
cmp esi, ebx
je 0x403b94
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x403b38
cmp byte [esi + 0x10], bl
je 0x403b38
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 0x403b15
jmp 0x403b94
mov esi, dword [0x40d42c]
cmp esi, ebx
je 0x403b94
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x403b8d
cmp byte [esi + 0x11], bl
je 0x403b6a
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x403b80
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 0x40d42c
call fcn.0040936d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x403b4b
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x404a94
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x40d760]
call fcn.00408c9a
mov edi, eax
test edi, edi
je 0x404af6
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x404abd
push dword [esp + 0xc]
push edi
call eax
jmp 0x404af6
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.004098c0
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.004099f0
pop esi
pop ebx
pop edi
ret 8
Function at 0x404e1f
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 0x404f08
mov eax, dword [ebp - 0xc]
dec eax
je 0x404eeb
dec eax
jne 0x404f08
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x404e7e
cmp byte [ebp - 0x1e], 1
jne 0x404e7e
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x404ee7
dec eax
je 0x404ee3
dec eax
je 0x404ec1
dec eax
jne 0x404f08
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x404eb5
dec eax
je 0x404ea9
dec eax
jne 0x404f08
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x404f08
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x404f08
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x404f08
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x404edf
dec eax
je 0x404edb
dec eax
jne 0x404f08
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x404f08
push 0x3c
jmp 0x404f07
push 0x32
jmp 0x404f07
push 0x14
jmp 0x404f07
push 5
jmp 0x404f07
cmp dword [ebp - 0x14], 0
je 0x404f05
cmp dword [ebp - 0x14], 0xa
je 0x404f01
cmp dword [ebp - 0x14], 0x5a
jne 0x404f08
push 0x28
jmp 0x404f07
push 0x1e
jmp 0x404f07
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret

Function at 0x405e71
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 0x405eed
push 9
call esi
test bl, al
je 0x405eed
push 0x11
call esi
test bl, al
jne 0x405eed
push 0x10
call esi
test bl, al
jne 0x405eed
push 0x12
call esi
test bl, al
jne 0x405eed
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 0x405eed
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x405eed
xor eax, eax
jmp 0x405f6f
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x405f16
push 0x11
call esi
test bl, al
jne 0x405f0e
push 0x10
call esi
test bl, al
jne 0x405f0e
push 0x12
call esi
test bl, al
je 0x405f16
push 1
push ebp
call fcn.00405e2a
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x405f2c
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x405f6c
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x405f6c
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x405f6c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x405f6c
dec esi
push esi
push dword [0x40d768]
call fcn.00408c9a
test eax, eax
je 0x405f6c
mov eax, dword [eax + 8]
jmp 0x405f6e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x406031
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 [0x40d67c], eax
cmp eax, edi
je 0x406064
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40d680], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x40d678], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4060a2
cmp dword [ebp - 0xc], 1
je 0x4060b3
cmp dword [ebp - 0xc], 2
jne 0x4060a2
cmp dword [ebp - 0x18], 5
jb 0x4060b3
jne 0x4060a2
cmp dword [ebp - 0x14], edi
jne 0x4060a2
mov dword [0x40d678], edi
cmp dword [0x40d678], edi
je 0x4060b9
call fcn.00405f78
test eax, eax
jne 0x4060b9
mov dword [0x40d678], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x406c6e
Capabilities:
Delete file
Set file attributes

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

Function at 0x406caa
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x406d1a
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 0x406cfc
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x406cfb
cmp dl, 0x5c
je 0x406cfb
cmp dl, 0x2f
jne 0x406d06
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x406ce9
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x406d1c
xor eax, eax
leave
ret 4

Function at 0x406df0
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 0x406e25
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 0x4071d0
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 0x407217
cmp byte [esi], al
je 0x407217
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40d808]
push eax
push ecx
call fcn.00408c9a
test eax, eax
je 0x407245
cmp dword [eax + 4], 0
mov ecx, esi
push edi
lea edi, [ecx + 1]
je 0x407220
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x407205
sub ecx, edi
push ecx
push esi
push eax
call fcn.00407390
pop edi
pop esi
pop ecx
ret 8
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x407220
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 0x407250
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 0x4072a9
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4072a8
mov eax, dword [esp + 0x10]
mov ecx, dword [0x40d808]
push eax
push ecx
call fcn.00408c9a
test eax, eax
je 0x4072a4
cmp dword [eax + 4], 0
je 0x407292
push esi
push edi
push eax
call fcn.00407390
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 0x4072b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40d808]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00408c9a
mov esi, eax
test esi, esi
je 0x407377
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
test ecx, ecx
je 0x40732f
cmp byte [ecx], 0
je 0x40732f
cmp dword [esi + 4], 0
mov eax, ecx
push edi
lea edi, [eax + 1]
je 0x407317
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407300
sub eax, edi
push eax
push ecx
push esi
call fcn.00407390
mov dword [esp + 0xc], eax
jmp 0x40732e
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407317
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 0x407352
push 2
push 0x40b1dc
push esi
call fcn.00407390
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 0x40b1dc
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 0x407390
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 0x4073c5
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 0x40743a
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x407427
dec ecx
je 0x407412
sub ecx, 2
je 0x4073ff
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.00406df0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x407467
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