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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x140077160]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x140056d56
cmp word [rdx], r9w
jne 0x140056d56
or byte [rax + rbp*8 + 0x38], 4
jmp 0x140056d5b
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x140056eda
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x140056ea5
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x140056da3
cmp rcx, r8
jae 0x140056dc3
cmp word [rcx], r9w
jne 0x140056da3
add rax, 4
mov edx, r9d
jmp 0x140056da6
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x140056d78
jmp 0x140056eda
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140056e9e
cmp dword [rsp + 0x80], edi
je 0x140056e9e
lea r9, [0x140077160]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x140056e78
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x140056e2b
mov word [rbx], bp
jmp 0x140056ed7
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x140056e46
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x140056ed7
cmp word [rsp + 0x70], bp
jne 0x140056e84
cmp rbx, rsi
je 0x140056e23
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140055068
cmp word [rsp + 0x70], bp
je 0x140056eda
mov word [rbx], 0xd
jmp 0x140056ed7
mov rcx, r15
lea r9, [0x140077160]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140056ed4
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140056eda
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005d944
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140055068
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140055068
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14005da91
cmp rax, 0xffffffffffffffff
je 0x14005da91
xor edi, edi
test rbp, rbp
jle 0x14005da3f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14004dc60
mov rbx, rax
test rax, rax
jne 0x14005d9cc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14005da35
mov edx, 0x8000
mov ecx, r14d
call fcn.140046904
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140054350
cmp eax, 0xffffffff
je 0x14005da15
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14005d9dc
mov edx, r15d
mov ecx, r14d
call fcn.140046904
jmp 0x14005da35
cmp byte [rsi + 0x38], dil
je 0x14005da2c
cmp dword [rsi + 0x34], 5
jne 0x14005da2c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14005da35
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004c750
jmp 0x14005daa3
jns 0x14005daa3
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140055068
cmp rax, 0xffffffffffffffff
jne 0x14005da5d
cmp byte [rsi + 0x30], dil
je 0x14005daa3
jmp 0x14005da99
mov ecx, r14d
call fcn.1400553cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14005daa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14005daa3
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14005da9e
mov edi, dword [rsi + 0x2c]
jmp 0x14005daa3
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140055068
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14000db00
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
vmovdqu xmm4, xmmword [r9 - 0x80]
vmovdqu xmm2, xmmword [r11 + 0x20]
lea r13, [r10 - 1]
vmovups xmm15, xmmword [r9 - 0x70]
lea r12, [r9 - 0x60]
vpxor xmm9, xmm1, xmm4
add ebx, 0x6000000
jb 0x14000dc20
vpaddb xmm10, xmm1, xmm2
vpaddb xmm11, xmm10, xmm2
vpxor xmm10, xmm10, xmm4
vpaddb xmm12, xmm11, xmm2
vpxor xmm11, xmm11, xmm4
vpaddb xmm13, xmm12, xmm2
vpxor xmm12, xmm12, xmm4
vpaddb xmm14, xmm13, xmm2
vpxor xmm13, xmm13, xmm4
vpaddb xmm1, xmm14, xmm2
vpxor xmm14, xmm14, xmm4
jmp 0x14000db60
vaesenc xmm9, xmm9, xmm15
vaesenc xmm10, xmm10, xmm15
vaesenc xmm11, xmm11, xmm15
vaesenc xmm12, xmm12, xmm15
vaesenc xmm13, xmm13, xmm15
vaesenc xmm14, xmm14, xmm15
vmovups xmm15, xmmword [r12]
lea r12, [r12 + 0x10]
dec r13d
jne 0x14000db60
vmovdqu xmm3, xmmword [r12]
vaesenc xmm9, xmm9, xmm15
vpxor xmm4, xmm3, xmmword [rcx]
vaesenc xmm10, xmm10, xmm15
vpxor xmm5, xmm3, xmmword [rcx + 0x10]
vaesenc xmm11, xmm11, xmm15
vpxor xmm6, xmm3, xmmword [rcx + 0x20]
vaesenc xmm12, xmm12, xmm15
vpxor xmm8, xmm3, xmmword [rcx + 0x30]
vaesenc xmm13, xmm13, xmm15
vpxor xmm2, xmm3, xmmword [rcx + 0x40]
vaesenc xmm14, xmm14, xmm15
vpxor xmm3, xmm3, xmmword [rcx + 0x50]
lea rcx, [rcx + 0x60]
vaesenclast xmm9, xmm9, xmm4
vaesenclast xmm10, xmm10, xmm5
vaesenclast xmm11, xmm11, xmm6
vaesenclast xmm12, xmm12, xmm8
vaesenclast xmm13, xmm13, xmm2
vaesenclast xmm14, xmm14, xmm3
vmovups xmmword [rdx], xmm9
vmovups xmmword [rdx + 0x10], xmm10
vmovups xmmword [rdx + 0x20], xmm11
vmovups xmmword [rdx + 0x30], xmm12
vmovups xmmword [rdx + 0x40], xmm13
vmovups xmmword [rdx + 0x50], xmm14
lea rdx, [rdx + 0x60]
ret
vpshufb xmm6, xmm1, xmm0
vmovdqu xmm5, xmmword [r11 + 0x30]
vpaddd xmm10, xmm6, xmmword [r11 + 0x40]
vpaddd xmm11, xmm6, xmm5
vpaddd xmm12, xmm10, xmm5
vpshufb xmm10, xmm10, xmm0
vpaddd xmm13, xmm11, xmm5
vpshufb xmm11, xmm11, xmm0
vpxor xmm10, xmm10, xmm4
vpaddd xmm14, xmm12, xmm5
vpshufb xmm12, xmm12, xmm0
vpxor xmm11, xmm11, xmm4
vpaddd xmm1, xmm13, xmm5
vpshufb xmm13, xmm13, xmm0
vpxor xmm12, xmm12, xmm4
vpshufb xmm14, xmm14, xmm0
vpxor xmm13, xmm13, xmm4
vpshufb xmm1, xmm1, xmm0
vpxor xmm14, xmm14, xmm4
jmp 0x14000db60
Function at 0x140022dd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x140022f2a
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x1400da040]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x60], 0
je 0x140022f6f
mov edi, dword [rsi + 0x5c]
test bl, bl
je 0x14002309b
mov dword [rsi + 0x5c], 0xffffffff
mov byte [rsi + 0x60], 0
jmp 0x14002309b
cmp byte [rsi + 0x61], 0
je 0x140022f9a
mov rcx, qword [rsi + 0x40]
call fcn.140097948
cmp eax, 0xffffffff
je 0x140023080
test bl, bl
je 0x140023087
movzx edi, al
mov dword [rsi + 0x5c], edi
jmp 0x14002309b
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], rdi
mov eax, dword [rsi + 0x58]
cmp eax, 2
mov r15d, 1
cmovge r15d, eax
xor r14d, r14d
mov rcx, qword [rsi + 0x40]
call fcn.140097948
cmp eax, 0xffffffff
je 0x140023080
mov byte [rsp + r14 + 0x58], al
inc r14
cmp r15, r14
jne 0x140022fbc
lea rax, [rsp + 0x58]
mov byte [rax - 1], 0xaa
lea rax, [rsp + 0x48]
mov qword [rax], rdi
lea rbp, [rsp + 0x40]
mov qword [rbp], rdi
mov edi, 0xffffffff
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r14d, dword [rdx]
movzx r12d, word [rdx + 4]
movzx r13d, word [rdx + 6]
lea r9, [rsp + r15 + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], rbp
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x57]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x58]
call qword [0x1400cf708]
cmp eax, 1
jne 0x1400230bb
mov rax, qword [rsi + 0x50]
mov dword [rax], r14d
mov word [rax + 4], r12w
mov word [rax + 6], r13w
cmp r15, 8
je 0x14002309b
mov rcx, qword [rsi + 0x40]
call fcn.140097948
cmp eax, 0xffffffff
je 0x14002309b
mov byte [rsp + r15 + 0x58], al
inc r15
jmp 0x140022ffa
mov edi, 0xffffffff
jmp 0x14002309b
mov rdx, qword [rsi + 0x40]
movzx edi, al
mov ecx, edi
call fcn.140098e64
cmp eax, 0xffffffff
cmove edi, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140081090
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp eax, 2
je 0x14002309b
cmp eax, 3
jne 0x1400230cd
mov al, byte [rsp + 0x58]
mov byte [rsp + 0x57], al
test bl, bl
je 0x1400230db
movzx edi, byte [rsp + 0x57]
jmp 0x140022f92
mov ebx, r15d
test rbx, rbx
jle 0x1400230fb
mov rdx, qword [rsi + 0x40]
movzx ecx, byte [rsp + rbx + 0x57]
dec rbx
call fcn.140098e64
cmp eax, 0xffffffff
jne 0x1400230de
jmp 0x14002309b
movzx edi, byte [rsp + 0x57]
jmp 0x14002309b

Function at 0x140023a60
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140023a97
movabs rcx, 0xf000000000000000
shl rax, 4
movsx r9, byte [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
inc rdx
cmp rdx, r8
jne 0x140023a71
ret

Function at 0x140023b10
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140023b48
movabs rcx, 0xf000000000000000
shl rax, 4
movzx r9d, word [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
add rdx, 2
cmp rdx, r8
jne 0x140023b21
ret
Function at 0x14002ff86
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rbx, r9
mov rsi, r8
mov rdi, rdx
mov r14, rcx
call fcn.14003b7ee
mov ebp, eax
test rdi, rdi
je 0x14002ffbb
mov rax, qword [rdi + 0x18]
cmp rax, qword [rdi + 0x20]
je 0x14002ffd0
movzx eax, word [rax]
jmp 0x14002ffe0
xor r15d, r15d
mov eax, 6
test bpl, bpl
jne 0x14003006a
xor edi, edi
jmp 0x14002fff8
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1400cf708]
xor r15d, r15d
cmp ax, 0xffff
sete cl
cmove rdi, r15
mov eax, 6
cmp bpl, cl
je 0x14003006a
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x14003000a
movzx ebp, word [rax]
jmp 0x140030019
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x1400cf708]
mov ebp, eax
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
mov dx, 4
mov r8d, ebp
call qword [0x1400cf708]
test al, al
je 0x140030062
mov rax, qword [rbx]
mov rax, qword [rax + 0x68]
mov rcx, rbx
mov edx, ebp
xor r8d, r8d
call qword [0x1400cf708]
mov ebp, eax
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x14003007e
add rax, 2
mov qword [rcx + 0x18], rax
jmp 0x14003008b
xor r15d, r15d
mov eax, 4
or dword [rsi], eax
mov eax, r15d
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [0x1400cf708]
mov r12d, dword [rsp + 0x80]
movsx r15d, bpl
mov rcx, r14
call fcn.14003b7ee
mov ebp, eax
test rdi, rdi
je 0x1400300b5
mov rax, qword [rdi + 0x18]
cmp rax, qword [rdi + 0x20]
je 0x1400300b9
movzx eax, word [rax]
jmp 0x1400300c9
mov al, 1
jmp 0x1400300d2
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1400cf708]
cmp ax, 0xffff
sete al
jne 0x1400300d4
xor edi, edi
add r15d, 0xffffffd0
cmp bpl, al
je 0x14003017a
cmp r12d, 2
jl 0x14003017a
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x1400300fd
movzx ebp, word [rax]
jmp 0x14003010c
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x1400cf708]
mov ebp, eax
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
mov dx, 4
mov r8d, ebp
call qword [0x1400cf708]
test al, al
je 0x14003006c
mov rax, qword [rbx]
mov rax, qword [rax + 0x68]
mov rcx, rbx
mov edx, ebp
xor r8d, r8d
call qword [0x1400cf708]
mov ebp, eax
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x140030159
add rax, 2
mov qword [rcx + 0x18], rax
jmp 0x140030166
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [0x1400cf708]
lea eax, [r15 + r15*4]
movsx ecx, bpl
lea r15d, [rcx + rax*2]
dec r12d
jmp 0x140030097
mov rcx, r14
call fcn.14003b7ee
mov ebx, eax
test rdi, rdi
je 0x140030198
mov rax, qword [rdi + 0x18]
cmp rax, qword [rdi + 0x20]
je 0x1400301aa
movzx eax, word [rax]
jmp 0x1400301ba
mov eax, 2
test bl, bl
jne 0x14003006a
jmp 0x14003006c
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1400cf708]
cmp ax, 0xffff
sete al
xor bl, al
mov eax, 2
je 0x14003006a
jmp 0x14003006c
Function at 0x14003e3e0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14003e43b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14003e421
call fcn.14004c960
mov rcx, qword [rsi]
call fcn.14004c970
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14003e433
mov qword [rsi], rdi
call fcn.14004c960
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14003e455
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
int3

Function at 0x14003e4b0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1400da040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x14003e4df
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14003e4e2
mov rcx, qword [rsi]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14003e506
mov dil, 1
test bl, bl
je 0x14003e56d
cmp byte [rsi + 8], 0
je 0x14003e54c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14003e54f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x14003e51d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14003e520
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14003e533
xor edi, edi
jmp 0x14003e56d
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x14003e55c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14003e55f
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14003e56d
mov rcx, qword [rsi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140081090
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003f0f0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r12, qword [rcx + 0x10]
cmp r12, qword [rcx + 0x18]
je 0x14003f117
mov r14, r12
jmp 0x14003f22f
mov r15, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r15
jbe 0x14003f179
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r13, rax
neg r13
shl rax, 3
mov r14, rbx
sub r14, rax
mov r15, r12
sub r15, rbx
je 0x14003f165
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.1400afc90
mov r12, qword [rsi + 8]
add r14, r15
mov qword [rsi + 0x10], r14
lea rax, [r12 + r13*8]
mov qword [rsi + 8], rax
jmp 0x14003f22f
mov rax, r12
sub rax, r15
sar rax, 2
cmp r12, r15
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x14003f262
lea rcx, [r13*8]
call fcn.14007fd2c
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, r12
mov r14, rcx
sub rdx, rbx
je 0x14003f1e8
lea r14, [rdx + rcx]
xor r8d, r8d
nop word [rax + rax]
mov r9, rcx
add r9, r8
je 0x14003f24f
mov r10, qword [rbx + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x14003f1d0
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rdx
nop dword [rax + rax]
cmp r12, rbx
je 0x14003f21e
add r12, 0xfffffffffffffff8
jne 0x14003f200
lea rcx, [0x1400be8df]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.14001b450
test r15, r15
je 0x14003f22f
mov rcx, r15
call fcn.14007fd68
mov r14, qword [rsi + 0x10]
test r14, r14
je 0x14003f24f
mov rax, qword [rdi]
mov qword [r14], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1400be8df]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.14001b450
call fcn.14001a75d
int3
Function at 0x140041810
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.1400418e0
mov eax, dword [rsi]
mov dword [0x1400dc020], eax
test al, 1
jne 0x140041831
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x1400eb168]
test rcx, rcx
je 0x140041863
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400eb168], 0
mov rcx, qword [0x1400eb140]
test rcx, rcx
jne 0x140041891
and byte [0x1400dc020], 0xfe
jmp 0x14004186f
mov rcx, qword [0x1400eb140]
test rcx, rcx
jne 0x140041891
mov ecx, 0x18
call fcn.14007fd2c
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1400eb140], rax
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x1400418c6
call fcn.14003cae0
cmp dword [rsi + 0x14], 0
jne 0x1400418bb
mov rcx, qword [0x1400eb140]
cmp byte [rcx + 0x17], 0
jns 0x1400418b5
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.140041a30
lea rcx, [0x1400be8df]
lea rdx, str....._third_partylibc_srcinclude_string:2706:_assertion___s___nullptr_failed:_string::assign_received_nullptr_n
call fcn.14001b450
int3
Function at 0x140041a30
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1400da040]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1400eb168], 0
jne 0x140041ca8
mov rdi, qword [0x1400eb140]
test rdi, rdi
je 0x140041a7b
test byte [0x1400dc020], 1
jne 0x140041b70
jmp 0x140041ca8
mov ecx, 0x18
call fcn.14007fd2c
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400b0330
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1400bca40]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.14001dd38
movzx ecx, byte [rdi + 0x17]
test cl, cl
mov rax, qword [rdi]
mov rdx, qword [rdi + 8]
mov r9, rcx
cmovs r9, rdx
mov r10, rdi
cmovs r10, rax
test r9, r9
je 0x140041b4d
add r9, r9
nop word cs:[rax + rax]
test r9, r9
je 0x140041b4d
lea r8, [r9 - 2]
cmp word [r10 + r9 - 2], 0x5c
mov r9, r8
jne 0x140041b00
cmp r8, 0xfffffffffffffffe
je 0x140041b4d
sar r8, 1
lea r9, [r8 + 1]
test cl, cl
js 0x140041b38
cmp r8, rcx
jae 0x140041cf5
mov byte [rdi + 0x17], r9b
mov rax, rdi
jmp 0x140041b45
cmp rdx, r8
jbe 0x140041cf5
mov qword [rdi + 8], r9
mov word [rax + r8*2 + 2], 0
lea rdx, str.debug.log
mov rcx, rdi
call fcn.14003d084
mov qword [0x1400eb140], rdi
test byte [0x1400dc020], 1
je 0x140041ca8
cmp byte [rdi + 0x17], 0
jns 0x140041b79
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400eb168], rax
inc rax
cmp rax, 1
ja 0x140041ca8
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400b0330
mov word [rsp + 0x40], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jb 0x140041ca6
mov rcx, qword [0x1400eb140]
lea rdx, [rsp + 0x40]
call fcn.14003cae0
mov rcx, qword [0x1400eb140]
movzx eax, byte [rcx + 0x17]
test al, al
js 0x140041cc5
test rax, rax
je 0x140041ce2
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
je 0x140041c42
lea rdx, [0x1400c08ea]
call fcn.14003d084
mov rcx, qword [0x1400eb140]
lea rdx, str.debug.log
call fcn.14003d084
mov rcx, qword [0x1400eb140]
cmp byte [rcx + 0x17], 0
jns 0x140041c5e
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400eb168], rax
inc rax
cmp rax, 1
ja 0x140041ca8
mov qword [0x1400eb168], 0
xor esi, esi
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140081090
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rcx + 8]
test rax, rax
je 0x140041ce2
mov rdx, qword [rcx]
cmp word [rdx + rax*2 - 2], 0x5c
jne 0x140041c2f
jmp 0x140041c42
lea rcx, [0x1400be8df]
lea rdx, str....._third_partylibc_srcinclude_string:1339:_assertion__empty___failed:_string::back__:_string_is_empty_n
call fcn.14001b450
mov rcx, rdi
call fcn.14001a374
int3
Function at 0x140047a10
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1400da040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1400eb1b0]
test rdi, rdi
jne 0x140047ac4
mov ecx, 0x50
call fcn.14007fd2c
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.14007fd2c
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140047ae6
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x1400eb1b0], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140047af9
mov rcx, rax
call fcn.1400996c8
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140047b10
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140081090
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400be8df]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.14001b450
lea rcx, [0x1400be8df]
lea rdx, str....._third_partylibc_srcinclude_string_view:267:_assertion___s___nullptr_failed:_null_pointer_passed_to_non_null_argument_of_char_traits_..._::length_n
call fcn.14001b450
int3