joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402dd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40d029], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Marmimo
push str.Mimoclass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402e18
xor eax, eax
jmp 0x402e33
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4053e3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004042d5
and dword [ebp - 4], 0
cmp dword [0x40ea48], 0
mov ebx, eax
jne 0x405494
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405545
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405545
push eax
call fcn.00404263
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40ea48], eax
call esi
push eax
call fcn.00404263
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40ea4c], eax
call esi
push eax
call fcn.00404263
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40ea50], eax
call esi
push eax
call fcn.00404263
pop ecx
mov dword [0x40ea58], eax
test eax, eax
je 0x405494
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404263
pop ecx
mov dword [0x40ea54], eax
mov eax, dword [0x40ea54]
cmp eax, ebx
je 0x4054ec
cmp dword [0x40ea58], ebx
je 0x4054ec
push eax
call fcn.004042de
push dword [0x40ea58]
mov esi, eax
call fcn.004042de
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4054ec
test edi, edi
je 0x4054ec
call esi
test eax, eax
je 0x4054e3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4054e3
test byte [ebp - 0xc], 1
jne 0x4054ec
or dword [ebp + 0x10], 0x200000
jmp 0x405525
mov eax, dword [0x40ea4c]
cmp eax, ebx
je 0x405525
push eax
call fcn.004042de
pop ecx
test eax, eax
je 0x405525
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405525
mov eax, dword [0x40ea50]
cmp eax, ebx
je 0x405525
push eax
call fcn.004042de
pop ecx
test eax, eax
je 0x405525
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40ea48]
call fcn.004042de
pop ecx
test eax, eax
je 0x405545
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405547
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40724e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40dac8]
jne 0x407258
repz ret
jmp fcn.00408975
Function at 0x4032be
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x14
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4032c5
mov edx, dword [esp + 0x5c]
lea ecx, [esp]
call fcn.00405060
mov edx, dword [esp + 0x60]
lea ecx, [esp + 4]
call fcn.00405060
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
call fcn.00405060
lea eax, [esp + 0xc]
lea ebp, [esp + 0xc]
mov dword [ebp], 0x3c
mov dword [ebp + 4], 0x140
mov dword [ebp + 0x1c], 0
mov eax, 0x412037
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.0040a642
lea eax, [esp + 0x4c]
push eax
lea ebp, [esp + 0x10]
push dword [ebp + 0x38]
call sub.KERNEL32.dll_GetExitCodeProcess
and eax, eax
je 0x403374
mov ebx, dword [esp + 0x4c]
cmp ebx, 0x103
je 0x403374
jmp 0x403376
jmp 0x403347
mov eax, dword [esp + 0x4c]
jmp 0x40337e
push dword [esp]
call fcn.0040f090
push dword [esp + 4]
call fcn.0040f090
push dword [esp + 8]
call fcn.0040f090
add esp, 0x50
pop ebx
pop ebp
ret 0xc

Function at 0x4033a0
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.0040c110
mov dword [esp], eax
push dword [0x413a90]
push dword [0x413a90]
call fcn.0040c42d
lea eax, [esp + 8]
push eax
call fcn.0040ef80
push dword [esp]
push 0
push 0x41201e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x413a90]
push dword [0x413a90]
push dword [esp + 8]
call fcn.0040c1c0
lea eax, [0x413574]
push eax
call fcn.0040ef80
push dword [esp]
call fcn.0040c210
push dword [0x413574]
call fcn.0040c4bc
push dword [0x413574]
call fcn.0040c4ca
push dword [0x413a90]
push dword [0x413a90]
call fcn.0040c365
lea eax, [0x4134f8]
push eax
call fcn.0040ef80
push dword [esp + 0x14]
pop eax
call fcn.0040c130
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x403479
mov edx, dword [0x413574]
push dword [0x413a90]
call fcn.0040f030
lea eax, [0x4134f8]
push eax
call fcn.0040ef80
mov dword [esp + 0xc], 2
jmp 0x40348b
mov ebx, 1
cmp ebx, dword [esp]
jne 0x40348b
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.0040c130
mov dword [0x413530], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
push ebx
pop eax
call fcn.0040c130
mov dword [0x413444], eax
mov eax, 1
jmp 0x4034be
push dword [esp + 4]
call fcn.0040f090
add esp, 0xc
pop ebx
ret 4
Function at 0x403bd0
Capabilities:
Get system information on windows

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

Function at 0x403c04
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x403c0a
mov edx, dword [esp + 0x30]
lea ecx, [esp]
call fcn.00405060
push 0x21
call fcn.0040c110
mov dword [esp + 4], eax
push 0x21
push dword [esp + 8]
call fcn.0040c260
push 0x20
push dword [esp + 8]
mov eax, dword [0x413590]
push eax
call fcn.0040c280
push 1
push dword [esp + 4]
mov ebx, dword [esp + 0xc]
add ebx, 0x20
push ebx
call fcn.0040c2b0
push dword [0x413a90]
push dword [0x413a90]
push dword [0x413a90]
push dword [0x413a90]
push 0x21
push dword [esp + 0x18]
call fcn.0040d7d0
mov edx, dword [0x412324]
add dword [esp], edx
call fcn.00405a70
lea eax, [esp + 0xc]
push eax
call fcn.0040ef80
push dword [esp + 4]
call fcn.0040c210
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 0x403def
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.KERNEL32.dll_LoadResource
mov dword [0x413448], eax
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x41345c], eax
push dword [esp]
mov edx, 0x412027
pop ecx
call fcn.0040f000
jne 0x403d37
push dword [esp]
mov edx, 0x41202b
pop ecx
call fcn.0040f000
jne 0x403d37
push dword [esp]
mov edx, 0x41202d
pop ecx
call fcn.0040f000
jne 0x403d37
push dword [esp]
mov edx, 0x412035
pop ecx
call fcn.0040f000
jne 0x403d37
jmp 0x403d3e
mov eax, 1
jmp 0x403d40
xor eax, eax
and eax, eax
je 0x403def
push dword [0x41345c]
call fcn.0040c110
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov ebx, dword [0x41345c]
dec ebx
cmp ebx, dword [esp + 0x14]
jl 0x403da5
mov ebx, dword [0x413448]
add ebx, dword [esp + 0x14]
push ebx
pop eax
call fcn.0040c130
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.0040c140
inc dword [esp + 0x14]
jno 0x403d5f
push dword [0x413590]
push dword [0x41345c]
push dword [esp + 0x18]
call fcn.00403000
push dword [esp + 0x10]
pop eax
mov dword [0x413448], eax
push dword [0x41345c]
push dword [esp + 0x14]
call fcn.00404188
mov dword [esp + 0x20], eax
push dword [esp + 0x20]
pop eax
mov dword [0x413448], eax
push dword [esp + 0x20]
call fcn.0040c2f0
mov dword [0x41345c], eax
mov eax, dword [esp + 0xc]
jmp 0x403df7
push dword [esp + 8]
call fcn.0040f090
push dword [esp]
call fcn.0040f090
add esp, 0x24
pop ebx
ret 8
Function at 0x4040bc
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
mov ebx, dword [0x413530]
cmp ebx, 1
jne 0x404179
push dword [0x4135a8]
call fcn.0040978b
mov ebx, eax
and ebx, ebx
jle 0x404120
push dword [0x4135a8]
call fcn.00409795
push dword [0x4135a8]
call fcn.004097aa
or eax, eax
je 0x404120
mov ebp, dword [0x4135ac]
push dword [ebp + 8]
call fcn.0040daf0
mov ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x40411e
mov ebp, dword [0x4135ac]
push dword [ebp + 8]
call fcn.0040c4bc
jmp 0x4040ec
push dword [0x4135b0]
call fcn.0040978b
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x404179
push 5
push 0
push 1
push dword [0x4135b0]
call fcn.00407940
push dword [0x4135b0]
call fcn.00409795
push dword [0x4135b0]
call fcn.004097aa
or eax, eax
je 0x404179
mov ebp, dword [0x4135b4]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x40415a
mov eax, 1
jmp 0x404182
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 [0x4135c0]
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 [0x4135c0]
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 0x4135c0
call fcn.0040ebad
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x4082b7
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40863e
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 0x40866f
cmp byte [eax], 0
je 0x40866f
push eax
call fcn.0040fae0
push eax
push edi
mov dword [ebp + 0x10], eax
call fcn.00408c26
pop ecx
pop ecx
mov esi, eax
jmp 0x408681
cmp dword [edi + 8], esi
je 0x408771
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 4]
mov esi, dword [ecx + eax*4]
test esi, esi
je 0x408771
cmp dword [ebp + 0x14], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
je 0x4086aa
push dword [esi]
push 0
push dword [0x41343c]
call ebx
mov dword [ebp + 8], eax
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x408770
mov eax, dword [ebp + 0xc]
cdq
cmp edx, dword [esi + 4]
jl 0x408770
jg 0x4086cb
cmp eax, dword [esi]
jb 0x408770
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 0x408710
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jne 0x408710
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 0x408770
cmp dword [esi + 4], edx
jne 0x408770
mov dword [ebp - 4], ecx
jmp 0x408770
push dword [esi + 8]
push 0
push dword [0x41343c]
call ebx
mov ebx, eax
test ebx, ebx
je 0x408770
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 0x408761
cmp dword [esi + 0xc], edx
jne 0x408761
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call fcn.00408d8a
cdq
add esp, 0xc
cmp eax, dword [esi]
jne 0x408761
cmp edx, dword [esi + 4]
jne 0x408761
mov eax, dword [esi]
mov dword [ebp - 4], eax
push ebx
push 0
push dword [0x41343c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
mov eax, dword [ebp + 0x14]
xor edi, edi
cmp eax, edi
je 0x4087a4
cmp dword [ebp - 4], 0xffffffff
jne 0x40879a
cmp dword [ebp + 8], edi
je 0x408795
push dword [ebp + 8]
push edi
push dword [0x41343c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], edi
jmp 0x4087a4
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 0x4087b8
cmp byte [eax], 0
je 0x4087b8
push eax
call fcn.0040fb90
mov eax, dword [ebp - 4]
leave
ret
Function at 0x40886e
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.0040fae0
mov esi, dword [ebp + 0x10]
lea ebx, [esi + 0x18]
push ebx
push 0
push dword [0x41343c]
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp + 0x10], edi
test edi, edi
je 0x40895c
push 0
push 5
push ebx
push edi
push esi
push dword [ebp + 0xc]
call fcn.00408df2
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x4088c9
cmp ebx, esi
jge 0x4088c9
mov dword [ebp + 0xc], edi
jmp 0x4088d1
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 0x408944
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 0x408944
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 0x408944
mov dword [ebp - 8], 1
push edi
call fcn.00408a7e
pop ecx
push dword [ebp + 0x10]
push 0
push dword [0x41343c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp + 0x14]
call fcn.0040fb90
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x408ac3
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 0x408c22
push edi
push 0x100
push ebx
push dword [0x41343c]
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 0x408b52
push 0x18
lea eax, [ebp - 0x34]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0x18
jne 0x408c21
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 0x408b6a
push 0x12
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0x12
jne 0x408c21
mov eax, dword [ebp - 8]
cmp dword [esi + 0xc], eax
jl 0x408b90
add eax, 0x40
mov dword [ebp - 8], eax
shl eax, 2
push eax
push dword [esi + 4]
push 8
push dword [0x41343c]
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 [0x41343c]
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 0x408bf2
lea eax, [ecx + eax + 0x18]
jmp 0x408bf9
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 0x408b0a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a1c4
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x413b40]
call fcn.0040e4da
mov edi, eax
test edi, edi
je 0x40a226
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40a1ed
push dword [esp + 0xc]
push edi
call eax
jmp 0x40a226
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.0040f200
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.0040f320
pop esi
pop ebx
pop edi
ret 8

Function at 0x40a54f
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 0x40a638
mov eax, dword [ebp - 0xc]
dec eax
je 0x40a61b
dec eax
jne 0x40a638
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x40a5ae
cmp byte [ebp - 0x1e], 1
jne 0x40a5ae
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x40a617
dec eax
je 0x40a613
dec eax
je 0x40a5f1
dec eax
jne 0x40a638
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40a5e5
dec eax
je 0x40a5d9
dec eax
jne 0x40a638
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x40a638
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x40a638
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x40a638
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40a60f
dec eax
je 0x40a60b
dec eax
jne 0x40a638
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x40a638
push 0x3c
jmp 0x40a637
push 0x32
jmp 0x40a637
push 0x14
jmp 0x40a637
push 5
jmp 0x40a637
cmp dword [ebp - 0x14], 0
je 0x40a635
cmp dword [ebp - 0x14], 0xa
je 0x40a631
cmp dword [ebp - 0x14], 0x5a
jne 0x40a638
push 0x28
jmp 0x40a637
push 0x1e
jmp 0x40a637
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret
Function at 0x40b5a1
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 0x40b61d
push 9
call esi
test bl, al
je 0x40b61d
push 0x11
call esi
test bl, al
jne 0x40b61d
push 0x10
call esi
test bl, al
jne 0x40b61d
push 0x12
call esi
test bl, al
jne 0x40b61d
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 0x40b61d
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40b61d
xor eax, eax
jmp 0x40b69f
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40b646
push 0x11
call esi
test bl, al
jne 0x40b63e
push 0x10
call esi
test bl, al
jne 0x40b63e
push 0x12
call esi
test bl, al
je 0x40b646
push 1
push ebp
call fcn.0040b55a
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40b65c
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40b69c
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40b69c
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40b69c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40b69c
dec esi
push esi
push dword [0x413b48]
call fcn.0040e4da
test eax, eax
je 0x40b69c
mov eax, dword [eax + 8]
jmp 0x40b69e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x40b761
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 [0x413a1c], eax
cmp eax, edi
je 0x40b794
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x413a20], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x413a18], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40b7d2
cmp dword [ebp - 0xc], 1
je 0x40b7e3
cmp dword [ebp - 0xc], 2
jne 0x40b7d2
cmp dword [ebp - 0x18], 5
jb 0x40b7e3
jne 0x40b7d2
cmp dword [ebp - 0x14], edi
jne 0x40b7d2
mov dword [0x413a18], edi
cmp dword [0x413a18], edi
je 0x40b7e9
call fcn.0040b6a8
test eax, eax
jne 0x40b7e9
mov dword [0x413a18], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x40c48e
Capabilities:
Delete file
Set file attributes

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