joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470890
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push ecx
mov eax, esp
lea ecx, [ebp - 0x18]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470330
push ecx
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax], 0
push dword [ebp + 0xc]
call fcn.00470330
movzx eax, byte [ebp + 0x10]
lea ecx, [ebp - 0xc]
push eax
call fcn.00471950
push eax
lea ecx, [ebp - 0x18]
call fcn.00471950
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x4708f1
push eax
call fcn.0056b4c4
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x470901
push eax
call fcn.0056b4c4
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x470911
push eax
call fcn.0056b4c4
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x470921
push ecx
call fcn.0056b4c4
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x470930
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push ecx
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470330
push 0
lea ecx, [ebp - 0xc]
call fcn.00471950
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x470971
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x470971
xor bl, bl
jmp 0x470973
mov bl, 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x470983
push eax
call fcn.0056b4c4
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x470993
push eax
call fcn.0056b4c4
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4709a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ecx
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470330
lea ecx, [ebp - 0xc]
call fcn.00471950
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, dword [ebp - 4]
je 0x4709f3
test eax, eax
je 0x4709dd
push eax
call fcn.0056b4c4
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4709ed
push eax
call fcn.0056b4c4
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x470a00
push eax
call fcn.0056b4c4
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x470a10
push eax
call fcn.0056b4c4
add esp, 4
push dword [ebp + 8]
call fcn.00470a40
add esp, 4
test al, al
je 0x4709ed
push dword [ebp + 8]
call fcn.004722a0
push dword [ebp + 8]
call fcn.00472cc0
add esp, 8
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push ecx
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470330
lea ecx, [ebp - 0xc]
call fcn.00471950
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x470a80
push eax
call fcn.0056b4c4
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x470a90
push ecx
call fcn.0056b4c4
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470aa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push ecx
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470330
lea ecx, [ebp - 0xc]
call fcn.00471950
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x470ad7
test al, 0x10
je 0x470ad7
mov bl, 1
jmp 0x470ad9
xor bl, bl
mov eax, dword [ebp - 4]
test eax, eax
je 0x470ae9
push eax
call fcn.0056b4c4
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x470af9
push eax
call fcn.0056b4c4
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x470fa0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push dword [ebp + 8]
call fcn.004722a0
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470330
lea ecx, [ebp - 0xc]
call fcn.00471950
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x470fe6
push eax
call fcn.0056b4c4
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x470ff6
push ecx
call fcn.0056b4c4
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x471000
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push ebx
push esi
push edi
push ecx
mov eax, esp
lea ecx, [ebp - 0x428]
mov dword [eax], 0x5cfb74
push dword [ebp + 8]
call fcn.004701a0
lea ecx, [ebp - 0x428]
call fcn.00470b00
test al, al
je 0x47112f
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea esp, [esp]
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x471046
sub eax, edx
lea edx, [ebp - 0x41c]
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x471058
sub edx, esi
lea esi, [eax + 2]
add esi, edx
push esi
call fcn.0056b4bb
mov edi, eax
lea eax, [ebp - 0x41c]
push eax
push 0x5c
push dword [ebp + 8]
push str._s_c_s
push esi
push edi
call fcn.0046a100
mov eax, dword [ebp - 0x420]
add esp, 0x1c
mov ecx, dword [eax]
mov eax, ecx
shr eax, 4
test al, 1
je 0x471106
shr ecx, 0xa
test cl, 1
je 0x4710fa
push edi
call fcn.004722a0
mov eax, esp
lea ecx, [ebp - 0xc]
push edi
mov dword [eax], 0
call fcn.00470330
lea ecx, [ebp - 0xc]
call fcn.00471950
push eax
call ebx
test eax, eax
mov dword [ebp - 0xc], vtable.CPathString.0
mov eax, dword [ebp - 4]
test eax, eax
je 0x4710e4
push eax
call fcn.0056b4c4
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x471113
push eax
call fcn.0056b4c4
mov dword [ebp - 8], 0
jmp 0x471110
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.00471000
jmp 0x471110
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.004709a0
add esp, 4
push edi
call fcn.0056b4c4
add esp, 4
lea ecx, [ebp - 0x428]
call fcn.00470b00
test al, al
jne 0x471040
push dword [ebp + 8]
call fcn.00470fa0
mov ecx, dword [ebp - 0x424]
add esp, 4
mov bl, al
cmp ecx, 0xffffffff
je 0x47114e
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x250
push dword [ebp - 0x420]
call fcn.0056b425
add esp, 8
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471170
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push ecx
mov eax, esp
lea ecx, [ebp - 0x18]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470330
push ecx
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax], 0
push dword [ebp + 0xc]
call fcn.00470330
push 1
lea ecx, [ebp - 0xc]
call fcn.00471950
push eax
lea ecx, [ebp - 0x18]
call fcn.00471950
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x4711ce
push eax
call fcn.0056b4c4
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4711de
push eax
call fcn.0056b4c4
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4711ee
push eax
call fcn.0056b4c4
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4711fe
push ecx
call fcn.0056b4c4
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471400
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push ecx
mov eax, esp
lea ecx, [ebp - 0x18]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470330
mov edi, dword [ebp - 0x14]
push ecx
mov eax, esp
lea ecx, [ebp - 0xc]
push edi
mov dword [eax], 0
call fcn.00470330
lea ecx, [ebp - 0xc]
call fcn.00471950
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x471457
push eax
call fcn.0056b4c4
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x471467
push eax
call fcn.0056b4c4
add esp, 4
test bl, bl
jne 0x47158a
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x471474
sub ecx, edx
lea esi, [edi - 1]
add esi, ecx
cmp esi, edi
jbe 0x4714f9
cmp byte [esi], 0x5c
jne 0x4714f1
push ecx
mov eax, esp
mov byte [esi], 0
push edi
lea ecx, [ebp - 0xc]
mov dword [eax], 0
call fcn.00470330
lea ecx, [ebp - 0xc]
call fcn.00471950
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], vtable.CPathString.0
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x4714d3
push eax
call fcn.0056b4c4
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x4714ea
push eax
call fcn.0056b4c4
add esp, 4
mov dword [ebp - 8], 0
mov byte [esi], 0x5c
test bl, bl
jne 0x4714f8
dec esi
cmp esi, edi
ja 0x471486
jmp 0x4714f9
inc esi
mov al, byte [esi]
test al, al
je 0x471575
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp al, 0x5c
jne 0x47156d
push ecx
mov eax, esp
mov byte [esi], 0
push edi
lea ecx, [ebp - 0xc]
mov dword [eax], 0
call fcn.00470330
push 0
lea ecx, [ebp - 0xc]
call fcn.00471950
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x471535
call ebx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], vtable.CPathString.0
test eax, eax
je 0x471553
push eax
call fcn.0056b4c4
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x47156a
push eax
call fcn.0056b4c4
add esp, 4
mov dword [ebp - 8], 0
mov byte [esi], 0x5c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x471505
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.00470930
add esp, 4
test al, al
jne 0x47158a
xor bl, bl
jmp 0x47158c
mov bl, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47159c
push eax
call fcn.0056b4c4
add esp, 4
test edi, edi
je 0x4715a9
push edi
call fcn.0056b4c4
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4715e0
Capabilities:
Inspect section memory permissions
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
mov eax, esp
lea ecx, [ebp - 0x14]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470330
mov eax, dword [ebp + 0x1c]
mov ecx, ebx
shl ecx, 0x1f
mov edx, ecx
or edx, 0x40000000
mov dword [eax], 0xffffffff
mov eax, ebx
and al, 2
mov eax, 0xc0000000
cmove edx, ecx
cmp ebx, 4
cmove edx, eax
mov eax, edx
or eax, 4
and bl, 8
cmove eax, edx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
cmp eax, 7
ja case.default.0x471673
jmp dword [eax*4 + 0x471784]
xor edi, edi
jmp 0x471667
mov edi, 1
jmp 0x471667
mov edi, 2
jmp 0x471667
mov edi, 3
jmp 0x471667
mov edi, 7
mov eax, dword [ebp + 0x14]
cmp eax, 3
ja case.default.0x471673
jmp dword [eax*4 + 0x4717a4]
mov ebx, 3
jmp 0x471694
mov ebx, 4
jmp 0x471694
mov ebx, 1
jmp 0x471694
mov ebx, 2
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
and ecx, 1
shl ecx, 0x1e
sub ecx, 0xffffff80
mov edx, ecx
or edx, 0x20000000
and al, 2
cmove edx, ecx
mov ecx, dword [ebp + 0x18]
mov esi, edx
mov eax, ecx
or esi, 0x8000000
and al, 8
cmove esi, edx
test cl, 0x10
je 0x4716d3
and esi, 0xffffff7f
or esi, 0x100
mov eax, ecx
mov ecx, esi
or ecx, 0x4000000
and al, 0x20
push 0
cmove ecx, esi
push ecx
push ebx
push 0
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.00471950
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp + 0x1c]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x47170f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x471759
mov ebx, dword [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileTime]
test bl, 4
je 0x471736
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 0x471750
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 0x471759
mov esi, 0x57
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x471769
push eax
call fcn.0056b4c4
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x471779
push eax
call fcn.0056b4c4
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471820
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 0x471833
mov dword [esi], 0
mov esi, dword [ebp + 0x10]
xor edi, edi
test esi, esi
je 0x471892
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
je 0x471878
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x471892
add ebx, eax
add edi, eax
sub esi, eax
je 0x471892
jmp 0x47183f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x47188e
test edi, edi
jne 0x471892
pop edi
pop esi
pop ebx
pop ebp
ret
test eax, eax
jne 0x4718b3
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x4718af
test esi, esi
je 0x4718b1
push 0x26
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, 0x26
pop ebx
pop ebp
ret
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4718c0
Capabilities:
Write file on windows

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push ecx
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470330
lea ecx, [ebp - 0xc]
call fcn.00471950
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4722ea
test al, 3
je 0x4722e6
and eax, 0xfffffffc
lea ecx, [ebp - 0xc]
push eax
call fcn.00471950
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
jmp 0x4722ec
xor bl, bl
mov eax, dword [ebp - 4]
test eax, eax
je 0x4722fc
push eax
call fcn.0056b4c4
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x47230c
push eax
call fcn.0056b4c4
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push ecx
mov eax, esp
lea ecx, [ebp - 0x14]
mov dword [eax], 0
push dword [ebp + 0xc]
call fcn.00470330
push dword [ebp - 0x10]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.0046b590
push dword [ebp - 4]
call fcn.00469d70
mov eax, dword [ebp - 4]
mov ecx, esp
mov dword [ecx], eax
call fcn.00471400
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
xor esi, esi
mov edi, edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x14]
call fcn.00471950
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4729bf
call ebx
cmp eax, 0x20
jne 0x4729bb
push 0xa
call fcn.004817e0
inc esi
add esp, 4
cmp esi, 0xa
jl 0x472960
push str.INVALID_HANDLE_VALUE:_ERROR_SHARING_VIOLATION
push 0x7fe
push str.c:_buildslave_steam_rel_client_win32_build_src_tier1_fileio.cpp
call fcn.00476e80
add esp, 0xc
test al, al
jne 0x4729bb
int3
xor bl, bl
jmp 0x4729f9
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 0x4729e9
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.0047f570
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 0x472a1a
push eax
call fcn.0056b4c4
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472a2a
push eax
call fcn.0056b4c4
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x472cc0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push ecx
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470330
lea ecx, [ebp - 0xc]
call fcn.00471950
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x472cff
push eax
call fcn.0056b4c4
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x472d0f
push ecx
call fcn.0056b4c4
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4741b0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x654074], 0
push esi
mov esi, dword [ebp + 0x10]
push edi
je 0x4741ec
cmp esi, 0xc0
jl 0x4741ec
mov edi, dword [ebp + 0xc]
mov eax, esi
shr eax, 6
dec eax
push eax
push edi
push dword [ebp + 8]
call fcn.00474210
mov eax, esi
add esp, 0xc
and eax, 0x3f
sub esi, eax
add edi, esi
mov esi, eax
jmp 0x4741ef
mov edi, dword [ebp + 0xc]
push 0x5da780
push esi
push edi
push dword [ebp + 8]
call fcn.00474370
add esp, 0x10
pop edi
pop esi
pop ebp
ret
Function at 0x474210
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 [0x5dc790]
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 0x474247
movaps xmm2, xmmword [0x5dc780]
jmp 0x47428a
xor edi, edi
mov ecx, 0x5b358fd3
test esi, esi
je 0x47426f
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 0x474252
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 0x474309
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 0x474295
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 + 0x5db380]
movzx ecx, al
shr eax, 8
mov edx, eax
shr edx, 8
xor esi, dword [ecx*4 + 0x5daf80]
movzx ecx, al
mov eax, dword [edx*4 + 0x5da780]
xor eax, dword [ecx*4 + 0x5dab80]
xor eax, esi
cmp edi, 0x10
jl 0x474320
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret
Function at 0x474370
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 0x474430
test bl, 3
je 0x4743a8
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 0x474393
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 0x47442d
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 0x4743c0
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
test esi, esi
jle 0x47444d
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 0x474434
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4761c0
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
movzx ebx, byte [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
dec ebx
push edi
mov edi, dword [ebp + 0xc]
or ebx, 0xdfdfdfdf
shr edi, 2
lea edx, [eax + edi*4]
mov dword [ebp + 0x10], edx
test edi, edi
je 0x476254
mov ecx, edx
lea eax, [edi*4]
and ecx, 3
sub edx, eax
mov dword [ebp + 0x14], ecx
add edx, 2
jmp 0x476200
test ecx, ecx
jne 0x476209
mov eax, dword [edx - 2]
jmp 0x47622a
movzx eax, byte [edx + 1]
movzx ecx, byte [edx]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx - 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx - 2]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 0x14]
and eax, ebx
add edx, 4
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor esi, eax
rol esi, 0xd
add esi, 0xfaddaf14
lea esi, [esi + esi*4]
sub edi, 1
jne 0x476200
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov eax, edi
and eax, 3
sub eax, 1
je 0x47627d
sub eax, 1
je 0x476274
sub eax, 1
jne 0x476295
movzx ecx, byte [edx + 2]
shl ecx, 0x10
movzx eax, byte [edx + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [edx]
xor eax, ecx
and eax, ebx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor esi, eax
xor esi, edi
mov eax, esi
shr eax, 0x10
xor eax, esi
imul ecx, eax, 0x85ebca6b
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
pop ebp
ret