joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4892e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x7b7477], 0
push edi
mov dword [ebp - 4], edx
mov edi, ecx
je 0x4894c7
push esi
mov esi, dword [0x7c2928]
mov byte [0x7b7866], 1
test esi, esi
je 0x4894c6
mov eax, dword [esi]
push esi
call dword [eax + 0x48]
cmp dword [0x7c2928], 0
je 0x4894c6
cmp edi, 0x82
jg 0x4894c6
push ebx
imul ebx, edi, 0x10c
cmp dword [ebx + 0x7ba214], 0
je 0x4894c5
mov eax, dword [ebx + 0x7ba218]
push 0
push 0
add eax, 0x5a
push eax
push dword [0x7c2a8c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0x7c2aa8
push 0x5800
push dword [0x7c2a9c]
mov dword [0x7c2ac8], edi
push dword [0x7c2a8c]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
mov eax, dword [0x7c2aa8]
push dword [0x6f3a1c]
mov dword [0x7c2aac], eax
mov eax, dword [0x7c2928]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [0x7c2928]
push 0
push 0
push 0
mov ecx, dword [eax]
push 0x7c2aa4
push 0x7c2aa0
push dword [0x7c2ab8]
push 0
push eax
call dword [ecx + 0x2c]
mov esi, dword [sym.imp.MSACM32.dll_acmStreamConvert]
push 0x14
push 0x7c2930
push dword [0x7c2a88]
call esi
push 0
push 0x7c2aa8
push 0x5800
push dword [0x7c2a9c]
push dword [0x7c2a8c]
call edi
mov eax, dword [0x7c2aa8]
add dword [0x7c2aac], eax
push 4
push 0x7c2984
push dword [0x7c2a88]
call esi
mov eax, dword [0x7c2928]
push 0
push 0
push dword [0x7c2ab8]
mov ecx, dword [eax]
push dword [0x7c2aa0]
push eax
call dword [ecx + 0x4c]
cmp dword [0x7c2928], 0
je 0x489470
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x7c2ab0], eax
mov eax, dword [0x7c2928]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [0x7c2928]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [0x7c2928]
push dword [0x6f3a1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [0x7c2928]
push 1
push 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov eax, dword [0x7c2ac0]
add eax, eax
mov dword [0x7c2abc], 2
cmp dword [ebp - 4], 0
mov dword [0x7c2ac4], eax
mov eax, dword [ebx + 0x7ba214]
setne byte [0x7b78cc]
cmp dword [0x7c2aac], eax
jbe 0x4894b9
pop ebx
mov dword [0x7c2aac], eax
mov al, 1
pop esi
mov byte [0x7b78cd], al
mov byte [0x7b7866], 0
pop edi
mov esp, ebp
pop ebp
ret
xor al, al
mov byte [0x7b78cd], al
mov byte [0x7b7866], al
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x499640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x5153d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x68
lea eax, [ebp - 0x7c]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x94], ebx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebx]
lea ecx, [ebp - 0x80]
add esp, 0xc
mov dword [ebp - 0x80], 0x6c
push ecx
push ebx
call dword [eax + 0x58]
test eax, eax
js 0x499806
mov eax, dword [ebx]
lea ecx, [ebp - 0x80]
push 0
push 1
push ecx
push 0
push ebx
call dword [eax + 0x64]
test eax, eax
js 0x499806
push dword [0x7ccd6c]
mov ebx, dword [ebp - 0x5c]
lea eax, [ebp - 0x14]
push str.tomb_04d.tga
push eax
call fcn.004216a0
inc dword [0x7ccd6c]
lea eax, [ebp - 0x14]
push 0x50f9a0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 0x14
mov dword [ebp - 0x88], eax
test eax, eax
je 0x4997f4
movzx ecx, word [ebp - 0x74]
push esi
push edi
push eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push 1
mov word [0x5174fc], cx
movzx ecx, word [ebp - 0x78]
push 0x12
push 0x5174f0
mov word [0x5174fe], cx
mov dword [ebp - 0x90], eax
call eax
mov eax, dword [ebp - 0x74]
xor ecx, ecx
add eax, eax
mul dword [ebp - 0x78]
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, dword [ebp - 0x78]
mov esi, eax
mov ecx, dword [ebp - 0x74]
add esp, 0x14
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x70]
cdq
sub eax, edx
mov dword [ebp - 0x84], 0
sar eax, 1
imul eax, edi
lea ebx, [ebx + eax*2]
test edi, edi
je 0x4997b2
nop
xor edx, edx
test ecx, ecx
je 0x499794
nop word [eax + eax]
cmp dword [ebp - 0x28], 0xf800
lea edi, [esi + 2]
movzx eax, word [ebx + edx*2]
jne 0x499784
mov cx, ax
and eax, 0x1f
shr cx, 6
shl cx, 5
or cx, ax
movzx eax, cx
mov word [esi], ax
inc edx
mov ecx, dword [ebp - 0x74]
mov esi, edi
cmp edx, ecx
jb 0x499760
mov edi, dword [ebp - 0x78]
mov eax, dword [ebp - 0x70]
cdq
sub eax, edx
sar eax, 1
neg eax
lea ebx, [ebx + eax*2]
mov eax, dword [ebp - 0x84]
inc eax
mov dword [ebp - 0x84], eax
cmp eax, edi
jb 0x499750
mov esi, dword [ebp - 0x88]
imul edi, ecx
push esi
push 1
add edi, edi
push edi
mov edi, dword [ebp - 0x8c]
push edi
call dword [ebp - 0x90]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov al, byte [ebp - 0xd]
add esp, 0x18
inc al
mov byte [ebp - 0xd], al
pop edi
pop esi
cmp al, 0x39
jle 0x4997f4
inc byte [ebp - 0xe]
mov byte [ebp - 0xd], 0x30
mov ecx, dword [ebp - 0x94]
push dword [ebp - 0x5c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x80]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004b557b
mov esp, ebp
pop ebp
ret
Function at 0x49a5f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5153d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x7ccd70]
push ebx
add eax, 4
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov dword [0x7ccd70], eax
push esi
push edi
cmp eax, 0x4000
jbe 0x49a62b
mov dword [0x7ccd70], 0
call fcn.00489cf0
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [0x7732a8]
mov eax, dword [0x7732a4]
imul ecx, dword [esi], 0x3a0
mov eax, dword [eax + 4]
imul edx, dword [esi + 4], 0x2f1
mov eax, dword [ecx + eax + 0x39c]
imul ecx, dword [esi + 0x10], 0x9a
mov esi, 0x10000
mov eax, dword [eax + edx + 0x2ed]
mov al, byte [eax + ecx + 4]
mov ecx, 0x20000
test al, al
mov byte [ebp - 0xd], al
cmove esi, ecx
mov eax, esi
imul eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
jne 0x49a6ad
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b557b
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0xd], 0
mov eax, dword [ebp - 0xc]
jne 0x49a712
push 1
push 0
shl eax, 0x10
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0xc]
xor ebx, ebx
test ecx, ecx
jle 0x49a70e
mov edi, dword [ebp - 0x14]
mov eax, dword [0x7ccd70]
add eax, esi
mov dword [0x7ccd70], eax
cmp eax, 0x4000
jbe 0x49a6f3
mov dword [0x7ccd70], 0
call fcn.00489cf0
push 0
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xc]
inc ebx
add edi, esi
cmp ebx, ecx
jl 0x49a6d1
push 0
jmp 0x49a777
xor edi, edi
test eax, eax
jle 0x49a760
mov ebx, ecx
nop word [eax + eax]
mov eax, dword [0x7ccd70]
add eax, esi
mov dword [0x7ccd70], eax
cmp eax, 0x4000
jbe 0x49a742
mov dword [0x7ccd70], 0
call fcn.00489cf0
push 0
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
inc edi
add ebx, esi
cmp edi, eax
jl 0x49a720
mov ebx, dword [ebp - 0x18]
push 1
push 0
shl eax, 0x11
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0xc]
push 0x7cc368
mov edx, dword [ebp - 0x14]
call fcn.004a19b0
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b557b
mov esp, ebp
pop ebp
ret
Function at 0x49bb10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5153d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x7ccd70]
push ebx
add eax, 4
mov dword [0x7ccd70], eax
push esi
push edi
mov edi, ecx
cmp eax, 0x4000
jbe 0x49bb48
mov dword [0x7ccd70], 0
call fcn.00489cf0
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push 0
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call ebx
mov esi, dword [ebp - 0xc]
mov eax, dword [0x7ccd70]
shl esi, 4
add eax, esi
mov dword [0x7ccd70], eax
cmp eax, 0x4000
jbe 0x49bb85
mov dword [0x7ccd70], 0
call fcn.00489cf0
push 0
lea eax, [ebp - 8]
push eax
push esi
push 0x6f51d8
push edi
call ebx
mov eax, dword [0x7ccd70]
add eax, 4
mov dword [0x7ccd70], eax
cmp eax, 0x4000
jbe 0x49bbb7
mov dword [0x7ccd70], 0
call fcn.00489cf0
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call ebx
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
jle 0x49bcf4
nop word [eax + eax]
mov eax, dword [0x7ccd70]
add eax, 4
mov dword [0x7ccd70], eax
cmp eax, 0x4000
jbe 0x49bc03
mov dword [0x7ccd70], 0
call fcn.00489cf0
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push edi
call ebx
mov eax, dword [ebp - 0x10]
cmp eax, 0x178
jl 0x49bc75
push 1
push 0
push 2
sub eax, 0x178
push edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x10]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [0x7ccd70]
add eax, 2
mov dword [0x7ccd70], eax
lea esi, [ecx*4 + 0x6ed598]
cmp eax, 0x4000
jbe 0x49bc67
mov dword [0x7ccd70], 0
call fcn.00489cf0
push 0
lea eax, [ebp - 8]
push eax
push 2
push esi
push edi
call ebx
jmp 0x49bce4
imul esi, eax, 0x32
mov eax, dword [0x7ccd70]
add eax, 2
mov dword [0x7ccd70], eax
add esi, 0x6e8c28
cmp eax, 0x4000
jbe 0x49bca1
mov dword [0x7ccd70], 0
call fcn.00489cf0
push 0
lea eax, [ebp - 8]
push eax
push 2
push esi
push edi
call ebx
mov eax, dword [0x7ccd70]
add eax, 2
mov dword [0x7ccd70], eax
cmp eax, 0x4000
jbe 0x49bcd0
mov dword [0x7ccd70], 0
call fcn.00489cf0
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [esi + 2]
push eax
push edi
call ebx
or word [esi + 0x30], 1
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 0xc]
jl 0x49bbe0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b557b
mov esp, ebp
pop ebp
ret
Function at 0x49d630
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5153d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov ebx, edx
mov dword [ebp - 0x10], eax
mov eax, dword [0x7ccd70]
lea ecx, [esi + esi]
add eax, ecx
mov dword [0x7ccd70], eax
push edi
mov edi, dword [ebp + 8]
cmp eax, 0x4000
jbe 0x49d67e
mov dword [0x7ccd70], 0
call fcn.00489cf0
lea ecx, [esi + esi]
push 0
push dword [ebp - 0xc]
push ecx
push 0x6e6db0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x7ccd70]
add eax, 2
mov dword [0x7ccd70], eax
cmp eax, 0x4000
jbe 0x49d6b5
mov dword [0x7ccd70], 0
call fcn.00489cf0
push 0
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push 2
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, word [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x14], eax
mov dword [edi], eax
test eax, eax
jne 0x49d6f0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b557b
mov esp, ebp
pop ebp
ret
movsx ecx, word [ebp - 8]
mov eax, dword [0x7ccd70]
add eax, ecx
mov dword [ebp - 0x18], ecx
mov dword [0x7ccd70], eax
cmp eax, 0x4000
jbe 0x49d71c
mov dword [0x7ccd70], 0
call fcn.00489cf0
mov ecx, dword [ebp - 0x18]
push 0
push dword [ebp - 0xc]
push ecx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test byte [0x6e6b59], 1
je 0x49d754
mov edx, dword [edi]
xor eax, eax
xor ecx, ecx
cmp ax, word [ebp - 8]
jge 0x49d754
mov al, byte [0x6e6b60]
xor byte [ecx + edx], al
inc ecx
movsx eax, word [ebp - 8]
cmp ecx, eax
jl 0x49d743
xor eax, eax
test esi, esi
jle 0x49d842
cmp esi, 0x10
jb 0x49d830
movd xmm0, dword [edi]
lea ecx, [esi*2 + 0x6e6dae]
pshufd xmm1, xmm0, 0
lea edx, [esi - 1]
lea edx, [ebx + edx*4]
cmp ebx, ecx
ja 0x49d78d
cmp edx, 0x6e6db0
jae 0x49d830
cmp ebx, edi
ja 0x49d799
cmp edx, edi
jae 0x49d830
mov edx, esi
lea ecx, [ebx + 0x20]
and edx, 0xfffffff0
nop dword [eax]
nop word [eax + eax]
movq xmm0, qword [eax*2 + 0x6e6db0]
lea ecx, [ecx + 0x40]
punpcklwd xmm0, xmm0
psrad xmm0, 0x10
paddd xmm0, xmm1
movups xmmword [ecx - 0x60], xmm0
movq xmm0, qword [eax*2 + 0x6e6db8]
punpcklwd xmm0, xmm0
psrad xmm0, 0x10
paddd xmm0, xmm1
movups xmmword [ecx - 0x50], xmm0
movq xmm0, qword [eax*2 + 0x6e6dc0]
punpcklwd xmm0, xmm0
psrad xmm0, 0x10
paddd xmm0, xmm1
movups xmmword [ecx - 0x40], xmm0
movq xmm0, qword [eax*2 + 0x6e6dc8]
add eax, 0x10
punpcklwd xmm0, xmm0
psrad xmm0, 0x10
paddd xmm0, xmm1
movups xmmword [ecx - 0x30], xmm0
cmp eax, edx
jl 0x49d7b0
mov dword [ebp - 0x14], eax
cmp eax, esi
jge 0x49d842
nop dword [eax]
movsx ecx, word [eax*2 + 0x6e6db0]
add ecx, dword [edi]
mov dword [ebx + eax*4], ecx
inc eax
cmp eax, esi
jl 0x49d830
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b557b
mov esp, ebp
pop ebp
ret
Function at 0x49fe10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x5153d4]
xor eax, ebp
mov dword [ebp - 8], eax
cmp byte [0x77333e], 0
mov eax, str.._savesg_savegame._d
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
mov ecx, str.._saves_savegame._d
cmove eax, ecx
push eax
lea eax, [ebp - 0x5c]
push 0x50
push eax
call fcn.004a0430
add esp, 0x10
lea eax, [ebp - 0x5c]
push 0
push 0x80
push 3
push 0
push 0
push DirectSoundEnumerateA
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x49fed2
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x60]
push 0
push eax
push 0x4b
lea eax, [ebp - 0x5c]
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x60]
push eax
push 4
lea eax, [ebp - 0x64]
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x60]
push eax
push 0x360a
push ebx
push edi
call esi
push 0
push 0x773364
push 0x1387
push 0x773368
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004b557b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b557b
mov esp, ebp
pop ebp
ret
Function at 0x49fef0
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x5153d4]
xor eax, ebp
mov dword [ebp - 8], eax
cmp byte [0x77333e], 0
mov eax, str.savesg
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xb4], ecx
mov ecx, str.saves
cmove eax, ecx
push esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004216a0
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
add esp, 0x10
test eax, eax
je 0x49ff59
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
add esp, 4
test eax, eax
jne 0x4a0124
cmp byte [0x77333e], 0
mov ecx, str.._saves_savegame._d
mov eax, str.._savesg_savegame._d
cmove eax, ecx
push ebx
push eax
lea eax, [ebp - 0x74]
push 0x50
push eax
call fcn.004a0430
add esp, 0x10
lea eax, [ebp - 0x74]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0xb0], esi
cmp esi, 0xffffffff
je 0x4a0124
movsx edx, word [0x6ef70f]
lea eax, [ebp - 0x74]
mov ecx, dword [0x6e6c3c]
push dword [ecx + edx*4]
push 0x50f46c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x78]
push 0
push eax
push 0x4b
lea eax, [ebp - 0x74]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
push 0
lea eax, [ebp - 0x78]
push eax
push 4
push 0x7cc7e0
push dword [ebp - 0xb0]
call esi
push 0
lea eax, [ebp - 0x78]
push eax
push 0x360a
push dword [ebp - 0xb4]
push dword [ebp - 0xb0]
call esi
push 0
lea eax, [ebp - 0x78]
push eax
push 0x1387
push 0x773368
push dword [ebp - 0xb0]
call esi
push dword [ebp - 0xb0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x7cc7e0]
lea eax, [ebp - 0x20]
push 0x50f470
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebx*4 + 0x5157f8]
add esp, 0xc
test ecx, ecx
je 0x4a0071
mov eax, dword [ecx]
test al, 1
je 0x4a0071
and eax, 0xfffffffe
mov dword [ecx], eax
mov ax, word [0x7b7b9c]
dec ax
mov word [0x7b7b9c], ax
jmp 0x4a0077
mov ax, word [0x7b7b9c]
mov edx, dword [ebx*4 + 0x515858]
mov dword [ebx*4 + 0x5157f8], 0
test edx, edx
je 0x4a00a1
mov ecx, dword [edx]
test cl, 1
je 0x4a00a1
and ecx, 0xfffffffe
dec ax
mov dword [edx], ecx
mov word [0x7b7b9c], ax
lea eax, [ebp - 0x74]
mov dword [ebx*4 + 0x515858], 0
push eax
movsx eax, word [0x5156fe]
imul eax, ebx
add eax, dword [0x515700]
push eax
call fcn.004216a0
mov eax, dword [0x515708]
mov dword [eax + ebx*4], 3
lea eax, [ebp - 0x20]
push eax
movsx eax, word [0x5156fe]
imul eax, ebx
add eax, dword [0x515704]
push eax
call fcn.004216a0
mov eax, dword [0x51570c]
add esp, 0x10
mov dword [eax + ebx*4], 5
mov eax, 1
inc dword [0x7cc7e0]
inc dword [0x748f78]
mov word [ebx*2 + 0x51742c], ax
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004b557b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004b557b
mov esp, ebp
pop ebp
ret
Function at 0x4ad960
Capabilities:
Terminate process

Disassembly:
mov edx, dword [0x773268]
push esi
mov esi, ecx
mov ecx, dword [0x7732ac]
push 8
call fcn.00498c80
add esp, 4
push 0
push 0
push esi
push dword [0x773268]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.004a1d80
mov ecx, 0x748fb8
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4ad996
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x4ad9b0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xb8
mov eax, dword [0x5153d4]
xor eax, esp
mov dword [esp + 0xb4], eax
push esi
push edi
lea eax, [esp + 0x30]
movss dword [esp + 0x2c], xmm2
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x34], 0x40
push eax
lea eax, [esp + 0x3c]
mov esi, ecx
push eax
push 0
push esi
push dword [0x7cc90c]
mov edi, edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4ada2d
cmp dword [esp + 0x34], 1
jne 0x4ada2d
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
fstp dword [edi]
add esp, 4
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.004b557b
mov esp, ebp
pop ebp
ret
push esi
push dword [0x7cc90c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
movss xmm0, dword [esp + 0x2c]
lea eax, [esp + 0x38]
cvtps2pd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push str._.5f
push eax
call fcn.004216a0
mov ecx, eax
add esp, 0x10
test ecx, ecx
jns 0x4ada79
lea ecx, [esp + 0x38]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ada70
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0x3c]
push eax
push 1
push 0
push esi
push dword [0x7cc90c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
movss xmm0, dword [esp + 0x2c]
xor al, al
mov ecx, dword [esp + 0xbc]
movss dword [edi], xmm0
pop edi
pop esi
xor ecx, esp
call fcn.004b557b
mov esp, ebp
pop ebp
ret
Function at 0x4b1340
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
push 0x4b84d0
push 0x64
call fcn.004b5c83
mov esi, eax
add esp, 8
test esi, esi
je 0x4b14af
push 0x63
lea ecx, [esi + 1]
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
lea eax, [esi + 4]
mov byte [esi], 1
push 2
push eax
call sub.MSVCP140.dll__Mtx_init_in_situ
lea eax, [esi + 0x34]
push eax
call sub.MSVCP140.dll__Cnd_init_in_situ
xorps xmm0, xmm0
mov dword [0x53cc90], esi
add esp, 0x18
movq qword [esi + 0x5c], xmm0
cmp dword [esp + 0x18], 0
mov esi, dword [esp + 0x10]
je 0x4b13be
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4b13b3
cmp byte [eax], 0
je 0x4b13b3
push eax
push esi
call fcn.004b1a60
jmp 0x4b13bb
push 0
push esi
call fcn.004b19d0
add esp, 8
call sub.KERNEL32.dll_GetCurrentProcessId
push 0x5175a0
mov dword [0x53ca8c], eax
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x4b14be
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b13f6
movups xmm0, xmmword [eax]
movups xmmword [0x538644], xmm0
movq xmm0, qword [eax + 0x10]
jmp 0x4b1400
xorps xmm0, xmm0
movups xmmword [0x538644], xmm0
movq qword [0x538654], xmm0
xorps xmm0, xmm0
push 0x5175a0
movups xmmword [0x53865c], xmm0
movq qword [0x53866c], xmm0
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
cmp dword [0x538640], 0
jne 0x4b14b9
push esi
call fcn.004b4ae0
mov dword [0x538640], eax
mov dword [eax + 8], 0x4afc80
mov eax, dword [0x538640]
mov dword [eax + 0xc], 0x4afc30
mov al, 1
mov esi, dword [0x53cc90]
xchg byte [esi], al
push 4
call fcn.004b59f4
add esp, 8
test eax, eax
je 0x4b146e
mov dword [eax], esi
jmp 0x4b1470
xor eax, eax
lea ecx, [esp + 8]
push ecx
push 0
push eax
push 0x4afc90
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [esp + 4], ecx
test ecx, ecx
je 0x4b14c4
cmp dword [esi + 0x60], 0
je 0x4b14a0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [esp + 8]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop esi
add esp, 8
ret
mov dword [0x53cc90], 0
pop esi
add esp, 8
ret
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
push 6
mov dword [esp + 0xc], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x4b1a60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa94
mov eax, dword [0x5153d4]
xor eax, esp
mov dword [esp + 0xa90], eax
mov eax, dword [esp + 0xa98]
lea ecx, [esp + 0x48]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
mov edi, dword [esp + 0xaa4]
push 0x20
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call esi
push 0x20
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SoftwareValveSteam
push DirectSoundEnumerateA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4b1ada
push str.Error_opening_Steam_key_n
jmp 0x4b1b91
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x208
push eax
lea eax, [esp + 0x94]
push eax
push 0
push 0
push str.SteamExe
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4b1b8c
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jb 0x4b1b8c
shr ecx, 1
mov eax, esi
je 0x4b1b3c
lea edx, [esi + 0x5c]
cmp word [esp + eax*2 + 0x90], 0x2f
jne 0x4b1b37
mov word [esp + eax*2 + 0x90], dx
inc eax
cmp eax, ecx
jb 0x4b1b24
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x94]
push eax
push str.__s__steam:__rungameid__s
lea eax, [esp + 0x2a4]
push 0x800
push eax
call fcn.004b1960
lea eax, [esp + 0x2ac]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.004b1690
add esp, 0x1c
pop edi
pop esi
mov ecx, dword [esp + 0xa90]
xor ecx, esp
call fcn.004b557b
add esp, 0xa94
ret
push str.Error_reading_SteamExe_key_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00488ff0
mov ecx, dword [esp + 0xaa0]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.004b557b
add esp, 0xa94
ret