joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403be0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x403c06
mov eax, dword [eax*4 + 0x40a41c]
movzx ecx, word [0x40b1e0]
push eax
push ecx
call sub.gnwie.dll_Werrorbox
add esp, 8
jmp section..text
ret

Function at 0x403c10
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
call fcn.00403b50
add esp, 4
jmp section..text

Function at 0x4054f0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebx
mov ebx, dword [0x40a91c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
inc edi
test ebx, ebx
jne 0x405515
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
test ebx, ebx
mov dword [0x40a91c], ebx
je 0x405571
mov ebp, dword [sym.imp.MSVCR80.dll_malloc]
push 0xc
call ebp
mov esi, eax
test esi, esi
pop ecx
je 0x405571
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0xc
push 0
push esi
call sub.MSVCR80.dll_memset
mov dword [esi + 4], edi
imul edi, edi, 0x14
push edi
call ebp
add esp, 0x10
test eax, eax
mov dword [esi + 8], eax
je 0x405571
push edi
push 0
push eax
call sub.MSVCR80.dll_memset
mov ecx, dword [esi + 8]
xor eax, eax
inc eax
mov dword [ecx + 0x14], eax
mov ecx, dword [esi + 8]
mov dword [ecx + 0x28], eax
mov ecx, dword [esi + 8]
add esp, 0xc
mov dword [ecx + 0x3c], eax
and dword [esi], 0
jmp 0x405573
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4058ae
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40a370]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x98]
call fcn.00405589
mov esi, dword [ebp + 0x94]
imul esi, esi, 0x14
add esi, dword [eax + 8]
xor ebx, ebx
and dword [ebp - 0x80], ebx
cmp dword [ebp + 0x94], 3
mov al, 1
jle 0x4059ef
cmp dword [esi + 8], ebx
je 0x4059aa
mov eax, dword [esi + 4]
add eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0xc]
jl 0x405954
mov eax, dword [esi + 8]
mov ecx, 0x100
cmp eax, ecx
jb 0x40591c
mov eax, ecx
push 0
lea ecx, [ebp - 0x80]
push ecx
push eax
lea eax, [ebp - 0x78]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x80]
mov dword [esi + 0xc], eax
cmp dword [ebp - 0x80], 0
jl 0x405983
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
push dword [esi + 4]
call sub.MSVCR80.dll_memcpy
mov eax, dword [esi + 4]
add esp, 0xc
and dword [esi + 0x10], 0
cmp dword [esi + 0xc], 0
jne 0x40595d
mov byte [eax], 0x1a
mov cl, byte [eax]
cmp cl, 0x1a
je 0x405990
cmp cl, 0xa
je 0x40599c
cmp cl, 0xd
je 0x40597d
mov byte [edi], cl
mov ecx, dword [ebp + 0x9c]
inc edi
inc ebx
dec ecx
cmp ebx, ecx
je 0x4059a0
inc eax
inc dword [esi + 0x10]
jmp 0x405906
call fcn.00405589
or dword [eax], 0xffffffff
xor eax, eax
inc eax
jmp 0x4059f2
test ebx, ebx
setne al
dec al
and eax, 3
jmp 0x4059a2
xor al, al
jmp 0x4059a2
mov al, 2
mov byte [edi], 0
inc dword [esi + 0x10]
jmp 0x4059ef
push 0
lea eax, [ebp - 0x80]
push eax
push 1
lea eax, [ebp - 0x79]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x80], 0
jne 0x4059cb
mov al, 0x1a
mov byte [ebp - 0x79], al
jmp 0x4059ce
mov al, byte [ebp - 0x79]
cmp al, 0x1a
je 0x405a0a
cmp al, 0xa
je 0x405a16
cmp al, 0xd
je 0x4059aa
mov byte [edi + ebx], al
mov eax, dword [ebp + 0x9c]
inc ebx
dec eax
cmp ebx, eax
jne 0x4059aa
mov al, 2
mov byte [edi + ebx], 0
movzx eax, al
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406bfe
add ebp, 0x8c
leave
ret
test ebx, ebx
setne al
dec al
and eax, 3
jmp 0x4059eb
xor al, al
jmp 0x4059eb

Function at 0x405a83
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x40a370]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0xa0]
mov ecx, dword [ebp + 0xa4]
and dword [ebp - 0x74], 0
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push 0x100
push eax
mov dword [ebp - 0x7c], 0x4087c0
mov dword [ebp - 0x78], ecx
call fcn.0040692b
add esp, 0xc
push 5
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.00406bfe
add ebp, 0x94
leave
ret
Function at 0x40631c
Capabilities:
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x118
mov eax, dword [0x40a370]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push edi
mov edi, dword [ebp + 0x78]
mov eax, edi
call fcn.00405e60
mov ebx, eax
test ebx, ebx
je 0x406548
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCR80.dll__time64]
cmp byte [ebp + 0x7c], 0
pop ecx
jne 0x406368
push 0x408ac0
push edi
call fcn.004062bc
pop ecx
pop ecx
push esi
push 1
push dword [ebp + 0x7c]
push edi
call fcn.004062f0
mov esi, str.____n
push esi
push edi
call fcn.004062bc
add esp, 0x14
cmp byte [ebp + 0x7c], 0
je 0x4063b7
push str.10:56:34
push str.Dec_29_2006
push str.____Build:__s___s_n
push edi
call fcn.004062bc
add ebx, 0x28
push ebx
push str.____trace_file__s_n
push edi
call fcn.004062bc
add esp, 0x1c
mov ebx, str.opened
jmp 0x4063bc
mov ebx, str.closed
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCR80.dll__ctime64]
push eax
push ebx
push str._____s_on__s
push edi
call fcn.004062bc
add esp, 0x14
cmp byte [ebp + 0x7c], 0
je 0x40651f
lea eax, [ebp - 0x9c]
push eax
mov ebx, 0x408a50
mov dword [ebp - 0x9c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x8c]
cmp eax, 3
jae 0x406411
mov ebx, dword [eax*4 + 0x40a290]
push eax
push ebx
push dword [ebp - 0x90]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push str.____32_Bit_Windows_Version__ld._ld__Build__ld__under_Windows__s___ld__n
push edi
call fcn.004062bc
add esp, 0x1c
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp + 0x30]
push str.____Processor_Type__lX_n
push edi
call fcn.004062bc
push esi
push edi
call fcn.004062bc
mov edi, dword [sym.imp.KERNEL32.dll_GetProfileStringA]
add esp, 0x14
push 0x20
lea eax, [ebp - 8]
push eax
mov ebx, 0x408755
push ebx
push str.sLanguage
mov esi, str.intl
push esi
call edi
push 0x80
lea eax, [ebp - 0x88]
push eax
push ebx
push str.sCountry
push esi
call edi
push 0
push str.iCountry
push esi
call dword [sym.imp.KERNEL32.dll_GetProfileIntA]
push 0x20
mov dword [ebp - 0xa0], eax
lea eax, [ebp + 0x1c]
push eax
push ebx
push str.sShortDate
push esi
call edi
push 0x10
lea eax, [ebp + 0x4c]
push eax
push ebx
push str.sCurrency
push esi
call edi
push 0x10
lea eax, [ebp + 0x5c]
push eax
push ebx
push str.sThousand
push esi
call edi
push 0x10
lea eax, [ebp + 0x3c]
push eax
push ebx
push str.sDecimal
push esi
call edi
push dword [ebp - 0xa0]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 8]
push eax
push str.____Intl:_Ctry__s__s___d__n
push dword [ebp + 0x78]
call fcn.004062bc
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x1c]
push eax
push str.__________Date__s__Cur__s__Th__s_Dec__s_n
push dword [ebp + 0x78]
call fcn.004062bc
mov edi, dword [ebp + 0x78]
add esp, 0x2c
mov esi, str.____n
push esi
push edi
call fcn.004062bc
push 0
push dword [ebp + 0x7c]
push edi
call fcn.004062f0
add esp, 0x14
cmp byte [ebp + 0x7c], 0
pop esi
je 0x406548
push 0x408ac0
push edi
call fcn.004062bc
pop ecx
pop ecx
mov ecx, dword [ebp + 0x6c]
pop edi
xor ecx, ebp
pop ebx
call fcn.00406bfe
add ebp, 0x70
leave
ret
Function at 0x406bfe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a370]
jne 0x406c08
repz ret
jmp fcn.00406f3c

Function at 0x40102a
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor ebx, ebx
pop ecx
test eax, eax
je 0x401078
push str.Windows_original_main_args:_n
call fcn.004010f9
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov esi, ebx
pop ecx
call edi
cmp dword [eax], ebx
jle 0x401078
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.004010f9
add esp, 0xc
inc esi
call edi
cmp esi, dword [eax]
jl 0x401058
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
mov edi, eax
lea ecx, [edi*4 + 4]
push ecx
call sub.jli.dll_JLI_MemAlloc
pop ecx
pop ecx
mov esi, eax
call sub.jli.dll_JLI_GetStdArgs
mov edx, ebx
test edi, edi
jle 0x4010b2
mov ecx, dword [eax + edx*8]
mov dword [esi + edx*4], ecx
inc edx
cmp edx, edi
jl 0x4010a7
mov ecx, dword [str.java]
mov dword [esi + edx*4], ebx
test ecx, ecx
jne 0x4010c1
mov ecx, dword [esi]
mov eax, dword [section..data]
test eax, eax
jne 0x4010cc
mov eax, dword [esi]
push ebx
push ebx
push ebx
push 1
push ecx
push eax
push 0x4021b4
push 0x4021b8
push 0x40300c
push 2
push 0x403004
push 2
push esi
push edi
call sub.jli.dll_JLI_Launch
add esp, 0x38
pop edi
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4084e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x4436d4], 0
mov ebp, esp
push edi
mov ecx, dword [ebp + 0xc]
push esi
push ebx
mov ebx, dword [ebp + 0x10]
jne 0x408521
xor edx, edx
mov eax, edx
mov esi, 8
mov edi, eax
and eax, 1
neg eax
shr edi, 1
and eax, 0xedb88320
xor eax, edi
dec esi
jne 0x4084fe
mov dword [edx*4 + 0x4436d0], eax
inc edx
cmp edx, 0x100
jne 0x4084f7
mov eax, dword [ebp + 8]
not eax
jmp 0x40853b
mov dl, byte [ecx]
dec ebx
inc ecx
xor edx, eax
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x4436d0]
test ebx, ebx
jne 0x408528
pop ebx
not eax
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4012c0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2000
call fcn.00407d40
mov ecx, dword [esp + 0x2008]
push esi
push edi
lea eax, [esp + 0x2014]
push eax
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.004086fd
mov al, byte [0x41a488]
add esp, 0xc
xor edi, edi
test al, al
je 0x401308
push 0x4131cc
push 0x4131c4
call fcn.004086ea
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x200c]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jle 0x40134a
push ebx
mov ebx, eax
lea esp, [esp]
push 0x4131c0
call fcn.004084d2
add esp, 4
push 0x4131c0
call esi
test edi, edi
je 0x401346
push 0x4131c0
push edi
call fcn.0040868e
add esp, 8
dec ebx
jne 0x401320
pop ebx
lea eax, [esp + 8]
push eax
call fcn.004084d2
add esp, 4
lea ecx, [esp + 8]
push ecx
call esi
test edi, edi
je 0x40139e
mov al, byte [esp + 8]
test al, al
lea esi, [esp + 8]
je 0x401395
mov edi, edi
cmp byte [esi], 0xa
jne 0x401380
push edi
push 0xd
call fcn.0040866a
add esp, 8
movsx edx, byte [esi]
push edi
push edx
call fcn.0040866a
mov al, byte [esi + 1]
add esp, 8
inc esi
test al, al
jne 0x401370
push edi
call fcn.00408614
add esp, 4
pop edi
pop esi
add esp, 0x2000
ret

Function at 0x401550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x210]
xor ebx, ebx
cmp eax, ebx
jle 0x40161d
push ebp
push esi
xor edx, edx
mov esi, eax
lea esp, [esp]
mov eax, dword [edi + 0x204]
add eax, edx
mov dword [eax + 0x34], ebx
mov ecx, dword [eax + 0x38]
mov dword [eax + 0x5c], ecx
mov ecx, dword [eax + 0x3c]
mov dword [eax + 0x60], ecx
mov ecx, dword [eax + 0x40]
mov dword [eax + 0x64], ecx
mov ecx, dword [eax + 0x44]
mov dword [eax + 0x68], ecx
mov ecx, dword [eax + 0x48]
mov dword [eax + 0x6c], ecx
mov ecx, dword [eax + 0x4c]
mov dword [eax + 0x70], ecx
mov ecx, dword [eax + 0x50]
mov dword [eax + 0x74], ecx
mov ecx, dword [eax + 0x54]
mov dword [eax + 0x78], ecx
mov ecx, dword [eax + 0x58]
mov dword [eax + 0x7c], ecx
test byte [eax + 0x34], 1
lea ecx, [eax + 0x5c]
jne 0x4015bd
lea ecx, [eax + 0x38]
mov ebp, dword [ecx]
mov dword [eax + 0xc], ebp
mov ebp, dword [ecx + 4]
mov dword [eax + 0x10], ebp
mov ecx, dword [ecx + 8]
mov dword [eax + 0x14], ecx
test byte [eax + 0x34], 2
lea ecx, [eax + 0x68]
jne 0x4015da
lea ecx, [eax + 0x44]
mov ebp, dword [ecx]
mov dword [eax + 0x18], ebp
mov ebp, dword [ecx + 4]
mov dword [eax + 0x1c], ebp
mov ecx, dword [ecx + 8]
mov dword [eax + 0x20], ecx
mov byte [eax + 9], bl
test byte [eax + 0x34], 1
lea ecx, [eax + 0x5c]
jne 0x4015fa
lea ecx, [eax + 0x38]
mov ebp, dword [ecx]
mov dword [eax + 0x28], ebp
mov ebp, dword [ecx + 4]
mov dword [eax + 0x2c], ebp
mov ecx, dword [ecx + 8]
add edx, 0x80
dec esi
mov dword [eax + 0x30], ecx
mov byte [eax + 0x24], bl
jne 0x401570
pop esi
pop ebp
pop edi
pop ebx
ret
Function at 0x401d60
Capabilities:
Terminate process

Disassembly:
push str.usage:__demoinfo__.dem_file__n_t_t_t_v__verbose_output_n_t_t_t_l__log_to_file_log.txt_n_t_t_ne.g.:__demoinfo__v_u:_hl2_hl2_foo.dem_n
push 0
call fcn.004012c0
add esp, 8
push 1
call fcn.004088af
int3
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41276b
push eax
mov dword fs:[0], esp
sub esp, 0x31c
push ebx
push esi
push edi
push 0x4013b0
call dword [sym.imp.tier0.dll_SpewOutputFunc]
push 2
push str.demoinfo
call dword [sym.imp.tier0.dll_SpewActivate]
mov ecx, dword [esp + 0x344]
mov edi, dword [esp + 0x348]
mov dl, byte [0x41a488]
mov esi, 1
add esp, 0xc
cmp ecx, esi
jle 0x401ded
mov eax, dword [edi + esi*4]
cmp byte [eax], 0x2d
jne 0x401de2
mov al, byte [eax + 1]
cmp al, 0x67
je 0x401de1
cmp al, 0x6c
je 0x401ddd
cmp al, 0x76
jne 0x401e8d
mov dword [0x41a444], 1
jmp 0x401de2
mov dl, 1
jmp 0x401de2
inc esi
inc esi
cmp esi, ecx
jl 0x401db6
mov byte [0x41a488], dl
cmp ecx, 2
jl 0x401f32
cmp esi, ecx
jne 0x401f32
xor ebx, ebx
cmp dl, bl
je 0x401e1c
push 0x4131c4
call fcn.00408919
push str.____Outputting_to_log.txt_n
push ebx
call fcn.004012c0
add esp, 0xc
push str.Aug_11_2006
push str.Valve_Software___demoinfo.exe___s__n
push ebx
call fcn.004012c0
push str.____Demo_File_Info_Sample_____n
push ebx
call fcn.004012c0
mov eax, dword [edi + esi*4 - 4]
push eax
push str.____Info_for__s.._n
push ebx
call fcn.004012c0
lea ecx, [esp + 0x248]
push 0x100
push ecx
mov byte [esp + 0x250], bl
call fcn.00401fd0
push ebx
push ebx
push ebx
push ebx
call fcn.00403b70
add esp, 0x38
test al, al
jne 0x401e98
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x31c]
mov dword fs:[0], ecx
add esp, 0x328
ret
mov byte [0x41a488], dl
jmp 0x401410
mov ecx, dword [0x41d074]
mov edx, dword [ecx]
push ebx
push str.game
lea eax, [esp + 0x230]
push eax
call dword [edx + 0x2c]
mov dword [esp + 0x210], ebx
mov dword [esp + 0x214], ebx
mov dword [esp + 0x218], ebx
mov dword [esp + 0x21c], ebx
mov dword [esp + 0x220], ebx
mov byte [esp + 0xc], bl
mov byte [esp + 0xd], bl
mov dword [esp + 0x224], ebx
mov edx, dword [edi + esi*4 - 4]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x338], ebx
call fcn.00401a10
add esp, 8
call fcn.00403b90
lea ecx, [esp + 0x210]
mov dword [esp + 0x330], 0xffffffff
call fcn.00401620
mov ecx, dword [esp + 0x328]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x328
ret
push str.Aug_11_2006
push str.Valve_Software___demoinfo.exe___s__n
xor ebx, ebx
push ebx
call fcn.004012c0
push str.____Demo_File_Info_Sample_____n
push ebx
call fcn.004012c0
add esp, 0x14
jmp 0x401410
Function at 0x4021a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x48
push ebx
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SoftwareValveSourceSettings
push 0x80000001
mov dword [esp + 0x18], 0x3f
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40224d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push eax
mov eax, dword [esp + 0x1c]
push str.User_Token_2
push eax
call esi
test eax, eax
jne 0x402205
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4021f8
sub eax, edx
test eax, eax
jg 0x40223f
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push str.User_Token_3
push eax
mov dword [esp + 0x20], 0x3f
call esi
test eax, eax
jne 0x402241
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402232
sub eax, edx
test eax, eax
jle 0x402241
mov bl, 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
add esp, 0x48
ret

Function at 0x402400
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x110]
mov ecx, dword [esi + 0x24]
push 0x104
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x402452
mov ecx, dword [esp + 0x10c]
test ecx, ecx
je 0x402452
push eax
push str.SteamUserPassphrase
call fcn.004046d0
test eax, eax
je 0x402452
push eax
push 0x4131a4
add esi, 0x20
push esi
call fcn.00401f60
add esp, 0xc
pop esi
add esp, 0x104
ret
Function at 0x4028d0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2104
call fcn.00407d40
lea eax, [esp]
push 0x104
push eax
call fcn.004024f0
add esp, 8
test al, al
jne 0x40292c
mov al, byte [esp + 0x2114]
test al, al
je 0x402914
push str.SetSteamInstallPath:_FileSystem_GetExecutableDir_failed.
call dword [sym.imp.tier0.dll_Warning]
add esp, 4
mov eax, 3
add esp, 0x2104
ret
push str.FileSystem_GetExecutableDir_failed.
push 3
push 0
call fcn.00402670
add esp, 0xc
add esp, 0x2104
ret
push esi
mov esi, dword [esp + 0x210c]
push edi
mov edi, dword [esp + 0x2114]
push edi
lea ecx, [esp + 0xc]
push ecx
push esi
call fcn.00406ba0
add esp, 0xc
jmp 0x402950
push str.steam.dll
push esi
call fcn.00402260
add esp, 8
test al, al
je 0x402974
push str.steamapp.cfg
push esi
call fcn.00402260
add esp, 8
test al, al
je 0x4029ae
push edi
push esi
call fcn.00406e50
add esp, 8
test al, al
jne 0x402950
mov al, byte [esp + 0x211c]
test al, al
je 0x402a06
lea eax, [esp + 8]
push eax
push str.Cant_find_steam.dll_relative_to_executable_path:__s.
call dword [sym.imp.tier0.dll_Warning]
add esp, 8
pop edi
mov eax, 5
pop esi
add esp, 0x2104
ret
mov edi, dword [esp + 0x2118]
mov eax, dword [edi + 0x64]
push 0x2000
lea edx, [esp + 0x110]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [esp + 0x10c]
push esi
push ecx
call fcn.004022d0
add esp, 8
test al, al
jne 0x4029fb
push esi
lea edx, [esp + 0x110]
push edx
push str._s__s
add edi, 0x60
push edi
call fcn.00401f60
add esp, 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x2104
ret
lea ecx, [esp + 8]
push ecx
push str.Cant_find_steam.dll_relative_to_executable_path:__s.
push 5
push 0
call fcn.00402670
add esp, 0x10
pop edi
pop esi
add esp, 0x2104
ret

Function at 0x402c80
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4127de
mov eax, dword fs:[0]
push eax
mov eax, 0x1004
mov dword fs:[0], esp
call fcn.00407d40
push ebx
push ebp
xor ebx, ebx
mov ebp, ecx
push edi
lea edi, [ebp + 0xc]
mov dword [esp + 0xc], ebp
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, dword [esp + 0x1020]
push 0x1000
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x1024], ebx
mov byte [ebp], 1
mov dword [ebp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x402d22
lea eax, [esp + 0x10]
mov byte [ebp + 8], 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402cf0
push esi
sub eax, edx
push ebx
inc eax
push eax
push ebx
mov ecx, edi
mov dword [edi + 0xc], ebx
call fcn.00401080
mov ecx, dword [ebp + 0x18]
mov edi, dword [edi]
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x402d25
mov byte [ebp + 8], bl
mov ecx, dword [esp + 0x1010]
pop edi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1010
ret 4
Function at 0x4032a0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x218]
mov ecx, dword [ebx + 0x44]
push 0x104
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x4033bb
mov ecx, dword [esp + 0x210]
push esi
xor esi, esi
test ecx, ecx
je 0x403301
push esi
push str.SteamAppUser
call fcn.004046d0
mov esi, eax
test esi, esi
je 0x403301
push 0x104
lea edx, [esp + 0xc]
push esi
push edx
call fcn.00406ba0
add esp, 0xc
jmp 0x40339a
mov eax, dword [esp + 0x218]
push edi
push 0x104
push eax
lea ecx, [esp + 0x118]
push ecx
call fcn.00406ba0
lea edx, [esp + 0x11c]
push 0x104
push edx
call fcn.00406a60
push 0xffffffffffffffff
push 0x104
lea eax, [esp + 0x12c]
push str.configSteamAppData.vdf
push eax
call fcn.00406750
lea ecx, [esp + 0x134]
push ecx
call fcn.00402dd0
mov edi, eax
add esp, 0x28
test edi, edi
je 0x403371
push 0
push str.AutoLoginUser
mov ecx, edi
call fcn.004046d0
mov esi, eax
test esi, esi
jne 0x40337f
push str.Cant_find_steam_app_user_info.
call dword [sym.imp.tier0.dll_Error]
add esp, 4
push 0x104
lea edx, [esp + 0x10]
push esi
push edx
call fcn.00406ba0
add esp, 0xc
mov ecx, edi
call fcn.004044e0
pop edi
lea eax, [esp + 8]
push eax
call fcn.0041251f
lea ecx, [esp + 0xc]
push ecx
push 0x4131a4
add ebx, 0x40
push ebx
call fcn.00401f60
add esp, 0x10
pop esi
pop ebx
add esp, 0x208
ret

Function at 0x407b88
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x407bb6
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x407bbb
cmp eax, 1
je 0x407bbb
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407bbf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x417960]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x407c35
push ebx
call fcn.00407b88
test eax, eax
pop ecx
jne 0x407c04
mov dword [0x41d0d4], 0xf
mov dword [0x41d0d0], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0040982c
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x407c47
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x407bf7
inc eax
cmp eax, 0x104
ja 0x407bf7
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x407c7e
cmp eax, dword [ebp + 0x10]
jg 0x407c62
mov eax, dword [ebp + 0x10]
push eax
call fcn.00407d2b
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x407c92
mov dword [0x41d0d0], 0xc
jmp 0x407bf7
cmp eax, dword [ebp + 0x10]
jle 0x407c92
mov dword [0x41d0d0], 0x22
jmp 0x407bf7
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.004099e0
pop ecx
pop ecx
jmp 0x407bf9