joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180045590
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 0x3b0]
mov rbx, rcx
sub rax, qword [rcx + 0x3a8]
mov edi, r9d
sar rax, 4
mov r9d, edx
cmp r9, rax
jb 0x1800455ca
mov eax, 0x80004005
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x40], rsi
mov rsi, qword [rcx + 0x3a8]
shl r9, 4
add rsi, r9
mov rcx, qword [rsi + 8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1800456fb
lea edx, [r8 + 0x2c]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800456b4
mov rdx, qword [rsp + 0x60]
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], 0
mov r8d, edi
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800456d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x18004566b
cmp eax, 0x3e6
je 0x18004566b
test eax, eax
jle 0x180045700
mov rsi, qword [rsp + 0x40]
movzx eax, ax
or eax, 0x80070000
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov edx, edi
mov rcx, rbx
call fcn.180045710
mov rbx, rax
test rax, rax
jne 0x180045692
mov eax, 0x8007000e
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x48]
mov r8d, edi
mov qword [rsp + 0x20], 0
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800456c9
call fcn.180002050
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsp + 0x60]
mov r8, rdi
mov rdx, rbx
call fcn.18008b7d0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1800456e9
mov eax, dword [rsp + 0x48]
mov dword [rcx], eax
xor eax, eax
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, 0x80004005
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180045ff0
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov r9, rcx
test edx, edx
je 0x180046033
mov edx, edx
lea r10, [0x1800d98d0]
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + r10]
lea eax, [r8 + 1]
xor r8d, r8d
lea r9, [r9 + 1]
not cl
xor byte [r9 - 1], cl
cmp eax, 4
cmovne r8d, eax
sub rdx, 1
jne 0x180046010
mov eax, 1
ret

Function at 0x180046080
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x30
mov rax, r9
mov qword [rsp + 0x20], 0
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, rax
mov ebx, r8d
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x48]
cmp eax, ebx
jne 0x1800460b3
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1800479b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x248
mov rax, qword [0x1800eb008]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, r9
mov r14, r8
mov rdi, rdx
nop dword [rax + rax]
movzx eax, word [rdi]
cmp ax, 0x20
je 0x1800479ef
cmp ax, 9
jne 0x1800479f5
add rdi, 2
jmp 0x1800479e0
cmp word [rdi], 0x22
mov qword [rsp + 0x240], rbp
jne 0x180047a1b
add rdi, 2
mov edx, 0x22
lea rcx, [rdi + 2]
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rbx, rax
jmp 0x180047a53
mov edx, 0x20
lea rcx, [rdi + 2]
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov edx, 9
lea rcx, [rdi + 2]
mov rbp, rax
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rbx, rax
test rbp, rbp
je 0x180047a53
test rax, rax
je 0x180047a50
cmp rax, rbp
cmovb rbp, rax
mov rbx, rbp
test rbx, rbx
jne 0x180047a62
mov eax, 0xe0032002
jmp 0x180047b5f
sub rbx, rdi
sar rbx, 1
cmp rbx, 0x104
jge 0x180047a58
mov edx, 0x5c
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rcx, rsi
test rax, rax
je 0x180047a9d
add rbx, rbx
mov rdx, rdi
mov r8, rbx
call fcn.18008b7d0
xor eax, eax
mov word [rbx + rsi], ax
jmp 0x180047ae0
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov rbp, rax
test rax, rax
jne 0x180047ac7
mov eax, 0x80004005
jmp 0x180047b5f
add rbx, rbx
lea rcx, [rax + 2]
mov r8, rbx
mov rdx, rdi
call fcn.18008b7d0
xor eax, eax
mov word [rbx + rbp + 2], ax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180047b5d
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.18008c000
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [rax], 0
je 0x180047b1d
mov rdx, rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [rsp + 0x20], 0
je 0x180047b48
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180047b5d
mov eax, 0xe0032001
jmp 0x180047b5f
xor eax, eax
mov rbp, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180072920
add rsp, 0x248
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x180047fb0
Capabilities:
Read file on windows

Disassembly:
push rsi
push r14
sub rsp, 0x78
mov rax, qword [0x1800eb008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, r8
mov rsi, rdx
test rcx, rcx
je 0x1800481a6
cmp word [rcx], 0
je 0x1800481a6
mov qword [rsp + 0xa8], rbx
xor r9d, r9d
mov qword [rsp + 0x70], rdi
mov edx, 0x80000000
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180048027
call fcn.180002050
mov edi, eax
jmp 0x180048186
xor eax, eax
mov dword [rsp + 0x40], edi
lea r9, [rsp + 0x40]
mov byte [rsp + 0x48], dil
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x49], rax
mov rcx, rbx
mov dword [rsp + 0x51], eax
lea r8d, [rax + 0x10]
mov word [rsp + 0x55], ax
mov byte [rsp + 0x57], al
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180048070
call fcn.180002050
mov edi, eax
jmp 0x180048186
mov eax, dword [rsp + 0x48]
cmp eax, dword [str.MAC]
jne 0x180048087
mov dword [rsi], 5
jmp 0x18004817f
cmp eax, dword [str.fLaC]
jne 0x18004809a
mov dword [rsi], 6
jmp 0x18004817f
cmp eax, dword [str.wvpk]
jne 0x1800480ad
mov dword [rsi], 7
jmp 0x18004817f
cmp eax, dword [0x1800d98d0]
jne 0x1800480c0
mov dword [rsi], 0xa
jmp 0x18004817f
cmp eax, dword [str.RIFF]
mov rcx, qword [rsp + 0x50]
jne 0x1800480e1
cmp rcx, qword [str.WAVEfmt]
jne 0x1800480e1
mov dword [rsi], 8
jmp 0x18004817f
mov rax, qword [rsp + 0x48]
cmp rax, qword [str.MEDIA_DESCRIPTOR]
jne 0x180048100
cmp rcx, qword [0x1800d9968]
jne 0x180048100
mov dword [rsi], 2
jmp 0x18004817f
xor eax, eax
mov byte [rsp + 0x58], dil
xor r8d, r8d
mov qword [rsp + 0x59], rax
mov rcx, rbx
mov dword [rsp + 0x61], eax
mov word [rsp + 0x65], ax
lea r9d, [rax + 2]
mov byte [rsp + 0x67], al
lea rdx, [rax - 0x10]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18004815c
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18004815c
call fcn.180002050
mov edi, eax
jmp 0x180048186
mov eax, dword [rsp + 0x5c]
cmp eax, dword [str.NER5]
je 0x180048179
mov eax, dword [rsp + 0x60]
cmp eax, dword [str.NERO]
je 0x180048179
mov dword [r14], edi
jmp 0x180048186
mov dword [rsi], 1
mov dword [r14], 1
cmp rbx, 0xffffffffffffffff
je 0x180048195
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xa8]
mov eax, edi
mov rdi, qword [rsp + 0x70]
jmp 0x1800481ab
mov eax, 0x80070057
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180072920
add rsp, 0x78
pop r14
pop rsi
ret
Function at 0x180048d00
Capabilities:
Get disk information via ioctl
Get disk size

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x1800eb008]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor eax, eax
mov rdi, rdx
mov qword [rbp + 0xf], rax
xor esi, esi
mov qword [rbp + 0x17], rax
mov rbx, r8
mov qword [rbp + 0x1f], rax
xor r9d, r9d
mov qword [rbp + 0x27], rax
xor r8d, r8d
mov qword [rbp + 0x2f], rax
mov edx, 0x24050
mov qword [rsp + 0x38], rsi
lea rax, [rbp - 0x19]
mov qword [rsp + 0x30], rax
mov rcx, rdi
lea rax, [rbp + 0xf]
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x19], esi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x180048d9a
cmp dword [rbp - 0x19], esi
je 0x180048d9a
cmp dword [rbp + 0x23], 0x800
jne 0x180048e38
mov rax, qword [rbp + 0x27]
mov qword [rbx], rax
xor eax, eax
jmp 0x180048e3d
xor eax, eax
mov qword [rsp + 0x38], rsi
mov qword [rbp + 7], rax
xor r9d, r9d
lea rax, [rbp - 0x19]
mov dword [rbp - 0x19], esi
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rbp + 0xf]
mov dword [rsp + 0x28], 0x18
mov edx, 0x2404c
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x180048e38
cmp dword [rbp - 0x19], esi
je 0x180048e38
cmp dword [rbp + 0xb], 0x800
jne 0x180048e38
xor eax, eax
mov qword [rsp + 0x38], rsi
mov qword [rbp - 0x11], rax
xor r9d, r9d
lea rax, [rbp - 0x19]
mov dword [rbp - 0x19], esi
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rbp - 0x11]
mov dword [rsp + 0x28], 8
mov edx, 0x7405c
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x180048e38
cmp dword [rbp - 0x19], esi
je 0x180048e38
mov rax, qword [rbp - 0x11]
mov qword [rbx], rax
xor eax, eax
jmp 0x180048e3d
mov eax, 0xe003200c
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.180072920
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x180048f40
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1800eb008]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rsi, r9
movzx ebp, r8w
movzx ebx, dx
xor eax, eax
mov qword [rsp + 0x5a], rax
mov qword [rsp + 0x62], rax
mov word [rsp + 0x6a], ax
mov word [rsp + 0x58], dx
lea rdx, [0x1800d9b08]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x180048fb5
mov eax, 0xe003200c
jmp 0x18004909f
xor r14d, r14d
mov word [rsp + 0x70], r14w
xor eax, eax
mov qword [rsp + 0x72], rax
mov qword [rsp + 0x7a], rax
mov word [rsp + 0x82], ax
movzx r8d, bx
lea rdx, str.._c:
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r14 + 1]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x180049026
call fcn.180002050
jmp 0x180049083
mov qword [rsp + 0x40], r14
lea r8, [rsp + 0x40]
mov rdx, rdi
call fcn.180048d00
mov ebx, eax
test eax, eax
js 0x180049085
cmp eax, 1
je 0x180049085
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call qword [rax + 0x70]
mov ebx, eax
test eax, eax
js 0x180049085
cmp eax, 1
je 0x180049085
test bp, bp
je 0x180049078
movzx r8d, bp
mov rdx, rdi
call fcn.180048e60
mov ebx, eax
test eax, eax
js 0x180049085
cmp eax, 1
je 0x180049085
mov r8, rsi
mov rdx, rdi
call fcn.1800490c0
mov ebx, eax
cmp rdi, 0xffffffffffffffff
je 0x180049094
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], 0xffffffffffffffff
mov eax, ebx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180072920
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800490c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800eb008]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, r8
mov r15, rdx
mov qword [rsp + 0x68], r8
test r8, r8
je 0x180049110
mov rax, qword [r8]
mov rcx, r8
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.18008c000
mov rax, qword [rsi]
mov r8d, 0x104
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [rax + 0xa8]
mov edi, eax
test eax, eax
js 0x18004929c
cmp eax, 1
je 0x18004929c
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x18004918f
call fcn.180002050
mov edi, eax
jmp 0x180049284
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1800491b1
call fcn.180002050
mov edi, eax
jmp 0x180049284
lea rdx, [0x1800ece24]
mov ecx, 0x80000
call fcn.180072944
mov rbp, rax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rbx
nop dword [rax]
nop word [rax + rax]
xor edx, edx
mov r8d, 0x80000
mov rcx, rbp
call fcn.18008c000
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
mov r8d, 0x80000
mov rdx, rbp
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18004926b
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18004926b
mov eax, dword [rsp + 0x40]
add qword [rsp + 0x48], rax
mov rax, qword [rsi]
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [rax + 0x78]
mov edi, eax
test eax, eax
js 0x180049272
cmp eax, 1
je 0x180049272
cmp dword [rsp + 0x40], 0x80000
je 0x1800491e0
mov edi, ebx
jmp 0x180049272
call fcn.180002050
mov edi, eax
test rbp, rbp
je 0x180049284
mov rcx, rbp
call fcn.18007294c
mov qword [rsp + 0x50], rbx
cmp r14, 0xffffffffffffffff
je 0x180049293
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], 0xffffffffffffffff
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + reloc.WS2_32.dll_recv]
mov eax, edi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180072920
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1800527a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xb50
mov rax, qword [0x1800eb008]
xor rax, rsp
mov qword [rsp + 0xb40], rax
inc dword [rcx + 0x20]
mov rdi, rdx
cmp dword [rcx + 0x10], 0
mov rbx, rcx
mov edx, dword [rcx + 0x20]
jne 0x18005290a
mov eax, dword [rcx + 0x28]
test eax, eax
js 0x18005281e
cmp eax, 1
je 0x18005281e
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x180052841
cmp dword [rbx + 0x24], edx
mov r8d, 0x24
mov eax, 0x20
lea rdx, [rsp + 0x30]
cmovb eax, r8d
mov eax, dword [rax + rbx]
shl rax, 0xb
mov qword [rsp + 0x30], rax
mov rax, qword [rcx]
call qword [rax + 0x78]
test eax, eax
je 0x180052841
mov dword [rbx + 0x28], 0x80004004
xor eax, eax
mov rcx, qword [rsp + 0xb40]
xor rcx, rsp
call fcn.180072920
mov rbx, qword [rsp + 0xb78]
add rsp, 0xb50
pop rdi
ret
xor edx, edx
mov qword [rsp + 0xb70], rsi
mov r8d, 0x100
lea rcx, [rsp + 0x40]
call fcn.18008c000
mov rax, qword [rbx]
lea r9, [rsp + 0x30]
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x40]
xor esi, esi
mov dword [rsp + 0x30], esi
mov r8d, dword [rax + 0xc]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18005288d
call fcn.180002050
mov dword [rbx + 0x28], eax
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x30]
mov r8d, 0x800
mov dword [rsp + 0x30], esi
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800528ba
call fcn.180002050
mov dword [rbx + 0x28], eax
xor edx, edx
lea rcx, [rsp + 0x140]
mov r8d, 0xa00
call fcn.18008c000
mov rax, qword [rbx]
lea r9, [rsp + 0x30]
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x140]
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x20], rsi
mov r8d, dword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rsi, qword [rsp + 0xb70]
test eax, eax
jne 0x18005290a
call fcn.180002050
mov dword [rbx + 0x28], eax
mov eax, 1
jmp 0x180052820

Function at 0x180053540
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rbx, rcx
mov rcx, qword [rcx + 0x220]
xor edi, edi
test rcx, rcx
je 0x180053572
call fcn.18007294c
nop
mov qword [rbx + 0x220], rdi
mov rcx, qword [rbx + 0x218]
cmp rcx, 0xffffffffffffffff
je 0x18005359c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rbx + 0x218], 0xffffffffffffffff
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800535ad
call fcn.18007294c
nop
mov qword [rbx], rdi
mov dword [rbx + 8], edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1800535c0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x1800eb008]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
cmp r8d, 0xa00000
jbe 0x1800535f1
mov eax, 0x80004005
jmp 0x180053727
mov dword [rcx + 0x228], edx
mov eax, 4
mov dword [rcx + 0x22c], r8d
mov ecx, r8d
mul rcx
mov rcx, 0xffffffffffffffff
lea rdx, [0x1800ece24]
cmovo rax, rcx
mov rcx, rax
call fcn.180072944
mov qword [rbx + 0x220], rax
test rax, rax
jne 0x180053639
mov eax, 0x8007000e
jmp 0x180053727
mov r8d, dword [rbx + 0x22c]
mov edx, 0xff
shl r8, 2
mov rcx, rax
call fcn.18008c000
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.18008c000
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1800536af
lea rdx, str.WMCache_
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1800536b6
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1800536b6
call fcn.180002050
jmp 0x180053727
lea r9, [rbx + 0x10]
mov qword [rsp + 0x278], rdi
xor r8d, r8d
lea rdx, [0x1800b94b8]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x180053716
mov qword [rsp + 0x30], 0
lea rcx, [rbx + 0x10]
mov dword [rsp + 0x28], 0x20000000
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x218], rax
cmp rax, 0xffffffffffffffff
jne 0x18005371d
call fcn.180002050
jmp 0x18005371f
xor eax, eax
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180072920
add rsp, 0x260
pop rbx
ret
Function at 0x180057090
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1800eb008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov edi, edx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.18008c000
mov edx, 0x5c
lea rcx, [rbx + 0xa8]
call fcn.18008bea4
test rax, rax
jne 0x1800570e8
mov eax, 0x80004005
jmp 0x18005713f
sub rax, rbx
lea rdx, [rbx + 0xa8]
lea rcx, [rsp + 0x30]
lea r8, [rax - 0xa8]
sar r8, 1
inc r8d
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
xor r9d, r9d
lea rdx, [rsp + 0x20]
xor r8d, r8d
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x18005712b
call fcn.180002050
jmp 0x18005713f
mov ecx, dword [rbx + 0x6c]
xor edx, edx
add ecx, edi
mov eax, 0x80070070
cmp qword [rsp + 0x20], rcx
cmova eax, edx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180072920
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18005ad70
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov r14, r9
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x18005af1c
cmp word [rdx], 0
je 0x18005af1c
test r9, r9
je 0x18005af1c
mov ecx, dword [rsp + 0x80]
lea eax, [rcx - 5]
cmp eax, 1
ja 0x18005af1c
mov eax, dword [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x50], rsi
xor esi, esi
mov dword [rbx + 0x40], eax
test r8d, r8d
mov eax, dword [rsp + 0x78]
mov dword [rbx + 0x38], ecx
mov rcx, rdx
lea r8d, [rsi + 1]
mov dword [rbx + 0x44], eax
mov qword [rsp + 0x30], rsi
jne 0x18005ae90
mov dword [rsp + 0x28], 0x20000000
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x3c], esi
mov dword [r14], esi
cmp word [rdi], si
jne 0x18005ae17
mov r8d, esi
jmp 0x18005ae2a
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdi + r8*2], si
jne 0x18005ae20
lea rcx, [rbx + 0x18]
mov rdx, rdi
call fcn.180004430
cmp qword [rbx + 0x10], 0xffffffffffffffff
jne 0x18005aeb9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
ja 0x18005ae58
movabs rdx, 0x300080020
bt rdx, rax
jb 0x18005ae81
cmp eax, 0xa7
je 0x18005ae81
test eax, eax
jle 0x18005ae6b
movzx eax, ax
or eax, 0x80070000
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov rcx, rdi
lea r8d, [r9 + 1]
mov dword [rsp + 0x28], esi
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x3c], 1
mov dword [r14], 1
mov rcx, qword [rbx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x18005aed7
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x18005aede
call fcn.180002050
jmp 0x18005ae6b
mov rax, qword [rsp + 0x58]
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
je 0x18005af02
mov eax, 0xe003300c
jmp 0x18005ae6b
cmp dword [rbx + 0x38], 5
jne 0x18005af15
mov rcx, rbx
call fcn.18005af40
jmp 0x18005ae6b
xor eax, eax
jmp 0x18005ae6b
mov rbx, qword [rsp + 0x60]
mov eax, 0x80070057
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18005c440
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
lea rax, [r11 + 8]
mov rdx, qword [rcx + 0x70]
lea r9, [r11 + 0x18]
mov qword [r11 - 0x18], rax
xor esi, esi
mov qword [r11 - 0x20], rbx
mov edi, 0x200
add rcx, 0x10
mov qword [r11 + 0x18], rsi
mov dword [rsp + 0x20], edi
lea r8d, [rsi + 1]
call fcn.1800019b0
test eax, eax
js 0x18005c517
cmp eax, 1
je 0x18005c517
cmp dword [rbx], 0x5120372
je 0x18005c4b1
mov eax, 0xe00e1001
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
cmp dword [rbx + 4], 2
jne 0x18005c512
test byte [rbx + 8], 1
je 0x18005c512
mov r9d, dword [rbx + 0xc]
lea r10, [0x1800cd2a0]
mov dword [rbx + 0xc], esi
or r8d, 0xffffffff
nop
movzx ecx, byte [rbx]
lea rbx, [rbx + 1]
mov eax, r8d
xor rcx, rax
movzx edx, cl
mov ecx, r8d
shr ecx, 8
mov r8d, dword [r10 + rdx*4]
xor r8d, ecx
sub edi, 1
jne 0x18005c4d0
mov eax, 0xe0037001
not r8d
cmp r9d, r8d
cmovne esi, eax
mov eax, esi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov eax, 0xe0037003
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret