joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10084d20
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x114
mov ecx, dword [0x104a28d4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10425488]
cmp eax, dword [ecx + 0x480]
jg 0x10084e68
mov eax, dword [0x10425484]
test eax, eax
jne 0x10084d5b
mov eax, 1
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0
push ebx
push edi
push esi
call eax
test eax, eax
je 0x10084e5f
lea eax, [ebp - 8]
push eax
mov eax, ebx
or eax, 0x20019
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10084d9f
xor ecx, ecx
cmp eax, 2
pop edi
pop esi
cmove eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10084da4
sub ecx, edx
cmp byte [ecx + edi - 1], 0x5c
lea esi, [ecx + edi]
je 0x10084dbd
mov byte [esi], 0x5c
inc esi
mov byte [esi], al
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x10084e3e
jmp 0x10084df0
push 0x104
lea eax, [ebp - 0x114]
push eax
push esi
call fcn.100cdd00
push ebx
push edi
push dword [ebp + 8]
call fcn.10084d20
add esp, 0x18
test eax, eax
jne 0x10084e3e
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x10084df0
mov byte [esi - 1], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push ebx
push edi
push dword [ebp + 8]
call dword [0x10425484]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10425488
call fcn.100c16d8
add esp, 4
cmp dword [0x10425488], 0xffffffff
jne 0x10084d49
push str.RegDeleteKeyExA
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10425488
mov dword [0x10425484], eax
call fcn.100c1687
add esp, 4
jmp 0x10084d49
Function at 0x100854c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1046f844], 0
push ebx
jne 0x100854d4
xor eax, eax
jmp 0x100854e7
lea eax, [ebp - 4]
push eax
push 3
push str.BCreateDirectory
call fcn.100b43d0
add esp, 0xc
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], vtable.CPathString.0
mov dword [ebp - 8], 0
call fcn.10086110
push 0
lea ecx, [ebp - 0x10]
call fcn.10085f50
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1008552b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1008552b
xor bl, bl
jmp 0x1008552d
mov bl, 1
mov eax, dword [ebp - 8]
test eax, eax
je 0x1008553d
push eax
call fcn.100c1934
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1008554d
push eax
call fcn.100c1934
add esp, 4
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1008555d
push ecx
call fcn.100b4390
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100855b0
Capabilities:
Check if file exists
Get file attributes

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.10086110
lea ecx, [ebp - 0xc]
call fcn.10085f50
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x100855f7
push eax
call fcn.100c1934
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x10085607
push ecx
call fcn.100c1934
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10085610
Capabilities:
Check if file exists
Get file attributes

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.10086110
lea ecx, [ebp - 0xc]
call fcn.10085f50
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1008564e
test al, 0x10
je 0x1008564e
mov bl, 1
jmp 0x10085650
xor bl, bl
mov eax, dword [ebp - 4]
test eax, eax
je 0x10085660
push eax
call fcn.100c1934
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x10085670
push eax
call fcn.100c1934
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10085760
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
cmp dword [0x1046f844], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x1008577b
xor eax, eax
jmp 0x1008578e
lea eax, [ebp - 0x10]
push eax
push 3
push str.CFileReader::BOpenFile
call fcn.100b43d0
add esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov dword [edi + 0x30], 0
cmp eax, 0xffffffff
je 0x100857b6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x100857b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0xffffffff
mov ebx, dword [ebp + 0xc]
mov eax, ebx
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
and eax, 0xffffffb3
je 0x1008580a
push eax
push str.unsupported_flags_0x_x_passed_to_CFileReader::BOpenFile
push 0x151d
push str.C:_buildworker_steam_rel_client_win32_build_src_tier1_fileio.cpp
call fcn.100ada00
add esp, 0x10
test al, al
jne 0x10085807
int3
and ebx, 0x4c
cmp byte [edi + 0x2c], 0
je 0x10085917
xor esi, esi
mov dword [ebp - 0xc], vtable.CPathString.0
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], esi
call fcn.10086110
push 0x3a
push dword [ebp - 8]
call fcn.100c35f0
add esp, 8
test eax, eax
je 0x10085895
mov ecx, dword [ebp - 8]
mov edx, 0x100
sub eax, ecx
lea esi, [eax + 2]
mov eax, 0xff
cmp esi, eax
cmova esi, eax
cmp esi, edx
mov eax, esi
cmova eax, edx
push eax
push ecx
lea eax, [ebp - 0x11c]
push eax
call fcn.100bb8d0
add esp, 0xc
mov byte [ebp + esi - 0x11c], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
xor esi, esi
jmp 0x100858ad
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
mov dword [ebp - 0xc], vtable.CPathString.0
mov eax, dword [ebp - 4]
cmovne esi, dword [ebp + 0xc]
test eax, eax
je 0x100858d1
push eax
call fcn.100c1934
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x100858e8
push eax
call fcn.100c1934
add esp, 4
mov dword [ebp - 8], 0
mov dword [edi + 0x30], esi
test esi, esi
je 0x100858f4
or ebx, 2
jmp 0x10085917
push dword [ebp + 8]
push str.Failed_to_get_sector_size_for_drive_file__s_is_on__not_using_unbuffered_IO
push 0x152c
push str.C:_buildworker_steam_rel_client_win32_build_src_tier1_fileio.cpp
call fcn.100ada00
add esp, 0x10
test al, al
jne 0x10085913
int3
mov byte [edi + 0x2c], 0
push edi
push ebx
test bl, 0x40
mov ecx, 0
push 0
mov eax, 3
cmovne eax, ecx
push eax
push 1
push dword [ebp + 8]
call fcn.10085bd0
add esp, 0x18
test eax, eax
jne 0x10085946
cmp dword [edi], 0xffffffff
je 0x10085946
mov bl, 1
jmp 0x10085948
xor bl, bl
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10085958
push ecx
call fcn.100b4390
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10085970
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push dword [ebp + 8]
call fcn.100866d0
add esp, 4
mov dword [ebp - 0xc], vtable.CPathString.0
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], 0
push 0
push dword [ebp + 8]
call fcn.10086110
lea ecx, [ebp - 0xc]
call fcn.10085f50
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x100859c1
push eax
call fcn.100c1934
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x100859d1
push ecx
call fcn.100c1934
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100859e0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], vtable.CPathString.0
mov dword [ebp - 0x10], 0
call fcn.10086110
mov edi, dword [ebp - 0x14]
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.100855b0
add esp, 4
test al, al
jne 0x10085ae4
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10085a21
sub ecx, edx
lea esi, [edi - 1]
add esi, ecx
cmp esi, edi
jbe 0x10085aaa
cmp byte [esi], 0x5c
jne 0x10085aa2
push 0
push edi
lea ecx, [ebp - 0xc]
mov byte [esi], 0
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.10086110
lea ecx, [ebp - 0xc]
call fcn.10085f50
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 0xc], vtable.CPathString.0
test ecx, ecx
je 0x10085a83
push ecx
call fcn.100c1934
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x10085a9a
push eax
call fcn.100c1934
add esp, 4
mov dword [ebp - 8], 0
mov byte [esi], 0x5c
cmp ebx, 0xffffffff
jne 0x10085aa9
dec esi
cmp esi, edi
ja 0x10085a33
jmp 0x10085aaa
inc esi
mov al, byte [esi]
test al, al
je 0x10085acf
cmp al, 0x5c
jne 0x10085ac7
push ecx
mov eax, esp
mov byte [esi], 0
mov dword [eax], edi
call fcn.100854c0
add esp, 4
mov byte [esi], 0x5c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10085ab0
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.100854c0
add esp, 4
test al, al
jne 0x10085ae4
xor bl, bl
jmp 0x10085ae6
mov bl, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10085af6
push eax
call fcn.100c1934
add esp, 4
test edi, edi
je 0x10085b03
push edi
call fcn.100c1934
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10085b10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 0x410]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10085b96
lea eax, [ebp - 0x208]
push eax
push 0
push 0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10085b96
push esi
push edi
push 4
push 0
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.100bee50
mov esi, eax
push esi
call fcn.100c192b
push 0
mov edi, eax
lea eax, [ebp - 0x208]
push esi
push edi
push eax
call fcn.100bee50
mov ecx, dword [ebp + 8]
add esp, 0x24
push edi
call fcn.10077780
push edi
call fcn.100c1934
add esp, 4
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x10085bd0
Capabilities:
Inspect section memory permissions
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], vtable.CPathString.0
mov dword [ebp - 0xc], 0
call fcn.10086110
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
mov eax, dword [ebp + 0x1c]
shl ecx, 0x1f
mov edx, ecx
or edx, 0x40000000
test bl, 2
mov dword [eax], 0xffffffff
mov eax, 0xc0000000
cmove edx, ecx
cmp ebx, 4
cmove edx, eax
mov eax, edx
or eax, 4
test bl, 8
cmove eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
cmp eax, 7
ja case.default.0x10085c69
jmp dword [eax*4 + 0x10085d7c]
xor edi, edi
jmp 0x10085c5d
mov edi, 1
jmp 0x10085c5d
mov edi, 2
jmp 0x10085c5d
mov edi, 3
jmp 0x10085c5d
mov edi, 7
mov eax, dword [ebp + 0x14]
cmp eax, 3
ja case.default.0x10085c69
jmp dword [eax*4 + 0x10085d9c]
mov dword [ebp + 0xc], 3
jmp 0x10085c92
mov dword [ebp + 0xc], 4
jmp 0x10085c92
mov dword [ebp + 0xc], 1
jmp 0x10085c92
mov dword [ebp + 0xc], 2
mov ebx, dword [ebp + 0x18]
mov ecx, ebx
and ecx, 1
shl ecx, 0x1e
sub ecx, 0xffffff80
mov edx, ecx
or edx, 0x20000000
test bl, 2
cmove edx, ecx
mov esi, edx
or esi, 0x8000000
test bl, 8
cmove esi, edx
test bl, 0x10
je 0x10085ccd
and esi, 0xffffff7f
or esi, 0x100
mov ecx, esi
or ecx, 0x4000000
test bl, 0x20
push 0
cmove ecx, esi
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push 0
push edi
push dword [ebp - 4]
call fcn.10085f50
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp + 0x1c]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x10085d0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10085d51
mov esi, dword [sym.imp.KERNEL32.dll_SetFileTime]
test bl, 4
je 0x10085d2e
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0xffffffff
push ecx
push 0
push eax
mov dword [ebp - 4], 0xffffffff
call esi
test bl, bl
jns 0x10085d48
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0
push 0
lea eax, [ebp - 8]
push eax
push dword [edi]
call esi
xor esi, esi
jmp 0x10085d51
mov esi, 0x57
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10085d61
push eax
call fcn.100c1934
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10085d71
push eax
call fcn.100c1934
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10085e10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
test esi, esi
je 0x10085e23
mov dword [esi], 0
mov esi, dword [ebp + 0x10]
xor edi, edi
test esi, esi
je 0x10085e80
mov ebx, dword [ebp + 0xc]
mov ecx, 0x40000000
mov dword [ebp + 0x10], 0
cmp esi, ecx
mov eax, esi
push 0
cmova eax, ecx
lea ecx, [ebp + 0x10]
push ecx
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10085e71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, ecx
cmp ecx, 0xe8
je 0x10085e9d
xor eax, eax
test edx, edx
jne 0x10085ea1
jmp 0x10085e74
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10085e80
add ebx, eax
add edi, eax
sub esi, eax
jne 0x10085e2f
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x10085ea8
test esi, esi
je 0x10085eaa
push 0x26
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, 0x26
pop ebx
pop ebp
ret
test edi, edi
jne 0x10085e80
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
mov dword [eax], edi
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x10085ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
test eax, eax
push ebx
push esi
lea esi, [ebp - 4]
cmovne esi, eax
push edi
mov dword [ebp - 4], esi
xor edi, edi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10085f39
mov ebx, dword [ebp + 0xc]
push 0
mov ecx, 0x40000000
mov dword [ebp + 0x14], 0
lea eax, [ebp + 0x14]
cmp esi, ecx
push eax
mov eax, esi
cmova eax, ecx
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x10085f26
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
test eax, eax
je 0x10085f29
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov dword [ecx], 0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x10085f31
test edi, edi
jne 0x10085f39
add ebx, ecx
add edi, ecx
sub esi, ecx
jne 0x10085ee1
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100866d0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

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.10086110
lea ecx, [ebp - 0xc]
call fcn.10085f50
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10086721
test al, 3
je 0x1008671d
and eax, 0xfffffffc
lea ecx, [ebp - 0xc]
push eax
call fcn.10085f50
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
jmp 0x10086723
xor bl, bl
mov eax, dword [ebp - 4]
test eax, eax
je 0x10086733
push eax
call fcn.100c1934
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x10086743
push eax
call fcn.100c1934
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10086aa0
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.10086110
push dword [ebp - 0x10]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.10077780
push dword [ebp - 4]
call fcn.100bae90
mov eax, dword [ebp - 4]
mov ecx, esp
mov dword [ecx], eax
call fcn.100859e0
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.10085f50
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10086b38
call ebx
cmp eax, 0x20
jne 0x10086b34
push 0xa
call fcn.100afaa0
inc esi
add esp, 4
cmp esi, 0xa
jl 0x10086af5
xor bl, bl
jmp 0x10086b71
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push 0
push eax
mov dword [ebp - 8], 0
push dword [esi + 0x10]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [ebp + 0x10], 1
je 0x10086b61
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 8]
sete bl
call fcn.100ad570
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 0x10086b92
push eax
call fcn.100c1934
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10086ba2
push eax
call fcn.100c1934
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10086bb0
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.10086110
lea ecx, [ebp - 0xc]
call fcn.10085f50
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x10086bf6
push eax
call fcn.100c1934
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x10086c06
push ecx
call fcn.100c1934
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10087150
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 [0x10257640]
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 0x10087187
movaps xmm2, xmmword [0x10257630]
jmp 0x100871ca
xor edi, edi
mov ecx, 0x5b358fd3
test esi, esi
je 0x100871af
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 0x10087192
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]
xorps xmm2, xmm7
test eax, eax
jle 0x10087240
lea edx, [edx + 0x40]
movaps xmm1, xmm4
movups xmm0, xmmword [edx - 0x40]
pclmulqdq xmm1, xmm3, 0x11
pclmulqdq xmm4, xmm3, 0
xorps xmm4, xmm1
movaps xmm1, xmm5
xorps xmm4, xmm0
movups xmm0, xmmword [edx - 0x30]
pclmulqdq xmm1, xmm3, 0x11
pclmulqdq xmm5, xmm3, 0
xorps xmm5, xmm1
movaps xmm1, xmm6
xorps xmm5, xmm0
movups xmm0, xmmword [edx - 0x20]
pclmulqdq xmm1, xmm3, 0x11
pclmulqdq xmm6, xmm3, 0
xorps xmm6, xmm1
movaps xmm1, xmm2
xorps xmm6, xmm0
movups xmm0, xmmword [edx - 0x10]
pclmulqdq xmm2, xmm3, 0
pclmulqdq xmm1, xmm3, 0x11
xorps xmm2, xmm1
xorps xmm2, xmm0
sub eax, 1
jne 0x100871d4
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
xor eax, dword [ebp + edi*4 - 0x40]
inc edi
movzx ecx, al
shr eax, 8
mov esi, dword [ecx*4 + 0x10256230]
movzx ecx, al
shr eax, 8
mov edx, eax
shr edx, 8
xor esi, dword [ecx*4 + 0x10255e30]
movzx ecx, al
mov eax, dword [edx*4 + 0x10255630]
xor eax, dword [ecx*4 + 0x10255a30]
xor eax, esi
cmp edi, 0x10
jl 0x10087254
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret
Function at 0x100872a0
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 eax, dword [ecx]
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 7
jle 0x10087369
test bl, 3
je 0x100872d8
movzx edx, byte [ebx]
dec edi
movzx ecx, al
inc ebx
xor edx, ecx
shr eax, 8
xor eax, dword [esi + edx*4]
test bl, 3
jne 0x100872c3
mov ecx, edi
and ecx, 0xfffffff8
add ebx, ecx
sub edi, ecx
neg ecx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], edi
mov dword [ebp - 4], ecx
je 0x10087366
mov edi, dword [ebp + 0x14]
xor eax, dword [ebx + ecx]
lea esi, [ebx + ecx]
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]
xor ebx, dword [esi + 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
mov ecx, dword [ebp - 4]
add ecx, 8
mov dword [ebp - 4], ecx
jne 0x100872f1
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
test edi, edi
jle 0x10087389
lea ecx, [ecx]
movzx edx, byte [ebx]
lea ebx, [ebx + 1]
movzx ecx, al
dec edi
xor edx, ecx
shr eax, 8
xor eax, dword [esi + edx*4]
test edi, edi
jg 0x10087370
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100873a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x104254dc], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0xc], 0xffffffff
je 0x100873e2
cmp edi, 0xc0
jl 0x100873e2
mov eax, edi
shr eax, 6
dec eax
push eax
lea eax, [ebp + 0xc]
push esi
push eax
call fcn.10087150
mov eax, edi
add esp, 0xc
and eax, 0x3f
sub esi, eax
add esi, edi
mov edi, eax
push 0x10255630
push edi
lea eax, [ebp + 0xc]
push esi
push eax
call fcn.100872a0
mov eax, dword [ebp + 0xc]
add esp, 0x10
not eax
pop edi
pop esi
pop ebp
ret
Function at 0x1008b320
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov al, 1
cmp dword [esi + 0x11c], 0
je 0x1008b406
cmp byte [0x1025c3e5], 0
je 0x1008b357
push str.pch_cub___1____0__pch_cub___0
push 0xb05
push str.C:_buildworker_steam_rel_client_win32_build_srccommonlogger.cpp
call fcn.100ad9f0
add esp, 0xc
test al, al
jne 0x1008b357
int3
push dword [esi + 0x11c]
push 1
push 0xd
push str.Log_stopped._n
call fcn.100cd9b1
add esp, 0x10
cmp eax, 1
je 0x1008b38f
push str.1__ret
push 0xb25
push str.C:_buildworker_steam_rel_client_win32_build_srccommonlogger.cpp
call fcn.100ad9f0
add esp, 0xc
test al, al
jne 0x1008b38f
int3
add dword [esi + 0x120], 0xd
mov eax, dword [esi + 0x124]
mov edx, dword [esi + 0x11c]
adc eax, 0
add dword [esi + 0x128], 0xd
push ebx
adc dword [esi + 0x12c], 0
mov dword [esi + 0x124], eax
test edx, edx
je 0x1008b3d5
push edx
call fcn.100cd5a2
add esp, 4
test eax, eax
sete bl
test eax, eax
je 0x1008b3d7
mov al, bl
pop ebx
pop esi
ret
mov bl, 1
push dword [esi + 0x11c]
call fcn.100cd22b
add esp, 4
mov dword [esi + 0x11c], 0
mov al, bl
mov dword [esi + 0x120], 0
mov dword [esi + 0x124], 0
pop ebx
pop esi
ret