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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140028b76
call fcn.14001d0e4
mov dword [rax], 0x16
call fcn.14001cf78
jmp 0x140028c95
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140028c95
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140028c95
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140028ba5
lock or dword [rcx + 0x14], 0x10
jmp 0x140028c95
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140028bb9
call fcn.14002a2f4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14002790c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140029924
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140028c83
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140028c4e
mov rcx, rsi
call fcn.14002790c
cmp eax, edi
je 0x140028c39
mov rcx, rsi
call fcn.14002790c
cmp eax, 0xfffffffe
je 0x140028c39
mov rcx, rsi
call fcn.14002790c
movsxd rbx, eax
lea r14, [0x14004b830]
mov rcx, rsi
sar rbx, 6
call fcn.14002790c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140028c40
lea rdx, [0x1400494c0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140028c4e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140028c72
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140028c72
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140028c72
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140028c98
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140028fc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140033e70
sub rsp, rax
mov rax, qword [0x1400490a8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002790c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002900f
mov rax, rbp
jmp 0x140029117
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4b830]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002a0fc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4b830]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140029113
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140029113
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002a0fc
test rax, rax
js 0x140029113
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140029113
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140029105
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140029105
cmp byte [rcx], 0xd
jne 0x1400290eb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400290fa
cmp byte [rcx + 1], 0xa
jne 0x1400290fa
inc rcx
jmp 0x1400290fa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x49510]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400290cd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140029117
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400155c0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140029478
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14004b830]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400294d6
cmp word [rdx], r12w
jne 0x1400294d6
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400294dc
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140029637
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140029612
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140029515
mov rcx, r9
jmp 0x140029538
cmp r9, rdx
jae 0x14002954f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400294f9
jmp 0x140029637
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002960c
cmp dword [rsp + 0x80], edi
je 0x14002960c
mov rdx, r14
lea r11, [0x14004b830]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400295e5
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400295b8
mov word [rbx], r12w
jmp 0x140029633
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400295c1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140029633
cmp word [rsp + 0x70], r12w
jne 0x1400295f2
cmp rbx, rsi
je 0x1400295b2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002a104
cmp word [rsp + 0x70], r12w
je 0x140029637
mov word [rbx], r13w
jmp 0x140029633
lea r11, [0x14004b830]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14002962f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140029637
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14002bcfc
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14002bd2c
xor eax, eax
jmp 0x14002bdef
mov rbp, rbx
cmp word [rax], si
je 0x14002bd51
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002bd38
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002bd34
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14002bc4c
movsxd r14, eax
test eax, eax
jne 0x14002bd8f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002bd25
mov rcx, r14
call fcn.14002a360
mov rdi, rax
test rax, rax
jne 0x14002bda8
xor ecx, ecx
call fcn.140026874
jmp 0x14002bd84
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14002bc4c
test eax, eax
jne 0x14002bdd9
mov rcx, rdi
call fcn.140026874
jmp 0x14002bde3
xor ecx, ecx
call fcn.140026874
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400335c8
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.14002a104
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002a104
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140033718
cmp rax, 0xffffffffffffffff
je 0x140033718
xor edi, edi
test rbp, rbp
jle 0x1400336c3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140026bcc
mov rbx, rax
test rax, rax
jne 0x140033650
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400336b9
mov edx, 0x8000
mov ecx, r14d
call fcn.1400201fc
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.140028834
cmp eax, 0xffffffff
je 0x140033699
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140033660
mov edx, r15d
mov ecx, r14d
call fcn.1400201fc
jmp 0x1400336b9
cmp byte [rsi + 0x38], dil
je 0x1400336b0
cmp dword [rsi + 0x34], 5
jne 0x1400336b0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400336b9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140026874
jmp 0x14003372c
jns 0x14003372c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002a104
cmp rax, 0xffffffffffffffff
jne 0x1400336e4
cmp byte [rsi + 0x30], dil
je 0x14003372c
mov edi, dword [rsi + 0x2c]
jmp 0x14003372c
mov ecx, r14d
call fcn.14002c2f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14003372c
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 0x14003372c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140033725
mov eax, dword [rsi + 0x2c]
jmp 0x14003372a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002a104
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 0x1808d0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1808d01df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1808d0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808d006f
add dl, dl
jne 0x1808d0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808d00f6
xor eax, eax
add dl, dl
jne 0x1808d00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808d01ad
add dl, dl
jne 0x1808d00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808d00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808d00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808d00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1808d00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1808d007e
mov eax, 1
add dl, dl
jne 0x1808d0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808d0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808d00fb
sub eax, ebx
mov ebx, 1
jne 0x1808d014c
mov ecx, 1
add dl, dl
jne 0x1808d012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1808d013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808d0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1808d007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1808d0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1808d0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808d015d
cmp eax, 0x7d00
jae 0x1808d019b
cmp eax, 0x500
jb 0x1808d0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1808d007e
cmp eax, 0x7f
ja 0x1808d019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1808d007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1808d01d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1808d007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140008c50
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400541a0]
xor rax, rsp
mov qword [rbp + 0x27], rax
movzx r14d, dx
mov rdi, rcx
mov ebx, 0xffff
xor esi, esi
cmp bx, dx
jne 0x140008c9f
movzx eax, si
jmp 0x140008e86
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x140008cdc
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x140008cdc
lea ecx, [r9 - 1]
mov dword [rax], ecx
mov rdx, qword [rdi + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], r14w
movzx eax, r14w
jmp 0x140008e86
cmp qword [rcx + 0x90], rsi
je 0x140008e83
mov rdx, qword [rcx + 0x18]
lea rax, [rcx + 0x80]
cmp qword [rdx], rax
jne 0x140008d11
mov rcx, qword [rcx + 0x70]
mov rax, qword [rdi + 0x68]
mov qword [rdx], rax
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], esi
cmp qword [rdi + 0x78], rsi
jne 0x140008d40
mov rdx, qword [rdi + 0x90]
movzx ecx, r14w
call qword [sym.imp.msvcrt.dll_fputwc]
nop dword [rax + rax]
cmp ax, bx
je 0x140008e83
movzx ebx, r14w
jmp 0x140008e83
mov word [rbp - 0x19], r14w
mov edx, 0xf
mov qword [rbp + 0x1f], rdx
xor ecx, ecx
mov qword [rbp + 7], rcx
mov qword [rbp + 0x17], 8
lea rax, [rbp + 7]
mov byte [rax + 8], sil
lea r8, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae r8, qword [rbp + 7]
lea r9, [rbp + 7]
cmovae r9, qword [rbp + 7]
mov rcx, qword [rdi + 0x78]
mov rdx, qword [rcx]
add r8, qword [rbp + 0x17]
mov rax, qword [rdx + 0x38]
lea rdx, [rbp - 0x11]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r9
lea rdx, [rbp - 9]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x17]
lea r8, [rbp - 0x19]
lea rdx, [rdi + 0x84]
call qword [0x1400375e8]
test eax, eax
js 0x140008e6c
cmp eax, 1
jg 0x140008e47
lea rax, [rbp + 7]
mov rdx, qword [rbp + 7]
mov r10, qword [rbp + 0x1f]
cmp r10, 0x10
cmovae rax, rdx
mov r15, qword [rbp - 0x11]
sub r15, rax
je 0x140008e11
lea rcx, [rbp + 7]
cmp r10, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x90]
mov r8, r15
mov edx, 1
call qword [sym.imp.msvcrt.dll_fwrite]
nop dword [rax + rax]
cmp r15, rax
jne 0x140008e6c
mov byte [rdi + 0x82], 1
lea rax, [rbp - 0x19]
cmp qword [rbp - 9], rax
jne 0x140008e68
test r15, r15
jne 0x140008d64
cmp qword [rbp + 0x17], 0x20
jae 0x140008e6c
xor r8d, r8d
lea edx, [r15 + 8]
lea rcx, [rbp + 7]
call fcn.140009afc
jmp 0x140008d64
cmp eax, 3
jne 0x140008e6c
mov rdx, qword [rdi + 0x90]
movzx ecx, word [rbp - 0x19]
call qword [sym.imp.msvcrt.dll_fputwc]
nop dword [rax + rax]
cmp ax, bx
je 0x140008e6c
movzx ebx, r14w
cmp qword [rbp + 0x1f], 0x10
jb 0x140008e83
mov rcx, qword [rbp + 7]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
movzx eax, bx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140032b80
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140009c84
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400541a0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x78], rbx
je 0x140009ded
cmp byte [rcx + 0x82], bl
je 0x140009ded
mov esi, 0xffff
mov edx, esi
call fcn.140008c50
cmp si, ax
jne 0x140009ce8
xor al, al
jmp 0x140009df2
mov edx, 0xf
mov qword [rbp - 0x18], rdx
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
mov byte [rax + 8], bl
lea esi, [rdx - 0xe]
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae r9, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
mov rcx, qword [rdi + 0x78]
mov rdx, qword [rcx]
add r9, qword [rbp - 0x20]
mov rax, qword [rdx + 0x40]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
lea rdx, [rdi + 0x84]
call qword [0x1400375e8]
mov ecx, eax
test eax, eax
je 0x140009d56
sub ecx, esi
je 0x140009d5c
cmp ecx, 2
jne 0x140009dd2
jmp 0x140009dcf
mov byte [rdi + 0x82], bl
lea rax, [rbp - 0x30]
mov rdx, qword [rbp - 0x30]
mov r10, qword [rbp - 0x18]
cmp r10, 0x10
cmovae rax, rdx
mov r14, qword [rbp - 0x40]
sub r14, rax
je 0x140009da3
lea rcx, [rbp - 0x30]
cmp r10, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x90]
mov r8, r14
mov rdx, rsi
call qword [sym.imp.msvcrt.dll_fwrite]
nop dword [rax + rax]
cmp r14, rax
jne 0x140009dcc
cmp byte [rdi + 0x82], bl
je 0x140009dc9
test r14, r14
jne 0x140009d09
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.140009afc
jmp 0x140009d09
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x18], 0x10
jb 0x140009de9
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov al, bl
jmp 0x140009df2
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140032b80
lea r11, [rsp + 0x70]
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
Function at 0x140031404
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400541a0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x78], rbx
je 0x140031564
cmp byte [rcx + 0x81], bl
je 0x140031564
mov rax, qword [rcx]
or edx, 0xffffffff
mov rax, qword [rax + 0x18]
call qword [0x1400375e8]
cmp eax, 0xffffffff
jne 0x14003146c
xor al, al
jmp 0x140031569
mov edx, 0xf
mov qword [rbp - 0x18], rdx
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
mov byte [rax + 8], bl
lea esi, [rdx - 0xe]
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae r9, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
mov rcx, qword [rdi + 0x78]
mov rdx, qword [rcx]
add r9, qword [rbp - 0x20]
mov rax, qword [rdx + 0x40]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
lea rdx, [rdi + 0x84]
call qword [0x1400375e8]
mov ecx, eax
test eax, eax
je 0x1400314da
sub ecx, esi
je 0x1400314e0
cmp ecx, 2
jne 0x140031550
jmp 0x14003154d
mov byte [rdi + 0x81], bl
lea rax, [rbp - 0x30]
mov rdx, qword [rbp - 0x30]
mov r10, qword [rbp - 0x18]
cmp r10, 0x10
cmovae rax, rdx
mov r14, qword [rbp - 0x40]
sub r14, rax
je 0x140031521
lea rcx, [rbp - 0x30]
cmp r10, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x90]
mov r8, r14
mov rdx, rsi
call qword [sym.imp.msvcrt.dll_fwrite]
cmp r14, rax
jne 0x14003154a
cmp byte [rdi + 0x81], bl
je 0x140031547
test r14, r14
jne 0x14003148d
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.140009afc
jmp 0x14003148d
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x18], 0x10
jb 0x140031560
mov rcx, qword [rbp - 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov al, bl
jmp 0x140031569
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140032b80
lea r11, [rsp + 0x70]
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
Function at 0x140032980
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140054d50], rbx
je 0x1400329cc
cmp rax, rbx
jne 0x1400329bf
mov ebx, 1
mov esi, ebx
jmp 0x1400329d1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400329a4
mov ebx, 1
mov eax, dword [0x140054d58]
cmp eax, ebx
jne 0x1400329e7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140032a4c
mov eax, dword [0x140054d58]
test eax, eax
jne 0x140032a46
mov dword [0x140054d58], ebx
lea r15, [0x1400376a0]
lea rdi, [0x140037688]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140032a38
test eax, eax
jne 0x140032a3c
cmp qword [rdi], 0
je 0x140032a2d
mov rax, qword [rdi]
mov rcx, qword [0x1400375e8]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140032a0e
test eax, eax
je 0x140032a4c
mov eax, 0xff
jmp 0x140032b28
mov dword [0x140054738], ebx
mov eax, dword [0x140054d58]
cmp eax, ebx
jne 0x140032a73
lea rdx, [0x140037680]
lea rcx, [0x1400375f0]
call sub.msvcrt.dll__initterm
mov dword [0x140054d58], 2
test esi, esi
jne 0x140032a80
xor eax, eax
xchg qword [0x140054d50], rax
cmp qword [0x140054d70], 0
je 0x140032ab4
lea rcx, [0x140054d70]
call fcn.140033030
test eax, eax
je 0x140032ab4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140054d70]
mov r9, qword [0x1400375e8]
call r9
mov r8, qword [0x140054750]
mov rdx, qword [0x140054748]
mov ecx, dword [0x140054740]
call fcn.1400285b0
mov dword [0x140054734], eax
cmp dword [0x140054758], 0
jne 0x140032ae4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140054738], 0
jne 0x140032af9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140054734]
jmp 0x140032b28
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400e5000
add rsp, 0x28
jmp 0x140032980

Function at 0x140032f2c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140032f78
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140032f70
cmp dword [rcx + 0x3c], edx
jl 0x140032f70
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140032f70
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140032f78
mov rax, rdx
add rsp, 0x18
ret