joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d7b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x61c0], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x14001d833
xor edx, edx
add rcx, 0x61c8
call fcn.14002a5c0
mov r8, rsi
lea rcx, [rbx + 0x61c8]
mov rdx, rbp
call fcn.1400054d0
mov eax, dword [rbx + 0x61c8]
xor edx, edx
mov r9, qword [rbx + 0x61c0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x61d0]
cmove ecx, edx
test rax, rax
movsxd r8, ecx
mov edx, 1
lea rcx, [0x1400677a8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x14001d83f
add rcx, 0x61c8
call fcn.1400054d0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001db80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x1400677b0]
cmp byte [rbx + 0x6100], 0
jne 0x14001dc8d
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001dc86
lea rdx, [0x1400578d0]
call fcn.140004d20
mov rdi, rax
test rax, rax
je 0x14001dc86
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14001dc7d
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001dc7d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x14001dc7d
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001dc7d
cmp rsi, 0xffffffffffffffff
je 0x14001dc7d
mov rcx, rsi
call fcn.140008cb0
mov rbp, rax
test rax, rax
je 0x14001dc7d
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x14001dc5d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rbp
call fcn.140008d60
jmp 0x14001dc86
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14001dc73
mov rdx, rsi
mov rcx, rbp
call fcn.14001dde0
mov rcx, rbp
call fcn.140008d60
jmp 0x14001dc86
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov byte [rbx + 0x6100], 1
movss xmm0, dword [rbx + 0x6104]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001dd1c
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x6104], xmm0
jb 0x14001dd1c
mov rdi, qword [rbx + 0x20]
xor ebp, ebp
test rdi, rdi
je 0x14001dd0f
mov rax, qword [0x1400677b0]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x6104], ebp
call fcn.14001e020
lea rdx, [0x1400578d4]
mov rcx, rdi
mov rsi, rax
call fcn.140004d20
mov rdi, rax
test rax, rax
je 0x14001dd16
mov r8, qword [rsp + 0x30]
lea edx, [rbp + 1]
mov r9, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14001dd16
mov byte [rbx + 0xd6], 1
mov dword [rbx + 0x6104], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14001dd40
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400677b0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001dda3
mov qword [rsp], rbx
lea rbx, [0x1400586f0]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001dd83
cmp byte [r8], r9b
jne 0x14001dd83
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14001dd70
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x6118]
not eax
mov r8, qword [r10 + 0x6120]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14001ddcf
cmp dword [r8 + 8], eax
je 0x14001ddd6
add r8, 0x48
cmp r8, rcx
jne 0x14001ddc0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x140021a00
Capabilities:
Hash data with crc32

Disassembly:
test r8d, r8d
jle 0x140021c04
mov r11, rsp
push rbp
push rsi
sub rsp, 0x58
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [r11 - 0x18], rdi
mov rbp, rcx
mov qword [r11 - 0x20], r14
lea rdi, [rdx + 0x18]
mov qword [r11 - 0x28], r15
mov r14d, 0xffffffff
lea r15, [0x1400586f0]
mov qword [r11 + 0x18], rbx
movsxd rsi, r8d
nop dword [rax + rax]
mov edx, dword [rdi - 0x18]
test edx, edx
je 0x140021bcc
mov rcx, rbp
call fcn.140021040
mov edx, dword [rdi - 0x14]
mov rbx, rax
test edx, edx
je 0x140021a7e
lea rcx, [rbp + 0x60c0]
call fcn.1400051f0
mov rcx, rax
jmp 0x140021a80
xor ecx, ecx
mov qword [rbx + 0x18], rcx
movsx eax, word [rdi]
movd xmm1, eax
movsx eax, word [rdi + 2]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x48], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x4c], xmm0
movsx eax, word [rdi + 4]
movd xmm1, eax
movsx eax, word [rdi + 6]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x50], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x54], xmm0
movsx eax, word [rdi + 8]
movd xmm1, eax
movsx eax, word [rdi + 0xa]
and dword [rbx + 0xc8], 0xfffffe49
or dword [rbx + 0xc8], 0x49
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x58], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x5c], xmm0
test rcx, rcx
je 0x140021b11
cmp qword [rcx + 0x20], 0
jne 0x140021b06
mov qword [rcx + 0x20], rbx
jmp 0x140021b11
cmp qword [rcx + 0x28], 0
jne 0x140021b11
mov qword [rcx + 0x28], rbx
mov eax, dword [rdi - 0xc]
mov dword [rbx + 0xbc], eax
movsx eax, byte [rdi - 8]
mov dword [rbx + 0x60], eax
mov ecx, dword [rdi - 4]
mov eax, dword [rbx + 0xc]
and ecx, 0x3fc20
or eax, dword [rbx + 4]
or eax, ecx
mov dword [rbx + 8], ecx
mov dword [rbx + 0x10], eax
mov rcx, rbx
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x140021b50
mov rcx, rax
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x140021b44
mov r9d, dword [rcx]
lea r8, str.DockNode__02X
lea rcx, [rsp + 0x20]
mov edx, 0x14
call fcn.140004a50
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov edx, r14d
test r9b, r9b
je 0x140021bb0
nop dword [rax]
cmp r9b, 0x23
jne 0x140021b93
cmp byte [r8], r9b
jne 0x140021b93
cmp byte [r8 + 1], r9b
cmove edx, r14d
movzx ecx, dl
movzx eax, r9b
movzx r9d, byte [r8]
xor rcx, rax
shr edx, 8
inc r8
xor edx, dword [r15 + rcx*4]
test r9b, r9b
jne 0x140021b80
mov rcx, qword [0x1400677b0]
not edx
add rcx, 0x4128
call fcn.1400051f0
mov qword [rbx + 0x88], rax
add rdi, 0x24
sub rsi, 1
jne 0x140021a50
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400537f0
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x140028f50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
xor r14d, r14d
nop word [rax + rax]
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
mov rax, qword [rbx + 0x18]
mov word [rsp + 0x32], r14w
test rax, rax
je 0x140028f9d
mov eax, dword [rax]
mov dword [rsp + 0x24], eax
jmp 0x140028fa2
mov dword [rsp + 0x24], r14d
mov eax, dword [rbx + 0x10]
shr eax, 0xa
test al, 1
je 0x140028fcd
mov rax, qword [rbx + 0x88]
test rax, rax
je 0x140028fcd
mov rcx, qword [rax + 0x3b0]
test rcx, rcx
je 0x140028fcd
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x28], eax
jmp 0x140028fd2
mov dword [rsp + 0x28], r14d
mov eax, dword [rbx + 0xbc]
mov dword [rsp + 0x2c], eax
cmp qword [rbx + 0x20], r14
je 0x140028fec
movzx eax, byte [rbx + 0x60]
mov byte [rsp + 0x30], al
jmp 0x140028ff1
mov byte [rsp + 0x30], 0xff
cvttss2si ecx, dword [rbx + 0x48]
mov eax, dword [rbx + 8]
lea rdx, [rsp + 0x20]
and eax, 0x3fc20
mov byte [rsp + 0x31], dil
mov dword [rsp + 0x34], eax
cvttss2si eax, dword [rbx + 0x4c]
mov word [rsp + 0x38], cx
cvttss2si ecx, dword [rbx + 0x50]
mov word [rsp + 0x3a], ax
cvttss2si eax, dword [rbx + 0x54]
mov word [rsp + 0x3c], cx
cvttss2si ecx, dword [rbx + 0x58]
mov word [rsp + 0x3e], ax
cvttss2si eax, dword [rbx + 0x5c]
mov word [rsp + 0x40], cx
lea rcx, [rsi + 0x20]
mov word [rsp + 0x42], ax
call fcn.14002aad0
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x140029061
lea r8d, [rdi + 1]
mov rcx, rsi
call fcn.140028f50
mov rbx, qword [rbx + 0x28]
test rbx, rbx
je 0x140029071
inc edi
jmp 0x140028f80
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x14003cd90
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1400677b0]
mov edx, 0x210
call fcn.140014160
cmp byte [rax], 0
je 0x14003ce06
xor edx, edx
mov ecx, 0x210
call fcn.1400167e0
test al, al
je 0x14003ce06
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x14003ce06
mov rbx, qword [0x1400677b0]
cmp byte [rbx + 0x3911], 0
je 0x14003cdf2
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.1400046a0
mov dword [rbx + 0x378], 0x210
mov dword [rbx + 0x938], 0xa0
mov rcx, qword [0x1400677b0]
mov edx, 0x214
call fcn.140014160
cmp byte [rax], 0
je 0x14003ce76
xor edx, edx
mov ecx, 0x214
call fcn.1400167e0
test al, al
je 0x14003ce76
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x14003ce76
mov rbx, qword [0x1400677b0]
cmp byte [rbx + 0x3911], 0
je 0x14003ce62
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.1400046a0
mov dword [rbx + 0x37c], 0x214
mov dword [rbx + 0x948], 0xa1
mov rcx, qword [0x1400677b0]
mov edx, 0x212
call fcn.140014160
cmp byte [rax], 0
je 0x14003cee6
xor edx, edx
mov ecx, 0x212
call fcn.1400167e0
test al, al
je 0x14003cee6
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x14003cee6
mov rbx, qword [0x1400677b0]
cmp byte [rbx + 0x3911], 0
je 0x14003ced2
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.1400046a0
mov dword [rbx + 0x264], 0x212
mov dword [rbx + 0x940], 0x5b
mov rcx, qword [0x1400677b0]
mov edx, 0x216
call fcn.140014160
cmp byte [rax], 0
je 0x14003cf56
xor edx, edx
mov ecx, 0x216
call fcn.1400167e0
test al, al
je 0x14003cf56
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x14003cf56
mov rbx, qword [0x1400677b0]
cmp byte [rbx + 0x3911], 0
je 0x14003cf42
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.1400046a0
mov dword [rbx + 0x268], 0x216
mov dword [rbx + 0x950], 0x5c
add rsp, 0x20
pop rbx
ret
Function at 0x14003fcf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400677b0]
mov rcx, qword [rax + 0x4f78]
mov r9, qword [rax + 0x4148]
movups xmm0, xmmword [r9 + 0x278]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x2e0]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x278], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2e0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x232]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x2e0]
add rsp, 0x38
jmp fcn.140036120

Function at 0x14003fdd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400677b0]
mov rcx, qword [rax + 0x4f78]
mov r10, qword [rax + 0x4148]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2e0]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x278], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2e0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2e0]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp fcn.140036120
Function at 0x140003994
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400039de
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400039de
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400039de
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400039de
cmp dword [rcx + 0x84], 0xe
jbe 0x1400039de
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400039e0
xor al, al
add rsp, 0x28
ret
Function at 0x140034540
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x140
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1400ae030]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
lea rax, [rbx + 0x2c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x140034650]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x14003462f
mov qword [rsp + 0x38], rbx
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, str.Thread::Start
lea rcx, [rsp + 0x48]
call fcn.140021f90
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xd0]
call fcn.140023150
nop
lea rdx, str.CreateThreadfailed__error
mov rcx, rax
call fcn.14002a340
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.1400337e0
mov rcx, rax
call fcn.140034cb0
mov rcx, rax
call fcn.140032670
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.140034af0
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140023250
lea rdx, [0x1400aa220]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, rbx
call fcn.1400348c0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140052730
add rsp, 0x140
pop rbx
ret
Function at 0x1400460d0
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
cmp byte [0x1400afbed], 0
je 0x1400460e8
mov eax, dword [0x1400afc20]
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.DLL_GetUserDefaultLangID]
movzx r8d, ax
mov edx, r8d
and edx, 0x3ff
sub edx, 7
je 0x14004614e
sub edx, 3
je 0x14004612a
sub edx, 0xb
je 0x140046120
cmp edx, 1
je 0x140046116
xor eax, eax
add rsp, 0x28
ret
mov eax, 2
add rsp, 0x28
ret
mov eax, 5
add rsp, 0x28
ret
mov eax, 0xfc00
mov ecx, 0x800
and r8w, ax
mov edx, 1
cmp r8w, cx
mov eax, 3
cmovne eax, edx
add rsp, 0x28
ret
mov eax, 4
add rsp, 0x28
ret

Function at 0x14004a190
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x390], rbx
mov rax, qword [0x1400ae030]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov r10, rdx
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x28], ebx
lea rdi, [rbp + 0x40]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, r10
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x14004a234
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.OLE32.DLL_CoTaskMemFree]
lea rcx, [rbp - 0x20]
call fcn.140023070
nop
mov rcx, rax
call fcn.14004a6d0
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140023250
lea rdx, [0x1400aa220]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
mov rdx, qword [rsp + 0x20]
cmp word [rdx], bx
jne 0x14004a256
mov r8, rbx
jmp 0x14004a26a
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], bx
jne 0x14004a260
lea rcx, [rsp + 0x60]
call fcn.140022080
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rcx, [rbp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.OLE32.DLL_CoTaskMemFree]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
cmp word [rbp + 0x40], 0
je 0x14004a2ca
lea rax, [rbp + 0x40]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14004a2c0
mov r8, rbx
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140022080
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140023390
nop
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x14004a301
inc r8
mov rdx, qword [rsp + 0x60]
call fcn.140022690
mov rax, rsi
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140052730
mov rbx, qword [rsp + 0x390]
add rsp, 0x360
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004d560
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x150
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1400ae030]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
call fcn.14004d460
cmp qword [rbx + 0x20], 8
jb 0x14004d599
mov rcx, qword [rbx + 8]
jmp 0x14004d59d
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x14004d63c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x38]
call fcn.1400277e0
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140023390
mov rbx, rax
lea rcx, [rsp + 0xe0]
call fcn.140023070
nop
lea rdx, str.Error_when_deleting_file:
mov rcx, rax
call fcn.14002a340
mov rcx, rax
mov rdx, rbx
call fcn.14003ddb0
mov rcx, rax
lea rdx, str.Last_error:
call fcn.14002a340
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1400337e0
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140023250
lea rdx, [0x1400aa220]
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140052730
add rsp, 0x150
pop rbx
ret

Function at 0x14004d660
Capabilities:
Move file

Disassembly:
push rdi
sub rsp, 0x190
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x1b0], rbx
mov rax, qword [0x1400ae030]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rdx
mov rbx, rcx
call fcn.14004d460
cmp qword [rdi + 0x18], 8
jb 0x14004d6a3
mov rdx, qword [rdi]
jmp 0x14004d6a6
mov rdx, rdi
cmp qword [rbx + 0x20], 8
jb 0x14004d6b3
mov rcx, qword [rbx + 8]
jmp 0x14004d6b7
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x14004d782
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsp + 0x20], eax
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.1400277e0
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140023390
mov rdi, rax
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x58]
call fcn.1400277e0
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.140023390
mov rbx, rax
lea rcx, [rsp + 0x120]
call fcn.140023070
nop
mov rcx, rax
call fcn.14004e200
mov rcx, rax
mov rdx, rbx
call fcn.14003ddb0
mov rcx, rax
call fcn.14004e3c0
mov rcx, rax
mov rdx, rdi
call fcn.14003ddb0
mov rcx, rax
lea rdx, str.Last_error:
call fcn.14002a340
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1400337e0
mov rdx, rax
lea rcx, [rsp + 0xc0]
call fcn.140023250
lea rdx, [0x1400aa220]
lea rcx, [rsp + 0xc0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140052730
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x190
pop rdi
ret
Function at 0x14004d960
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x180
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1400ae030]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], 0
test rdx, rdx
je 0x14004da89
mov edx, 0xc0000004
mov r9d, 2
call fcn.14004d290
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, esi
mov rdx, rdi
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x14004dac4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x50]
call fcn.1400277e0
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140023390
mov rbx, rax
lea rcx, [rsp + 0x110]
call fcn.140023070
nop
mov rcx, rax
call fcn.14004e580
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.14004de80
mov rcx, rax
lea rdx, str._bytes_to_file
call fcn.14002a340
mov rcx, rax
mov rdx, rbx
call fcn.14003ddb0
mov rcx, rax
lea rdx, str.Last_error:
call fcn.14002a340
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.1400337e0
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.140023250
lea rdx, [0x1400aa220]
lea rcx, [rsp + 0xb0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Invalid_data_passed
lea rcx, [rsp + 0x50]
call fcn.140021f90
nop
mov dword [rsp + 0x30], 1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.1400356b0
lea rdx, [0x1400aa4b0]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140052730
add rsp, 0x180
pop rdi
pop rsi
pop rbx
ret
Function at 0x14004dae0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x170
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1a8], rbx
mov rax, qword [0x1400ae030]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x30], 0
test rdx, rdx
je 0x14004dc58
add rcx, 8
call fcn.14004d150
cmp eax, edi
jb 0x14004dc1d
mov rax, qword [rbx + 0x28]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14004db4e
mov rcx, rbx
call fcn.14004d460
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
call fcn.14004d290
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, edi
mov rdx, rsi
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x14004dc93
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x48]
call fcn.1400277e0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140023390
mov rbx, rax
lea rcx, [rsp + 0x100]
call fcn.140023070
nop
lea rdx, str.Error_when_reading_file
mov rcx, rax
call fcn.14002a340
mov rcx, rax
mov rdx, rbx
call fcn.14003ddb0
mov rcx, rax
lea rdx, str.Last_error:
call fcn.14002a340
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.1400337e0
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.140023250
lea rdx, [0x1400aa220]
lea rcx, [rsp + 0xa0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Invalid_size_passed
lea rcx, [rsp + 0x48]
call fcn.140021f90
nop
mov dword [rsp + 0x30], 2
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.1400356b0
lea rdx, [0x1400aa4b0]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Invalid_data_passed
lea rcx, [rsp + 0x48]
call fcn.140021f90
nop
mov dword [rsp + 0x30], 1
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.1400356b0
lea rdx, [0x1400aa4b0]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140052730
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x170
pop rdi
pop rsi
pop rbp
ret
Function at 0x140051980
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400ae030]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r8, [0x140098954]
lea rcx, [rsp + 0x20]
call fcn.140042130
cmp qword [rsp + 0x38], 8
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x1400519d3
mov rdx, qword [rsp + 0x20]
inc r8
call fcn.140022690
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140052730
add rsp, 0x58
ret