joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011180
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x100111bd
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x100111a3
cmp byte [esi], bl
jne 0x100111a3
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x10092928]
test bl, bl
jne 0x10011194
pop edi
pop esi
not ecx
pop ebx
jmp fcn.10011120
Function at 0x1001f470
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x1010a958]
test bl, bl
je 0x1001f4b6
or edi, 0xffffffff
cmp bl, 0x23
jne 0x1001f497
cmp byte [esi], bl
jne 0x1001f497
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x10092928]
test bl, bl
jne 0x1001f488
mov edi, dword [0x1010a958]
mov ecx, dword [edi + 0x5b68]
not eax
mov edx, dword [edi + 0x5b70]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x1001f4dd
cmp dword [edx + 4], eax
je 0x1001f4e0
add edx, 0x24
cmp edx, ecx
jne 0x1001f4d1
xor eax, eax
ret
mov eax, edx
ret
Function at 0x10029130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10029166
mov eax, dword [0x1010a958]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x10029156
dec dword [eax + 0xb0]
push ecx
call fcn.100678b0
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1002919a
mov eax, dword [0x1010a958]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1002918a
dec dword [eax + 0xb0]
push ecx
call fcn.100678b0
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100291ce
mov eax, dword [0x1010a958]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x100291be
dec dword [eax + 0xb0]
push ecx
call fcn.100678b0
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1002921e
mov eax, dword [0x1010a958]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x1002920e
dec dword [eax + 0xb0]
push ecx
call fcn.100678b0
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x10029252
mov eax, dword [0x1010a958]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x10029242
dec dword [eax + 0xb0]
push ecx
call fcn.100678b0
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x10029286
mov eax, dword [0x1010a958]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x10029276
dec dword [eax + 0xb0]
push ecx
call fcn.100678b0
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.1002d030
Function at 0x100330b0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100de0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x1010a958]
lea eax, [ebp - 0x10]
push esi
push edi
push eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1003321b
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1003321b
push 0x38
call fcn.1006c980
mov esi, dword [0x1010a958]
add esp, 4
mov edi, eax
test esi, esi
je 0x1003310c
inc dword [esi + 0xb0]
test edi, edi
je 0x1003311f
push 0x38
push 0
push edi
call fcn.10060660
add esp, 0xc
jmp 0x10033121
xor edi, edi
or dword [ebx + 0xc], 6
mov dword [ebx + 0x70], edi
mov dword [ebx + 0x68], str.imgui_impl_win32
mov ebx, dword [ebp - 0x24]
mov dword [edi], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
test esi, esi
je 0x1003315c
mov esi, dword [esi + 0x70]
jmp 0x1003315e
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x10033181
mov dword [esi], eax
mov eax, dword [0x1010a958]
xor esi, esi
mov dword [ebp - 0x38], str.xinput1_4.dll
mov dword [ebp - 0x34], str.xinput1_3.dll
mov dword [ebp - 0x30], str.xinput9_1_0.dll
mov eax, dword [eax + 0x4824]
mov dword [ebp - 0x2c], str.xinput1_2.dll
mov dword [ebp - 0x28], str.xinput1_1.dll
mov eax, dword [eax]
mov dword [eax + 0x24], ebx
mov byte [edi + 0x29], 1
nop word [eax + eax]
push dword [ebp + esi*4 - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x100331e9
inc esi
cmp esi, 5
jl 0x100331c0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e256
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e256
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005e256
mov esp, ebp
pop ebp
ret
Function at 0x10047e10
Capabilities:
Hash data with crc32

Disassembly:
push ecx
test dword [ecx + 0xc], 0x100000
push ebx
push esi
push edi
mov edi, edx
je 0x10047e82
mov cl, byte [edi]
lea esi, [edi + 1]
or eax, 0xffffffff
test cl, cl
je 0x10047e58
or edi, 0xffffffff
nop
cmp cl, 0x23
jne 0x10047e3f
cmp byte [esi], cl
jne 0x10047e3f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10092928]
test cl, cl
jne 0x10047e30
mov ecx, dword [0x1010a958]
not eax
cmp dword [ecx + 0x3edc], eax
jne 0x10047e6e
mov dword [ecx + 0x3ee0], eax
cmp dword [ecx + 0x3f04], eax
jne 0x10047ec8
mov byte [ecx + 0x3f08], 1
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [0x1010a958]
xor edx, edx
mov esi, dword [eax + 0x3e90]
mov ecx, dword [esi + 0xe4]
mov eax, dword [esi + 0xec]
push dword [eax + ecx*4 - 4]
mov ecx, edi
call fcn.1000ac70
mov ecx, dword [esi]
mov ebx, eax
add esp, 4
cmp dword [ecx + 0x3ec4], ebx
jne 0x10047ec6
push ecx
push edi
mov edx, 0xb
mov ecx, ebx
call fcn.100205b0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1004bfb0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100de0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x28], edx
push edi
xor ebx, ebx
push ebx
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1004c138
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1004c0c7
mov ebx, 1
cmp dword [ebp - 0x20], 0x10
jb 0x1004c08a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1004c08a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1004c08a
mov edx, dword [esi]
test edx, edx
jne 0x1004c056
push 0x200
push edx
push dword [0x1010a964]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1004c0af
jmp 0x1004c07e
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1004c07e
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x1010a964]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1004c0af
mov dword [esi], edx
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1004c011
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1004c0c7
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x1004c0c7
push eax
push ebx
push dword [0x1010a964]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1004c138
cmp dword [esi], 0
je 0x1004c125
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x1004c125
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov eax, dword [esi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1004c116
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x28]
mov ecx, edi
call fcn.1004be40
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
inc ebx
add ecx, 4
mov dword [ebp - 0x24], ecx
cmp ebx, dword [esi + 8]
jb 0x1004c0e3
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e256
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 9
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005e256
mov esp, ebp
pop ebp
ret
Function at 0x1004c150
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x1004c1b4
push ebx
xor ebx, ebx
cmp dword [edi + 8], ebx
jbe 0x1004c1a3
xor ecx, ecx
mov dword [ebp - 4], ecx
push esi
nop word [eax + eax]
mov eax, dword [edi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x1004c193
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, dword [edi + 8]
jb 0x1004c170
pop esi
push dword [edi]
push 0
push dword [0x1010a964]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x1004c1c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100de0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x1010d090]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebx, [eax*2 + 5]
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1004c21c
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e256
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1004c237
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005e256
mov esp, ebp
pop ebp
ret
Function at 0x1004ca20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100de0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.d3d9.dll
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.1006d18b
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [eax + 0x128000]
cmp eax, ecx
jae 0x1004ca9c
mov esi, 0x6c7
mov edx, 0x8689
inc eax
cmp word [eax], si
jne 0x1004ca92
cmp word [eax + 6], dx
jne 0x1004ca92
cmp word [eax + 0xc], dx
je 0x1004cab6
lea ecx, [eax + 0x128000]
cmp eax, ecx
jb 0x1004ca80
mov ecx, dword [eax + 1]
mov eax, dword [ebp + 8]
pop esi
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e256
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [eax + 2]
jmp 0x1004ca9f

Function at 0x1004ce40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1004ce8e
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0x1004cd20
push 0
push 0
mov dword [0x1010a968], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.1004c310
cmp dword [0x1010a964], 0
jne 0x1004ce85
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x1010a964], eax
xor eax, eax
mov ecx, 0x1010a960
xchg dword [ecx], eax
mov eax, 1
pop ebp
ret 0xc
Function at 0x1004e000
Capabilities:
Create directory
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087d0e
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
mov eax, dword [0x100de0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], 0x1000173
xor eax, eax
nop word [eax + eax]
lea ecx, [eax + 0x5c]
xor byte [ebp + eax - 0x14], cl
inc eax
cmp eax, 2
jb 0x1004e040
push ecx
lea eax, [ebp - 0x12]
mov byte [ebp - 0x11], 0
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x50]
call fcn.1004cef0
or esi, 6
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0xf
mov ecx, edi
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x50]
cmova eax, esi
cmp dword [edi + 0x14], 0xf
jbe 0x1004e07f
mov ecx, dword [edi]
push dword [ebp - 0x40]
mov edx, dword [edi + 0x10]
push eax
mov eax, dword [ebp - 0x1c]
inc eax
push eax
call fcn.10051a30
mov edx, eax
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], edx
cmp eax, 0xf
jbe 0x1004e0ce
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x1004e0c1
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004e1d4
push ecx
push esi
call fcn.1005e893
mov edx, dword [ebp - 0x1c]
add esp, 8
cmp dword [edi + 0x10], edx
mov ecx, edx
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
cmovb ecx, dword [edi + 0x10]
mov eax, edi
cmp dword [edi + 0x14], 0xf
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0
jbe 0x1004e0f6
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.10051c20
mov eax, dword [ebp - 0x18]
or eax, 8
or eax, 1
mov dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0xf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x38]
cmova eax, dword [ebp - 0x38]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1004e13f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0xd], 1
cmp eax, 0xb7
jne 0x1004e143
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
test cl, 1
je 0x1004e19a
and ecx, 0xfffffffe
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x1004e188
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004e17e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004e1d4
push ecx
push edx
call fcn.1005e893
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp byte [ebp - 0xd], 0
jne 0x1004e1c1
cmp dword [ebp - 0x1c], 0xffffffff
je 0x1004e1ae
mov esi, dword [ebp - 0x18]
jmp 0x1004e031
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.1006c921
int3
Function at 0x1004f3a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x1004f3d2
jl 0x1004f3c5
test ecx, ecx
jne 0x1004f3d2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1004f4af
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x1004f402
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x1004f404
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x1004f458
jg 0x1004f415
test esi, esi
je 0x1004f458
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x1004f429
jl 0x1004f423
cmp ecx, esi
jae 0x1004f429
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.100600d0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x1004f47c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x1004f498
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x1004f3e7
jl 0x1004f498
test ecx, ecx
jne 0x1004f3e7
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x1004f4ed
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x1004f4ed
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.100600d0
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x1004f557
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1004f513
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x1004f542
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.10067a89
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1004f557
cmp edi, eax
ja 0x1004f520
test edi, edi
je 0x1004f557
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.10067a89
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100509e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087fa0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100de0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
lea eax, [ecx + 4]
mov dword [ebp - 0x14], ecx
lea ebx, [ecx + 0x24]
mov dword [ecx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
lea edi, [ecx + 0x28]
mov dword [ebp - 0x14], eax
push 8
mov dword [eax], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.1005e544
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1005d4a7
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [eax + 0x34], esi
call fcn.10050e10
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
lea esi, [eax + 4]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [eax + 0xc], esi
mov esi, eax
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
mov dword [eax + 0x10], edx
mov dword [eax + 0x1c], ecx
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [0x1010ca80]
mov edx, dword [0x1010ca84]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10050e70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088030
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100de0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.1005e544
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1005d4a7
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10050e10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005ce90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088740
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x100de0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.1005cab0
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.1005cf30
mov dword [ebp - 0x24], 4
mov esi, dword [eax]
lea eax, [ebp - 0x20]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0x1c]
mov esi, dword [esi]
mov dword [ebp - 4], 0
test eax, eax
je 0x1005cf0f
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push ecx
push dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret