joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10028b00
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10064ef3
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 0x10028b3a
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 0x10028b58
jle 0x10028b51
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.10028900
inc esi
cmp esi, 4
jl 0x10028b61
cmp dword [ebx + 8], 0
je 0x10028c36
mov eax, dword [0x100a8a24]
test al, 1
jne 0x10028bb9
or eax, 1
mov dword [0x100a8a24], eax
mov dword [ebp - 4], 1
push 0x10065de0
mov dword [0x100a8a1c], 0
mov dword [0x100a8a20], 0xc0000225
call fcn.1004412b
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 [0x100a8a1c]
cmp eax, 0xffffffff
je 0x10028bf9
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 0x10028bf9
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.10028e80
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 0x1002aa00
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 0x100650d3
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.1002b180
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 5
call fcn.1002b180
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.10044157
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 0x1002ac90
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100650f0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
push 1
mov esi, ecx
call fcn.1002ae40
mov edi, dword [ebp + 8]
lea ecx, [esi + 0x94]
cmp ecx, edi
je 0x1002acd7
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x1002acce
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
call fcn.10013eb0
mov byte [esi + 0x10], 0
cmp dword [edi + 0x14], 7
jbe 0x1002ace3
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 0x1002ad19
test ecx, ecx
jle 0x1002ad15
push ecx
call ebx
mov dword [esi], edi
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
jle 0x1002ae10
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 0x1002ad58
test ecx, ecx
jle 0x1002ad53
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 0x1002ad7d
push 4
push ecx
mov byte [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
lea eax, [ebp - 0x10]
jmp 0x1002adc8
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 0x1002ada9
test ecx, ecx
jle 0x1002ada4
push ecx
call ebx
mov dword [esi + 4], edi
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
jle 0x1002adef
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 0x1002ade4
mov eax, dword [ebx]
cmp edi, eax
je 0x1002adef
test eax, eax
jle 0x1002ade0
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx], edi
jmp 0x1002adef
test edi, edi
jle 0x1002adef
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [esi + 8], 0
je 0x1002ae10
push ecx
mov ecx, esi
call fcn.1002af50
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 0x1002ae40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100649b0
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x1002ae72
jle 0x1002ae6b
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 0x1002ae90
jle 0x1002ae89
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 0x1002aeac
jle 0x1002aea6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x1002aec3
jle 0x1002aebc
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 0x1002af35
cmp dword [esi + 0xa8], 7
lea ecx, [esi + 0x94]
jbe 0x1002aeec
mov ecx, dword [esi + 0x94]
xor eax, eax
mov dword [esi + 0xa4], 0
mov word [ecx], ax
cmp byte [esi + 0x10], al
je 0x1002af19
add esi, 0xac
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x1002af10
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1002af1f
add esi, 0xac
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x1002af29
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 0x1002af50
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 0x1002af77
mov eax, 0xc0000141
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x1002b10a
mov edx, dword [ebx + 0x3c]
add edx, ebx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
cmp dword [edx], 0x4550
jne 0x1002b10a
mov eax, 0x20b
mov dword [esp + 0x18], 0x5e
lea ecx, [esi + 0x3c]
cmp word [edx + 0x18], ax
jne 0x1002afec
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 0x1002b022
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 0x1002b053
add edx, 0xf8
jmp 0x1002b059
add edx, 0xe8
mov eax, dword [edx]
mov ebx, dword [esp + 0x1c]
test eax, eax
je 0x1002b0a6
push ecx
push eax
mov ecx, esi
call fcn.1002b120
test eax, eax
je 0x1002b0a6
test byte [eax + 0x10], 1
je 0x1002b0a6
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.10039d70
test al, al
je 0x1002b0aa
push ecx
lea ecx, [esi + 0xc4]
call fcn.10039ea0
jmp 0x1002b0aa
mov byte [esi + 0xf], 0
mov eax, dword [esi + 0x14]
xor ecx, ecx
xor ebx, ebx
cmp cx, word [eax + 6]
jae 0x1002b0ff
lea ecx, [esi + 0x48]
nop word [eax + eax]
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x50]
je 0x1002b0e6
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 0x1002b0f0
push edi
push eax
call fcn.1002b370
lea ecx, [esi + 0x48]
mov eax, dword [esi + 0x14]
inc ebx
add edi, 0x28
movzx eax, word [eax + 6]
cmp ebx, eax
jl 0x1002b0c0
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 0x1002cec0
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 0x1002cf25
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 0x1002cf82
cmp edx, ecx
jne 0x1002cf9a
mov dword [edi + 8], 0
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8
test ecx, ecx
jne 0x1002cf9a
test edx, edx
jne 0x1002cf9a
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 0x1002d360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006529d
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.10023ac0
push 0x100967d0
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.10011190
mov dword [ebp - 4], 0
call fcn.10027170
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.10024550
mov eax, dword [ebp - 0x10]
push edi
cmp eax, dword [esi + 4]
je 0x1002d3cd
mov esi, dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1002d3d5
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10003480
mov ecx, dword [ebx + 4]
push 0
test esi, esi
je 0x1002d42b
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 0x1002d470
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 0x1002d464
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 0x1002ef70
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x100a87e0], 0
jne 0x1002efc8
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 [0x100a87d8], eax
mov eax, dword [ebp - 8]
mov dword [0x100a87dc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x100a87e0], eax
mov eax, 0x100a87d8
mov esp, ebp
pop ebp
ret

Function at 0x1002efe0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x100a87e0], 0
jne 0x1002f038
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 [0x100a87d8], eax
mov eax, dword [ebp - 8]
mov dword [0x100a87dc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x100a87e0], eax
mov eax, dword [0x100a87d8]
mov esp, ebp
pop ebp
ret
Function at 0x1002f050
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x100a87e0], 0
jne 0x1002f0a8
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 [0x100a87d8], eax
mov eax, dword [ebp - 8]
mov dword [0x100a87dc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x100a87e0], eax
mov eax, dword [0x100a87dc]
mov esp, ebp
pop ebp
ret

Function at 0x1002f0e0
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 0x1002f195
mov eax, dword [0x100a87e0]
test eax, eax
jne 0x1002f144
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 [0x100a87d8], eax
mov eax, dword [ebp - 8]
mov dword [0x100a87dc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x100a87e0], eax
mov edx, dword [ebp + 8]
test edx, edx
cmove edx, eax
mov eax, dword [0x100a87d8]
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 0x1002f16c
lea eax, [ecx + 1]
shl eax, 5
jmp 0x1002f173
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 0x1002f195
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1002f197
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 0x1002f1d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100a87e0]
sub esp, 0x24
test eax, eax
jne 0x1002f228
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 [0x100a87d8], eax
mov eax, dword [ebp - 8]
mov dword [0x100a87dc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x100a87e0], 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 0x1002f2e0
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 0x1002f457
mov eax, dword [0x100a87e0]
test eax, eax
jne 0x1002f34c
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 [0x100a87d8], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x100a87dc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x100a87e0], eax
mov ecx, dword [0x100a87d8]
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 0x1002f457
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.100509ca
mov esi, eax
lea eax, [edi + edi]
push eax
mov dword [ebp - 0xc], eax
call fcn.100509ca
add esp, 8
mov edi, eax
test esi, esi
je 0x1002f41a
test edi, edi
je 0x1002f41a
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.10045a70
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.1002ef70
test ebx, ebx
jne 0x1002f42b
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 0x1002f44a
push esi
call fcn.10048e50
add esp, 4
test edi, edi
je 0x1002f457
push edi
call fcn.10048e50
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002fa00
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100653fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edx + 0x1f]
mov dword [ebp - 0x10], edi
and ebx, 0xffffffe0
lea esi, [edi + 4]
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edi, dword [edi + 0x40]
test edi, edi
je 0x1002fa58
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
cmp ebx, eax
jbe 0x1002fb63
mov edi, dword [edi]
test edi, edi
jne 0x1002fa44
mov eax, 0x8000
cmp ebx, eax
push 0x10
cmova eax, ebx
mov dword [ebp - 0x14], eax
call fcn.100509ca
mov edi, eax
add esp, 4
test edi, edi
je 0x1002fb24
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1002fb14
mov edx, dword [0x100a87e0]
test edx, edx
jne 0x1002fae5
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x3c]
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 [0x100a87d8], eax
mov eax, dword [ebp - 0x24]
mov dword [0x100a87dc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [0x100a87e0], edx
mov ecx, dword [0x100a87d8]
dec eax
add eax, ecx
neg ecx
push 0x40
and eax, ecx
push 0x3000
push eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
test eax, eax
push 0
cmovne edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edx, eax
test edx, edx
jne 0x1002fb40
push edi
mov dword [edi + 4], 0
call fcn.10048e50
add esp, 4
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 8]
test ecx, ecx
je 0x1002fb4c
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10]
mov dword [edi + 4], edx
mov dword [edi + 0xc], 0
mov eax, dword [ecx + 0x40]
mov dword [edi], eax
mov dword [ecx + 0x40], edi
jmp 0x1002fb66
mov ecx, dword [ebp - 0x10]
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 4]
add edx, eax
add eax, ebx
mov dword [edi + 0xc], eax
mov edi, edx
add dword [ecx + 0x2c], ebx
mov dword [ebp - 0x18], edx
jmp 0x1002fb26
Function at 0x1002fe30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100a87e0]
sub esp, 0x24
push esi
mov esi, ecx
test eax, eax
jne 0x1002fe8b
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 [0x100a87d8], eax
mov eax, dword [ebp - 8]
mov dword [0x100a87dc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x100a87e0], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
cmovne eax, ecx
mov dword [esi], eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call sym.browser_patcher.dll_public:_static_unsigned_int___cdecl_asmjit::VMemUtil::getPageGranularity_void_
mov dword [esi + 0x1c], eax
mov eax, esi
mov dword [esi + 0x20], 0x40
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 byte [esi + 0x24], 0
pop esi
mov esp, ebp
pop ebp
ret 4