joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003d20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10049541
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x10059008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x10003d8f
push str.Tried_to_create_a_thread_that_has_already_been_created_
lea eax, [ebp - 0x114]
push str.Assertion_failed__s
push eax
call fcn.10001880
add esp, 0xc
mov edx, str.D:_build_partners_boostmaster_rungoldsrc_client_apprunmsvc....public_tier0_threadtools.cpp
mov ecx, eax
push 0x5be
call fcn.10003340
add esp, 4
xor al, al
jmp 0x10003f22
push 0
lea ecx, [ebp - 0x220]
mov byte [ebp - 0x215], 0
call fcn.10003870
mov dword [ebp - 4], 0
lea eax, [ebp - 0x220]
push 0xc
mov dword [ebp - 0x22c], esi
lea edi, [ebp - 0x215]
mov dword [ebp - 0x228], eax
call fcn.10028e12
movq xmm0, qword [ebp - 0x22c]
lea ebx, [esi + 8]
add esp, 4
mov ecx, esi
movq qword [eax], xmm0
mov dword [eax + 8], edi
push ebx
push 0
push eax
mov eax, dword [esi]
call dword [eax + 0x14]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], eax
test eax, eax
jne 0x10003e4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x114]
push str.Failed_to_create_thread__error_0x_x_
push eax
call fcn.10001880
add esp, 0xc
push eax
lea eax, [ebp - 0x214]
push str.Assertion_failed__s
push eax
call fcn.10001880
add esp, 0xc
mov edx, str.D:_build_partners_boostmaster_rungoldsrc_client_apprunmsvc....public_tier0_threadtools.cpp
mov ecx, eax
push 0x5cf
call fcn.10003340
add esp, 4
xor bl, bl
jmp 0x10003ee8
lea ecx, [ebp - 0x220]
call fcn.10003810
push 0xea60
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10003ea2
cmp eax, 0x80
je 0x10003ea2
push str.Probably_deadlock_or_failure_waiting_for_thread_to_initialize.
lea eax, [ebp - 0x214]
push str.Assertion_failed__s
push eax
call fcn.10001880
add esp, 0xc
mov edx, str.D:_build_partners_boostmaster_rungoldsrc_client_apprunmsvc....public_tier0_threadtools.cpp
mov ecx, eax
push 0x6c3
call fcn.10003340
add esp, 4
jmp 0x10003eab
cmp byte [ebp - 0x215], 0
jne 0x10003ece
push str.Thread_failed_to_initialize_n
call fcn.10003020
add esp, 4
push dword [esi + 4]
call edi
mov dword [ebx], 0
xor bl, bl
mov dword [esi + 4], 0
jmp 0x10003ee8
cmp dword [esi + 4], 0
jne 0x10003ee5
push str.Thread_exited_immediately_n
call fcn.10003020
add esp, 4
cmp dword [esi + 4], 0
setne bl
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10003f20
cmp byte [ebp - 0x21c], 0
je 0x10003f20
push eax
call edi
test eax, eax
jne 0x10003f20
push 0x19d
mov edx, str.D:_build_partners_boostmaster_rungoldsrc_client_apprunmsvc....public_tier0_threadtools.cpp
mov ecx, str.Assertion_failed_false
call fcn.10003340
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100288b6
mov esp, ebp
pop ebp
ret 4
Function at 0x10004230
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
mov eax, dword [0x10059008]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [0x1008df80]
cmp eax, 0xffffffff
je 0x10004273
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100288b6
mov esp, ebp
pop ebp
ret 4
push str.Bad_thread_local
lea eax, [esp + 4]
push str.Assertion_failed__s
push eax
call fcn.10001880
add esp, 0xc
mov edx, str.D:_build_partners_boostmaster_rungoldsrc_client_apprunmsvc....public_tier0_threadtools.cpp
mov ecx, eax
push 0x341
call fcn.10003340
mov ecx, dword [esp + 0x108]
add esp, 4
xor ecx, esp
xor eax, eax
call fcn.100288b6
mov esp, ebp
pop ebp
ret 4
Function at 0x10004330
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100495db
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x10059008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x414], 0
test edi, edi
jne 0x10004389
push 1
call fcn.10028acb
add esp, 4
mov dword [ebp - 0x418], eax
mov byte [eax], 0
jmp 0x100043b7
push 0x1fffc
call fcn.10028acb
add esp, 4
mov esi, eax
mov edx, 0x1fffc
mov dword [ebp - 0x418], esi
mov ecx, esi
push 0
push edi
call fcn.10009a10
add esp, 8
mov ecx, esi
call fcn.10009f20
lea ecx, [ebp - 0x418]
mov dword [ebp - 4], 0
call fcn.10004550
mov edi, dword [ebp - 0x414]
push 0x10052c80
push edi
call fcn.1002eea0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100044ce
push 2
push 0
push ebx
call fcn.100345bb
add esp, 0xc
push ebx
call fcn.10034bd7
add esp, 4
mov esi, eax
push 0
push 0
push ebx
call fcn.100345bb
add esp, 0xc
cmp esi, 0xffffffff
je 0x100044ce
test esi, esi
jle 0x100044b2
nop dword [eax]
lea eax, [ebp - 0x410]
push ebx
cmp esi, 0x400
jbe 0x10004436
push 0x400
jmp 0x10004437
push esi
push 1
push eax
call fcn.10034dc8
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x1000448a
mov eax, dword [ebp - 0x41c]
sub esi, edi
mov dword [ebp - 0x420], esi
xor esi, esi
mov eax, dword [eax]
test edi, edi
jle 0x1000447c
nop
movzx edx, byte [ebp + esi - 0x410]
inc esi
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100512d0]
cmp esi, edi
jl 0x10004460
mov ecx, dword [ebp - 0x41c]
mov esi, dword [ebp - 0x420]
mov dword [ecx], eax
push ebx
call fcn.1002eece
add esp, 4
test eax, eax
jne 0x100044ac
push ebx
call fcn.1002eefa
add esp, 4
test eax, eax
jne 0x100044bf
test esi, esi
jg 0x10004420
mov edi, dword [ebp - 0x414]
push ebx
call fcn.1002ecaf
add esp, 4
mov bl, 1
jmp 0x100044d0
push ebx
call fcn.1002ecaf
mov edi, dword [ebp - 0x414]
add esp, 4
xor bl, bl
test edi, edi
je 0x100044dd
push edi
call fcn.10028ac6
add esp, 4
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x100044f0
push eax
call fcn.10028ac6
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100288b6
mov esp, ebp
pop ebp
ret
Function at 0x10004630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10049618
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10059008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0
test ebx, ebx
jne 0x1000467b
push 1
call fcn.10028acb
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [eax], bl
jmp 0x100046a6
push 0x1fffc
call fcn.10028acb
add esp, 4
mov esi, eax
mov edx, 0x1fffc
mov dword [ebp - 0x20], esi
mov ecx, esi
push 0
push ebx
call fcn.10009a10
add esp, 8
mov ecx, esi
call fcn.10009f20
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.10004550
push 0x10052c80
push dword [ebp - 0x1c]
call fcn.1002eea0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10004746
push 2
push 0
push ebx
call fcn.100345bb
add esp, 0xc
push ebx
call fcn.10034bd7
add esp, 4
mov esi, eax
mov dword [ebp - 0x14], esi
push 0
push 0
push ebx
call fcn.100345bb
add esp, 0xc
mov ecx, edi
push esi
call fcn.1000e290
cmp dword [edi + 0xc], 0xfffffffe
jne 0x10004718
push 0x20d
mov edx, str.D:_build_partners_boostmaster_rungoldsrc_clientpublic_tier1_utlmemory.h
mov ecx, str.Assertion_failed__IsReadOnly__
call fcn.10003340
add esp, 4
push ebx
push esi
push 1
push dword [edi + 4]
call fcn.10034dc8
push ebx
mov esi, eax
call fcn.1002ecaf
mov ebx, dword [ebp - 0x14]
add esp, 0x14
cmp esi, ebx
je 0x1000477c
push dword [ebp - 0x18]
push str.Error_reading_from_file__s_n
call fcn.100031f0
add esp, 8
xor bl, bl
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10004758
push eax
call fcn.10028ac6
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10004768
push eax
call fcn.10028ac6
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jns 0x10004797
push 0x6f6
mov edx, str.D:_build_partners_boostmaster_rungoldsrc_client_apprunmsvc....public_tier1utlbuffer.cpp
mov ecx, str.Assertion_failed_offset___0
call fcn.10003340
add esp, 4
mov ecx, edi
mov dword [edi + 0x14], ebx
call fcn.1000f120
cmp dword [edi + 0x18], 0
mov dword [edi + 0x10], 0
jge 0x100047b6
or byte [edi + 0x1e], 2
mov bl, 1
jmp 0x10004748
and byte [edi + 0x1e], 0xfd
mov bl, 1
jmp 0x10004748
Function at 0x10004d10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100496a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10059008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
test edi, edi
jne 0x10004d57
push 1
call fcn.10028acb
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [eax], 0
jmp 0x10004d7f
push 0x1fffc
call fcn.10028acb
mov esi, eax
mov edx, 0x1fffc
push 0
push edi
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.10009a10
add esp, 0xc
mov ecx, esi
call fcn.10009f20
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.10004550
mov esi, dword [ebp - 0x10]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10004daf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10004daf
xor bl, bl
jmp 0x10004db1
mov bl, 1
test esi, esi
je 0x10004dbe
push esi
call fcn.10028ac6
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10004dce
push eax
call fcn.10028ac6
add esp, 4
mov al, bl
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 0x10004df0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100496a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10059008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
test edi, edi
jne 0x10004e37
push 1
call fcn.10028acb
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [eax], 0
jmp 0x10004e5f
push 0x1fffc
call fcn.10028acb
mov esi, eax
mov edx, 0x1fffc
push 0
push edi
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.10009a10
add esp, 0xc
mov ecx, esi
call fcn.10009f20
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.10004550
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10004e85
test al, 0x10
je 0x10004e85
mov bl, 1
jmp 0x10004e87
xor bl, bl
test esi, esi
je 0x10004e94
push esi
call fcn.10028ac6
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10004ea4
push eax
call fcn.10028ac6
add esp, 4
mov al, bl
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 0x10004ec0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100496a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10059008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
test edi, edi
jne 0x10004f07
push 1
call fcn.10028acb
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [eax], 0
jmp 0x10004f2f
push 0x1fffc
call fcn.10028acb
mov esi, eax
mov edx, 0x1fffc
push 0
push edi
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.10009a10
add esp, 0xc
mov ecx, esi
call fcn.10009f20
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.10004550
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10004f6e
test bl, 7
je 0x10004f6a
lea ecx, [ebp - 0x14]
call fcn.10004550
mov esi, dword [ebp - 0x10]
and ebx, 0xfffffff8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
jmp 0x10004f70
xor bl, bl
test esi, esi
je 0x10004f7d
push esi
call fcn.10028ac6
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10004f8d
push eax
call fcn.10028ac6
add esp, 4
mov al, bl
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 0x10004fb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100496a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10059008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
test edi, edi
jne 0x10004ff7
push 1
call fcn.10028acb
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [eax], 0
jmp 0x1000501f
push 0x1fffc
call fcn.10028acb
mov esi, eax
mov edx, 0x1fffc
push 0
push edi
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.10009a10
add esp, 0xc
mov ecx, esi
call fcn.10009f20
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.10004550
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test esi, esi
je 0x1000504a
push esi
call fcn.10028ac6
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1000505a
push ecx
call fcn.10028ac6
add esp, 4
mov al, bl
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 0x10005070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100496d8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10059008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
test edi, edi
jne 0x100050b7
push 1
call fcn.10028acb
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [eax], 0
jmp 0x100050e2
push 0x1fffc
call fcn.10028acb
add esp, 4
mov esi, eax
mov edx, 0x1fffc
mov dword [ebp - 0x14], esi
mov ecx, esi
push 0
push edi
call fcn.10009a10
add esp, 8
mov ecx, esi
call fcn.10009f20
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.10004550
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
test esi, esi
je 0x1000510e
push esi
call fcn.10028ac6
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1000511e
push ecx
call fcn.10028ac6
add esp, 4
mov al, bl
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 0x10005840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
call fcn.10034e82
cmp eax, 0xfffffffe
je 0x10005871
push 0x21c
mov edx, str.D:_build_partners_boostmaster_rungoldsrc_client_apprunmsvc....public_tier1KeyValues.cpp
mov ecx, str.Assertion_failed_IsX360_____IsPC_____heapchk_____HEAPOK_
call fcn.10003340
add esp, 4
push 0x10052d24
push dword [ebp + 8]
call fcn.1002eeb7
mov esi, eax
add esp, 8
test esi, esi
jne 0x10005892
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 2
push 0
push esi
call fcn.100345bb
add esp, 0xc
push esi
call fcn.10034bd7
add esp, 4
mov ebx, eax
mov dword [esp + 0x10], ebx
push 0
push 0
push esi
call fcn.100345bb
add esp, 0xc
lea ecx, [ebx + 1]
push ecx
call fcn.1002f054
mov edi, eax
add esp, 4
test edi, edi
jne 0x100058e4
push 0x22d
mov edx, str.D:_build_partners_boostmaster_rungoldsrc_client_apprunmsvc....public_tier1KeyValues.cpp
mov ecx, str.Assertion_failed_buffer
call fcn.10003340
add esp, 4
push esi
push ebx
push 1
push edi
call fcn.10034dc8
test eax, eax
push esi
setne bl
call fcn.1002ecaf
add esp, 0x14
test bl, bl
je 0x10005917
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edi
push dword [ebp + 8]
mov byte [edi + eax], 0
call fcn.10007ec0
mov bl, al
push edi
call fcn.1002f05f
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10005930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
test ebx, ebx
jle 0x100059a5
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1000595a
mov eax, dword [ecx]
push edi
push 1
push 0x10053070
call dword [eax + 0x58]
jmp 0x10005970
test edi, edi
je 0x10005970
push edi
push 1
push 1
push 0x10053070
call fcn.100350bc
add esp, 0x10
test esi, esi
je 0x100059a0
push 1
mov ecx, esi
call fcn.1000f060
test al, al
je 0x100059a0
mov ecx, dword [esi + 4]
add ecx, dword [esi + 0x14]
cmp ecx, 0x10053070
je 0x10005996
mov al, byte [0x10053070]
mov byte [ecx], al
inc dword [esi + 0x14]
mov ecx, esi
call fcn.1000f120
sub ebx, 1
jne 0x10005944
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10

Function at 0x100059b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10059008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, edi
mov dword [ebp - 8], ecx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x100059d0
sub esi, ecx
lea eax, [esi*2 + 2]
call fcn.100489f0
mov ebx, esp
xor edx, edx
mov dword [ebp - 0xc], ebx
test esi, esi
js 0x10005a18
mov ecx, ebx
mov ebx, dword [ebp - 8]
mov al, byte [edx + edi]
cmp al, 0x22
je 0x10005a06
cmp byte [ebx + 0x11], 0
je 0x10005a0a
cmp al, 0x5c
jne 0x10005a0a
mov byte [ecx], 0x5c
inc ecx
mov al, byte [edx + edi]
inc edx
mov byte [ecx], al
inc ecx
cmp edx, esi
jle 0x100059f5
mov ebx, dword [ebp - 0xc]
mov esi, ebx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10005a20
sub esi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10005a3c
push dword [ebp + 0xc]
mov eax, dword [ecx]
push esi
push ebx
call dword [eax + 0x58]
jmp 0x10005a50
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10005a50
push eax
push 1
push esi
push ebx
call fcn.100350bc
add esp, 0x10
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x10005a86
test esi, esi
jle 0x10005a86
push esi
mov ecx, edi
call fcn.1000f060
test al, al
je 0x10005a86
mov eax, dword [edi + 0x14]
add eax, dword [edi + 4]
cmp ebx, eax
je 0x10005a7c
push esi
push ebx
push eax
call fcn.10048ae0
add esp, 0xc
add dword [edi + 0x14], esi
mov ecx, edi
call fcn.1000f120
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100288b6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10005aa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x18]
test ecx, ecx
je 0x10005abf
push dword [ebp + 0xc]
mov eax, dword [ecx]
push edi
push ebx
call dword [eax + 0x58]
jmp 0x10005ad3
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10005ad3
push eax
push 1
push edi
push ebx
call fcn.100350bc
add esp, 0x10
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10005b09
test edi, edi
jle 0x10005b09
push edi
mov ecx, esi
call fcn.1000f060
test al, al
je 0x10005b09
mov eax, dword [esi + 0x14]
add eax, dword [esi + 4]
cmp ebx, eax
je 0x10005aff
push edi
push ebx
push eax
call fcn.10048ae0
add esp, 0xc
add dword [esi + 0x14], edi
mov ecx, esi
call fcn.1000f120
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x10008fe0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100499fb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10059008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0xffffffff
mov dword [esi + 0xc], 1
mov eax, dword [eax]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 4], 0
cmp dword [esi + 0x34], 0xfffffffe
jne 0x10009088
push 0x20d
mov edx, str.D:_build_partners_boostmaster_rungoldsrc_clientpublic_tier1_utlmemory.h
mov ecx, str.Assertion_failed__IsReadOnly__
call fcn.10003340
add esp, 4
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x10], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10009660
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x10009683
push 0x45
mov edx, str.D:_build_partners_boostmaster_rungoldsrc_client_apprunmsvc....public_tier1memstack.cpp
mov ecx, str.Assertion_failed__m_pBase
call fcn.10003340
add esp, 4
push ebx
push edi
lea eax, [ebp - 0x24]
mov dword [esi + 0x10], 0x400000
push eax
mov dword [esi + 0x14], 4
mov dword [esi + 0x18], 0x10000
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x20]
lea eax, [edi - 1]
test edi, eax
je 0x100096c5
push 0x57
mov edx, str.D:_build_partners_boostmaster_rungoldsrc_client_apprunmsvc....public_tier1memstack.cpp
mov ecx, str.Assertion_failed___sysInfo.dwPageSize___sysInfo.dwPageSize_1__
call fcn.10003340
mov edi, dword [ebp - 0x20]
add esp, 4
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x100096d1
mov dword [esi + 0x18], edi
jmp 0x100096e0
lea ecx, [eax - 1]
lea eax, [edi - 1]
add ecx, edi
not eax
and ecx, eax
mov dword [esi + 0x18], ecx
mov ecx, dword [esi + 0x18]
xor edx, edx
mov ebx, dword [esi + 0x10]
dec ebx
add ebx, ecx
lea eax, [ecx - 1]
not eax
and ebx, eax
mov eax, ebx
mov dword [esi + 0x10], ebx
div edi
test edx, edx
jne 0x10009709
mov eax, ecx
div edi
test edx, edx
jne 0x10009709
cmp ecx, ebx
jbe 0x1000971d
push 0x65
mov edx, str.D:_build_partners_boostmaster_rungoldsrc_client_apprunmsvc....public_tier1memstack.cpp
mov ecx, str.Assertion_failed_m_maxSize___pageSize__0__m_commitSize___pageSize__0__m_commitSize___m_maxSize
call fcn.10003340
add esp, 4
push 1
push 0x2000
push dword [esi + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0xc], eax
pop edi
pop ebx
test eax, eax
jne 0x1000974c
push 0x68
mov edx, str.D:_build_partners_boostmaster_rungoldsrc_client_apprunmsvc....public_tier1memstack.cpp
mov ecx, str.Assertion_failed_m_pBase
call fcn.10003340
add esp, 4
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
add eax, ecx
mov dword [esi], ecx
test ecx, ecx
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
setne al
pop esi
mov esp, ebp
pop ebp
ret 0x10