joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6abb74
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x6abba2
mov eax, ebx
call fcn.006ac630
cmp dword [ebx + 0x40], 0
je 0x6abb9b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x6abc13
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x6abc05
cmp dword [ebx + 8], 0
je 0x6abbc4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x6abbd6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x6abc05
cmp dword [ebx + 8], 0
je 0x6abbb7
cmp eax, 3
je 0x6abbe9
dec eax
jne 0x6abbb7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x6abbb7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x6abbb7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x6abc31
cmp dword [ebx + 0x14], 0xcc
je 0x6abc31
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.006abc3c
pop ebx
ret
Function at 0x6c95f4
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp byte [eax + 0xc0], 0
je 0x6c962e
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
test eax, eax
jne 0x6c962e
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor edx, edx
push ebp
push 0x6c971d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.006c9344
mov eax, dword [eax + 8]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x6c96a5
inc edi
xor esi, esi
mov eax, dword [ebp - 4]
call fcn.006c9344
mov ebx, eax
mov eax, dword [ebx + 8]
mov edx, esi
call fcn.0049f5ec
mov ebx, eax
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x14]
call fcn.0049f740
cmp ebx, eax
sete al
test al, al
je 0x6c96a1
mov eax, dword [ebp - 4]
call fcn.006c9344
mov ebx, eax
mov eax, dword [ebx + 8]
mov edx, esi
call fcn.0049f5ec
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
call fcn.006c9114
mov byte [ebp - 5], 1
jmp 0x6c96a5
inc esi
dec edi
jne 0x6c9652
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6c9724
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp byte [eax + 0xc0], 0
je 0x6c971a
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
test eax, eax
jne 0x6c96dc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0xc], 0
jne 0x6c96e6
cmp dword [ebp - 0x10], 0
je 0x6c971a
cmp dword [ebp - 0x14], 0
jne 0x6c96f2
cmp dword [ebp - 0x18], 0
je 0x6c971a
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x40]
mov ecx, 0x6c973c
mov eax, dword [0x6c71fc]
call fcn.006d2ce4
pop eax
jmp eax
Function at 0x6d59fc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
xor edx, edx
push ebp
push 0x6d5a90
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.006d5644
mov edi, eax
mov byte [edi + 0x48], bl
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, esi
call fcn.006576fc
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0xc]
call fcn.006576fc
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp + 8]
call fcn.006576fc
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6d5a97
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx + 4]
pop eax
jmp eax

Function at 0x6d64b4
Capabilities:
Open clipboard

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
mov ebp, edx
mov esi, eax
xor ebx, ebx
test ebx, ebx
jle 0x6d64ca
push ebp
call sub.kernel32.dll_Sleep
mov eax, dword [esi + 8]
push eax
call sub.user32.dll_OpenClipboard
cmp eax, 1
sbb eax, eax
inc eax
inc ebx
test al, al
jne 0x6d64e2
cmp edi, ebx
jg 0x6d64c0
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x403392
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.0040c5f0
mov dword [esp], eax
push dword [0x413b08]
push dword [0x413b08]
call fcn.0040c90d
lea eax, [esp + 8]
push eax
call fcn.0040f460
push dword [esp]
push 0
push 0x41201e
push dword [esp + 0x10]
call sub.KERNEL32.DLL_GetTempFileNameA
push dword [0x413b08]
push dword [0x413b08]
push dword [esp + 8]
call fcn.0040c6a0
lea eax, [0x4135e8]
push eax
call fcn.0040f460
push dword [esp]
call fcn.0040c6f0
push dword [0x4135e8]
call fcn.0040c99c
push dword [0x4135e8]
call fcn.0040c9aa
push dword [0x413b08]
push dword [0x413b08]
call fcn.0040c845
lea eax, [0x413568]
push eax
call fcn.0040f460
push dword [esp + 0x14]
pop eax
call fcn.0040c610
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x40346b
mov edx, dword [0x4135e8]
push dword [0x413b08]
call fcn.0040f510
lea eax, [0x413568]
push eax
call fcn.0040f460
mov dword [esp + 0xc], 2
jmp 0x40347d
mov ebx, 1
cmp ebx, dword [esp]
jne 0x40347d
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.0040c610
mov dword [0x4135a4], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
push ebx
pop eax
call fcn.0040c610
mov dword [0x4134b4], eax
mov eax, 1
jmp 0x4034b0
push dword [esp + 4]
call fcn.0040f570
add esp, 0xc
pop ebx
ret 4
Function at 0x403bc2
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x403bc8
lea eax, [esp]
push eax
call sub.KERNEL32.DLL_GetNativeSystemInfo
lea ebp, [esp]
cmp word [ebp], 0
je 0x403bef
mov eax, 1
jmp 0x403bf1
xor eax, eax
add esp, 0x24
pop ebp
ret

Function at 0x403bf6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x403bfc
mov edx, dword [esp + 0x30]
lea ecx, [esp]
call fcn.00405060
push 0x21
call fcn.0040c5f0
mov dword [esp + 4], eax
push 0x21
push dword [esp + 8]
call fcn.0040c740
push 0x20
push dword [esp + 8]
mov eax, dword [0x413604]
push eax
call fcn.0040c760
push 1
push dword [esp + 4]
mov ebx, dword [esp + 0xc]
add ebx, 0x20
push ebx
call fcn.0040c790
push dword [0x413b08]
push dword [0x413b08]
push dword [0x413b08]
push dword [0x413b08]
push 0x21
push dword [esp + 0x18]
call fcn.0040dcb0
mov edx, dword [0x412320]
add dword [esp], edx
call fcn.00405a70
lea eax, [esp + 0xc]
push eax
call fcn.0040f460
push dword [esp + 4]
call fcn.0040c6f0
push 0xa
push dword [esp + 0xc]
push dword [esp + 0x34]
call sub.KERNEL32.DLL_FindResourceA
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x403de1
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.KERNEL32.DLL_LoadResource
mov dword [0x4134b8], eax
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x4134cc], eax
push dword [esp]
mov edx, 0x412027
pop ecx
call fcn.0040f4e0
jne 0x403d29
push dword [esp]
mov edx, 0x41202b
pop ecx
call fcn.0040f4e0
jne 0x403d29
push dword [esp]
mov edx, 0x41202d
pop ecx
call fcn.0040f4e0
jne 0x403d29
push dword [esp]
mov edx, 0x412035
pop ecx
call fcn.0040f4e0
jne 0x403d29
jmp 0x403d30
mov eax, 1
jmp 0x403d32
xor eax, eax
and eax, eax
je 0x403de1
push dword [0x4134cc]
call fcn.0040c5f0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov ebx, dword [0x4134cc]
dec ebx
cmp ebx, dword [esp + 0x14]
jl 0x403d97
mov ebx, dword [0x4134b8]
add ebx, dword [esp + 0x14]
push ebx
pop eax
call fcn.0040c610
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
imul ebx, ebx, 0xffffffff
mov dword [esp + 0x1c], ebx
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x18]
push ebx
pop eax
call fcn.0040c620
inc dword [esp + 0x14]
jno 0x403d51
push dword [0x413604]
push dword [0x4134cc]
push dword [esp + 0x18]
call fcn.00403000
push dword [esp + 0x10]
pop eax
mov dword [0x4134b8], eax
push dword [0x4134cc]
push dword [esp + 0x14]
call fcn.0040417a
mov dword [esp + 0x20], eax
push dword [esp + 0x20]
pop eax
mov dword [0x4134b8], eax
push dword [esp + 0x20]
call fcn.0040c7d0
mov dword [0x4134cc], eax
mov eax, dword [esp + 0xc]
jmp 0x403de9
push dword [esp + 8]
call fcn.0040f570
push dword [esp]
call fcn.0040f570
add esp, 0x24
pop ebx
ret 8
Function at 0x4040ae
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
mov ebx, dword [0x4135a4]
cmp ebx, 1
jne 0x40416b
push dword [0x41361c]
call fcn.00409c8b
mov ebx, eax
and ebx, ebx
jle 0x404112
push dword [0x41361c]
call fcn.00409c95
push dword [0x41361c]
call fcn.00409caa
or eax, eax
je 0x404112
mov ebp, dword [0x413620]
push dword [ebp + 8]
call fcn.0040dfd0
mov ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x404110
mov ebp, dword [0x413620]
push dword [ebp + 8]
call fcn.0040c99c
jmp 0x4040de
push dword [0x413624]
call fcn.00409c8b
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x40416b
push 5
push 0
push 1
push dword [0x413624]
call fcn.00407940
push dword [0x413624]
call fcn.00409c95
push dword [0x413624]
call fcn.00409caa
or eax, eax
je 0x40416b
mov ebp, dword [0x413628]
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_RemoveDirectoryA
jmp 0x40414c
mov eax, 1
jmp 0x404174
add esp, 4
pop ebx
pop ebp
ret

Function at 0x40825d
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x4082ac
push dword [esp + 0x10]
push 0x4081db
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x413634]
cmp esi, ebx
je 0x408300
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4082a4
cmp byte [esi + 0x10], bl
je 0x4082a4
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 0x408281
jmp 0x408300
mov esi, dword [0x413634]
cmp esi, ebx
je 0x408300
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x4082f9
cmp byte [esi + 0x11], bl
je 0x4082d6
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x4082ec
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 0x413634
call fcn.0040f08d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x4082b7
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x408b35
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 0x408b66
cmp byte [eax], 0
je 0x408b66
push eax
call fcn.0040ffc0
push eax
push edi
mov dword [ebp + 0x10], eax
call fcn.0040911d
pop ecx
pop ecx
mov esi, eax
jmp 0x408b78
cmp dword [edi + 8], esi
je 0x408c68
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 4]
mov esi, dword [ecx + eax*4]
test esi, esi
je 0x408c68
cmp dword [ebp + 0x14], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_HeapAlloc]
je 0x408ba1
push dword [esi]
push 0
push dword [0x4134ac]
call ebx
mov dword [ebp + 8], eax
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x408c67
mov eax, dword [ebp + 0xc]
cdq
cmp edx, dword [esi + 4]
jl 0x408c67
jg 0x408bc2
cmp eax, dword [esi]
jb 0x408c67
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 0x408c07
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jne 0x408c07
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 0x408c67
cmp dword [esi + 4], edx
jne 0x408c67
mov dword [ebp - 4], ecx
jmp 0x408c67
push dword [esi + 8]
push 0
push dword [0x4134ac]
call ebx
mov ebx, eax
test ebx, ebx
je 0x408c67
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 0x408c58
cmp dword [esi + 0xc], edx
jne 0x408c58
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call fcn.00409281
cdq
add esp, 0xc
cmp eax, dword [esi]
jne 0x408c58
cmp edx, dword [esi + 4]
jne 0x408c58
mov eax, dword [esi]
mov dword [ebp - 4], eax
push ebx
push 0
push dword [0x4134ac]
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop ebx
mov eax, dword [ebp + 0x14]
xor edi, edi
cmp eax, edi
je 0x408c9b
cmp dword [ebp - 4], 0xffffffff
jne 0x408c91
cmp dword [ebp + 8], edi
je 0x408c8c
push dword [ebp + 8]
push edi
push dword [0x4134ac]
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov dword [ebp - 4], edi
jmp 0x408c9b
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 0x408caf
cmp byte [eax], 0
je 0x408caf
push eax
call fcn.00410070
mov eax, dword [ebp - 4]
leave
ret
Function at 0x408d65
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.0040ffc0
mov esi, dword [ebp + 0x10]
lea ebx, [esi + 0x18]
push ebx
push 0
push dword [0x4134ac]
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edi, eax
mov dword [ebp + 0x10], edi
test edi, edi
je 0x408e53
push 0
push 5
push ebx
push edi
push esi
push dword [ebp + 0xc]
call fcn.004092e9
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x408dc0
cmp ebx, esi
jge 0x408dc0
mov dword [ebp + 0xc], edi
jmp 0x408dc8
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 0x408e3b
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 0x408e3b
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 0x408e3b
mov dword [ebp - 8], 1
push edi
call fcn.00408f75
pop ecx
push dword [ebp + 0x10]
push 0
push dword [0x4134ac]
call dword [sym.imp.KERNEL32.DLL_HeapFree]
push dword [ebp + 0x14]
call fcn.00410070
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x408fba
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 0x409119
push edi
push 0x100
push ebx
push dword [0x4134ac]
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 0x409049
push 0x18
lea eax, [ebp - 0x34]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 4], 0x18
jne 0x409118
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 0x409061
push 0x12
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 4], 0x12
jne 0x409118
mov eax, dword [ebp - 8]
cmp dword [esi + 0xc], eax
jl 0x409087
add eax, 0x40
mov dword [ebp - 8], eax
shl eax, 2
push eax
push dword [esi + 4]
push 8
push dword [0x4134ac]
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 [0x4134ac]
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 0x4090e9
lea eax, [ecx + eax + 0x18]
jmp 0x4090f0
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 0x409001
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a6c4
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x413bb8]
call fcn.0040e9ba
mov edi, eax
test edi, edi
je 0x40a726
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40a6ed
push dword [esp + 0xc]
push edi
call eax
jmp 0x40a726
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.0040f6e0
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.0040f800
pop esi
pop ebx
pop edi
ret 8

Function at 0x40aa4f
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 0x40ab38
mov eax, dword [ebp - 0xc]
dec eax
je 0x40ab1b
dec eax
jne 0x40ab38
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x40aaae
cmp byte [ebp - 0x1e], 1
jne 0x40aaae
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x40ab17
dec eax
je 0x40ab13
dec eax
je 0x40aaf1
dec eax
jne 0x40ab38
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40aae5
dec eax
je 0x40aad9
dec eax
jne 0x40ab38
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x40ab38
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x40ab38
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x40ab38
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40ab0f
dec eax
je 0x40ab0b
dec eax
jne 0x40ab38
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x40ab38
push 0x3c
jmp 0x40ab37
push 0x32
jmp 0x40ab37
push 0x14
jmp 0x40ab37
push 5
jmp 0x40ab37
cmp dword [ebp - 0x14], 0
je 0x40ab35
cmp dword [ebp - 0x14], 0xa
je 0x40ab31
cmp dword [ebp - 0x14], 0x5a
jne 0x40ab38
push 0x28
jmp 0x40ab37
push 0x1e
jmp 0x40ab37
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret
Function at 0x40ba80
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 0x40bafc
push 9
call esi
test bl, al
je 0x40bafc
push 0x11
call esi
test bl, al
jne 0x40bafc
push 0x10
call esi
test bl, al
jne 0x40bafc
push 0x12
call esi
test bl, al
jne 0x40bafc
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 0x40bafc
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40bafc
xor eax, eax
jmp 0x40bb7e
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40bb25
push 0x11
call esi
test bl, al
jne 0x40bb1d
push 0x10
call esi
test bl, al
jne 0x40bb1d
push 0x12
call esi
test bl, al
je 0x40bb25
push 1
push ebp
call fcn.0040ba39
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40bb3b
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40bb7b
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40bb7b
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40bb7b
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40bb7b
dec esi
push esi
push dword [0x413bc0]
call fcn.0040e9ba
test eax, eax
je 0x40bb7b
mov eax, dword [eax + 8]
jmp 0x40bb7d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x40bc40
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 [0x413a94], eax
cmp eax, edi
je 0x40bc73
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x413a98], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x413a90], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x40bcb1
cmp dword [ebp - 0xc], 1
je 0x40bcc2
cmp dword [ebp - 0xc], 2
jne 0x40bcb1
cmp dword [ebp - 0x18], 5
jb 0x40bcc2
jne 0x40bcb1
cmp dword [ebp - 0x14], edi
jne 0x40bcb1
mov dword [0x413a90], edi
cmp dword [0x413a90], edi
je 0x40bcc8
call fcn.0040bb87
test eax, eax
jne 0x40bcc8
mov dword [0x413a90], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x40c96e
Capabilities:
Delete file
Set file attributes

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