joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400223b0
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x1400e9010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, r9
mov r15, r8
mov r14, rdx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
cmp qword [rdx + 0x18], 8
jb 0x1400223f6
mov rdx, qword [rdx]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
je 0x140022486
add eax, 0xfffffffe
cmp eax, 1
jbe 0x140022446
mov rcx, r14
call fcn.140005140
nop
mov rcx, r15
call fcn.140005140
nop
mov rcx, rdi
call fcn.1400051b0
lea eax, [rsi - 1]
jmp 0x140022572
mov rdx, r14
cmp qword [r14 + 0x18], 8
jb 0x140022453
mov rdx, qword [r14]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov r12, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x140022499
add r12, qword [rdi]
mov rbp, qword [rdi]
jmp 0x14002249f
add r12, rdi
mov rbp, rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], rsi
sub r12, rbp
mov rax, rsi
mov rbx, rsi
je 0x1400224e7
mov rdx, r12
lea rcx, [rsp + 0x70]
call fcn.1400148e0
mov r8, r12
mov rdx, rbp
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [r12 + rbx]
mov rsi, qword [rsp + 0x80]
sub rax, rbx
mov rdx, r15
cmp qword [r15 + 0x18], 8
jb 0x1400224f7
mov rdx, qword [r15]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 3
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x140022556
sub rsi, rbx
cmp rsi, 0x1000
jb 0x14002254a
add rsi, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140022594
mov rbx, rcx
mov rdx, rsi
mov rcx, rbx
call fcn.1400a63fc
nop
mov rcx, r14
call fcn.140005140
nop
mov rcx, r15
call fcn.140005140
nop
mov rcx, rdi
call fcn.1400051b0
mov eax, ebp
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400a6140
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
int3
Function at 0x1400225a0
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400e9010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rdx + 0x18], 8
mov rbx, r9
mov rbp, qword [rsp + 0xb0]
mov rsi, r8
mov rdi, rdx
jb 0x1400225d5
mov rdx, qword [rdx]
lea rax, [rsp + 0x50]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r14d, r14d
test eax, eax
je 0x14002265e
add eax, 0xfffffffe
cmp eax, 1
jbe 0x140022621
mov rcx, rdi
call fcn.140005140
mov rcx, rsi
call fcn.140005140
mov rcx, rbx
call fcn.140005140
lea eax, [r14 - 1]
jmp 0x1400226e5
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x14002262e
mov rdx, qword [rdi]
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rcx, rbp
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp qword [rbx + 0x18], 8
mov eax, dword [rbx + 0x10]
lea ecx, [rax*2 + 2]
mov rax, rbx
jb 0x140022675
mov rax, qword [rbx]
cmp qword [rsi + 0x18], 8
mov rdx, rsi
jb 0x140022682
mov rdx, qword [rsi]
mov dword [rsp + 0x28], ecx
mov r9d, 1
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, eax
test eax, eax
je 0x1400226c0
mov qword [rbx + 0x10], 1
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400226ba
mov rcx, qword [rbx]
mov dword [rcx], 0xffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call fcn.140005140
mov rcx, rsi
call fcn.140005140
mov rcx, rbx
call fcn.140005140
mov eax, ebp
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a6140
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140024100
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x1400e9010]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rbx, rcx
xor r14d, r14d
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x27], xmm1
lea r8d, [r14 + 0x13]
lea rdx, str.SoftwareIntelIGN_
lea rcx, [rbp + 0x17]
call fcn.14001eb50
nop
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
lea r8d, [r14 + 0x14]
lea rdx, str.LastWHQLDriverUpdate
lea rcx, [rbp - 9]
call fcn.14001eb50
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x58]
test al, al
je 0x14002419a
lea r8d, [r14 + 0x14]
lea rdx, str.LastBetaDriverUpdate
lea rcx, [rbp - 9]
call fcn.14001ea10
lea rax, [rbp - 0x59]
mov qword [rbp - 0x11], rax
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x59]
call fcn.14001e8b0
mov rsi, rax
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x39]
call fcn.14001e8b0
mov rbx, rax
mov qword [rbp - 0x11], rdi
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x1400241d3
mov rdx, qword [rax]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14002424a
add eax, 0xfffffffe
cmp eax, 1
jbe 0x14002420a
mov rdi, 0xffffffffffffffff
jmp 0x140024298
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140024217
mov rdx, qword [rbx]
mov qword [rsp + 0x40], r14
lea rax, [rbp - 0x19]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140024257
mov rdx, qword [rsi]
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14002428a
mov rdi, 0xffffffffffffffff
mov qword [rbp - 0x11], rdi
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rbp - 0x11]
mov rcx, rbx
call fcn.140005140
mov rcx, rsi
call fcn.140005140
cmp rdi, 0xffffffffffffffff
setne bl
lea rcx, [rbp - 9]
call fcn.140005140
nop
lea rcx, [rbp + 0x17]
call fcn.140005140
movzx eax, bl
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400a6140
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14002d070
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x14002d0a1
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1400f0588]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1400f0598]
lea rdx, [rdi + rdi]
call fcn.14002cb80
mov rax, qword [0x1400f0588]
lea r9, [rdi - 1]
mov qword [0x1400f05b0], r9
mov qword [0x1400f05b8], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14002d242
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x14]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x15]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x16]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x17]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x1400f0598]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14002d18c
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14002d203
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x14002d1c9
mov r10, qword [rdx]
cmp r10, rax
je 0x14002d1c3
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14002d203
cmp r9, rdx
je 0x14002d1df
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x14002d217
cmp r9, rdx
jne 0x14002d1d0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x14002d23d
mov r9, qword [0x1400f05b0]
jmp 0x14002d111
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14002d203
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14003d100
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rsi
push r14
sub rsp, 0x178
mov rax, qword [0x1400e9010]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor esi, esi
mov r14, rcx
cmp qword [rcx + 0x18], 8
jb 0x14003d12c
mov rcx, qword [rcx]
mov qword [rsp + 0x198], rbx
mov qword [rsp + 0x1a0], rbp
mov qword [rsp + 0x1a8], rdi
mov qword [rsp + 0x170], r12
mov qword [rsp + 0x168], r13
mov qword [rsp + 0x160], r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14003d2d0
mov rbp, qword [r14 + 0x10]
test rbp, rbp
je 0x14003d38b
mov rdi, rsi
lea r12, [0x1400c14f0]
mov r13d, 0x100
nop dword [rax + rax]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [r12 + rbx*2], 0
jne 0x14003d1a0
mov r15, qword [r14 + 0x18]
mov rsi, r14
cmp r15, 8
jb 0x14003d1bb
mov rsi, qword [r14]
test rbx, rbx
je 0x14003d22d
cmp rdi, rbp
jae 0x14003d22d
mov r8, r13
lea rcx, [rsp + 0x50]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rdx, [r12 + rbx*2]
mov rcx, r12
cmp r12, rdx
je 0x14003d1fe
movzx eax, word [rcx]
cmp ax, r13w
jae 0x14003d31d
movzx eax, al
add rcx, 2
mov byte [rsp + rax + 0x50], 1
cmp rcx, rdx
jne 0x14003d1e0
lea rcx, [rsi + rbp*2]
lea rdx, [rsi + rdi*2]
cmp rdx, rcx
jae 0x14003d22d
nop dword [rax + rax]
movzx eax, word [rdx]
cmp ax, r13w
jae 0x14003d224
cmp byte [rsp + rax + 0x50], 0
jne 0x14003d376
add rdx, 2
cmp rdx, rcx
jb 0x14003d210
mov rdx, 0xffffffffffffffff
cmp rdx, 0xffffffffffffffff
mov rbx, rbp
xorps xmm0, xmm0
cmovne rbx, rdx
xor esi, esi
cmp rbp, rbx
mov qword [rsp + 0x38], rsi
mov r8, rbx
mov qword [rsp + 0x40], rsi
cmovb r8, rbp
mov rdx, r14
movups xmmword [rsp + 0x28], xmm0
cmp r15, 8
jb 0x14003d269
mov rdx, qword [r14]
lea rcx, [rsp + 0x28]
call fcn.14001eb50
cmp qword [rsp + 0x38], rsi
je 0x14003d2b5
cmp qword [rsp + 0x40], 8
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14003d2b5
cmp qword [rsp + 0x40], 8
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
test eax, eax
jne 0x14003d381
lea rcx, [rsp + 0x28]
lea rdi, [rbx + 1]
call fcn.140005140
mov rbp, qword [r14 + 0x10]
cmp rdi, rbp
jb 0x14003d190
mov al, 1
mov r15, qword [rsp + 0x160]
mov r13, qword [rsp + 0x168]
mov r12, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x1a8]
mov rbp, qword [rsp + 0x1a0]
mov rbx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400a6140
add rsp, 0x178
pop r14
pop rsi
ret
lea r9, [rsi + rbp*2]
lea rdx, [rsi + rdi*2]
cmp rdx, r9
jae 0x14003d22d
mov r10d, 0x5c
nop dword [rax]
nop dword [rax + rax]
movzx r8d, word [rdx]
mov rcx, rbx
mov rax, r12
cmp r10w, r8w
je 0x14003d376
cmp rcx, 1
je 0x14003d368
add rax, 2
dec rcx
cmp word [rax], r8w
jne 0x14003d350
test rax, rax
jne 0x14003d376
add rdx, 2
cmp rdx, r9
jb 0x14003d340
jmp 0x14003d22d
sub rdx, rsi
sar rdx, 1
jmp 0x14003d234
lea rcx, [rsp + 0x28]
call fcn.140005140
xor al, al
jmp 0x14003d2d2
Function at 0x140045c50
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1400e9010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, rcx
mov qword [rsp + 0x58], rcx
xor ebp, ebp
lea ecx, [rbp + 0x50]
call fcn.1400a6170
mov rdi, rax
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_spdlog::sinks::wincolor_stdout_sink_struct_spdlog::details::console_mutex__.0
mov qword [rdi], rax
lea rsi, [rdi + 0x10]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsi + 8], ebp
lea rcx, vtable.spdlog::sinks::wincolor_sink_struct_spdlog::details::console_mutex_.0
mov qword [rsi], rcx
mov qword [rsi + 0x10], rax
mov ecx, 8
mov rax, qword gs:[0x58]
mov rax, qword [rax]
lea r15d, [rbp + 2]
lea rbx, [0x1400f09c0]
mov eax, dword [rcx + rax]
cmp dword [0x1400f0c08], eax
jle 0x140045d2f
lea rcx, [0x1400f0c08]
call fcn.1400a64e0
cmp dword [0x1400f0c08], 0xffffffff
jne 0x140045d2f
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x1400ba0a0]
call fcn.1400a63e4
lea rcx, [0x1400f0c08]
call fcn.1400a6474
mov qword [rsi + 0x18], rbx
mov ecx, 0xd8
call fcn.1400a6170
mov rbx, rax
mov qword [rsp + 0x48], rax
xor edx, edx
mov r8d, 0xd8
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rbp
mov r8, r15
lea rdx, [0x1400c3248]
lea rcx, [rsp + 0x28]
call fcn.140005910
lea r8, [rsp + 0x28]
mov rcx, rbx
call fcn.14003ddb0
nop
mov qword [rsi + 0x28], rax
lea rdx, [rsp + 0x58]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
setne al
mov byte [rsi + 0x20], al
mov dword [rsi + 0x30], 0x30007
mov dword [rsi + 0x34], 0xe0002
mov dword [rsi + 0x38], 0x4f000c
mov word [rsi + 0x3c], bp
lea rax, vtable.spdlog::sinks::wincolor_stdout_sink_struct_spdlog::details::console_mutex_.0
mov qword [rsi], rax
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14], rsi
mov qword [r14 + 8], rdi
mov rax, r14
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400a6140
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14004ba30
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x14004ba65
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.14002cb80
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14004bb84
mov qword [rsp + 0x58], rbp
movabs rdi, 0xcbf29ce484222325
movabs rbp, 0x100000001b3
nop dword [rax + rax]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
mov edx, r9d
mov rcx, qword [rcx]
xor rdx, rdi
imul rdx, rbp
and r11, rdx
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rbx
jne 0x14004bb02
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14004bb73
mov rdx, qword [r11 + 8]
cmp r9b, byte [rdx + 0x10]
jne 0x14004bb3b
mov r10, qword [rdx]
cmp r10, rax
je 0x14004bb35
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14004bb73
cmp r8, rdx
je 0x14004bb4f
mov rdx, qword [rdx + 8]
cmp r9b, byte [rdx + 0x10]
je 0x14004bb95
cmp r8, rdx
jne 0x14004bb40
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14004bad0
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14004bb73
Function at 0x140050100
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x1400e9010]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x120
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x70], 0
lea rbp, vtable.fmt::v9::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0x60], rbp
lea rax, [rsp + 0x80]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], 0xfa
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rdi + 0x98]
mov rbx, qword [rsp + 0x70]
add rsi, rbx
cmp rsi, qword [rdi + 0x88]
jbe 0x1400501c2
lea rcx, [rdi + 0xa0]
call fcn.14003ea50
lea rcx, [rdi + 0xa0]
call fcn.14003eb40
test rax, rax
je 0x1400501bd
mov rcx, rdi
call fcn.140052cc0
mov rbx, qword [rsp + 0x70]
mov rsi, rbx
jmp 0x1400501c2
mov rbx, qword [rsp + 0x70]
mov r9, qword [rdi + 0xa8]
mov r8, rbx
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbx
jne 0x140050254
mov qword [rdi + 0x98], rsi
mov qword [rsp + 0x60], rbp
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x140050231
mov rdx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005022c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005022c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a63fc
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400a6140
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
nop
mov ebx, dword [rax]
lea rdx, [rdi + 0xb0]
lea rcx, [rsp + 0x20]
call fcn.14003ce60
nop
mov r8, rax
lea rdx, str.Failed_writing_to_file
lea rcx, [rsp + 0x40]
call fcn.1400057e0
nop
mov edx, ebx
mov rcx, rax
call fcn.14003cd00
int3
Function at 0x140052cc0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1400e9010]
xor rax, rsp
mov qword [rbp + 8], rax
mov r15, rcx
add rcx, 0xa0
call fcn.14003eab0
mov rbx, qword [r15 + 0x90]
test rbx, rbx
je 0x140052df1
lea rdi, [rbx - 1]
mov r8, rdi
lea rdx, [r15 + 0x68]
lea rcx, [rbp - 0x18]
call fcn.140056130
nop
lea rcx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140052ddd
mov r8, rbx
lea rdx, [r15 + 0x68]
lea rcx, [rbp - 0x38]
call fcn.140056130
nop
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rcx, qword [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
test eax, eax
je 0x140052dd3
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rcx, qword [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
test eax, eax
jne 0x140052e53
lea rcx, [rbp - 0x38]
call fcn.140005140
nop
lea rcx, [rbp - 0x18]
call fcn.140005140
mov rbx, rdi
test rdi, rdi
jmp 0x140052d07
cmp qword [r15 + 0xc0], 0
je 0x140052e3a
lea rdx, [r15 + 0xb0]
mov r8b, 1
lea rcx, [r15 + 0xa0]
call fcn.14003e750
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1400a6140
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea rdx, str.Failed_re_opening_file___was_not_opened_before
lea rcx, [rbp - 0x18]
call fcn.140005020
mov rcx, rax
call fcn.14003cd90
nop
lea rcx, [r15 + 0xa0]
call fcn.14003ea10
mov qword [r15 + 0x98], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [rax]
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x28]
call fcn.14003ce60
mov rbx, rax
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x48]
call fcn.14003ce60
nop
mov r8, rax
lea rdx, str.rotating_file_sink:_failed_renaming
lea rcx, [rsp + 0x68]
call fcn.1400057e0
nop
lea r8, str._to
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14001a8b0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14001b160
nop
mov edx, edi
mov rcx, rax
call fcn.14003cd00
int3