joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460770
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590775
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x10], edi
push 0xf003f
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x460812
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x48], 0xff0fffff
xor ecx, ecx
push eax
push str.Failed_to_open_service_control_manager__GLE__u_
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x45], 0
and dword [ebp - 0x48], 0xfff00000
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], esi
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x44], ecx
push eax
push 1
push 1
push 1
push 4
push ecx
push ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
call fcn.0045e590
add esp, 0x2c
xor bl, bl
jmp 0x4608db
lea ecx, [ebx + 4]
mov dword [ebp - 0x20], 0
test ecx, ecx
mov dword [ebp - 0x1c], 0
mov eax, 0x593534
mov dword [ebp - 0x18], 0x4000000
cmovne eax, ecx
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00459850
push 0xf01ff
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp byte [ebp - 0x18], 0
mov edi, eax
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0
je 0x46086a
push dword [ebp - 0x24]
call fcn.0056b454
add esp, 4
cmp byte [ebp - 0x17], 0
je 0x46087b
push dword [ebp - 0x20]
call fcn.0056b454
add esp, 4
cmp byte [ebp - 0x16], 0
je 0x46088c
push dword [ebp - 0x1c]
call fcn.0056b454
add esp, 4
test edi, edi
je 0x4608d9
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4608d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [ebp - 0x4c]
mov esi, eax
call fcn.0045a9c0
push esi
push str.Failed_to_delete_service__GLE__u_
lea ecx, [eax + 0x20]
push ecx
lea ecx, [eax + 8]
push ecx
push eax
push 1
push 1
push 1
push 4
push 0
push 0
call fcn.0045e590
mov esi, dword [ebp - 0x14]
add esp, 0x2c
xor bl, bl
jmp 0x4608db
mov bl, 1
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x4608ec
push edi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x4608f3
push esi
call eax
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461b00
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590895
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 0x5b293c
push 1
push 0
push 0x5b292c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x461ba2
cmp dword [ebp - 0x10], 0
mov esi, dword [ebp - 0x14]
push edi
mov eax, dword [esi]
mov edi, dword [eax + 0x1c]
je 0x461b7d
push str.m_pObj__NULL
push 0xbd
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srcpublic_tier1_smartptr.h
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x461b7d
int3
lea eax, [ebp - 0x10]
push eax
push esi
call edi
pop edi
test eax, eax
js 0x461ba2
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x461ba2
cmp dword [esi], 0
setne bl
jmp 0x461ba4
xor bl, bl
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x461bbc
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 5
test eax, eax
je 0x461bd7
mov dword [ebp - 0x14], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x462c00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59099d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0xd], 0xf
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, eax
test esi, esi
jg 0x462c6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.string_expansion_failed__1__res__d_GLE__d
push 0xe13
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommonwindowshelper.cpp
call fcn.00476e00
add esp, 0x14
test al, al
jne 0x462d5f
int3
mov al, byte [ebp - 0xd]
push edi
mov edi, 0xf
test al, al
jns 0x462c7d
mov ecx, dword [ebp - 0x18]
jmp 0x462c84
movzx eax, al
mov ecx, edi
sub ecx, eax
push esi
push 1
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00463c90
mov al, byte [ebp - 0xd]
mov esi, edi
test al, al
cmovs esi, dword [ebp - 0x14]
jns 0x462cdb
test al, 0x40
je 0x462cc0
push str._m_data.HasError__
push 0x39d
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srcpublic_tier1utlstring.h
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x462cbd
int3
mov al, byte [ebp - 0xd]
test al, al
jns 0x462cdb
test al, 0x40
jne 0x462cd7
test al, al
jns 0x462cdb
cmp dword [ebp - 0x14], 0
je 0x462cd7
mov eax, dword [ebp - 0x1c]
jmp 0x462cde
xor eax, eax
jmp 0x462cde
lea eax, [ebp - 0x1c]
push esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, eax
test esi, esi
jle 0x462d09
cmp byte [ebp - 0xd], 0
cmovl edi, dword [ebp - 0x14]
cmp esi, edi
ja 0x462d09
lea eax, [esi - 1]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0046b170
jmp 0x462d5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.string_expansion_failed__2__res__d_GLE__d
push 0xe1f
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommonwindowshelper.cpp
call fcn.00476e00
add esp, 0x14
test al, al
jne 0x462d2d
int3
mov al, byte [ebp - 0xd]
test al, al
jns 0x462d4f
test al, 0x40
jne 0x462d5e
test al, al
jns 0x462d4f
call fcn.0047fa50
push 0
push dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0xd], 0xf
pop edi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push esi
call fcn.0046ac00
cmp byte [ebp - 0xd], 0
mov dword [ebp - 4], 1
jge 0x462d89
call fcn.0047fa50
push 0
push dword [ebp - 0x1c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x462da0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x462dc1
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
xor esi, esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x462e1c
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.00579311
add esp, 8
test eax, eax
jne 0x462e06
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x120]
mov dword [ecx + esi*4], eax
inc esi
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x462e1b
cmp esi, ebx
jl 0x462de3
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x463e80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59000d
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
sub esp, 0x410
push ebx
push esi
push edi
test eax, eax
jne 0x463f61
mov word [ebp - 0x41c], ax
mov eax, dword [ebp + 0x10]
mov edi, 0x593534
test eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmovne edi, eax
mov dword [ebp - 0x10], 0x4000100
mov dword [ebp - 0x1c], edi
push 4
push 0
push 0
push edi
mov dword [ebp - 4], 0
call fcn.0046d920
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b44b
push 0
mov ebx, eax
push esi
push ebx
push edi
call fcn.0046d920
mov ecx, ebx
add esp, 0x24
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x463f17
sub ecx, edx
lea eax, [ebp - 0x41c]
sar ecx, 1
lea ecx, [ecx*2 + 2]
push ecx
push ebx
push 1
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov esi, eax
call fcn.0056b454
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x200
lea ecx, [ebp - 0x41c]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x463eb3
mov ecx, dword [ebp - 0xc]
mov eax, 0x57
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x464030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x464040
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
not eax
test edi, edi
je 0x464082
lea ecx, [ecx]
mov cl, byte [esi]
lea esi, [esi + 1]
movzx edx, cl
mov ecx, edx
shr edx, 4
xor ecx, eax
shr eax, 4
and ecx, 0xf
xor eax, dword [ecx*4 + 0x5b3300]
mov ecx, eax
shr eax, 4
and ecx, 0xf
xor edx, ecx
xor eax, dword [edx*4 + 0x5b3300]
sub edi, 1
jne 0x464050
pop edi
not eax
pop esi
pop ebp
ret
Function at 0x467c30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
mov edi, 5
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x467c67
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x467ce1
cmp esi, dword [ebp + 0xc]
ja 0x467ce1
call fcn.0047fa50
mov ecx, eax
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x467ce1
xor edi, edi
test esi, esi
je 0x467cd2
lea esp, [esp]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov eax, 0x100000
cmp esi, eax
cmovb eax, esi
push eax
lea eax, [edi + ecx]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x467cf1
add edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
sub esi, dword [ebp - 8]
jne 0x467ca0
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
mov dword [ecx], esi
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edi
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0047fa50
mov esi, dword [ebp - 4]
mov ecx, eax
push 0
push esi
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [ebp + 0x10]
pop esi
pop edi
pop ebx
mov dword [eax], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, 5
mov esp, ebp
pop ebp
ret

Function at 0x46c860
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x62efb0], 0
push esi
mov esi, dword [ebp + 0x10]
push edi
je 0x46c89c
cmp esi, 0xc0
jl 0x46c89c
mov edi, dword [ebp + 0xc]
mov eax, esi
shr eax, 6
dec eax
push eax
push edi
push dword [ebp + 8]
call fcn.0046c8c0
mov eax, esi
add esp, 0xc
and eax, 0x3f
sub esi, eax
add edi, esi
mov esi, eax
jmp 0x46c89f
mov edi, dword [ebp + 0xc]
push 0x5b52f0
push esi
push edi
push dword [ebp + 8]
call fcn.0046ca20
add esp, 0x10
pop edi
pop esi
pop ebp
ret
Function at 0x46c8c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x40
mov eax, dword [ebp + 8]
movaps xmm3, xmmword [0x5b7300]
movups xmm4, xmmword [edx]
push esi
movups xmm5, xmmword [edx + 0x10]
mov esi, dword [eax]
movups xmm6, xmmword [edx + 0x20]
push edi
movups xmm7, xmmword [edx + 0x30]
add edx, 0x40
cmp esi, 0xffffffff
jne 0x46c8f7
movaps xmm2, xmmword [0x5b72f0]
jmp 0x46c93a
xor edi, edi
mov ecx, 0x5b358fd3
test esi, esi
je 0x46c91f
mov eax, esi
sar eax, 0x1f
and eax, ecx
xor edi, eax
mov eax, ecx
and eax, 1
shr ecx, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
add esi, esi
jne 0x46c902
xor eax, eax
movd xmm0, edi
xorps xmm2, xmm2
movd xmm1, eax
punpckldq xmm1, xmm0
punpckldq xmm2, xmm1
pclmulqdq xmm2, xmm3, 0x11
mov eax, dword [ebp + 0x10]
pxor xmm2, xmm7
test eax, eax
jle 0x46c9b9
lea edx, [edx + 0x40]
movaps xmm1, xmm4
movups xmm0, xmmword [edx - 0x40]
pclmulqdq xmm1, xmm3, 0x11
pclmulqdq xmm4, xmm3, 0
pxor xmm4, xmm1
movaps xmm1, xmm5
pxor xmm4, xmm0
movups xmm0, xmmword [edx - 0x30]
pclmulqdq xmm1, xmm3, 0x11
pclmulqdq xmm5, xmm3, 0
pxor xmm5, xmm1
movaps xmm1, xmm6
pxor xmm5, xmm0
movups xmm0, xmmword [edx - 0x20]
pclmulqdq xmm1, xmm3, 0x11
pclmulqdq xmm6, xmm3, 0
pxor xmm6, xmm1
movaps xmm1, xmm2
pxor xmm6, xmm0
movups xmm0, xmmword [edx - 0x10]
pclmulqdq xmm2, xmm3, 0
pclmulqdq xmm1, xmm3, 0x11
pxor xmm2, xmm1
pxor xmm2, xmm0
sub eax, 1
jne 0x46c945
xor eax, eax
xor edi, edi
movups xmmword [ebp - 0x40], xmm4
movups xmmword [ebp - 0x30], xmm5
movups xmmword [ebp - 0x20], xmm6
movups xmmword [ebp - 0x10], xmm2
lea ecx, [ecx]
xor eax, dword [ebp + edi*4 - 0x40]
inc edi
movzx ecx, al
shr eax, 8
mov esi, dword [ecx*4 + 0x5b5ef0]
movzx ecx, al
shr eax, 8
mov edx, eax
shr edx, 8
xor esi, dword [ecx*4 + 0x5b5af0]
movzx ecx, al
mov eax, dword [edx*4 + 0x5b52f0]
xor eax, dword [ecx*4 + 0x5b56f0]
xor eax, esi
cmp edi, 0x10
jl 0x46c9d0
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret
Function at 0x46ca20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [ecx]
push edi
mov edi, dword [ebp + 0x14]
cmp esi, 7
jle 0x46cae0
test bl, 3
je 0x46ca58
movzx edx, byte [ebx]
dec esi
movzx ecx, al
inc ebx
xor edx, ecx
shr eax, 8
xor eax, dword [edi + edx*4]
test bl, 3
jne 0x46ca43
mov ecx, esi
and ecx, 0xfffffff8
add ebx, ecx
sub esi, ecx
neg ecx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ecx
je 0x46cadd
mov esi, ecx
xor eax, dword [esi + ebx]
movzx ecx, al
shr eax, 8
mov edx, dword [edi + ecx*4 + 0xc00]
movzx ecx, al
shr eax, 8
xor edx, dword [edi + ecx*4 + 0x800]
movzx ecx, al
shr eax, 8
mov ebx, dword [edi + ecx*4 + 0x400]
xor ebx, dword [edi + eax*4]
mov eax, dword [ebp + 0xc]
xor ebx, dword [esi + eax + 4]
xor ebx, edx
movzx eax, bl
shr ebx, 8
mov ecx, dword [edi + eax*4 + 0xc00]
movzx eax, bl
shr ebx, 8
xor ecx, dword [edi + eax*4 + 0x800]
movzx eax, bl
shr ebx, 8
mov eax, dword [edi + eax*4 + 0x400]
xor eax, dword [edi + ebx*4]
mov ebx, dword [ebp + 0xc]
xor eax, ecx
add esi, 8
jne 0x46ca70
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
test esi, esi
jle 0x46cafd
movzx edx, byte [ebx]
lea ebx, [ebx + 1]
movzx ecx, al
dec esi
xor edx, ecx
shr eax, 8
xor eax, dword [edi + edx*4]
test esi, esi
jg 0x46cae4
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x470520
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x94], 0
mov dword [edi], vtable.CFileWriterThread.0
jne 0x47054e
push 1
call fcn.00472bc0
mov ecx, edi
call fcn.00481390
test al, al
je 0x47054e
push 0
mov ecx, edi
call fcn.00481830
lea ecx, [edi + 0x80]
mov dword [edi + 0x90], 0
call fcn.0046a5f0
lea ecx, [edi + 0x80]
call fcn.0046a5f0
lea ecx, [edi + 0x70]
call fcn.00481290
lea ecx, [edi + 0x50]
call fcn.00470370
lea ecx, [edi + 0x38]
call fcn.00481250
mov ecx, edi
pop edi
pop esi
jmp fcn.00480fe0

Function at 0x470730
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], vtable.CPathString.0
mov dword [ebp - 0x10], 0
call fcn.00471a70
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.00471a70
lea ecx, [ebp - 0xc]
call fcn.004718a0
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.004718a0
movzx ecx, byte [ebp + 0x10]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x4707a2
push eax
call fcn.0056b454
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4707b2
push eax
call fcn.0056b454
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4707c2
push eax
call fcn.0056b454
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4707d2
push ecx
call fcn.0056b454
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4728e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x472944
mov edi, dword [esi + 0x20]
lea ecx, [ebp - 4]
push ebx
xor ebx, ebx
push ebx
push ecx
push edi
push dword [esi + 0x10]
mov dword [ebp - 4], ebx
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x47291d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x472920
jmp 0x472924
mov ebx, dword [ebp - 4]
cmp edi, ebx
je 0x472931
mov eax, dword [esi + 4]
mov ecx, 1
add eax, 0x1c
xchg dword [eax], ecx
mov eax, dword [esi + 4]
neg edi
add eax, 0x18
lock xadd dword [eax], edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
test eax, eax
je 0x472a0f
cmp byte [eax], 0
je 0x472a0f
call sub.KERNEL32.dll_GetCurrentProcessId
mov ecx, dword [esi + 8]
mov edi, 0x593534
test ecx, ecx
mov edx, edi
push eax
cmovne edx, ecx
lea eax, [ebp - 0x14]
push edx
push str._s.async_u.tmp
push eax
call fcn.0046a950
add esp, 0x10
cmp byte [ebp - 5], 0
jge 0x472990
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x472993
mov eax, edi
jmp 0x472993
lea eax, [ebp - 0x14]
push 1
push eax
lea eax, [esi + 0xc]
push eax
call fcn.00472a40
add esp, 0xc
test al, al
je 0x4729f2
mov eax, dword [esi + 8]
test eax, eax
cmovne edi, eax
cmp byte [ebp - 5], 0
jge 0x4729c2
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4729c5
mov eax, 0x593534
jmp 0x4729c5
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.004711c0
add esp, 8
test al, al
jne 0x4729f2
cmp byte [ebp - 5], al
jge 0x4729e6
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4729e9
mov eax, 0x593534
jmp 0x4729e9
lea eax, [ebp - 0x14]
push eax
call fcn.00472de0
add esp, 4
cmp byte [ebp - 5], 0
jge 0x472a2b
call fcn.0047fa50
push 0
push dword [ebp - 0x14]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.Invalid_FileWriterItem_t
push 0x1542
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier1_fileio.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x472a2b
int3
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x472a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], vtable.CPathString.0
mov dword [ebp - 0xc], 0
call fcn.00471a70
push dword [ebp - 0x10]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.0046b270
push dword [ebp - 4]
call fcn.00469a00
mov eax, dword [ebp - 4]
mov ecx, esp
mov dword [ecx], eax
call fcn.004712f0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
xor esi, esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x14]
call fcn.004718a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x472af4
call ebx
cmp eax, 0x20
jne 0x472af0
push 0xa
call fcn.00481eb0
inc esi
add esp, 4
cmp esi, 0xa
jl 0x472a95
push str.INVALID_HANDLE_VALUE:_ERROR_SHARING_VIOLATION
push 0x889
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier1_fileio.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x472af0
int3
xor bl, bl
jmp 0x472b2e
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push 0
push eax
mov dword [ebp - 8], 0
push dword [esi + 0x14]
push dword [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [ebp + 0x10], 1
je 0x472b1e
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x14]
cmp eax, dword [ebp - 8]
sete bl
call fcn.0047fa50
push 0
push dword [ebp - 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x472b4f
push eax
call fcn.0056b454
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472b5f
push eax
call fcn.0056b454
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x472de0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.00471a70
lea ecx, [ebp - 0xc]
call fcn.004718a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x472e26
push eax
call fcn.0056b454
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x472e36
push ecx
call fcn.0056b454
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4767f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x65fa88], 0
jne 0x47691c
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x47691b
mov ecx, dword [ebp - 4]
push esi
xor esi, esi
push edi
lea edi, [ecx*4 + 8]
test ecx, ecx
jle 0x47686c
jmp 0x476840
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebx + esi*4]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
mov ecx, 1
cmovg ecx, eax
inc esi
add edi, ecx
cmp esi, dword [ebp - 4]
jl 0x476840
lea eax, [edi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], 0
mov dword [eax], ecx
add eax, 4
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], eax
lea esi, [ecx + 1]
lea esi, [eax + esi*4]
test ecx, ecx
jle 0x4768f9
mov edx, ebx
mov dword [ebp - 0xc], eax
sub edx, eax
lea ecx, [eax + edi]
mov dword [ebp - 0x14], edx
mov ebx, eax
lea esp, [esp]
cmp esi, ecx
jae 0x4768f6
push 0
push 0
sub eax, esi
add eax, edi
push eax
push esi
push 0xffffffffffffffff
push dword [edx + ebx]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 8]
test eax, eax
mov ecx, 1
mov dword [ebx], esi
cmovg ecx, eax
mov eax, dword [ebp - 0x10]
inc edx
add esi, ecx
add ebx, 4
mov dword [ebp - 8], edx
cmp edx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
lea ecx, [eax + edi]
jl 0x4768b0
mov ebx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call esi
mov edx, dword [ebp - 0x1c]
mov edi, 0x65fa88
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x476919
push edx
call esi
pop edi
pop esi
pop ebx
mov eax, dword [0x65fa88]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [0x65fa88]
add eax, 4
mov esp, ebp
pop ebp
ret

Function at 0x476980
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0056b420
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push 0x1000
push eax
call fcn.00459ee0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0057909e
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
jg 0x4769e0
push str.len___0
push 0x2be
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0platform.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x4769e0
int3
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret