joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1022ccc7
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10285008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1022cd2a
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10236010
mov esp, ebp
pop ebp
ret

Function at 0x10234b1e
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10285008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x40
pop edi
push edi
mov ebx, ecx
mov esi, edx
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x20
push esi
push ebx
call sub.msvcrt.dll_memmove
add esp, 0xc
lea ecx, [ebx + 0x40]
call fcn.10283010
lea eax, [ebp - 0x4c]
xor esi, esi
sub ebx, eax
lea edx, [ebp - 0x4c]
add edx, esi
mov al, byte [ebx + edx]
xor al, 0x36
inc esi
mov byte [edx], al
cmp esi, edi
jl 0x10234b61
push edi
lea edx, [ebp - 0x4c]
call fcn.10283060
lea eax, [ebp - 0x4c]
mov byte [eax], 0
inc eax
dec edi
jne 0x10234b7e
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10236010
mov esp, ebp
pop ebp
ret 4

Function at 0x10234b9e
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x10285008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x70], edx
push edi
lea edx, [ebp - 0x28]
lea ecx, [esi + 0x40]
call fcn.10283170
lea ecx, [esi + 0x40]
call fcn.10283010
mov ebx, esi
lea eax, [ebp - 0x6c]
push 0x40
xor edx, edx
sub ebx, eax
pop edi
lea ecx, [ebp - 0x6c]
add ecx, edx
mov al, byte [ebx + ecx]
xor al, 0x5c
inc edx
mov byte [ecx], al
cmp edx, edi
jl 0x10234bd7
push edi
lea edx, [ebp - 0x6c]
lea ecx, [esi + 0x40]
call fcn.10283060
push 0x20
pop ebx
push ebx
lea edx, [ebp - 0x28]
lea ecx, [esi + 0x40]
call fcn.10283060
lea edx, [ebp - 0x28]
lea ecx, [esi + 0x40]
call fcn.10283170
push 0x10
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x70]
call sub.msvcrt.dll_memmove
add esp, 0xc
lea eax, [ebp - 0x6c]
xor ecx, ecx
mov byte [eax], cl
inc eax
dec edi
jne 0x10234c24
lea eax, [ebp - 0x28]
mov byte [eax], cl
inc eax
dec ebx
jne 0x10234c2d
mov eax, 0xa8
mov byte [esi], cl
inc esi
dec eax
jne 0x10234c38
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10236010
mov esp, ebp
pop ebp
ret 4
Function at 0x102355d9
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push edi
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edx
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x102355fd
push 0x19
pop ecx
int 0x29
test byte [ebp - 0xc], 0x44
je 0x10235645
push ebx
push esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x40]
xor edx, edx
lea ecx, [ebx - 1]
mov eax, ecx
lea esi, [ebx - 1]
and ecx, dword [ebp - 4]
and eax, edi
add eax, ebx
dec ecx
add eax, ecx
not esi
div ebx
xor edx, edx
and esi, edi
mov ecx, eax
mov eax, dword [ebp - 4]
div ebx
add ecx, eax
je 0x10235643
xor eax, eax
lock or dword [esi], eax
add esi, ebx
dec ecx
jne 0x10235639
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10237310
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1023734e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10237346
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10237350
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10237336
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10237430
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10237446
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10237461
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x1024e450
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10275e68
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10285008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
call fcn.10238810
mov dword [ebp - 4], 0
mov dword [esi], 0x10023470
mov byte [esi + 0xc], 1
mov byte [esi + 0x5d0], 0
mov dword [esi + 0x5d4], 0
mov ecx, esi
mov dword [esi + 0x30], 0xc
call fcn.102545d0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10283010
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
ret
Function at 0x10283170
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10285008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x5c], edx
mov ebx, 0x40
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x54], eax
and eax, 0x3f
sub ebx, eax
cmp ebx, 8
ja 0x102831a2
add ebx, 0x40
lea eax, [ebx - 8]
push eax
lea eax, [ebp - 0x50]
push 0
push eax
call sub.msvcrt.dll_memset
mov edx, dword [ebp - 0x54]
lea esi, [ebp - 0x58]
mov ecx, dword [edi + 0x20]
mov eax, edx
shl ecx, 3
add esp, 0xc
shr eax, 0x1d
or ecx, eax
mov byte [ebp - 0x50], 0x80
mov dword [ebp - 0x58], ecx
lea eax, [edx*8]
lea ecx, [ebp + ebx - 0x58]
mov dword [ebp - 0x54], eax
sub esi, ecx
mov edx, 2
mov eax, dword [esi + ecx]
lea ecx, [ecx + 4]
bswap eax
mov dword [ecx - 4], eax
dec edx
jne 0x102831e3
push ebx
lea edx, [ebp - 0x50]
mov ecx, edi
call fcn.10283060
mov esi, dword [ebp - 0x5c]
mov edx, edi
sub edx, esi
mov ecx, 8
mov eax, dword [edx + esi]
lea esi, [esi + 4]
bswap eax
mov dword [esi - 4], eax
dec ecx
jne 0x10283208
mov dword [edi + 0x20], ecx
lea eax, [edi + 0x28]
mov dword [edi + 0x24], ecx
mov ecx, 0x40
mov dword [edi], 0x6a09e667
mov dword [edi + 4], 0xbb67ae85
mov dword [edi + 8], 0x3c6ef372
mov dword [edi + 0xc], 0xa54ff53a
mov dword [edi + 0x10], 0x510e527f
mov dword [edi + 0x14], 0x9b05688c
mov dword [edi + 0x18], 0x1f83d9ab
mov dword [edi + 0x1c], 0x5be0cd19
jmp 0x10283260
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x10283260
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10236010
mov esp, ebp
pop ebp
ret
Function at 0x10003270
Capabilities:
Query environment variable

Disassembly:
push ebx
push str.SAMPGDK_LOG
xor bl, bl
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov edx, eax
add esp, 4
test edx, edx
je 0x100032e7
mov cl, byte [edx]
test cl, cl
je 0x100032e7
nop dword [eax]
movsx eax, cl
lea edx, [edx + 1]
add eax, 0xffffffd5
cmp eax, 0x4c
ja case.0x100032a5.44
movzx eax, byte [eax + 0x10003304]
jmp dword [eax*4 + 0x100032ec]
mov bl, cl
jmp case.0x100032a5.44
xor eax, eax
jmp 0x100032c7
mov eax, 1
jmp 0x100032c7
mov eax, 2
jmp 0x100032c7
mov eax, 3
cmp bl, 0x2b
jne 0x100032d5
mov byte [eax + 0x1005802c], 1
jmp case.0x100032a5.44
cmp bl, 0x2d
jne case.0x100032a5.44
mov byte [eax + 0x1005802c], 0
mov cl, byte [edx]
test cl, cl
jne 0x10003290
pop ebx
ret

Function at 0x10003710
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x14], edx
push 0x13
mov dword [ebp - 4], esi
xor edi, edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1000373b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x13
push ebx
call esi
mov esi, dword [ebp - 4]
nop word [eax + eax]
lea ecx, [edi + esi]
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
call fcn.100035d0
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100037e9
push eax
lea eax, [edi + esi]
push eax
lea ecx, [ebx + edi]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x1000379b
lea ecx, [ebx + eax]
mov eax, esi
sub eax, ebx
add dword [ecx + edi], eax
mov eax, dword [ebp - 0xc]
add edi, eax
cmp edi, 5
jb 0x10003760
test eax, eax
je 0x100037f6
mov eax, esi
mov byte [ebp - 0xc], 0xe9
sub eax, ebx
sub eax, 5
mov dword [ebp - 0xb], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + edi], eax
movzx eax, byte [ebp - 8]
mov byte [ebx + edi + 4], al
mov eax, dword [ebp - 0x14]
sub eax, esi
mov byte [ebp - 0xc], 0xe9
sub eax, 5
mov dword [ebp - 0xb], eax
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
movzx eax, byte [ebp - 8]
pop edi
mov byte [esi + 4], al
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unsupported_instruction
call fcn.10003530
add esp, 4
sub esi, ebx
mov byte [ebp - 0x14], 0xe9
sub esi, 5
mov dword [ebp - 0x13], esi
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
mov al, byte [ebp - 0x10]
pop edi
mov byte [ebx + 4], al
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004de0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xorps xmm0, xmm0
movss dword [ebp - 0xc], xmm3
push esi
cvtss2sd xmm0, xmm3
push edi
sub esp, 0x18
mov edi, ecx
movss dword [ebp - 8], xmm2
movsd qword [esp + 0x10], xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm2
movss dword [ebp - 4], xmm1
movsd qword [esp + 8], xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm1
movsd qword [esp], xmm0
push edi
push str.SetPlayerPos__d___f___f___f_
call fcn.100034d0
mov esi, dword [0x100595c0]
add esp, 0x20
test esi, esi
je 0x10004e62
cmp esi, fcn.100041f0
jne 0x10004e6e
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10004e6e
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x10004e6e
mov ecx, str.SetPlayerPos
call fcn.10004200
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
push 0x100595e0
mov dword [0x100595c0], esi
mov dword [ebp - 0x20], 0x10
mov dword [ebp - 0x1c], edi
call esi
add esp, 8
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004eb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov eax, edx
mov dword [ebp - 8], ecx
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push eax
push ecx
push str.GetPlayerPos__d___f___f___f_
call fcn.100034d0
mov esi, dword [0x10059578]
add esp, 0x14
test esi, esi
je 0x10004f08
cmp esi, fcn.100041f0
jne 0x10004f14
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10004f14
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x10004f14
mov ecx, str.GetPlayerPos
call fcn.10004200
mov esi, eax
mov ecx, dword [0x100595f8]
mov eax, dword [0x10059688]
shl eax, 2
mov dword [0x10059578], esi
lea ebx, [ecx + 4]
mov dword [ebp - 4], ecx
cmp ebx, eax
jl 0x10004f4f
lea ecx, [ebx + 0x40]
shr ecx, 2
call fcn.10003ec0
test eax, eax
jns 0x10004f4f
mov eax, dword [ebp - 0x10]
mov ebx, dword [0x100595f8]
mov dword [ebp - 4], eax
jmp 0x10004f55
mov dword [0x100595f8], ebx
mov eax, dword [0x10059688]
lea edi, [ebx + 4]
shl eax, 2
cmp edi, eax
jl 0x10004f7e
lea ecx, [edi + 0x40]
shr ecx, 2
call fcn.10003ec0
test eax, eax
jns 0x10004f7e
mov ebx, dword [ebp - 0x14]
mov edi, dword [0x100595f8]
jmp 0x10004f84
mov dword [0x100595f8], edi
mov eax, dword [0x10059688]
lea esi, [edi + 4]
shl eax, 2
cmp esi, eax
jl 0x10004fa7
lea ecx, [esi + 0x40]
shr ecx, 2
call fcn.10003ec0
test eax, eax
jns 0x10004fa7
mov edi, dword [ebp - 0x18]
jmp 0x10004fad
mov dword [0x100595f8], esi
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0x100595e0
mov dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
call dword [0x10059578]
mov edx, dword [ebp - 4]
mov esi, eax
mov ecx, dword [0x10059680]
add esp, 8
mov eax, dword [ebp - 0xc]
shr edx, 2
imul edx, dword [0x1005968c]
mov ecx, dword [edx + ecx]
mov dword [eax], ecx
mov ecx, ebx
mov eax, dword [0x10059680]
shr ecx, 2
imul ecx, dword [0x1005968c]
mov eax, dword [ecx + eax]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov ecx, edi
mov eax, dword [0x10059680]
shr ecx, 2
imul ecx, dword [0x1005968c]
mov eax, dword [ecx + eax]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [0x100595f8]
cmp eax, edi
cmovg eax, edi
cmp eax, ebx
pop edi
cmovg eax, ebx
cmp eax, dword [ebp - 4]
cmovg eax, dword [ebp - 4]
mov dword [0x100595f8], eax
xor eax, eax
test esi, esi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005050
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, edx
mov eax, ecx
push ebx
push eax
push str.GetPlayerFacingAngle__d___f_
mov dword [ebp - 4], eax
call fcn.100034d0
mov esi, dword [0x100594f8]
add esp, 0xc
test esi, esi
je 0x100050a1
cmp esi, fcn.100041f0
jne 0x100050ad
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x100050ad
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x100050ad
mov ecx, str.GetPlayerFacingAngle
call fcn.10004200
mov esi, eax
mov edi, dword [0x100595f8]
mov eax, dword [0x10059688]
mov dword [0x100594f8], esi
shl eax, 2
lea esi, [edi + 4]
cmp esi, eax
jl 0x100050dc
lea ecx, [esi + 0x40]
shr ecx, 2
call fcn.10003ec0
test eax, eax
jns 0x100050dc
mov edi, dword [ebp - 8]
jmp 0x100050e2
mov dword [0x100595f8], esi
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0x100595e0
mov dword [ebp - 0x14], 8
mov dword [ebp - 0xc], edi
call dword [0x100594f8]
mov edx, dword [0x1005968c]
mov ecx, edi
shr ecx, 2
add esp, 8
imul edx, ecx
mov esi, eax
mov ecx, dword [0x10059680]
mov ecx, dword [edx + ecx]
mov dword [ebx], ecx
mov ecx, dword [0x100595f8]
cmp ecx, edi
cmovg ecx, edi
xor eax, eax
pop edi
test esi, esi
mov dword [0x100595f8], ecx
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10005140
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
push edi
push str.GetPlayerInterior__d_
call fcn.100034d0
mov esi, dword [0x10059694]
add esp, 8
test esi, esi
je 0x1000518a
cmp esi, fcn.100041f0
jne 0x10005196
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10005196
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x10005196
mov ecx, str.GetPlayerInterior
call fcn.10004200
mov esi, eax
lea eax, [ebp - 8]
mov dword [0x10059694], esi
push eax
push 0x100595e0
mov dword [ebp - 8], 4
mov dword [ebp - 4], edi
call esi
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100051c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
push edi
push str.GetPlayerTargetActor__d_
call fcn.100034d0
mov esi, dword [0x10059540]
add esp, 8
test esi, esi
je 0x1000520a
cmp esi, fcn.100041f0
jne 0x10005216
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10005216
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x10005216
mov ecx, str.GetPlayerTargetActor
call fcn.10004200
mov esi, eax
lea eax, [ebp - 8]
mov dword [0x10059540], esi
push eax
push 0x100595e0
mov dword [ebp - 8], 4
mov dword [ebp - 4], edi
call esi
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10005240
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
push edi
push str.GetPlayerState__d_
call fcn.100034d0
mov esi, dword [0x100596ac]
add esp, 8
test esi, esi
je 0x1000528a
cmp esi, fcn.100041f0
jne 0x10005296
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10005296
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x10005296
mov ecx, str.GetPlayerState
call fcn.10004200
mov esi, eax
lea eax, [ebp - 8]
mov dword [0x100596ac], esi
push eax
push 0x100595e0
mov dword [ebp - 8], 4
mov dword [ebp - 4], edi
call esi
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100052c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov eax, edx
mov dword [ebp - 8], ecx
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push eax
push ecx
push str.GetPlayerVelocity__d___f___f___f_
call fcn.100034d0
mov esi, dword [0x10059510]
add esp, 0x14
test esi, esi
je 0x10005318
cmp esi, fcn.100041f0
jne 0x10005324
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10005324
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x10005324
mov ecx, str.GetPlayerVelocity
call fcn.10004200
mov esi, eax
mov ecx, dword [0x100595f8]
mov eax, dword [0x10059688]
shl eax, 2
mov dword [0x10059510], esi
lea ebx, [ecx + 4]
mov dword [ebp - 4], ecx
cmp ebx, eax
jl 0x1000535f
lea ecx, [ebx + 0x40]
shr ecx, 2
call fcn.10003ec0
test eax, eax
jns 0x1000535f
mov eax, dword [ebp - 0x10]
mov ebx, dword [0x100595f8]
mov dword [ebp - 4], eax
jmp 0x10005365
mov dword [0x100595f8], ebx
mov eax, dword [0x10059688]
lea edi, [ebx + 4]
shl eax, 2
cmp edi, eax
jl 0x1000538e
lea ecx, [edi + 0x40]
shr ecx, 2
call fcn.10003ec0
test eax, eax
jns 0x1000538e
mov ebx, dword [ebp - 0x14]
mov edi, dword [0x100595f8]
jmp 0x10005394
mov dword [0x100595f8], edi
mov eax, dword [0x10059688]
lea esi, [edi + 4]
shl eax, 2
cmp esi, eax
jl 0x100053b7
lea ecx, [esi + 0x40]
shr ecx, 2
call fcn.10003ec0
test eax, eax
jns 0x100053b7
mov edi, dword [ebp - 0x18]
jmp 0x100053bd
mov dword [0x100595f8], esi
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0x100595e0
mov dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
call dword [0x10059510]
mov edx, dword [ebp - 4]
mov esi, eax
mov ecx, dword [0x10059680]
add esp, 8
mov eax, dword [ebp - 0xc]
shr edx, 2
imul edx, dword [0x1005968c]
mov ecx, dword [edx + ecx]
mov dword [eax], ecx
mov ecx, ebx
mov eax, dword [0x10059680]
shr ecx, 2
imul ecx, dword [0x1005968c]
mov eax, dword [ecx + eax]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov ecx, edi
mov eax, dword [0x10059680]
shr ecx, 2
imul ecx, dword [0x1005968c]
mov eax, dword [ecx + eax]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [0x100595f8]
cmp eax, edi
cmovg eax, edi
cmp eax, ebx
pop edi
cmovg eax, ebx
cmp eax, dword [ebp - 4]
cmovg eax, dword [ebp - 4]
mov dword [0x100595f8], eax
xor eax, eax
test esi, esi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005460
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
push edi
push str.GetPlayerVehicleID__d_
call fcn.100034d0
mov esi, dword [0x100596b0]
add esp, 8
test esi, esi
je 0x100054aa
cmp esi, fcn.100041f0
jne 0x100054b6
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x100054b6
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x100054b6
mov ecx, str.GetPlayerVehicleID
call fcn.10004200
mov esi, eax
lea eax, [ebp - 8]
mov dword [0x100596b0], esi
push eax
push 0x100595e0
mov dword [ebp - 8], 4
mov dword [ebp - 4], edi
call esi
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100054e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
movzx ebx, dl
mov edi, ecx
push ebx
push edi
push str.TogglePlayerControllable__d___d_
call fcn.100034d0
mov esi, dword [0x100594e0]
add esp, 0xc
test esi, esi
je 0x1000552f
cmp esi, fcn.100041f0
jne 0x1000553b
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x1000553b
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x1000553b
mov ecx, str.TogglePlayerControllable
call fcn.10004200
mov esi, eax
lea eax, [ebp - 0xc]
mov dword [0x100594e0], esi
push eax
push 0x100595e0
mov dword [ebp - 0xc], 8
mov dword [ebp - 8], edi
mov dword [ebp - 4], ebx
call esi
add esp, 8
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10005570
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movss xmm0, dword [ebp + 8]
cvtps2pd xmm0, xmm0
push esi
push edi
sub esp, 0x20
mov edi, ecx
movss dword [ebp - 0x10], xmm3
movsd qword [esp + 0x18], xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm3
movss dword [ebp - 0xc], xmm2
movsd qword [esp + 0x10], xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm2
movss dword [ebp - 8], xmm1
movsd qword [esp + 8], xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm1
movsd qword [esp], xmm0
push edi
push str.SetPlayerCheckpoint__d___f___f___f___f_
call fcn.100034d0
mov esi, dword [0x100594f4]
add esp, 0x28
test esi, esi
je 0x10005600
cmp esi, fcn.100041f0
jne 0x1000560c
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x1000560c
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x1000560c
mov ecx, str.SetPlayerCheckpoint
call fcn.10004200
mov esi, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push eax
push 0x100595e0
mov dword [0x100594f4], esi
mov dword [ebp - 0x28], 0x14
mov dword [ebp - 0x24], edi
call esi
add esp, 8
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret