joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401020
Capabilities:
Access peb ldr_data
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov edx, eax
mov dword [ebp - 4], eax
add eax, 0x3c
mov eax, dword [eax]
add eax, edx
add eax, 0x78
mov eax, dword [eax]
add eax, edx
mov edi, eax
add eax, 0x20
mov eax, dword [eax]
add eax, edx
xor esi, esi
push eax
mov eax, dword [eax]
add eax, edx
mov ebx, str.GetProcAddress
mov cl, byte [eax]
mov ch, byte [ebx]
test cl, cl
je 0x40106f
test ch, ch
je 0x40107d
jmp 0x401075
test ch, ch
je 0x401084
jmp 0x40107d
cmp cl, ch
jne 0x40107d
inc eax
inc ebx
jmp 0x401061
inc esi
pop eax
add eax, 4
jmp 0x401057
pop eax
mov eax, edi
add eax, 0x24
mov eax, dword [eax]
add eax, edx
add eax, esi
add eax, esi
mov bx, word [eax]
movzx ebx, bx
mov eax, edi
add eax, 0x1c
mov eax, dword [eax]
add eax, edx
add ebx, ebx
add eax, ebx
add eax, ebx
mov eax, dword [eax]
add eax, edx
mov dword [ebp - 0x10], eax
push str.LoadLibraryA
push dword [ebp - 4]
call dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
push str.GetModuleHandle
push dword [ebp - 4]
call dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov edi, str._98:_199U
xor byte [edi], 0x55
inc edi
xor byte [edi], 0x55
loopne 0x4010d2
mov edi, 0x402037
xor byte [edi], 0x55
loope 0x4010e5
inc edi
loop 0x4010dd
mov edi, 0x402064
xor byte [edi], 0x55
inc edi
xor byte [edi], 0x55
loopne 0x4010ed
push str._98:_199U
call dword [ebp - 0xc]
mov edx, eax
add eax, 0x3c
mov eax, dword [eax]
add eax, edx
add eax, 0x78
mov eax, dword [eax]
add eax, edx
mov edi, eax
add eax, 0x20
mov eax, dword [eax]
add eax, edx
xor esi, esi
push eax
mov eax, dword [eax]
add eax, edx
mov ebx, 0x402037
mov cl, byte [eax]
mov ch, byte [ebx]
test cl, cl
je 0x40112e
test ch, ch
je 0x40113c
jmp 0x401134
test ch, ch
je 0x401143
jmp 0x40113c
cmp cl, ch
jne 0x40113c
inc eax
inc ebx
jmp 0x401120
inc esi
pop eax
add eax, 4
jmp 0x401116
pop eax
mov eax, edi
add eax, 0x24
mov eax, dword [eax]
add eax, edx
add eax, esi
add eax, esi
mov bx, word [eax]
movzx ebx, bx
mov eax, edi
add eax, 0x1c
mov eax, dword [eax]
add eax, edx
add ebx, ebx
add eax, ebx
add eax, ebx
mov eax, dword [eax]
add eax, edx
push 0
push 0
push 0x4020cc
push 0x402064
push 0
push 0x401187
push ebp
mov ebp, esp
add eax, 5
jmp eax
Function at 0x40b657
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40b692
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40b679
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x40b68a
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x40b694
inc edi
add eax, 0x28
cmp edi, esi
jb 0x40b66f
xor eax, eax
pop edi
pop esi
ret

Function at 0x40ba40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
aam 0x88
pop ebp
xlatb
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040b627
push eax
push esi
push dword [ebp + 8]
call fcn.0040b5dc
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0040b617
and edi, dword [edi - 0x6277ee12]
jl 0x40ba9c
invalid
invalid
Function at 0x43a7e0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x4071a0
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43d200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp dword [eax + 0x14], 0xf
mov edi, dword [ebp + 8]
jbe 0x4071c5
mov ecx, dword [eax]
push ebx
push dword [eax + 0x10]
lea eax, [ebp - 0x1c]
push ecx
push eax
call fcn.00406120
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4071f4
test esi, esi
je 0x4071ea
mov dword [esi], str.Failed_to_convert_path_to_wide_string
mov esi, 0x57
jmp 0x4072df
push 4
push 0x3000
lea eax, [eax*2 + 6]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x407225
test esi, esi
je 0x4072d7
mov dword [esi], str.Failed_to_remotely_allocate_page_with_VirtualAllocEx__
jmp 0x4072d7
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
cmp dword [ebp - 8], 7
lea eax, [ebp - 0x1c]
push ecx
cmova eax, dword [ebp - 0x1c]
lea ecx, [edx*2 + 2]
mov dword [ebp - 0x24], 0
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4072be
mov ecx, dword [ebp - 0x20]
lea eax, [ecx*2 + 2]
cmp dword [ebp - 0x24], eax
jb 0x4072be
push 0
push 0
push ebx
push dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x407299
push 0x8000
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test esi, esi
je 0x4072d7
mov dword [esi], str.Failed_to_create_run_remote_thread_with_CreateRemoteThread__
jmp 0x4072d7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor esi, esi
jmp 0x4072df
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test esi, esi
je 0x4072d7
mov dword [esi], str.Failed_to_remotely_write_dll_path_with_WriteProcessMemory__
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, dword [ebp - 8]
pop ebx
cmp ecx, 7
jbe 0x407316
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40730c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407328
push ecx
push edx
call fcn.00415fea
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00415ffe
mov esp, ebp
pop ebp
ret
call fcn.0041aebf
int3
Function at 0x40bce0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e340
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x43d200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00415fba
mov edi, eax
add esp, 4
test edi, edi
je 0x40bd8b
push 1
mov dword [ebp - 4], 0
call fcn.00414cb9
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 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 0x40ca80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e4a5
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x43d200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x43e56e], 0
je 0x40cc30
push str.restoring_registry_entries__HKCU_
push 0x43e508
call fcn.004067f0
add esp, 8
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
push eax
push 0xf003f
push 0
push str.SoftwareValveSteamActiveProcess
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cb61
push dword [0x43d138]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x43e578
push 1
push eax
push 0x430b50
push dword [ebp - 0x5c]
call esi
push dword [0x43d13c]
push 0x442578
push 1
push 0
push str.SteamClientDll64
push dword [ebp - 0x5c]
call esi
push 4
push 0x446578
push 4
push 0
push str.ActiveUser
push dword [ebp - 0x5c]
call esi
push dword [0x43d140]
push 0x446580
push 1
push 0
push str.Universe
push dword [ebp - 0x5c]
call esi
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40cc30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.004084a0
add esp, 8
lea ecx, [ebp - 0x5d]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00407330
push 0x3e
push str.Unable_to_restore_the_original_registry_entry__HKCU___error_
push 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0040edf0
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x43e508
call fcn.00406800
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x40cc16
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40cc0c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cc4a
push ecx
push edx
call fcn.00415fea
add esp, 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00402cd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415ffe
mov esp, ebp
pop ebp
ret
call fcn.0041aebf
int3
Function at 0x40cc50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e4a5
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x43d200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x43e56f], 0
je 0x40cdeb
push str.restoring_registry_entries__HKCU_2_
push 0x43e508
call fcn.004067f0
add esp, 8
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
push eax
push 0xf003f
push 0
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cd1c
push dword [0x43d144]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x44a580
push 1
push eax
push str.SourceModInstallPath
push dword [ebp - 0x5c]
call esi
push dword [0x43d148]
push 0x44e580
push 1
push 0
push str.SteamPath
push dword [ebp - 0x5c]
call esi
push dword [0x43d14c]
push 0x452580
push 1
push 0
push str.SteamExe
push dword [ebp - 0x5c]
call esi
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40cdeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.004084a0
add esp, 8
lea ecx, [ebp - 0x5d]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00407330
push 0x41
push str.Unable_to_restore_the_original_registry_entry__HKCU_2___error_
push 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0040edf0
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x43e508
call fcn.00406800
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x40cdd1
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40cdc7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ce05
push ecx
push edx
call fcn.00415fea
add esp, 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00402cd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415ffe
mov esp, ebp
pop ebp
ret
call fcn.0041aebf
int3
Function at 0x40ce10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e4e5
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x43d200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x43e574], 0
je 0x40cfa2
push str.restoring_registry_entries__HKLM_
push 0x43e508
call fcn.004067f0
add esp, 8
mov dword [ebp - 0x5c], 0
cmp dword [0x43e4f4], 7
lea ecx, [ebp - 0x5c]
mov eax, 0x43e4e0
cmova eax, dword [0x43e4e0]
push ecx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ced3
push dword [0x43d150]
push 0x456580
push 1
push eax
push str.InstallPath
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x43d154]
push 0x45a580
push 1
push 0
push str.Universe
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40cfa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.004084a0
add esp, 8
lea ecx, [ebp - 0x5d]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00407330
push 0x3e
push str.Unable_to_restore_the_original_registry_entry__HKLM___error_
push 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0040edf0
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x43e508
call fcn.00406800
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x40cf88
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40cf7e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfbb
push ecx
push edx
call fcn.00415fea
add esp, 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00402cd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415ffe
mov esp, ebp
pop ebp
ret
call fcn.0041aebf
int3
Function at 0x410cd0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43d200]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 0xf
jbe 0x410cee
mov eax, dword [esi]
push eax
push str.SteamAppId
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp dword [esi + 0x14], 0xf
jbe 0x410d02
mov esi, dword [esi]
push esi
push str.SteamGameId
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push str.cold_player
push str.SteamAppUser
call esi
push str.cold_player
push str.SteamUser
call esi
push 0x43127c
push 0x431280
call esi
push 0x43127c
push str.SteamEnv
call esi
call fcn.00406b20
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x410d53
mov ecx, dword [eax]
push dword [eax + 0x10]
lea eax, [ebp - 0x1c]
push ecx
push eax
call fcn.00406120
add esp, 0xc
cmp dword [eax + 0x14], 7
jbe 0x410d6b
mov eax, dword [eax]
push eax
push str.SteamPath
call esi
mov ecx, dword [ebp - 8]
pop esi
cmp ecx, 7
jbe 0x410daa
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410da0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410db8
push ecx
push edx
call fcn.00415fea
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415ffe
mov esp, ebp
pop ebp
ret
call fcn.0041aebf
int3
Function at 0x414816
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x41483d
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x414840
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004147f2
pop esi
leave
ret 8

Function at 0x416f69
Capabilities:
Parse pe header

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

Function at 0x4220da
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x435440
push 0x435438
push str.FlsAlloc
push 0x1f
call fcn.00421fc1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42210e
push dword [ebp + 8]
mov ecx, esi
call dword [0x4301b0]
call esi
jmp 0x422114
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x422158
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x435450
push 0x435448
push str.FlsGetValue
push 0x21
call fcn.00421fc1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42218f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4301b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x422197
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x435458
push 0x435450
push str.FlsSetValue
push 0x22
call fcn.00421fc1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4221d1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4301b0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4242f0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004161e0
mov eax, dword [0x43d200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004225e7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x424332
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42448e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00416010
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x467218]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004252ed
mov ecx, dword [esi*4 + 0x467218]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x424487
cmp eax, dword [ecx + edi + 0x24]
jne 0x424487
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424487
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004252ed
add esp, 0x14
test edx, edx
jl 0x424487
jg 0x4243fd
test eax, eax
jb 0x424487
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x424487
jl 0x424417
cmp dword [ebp - 0x1008], eax
ja 0x424487
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x424435
test ebx, ebx
je 0x42446e
cmp ecx, edi
jae 0x42446e
mov al, byte [ecx]
cmp al, 0xd
jne 0x42444f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42445b
cmp byte [ecx + 1], 0xa
jne 0x42445b
inc ecx
jmp 0x42445b
movzx eax, al
movsx eax, byte [eax + 0x43d4c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x424435
cmp edx, ebx
jne 0x424435
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42448c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00415ffe
leave
ret