joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009b660
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x1402acd18]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rsi, r8
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 0xf
mov byte [rcx], dil
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x38], 0x67452301
mov dword [rsp + 0x3c], 0xefcdab89
mov dword [rsp + 0x40], 0x98badcfe
mov dword [rsp + 0x44], 0x10325476
mov eax, r8d
and eax, 0x1fffffff
mov dword [rsp + 0x30], eax
mov eax, r8d
shr eax, 0x1d
mov dword [rsp + 0x34], eax
cmp r8d, 0x40
jb 0x14009b6ff
and r8d, 0xffffffc0
lea rcx, [rsp + 0x30]
call fcn.14009ab90
mov rdx, rax
and esi, 0x3f
mov r8d, esi
lea rcx, [rsp + 0x48]
call fcn.1400bd5b0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xd0]
call fcn.14009a950
mov ebp, 0x57
nop dword [rax]
nop word [rax + rax]
movzx esi, byte [rsp + rdi + 0xd0]
movzx eax, sil
shr al, 4
mov r9d, 0x30
cmp al, 0xa
cmovae r9d, ebp
add r9b, al
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14009b77a
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14009b76f
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14009b789
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140042bf0
and sil, 0xf
mov r9d, 0x30
cmp sil, 0xa
cmovae r9d, ebp
add r9b, sil
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14009b7ca
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14009b7bf
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14009b7d9
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140042bf0
inc rdi
cmp rdi, 0x10
jb 0x14009b730
mov rax, rbx
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400a02c0
mov rbx, qword [rsp + 0x128]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a1184
Capabilities:
Parse pe header

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

Function at 0x1400b5660
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
mov r10, qword [rsp + 0x40]
xor ecx, ecx
mov r11, rdx
test r10, r10
je 0x1400b57e0
cmp r10, 0x40
jb 0x1400b57a8
mov qword [rsp + 0x20], rbx
lea rdx, [r8 - 1]
lea rbx, [r10 - 1]
add rdx, r10
add rbx, r11
cmp r8, rbx
ja 0x1400b56a2
cmp rdx, r11
jae 0x1400b57a3
lea rax, [r9 - 1]
add rax, r10
cmp r8, rax
ja 0x1400b56b7
cmp rdx, r9
jae 0x1400b57a3
cmp r11, rax
ja 0x1400b56c5
cmp rbx, r9
jae 0x1400b57a3
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x10], rdi
mov rdi, r10
mov qword [rsp + 8], r14
and rdi, 0xffffffffffffffc0
mov qword [rsp], r15
mov rax, r9
lea rdx, [r8 + 0x10]
sub rax, r8
mov rsi, r9
sub rsi, r11
mov rbx, r11
sub rbx, r8
lea rbp, [rax + 0x10]
lea r14, [rax + 0x20]
lea r15, [rax - 0x10]
nop word [rax + rax]
movdqu xmm0, xmmword [rdx - 0x10]
lea rax, [rbx + rdx]
add rcx, 0x40
movdqu xmm1, xmmword [r15 + rdx]
lea rdx, [rdx + 0x40]
movdqu xmm2, xmmword [rax + rsi]
pxor xmm0, xmm1
movdqu xmmword [rdx - 0x50], xmm1
movdqa xmm1, xmm2
movdqu xmmword [rbx + rdx - 0x50], xmm0
movdqu xmm0, xmmword [rdx - 0x40]
movdqu xmmword [rdx - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rdx - 0x30]
movdqu xmm2, xmmword [r14 + rdx - 0x40]
movdqu xmmword [rax], xmm1
movdqu xmm1, xmmword [rdx + rbp - 0x40]
pxor xmm0, xmm1
movdqu xmmword [rbx + rdx - 0x30], xmm0
movdqu xmmword [rdx - 0x30], xmm1
movdqu xmm0, xmmword [rdx - 0x20]
movdqu xmmword [rdx - 0x20], xmm2
pxor xmm0, xmm2
movdqu xmmword [rbx + rdx - 0x20], xmm0
cmp rcx, rdi
jb 0x1400b5710
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
cmp rcx, r10
jae 0x1400b57e0
sub r9, r11
lea rax, [rcx + r8]
sub r11, r8
sub r10, rcx
nop word [rax + rax]
lea rdx, [rax + r11]
movzx r8d, byte [rdx + r9]
lea rax, [rax + 1]
movzx ecx, r8b
xor cl, byte [rax - 1]
mov byte [rdx], cl
mov byte [rax - 1], r8b
sub r10, 1
jne 0x1400b57c0
add rsp, 0x18
ret
Function at 0x1400d230c
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.1400d2270
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x1400d2357
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x1400d238b
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400d238b
call fcn.1400e5428
xor ebx, ebx
test eax, eax
jne 0x1400d2379
cmp byte [rbp - 0x48], bl
je 0x1400d2372
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x1400d238b
cmp byte [rbp - 0x48], bl
je 0x1400d2389
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.1400d20f4
mov esi, eax
test eax, eax
je 0x1400d23c7
call fcn.1400d0b94
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x1400d2420
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.1400d20f4
mov edi, eax
test eax, eax
je 0x1400d2403
call fcn.1400d0b94
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x1400d2412
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.1400eac40
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x1400d2420
mov rcx, qword [rbp - 0x50]
call fcn.1400e501c
cmp byte [rbp - 8], bl
je 0x1400d242e
mov rcx, qword [rbp - 0x20]
call fcn.1400e501c
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400d4140
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.1400a0340
sub rsp, rax
mov rax, qword [0x1402acd18]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400e76e4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400d418f
mov rax, rbp
jmp 0x1400d4297
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 + 0x2b43e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400eab38
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x2b43e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400d4293
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 0x1400d4293
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400eab38
test rax, rax
js 0x1400d4293
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400d4293
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400d4285
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400d4285
cmp byte [rcx], 0xd
jne 0x1400d426b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400d427a
cmp byte [rcx + 1], 0xa
jne 0x1400d427a
inc rcx
jmp 0x1400d427a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2ad2b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400d424d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400d4297
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400a02c0
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 0x1400e14c8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400e12b8
Function at 0x1400e9950
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 0x1400e9982
call fcn.1400d0b94
mov dword [rax], 0x16
call fcn.1400d0a04
jmp 0x1400e9aa1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400e9aa1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400e9aa1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400e99b1
lock or dword [rcx + 0x14], 0x10
jmp 0x1400e9aa1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400e99c5
call fcn.1400eac70
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400e76e4
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400ea360
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400e9a8f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400e9a5a
mov rcx, rsi
call fcn.1400e76e4
cmp eax, edi
je 0x1400e9a45
mov rcx, rsi
call fcn.1400e76e4
cmp eax, 0xfffffffe
je 0x1400e9a45
mov rcx, rsi
call fcn.1400e76e4
movsxd rbx, eax
lea r14, [0x1402b43e0]
mov rcx, rsi
sar rbx, 6
call fcn.1400e76e4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400e9a4c
lea rdx, [0x1402ad0f0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400e9a5a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400e9a7e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400e9a7e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400e9a7e
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 0x1400e9aa4
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 0x1400e9eb4
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, [0x1402b43e0]
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 0x1400e9f12
cmp word [rdx], r12w
jne 0x1400e9f12
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400e9f18
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400ea073
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400ea04e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400e9f51
mov rcx, r9
jmp 0x1400e9f74
cmp r9, rdx
jae 0x1400e9f8b
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 0x1400e9f35
jmp 0x1400ea073
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 0x1400ea048
cmp dword [rsp + 0x80], edi
je 0x1400ea048
mov rdx, r14
lea r11, [0x1402b43e0]
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 0x1400ea021
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400e9ff4
mov word [rbx], r12w
jmp 0x1400ea06f
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 0x1400e9ffd
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400ea06f
cmp word [rsp + 0x70], r12w
jne 0x1400ea02e
cmp rbx, rsi
je 0x1400e9fee
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400eab40
cmp word [rsp + 0x70], r12w
je 0x1400ea073
mov word [rbx], r13w
jmp 0x1400ea06f
lea r11, [0x1402b43e0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400ea06b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400ea073
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 0x1400ef5f0
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 0x1400ef620
xor eax, eax
jmp 0x1400ef6e3
mov rbp, rbx
cmp word [rax], si
je 0x1400ef645
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400ef62c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400ef628
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.1400edb28
movsxd r14, eax
test eax, eax
jne 0x1400ef683
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400ef619
mov rcx, r14
call fcn.1400e63c8
mov rdi, rax
test rax, rax
jne 0x1400ef69c
xor ecx, ecx
call fcn.1400e501c
jmp 0x1400ef678
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.1400edb28
test eax, eax
jne 0x1400ef6cd
mov rcx, rdi
call fcn.1400e501c
jmp 0x1400ef6d7
xor ecx, ecx
call fcn.1400e501c
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 0x1400ef700
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400ef787
mov rsi, rbx
cmp word [rax], bp
je 0x1400ef746
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400ef730
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400ef72c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400e63c8
mov rdi, rax
test rax, rax
je 0x1400ef774
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400bd5b0
mov rbp, rdi
xor ecx, ecx
call fcn.1400e501c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f6cb0
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.1400eab40
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400eab40
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400f6e00
cmp rax, 0xffffffffffffffff
je 0x1400f6e00
xor edi, edi
test rbp, rbp
jle 0x1400f6dab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400e4fa4
mov rbx, rax
test rax, rax
jne 0x1400f6d38
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400f6da1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400e24d4
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.1400e9640
cmp eax, 0xffffffff
je 0x1400f6d81
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400f6d48
mov edx, r15d
mov ecx, r14d
call fcn.1400e24d4
jmp 0x1400f6da1
cmp byte [rsi + 0x38], dil
je 0x1400f6d98
cmp dword [rsi + 0x34], 5
jne 0x1400f6d98
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400f6da1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400e501c
jmp 0x1400f6e14
jns 0x1400f6e14
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400eab40
cmp rax, 0xffffffffffffffff
jne 0x1400f6dcc
cmp byte [rsi + 0x30], dil
je 0x1400f6e14
mov edi, dword [rsi + 0x2c]
jmp 0x1400f6e14
mov ecx, r14d
call fcn.1400f02a4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400f6e14
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 0x1400f6e14
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400f6e0d
mov eax, dword [rsi + 0x2c]
jmp 0x1400f6e12
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400eab40
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 0x14003b60c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140048cc8], rbx
je 0x14003b673
cmp rax, rbx
jne 0x14003b666
mov ebx, 1
mov esi, ebx
jmp 0x14003b678
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14003b64b
mov ebx, 1
mov eax, dword [0x140048cd0]
cmp eax, ebx
jne 0x14003b690
mov edi, 0x1f
mov ecx, edi
call fcn.1401c5000
jmp 0x14003b6fc
mov eax, dword [0x140048cd0]
test eax, eax
jne 0x14003b6f1
mov dword [0x140048cd0], ebx
lea r15, [0x14003e288]
lea rdi, [0x14003e270]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14003b6e3
test eax, eax
jne 0x14003b6e7
cmp qword [rdi], r14
je 0x14003b6d8
mov rax, qword [rdi]
mov rcx, qword [0x14003e230]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14003b6ba
test eax, eax
je 0x14003b6f7
mov eax, 0xff
jmp 0x14003b852
mov dword [0x140048284], ebx
mov edi, 0x1f
mov eax, dword [0x140048cd0]
cmp eax, ebx
jne 0x14003b723
lea rdx, [0x14003e268]
lea rcx, [0x14003e238]
call sub.msvcrt.dll__initterm
mov dword [0x140048cd0], 2
test esi, esi
jne 0x14003b731
mov rax, r14
xchg qword [0x140048cc8], rax
cmp qword [0x140048ce8], r14
je 0x14003b764
lea rcx, [0x140048ce8]
call fcn.14003bbf0
test eax, eax
je 0x14003b764
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140048ce8]
mov r9, qword [0x14003e230]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14003b77d
mov eax, 0xff
jmp 0x14003b852
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14003b803
test ax, ax
je 0x14003b798
test edx, edx
jne 0x14003b803
sub ax, bx
cmp ax, di
ja 0x14003b7ae
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14003b798
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001fc0
mov dword [0x140048280], eax
cmp dword [0x1400482a0], r14d
jne 0x14003b7ec
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140048284], r14d
jne 0x14003b801
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140048280]
jmp 0x14003b852
cmp ax, 0x22
jne 0x14003b817
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14003b786
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14003bc70
add rsp, 0x28
jmp 0x14003b60c
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0040b6b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x0040b6c0]
mov dword [rax], 1
mov rax, qword [0x0040b6d0]
mov dword [rax], 1
mov rax, qword [0x0040b6a0]
mov dword [rax], 1
mov rax, qword [0x0040b590]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x0040b690]
mov dword [0x0040e00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x0040b650]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x0040b540]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x404540
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]