joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100027a1
mov eax, dword [ebp + 0x14]
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
push esi
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp + 0xc]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x10002762
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
pop edi
pop ebp
ret 0x18
Function at 0x10002540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
test esi, esi
jne 0x1000255a
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov ebx, esi
mov edi, esi
mov esi, dword [ebp - 4]
xor edx, edx
mov ecx, edx
mov eax, ebx
xor ecx, edi
add edi, edi
and eax, 1
mov eax, edi
cmove ecx, edx
xor eax, esi
cmp edi, 0x100
mov edx, ecx
cmovb eax, edi
shr ebx, 1
mov edi, eax
jne 0x10002565
mov esi, dword [ebp - 8]
xor edi, edi
mov ebx, esi
test edx, edx
je 0x100025bc
mov esi, dword [ebp - 4]
mov ecx, edi
mov eax, edx
xor ecx, ebx
add ebx, ebx
and eax, 1
mov eax, ebx
cmove ecx, edi
xor eax, esi
cmp ebx, 0x100
mov edi, ecx
cmovb eax, ebx
shr edx, 1
mov ebx, eax
jne 0x10002596
mov esi, dword [ebp - 8]
xor edx, edx
mov ebx, edi
test edi, edi
je 0x100025ed
mov esi, dword [ebp - 4]
mov ecx, edx
mov eax, edi
xor ecx, ebx
add ebx, ebx
and eax, 1
mov eax, ebx
cmove ecx, edx
xor eax, esi
cmp ebx, 0x100
mov edx, ecx
cmovb eax, ebx
shr edi, 1
mov ebx, eax
jne 0x100025c7
mov esi, dword [ebp - 8]
xor edi, edi
test edx, edx
je 0x10002617
mov ecx, edi
mov eax, edx
xor ecx, esi
add esi, esi
and eax, 1
cmove ecx, edi
mov edi, ecx
mov ecx, esi
xor ecx, dword [ebp - 4]
cmp esi, 0x100
cmovb ecx, esi
shr edx, 1
mov esi, ecx
jne 0x100025f3
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
movzx ebx, byte [edx]
mov edi, ecx
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 5]
shl ebx, 8
mov esi, dword [edi + 4]
or ebx, eax
movzx eax, byte [edx + 2]
dec esi
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or eax, ecx
mov dword [ebp - 4], ebx
movzx ecx, byte [edx + 6]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 7]
shl eax, 8
or eax, ecx
test esi, esi
jle 0x10002912
mov edx, dword [edi + 8]
lea ecx, [esi - 1]
lea ecx, [esi + ecx*2]
lea edi, [edx + ecx*4]
lea ecx, [esi - 1]
mov dword [ebp + 8], edi
shr ecx, 1
inc ecx
mov dword [ebp - 8], ecx
mov ebx, eax
mov ecx, eax
shr ecx, 0x10
mov edx, eax
and ecx, 0x3ff
ror ebx, 0xe
and edx, 0x3ff00
and ebx, 0xffc00
or ebx, ecx
shl edx, 2
mov ecx, eax
and ecx, 0x3ff
or edx, ecx
mov ecx, edx
xor ecx, ebx
and ecx, dword [edi + 0x10]
mov edi, dword [edi + 8]
mov esi, ecx
xor esi, edx
xor edi, ecx
mov ecx, dword [ebp + 8]
xor edi, ebx
xor esi, dword [ecx + 0xc]
mov ecx, edi
mov edx, esi
shr ecx, 0xa
shr edx, 0xa
and esi, 0x3ff
and edi, 0x3ff
mov edx, dword [edx*4 + 0x10096768]
or edx, dword [ecx*4 + 0x10094768]
or edx, dword [esi*4 + 0x10097768]
or edx, dword [edi*4 + 0x10095768]
mov esi, dword [ebp - 4]
xor esi, edx
mov ebx, esi
mov dword [ebp - 4], esi
mov ecx, esi
ror ebx, 0xe
shr ecx, 0x10
mov edx, esi
and ecx, 0x3ff
and edx, 0x3ff00
shl edx, 2
and ebx, 0xffc00
or ebx, ecx
mov ecx, esi
mov esi, dword [ebp + 8]
and ecx, 0x3ff
or edx, ecx
mov ecx, edx
xor ecx, ebx
and ecx, dword [esi + 4]
mov esi, ecx
xor esi, edx
mov edx, dword [ebp + 8]
mov edi, dword [edx - 4]
xor esi, dword [edx]
xor edi, ecx
xor edi, ebx
mov edx, esi
shr edx, 0xa
mov ecx, edi
shr ecx, 0xa
and esi, 0x3ff
and edi, 0x3ff
mov edx, dword [edx*4 + 0x10096768]
or edx, dword [ecx*4 + 0x10094768]
or edx, dword [esi*4 + 0x10097768]
or edx, dword [edi*4 + 0x10095768]
mov edi, dword [ebp + 8]
xor eax, edx
sub edi, 0x18
sub dword [ebp - 8], 1
mov dword [ebp + 8], edi
jne 0x10002802
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov byte [ecx + 3], al
mov byte [ecx + 7], bl
shr eax, 8
mov byte [ecx + 2], al
shr ebx, 8
mov byte [ecx + 6], bl
shr eax, 8
shr ebx, 8
mov byte [ecx + 1], al
mov byte [ecx + 5], bl
shr eax, 8
shr ebx, 8
mov byte [ecx], al
mov byte [ecx + 4], bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10002c20
Capabilities:
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13b0
call fcn.1004c0f0
mov eax, dword [0x1005d014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x13ac], eax
mov esi, ebx
push edi
mov edi, ecx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10002c50
sub esi, ecx
cmp esi, 0x139c
jb 0x10002c78
push 0x9d
mov edx, str.C:_build_partners_boostic_rungoldsrc_client_apprunmsvc....public_tier0dbg.cpp
mov ecx, str.Assertion_failed__tcslen_pMsgFormat____sizeof_pTempBuffer_
call fcn.10003100
add esp, 4
xor esi, esi
cmp edi, 2
jne 0x10002cc1
push dword [0x1009876c]
lea eax, [ebp - 0x13a8]
push dword [0x10098768]
push str._s___d__:
push 0x139b
push eax
call fcn.100031e0
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
jne 0x10002cc1
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002bc85
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x13ac]
mov edx, 0x139b
push ecx
lea ecx, [ebp - 0x13a8]
sub edx, esi
push ebx
add ecx, esi
call fcn.100018f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x10002cab
add esi, eax
cmp esi, 0x139c
jb 0x10002d06
push 0xb5
mov edx, str.C:_build_partners_boostic_rungoldsrc_client_apprunmsvc....public_tier0dbg.cpp
mov ecx, str.Assertion_failed_len__sizeof_pMsgFormat____sizeof_pTempBuffer_
call fcn.10003100
add esp, 4
cmp edi, 2
jne 0x10002d30
lea eax, [ebp - 0x13a8]
add eax, esi
push 0x10055714
push eax
call fcn.100031c0
add esp, 8
add esi, eax
lea eax, [ebp - 0x13a8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, 0x139b
jb 0x10002d4f
push 0xc1
mov edx, str.C:_build_partners_boostic_rungoldsrc_client_apprunmsvc....public_tier0dbg.cpp
mov ecx, str.Assertion_failed__uint32_t_len____sizeof_pTempBuffer____sizeof_pTempBuffer_0_____1_
call fcn.10003100
add esp, 4
lea eax, [ebp - 0x13a8]
push eax
push 0x1005556c
call fcn.10002520
add esp, 8
xor ebx, ebx
cmp edi, 2
je 0x10002d71
cmp edi, 3
sete bl
inc ebx
mov eax, ebx
sub eax, 0
je 0x10002d9f
sub eax, 2
jne 0x10002da5
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002bc85
mov esp, ebp
pop ebp
ret
cmp edi, 2
je 0x10002da5
int3
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002bc85
mov esp, ebp
pop ebp
ret
Function at 0x10002fb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13a8
call fcn.1004c0f0
mov eax, dword [0x1005d014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002fd0
sub ecx, edx
cmp ecx, 0x139c
jb 0x10002ff8
push 0x9d
mov edx, str.C:_build_partners_boostic_rungoldsrc_client_apprunmsvc....public_tier0dbg.cpp
mov ecx, str.Assertion_failed__tcslen_pMsgFormat____sizeof_pTempBuffer_
call fcn.10003100
add esp, 4
lea eax, [ebp + 0xc]
mov edx, 0x139b
push eax
push ecx
push esi
lea ecx, [ebp - 0x13a8]
call fcn.100018f0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x10003079
cmp esi, 0x139c
jb 0x10003037
push 0xb5
mov edx, str.C:_build_partners_boostic_rungoldsrc_client_apprunmsvc....public_tier0dbg.cpp
mov ecx, str.Assertion_failed_len__sizeof_pMsgFormat____sizeof_pTempBuffer_
call fcn.10003100
add esp, 4
cmp esi, 0x139b
jb 0x10003056
push 0xc1
mov edx, str.C:_build_partners_boostic_rungoldsrc_client_apprunmsvc....public_tier0dbg.cpp
mov ecx, str.Assertion_failed__uint32_t_len____sizeof_pTempBuffer____sizeof_pTempBuffer_0_____1_
call fcn.10003100
add esp, 4
lea eax, [ebp - 0x13a8]
push eax
push 0x1005556c
call fcn.10002520
add esp, 8
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1002bc85
mov esp, ebp
pop ebp
ret

Function at 0x10003730
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
mov eax, dword [0x1005d014]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [0x10093394]
cmp eax, 0xffffffff
je 0x1000376d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1002bc85
mov esp, ebp
pop ebp
ret
push str.Bad_thread_local
lea eax, [esp + 4]
push str.Assertion_failed__s
push eax
call fcn.10001930
add esp, 0xc
mov edx, str.C:_build_partners_boostic_rungoldsrc_client_apprunmsvc....public_tier0_threadtools.cpp
mov ecx, eax
push 0x333
call fcn.10003100
mov ecx, dword [esp + 0x108]
add esp, 4
xor ecx, esp
xor eax, eax
call fcn.1002bc85
mov esp, ebp
pop ebp
ret

Function at 0x100037b0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
mov eax, dword [0x1005d014]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [0x10093394]
mov ecx, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x100037f3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1002bc85
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.10001930
add esp, 0xc
mov edx, str.C:_build_partners_boostic_rungoldsrc_client_apprunmsvc....public_tier0_threadtools.cpp
mov ecx, eax
push 0x341
call fcn.10003100
mov ecx, dword [esp + 0x108]
add esp, 4
xor ecx, esp
call fcn.1002bc85
mov esp, ebp
pop ebp
ret 4
Function at 0x10003a80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cc71
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x1005d014]
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 0x10003aef
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.10001930
add esp, 0xc
mov edx, str.C:_build_partners_boostic_rungoldsrc_client_apprunmsvc....public_tier0_threadtools.cpp
mov ecx, eax
push 0x5be
call fcn.10003100
add esp, 4
xor al, al
jmp 0x10003c82
push 0
lea ecx, [ebp - 0x220]
mov byte [ebp - 0x215], 0
call fcn.100035c0
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.1002c1fe
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 0x10003bac
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.10001930
add esp, 0xc
push eax
lea eax, [ebp - 0x214]
push str.Assertion_failed__s
push eax
call fcn.10001930
add esp, 0xc
mov edx, str.C:_build_partners_boostic_rungoldsrc_client_apprunmsvc....public_tier0_threadtools.cpp
mov ecx, eax
push 0x5cf
call fcn.10003100
add esp, 4
xor bl, bl
jmp 0x10003c48
lea ecx, [ebp - 0x220]
call fcn.10003560
push 0xea60
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10003c02
cmp eax, 0x80
je 0x10003c02
push str.Probably_deadlock_or_failure_waiting_for_thread_to_initialize.
lea eax, [ebp - 0x214]
push str.Assertion_failed__s
push eax
call fcn.10001930
add esp, 0xc
mov edx, str.C:_build_partners_boostic_rungoldsrc_client_apprunmsvc....public_tier0_threadtools.cpp
mov ecx, eax
push 0x6c3
call fcn.10003100
add esp, 4
jmp 0x10003c0b
cmp byte [ebp - 0x215], 0
jne 0x10003c2e
push str.Thread_failed_to_initialize_n
call fcn.10002de0
add esp, 4
push dword [esi + 4]
call edi
mov dword [ebx], 0
xor bl, bl
mov dword [esi + 4], 0
jmp 0x10003c48
cmp dword [esi + 4], 0
jne 0x10003c45
push str.Thread_exited_immediately_n
call fcn.10002de0
add esp, 4
cmp dword [esi + 4], 0
setne bl
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10003c80
cmp byte [ebp - 0x21c], 0
je 0x10003c80
push eax
call edi
test eax, eax
jne 0x10003c80
push 0x19d
mov edx, str.C:_build_partners_boostic_rungoldsrc_client_apprunmsvc....public_tier0_threadtools.cpp
mov ecx, str.Assertion_failed_false
call fcn.10003100
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.1002bc85
mov esp, ebp
pop ebp
ret 4
Function at 0x10003f80
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
mov eax, dword [0x1005d014]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [0x10093394]
cmp eax, 0xffffffff
je 0x10003fc3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1002bc85
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.10001930
add esp, 0xc
mov edx, str.C:_build_partners_boostic_rungoldsrc_client_apprunmsvc....public_tier0_threadtools.cpp
mov ecx, eax
push 0x341
call fcn.10003100
mov ecx, dword [esp + 0x108]
add esp, 4
xor ecx, esp
xor eax, eax
call fcn.1002bc85
mov esp, ebp
pop ebp
ret 4
Function at 0x10004080
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cd0b
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x1005d014]
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 0x100040d9
push 1
call fcn.1002be9a
add esp, 4
mov dword [ebp - 0x418], eax
mov byte [eax], 0
jmp 0x10004107
push 0x1fffc
call fcn.1002be9a
add esp, 4
mov esi, eax
mov edx, 0x1fffc
mov dword [ebp - 0x418], esi
mov ecx, esi
push 0
push edi
call fcn.100095f0
add esp, 8
mov ecx, esi
call fcn.10009b00
lea ecx, [ebp - 0x418]
mov dword [ebp - 4], 0
call fcn.100042a0
mov edi, dword [ebp - 0x414]
push 0x10055a64
push edi
call fcn.10031fc4
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1000421e
push 2
push 0
push ebx
call fcn.100376a7
add esp, 0xc
push ebx
call fcn.10037c19
add esp, 4
mov esi, eax
push 0
push 0
push ebx
call fcn.100376a7
add esp, 0xc
cmp esi, 0xffffffff
je 0x1000421e
test esi, esi
jle 0x10004202
nop dword [eax]
lea eax, [ebp - 0x410]
push ebx
cmp esi, 0x400
jbe 0x10004186
push 0x400
jmp 0x10004187
push esi
push 1
push eax
call fcn.10037df0
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x100041da
mov eax, dword [ebp - 0x41c]
sub esi, edi
mov dword [ebp - 0x420], esi
xor esi, esi
mov eax, dword [eax]
test edi, edi
jle 0x100041cc
nop
movzx edx, byte [ebp + esi - 0x410]
inc esi
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10054200]
cmp esi, edi
jl 0x100041b0
mov ecx, dword [ebp - 0x41c]
mov esi, dword [ebp - 0x420]
mov dword [ecx], eax
push ebx
call fcn.10031ff2
add esp, 4
test eax, eax
jne 0x100041fc
push ebx
call fcn.1003201d
add esp, 4
test eax, eax
jne 0x1000420f
test esi, esi
jg 0x10004170
mov edi, dword [ebp - 0x414]
push ebx
call fcn.10031dc2
add esp, 4
mov bl, 1
jmp 0x10004220
push ebx
call fcn.10031dc2
mov edi, dword [ebp - 0x414]
add esp, 4
xor bl, bl
test edi, edi
je 0x1000422d
push edi
call fcn.1002be95
add esp, 4
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x10004240
push eax
call fcn.1002be95
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.1002bc85
mov esp, ebp
pop ebp
ret
Function at 0x100048d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cda8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1005d014]
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 0x10004917
push 1
call fcn.1002be9a
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [eax], 0
jmp 0x10004942
push 0x1fffc
call fcn.1002be9a
add esp, 4
mov esi, eax
mov edx, 0x1fffc
mov dword [ebp - 0x14], esi
mov ecx, esi
push 0
push edi
call fcn.100095f0
add esp, 8
mov ecx, esi
call fcn.10009b00
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.100042a0
mov esi, dword [ebp - 0x10]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10004972
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10004972
xor bl, bl
jmp 0x10004974
mov bl, 1
test esi, esi
je 0x10004981
push esi
call fcn.1002be95
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10004991
push eax
call fcn.1002be95
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 0x100049b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cdd8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1005d014]
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 0x100049f7
push 1
call fcn.1002be9a
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [eax], 0
jmp 0x10004a1f
push 0x1fffc
call fcn.1002be9a
mov esi, eax
mov edx, 0x1fffc
push 0
push edi
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.100095f0
add esp, 0xc
mov ecx, esi
call fcn.10009b00
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.100042a0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10004a45
test al, 0x10
je 0x10004a45
mov bl, 1
jmp 0x10004a47
xor bl, bl
test esi, esi
je 0x10004a54
push esi
call fcn.1002be95
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10004a64
push eax
call fcn.1002be95
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 0x10004a80
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cda8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1005d014]
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 0x10004ac7
push 1
call fcn.1002be9a
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [eax], 0
jmp 0x10004af2
push 0x1fffc
call fcn.1002be9a
add esp, 4
mov esi, eax
mov edx, 0x1fffc
mov dword [ebp - 0x14], esi
mov ecx, esi
push 0
push edi
call fcn.100095f0
add esp, 8
mov ecx, esi
call fcn.10009b00
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.100042a0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10004b31
test bl, 7
je 0x10004b2d
lea ecx, [ebp - 0x14]
call fcn.100042a0
mov esi, dword [ebp - 0x10]
and ebx, 0xfffffff8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
jmp 0x10004b33
xor bl, bl
test esi, esi
je 0x10004b40
push esi
call fcn.1002be95
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10004b50
push eax
call fcn.1002be95
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 0x10004b70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cda8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1005d014]
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 0x10004bb7
push 1
call fcn.1002be9a
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [eax], 0
jmp 0x10004be2
push 0x1fffc
call fcn.1002be9a
add esp, 4
mov esi, eax
mov edx, 0x1fffc
mov dword [ebp - 0x14], esi
mov ecx, esi
push 0
push edi
call fcn.100095f0
add esp, 8
mov ecx, esi
call fcn.10009b00
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.100042a0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test esi, esi
je 0x10004c0d
push esi
call fcn.1002be95
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10004c1d
push ecx
call fcn.1002be95
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 0x10004c40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cda8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1005d014]
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 0x10004c87
push 1
call fcn.1002be9a
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [eax], 0
jmp 0x10004cb2
push 0x1fffc
call fcn.1002be9a
add esp, 4
mov esi, eax
mov edx, 0x1fffc
mov dword [ebp - 0x14], esi
mov ecx, esi
push 0
push edi
call fcn.100095f0
add esp, 8
mov ecx, esi
call fcn.10009b00
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.100042a0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
test esi, esi
je 0x10004cde
push esi
call fcn.1002be95
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10004cee
push ecx
call fcn.1002be95
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 0x10005410
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.10037f21
cmp eax, 0xfffffffe
je 0x10005441
push 0x21c
mov edx, str.C:_build_partners_boostic_rungoldsrc_client_apprunmsvc....public_tier1KeyValues.cpp
mov ecx, str.Assertion_failed_IsX360_____IsPC_____heapchk_____HEAPOK_
call fcn.10003100
add esp, 4
push 0x10055b08
push dword [ebp + 8]
call fcn.10031fdb
mov esi, eax
add esp, 8
test esi, esi
jne 0x10005462
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 2
push 0
push esi
call fcn.100376a7
add esp, 0xc
push esi
call fcn.10037c19
add esp, 4
mov ebx, eax
mov dword [esp + 0x10], ebx
push 0
push 0
push esi
call fcn.100376a7
add esp, 0xc
lea ecx, [ebx + 1]
push ecx
call fcn.10032174
mov edi, eax
add esp, 4
test edi, edi
jne 0x100054b4
push 0x22d
mov edx, str.C:_build_partners_boostic_rungoldsrc_client_apprunmsvc....public_tier1KeyValues.cpp
mov ecx, str.Assertion_failed_buffer
call fcn.10003100
add esp, 4
push esi
push ebx
push 1
push edi
call fcn.10037df0
test eax, eax
push esi
setne bl
call fcn.10031dc2
add esp, 0x14
test bl, bl
je 0x100054e7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edi
push dword [ebp + 8]
mov byte [edi + eax], 0
call fcn.10007a90
mov bl, al
push edi
call fcn.1003217f
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4