joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006cea0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
cmp dword [0x1800f3f54], 1
je 0x18006cf00
mov r8, rdx
movabs r10, 0xf0f0f0f0f0f0f0f1
xor r9d, r9d
nop dword [rax]
mov rax, r9
mul r10
shr rdx, 4
mov eax, edx
shl edx, 4
add edx, eax
movzx eax, byte [r8 + r9 + 0x11]
mov r11d, r9d
sub r11d, edx
movsxd rdx, r11d
xor al, byte [r8 + rdx]
mov byte [rcx + r9], al
mov rax, r9
inc rax
mov r9, rax
cmp eax, 0x14
jne 0x18006cec0
mov dword [0x1800f3f54], 1
mov eax, 0x4345c0d0
ret

Function at 0x18006cf10
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1800f3f68], 1
je 0x18006cf89
mov r8, rdx
movabs r10, 0x1a7b9611a7b9611b
xor r9d, r9d
mov r11, rdx
mov esi, 0x1d
nop word cs:[rax + rax]
nop dword [rax]
mov rax, r9
mul r10
mov rax, r9
sub r9, rdx
shr r9, 1
add r9, rdx
shr r9, 4
imul rdx, r9, 0xffffffffffffffe3
movzx r9d, byte [r8 + rsi]
xor r9b, byte [r11 + rdx]
mov byte [rcx + rsi - 0x1d], r9b
mov rdx, rsi
inc rdx
mov rsi, rdx
inc r11
inc rax
cmp edx, 0x2b
mov r9, rax
jne 0x18006cf40
mov dword [0x1800f3f68], 1
mov eax, 0x3bf28620
pop rsi
ret

Function at 0x18006cf90
Capabilities:
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1800f3f80], 1
je 0x18006cff3
mov r8, rdx
movabs r10, 0x8888888888888889
xor r9d, r9d
mov eax, 0x1e
nop
mov r11, rax
mov rsi, rdx
mov rax, r9
mul r10
shr rdx, 4
imul rax, rdx, 0xffffffffffffffe2
movzx edx, byte [r8 + r11]
xor dl, byte [rsi + rax]
mov byte [rcx + r11 - 0x1e], dl
inc r11
mov rax, r11
mov edx, r11d
inc rsi
inc r9
cmp r11d, 0x31
mov rdx, rsi
jne 0x18006cfb0
mov dword [0x1800f3f80], 1
mov eax, 0x346cc0bb
pop rsi
ret

Function at 0x18006d000
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1800f3f9c], 1
je 0x18006d079
mov r8, rdx
movabs r10, 0x642c8590b21642c9
xor r9d, r9d
mov r11, rdx
mov esi, 0x17
nop word cs:[rax + rax]
nop dword [rax]
mov rax, r9
mul r10
mov rax, r9
sub r9, rdx
shr r9, 1
add r9, rdx
shr r9, 4
imul rdx, r9, 0xffffffffffffffe9
movzx r9d, byte [r8 + rsi]
xor r9b, byte [r11 + rdx]
mov byte [rcx + rsi - 0x17], r9b
mov rdx, rsi
inc rdx
mov rsi, rdx
inc r11
inc rax
cmp edx, 0x2c
mov r9, rax
jne 0x18006d030
mov dword [0x1800f3f9c], 1
mov eax, 0x3fb123d7
pop rsi
ret

Function at 0x18006d080
Capabilities:
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1800f3fa8], 1
je 0x18006d0f4
mov r8, rdx
movabs r10, 0xf0f0f0f0f0f0f0f1
xor r9d, r9d
mov r11, rdx
mov eax, 0x11
nop word cs:[rax + rax]
nop dword [rax]
mov rsi, rax
mov rax, r9
mul r10
mov rax, rdx
shr rdx, 4
and rax, 0xfffffffffffffff0
add rax, rdx
neg rax
movzx edx, byte [r8 + rsi]
xor dl, byte [r11 + rax]
mov byte [rcx + rsi - 0x11], dl
inc rsi
mov rax, rsi
mov edx, esi
inc r11
inc r9
cmp esi, 0x17
jne 0x18006d0b0
mov dword [0x1800f3fa8], 1
mov eax, 0x6daf0ee8
pop rsi
ret
Function at 0x18006d100
Capabilities:
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1800f3fc0], 1
je 0x18006d163
mov r8, rdx
movabs r10, 0xd79435e50d79435f
xor r9d, r9d
mov eax, 0x13
nop
mov r11, rax
mov rsi, rdx
mov rax, r9
mul r10
shr rdx, 4
imul rax, rdx, 0xffffffffffffffed
movzx edx, byte [r8 + r11]
xor dl, byte [rsi + rax]
mov byte [rcx + r11 - 0x13], dl
inc r11
mov rax, r11
mov edx, r11d
inc rsi
inc r9
cmp r11d, 0x26
mov rdx, rsi
jne 0x18006d120
mov dword [0x1800f3fc0], 1
mov eax, 0xf616f353
pop rsi
ret

Function at 0x18006d170
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x1800f3fd8], 1
je 0x18006d1ae
xor eax, eax
nop dword [rax + rax]
movzx r8d, byte [rdx + rax + 0x10]
mov r9d, eax
and r9d, 0xf
xor r8b, byte [rdx + r9]
mov byte [rcx + rax], r8b
mov r8, rax
inc r8
mov rax, r8
cmp r8d, 0x12
jne 0x18006d180
mov dword [0x1800f3fd8], 1
mov eax, 0x2a9cf1f7
ret

Function at 0x18006d1c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
cmp dword [0x1800f3ff0], 1
je 0x18006d220
mov r8, rdx
movabs r10, 0xe38e38e38e38e38f
xor r9d, r9d
nop dword [rax]
mov rax, r9
mul r10
shr rdx, 4
mov eax, edx
add eax, edx
lea eax, [rax + rax*8]
movzx edx, byte [r8 + r9 + 0x12]
mov r11d, r9d
sub r11d, eax
movsxd rax, r11d
xor dl, byte [r8 + rax]
mov byte [rcx + r9], dl
mov rax, r9
inc rax
mov r9, rax
cmp eax, 0x13
jne 0x18006d1e0
mov dword [0x1800f3ff0], 1
mov eax, 0x4e5413a3
ret

Function at 0x18006d230
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1800f4004], 1
je 0x18006d2a9
mov r8, rdx
movabs r10, 0x642c8590b21642c9
xor r9d, r9d
mov r11, rdx
mov esi, 0x17
nop word cs:[rax + rax]
nop dword [rax]
mov rax, r9
mul r10
mov rax, r9
sub r9, rdx
shr r9, 1
add r9, rdx
shr r9, 4
imul rdx, r9, 0xffffffffffffffe9
movzx r9d, byte [r8 + rsi]
xor r9b, byte [r11 + rdx]
mov byte [rcx + rsi - 0x17], r9b
mov rdx, rsi
inc rdx
mov rsi, rdx
inc r11
inc rax
cmp edx, 0x24
mov r9, rax
jne 0x18006d260
mov dword [0x1800f4004], 1
mov eax, 0x70feb9d
pop rsi
ret

Function at 0x18006d2b0
Capabilities:
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1800f4014], 1
je 0x18006d320
mov r8, rdx
movabs r9, 0x4924924924924925
xor eax, eax
mov r10, rdx
mov r11d, 0x1c
nop word cs:[rax + rax]
nop dword [rax]
mov rsi, rax
shr rax, 2
mul r9
shr rdx, 1
imul rax, rdx, 0xffffffffffffffe4
movzx edx, byte [r8 + r11]
xor dl, byte [r10 + rax]
mov byte [rcx + r11 - 0x1c], dl
mov rax, r11
inc rax
mov r11, rax
inc r10
inc rsi
cmp eax, 0x25
mov rax, rsi
jne 0x18006d2e0
mov dword [0x1800f4014], 1
mov eax, 0x1260772
pop rsi
ret
Function at 0x18006d330
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1800f402c], 1
je 0x18006d3a9
mov r8, rdx
movabs r10, 0x8618618618618619
xor r9d, r9d
mov r11, rdx
mov esi, 0x15
nop word cs:[rax + rax]
nop dword [rax]
mov rax, r9
mul r10
mov rax, r9
sub r9, rdx
shr r9, 1
add r9, rdx
shr r9, 4
imul rdx, r9, 0xffffffffffffffeb
movzx r9d, byte [r8 + rsi]
xor r9b, byte [r11 + rdx]
mov byte [rcx + rsi - 0x15], r9b
mov rdx, rsi
inc rdx
mov rsi, rdx
inc r11
inc rax
cmp edx, 0x27
mov r9, rax
jne 0x18006d360
mov dword [0x1800f402c], 1
mov eax, 0x8fd17fe8
pop rsi
ret

Function at 0x18006d3b0
Capabilities:
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1800f4044], 1
je 0x18006d413
mov r8, rdx
movabs r10, 0x4ec4ec4ec4ec4ec5
xor r9d, r9d
mov eax, 0x1a
nop
mov r11, rax
mov rsi, rdx
mov rax, r9
mul r10
shr rdx, 3
imul rax, rdx, 0xffffffffffffffe6
movzx edx, byte [r8 + r11]
xor dl, byte [rsi + rax]
mov byte [rcx + r11 - 0x1a], dl
inc r11
mov rax, r11
mov edx, r11d
inc rsi
inc r9
cmp r11d, 0x2c
mov rdx, rsi
jne 0x18006d3d0
mov dword [0x1800f4044], 1
mov eax, 0x7fd6d079
pop rsi
ret

Function at 0x18006d420
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x1800f4060], 1
je 0x18006d47d
mov r8, rdx
movabs r10, 0xd79435e50d79435f
xor r9d, r9d
nop dword [rax]
mov rax, r9
mul r10
shr rdx, 4
mov eax, edx
imul eax, edx, 0xffffffed
movzx edx, byte [r8 + r9 + 0x13]
mov r11d, r9d
add eax, r9d
cdqe
xor dl, byte [r8 + rax]
mov byte [rcx + r9], dl
mov rax, r9
inc rax
mov r9, rax
cmp eax, 0x15
jne 0x18006d440
mov dword [0x1800f4060], 1
mov eax, 0x3c60102
ret

Function at 0x18006d5d0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1800f3eac], 1
je 0x18006d649
mov r8, rdx
movabs r10, 0x642c8590b21642c9
xor r9d, r9d
mov r11, rdx
mov esi, 0x17
nop word cs:[rax + rax]
nop dword [rax]
mov rax, r9
mul r10
mov rax, r9
sub r9, rdx
shr r9, 1
add r9, rdx
shr r9, 4
imul rdx, r9, 0xffffffffffffffe9
movzx r9d, byte [r8 + rsi]
xor r9b, byte [r11 + rdx]
mov byte [rcx + rsi - 0x17], r9b
mov rdx, rsi
inc rdx
mov rsi, rdx
inc r11
inc rax
cmp edx, 0x27
mov r9, rax
jne 0x18006d600
mov dword [0x1800f3eac], 1
mov eax, 0x721ecf91
pop rsi
ret

Function at 0x18006d650
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x1800f3ebc], 1
je 0x18006d687
xor eax, eax
nop dword [rax + rax]
movzx r8d, byte [rdx + rax + 0x10]
xor r8b, byte [rdx + rax]
mov byte [rcx + rax], r8b
mov r8, rax
inc r8
mov rax, r8
cmp r8d, 9
jne 0x18006d660
mov dword [0x1800f3ebc], 1
mov eax, 0x2cc8eedc
ret

Function at 0x18006d7c0
Capabilities:
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1800f4094], 1
je 0x18006d830
mov r8, rdx
movabs r9, 0x4924924924924925
xor eax, eax
mov r10, rdx
mov r11d, 0x1c
nop word cs:[rax + rax]
nop dword [rax]
mov rsi, rax
shr rax, 2
mul r9
shr rdx, 1
imul rax, rdx, 0xffffffffffffffe4
movzx edx, byte [r8 + r11]
xor dl, byte [r10 + rax]
mov byte [rcx + r11 - 0x1c], dl
mov rax, r11
inc rax
mov r11, rax
inc r10
inc rsi
cmp eax, 0x35
mov rax, rsi
jne 0x18006d7f0
mov dword [0x1800f4094], 1
mov eax, 0x415176cb
pop rsi
ret
Function at 0x180076610
Capabilities:
Hash data using fnv

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
movabs rax, 0x800000000000001
cmp rdx, rax
jae 0x1800767c1
mov rsi, rcx
dec rdx
or rdx, 1
bsr rax, rdx
xor eax, 0x3f
mov ecx, eax
neg cl
mov ebx, 1
shl rbx, cl
lea rax, [rsi + 0x18]
mov rdi, qword [rsi + 8]
mov edx, 2
shl rdx, cl
mov rcx, rax
mov r8, rdi
call fcn.1800767d0
lea rax, [rbx - 1]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rbx
mov rax, qword [rsi + 8]
mov rdx, qword [rax]
cmp rdx, rdi
je 0x1800767b4
movabs rax, 0x100000001b3
movabs rcx, 0xcbf29ce484222325
jmp 0x1800766b4
mov qword [r9 + r10*8], rdx
mov qword [r9 + rbx*8], rdx
mov rdx, r8
cmp r8, rdi
je 0x1800767b4
movzx r8d, byte [rdx + 0x10]
xor r8, rcx
imul r8, rax
movzx r9d, byte [rdx + 0x11]
xor r9, r8
imul r9, rax
movzx r8d, byte [rdx + 0x12]
xor r8, r9
imul r8, rax
movzx r9d, byte [rdx + 0x13]
xor r9, r8
imul r9, rax
mov r11, r9
and r11, qword [rsi + 0x30]
mov r8, qword [rdx]
mov r9, qword [rsi + 0x18]
lea r10, [r11 + r11]
lea rbx, [r11*2 + 1]
shl r11, 4
mov r11, qword [r9 + r11]
cmp r11, rdi
je 0x1800766a0
mov r14, qword [r9 + rbx*8]
mov ebp, dword [rdx + 0x10]
cmp ebp, dword [r14 + 0x10]
jne 0x180076750
mov r10, qword [r14]
cmp r10, rdx
je 0x1800766a4
mov r11, qword [rdx + 8]
mov qword [r11], r8
mov r14, qword [r8 + 8]
mov qword [r14], r10
mov r15, qword [r10 + 8]
mov qword [r15], rdx
mov qword [r10 + 8], r14
mov qword [r8 + 8], r11
mov qword [rdx + 8], r15
jmp 0x1800766a4
cmp r11, r14
je 0x18007678a
mov rbx, qword [r14 + 8]
mov r14, rbx
cmp ebp, dword [rbx + 0x10]
jne 0x180076750
mov r9, qword [rbx]
mov r10, qword [rdx + 8]
mov qword [r10], r8
mov r11, qword [r8 + 8]
mov qword [r11], r9
mov rbx, qword [r9 + 8]
mov qword [rbx], rdx
mov qword [r9 + 8], r11
mov qword [r8 + 8], r10
mov qword [rdx + 8], rbx
jmp 0x1800766a8
mov rbx, qword [rdx + 8]
mov qword [rbx], r8
mov r14, qword [r8 + 8]
mov qword [r14], r11
mov r15, qword [r11 + 8]
mov qword [r15], rdx
mov qword [r11 + 8], r14
mov qword [r8 + 8], rbx
mov qword [rdx + 8], r15
mov qword [r9 + r10*8], rdx
jmp 0x1800766a8
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.18007ce78
int3
Function at 0x18008dd54
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x18008de4c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18008debb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18008debb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18008debb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18008debb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18008debb
cmp dword [rcx + 0x84], 0xe
jbe 0x18008debb
cmp dword [rcx + 0xf8], 0
je 0x18008debb
mov ecx, ebx
call fcn.18008dd84
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18008dfe0
nop
cmp dword [rbp + 0x20], 0
je 0x18008df09
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18008de18
int3

Function at 0x18008de4c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x18008de4c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18008debb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18008debb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18008debb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18008debb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18008debb
cmp dword [rcx + 0x84], 0xe
jbe 0x18008debb
cmp dword [rcx + 0xf8], 0
je 0x18008debb
mov ecx, ebx
call fcn.18008dd84
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18008dfe0
nop
cmp dword [rbp + 0x20], 0
je 0x18008df09
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18008de18
int3
Function at 0x180091a58
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.1800a0e80
sub rsp, rax
mov rax, qword [0x1800d3040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18009c4a8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180091aa7
mov rax, rbp
jmp 0x180091baf
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 + 0xf1d10]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800a0c9c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xf1d10]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180091bab
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 0x180091bab
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800a0c9c
test rax, rax
js 0x180091bab
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180091bab
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180091b9d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180091b9d
cmp byte [rcx], 0xd
jne 0x180091b83
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180091b92
cmp byte [rcx + 1], 0xa
jne 0x180091b92
inc rcx
jmp 0x180091b92
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd38d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180091b65
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180091baf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18007d5f0
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 0x180096c80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180096ca8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180096ca8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18009d980
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 0x18009d9b0
xor eax, eax
jmp 0x18009da73
mov rbp, rbx
cmp word [rax], si
je 0x18009d9d5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18009d9bc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18009d9b8
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.18009d8a0
movsxd r14, eax
test eax, eax
jne 0x18009da13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18009d9a9
mov rcx, r14
call fcn.18009b280
mov rdi, rax
test rax, rax
jne 0x18009da2c
xor ecx, ecx
call fcn.1800986d8
jmp 0x18009da08
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.18009d8a0
test eax, eax
jne 0x18009da5d
mov rcx, rdi
call fcn.1800986d8
jmp 0x18009da67
xor ecx, ecx
call fcn.1800986d8
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 0x1800a0834
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
lea r9, [0x1800f1d10]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1800a088b
cmp word [rdx], r13w
jne 0x1800a088b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800a0890
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800a09b5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800a09d6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800a08c9
mov rdx, r9
mov word [rbx], cx
jmp 0x1800a08f0
cmp r9, r8
jae 0x1800a0900
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1800a08aa
jmp 0x1800a09b5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800a09aa
cmp dword [rsp + 0x80], esi
je 0x1800a09aa
lea r8, [0x1800f1d10]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800a0982
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800a0952
mov word [rbx], r13w
jmp 0x1800a09b2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1800a095f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800a09b2
cmp word [rsp + 0x70], r13w
jne 0x1800a098f
cmp rbx, r14
je 0x1800a094c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800a0bf8
cmp word [rsp + 0x70], r13w
je 0x1800a09b5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
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
lea r8, [0x1800f1d10]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800a09af
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800a09b5

Function at 0x1800a1068
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800a107e
mov al, 1
jmp 0x1800a10de
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800a108f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800a10dc
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800a220c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800a10dc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800a10dc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800a10dc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800a10de
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800a7704
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.1800a0bf8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800a0bf8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800a7854
cmp rax, 0xffffffffffffffff
je 0x1800a7854
xor edi, edi
test rbp, rbp
jle 0x1800a77ff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180098660
mov rbx, rax
test rax, rax
jne 0x1800a778c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800a77f5
mov edx, 0x8000
mov ecx, r14d
call fcn.1800a7588
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.18009f3cc
cmp eax, 0xffffffff
je 0x1800a77d5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800a779c
mov edx, r15d
mov ecx, r14d
call fcn.1800a7588
jmp 0x1800a77f5
cmp byte [rsi + 0x38], dil
je 0x1800a77ec
cmp dword [rsi + 0x34], 5
jne 0x1800a77ec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800a77f5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800986d8
jmp 0x1800a7868
jns 0x1800a7868
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800a0bf8
cmp rax, 0xffffffffffffffff
jne 0x1800a7820
cmp byte [rsi + 0x30], dil
je 0x1800a7868
mov edi, dword [rsi + 0x2c]
jmp 0x1800a7868
mov ecx, r14d
call fcn.1800a220c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800a7868
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 0x1800a7868
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800a7861
mov eax, dword [rsi + 0x2c]
jmp 0x1800a7866
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800a0bf8
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