joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10059a00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x71
xor eax, eax
mov dl, byte [edi + eax + 0x21968dce]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x37
jb 0x10059a11
pop edi
mov byte [esi + 0x37], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10059a40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xeb
xor eax, eax
mov dl, byte [edi + eax - 0x4ee80082]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x42
jb 0x10059a51
pop edi
mov byte [esi + 0x42], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10059a80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x2b
xor eax, eax
mov dl, byte [edi + eax + 0x442b5ee6]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x1b
jb 0x10059a91
pop edi
mov byte [esi + 0x1b], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x1005b100
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009273e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100684b8
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10069525
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x1005b1b8
mov eax, dword [eax]
push 0
push ecx
push eax
mov ecx, edi
call fcn.1005b380
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x1005b7b0
Capabilities:
Link many functions at runtime
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [0x101cd3c0]
xor bl, bl
push edi
cmp esi, dword [0x101cd3c4]
je 0x1005b981
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edi, [esi + 8]
mov dword [ebp - 4], edi
nop dword [eax + eax]
cmp byte [esi], 0
jne 0x1005b94f
cmp byte [0x101d7510], 0
jne 0x1005b8db
test bl, bl
jne 0x1005b81c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.1005b990
test al, al
je 0x1005b981
mov bl, 1
mov edx, dword [ebp - 0x14]
mov edi, dword [edi - 4]
mov eax, edi
mov ecx, dword [edx + 0x34]
sub eax, ecx
push eax
push ecx
push edx
call dword [sym.imp.dbghelp.dll_ImageRvaToSection]
test eax, eax
je 0x1005b947
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x14]
push 0
push 0
sub ecx, dword [eax + 0x34]
add ecx, edi
mov edi, dword [ebp - 8]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1005b947
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x20
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005b947
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x38]
mov edi, 0x1c
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1005b947
add ecx, 4
add edx, 4
sub edi, 4
jae 0x1005b890
mov eax, dword [ebp + 0xc]
movups xmm0, xmmword [esi + 0x28]
push dword [ebp - 0xc]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esi + 0x38]
movups xmmword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
test bl, bl
jne 0x1005b905
push str.GetProcInfo
push dword [0x101d7514]
call eax
push dword [ebp + 8]
call eax
call eax
add esp, 4
test al, al
je 0x1005b981
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov bl, 1
push str.FindEntryPointInfo
push dword [0x101d7514]
call eax
lea ecx, [ebp - 0x38]
push ecx
push dword [edi - 4]
push dword [ebp + 8]
call eax
call eax
add esp, 0xc
test al, al
je 0x1005b94a
mov ecx, edi
lea edx, [ebp - 0x38]
mov edi, 0x1c
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1005b947
add ecx, 4
add edx, 4
sub edi, 4
jae 0x1005b931
jmp 0x1005b8a5
mov edi, dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esi, 0x48
add edi, 0x48
mov dword [ebp - 4], edi
cmp esi, dword [0x101cd3c4]
jne 0x1005b7e0
test bl, bl
je 0x1005b981
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1005b990
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
push 0
push 0
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1005b9cc
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1005b9d5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x14
push esi
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
jne 0x1005ba00
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x10]
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
je 0x1005ba3f
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x1005ba38
mov edx, dword [ecx + 0x3c]
add edx, ecx
cmp dword [edx], 0x4550
jne 0x1005ba38
mov eax, 0x14c
cmp word [edx + 4], ax
je 0x1005ba55
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
pop esi
pop edi
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov al, 1
mov esp, ebp
pop ebp
ret 0x14

Function at 0x1005bbc0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x101cd900]
sub esp, 0x30
test eax, eax
js 0x1005bcdc
cmp eax, 1
jge 0x1005bcdc
push ebx
push edi
push dword [ebp + 0xc]
imul edi, eax, 0x214
inc eax
push 0x100
mov dword [0x101cd900], eax
add edi, 0x101cd6ec
lea ebx, [edi + 4]
mov dword [edi], 1
push ebx
call fcn.1007b906
add esp, 0xc
cmp dword [edi], 0
je 0x1005bcda
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xa]
lea esi, [edi + 0x110]
mov dword [edi + 0x104], eax
movzx eax, word [ebp - 0xe]
mov dword [edi + 0x108], eax
movzx eax, word [ebp - 0x10]
mov dword [edi + 0x10c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [edi + 0x104]
mov eax, 0x100ab904
lea ecx, [ebp - 0x2d]
push dword [edi + 0x108]
sub eax, 0x324561c9
push dword [edi + 0x10c]
push ebx
push eax
call fcn.1005bed0
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x210], eax
pop esi
cmp eax, 0xffffffff
jne 0x1005bcb6
mov dword [edi], 0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1005bcda
push dword [edi + 0x210]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1005bcf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x834
push esi
push edi
test eax, eax
js 0x1005bec3
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x218]
jge 0x1005bec3
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x1005bec3
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
cmp eax, dword [edi + 0x108]
jne 0x1005bd59
movzx eax, word [ebp - 0x12]
cmp eax, dword [edi + 0x10c]
jne 0x1005bd59
movzx eax, word [ebp - 0x14]
cmp eax, dword [edi + 0x110]
je 0x1005be20
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0xe]
lea esi, [edi + 0x114]
mov dword [edi + 0x108], eax
movzx eax, word [ebp - 0x12]
mov dword [edi + 0x10c], eax
movzx eax, word [ebp - 0x14]
mov dword [edi + 0x110], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [edi + 0x108]
lea eax, [edi + 8]
push dword [edi + 0x10c]
lea ecx, [ebp - 0x31]
push dword [edi + 0x110]
push eax
mov eax, 0x100ab904
sub eax, 0x324561c9
push eax
call fcn.1005bed0
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x214], eax
cmp eax, 0xffffffff
jne 0x1005bdf5
mov dword [edi + 4], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1005be20
push dword [edi + 0x214]
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x834]
push 0
push eax
call fcn.1006fc00
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x834]
push 0x400
push eax
call fcn.1002c380
add esp, 0x14
lea eax, [ebp - 0x434]
push 0x400
push 0
push eax
call fcn.1006fc00
add esp, 0xc
lea eax, [ebp - 0x834]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
lea eax, [ebp - 0x434]
push str._02d:_02d:_02d__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x434]
add esp, 0x18
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005bea0
push 0
lea eax, [ebp + 0xc]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x434]
push eax
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1005bed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x44
xor eax, eax
mov dl, byte [edi + eax + 0x324561c9]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x1c
jb 0x1005bee1
pop edi
mov byte [esi + 0x1c], 0
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x1005bfa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005c011
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 1
push eax
push 0x101cd90c
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0x10
push eax
push 0
push str.LangSelection
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1005c008
push 0x100ab964
push 0x10
push 0x101cd90c
call fcn.1007b906
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x1005c310
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x10b3b52c]
test eax, eax
je 0x1005c32c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x1005c386
mov eax, dword [eax]
test eax, eax
jne 0x1005c320
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
test ecx, ecx
je 0x1005c384
push esi
lea edx, [ecx + 0x20]
mov dword [ecx + 4], 0
mov esi, edx
mov dword [ecx + 8], 0
sub esi, ecx
nop dword [eax]
mov eax, dword [ecx + 4]
add esi, 0x20
mov dword [edx], eax
mov dword [ecx + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x1005c360
mov eax, dword [0x10b3b52c]
mov dword [ecx], eax
mov dword [0x10b3b52c], ecx
pop esi
mov eax, ecx
ret
Function at 0x1005cd70
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push 0
push 4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1005ce4b
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1005ce44
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x1c], 0x10
jb 0x1005ce29
call ebx
cmp dword [ebp - 0x10], eax
jne 0x1005ce29
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x14], eax
je 0x1005ce29
mov ecx, dword [esi]
test ecx, ecx
jne 0x1005cdef
push 0x200
push ecx
push dword [0x101d9534]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x1005ce43
jmp 0x1005ce18
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1005ce18
shl eax, 3
push eax
push ecx
push 0
push dword [0x101d9534]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x1005ce43
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edx, dword [esi + 8]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x14]
mov dword [ecx + edx*4], eax
lea eax, [edx + 1]
mov dword [esi + 8], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1005cdb0
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1005ce60
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.1005cd70
cmp dword [edi], 0
je 0x1005cecc
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1005cecb
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1005cec4
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.1005cc20
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x1005ce91
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x1005cee0
Capabilities:
Resume thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x1005cf2c
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1005cf1b
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1005cf14
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x1005cef1
pop ebx
push dword [edi]
push 0
push dword [0x101d9534]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
ret
Function at 0x1005cf30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
imul edi, ecx, 0x2c
mov ebx, 5
add edi, dword [0x10b3b520]
test byte [edi + 0x14], 1
mov esi, dword [edi]
je 0x1005cf54
sub esi, ebx
mov ebx, 7
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1005cf72
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi], 0xe9
mov eax, dword [edi + 4]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
test byte [edi + 0x14], 1
je 0x1005cf8d
mov eax, dword [edi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [edi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005cfc0
Capabilities:
Allocate or change rwx memory
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [0x10b3b528]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x1005d123
mov eax, dword [0x10b3b520]
add eax, 0x14
test byte [eax], 2
je 0x1005cffa
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x1005cfe5
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1005d123
push edi
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1005ce60
mov edx, dword [0x10b3b528]
add esp, 4
cmp esi, edx
jae 0x1005d0d6
imul ecx, esi, 0x2c
mov dword [ebp - 0xc], ecx
nop dword [eax + eax]
mov ebx, dword [0x10b3b520]
add ebx, ecx
test byte [ebx + 0x14], 2
jne 0x1005d0bb
test byte [ebx + 0x14], 1
mov eax, 5
mov edi, dword [ebx]
mov dword [ebp - 4], eax
je 0x1005d058
sub edi, eax
mov eax, 7
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
push ecx
push 0x40
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1005d0ce
mov byte [edi], 0xe9
mov eax, dword [ebx + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [ebx + 0x14], 1
je 0x1005d085
mov eax, dword [ebx]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [ebx + 0x14], 6
xor ebx, ebx
mov edx, dword [0x10b3b528]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ebx
jmp 0x1005d0bd
xor ebx, ebx
inc esi
add ecx, 0x2c
mov dword [ebp - 0xc], ecx
cmp esi, edx
jb 0x1005d030
jmp 0x1005d0d6
mov ebx, 0xa
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005d122
xor esi, esi
cmp dword [ebp - 0x10], esi
jbe 0x1005d113
mov ebx, eax
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1005d107
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x1005d0e6
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
push eax
push 0
push dword [0x101d9534]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005d730
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1005d834
push 0x104
lea eax, [ebp - 0x450]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x1005d82d
push ecx
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x450]
call fcn.10062d80
add esp, 4
test al, al
je 0x1005d82d
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.1005b7b0
test al, al
jne 0x1005d7c4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edx, [ebp - 0x40]
mov ecx, 1
call fcn.10032a20
add esp, 4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.1005bab0
test al, al
jne 0x1005d7fa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edx, [ebp - 0x40]
mov ecx, 2
call fcn.10032a20
add esp, 4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push ecx
lea eax, [ebp - 0x248]
push eax
call fcn.100338e0
test al, al
jne 0x1005d82d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edx, [ebp - 0x40]
mov ecx, 5
call fcn.10032a20
add esp, 4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1005d9f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10092778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.10064340
mov word [ebp - 0xc38], 0xac2
mov byte [ebp - 0xc36], 0xc
call fcn.1007b717
and eax, 0x800000ff
jns 0x1005da5b
dec eax
or eax, 0xffffff00
inc eax
mov ebx, dword [ebp - 0x14]
xor edi, edi
mov byte [ebp - 0xc35], al
mov eax, dword [ebp - 0x18]
sub ebx, eax
sar ebx, 2
mov byte [ebp - 0xc34], 0x17
mov dword [ebp - 0xc30], ebx
test ebx, ebx
je 0x1005db38
lea esi, [ebp - 0x72c]
jmp 0x1005da93
mov eax, dword [ebp - 0x18]
cmp edi, 0x14
jge 0x1005db38
push 0x104
lea ecx, [ebp - 0x120]
push ecx
push dword [eax + edi*4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x104
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax + edi*4]
call dword [sym.imp.USER32.dll_GetClassNameA]
movups xmm0, xmmword [ebp - 0x120]
inc edi
movups xmmword [esi - 0x500], xmm0
movups xmm0, xmmword [ebp - 0x110]
movups xmmword [esi - 0x4f0], xmm0
movups xmm0, xmmword [ebp - 0x100]
movups xmmword [esi - 0x4e0], xmm0
movups xmm0, xmmword [ebp - 0xf0]
movups xmmword [esi - 0x4d0], xmm0
movups xmm0, xmmword [ebp - 0x228]
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x218]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x208]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x1f8]
movups xmmword [esi + 0x30], xmm0
add esi, 0x40
cmp edi, ebx
jb 0x1005da90
push 0xa0c
lea eax, [ebp - 0xc38]
push eax
call fcn.10030f00
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1005db5f
mov eax, dword [ebp - 0x10]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.10056860
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4