joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801b87c0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x1801b8956
cmp r9, 4
jb 0x1801b87fa
mov r10, r9
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r9, rax
mov eax, dword [rdx]
add rdx, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub r10, 1
jne 0x1801b87e1
xor r11d, r11d
test r9, r9
je 0x1801b8956
cmp r9, 8
jb 0x1801b892d
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x1801b882c
cmp r10, r8
jae 0x1801b892d
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x1801b8841
cmp r10, rdx
jae 0x1801b892d
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x1801b88e7
mov r10, r9
mov qword [rsp + 0x18], rsi
and r10d, 0x3f
mov rbx, r9
sub rbx, r10
mov rdi, rdx
lea rax, [r8 + 0x10]
sub rdi, r8
mov rsi, rcx
sub rsi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rsi + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rsi + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rax - 0x20]
movdqu xmmword [rsi + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rsi + rax - 0x20], xmm2
cmp r11, rbx
jb 0x1801b8880
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x1801b891f
mov r10, r9
and r10, 0xfffffffffffffff8
mov rbx, rdx
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdi + rax - 8], xmm1
cmp r11, r10
jb 0x1801b8900
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x1801b8956
sub rdx, r8
lea r10, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [r10 + rdx]
xor al, byte [r10]
mov byte [rcx + r10], al
lea r10, [r10 + 1]
sub r9, 1
jne 0x1801b8940
add rsp, 8
ret
Function at 0x1801b8960
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r8, r8
je 0x1801b8ac2
cmp r8, 4
jb 0x1801b89a2
mov r9, r8
shr r9, 2
imul rax, r9, 0xfffffffffffffffc
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rdx]
add rdx, 4
xor dword [rcx], eax
add rcx, 4
sub r9, 1
jne 0x1801b8990
xor r10d, r10d
test r8, r8
je 0x1801b8ac2
cmp r8, 8
jb 0x1801b8aa4
lea r9, [rcx - 1]
lea rax, [rdx - 1]
add r9, r8
add rax, r8
cmp rcx, rax
ja 0x1801b89d4
cmp r9, rdx
jae 0x1801b8aa4
cmp r8, 0x40
jb 0x1801b8a63
mov r9, r8
mov qword [rsp], rbx
and r9d, 0x3f
mov r11, r8
sub r11, r9
mov rbx, rdx
lea rax, [rcx + 0x10]
sub rbx, rcx
nop dword [rax]
movdqu xmm0, xmmword [rax - 0x10]
add r10, 0x40
movdqu xmm1, xmmword [rax + rbx - 0x10]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax + rbx - 0x40]
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm2, xmmword [rax - 0x40]
movdqu xmm1, xmmword [rax + rbx - 0x30]
xorps xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rax + rbx - 0x20]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
cmp r10, r11
jb 0x1801b8a00
mov rbx, qword [rsp]
cmp r9, 8
jb 0x1801b8a9f
mov r9, r8
and r9, 0xfffffffffffffff8
mov r11, rdx
lea rax, [r10 + rcx]
sub r11, rcx
nop dword [rax]
nop dword [rax + rax]
movq xmm0, qword [rax]
add r10, 8
movq xmm1, qword [r11 + rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax - 8], xmm1
cmp r10, r9
jb 0x1801b8a80
cmp r10, r8
jae 0x1801b8ac2
sub rdx, rcx
lea r9, [r10 + rcx]
sub r8, r10
nop
movzx eax, byte [rdx + r9]
xor byte [r9], al
lea r9, [r9 + 1]
sub r8, 1
jne 0x1801b8ab0
add rsp, 8
ret
Function at 0x1801c52e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x1802edb40]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14d, r8d
mov r12, rdx
mov qword [rsp + 0x28], rdx
mov rbx, rcx
add rcx, 8
mov rax, qword [rcx]
call qword [rax + gethostname]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rcx, rax
mov qword [rsp + 0x30], rax
mov rax, qword [rax]
call qword [rax + 0x48]
mov r15d, eax
test eax, eax
je 0x1801c54ca
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rdi, rax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rsi, rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x48]
mov edi, eax
add edi, edi
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x40]
add eax, edi
mov r13d, eax
mov rsi, qword [rbx + 0x28]
mov rdi, qword [rbx + 0x20]
mov qword [rsp + 0x20], rdi
xor ebp, ebp
cmp rdi, r13
je 0x1801c53de
test eax, eax
jne 0x1801c5393
mov r12d, ebp
jmp 0x1801c539e
mov rcx, r13
call fcn.1801b7700
mov r12, rax
mov r8, rdi
cmp r13, rdi
cmovb r8, r13
test rsi, rsi
je 0x1801c53d6
test r12, r12
je 0x1801c53c2
test r8, r8
je 0x1801c53c2
mov rdx, rsi
mov rcx, r12
call fcn.180210c20
mov rdi, rsi
xor eax, eax
mov rcx, qword [rsp + 0x20]
rep stosb byte [rdi], al
mov rcx, rsi
call fcn.180015950
mov rsi, r12
mov r12, qword [rsp + 0x28]
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x20], r13
mov qword [rbx + 0x18], 0xffffffffffffffff
cmp r14d, r15d
ja 0x1801c5412
test rsi, rsi
je 0x1801c543c
test r12, r12
je 0x1801c543c
test r14d, r14d
je 0x1801c543c
mov r8, r14
mov rdx, r12
mov rcx, rsi
call fcn.180210c20
jmp 0x1801c543c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rdi, qword [rax]
mov r9, r14
mov r8, r12
mov rdx, qword [rbx + 0x28]
mov rcx, rax
call qword [rdi + 0x60]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r14d, eax
mov r8d, r15d
sub r8d, r14d
mov ecx, r14d
add rcx, qword [rbx + 0x28]
xor edx, edx
call fcn.1802112c0
test r15d, r15d
je 0x1801c549f
mov rsi, rbp
mov r14, r15
nop dword [rax + rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rdi, qword [rbx + 0x28]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x48]
mov edx, eax
add rdx, rdi
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rsi + rax]
xor cl, 0x5c
mov byte [rdx + rbp], cl
mov rax, qword [rbx + 0x28]
xor byte [rsi + rax], 0x36
lea rsi, [rsi + 1]
lea rbp, [rbp + 1]
sub r14, 1
jne 0x1801c5460
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1801cf080
mov rbx, qword [rsp + 0x108]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.HMAC:_can_only_be_used_with_a_block_based_hash_function
lea rcx, [rsp + 0x38]
call fcn.18000c400
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1800b2360
lea rdx, [0x1802ea998]
lea rcx, [rsp + 0x60]
call fcn.1801d17a0
int3
Function at 0x1801cc230
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
movdqu xmm5, xmmword [rcx]
xor ecx, ecx
movaps xmmword [rsp], xmm6
movdqa xmm6, xmmword [0x1802348d0]
pshufb xmm5, xmmword [0x1802348c0]
movdqa xmm4, xmm5
add r8d, 0xffffffe0
je 0x1801cc36d
nop dword [rax]
movq qword [rcx + rdx], xmm4
movdqa xmm2, xmm4
pclmulqdq xmm2, xmm5, 0
movdqa xmm1, xmm2
movdqa xmm3, xmm4
movdqa xmm0, xmm4
pslldq xmm1, 8
pclmulqdq xmm0, xmm5, 1
pclmulqdq xmm3, xmm5, 0x10
xorps xmm3, xmm0
movdqa xmm0, xmm2
psrldq xmm2, 8
xorps xmm3, xmm1
pclmulqdq xmm0, xmm6, 0x10
xorps xmm3, xmm0
movdqa xmm0, xmm4
xorps xmm2, xmm3
movdqa xmm1, xmm3
psllq xmm2, 1
pclmulqdq xmm2, xmm6, 0
pclmulqdq xmm0, xmm5, 0x11
xorps xmm2, xmm0
psrldq xmm1, 8
xorps xmm2, xmm1
punpcklqdq xmm3, xmm2
psllq xmm2, 1
psrlq xmm3, 0x3f
xorps xmm3, xmm2
movdqu xmmword [rcx + rdx + 0x10], xmm3
movdqu xmmword [rcx + rdx + 8], xmm4
movdqa xmm2, xmm3
movq qword [rcx + rdx + 8], xmm3
pclmulqdq xmm2, xmm5, 0
movdqa xmm1, xmm2
movdqa xmm4, xmm3
pclmulqdq xmm4, xmm5, 0x10
movdqa xmm0, xmm3
pslldq xmm1, 8
pclmulqdq xmm0, xmm5, 1
xorps xmm4, xmm0
add ecx, 0x20
movdqa xmm0, xmm2
psrldq xmm2, 8
xorps xmm4, xmm1
pclmulqdq xmm0, xmm6, 0x10
xorps xmm4, xmm0
xorps xmm2, xmm4
movdqa xmm0, xmm4
psllq xmm2, 1
psrldq xmm0, 8
pclmulqdq xmm2, xmm6, 0
pclmulqdq xmm3, xmm5, 0x11
xorps xmm2, xmm3
xorps xmm2, xmm0
punpcklqdq xmm4, xmm2
psrlq xmm4, 0x3f
psllq xmm2, 1
xorps xmm4, xmm2
cmp ecx, r8d
jb 0x1801cc260
movq qword [rcx + rdx], xmm4
movdqa xmm2, xmm4
pclmulqdq xmm2, xmm5, 0
movdqa xmm1, xmm2
movdqa xmm3, xmm4
pclmulqdq xmm3, xmm5, 0x10
pslldq xmm1, 8
movdqa xmm0, xmm4
pclmulqdq xmm0, xmm5, 1
xorps xmm3, xmm0
movdqa xmm0, xmm2
xorps xmm3, xmm1
psrldq xmm2, 8
pclmulqdq xmm0, xmm6, 0x10
xorps xmm3, xmm0
movdqa xmm0, xmm4
xorps xmm2, xmm3
movdqa xmm1, xmm3
psllq xmm2, 1
pclmulqdq xmm2, xmm6, 0
movaps xmm6, xmmword [rsp]
pclmulqdq xmm0, xmm5, 0x11
xorps xmm2, xmm0
psrldq xmm1, 8
xorps xmm2, xmm1
punpcklqdq xmm3, xmm2
psrlq xmm3, 0x3f
psllq xmm2, 1
xorps xmm3, xmm2
movdqu xmmword [rcx + rdx + 0x10], xmm3
movdqu xmmword [rcx + rdx + 8], xmm4
movq qword [rcx + rdx + 8], xmm3
add rsp, 0x18
ret

Function at 0x1801cd538
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1801cd572
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1801cd577
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1801cd5c0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1801cd5c0
dec r8
sub rdx, 1
jne 0x1801cd5a6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1801e48d0
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.1801cfd20
sub rsp, rax
mov rax, qword [0x1802edb40]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1801f9d48
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1801e491f
mov rax, rbp
jmp 0x1801e4a27
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 + 0x2f9730]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1801f27f8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x2f9730]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1801e4a23
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 0x1801e4a23
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1801f27f8
test rax, rax
js 0x1801e4a23
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1801e4a23
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1801e4a15
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1801e4a15
cmp byte [rcx], 0xd
jne 0x1801e49fb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1801e4a0a
cmp byte [rcx + 1], 0xa
jne 0x1801e4a0a
inc rcx
jmp 0x1801e4a0a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2eddd0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1801e49dd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1801e4a27
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1801cf080
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 0x1801ef8fc
Capabilities:
Parse pe header

Disassembly:
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 0x1801ef96b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1801ef96b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1801ef96b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1801ef96b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1801ef96b
cmp dword [rcx + 0x84], 0xe
jbe 0x1801ef96b
cmp dword [rcx + 0xf8], 0
je 0x1801ef96b
mov ecx, ebx
call fcn.1801efa1c
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.1801ef7f8
nop
cmp dword [rbp + 0x20], 0
je 0x1801ef9b9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1801ef9c4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1801ef8fc
Function at 0x1801efab8
Capabilities:
Parse pe header

Disassembly:
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 0x1801ef96b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1801ef96b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1801ef96b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1801ef96b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1801ef96b
cmp dword [rcx + 0x84], 0xe
jbe 0x1801ef96b
cmp dword [rcx + 0xf8], 0
je 0x1801ef96b
mov ecx, ebx
call fcn.1801efa1c
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.1801ef7f8
nop
cmp dword [rbp + 0x20], 0
je 0x1801ef9b9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1801ef9c4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1801ef8fc

Function at 0x1801efc40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1801efc77
call fcn.1801ec6bc
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.1801dde58
xor eax, eax
jmp 0x1801efd05
mov rdx, r9
mov rcx, r8
call fcn.1801efbdc
mov rbx, rax
test rax, rax
je 0x1801efd02
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1801efb08]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1801efcef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1801ec630
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1801efcd6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1801efce5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1801fa0d8
jmp 0x1801efd02
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1801efcff
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1801f1bfc
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1802edb40]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x18023a150]
mov rbp, rcx
call fcn.180201d18
xor edi, edi
test rax, rax
je 0x1801f1ce2
mov ebx, edi
call fcn.1801ec6bc
mov r14d, dword [rax]
call fcn.1801ec6bc
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.180201c64
mov rsi, rax
test rax, rax
je 0x1801f1c73
call fcn.1801ec6bc
mov dword [rax], r14d
jmp 0x1801f1c9d
call fcn.1801ec6bc
cmp dword [rax], 0x22
jne 0x1801f1cda
call fcn.1801ec6bc
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.180201c64
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1801f1cda
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1801f1ca1
cmp rax, 3
je 0x1801f1cbc
mov rcx, rsi
call fcn.1801f1b58
test al, al
je 0x1801f1ccd
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1801f1ccd
mov dil, 1
mov rcx, rbx
call fcn.1801dda58
mov al, dil
jmp 0x1801f1ce4
mov rcx, rbx
call fcn.1801dda58
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1801cf080
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1801f7fc4
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, [0x1802f9730]
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 0x1801f801b
cmp word [rdx], r13w
jne 0x1801f801b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1801f8020
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1801f8145
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1801f8166
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1801f8059
mov rdx, r9
mov word [rbx], cx
jmp 0x1801f8080
cmp r9, r8
jae 0x1801f8090
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 0x1801f803a
jmp 0x1801f8145
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 0x1801f813a
cmp dword [rsp + 0x80], esi
je 0x1801f813a
lea r8, [0x1802f9730]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1801f8112
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1801f80e2
mov word [rbx], r13w
jmp 0x1801f8142
mov ecx, reloc.WS2_32.dll_listen
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 0x1801f80ef
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1801f8142
cmp word [rsp + 0x70], r13w
jne 0x1801f811f
cmp rbx, r14
je 0x1801f80dc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1801f2800
cmp word [rsp + 0x70], r13w
je 0x1801f8145
mov ecx, reloc.WS2_32.dll_listen
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, [0x1802f9730]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1801f813f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1801f8145
Function at 0x1801ffa94
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1801ffaaa
mov al, 1
jmp 0x1801ffb0a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1801ffabb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1801ffb08
mov ecx, dword [rcx + 0x18]
nop
call fcn.180201698
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1801ffb08
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1801ffb08
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1801ffb08
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1801ffb0a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1802017a8
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.1801f2800
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1801f2800
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1802018f8
cmp rax, 0xffffffffffffffff
je 0x1802018f8
xor edi, edi
test rbp, rbp
jle 0x1802018a3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1801fc554
mov rbx, rax
test rax, rax
jne 0x180201830
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180201899
mov edx, 0x8000
mov ecx, r14d
call fcn.180201108
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.1801f937c
cmp eax, 0xffffffff
je 0x180201879
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180201840
mov edx, r15d
mov ecx, r14d
call fcn.180201108
jmp 0x180201899
cmp byte [rsi + 0x38], dil
je 0x180201890
cmp dword [rsi + 0x34], 5
jne 0x180201890
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x180201899
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1801fa0d8
jmp 0x18020190c
jns 0x18020190c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1801f2800
cmp rax, 0xffffffffffffffff
jne 0x1802018c4
cmp byte [rsi + 0x30], dil
je 0x18020190c
mov edi, dword [rsi + 0x2c]
jmp 0x18020190c
mov ecx, r14d
call fcn.180201698
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18020190c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x18020190c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180201905
mov eax, dword [rsi + 0x2c]
jmp 0x18020190a
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1801f2800
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