joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002e4d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1801be160]
mov rcx, qword [rax + 0x2068]
mov r10, qword [rax + 0x1c20]
movsxd rax, dword [rcx + 0x7c]
movups xmm0, xmmword [rcx + 0x174]
movss xmm4, dword [rcx + 0x174]
movss xmm3, dword [rcx + 0x178]
movss xmm2, dword [rcx + 0x17c]
movss xmm1, dword [rcx + 0x180]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x68
mov rax, qword [r10 + 0x268]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x208], 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 + 0x268]
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, byte [r9 + 0x57]
mov rdx, qword [r10 + 0x268]
mov rcx, qword [rcx + 0x1a8]
add rsp, 0x38
jmp fcn.180022d30

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

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1801be160]
mov rcx, qword [rax + 0x2068]
mov r9, qword [rax + 0x1c20]
movups xmm0, xmmword [r9 + 0x208]
movups xmmword [rcx + 0x174], xmm0
mov rax, qword [r9 + 0x268]
movups xmm0, xmmword [rcx + 0x154]
movss xmm4, dword [rcx + 0x154]
movss xmm3, dword [rcx + 0x158]
movss xmm2, dword [rcx + 0x15c]
movss xmm1, dword [rcx + 0x160]
movups xmmword [r9 + 0x208], 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 + 0x268]
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, byte [rcx + 0x1f7]
mov rcx, qword [rcx + 0x1a8]
mov rdx, qword [r9 + 0x268]
add rsp, 0x38
jmp fcn.180022d30
Function at 0x180031000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1801bd5c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x180031040
cmp al, 0x25
jne 0x180031034
cmp byte [r8 + 1], al
jne 0x180031040
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x180031027
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x1800311a9
cmp byte [r8 + 1], dl
je 0x1800311a9
lea r11, [rsp + 0x20]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x18003107d
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x1800310a5
sub dl, 0x61
cmp dl, 0x19
ja 0x180031097
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x1800310a5
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x180031060
jmp 0x1800310a8
inc r9
cmp r8, r9
jae 0x1800310df
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x1800310d4
bt rdx, rax
jb 0x1800310da
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x1800310c0
xorps xmm3, xmm3
mov byte [r11], 0
cvtss2sd xmm3, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
movq r9, xmm3
call fcn.18000b010
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x180031118
nop
inc rcx
cmp byte [rcx], 0x20
je 0x180031110
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x180031198
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x18003113a
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, r8b
cmp r8b, 0x2b
jne 0x180031148
movzx eax, byte [rcx + 1]
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
cmp al, 0x30
jl 0x180031186
movss xmm2, dword [0x180094d8c]
nop
cmp al, 0x39
ja 0x180031186
movzx eax, al
inc rdx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x180031160
cmp r9b, 0x2d
jne 0x1800311a4
xorps xmm1, xmmword [0x180094e00]
movaps xmm0, xmm1
jmp 0x1800311ac
call fcn.18007c1dc
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x1800311ac
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18006a0e0
add rsp, 0x90
pop rbx
ret
Function at 0x1800311d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1801bd5c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x180031210
cmp al, 0x25
jne 0x180031204
cmp byte [r8 + 1], al
jne 0x180031210
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x1800311f7
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x180031373
cmp byte [r8 + 1], dl
je 0x180031373
lea r11, [rsp + 0x20]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x18003124d
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x180031275
sub dl, 0x61
cmp dl, 0x19
ja 0x180031267
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x180031275
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x180031230
jmp 0x180031278
inc r9
cmp r8, r9
jae 0x1800312af
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x1800312a4
bt rdx, rax
jb 0x1800312aa
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x180031290
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.18000b010
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x1800312e8
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x1800312e0
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x180031366
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x18003130a
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, r8b
cmp r8b, 0x2b
jne 0x180031318
movzx eax, byte [rcx + 1]
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
cmp al, 0x30
jl 0x180031354
movsd xmm2, qword [0x1800997a8]
nop
cmp al, 0x39
ja 0x180031354
movzx eax, al
inc rdx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x180031330
cmp r9b, 0x2d
jne 0x18003136e
xorps xmm1, xmmword [0x180099840]
movaps xmm0, xmm1
jmp 0x180031376
call fcn.18007c1dc
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x180031376
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18006a0e0
add rsp, 0x90
pop rbx
ret
Function at 0x180050f10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov r10d, ecx
and r10d, 7
je 0x180050f44
cmp ecx, r10d
jge 0x180050f32
mov rcx, rbx
call fcn.18004a9e0
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
xor r8d, r8d
mov eax, ecx
test ecx, ecx
jle 0x180050f7e
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x180050f60
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x180050fad
mov edx, dword [0x1801c1278]
mov rax, qword gs:[0x58]
mov ecx, 0x10
mov rax, qword [rax + rdx*8]
lea rdx, str.zlib_corrupt
mov qword [rcx + rax], rdx
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x180050fdf
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
nop dword [rax]
cmp rax, r8
jb 0x180050fc9
xor dl, dl
jmp 0x180050fd2
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x180050fc0
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x180050f82
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x180051054
mov edx, dword [0x1801c1278]
mov rax, qword gs:[0x58]
mov ecx, 0x10
mov rax, qword [rax + rdx*8]
lea rdx, str.read_past_buffer
mov qword [rcx + rax], rdx
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x18005106e
mov rcx, rbx
call fcn.1800563a0
test eax, eax
je 0x180051047
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call fcn.180090fe0
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x18005c4b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rsi, r8
mov r14, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rsi + r8], r12b
jne 0x18005c4f0
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.180056630
lea r8, [rsp + 0x20]
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x38]
cmp r13, 0xf
cmova r8, r15
movabs rcx, 0xcbf29ce484222325
mov rdx, r12
mov rbp, qword [rsp + 0x30]
test rbp, rbp
je 0x18005c554
movabs r9, 0x100000001b3
nop
movzx eax, byte [r8 + rdx]
xor rcx, rax
imul rcx, r9
inc rdx
cmp rdx, rbp
jb 0x18005c540
and rcx, qword [0x1801bf290]
add rcx, rcx
mov rax, qword [0x1801bf278]
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [0x1801bf268]
je 0x18005c5c1
mov r12, qword [rax + rcx*8]
nop word [rax + rax]
lea rdx, [rbx + 0x10]
cmp qword [rbx + 0x28], 0xf
jbe 0x18005c58f
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x20]
cmp r13, 0xf
cmova rcx, r15
cmp rbp, qword [rbx + 0x20]
jne 0x18005c5ae
mov r8, rbp
call fcn.180091a20
test eax, eax
je 0x18005c5b9
cmp rbx, r12
je 0x18005c5be
mov rbx, qword [rbx + 8]
jmp 0x18005c580
xor r12d, r12d
jmp 0x18005c5c4
xor r12d, r12d
mov rbx, r12
mov rax, qword [0x1801bf268]
mov rbp, rax
test rbx, rbx
cmovne rbp, rbx
cmp r13, 0xf
jbe 0x18005c613
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x18005c604
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c70c
mov rcx, r15
call fcn.180069fc0
mov rax, qword [0x1801bf268]
cmp rbp, rax
jne 0x18005c6d7
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
nop dword [rax]
inc rdi
cmp byte [rsi + rdi], 0
jne 0x18005c630
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.180056630
nop
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x48], rsi
mov byte [rsp + 0x50], 0
mov qword [rsp + 0x58], r12
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x80]
lea rcx, [0x1801bf260]
call fcn.180057000
mov rcx, qword [rax]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx + 0x30], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rcx + 0x40], xmm1
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x18005c6c5
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005c6c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c706
call fcn.180069fc0
mov dword [r14], r12d
mov qword [r14 + 8], rsi
mov byte [r14 + 0x10], 0
mov qword [r14 + 0x18], r12
jmp 0x18005c6e8
movups xmm0, xmmword [rbp + 0x30]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp + 0x40]
movups xmmword [r14 + 0x10], xmm1
mov rax, r14
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180080478
int3
call fcn.180080478
int3
Function at 0x180072068
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.18006a110
sub rsp, rax
mov rax, qword [0x1801bd5c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180083744
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800720b7
mov rax, rbp
jmp 0x1800721bf
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1c1d00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180085e8c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x1c1d00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800721bb
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 0x1800721bb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180085e8c
test rax, rax
js 0x1800721bb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800721bb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800721ad
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800721ad
cmp byte [rcx], 0xd
jne 0x180072193
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800721a2
cmp byte [rcx + 1], 0xa
jne 0x1800721a2
inc rcx
jmp 0x1800721a2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1bd920]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180072175
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800721bf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18006a0e0
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 0x18008509c
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, [0x1801c1d00]
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 0x1800850fa
cmp word [rdx], r12w
jne 0x1800850fa
or byte [rax + r8*8 + 0x38], cl
jmp 0x180085100
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x18008525b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x180085236
lea r9, [rcx + 2]
cmp ax, r13w
je 0x180085139
mov rcx, r9
jmp 0x18008515c
cmp r9, rdx
jae 0x180085173
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 0x18008511d
jmp 0x18008525b
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 0x180085230
cmp dword [rsp + 0x80], edi
je 0x180085230
mov rdx, r14
lea r11, [0x1801c1d00]
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 0x180085209
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1800851dc
mov word [rbx], r12w
jmp 0x180085257
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 0x1800851e5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x180085257
cmp word [rsp + 0x70], r12w
jne 0x180085216
cmp rbx, rsi
je 0x1800851d6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.180085e94
cmp word [rsp + 0x70], r12w
je 0x18008525b
mov word [rbx], r13w
jmp 0x180085257
lea r11, [0x1801c1d00]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x180085253
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18008525b
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 0x180085ab0
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 0x180085ae2
call fcn.180082958
mov dword [rax], 0x16
call fcn.180080458
jmp 0x180085c01
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180085c01
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x180085c01
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x180085b11
lock or dword [rcx + 0x14], 0x10
jmp 0x180085c01
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x180085b25
call fcn.1800899dc
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.180083744
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.180085548
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x180085bef
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x180085bba
mov rcx, rsi
call fcn.180083744
cmp eax, edi
je 0x180085ba5
mov rcx, rsi
call fcn.180083744
cmp eax, 0xfffffffe
je 0x180085ba5
mov rcx, rsi
call fcn.180083744
movsxd rbx, eax
lea r14, [0x1801c1d00]
mov rcx, rsi
sar rbx, 6
call fcn.180083744
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x180085bac
lea rdx, [0x1801bd760]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180085bba
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x180085bde
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x180085bde
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x180085bde
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 0x180085c04
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 0x18008b740
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 0x18008b770
xor eax, eax
jmp 0x18008b833
mov rbp, rbx
cmp word [rax], si
je 0x18008b795
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18008b77c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18008b778
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.18008b690
movsxd r14, eax
test eax, eax
jne 0x18008b7d3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18008b769
mov rcx, r14
call fcn.1800862bc
mov rdi, rax
test rax, rax
jne 0x18008b7ec
xor ecx, ecx
call fcn.1800829f0
jmp 0x18008b7c8
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.18008b690
test eax, eax
jne 0x18008b81d
mov rcx, rdi
call fcn.1800829f0
jmp 0x18008b827
xor ecx, ecx
call fcn.1800829f0
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 0x18008fb00
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.180085e94
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180085e94
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18008fc50
cmp rax, 0xffffffffffffffff
je 0x18008fc50
xor edi, edi
test rbp, rbp
jle 0x18008fbfb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180082978
mov rbx, rax
test rax, rax
jne 0x18008fb88
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18008fbf1
mov edx, 0x8000
mov ecx, r14d
call fcn.18008f988
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.180084d8c
cmp eax, 0xffffffff
je 0x18008fbd1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18008fb98
mov edx, r15d
mov ecx, r14d
call fcn.18008f988
jmp 0x18008fbf1
cmp byte [rsi + 0x38], dil
je 0x18008fbe8
cmp dword [rsi + 0x34], 5
jne 0x18008fbe8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18008fbf1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800829f0
jmp 0x18008fc64
jns 0x18008fc64
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180085e94
cmp rax, 0xffffffffffffffff
jne 0x18008fc1c
cmp byte [rsi + 0x30], dil
je 0x18008fc64
mov edi, dword [rsi + 0x2c]
jmp 0x18008fc64
mov ecx, r14d
call fcn.18008c2c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18008fc64
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 0x18008fc64
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18008fc5d
mov eax, dword [rsi + 0x2c]
jmp 0x18008fc62
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180085e94
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 0x180090be0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180090c08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180090c08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003396
Capabilities:
Hash data using djb2

Disassembly:
add rdx, rcx
mov eax, 0x1505
cmp rcx, rdx
je 0x140003434
movzx r8d, byte [rcx]
test r8b, r8b
js 0x1400033b5
inc rcx
jmp 0x140003429
mov r9d, r8d
and r9d, 0x1f
movzx r11d, byte [rcx + 1]
and r11d, 0x3f
cmp r8b, 0xdf
jbe 0x14000340b
movzx r10d, byte [rcx + 2]
shl r11d, 6
and r10d, 0x3f
or r10d, r11d
cmp r8b, 0xf0
jb 0x14000341b
movzx r8d, byte [rcx + 3]
and r9d, 7
shl r9d, 0x12
shl r10d, 6
and r8d, 0x3f
or r8d, r10d
or r8d, r9d
cmp r8d, 0x110000
je 0x140003434
add rcx, 4
jmp 0x140003429
add rcx, 2
shl r9d, 6
or r9d, r11d
mov r8d, r9d
jmp 0x140003429
add rcx, 3
shl r9d, 0xc
or r10d, r9d
mov r8d, r10d
imul eax, eax, 0x21
add eax, r8d
jmp 0x14000339e
ret
Function at 0x140006838
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movsxd rax, dword [rcx + 0x3c]
mov eax, dword [rcx + rax + 0x88]
test rax, rax
je 0x1400068df
mov edi, edx
mov rsi, rcx
mov r15d, dword [rcx + rax + 0x18]
mov r14d, dword [rcx + rax + 0x1c]
mov r12d, dword [rcx + rax + 0x20]
add r12, rcx
mov r13d, dword [rcx + rax + 0x24]
add r13, rcx
add r14, rcx
neg r15
mov rbp, 0xffffffffffffffff
lea rbx, [rsp + 0x20]
lea rax, [r15 + rbp]
cmp rax, 0xffffffffffffffff
je 0x1400068df
mov ecx, dword [r12 + rbp*4 + 4]
add rcx, rsi
call fcn.140001274
mov r8, rdx
mov rcx, rbx
mov rdx, rax
call fcn.1400055d0
cmp qword [rsp + 0x20], 0
jne 0x1400068f3
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
call fcn.140003396
inc rbp
cmp eax, edi
jne 0x14000688d
movzx eax, word [r13 + rbp*2]
mov eax, dword [r14 + rax*4]
add rsi, rax
jmp 0x1400068df
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140005e80
int3