joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018260
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ad8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 4]
push 0x28
mov dword [ebp + 8], esi
mov dword [edi], eax
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10047c76
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [edi + 0xc], xmm0
xor ecx, ecx
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 7
mov word [edi + 0xc], cx
mov dword [edi + 0x24], ecx
mov byte [ebp - 4], 2
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x38], ecx
mov dword [edi + 0x3c], ecx
mov byte [edi + 0x40], cl
mov dword [edi + 0x41], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0xbc]
call fcn.10018160
mov edi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa4]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
mov edx, dword [edx + 4]
call fcn.10018160
mov esi, eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.1001a680
push 0x10098d34
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
call fcn.10018cb0
add esp, 4
push esi
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.10018e70
push 0x10098d30
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x5c]
call fcn.10018cb0
add esp, 4
push edi
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
call fcn.10018e70
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
lea esi, [edi + 0xc]
cmp esi, eax
je 0x100183ba
mov ecx, esi
call fcn.100104a0
movups xmm0, xmmword [ebp - 0x28]
xor eax, eax
mov word [ebp - 0x28], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
call fcn.100104a0
lea ecx, [ebp - 0x5c]
call fcn.100104a0
lea ecx, [ebp - 0x44]
call fcn.100104a0
lea ecx, [ebp - 0x74]
call fcn.100104a0
lea ecx, [ebp - 0x8c]
call fcn.100104a0
lea ecx, [ebp - 0xa4]
call fcn.100104a0
lea ecx, [ebp - 0xbc]
call fcn.100104a0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10018a80
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1006ae43
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 0x2c]
mov byte [ebx + 0x40], 0
test eax, eax
je 0x10018aba
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebx + 0x2c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x10018ad8
jle 0x10018ad1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x24], 0
mov dword [ebp - 4], 0xffffffff
xor esi, esi
push esi
mov ecx, ebx
call fcn.10018880
inc esi
cmp esi, 4
jl 0x10018ae1
cmp dword [ebx + 8], 0
je 0x10018bb6
mov eax, dword [0x100ad1b8]
test al, 1
jne 0x10018b39
or eax, 1
mov dword [0x100ad1b8], eax
mov dword [ebp - 4], 1
push 0x1006d030
mov dword [0x100ad1b0], 0
mov dword [0x100ad1b4], 0xc0000225
call fcn.10047fb9
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebx]
push edi
mov dword [ebp - 0x10], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x100ad1b0]
cmp eax, 0xffffffff
je 0x10018b79
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 4
lea ecx, [ebp - 0x14]
push ecx
push 0x8005e020
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10018b79
mov eax, dword fs:[0x18]
mov esi, dword [ebx + 4]
lea edi, [ebx + 4]
mov ecx, edi
push dword [esi + 4]
push edi
call fcn.10018e00
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [edi + 4], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x30], 0
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1001acd0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b003
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x10
push esi
mov esi, ecx
mov dword [ebp - 0x14], esi
push edi
mov dword [esi], 0
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 4
call fcn.1001b450
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 5
call fcn.1001b450
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi + 0x94], xmm0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 7
mov word [esi + 0x94], ax
movups xmmword [esi + 0xac], xmm0
mov dword [esi + 0xbc], eax
mov dword [esi + 0xc0], 7
mov word [esi + 0xac], ax
lea edi, [esi + 0xc4]
mov dword [ebp - 0x18], edi
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea esi, [edi + 0x18]
mov byte [ebp - 4], 9
push 0x44
mov dword [ebp - 0x1c], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.10047c76
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x1001af60
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1006b020
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
push 1
mov esi, ecx
call fcn.1001b110
mov edi, dword [ebp + 8]
lea ecx, [esi + 0x94]
cmp ecx, edi
je 0x1001afa7
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x1001af9e
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
call fcn.100116a0
mov byte [esi + 0x10], 0
cmp dword [edi + 0x14], 7
jbe 0x1001afb3
mov edi, dword [edi]
push 0
push 0
push 3
push 0
push 7
push 0x120089
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 4], 0
mov ecx, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ecx
je 0x1001afe9
test ecx, ecx
jle 0x1001afe5
push ecx
call ebx
mov dword [esi], edi
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
jle 0x1001b0e0
push 0
push 0
push 0
push 0x1000002
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 4], 1
mov ecx, dword [esi + 4]
cmp edi, ecx
je 0x1001b028
test ecx, ecx
jle 0x1001b023
push ecx
call ebx
mov dword [esi + 4], edi
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
push 0
push 0
push 0
test ecx, ecx
jle 0x1001b04d
push 4
push ecx
mov byte [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
lea eax, [ebp - 0x10]
jmp 0x1001b098
push 2
push 0
push dword [esi]
mov byte [esi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 4], 2
mov ecx, dword [esi + 4]
cmp edi, ecx
je 0x1001b079
test ecx, ecx
jle 0x1001b074
push ecx
call ebx
mov dword [esi + 4], edi
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
jle 0x1001b0bf
push 0
push 0
push 0
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
lea eax, [ebp - 0x14]
lea ebx, [esi + 8]
cmp eax, ebx
je 0x1001b0b4
mov eax, dword [ebx]
cmp edi, eax
je 0x1001b0bf
test eax, eax
jle 0x1001b0b0
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx], edi
jmp 0x1001b0bf
test edi, edi
jle 0x1001b0bf
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [esi + 8], 0
je 0x1001b0e0
push ecx
mov ecx, esi
call fcn.1001b220
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword fs:[0x18]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, dword [eax + 0xbf4]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1001b110
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1006a900
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x1001b142
jle 0x1001b13b
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1001b160
jle 0x1001b159
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [ebp - 4], 1
mov eax, dword [esi]
test eax, eax
je 0x1001b17c
jle 0x1001b176
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x1001b193
jle 0x1001b18c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov dword [esi + 0x34], 0
cmp byte [ebp + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
jne 0x1001b205
cmp dword [esi + 0xa8], 7
lea ecx, [esi + 0x94]
jbe 0x1001b1bc
mov ecx, dword [esi + 0x94]
xor eax, eax
mov dword [esi + 0xa4], 0
mov word [ecx], ax
cmp byte [esi + 0x10], al
je 0x1001b1e9
add esi, 0xac
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x1001b1e0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1001b1ef
add esi, 0xac
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x1001b1f9
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1001b220
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x1001b247
mov eax, 0xc0000141
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x1001b3da
mov edx, dword [ebx + 0x3c]
add edx, ebx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
cmp dword [edx], 0x4550
jne 0x1001b3da
mov eax, 0x20b
mov dword [esp + 0x18], 0x5e
lea ecx, [esi + 0x3c]
cmp word [edx + 0x18], ax
jne 0x1001b2bc
mov byte [esi + 0xd], 1
lea edi, [edx + 0x108]
mov eax, dword [edx + 0x30]
mov ecx, dword [edx + 0x34]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x20], eax
mov eax, dword [edx + 0x50]
mov dword [esi + 0x28], eax
mov eax, dword [edx + 0x54]
mov dword [esi + 0x30], eax
mov eax, dword [edx + 0x28]
mov dword [esi + 0x2c], eax
movzx ecx, word [edx + 0x5c]
mov dword [esp + 0x14], ecx
lea ecx, [esi + 0x3c]
mov byte [esp + 0x13], 1
jmp 0x1001b2f2
mov byte [esi + 0xd], 0
lea edi, [edx + 0xf8]
mov eax, dword [edx + 0x34]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0
mov eax, dword [edx + 0x50]
mov dword [esi + 0x28], eax
mov eax, dword [edx + 0x54]
mov dword [esi + 0x30], eax
mov eax, dword [edx + 0x28]
mov dword [esi + 0x2c], eax
movzx ebx, word [edx + 0x5c]
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x14]
mov eax, edx
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
movzx eax, word [ecx + eax]
mov dword [esi + 0x44], eax
mov ax, word [edx + 0x16]
shr ax, 0xd
not al
and al, 1
cmp byte [esp + 0x13], 0
mov byte [esi + 0xe], al
je 0x1001b323
add edx, 0xf8
jmp 0x1001b329
add edx, 0xe8
mov eax, dword [edx]
mov ebx, dword [esp + 0x1c]
test eax, eax
je 0x1001b376
push ecx
push eax
mov ecx, esi
call fcn.1001b3f0
test eax, eax
je 0x1001b376
test byte [eax + 0x10], 1
je 0x1001b376
sub eax, ebx
mov byte [esi + 0xf], 1
add eax, 0x10
lea ecx, [esi + 0xc4]
mov dword [esi + 0x40], eax
lea eax, [esi + 0x94]
push eax
call fcn.1002a010
test al, al
je 0x1001b37a
push ecx
lea ecx, [esi + 0xc4]
call fcn.1002a140
jmp 0x1001b37a
mov byte [esi + 0xf], 0
mov eax, dword [esi + 0x14]
xor ecx, ecx
xor ebx, ebx
cmp cx, word [eax + 6]
jae 0x1001b3cf
lea ecx, [esi + 0x48]
nop word [eax + eax]
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x50]
je 0x1001b3b6
movups xmm0, xmmword [edi]
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [eax + 0x20], xmm0
add dword [esi + 0x4c], 0x28
jmp 0x1001b3c0
push edi
push eax
call fcn.1001b640
lea ecx, [esi + 0x48]
mov eax, dword [esi + 0x14]
inc ebx
add edi, 0x28
movzx eax, word [eax + 6]
cmp ebx, eax
jl 0x1001b390
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov eax, 0xc000007b
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1001d130
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push edi
mov edi, ecx
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x10], xmm0
mov dword [edi + 4], eax
lea eax, [ebp - 0x24]
push eax
mov dword [edi], vtable.blackbone::Native.0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x10], eax
je 0x1001d195
mov word [edi + 0xc], 0x101
mov eax, edi
mov dword [edi + 8], 0
mov byte [edi + 0xe], 1
pop edi
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
lea eax, [ebp + 8]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov ecx, dword [ebp + 0xc]
cmp ecx, 1
mov edx, dword [ebp + 8]
sete al
cmp edx, 1
mov byte [edi + 0xc], al
sete al
mov byte [edi + 0xd], al
cmp ecx, 1
jne 0x1001d1f2
cmp edx, ecx
jne 0x1001d20a
mov dword [edi + 8], 0
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8
test ecx, ecx
jne 0x1001d20a
test edx, edx
jne 0x1001d20a
mov dword [edi + 8], 1
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov byte [edi + 0xf], 1
cmp ecx, 1
setne al
add eax, 2
mov dword [edi + 8], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x1001d5d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b1cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov ebx, ecx
call fcn.10013730
push 0x1009af90
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.1000fd80
mov dword [ebp - 4], 0
call fcn.100170f0
lea edi, [esi + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100142f0
mov eax, dword [ebp - 0x10]
push edi
cmp eax, dword [esi + 4]
je 0x1001d63d
mov esi, dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1001d645
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.1000f910
mov ecx, dword [ebx + 4]
push 0
test esi, esi
je 0x1001d69b
mov edi, dword [ebp + 8]
push 0x100000
push 0x1000
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ecx
push 0
push dword [ebp + 0x20]
push edi
call esi
test eax, eax
jns 0x1001d6e0
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp + 0x1c]
and eax, 1
shl eax, 2
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
je 0x1001d6d4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xbf4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x1001f210
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x100acfe0], 0
jne 0x1001f268
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
dec ecx
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
mov dword [0x100acfd8], eax
mov eax, dword [ebp - 8]
mov dword [0x100acfdc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x100acfe0], eax
mov eax, 0x100acfd8
mov esp, ebp
pop ebp
ret

Function at 0x1001f280
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x100acfe0], 0
jne 0x1001f2d8
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
dec ecx
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
mov dword [0x100acfd8], eax
mov eax, dword [ebp - 8]
mov dword [0x100acfdc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x100acfe0], eax
mov eax, dword [0x100acfd8]
mov esp, ebp
pop ebp
ret
Function at 0x1001f2f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x100acfe0], 0
jne 0x1001f348
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
dec ecx
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
mov dword [0x100acfd8], eax
mov eax, dword [ebp - 8]
mov dword [0x100acfdc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x100acfe0], eax
mov eax, dword [0x100acfdc]
mov esp, ebp
pop ebp
ret

Function at 0x1001f380
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1001f435
mov eax, dword [0x100acfe0]
test eax, eax
jne 0x1001f3e4
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
dec ecx
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
mov dword [0x100acfd8], eax
mov eax, dword [ebp - 8]
mov dword [0x100acfdc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x100acfe0], eax
mov edx, dword [ebp + 8]
test edx, edx
cmove edx, eax
mov eax, dword [0x100acfd8]
dec esi
add esi, eax
neg eax
and esi, eax
mov eax, dword [ebp + 0x14]
mov ecx, eax
and ecx, 1
test al, 2
je 0x1001f40c
lea eax, [ecx + 1]
shl eax, 5
jmp 0x1001f413
lea eax, [ecx*2 + 2]
push eax
push 0x3000
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
je 0x1001f435
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001f437
mov dword [ecx], esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001f470
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100acfe0]
sub esp, 0x24
test eax, eax
jne 0x1001f4c8
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
dec ecx
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
mov dword [0x100acfd8], eax
mov eax, dword [ebp - 8]
mov dword [0x100acfdc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x100acfe0], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
push 0x8000
push 0
push dword [ebp + 0xc]
cmove ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
mov esp, ebp
pop ebp
ret
Function at 0x1001f580
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov eax, ecx
push esi
mov esi, edx
mov dword [ebp - 0x14], eax
push edi
mov edi, dword [eax]
test esi, esi
je 0x1001f6f7
mov eax, dword [0x100acfe0]
test eax, eax
jne 0x1001f5ec
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x34]
dec ecx
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
mov dword [0x100acfd8], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x100acfdc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x100acfe0], eax
mov ecx, dword [0x100acfd8]
push 0x40
push 0x3000
lea ebx, [ecx - 1]
neg ecx
add ebx, esi
and ebx, ecx
test edi, edi
push ebx
push 0
cmovne eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 4], eax
test eax, eax
je 0x1001f6f7
xor edx, edx
mov eax, ebx
div dword [ebp + 8]
push 0x34
mov dword [ebp - 8], eax
lea edi, [eax + 7]
shr edi, 3
add edi, 3
and edi, 0xfffffffc
mov dword [ebp - 0x10], edi
call fcn.1004cbd3
mov esi, eax
lea eax, [edi + edi]
push eax
mov dword [ebp - 0xc], eax
call fcn.1004cbd3
add esp, 8
mov edi, eax
test esi, esi
je 0x1001f6ba
test edi, edi
je 0x1001f6ba
push dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 8]
push 0
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebx
call fcn.10049980
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x14]
mov ebx, dword [ebx]
call fcn.1001f210
test ebx, ebx
jne 0x1001f6cb
mov ebx, dword [eax + 8]
mov eax, dword [ebp - 4]
push 0x8000
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test esi, esi
je 0x1001f6ea
push esi
call fcn.1004cb30
add esp, 4
test edi, edi
je 0x1001f6f7
push edi
call fcn.1004cb30
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret