joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a36c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.0042dfe1
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x48a39f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.0048a3b2
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x48c4ad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x48c503
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x48c4dc
call fcn.00472d6f
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x48c4f1
call fcn.00472d6f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x48c503
call fcn.00472d6f
call fcn.0042dfe1
cmp dword [eax + 0x3c], 0
je 0x48c518
push edi
mov ecx, ebx
call fcn.0048bbdd
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0048c6fe
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x48c541
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x48c54d
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4908c2
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0
je 0x4908f8
call fcn.0042323e
test eax, eax
je 0x4908da
mov eax, dword [eax + 0x20]
push 1
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 0x14]
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jb 0x4908f8
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4d2845
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, 0x104
mov eax, dword [esi + 4]
cmp eax, ecx
ja 0x4d29d8
je 0x4d29fe
cmp eax, 0xa1
jb 0x4d2a3c
cmp eax, 0xa2
jbe 0x4d29fe
cmp eax, 0xa3
jbe 0x4d2a3c
cmp eax, 0xa5
jbe 0x4d29fe
cmp eax, 0xa6
jbe 0x4d2a3c
cmp eax, 0xa8
jbe 0x4d29fe
cmp eax, 0x100
jne 0x4d2a3c
cmp dword [edi + 0xc0], 0xffffffff
je 0x4d29fe
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x4d29fe
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x4d292d
sub eax, 1
jne 0x4d29fe
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x4d291c
mov eax, ebx
cdq
idiv ecx
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x59da0c]
mov ecx, edi
call esi
test eax, eax
jne 0x4d2979
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x4d28f2
jmp 0x4d2a56
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x4d2a56
mov eax, ebx
cdq
idiv dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x59da0c]
mov ecx, edi
call esi
test eax, eax
jne 0x4d2979
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x4d2944
jmp 0x4d2a56
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x59da0c]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x59da0c]
mov ecx, edi
call esi
mov ecx, eax
call fcn.0046555e
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x59da0c]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x4d2a56
cmp eax, 0x200
jb 0x4d2a3c
cmp eax, 0x202
jbe 0x4d29fe
cmp eax, 0x203
jbe 0x4d2a3c
cmp eax, 0x205
jbe 0x4d29fe
add eax, 0xfffffdf9
cmp eax, 1
ja 0x4d2a3c
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x4d2a1d
cmp dword [eax + 0x20], ebx
je 0x4d2a1d
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x4d2a3c
cmp dword [eax + 0x20], ebx
je 0x4d2a3c
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x4d2a5b
lea eax, [edi + 0x2250]
test eax, eax
je 0x4d2a52
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x4d2a5b
xor eax, eax
inc eax
jmp 0x4d2a63
push esi
mov ecx, edi
call fcn.004ccd64
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4ec8f7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x4ec9ab
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x4ec9a7
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4ec9a7
cmp dword [ebx], eax
jne 0x4ec9a7
mov eax, dword [ebx + 4]
sub eax, 1
je 0x4ec976
sub eax, 1
je 0x4ec944
sub eax, 1
jne 0x4ec9a7
mov edi, 0x428e
jmp 0x4ec97b
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x4ec97b
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x59da0c]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x4ec97b
add edi, 3
jmp 0x4ec97b
mov edi, 0x3ea0
push edi
call fcn.0042d750
test eax, eax
je 0x4ec9ab
push edi
push eax
mov ecx, 0x7c7870
call fcn.00423c86
test eax, eax
je 0x4ec9ab
mov eax, dword [0x7c7870]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x4ec9a0
call fcn.0042cb59
int3
Function at 0x4fd19d
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x7bf004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.0056eee0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.00578bae
push eax
call fcn.00423214
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x5a3bd4]
je 0x4fd307
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4fd31b
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4fd31b
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
jne 0x4fd236
mov eax, edi
jmp 0x4fd265
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4fd253
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.004fcf42
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x28]
jmp 0x4fd25c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004fc15a
test eax, eax
je 0x4fd28a
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.004fbc73
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4fd28e
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004fc15a
test eax, eax
je 0x4fd2b5
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.004fbc73
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4fd2b9
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004fc15a
test eax, eax
je 0x4fd2e1
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.004fbc73
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x4fd2e3
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4fd2f5
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4fd307
mov eax, edi
mov dword [esi + 0x10], eax
mov eax, ecx
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056c4d0
leave
ret 4
xor eax, eax
jmp 0x4fd30a
Function at 0x51ca75
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00464c9b
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x51cab1
call fcn.0051cc90
mov dword [esi + 0xc], 1
jmp 0x51cab6
call fcn.0051cc90
cmp dword [esi], 0
je 0x51caff
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x51cad9
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0042d7c2
jmp 0x51caea
push 0xff
mov ecx, esi
call fcn.00423ecf
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00429291
jmp 0x51cb23
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x51cb23
push dword [esi]
push dword [ebp - 4]
call fcn.0046f71d
pop esi
leave
ret 0xc

Function at 0x51cbe7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0051cc90
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x51cc2f
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0042d7c2
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00429291
jmp 0x51cc3a
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0046f71d
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x51df9e
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0057cde3
pop ecx
test eax, eax
jne 0x51dfe0
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0042951c
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x51dfa6
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret
Function at 0x5582c5
Capabilities:
Get file system object information

Disassembly:
push 0x6f4
mov eax, 0x59b51e
call fcn.0056cbd2
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x700], edi
test ecx, ecx
je 0x55845c
mov eax, dword [ebp + 0x10]
xor esi, esi
sub eax, esi
je 0x55842e
sub eax, 1
je 0x558344
sub eax, 1
je 0x55831c
sub eax, 1
je 0x558344
push 0x5d007c
mov ecx, edi
call fcn.00422e4b
mov eax, edi
call fcn.0056cb7c
ret 0x10
push 0x408
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x558306
lea eax, [ebp - 0x4e8]
push eax
jmp 0x55830b
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x558306
push esi
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], esi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x444], esi
push eax
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
call fcn.004fd31f
test eax, eax
je 0x558306
call fcn.0042dad5
push eax
lea ecx, [ebp - 0x700]
call fcn.00422e12
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x5583e4
test byte [ebp - 0x428], 0x18
jne 0x558406
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
push dword [ebp - 0x42c]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x430]
call dword [0x59da0c]
mov ecx, ebx
call esi
jmp 0x558406
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
lea ecx, [ebp - 0x440]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x59da0c]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.004233f9
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.0041ea50
jmp 0x558312
push 0x208
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x558306
lea eax, [ebp - 0x6f0]
jmp 0x558341
call fcn.0042cb59
int3

Function at 0x5585ef
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00568c55
call fcn.0042e035
cmp dword [eax + 0x14], 0
jne 0x55860a
mov ecx, esi
pop esi
jmp fcn.005578e7
pop esi
ret

Function at 0x5594cf
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00402160
call fcn.0042e035
cmp dword [eax + 0x14], 0
jne 0x5594ea
mov ecx, esi
pop esi
jmp fcn.00558d31
pop esi
ret
Function at 0x55d1b7
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x58fe25
call fcn.0056cb9e
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x55d29d
mov edi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x55d29d
cmp edi, 0x43
je 0x55d1fc
cmp edi, 0x2d
jne 0x55d29d
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x55d29d
call dword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.0042dad5
push eax
lea ecx, [ebp - 0x10]
call fcn.00422e12
movzx eax, byte [esi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [esi + 0xe5]
push eax
movzx eax, byte [esi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push 0x5c6598
push eax
call fcn.004265fe
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.0041ea50
mov esi, dword [ebp - 0x14]
push ebx
mov ecx, esi
call fcn.004dfce4
call fcn.0056cb67
ret 4

Function at 0x5846d6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00584353
Function at 0x10002c90
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 0x10002d07
mov cl, byte [edx]
test cl, cl
je 0x10002d07
nop dword [eax]
movsx eax, cl
lea edx, [edx + 1]
add eax, 0xffffffd5
cmp eax, 0x4c
ja case.0x10002cc5.44
movzx eax, byte [eax + 0x10002d24]
jmp dword [eax*4 + 0x10002d0c]
mov bl, cl
jmp case.0x10002cc5.44
xor eax, eax
jmp 0x10002ce7
mov eax, 1
jmp 0x10002ce7
mov eax, 2
jmp 0x10002ce7
mov eax, 3
cmp bl, 0x2b
jne 0x10002cf5
mov byte [eax + 0x1004102c], 1
jmp case.0x10002cc5.44
cmp bl, 0x2d
jne case.0x10002cc5.44
mov byte [eax + 0x1004102c], 0
mov cl, byte [edx]
test cl, cl
jne 0x10002cb0
pop ebx
ret

Function at 0x10003120
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 0x1000314b
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.10002ff0
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100031f9
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 0x100031ab
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 0x10003170
test eax, eax
je 0x10003206
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.10002f50
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 0x100046f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov eax, ecx
mov dword [ebp - 8], edx
push dword [ebp + 8]
mov dword [ebp - 4], eax
push edx
push eax
push str.GetPlayerPos__d___f___f___f_
call fcn.10002ef0
mov esi, dword [0x10042228]
add esp, 0x14
test esi, esi
je 0x10004748
cmp esi, fcn.10003af0
jne 0x10004754
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 0x10004754
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x10004754
mov ecx, str.GetPlayerPos
call fcn.10003b00
mov esi, eax
mov ebx, dword [0x10042290]
mov eax, dword [0x10042320]
shl eax, 2
mov dword [0x10042228], esi
lea edi, [ebx + 4]
cmp edi, eax
jl 0x10004789
lea ecx, [edi + 0x40]
shr ecx, 2
call fcn.100037c0
test eax, eax
jns 0x10004789
mov ebx, dword [ebp - 0xc]
mov edi, dword [0x10042290]
jmp 0x1000478f
mov dword [0x10042290], edi
mov eax, dword [0x10042320]
lea esi, [edi + 4]
shl eax, 2
cmp esi, eax
jl 0x100047b8
lea ecx, [esi + 0x40]
shr ecx, 2
call fcn.100037c0
test eax, eax
jns 0x100047b8
mov edi, dword [ebp - 0x10]
mov esi, dword [0x10042290]
jmp 0x100047be
mov dword [0x10042290], esi
mov eax, dword [0x10042320]
lea ecx, [esi + 4]
shl eax, 2
cmp ecx, eax
jl 0x100047e4
add ecx, 0x40
shr ecx, 2
call fcn.100037c0
test eax, eax
jns 0x100047e1
mov esi, dword [ebp - 0x14]
jmp 0x100047ea
lea ecx, [esi + 4]
mov dword [0x10042290], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push 0x10042278
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
call dword [0x10042228]
mov ecx, ebx
add esp, 8
shr ecx, 2
mov edx, eax
test ecx, ecx
jns 0x10004823
add ecx, dword [0x1004231c]
imul ecx, dword [0x10042324]
mov eax, dword [0x10042318]
mov eax, dword [ecx + eax]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov ecx, edi
shr ecx, 2
test ecx, ecx
jns 0x10004846
add ecx, dword [0x1004231c]
imul ecx, dword [0x10042324]
mov eax, dword [0x10042318]
mov eax, dword [ecx + eax]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov ecx, esi
shr ecx, 2
test ecx, ecx
jns 0x10004869
add ecx, dword [0x1004231c]
imul ecx, dword [0x10042324]
mov eax, dword [0x10042318]
mov eax, dword [ecx + eax]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [0x10042290]
cmp eax, esi
cmovg eax, esi
cmp eax, edi
cmovg eax, edi
cmp eax, ebx
pop edi
cmovg eax, ebx
mov dword [0x10042290], eax
xor eax, eax
test edx, edx
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100048b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, edx
mov ebx, ecx
push eax
push ebx
push str.GetPlayerFacingAngle__d___f_
mov dword [ebp - 4], eax
call fcn.10002ef0
mov esi, dword [0x100421b8]
add esp, 0xc
test esi, esi
je 0x10004901
cmp esi, fcn.10003af0
jne 0x1000490d
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 0x1000490d
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x1000490d
mov ecx, str.GetPlayerFacingAngle
call fcn.10003b00
mov esi, eax
mov eax, dword [0x10042320]
mov dword [0x100421b8], esi
mov esi, dword [0x10042290]
shl eax, 2
lea edi, [esi + 4]
cmp edi, eax
jl 0x1000493c
lea ecx, [edi + 0x40]
shr ecx, 2
call fcn.100037c0
test eax, eax
jns 0x1000493c
mov esi, dword [ebp - 8]
jmp 0x10004942
mov dword [0x10042290], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 8
push eax
push 0x10042278
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
call dword [0x100421b8]
mov edx, esi
add esp, 8
shr edx, 2
mov edi, eax
test edx, edx
jns 0x10004972
add edx, dword [0x1004231c]
mov ecx, dword [0x10042324]
mov eax, dword [0x10042318]
imul ecx, edx
mov eax, dword [ecx + eax]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [0x10042290]
cmp eax, esi
cmovg eax, esi
mov dword [0x10042290], eax
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100049b0
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.10002ef0
mov esi, dword [0x1004232c]
add esp, 8
test esi, esi
je 0x100049fa
cmp esi, fcn.10003af0
jne 0x10004a06
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 0x10004a06
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x10004a06
mov ecx, str.GetPlayerInterior
call fcn.10003b00
mov esi, eax
lea eax, [ebp - 8]
mov dword [0x1004232c], esi
push eax
push 0x10042278
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 0x10004a30
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.10002ef0
mov esi, dword [0x10042338]
add esp, 8
test esi, esi
je 0x10004a7a
cmp esi, fcn.10003af0
jne 0x10004a86
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 0x10004a86
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x10004a86
mov ecx, str.GetPlayerState
call fcn.10003b00
mov esi, eax
lea eax, [ebp - 8]
mov dword [0x10042338], esi
push eax
push 0x10042278
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