joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d190
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505a8f
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5845f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
push 0xc
lea ecx, [ebp - 0x20]
call fcn.004233d0
lea ecx, [ebp - 0x20]
call fcn.0041a450
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x42d221
mov ecx, dword [ebp + 8]
call fcn.0041a450
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0041bc90
mov eax, dword [ebp + 8]
jmp 0x42d343
mov dword [ebp - 0x34], 0
jmp 0x42d233
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x14]
jge 0x42d312
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + ecx*4]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jg 0x42d291
mov ecx, dword [ebp + 8]
call fcn.0041a450
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0041bc90
mov eax, dword [ebp + 8]
jmp 0x42d343
push 0xc
lea ecx, [ebp - 0x2c]
call fcn.004233d0
lea ecx, [ebp - 0x39]
call fcn.00419120
push eax
mov edx, dword [ebp - 0x40]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00439830
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004231c0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x48], edx
push 0
push 0
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x48]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x2c]
call fcn.004231c0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00432fd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0041bc50
jmp 0x42d22a
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call fcn.004399b0
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0041bc90
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00502b55
mov esp, ebp
pop ebp
ret
Function at 0x42d360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push str.Millennium_Installer
call fcn.004ff490
add esp, 4
push ecx
movss xmm0, dword [0x50d94c]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x50d95c]
movss dword [esp], xmm0
lea ecx, [ebp - 0x14]
call fcn.00439b80
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004ff4b0
add esp, 8
push 0
push 0
push 0
push 0x42d430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x43e280
mov ecx, dword [ebp - 4]
push ecx
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0xc], esp
lea edx, [ebp - 8]
push edx
call fcn.0042dd50
call fcn.004ff890
add esp, 0x2c
mov esp, ebp
pop ebp
ret
Function at 0x453490
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
not eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 0x50d968
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4534f1
mov ecx, dword [ebp - 4]
shr ecx, 8
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor edx, eax
mov eax, dword [ebp - 0x10]
xor ecx, dword [eax + edx*4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
jmp 0x4534ab
mov eax, dword [ebp - 4]
not eax
mov esp, ebp
pop ebp
ret

Function at 0x453500
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
not eax
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0x50d968
cmp dword [ebp + 0xc], 0
je 0x4535b9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
sub ecx, 1
mov dword [ebp + 0xc], ecx
cmp dword [ebp - 0x14], 0
je 0x4535b7
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 3], al
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov dl, byte [ebp - 3]
mov byte [ebp - 2], dl
movzx eax, byte [ebp - 2]
cmp eax, 0x23
jne 0x453594
cmp dword [ebp + 0xc], 2
jb 0x453594
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x23
jne 0x453594
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x23
jne 0x453594
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
shr eax, 8
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
movzx edx, byte [ebp - 2]
xor ecx, edx
mov edx, dword [ebp - 0x10]
xor eax, dword [edx + ecx*4]
mov dword [ebp - 0xc], eax
jmp 0x45352b
jmp 0x45362e
mov eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [ebp - 4], cl
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov al, byte [ebp - 4]
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x45362e
movzx edx, byte [ebp - 1]
cmp edx, 0x23
jne 0x45360f
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x23
jne 0x45360f
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x23
jne 0x45360f
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
shr edx, 8
mov eax, dword [ebp - 0xc]
and eax, 0xff
movzx ecx, byte [ebp - 1]
xor eax, ecx
mov ecx, dword [ebp - 0x10]
xor edx, dword [ecx + eax*4]
mov dword [ebp - 0xc], edx
jmp 0x4535b9
mov eax, dword [ebp - 0xc]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x4547d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
xor edx, edx
pop ebp
ret

Function at 0x4547f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor edx, edx
pop ebp
ret
Function at 0x4beda0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5079e5
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5845f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], 0x30
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x38], 0x4c0b10
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], str.ImGui_Platform
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
call fcn.004befa0
call fcn.00450af0
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ecx], 0x4c00c0
mov edx, dword [ebp - 0x44]
mov dword [edx + 4], 0x4c02a0
mov eax, dword [ebp - 0x44]
mov dword [eax + 8], 0x4c0320
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0xc], 0x4c05f0
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x10], 0x4c0560
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x14], 0x4c0720
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x18], 0x4c0690
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x1c], 0x4c07d0
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x20], 0x4c0830
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x24], 0x4c0890
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x28], 0x4c08f0
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x2c], 0x4c09d0
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x30], 0x4c0380
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x3c], 0x4c0ac0
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x40], 0x4c0b00
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x44], 0x4bffb0
call fcn.0044e9f0
mov dword [ebp - 0x58], eax
push 0x10
call fcn.00450a50
add esp, 4
mov dword [ebp - 0x5c], eax
lea edx, [ebp - 0x45]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x60]
movzx edx, byte [ecx]
push edx
push 0x10
call fcn.0047d190
add esp, 0xc
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x50], 0
je 0x4bef23
mov ecx, dword [ebp - 0x50]
call fcn.004c0cb0
mov dword [ebp - 0x54], eax
jmp 0x4bef2a
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x58ba88]
mov dword [edx], eax
mov ecx, dword [ebp - 0x4c]
mov byte [ecx + 4], 0
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x4c]
mov dword [edx + 0x38], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [0x58ba88]
mov dword [ecx + 0x3c], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00502b55
mov esp, ebp
pop ebp
ret
Function at 0x500e30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x500e48
call fcn.00500dd0
mov dword [ebp - 0xc], eax
jmp 0x500e4f
mov dword [ebp - 0xc], 0xcf0000
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
push 0xfffffffffffffff0
call fcn.004ff520
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x10]
je 0x500ed5
mov eax, dword [ebp - 8]
push eax
push 0xfffffffffffffff0
call fcn.004ff520
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, 1
test ecx, ecx
je 0x500e98
cmp dword [ebp - 8], 0xcf0000
je 0x500e98
mov byte [ebp - 1], 1
jmp 0x500e9c
mov byte [ebp - 1], 0
movzx edx, byte [ebp - 1]
push edx
call fcn.004ff520
push eax
call fcn.00500e00
add esp, 8
push 0x23
push 0
push 0
push 0
push 0
push 0
call fcn.004ff520
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
call fcn.004ff520
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret

Function at 0x501330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507cd4
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x5845f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x120], 0
mov ecx, dword [ebp + 8]
call fcn.00419fb0
mov dword [ebp - 0x128], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x120]
or eax, 1
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x124], 0x532bdc
lea ecx, [ebp - 0x11c]
push ecx
push 0x20019
push 0
mov edx, dword [ebp - 0x124]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x50140e
mov dword [ebp - 0x118], 0x104
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0
push 2
push str.SteamPath
push 0
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x501401
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp + 8]
call fcn.005012a0
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00502b55
mov esp, ebp
pop ebp
ret
Function at 0x501430
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507d19
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x5845f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
lea ecx, [ebp - 0x120]
call fcn.004233d0
lea ecx, [ebp - 0x131]
call fcn.00419120
push eax
push 0x400
lea ecx, [ebp - 0x120]
call fcn.00501eb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x120]
call fcn.00440340
shl eax, 2
mov dword [ebp - 0x138], eax
lea ecx, [ebp - 0x120]
call fcn.004231c0
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
mov edx, dword [ebp - 0x13c]
push edx
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x501638
mov dword [ebp - 0x12c], 0
jmp 0x5014ed
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x124]
shr ecx, 2
cmp dword [ebp - 0x12c], ecx
jae 0x501638
mov edx, dword [ebp - 0x12c]
push edx
lea ecx, [ebp - 0x120]
call fcn.0043a630
cmp dword [eax], 0
jne 0x50151b
jmp 0x5014de
mov eax, dword [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x120]
call fcn.0043a630
mov ecx, dword [eax]
push ecx
push 0
push 0x1010
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x50154e
jmp 0x5014de
push 0x104
lea edx, [ebp - 0x114]
push edx
push 0
mov eax, dword [ebp - 0x130]
push eax
call sub.KERNEL32.dll_K32GetModuleBaseNameA
test eax, eax
ja 0x501571
jmp 0x5014de
push str.steam.exe
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x160]
call fcn.00419a20
mov dword [ebp - 0x140], eax
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x144], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x144]
push eax
call fcn.0042e0b0
add esp, 8
mov byte [ebp - 0x125], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x160]
call fcn.0041b960
movzx ecx, byte [ebp - 0x125]
test ecx, ecx
je 0x501626
push str._FATAL__Steam_is_running._Close_it_to_continue
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push edx
call fcn.004032e0
add esp, 8
mov dword [ebp - 0x148], eax
push 0x4168a0
mov ecx, dword [ebp - 0x148]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x126], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.0043a020
mov al, byte [ebp - 0x126]
jmp 0x501657
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5014de
mov byte [ebp - 0x127], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.0043a020
mov al, byte [ebp - 0x127]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00502b55
mov esp, ebp
pop ebp
ret
Function at 0x501800
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x5845f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x501916
push str.Steam.exe
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x5018fb
mov eax, dword [ebp - 0x124]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x5018ce
push 0
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Steam_terminated_successfully.
mov eax, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
call fcn.004032e0
add esp, 8
mov dword [ebp - 0x138], eax
push 0x4168a0
mov ecx, dword [ebp - 0x138]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x501941
push str.Error_opening_Steam_process_for_termination.
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push ecx
call fcn.004032e0
add esp, 8
mov dword [ebp - 0x13c], eax
push 0x4168a0
mov ecx, dword [ebp - 0x13c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x501941
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x134]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x501847
push str.Steam_process_not_found.
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push ecx
call fcn.004032e0
add esp, 8
mov dword [ebp - 0x140], eax
push 0x4168a0
mov ecx, dword [ebp - 0x140]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00502b55
mov esp, ebp
pop ebp
ret
Function at 0x5020d7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.005020b3
pop esi
leave
ret 8

Function at 0x503c10
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x503c4f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x503c4f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x503c4f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x503c4f
cmp dword [ecx + 0x74], 0xe
jbe 0x503c4f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x410fb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ead6
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x51a074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea ecx, [edi + 0xc]
mov dword [ebp - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
push ecx
mov byte [ebp - 4], 1
call fcn.00418010
mov dword [ebp - 4], 2
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
mov byte [ebp - 4], 3
lea esi, [edi + 0x34]
mov dword [edi + 0x30], 0
push 0x20
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004697d2
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418140
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f420
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51a074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004697d2
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00466d31
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x34], esi
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov ecx, edi
mov eax, dword [edi + 0x20]
push 0
push 0
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call fcn.0044a1a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4