joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401c6db4
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor edx, edx
mov r8d, 0x114
lea rcx, [rsp + 0x40]
call fcn.14003a220
mov dword [rsp + 0x40], 0x114
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x44], 6
jb 0x1401c6e11
cmp dword [rsp + 0x48], 2
jae 0x1401c6e49
cmp dword [rsp + 0x44], 6
ja 0x1401c6e49
cmp dword [reloc.WS2_32.dll_accept], 3
jl 0x1401c6f79
call fcn.14017b628
mov rdx, rax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x44]
lea r8, str.Running_on_Windows__d._d_without_network_detector...
mov ecx, 3
call fcn.140178254
jmp 0x1401c6f79
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x1401c6e7c
cmp dword [reloc.WS2_32.dll_accept], 1
jl 0x1401c6e77
call fcn.14017b628
mov rdx, rax
lea r8, str.CoInitialize_Failed.
mov ecx, 1
call fcn.140178254
jmp 0x1401c6f79
mov byte [rbx + 0xc9], 1
mov rcx, rbx
call fcn.1401c59ec
test al, al
je 0x1401c6f3a
cmp dword [reloc.WS2_32.dll_accept], 3
jl 0x1401c6eb5
call fcn.14017b628
mov rdx, rax
lea r8, str.create_network_list_manager...
mov ecx, 3
call fcn.140178254
lea rax, [rbx + 0x28]
mov qword [rsp + 0x20], rax
lea r9, [0x14035ded0]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x14035df10]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x1401c6f00
cmp dword [reloc.WS2_32.dll_accept], 1
jl 0x1401c6f32
call fcn.14017b628
mov rdx, rax
lea r8, str.Unable_to_CoCreateInstance_for_CLSID_NetworkListManager_
mov ecx, 1
call fcn.140178254
jmp 0x1401c6f32
mov rcx, rbx
call fcn.1401c5910
cmp dword [reloc.WS2_32.dll_accept], 4
jl 0x1401c6f2a
call fcn.14017b628
mov rdx, rax
lea r8, str.start_listening_to_events...
mov ecx, 4
call fcn.140178254
mov rcx, rbx
call fcn.1401c61e4
mov rcx, rbx
call fcn.1401c65cc
jmp 0x1401c6f63
cmp byte [rbx + 0xc9], 0
je 0x1401c6f79
call qword [sym.imp.ole32.dll_CoUninitialize]
mov byte [rbx + 0xc9], 0
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140038910
add rsp, 0x170
pop rbx
ret

Function at 0x1401c7924
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x68], rax
movdqa xmm0, xmmword [0x1403029b0]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.14002e8a8
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.14019a388
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1401c79ac
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401c79a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401c79e4
call fcn.1400385dc
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.14001b814
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140038910
add rsp, 0x70
pop rbx
ret
call fcn.14004689c
int3
Function at 0x1401c79ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x68], rax
movdqa xmm0, xmmword [0x1403029b0]
movdqu xmmword [rsp + 0x38], xmm0
xor bl, bl
mov byte [rsp + 0x28], bl
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.14002e8a8
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.14019a388
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1401c7a75
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401c7a70
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401c7ab6
call fcn.1400385dc
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401c7a97
test al, 0x10
jne 0x1401c7a97
mov bl, 1
lea rcx, [rsp + 0x48]
call fcn.14001b814
mov al, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140038910
add rsp, 0x70
pop rbx
ret
call fcn.14004689c
int3
Function at 0x1401c8688
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rbx, r9
mov r15, r8
mov r12, rdx
mov r14, rcx
cmp qword [r8 + 0x18], 0x10
jb 0x1401c86c1
mov r8, qword [r8]
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
cmp qword [r15 + 0x10], rcx
jbe 0x1401c86f2
movzx eax, byte [rcx + r8]
xor rdx, rax
movabs r9, 0x100000001b3
imul rdx, r9
inc rcx
cmp rcx, qword [r15 + 0x10]
jb 0x1401c86d3
mov rsi, qword [r14 + 0x30]
and rsi, rdx
mov rdi, qword [r14 + 8]
add rsi, rsi
mov rax, qword [r14 + 0x18]
cmp qword [rax + rsi*8], rdi
je 0x1401c8712
mov rdi, qword [rax + rsi*8 + 8]
mov rdi, qword [rdi]
mov rdx, qword [r14 + 0x18]
cmp rdi, qword [rdx + rsi*8]
je 0x1401c8792
mov rdi, qword [rdi + 8]
lea rdx, [rdi + 0x10]
cmp qword [rdi + 0x28], 0x10
jb 0x1401c872f
mov rdx, qword [rdi + 0x10]
mov rcx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x1401c873c
mov rcx, qword [r15]
mov r8, qword [r15 + 0x10]
cmp r8, qword [rdi + 0x20]
jne 0x1401c8712
call fcn.1402bbad0
test eax, eax
jne 0x1401c8712
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r14 + 0x10]
lea rcx, [rbx + 0x10]
xor edx, edx
call fcn.1400a8c3c
mov edx, 0x30
mov rcx, rbx
call fcn.1400385dc
mov qword [r12], rdi
mov byte [r12 + 8], 0
mov rax, r12
jmp 0x1401c8829
mov rax, qword [rbx]
cmp rdi, rax
je 0x1401c87cb
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rbx
mov rdx, qword [rdi + 8]
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rbx + 8]
mov qword [rax + 8], rcx
mov qword [rbx + 8], rdx
mov rdx, qword [r14 + 0x18]
mov rax, qword [rdx + rsi*8]
cmp rax, qword [r14 + 8]
jne 0x1401c87e4
mov qword [rdx + rsi*8], rbx
mov rax, qword [r14 + 0x18]
mov qword [rax + rsi*8 + 8], rbx
jmp 0x1401c8813
cmp rax, rdi
jne 0x1401c87ef
mov qword [rdx + rsi*8], rbx
jmp 0x1401c8813
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + rsi*8 + 8], rcx
cmp rcx, rbx
je 0x1401c8813
mov rdx, qword [r14 + 0x18]
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + rsi*8 + 8], rcx
mov rcx, r14
call fcn.1401cae6c
nop
mov qword [r12], rbx
mov byte [r12 + 8], 1
mov rax, r12
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1401cb4d4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [r8 + 0x18], 0x10
mov rsi, r8
mov r14, rdx
mov rbp, rcx
jb 0x1401cb4ff
mov r8, qword [r8]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
cmp qword [rsi + 0x10], rcx
jbe 0x1401cb530
movzx eax, byte [rcx + r8]
movabs r9, 0x100000001b3
xor rdx, rax
inc rcx
imul rdx, r9
cmp rcx, qword [rsi + 0x10]
jb 0x1401cb511
mov r15, qword [rbp + 0x30]
mov rbx, qword [rbp + 0x18]
and r15, rdx
add r15, r15
mov rbx, qword [rbx + r15*8]
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp + 8]
cmp qword [rcx + r15*8], rax
je 0x1401cb558
mov rax, qword [rcx + r15*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x1401cb5f5
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x1401cb56e
mov rdx, qword [rsi]
cmp qword [rbx + 0x28], 0x10
lea rcx, [rbx + 0x10]
jb 0x1401cb57d
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x20]
cmp r8, qword [rsi + 0x10]
jne 0x1401cb590
call fcn.1402bbad0
test eax, eax
je 0x1401cb595
mov rbx, qword [rbx]
jmp 0x1401cb542
mov rdi, rbx
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp + 8]
cmp qword [rcx + r15*8], rax
je 0x1401cb5ae
mov rax, qword [rcx + r15*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x1401cb5e7
cmp qword [rbx + 0x28], 0x10
lea rdx, [rbx + 0x10]
jb 0x1401cb5c2
mov rdx, qword [rbx + 0x10]
cmp qword [rsi + 0x18], 0x10
mov rcx, rsi
jb 0x1401cb5cf
mov rcx, qword [rsi]
mov r8, qword [rsi + 0x10]
cmp r8, qword [rbx + 0x20]
jne 0x1401cb5e7
call fcn.1402bbad0
test eax, eax
jne 0x1401cb5e7
mov rbx, qword [rbx]
jmp 0x1401cb598
cmp rdi, rbx
je 0x1401cb5f5
mov qword [r14], rdi
mov qword [r14 + 8], rbx
jmp 0x1401cb600
mov rax, qword [rbp + 8]
mov qword [r14], rax
mov qword [r14 + 8], rax
mov rbx, qword [rsp + 0x40]
mov rax, r14
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1401cb690
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea r10, [r8 + 0x10]
mov rdi, r8
cmp qword [r10 + 0x18], 0x10
mov rsi, rdx
mov r9, rcx
mov r11, r10
jb 0x1401cb6b9
mov r11, qword [r10]
xor r8d, r8d
movabs rcx, 0xcbf29ce484222325
cmp qword [r10 + 0x10], r8
jbe 0x1401cb6eb
movzx eax, byte [r8 + r11]
movabs rdx, 0x100000001b3
xor rcx, rax
inc r8
imul rcx, rdx
cmp r8, qword [r10 + 0x10]
jb 0x1401cb6cc
mov rdx, qword [r9 + 0x30]
and rdx, rcx
mov rcx, qword [r9 + 0x18]
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rdi
jne 0x1401cb723
cmp qword [rcx + rdx*8], rdi
jne 0x1401cb718
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1401cb71c
mov rax, qword [rdi + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1401cb730
cmp qword [rcx + rdx*8], rdi
jne 0x1401cb730
mov rax, qword [rdi]
mov qword [rcx + rdx*8], rax
mov rax, qword [rdi + 8]
mov rcx, r10
mov rbx, qword [rdi]
mov qword [rax], rbx
mov rdx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
xor edx, edx
dec qword [r9 + 0x10]
call fcn.1400a8c3c
mov edx, 0x30
mov rcx, rdi
call fcn.1400385dc
mov qword [rsi], rbx
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401ec2f4
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14014ffa8
or dword [rbx + 0x1384], 0xffffffff
lea r8, [rbx + 8]
mov dword [rbx + 4], eax
mov ecx, 1
mov r9d, 0x26f
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
inc ecx
mov dword [r8], eax
lea r8, [r8 + 4]
sub r9, 1
jne 0x1401ec31b
movabs rax, 0x3ff0000000000000
mov dword [rbx], 0x270
and qword [rbx + 0x1388], r9
mov qword [rbx + 0x1390], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140273c40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, rsp
mov ecx, send
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
mov qword [rax], 0
mov ecx, 0x28
call fcn.14025ef10
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140273c95
mov eax, 7
jmp 0x140273d70
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x140273cac
mov ecx, reloc.OLEAUT32.dll_SetErrorInfo
call fcn.140252f70
test eax, eax
je 0x140273cbc
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
jmp 0x140273d24
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x30]
lea r8, [0x140273e30]
xor edx, edx
xor ecx, ecx
call fcn.1402bd198
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
jne 0x140273d24
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x10], 0
jne 0x140273d61
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x38]
call qword [str.0B__]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x1402c09c4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1402c09e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004695c
or eax, 0xffffffff
jmp 0x1402c09e6
xor eax, eax
add rsp, 0x28
ret

Function at 0x1402c99fc
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x14035a970]
mov rbp, rcx
call fcn.140057134
xor edi, edi
test rax, rax
je 0x1402c9ae2
mov ebx, edi
call fcn.1400469e8
mov r14d, dword [rax]
call fcn.1400469e8
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.1402d0688
mov rsi, rax
test rax, rax
je 0x1402c9a73
call fcn.1400469e8
mov dword [rax], r14d
jmp 0x1402c9a9d
call fcn.1400469e8
cmp dword [rax], 0x22
jne 0x1402c9ada
call fcn.1400469e8
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1402d0688
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1402c9ada
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1402c9aa1
cmp rax, 3
je 0x1402c9abc
mov rcx, rsi
call fcn.1402c9958
test al, al
je 0x1402c9acd
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1402c9acd
mov dil, 1
mov rcx, rbx
call fcn.140046478
mov al, dil
jmp 0x1402c9ae4
mov rcx, rbx
call fcn.140046478
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140038910
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1402cfc5c
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 0x1402cfc8e
call fcn.1400469e8
mov dword [rax], socket
call fcn.14004687c
jmp 0x1402cfdad
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1402cfdad
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1402cfdad
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1402cfcbd
lock or dword [rcx + 0x14], 0x10
jmp 0x1402cfdad
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1402cfcd1
call fcn.14006334c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140059f78
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140061be0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1402cfd9b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1402cfd66
mov rcx, rsi
call fcn.140059f78
cmp eax, edi
je 0x1402cfd51
mov rcx, rsi
call fcn.140059f78
cmp eax, 0xfffffffe
je 0x1402cfd51
mov rcx, rsi
call fcn.140059f78
movsxd rbx, eax
lea r14, [0x1403e1400]
mov rcx, rsi
sar rbx, 6
call fcn.140059f78
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1402cfd58
lea rdx, [0x1403c27e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1402cfd66
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1402cfd8a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1402cfd8a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1402cfd8a
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 0x1402cfdb0
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 0x1402cfdc8
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1402cfaea
call fcn.1400469e8
mov dword [rax], socket
call fcn.14004687c
jmp 0x1402cfc3a
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1402cfc3a
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1402cfc3a
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1402cfb19
lock or dword [rcx + 0x14], 0x10
jmp 0x1402cfc3a
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1402cfb2d
call fcn.14006334c
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x1402cfb3d
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x1402cfb40
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140059f78
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.140061be0
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1402cfc28
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1402cfbd3
mov rcx, rbx
call fcn.140059f78
cmp eax, 0xffffffff
je 0x1402cfbbe
mov rcx, rbx
call fcn.140059f78
cmp eax, 0xfffffffe
je 0x1402cfbbe
mov rcx, rbx
call fcn.140059f78
movsxd rdi, eax
lea rsi, [0x1403e1400]
mov rcx, rbx
sar rdi, 6
call fcn.140059f78
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1402cfbc5
lea rdx, [0x1403c27e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1402cfbd3
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1402cfbf7
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1402cfbf7
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1402cfbf7
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x1402cfc15
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x1402cfc20
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x1402cfc3f
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1402cfab4
Function at 0x1402d00e0
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.140169730
sub rsp, rax
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140059f78
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1402d012f
mov rax, rbp
jmp 0x1402d0237
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 + 0x3e1400]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006164c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3e1400]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1402d0233
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 0x1402d0233
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006164c
test rax, rax
js 0x1402d0233
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1402d0233
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1402d0225
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1402d0225
cmp byte [rcx], 0xd
jne 0x1402d020b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1402d021a
cmp byte [rcx + 1], 0xa
jne 0x1402d021a
inc rcx
jmp 0x1402d021a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3c2b10]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1402d01ed
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1402d0237
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140038910
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 0x1402d289c
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.140061654
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140061654
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1402d29ec
cmp rax, 0xffffffffffffffff
je 0x1402d29ec
xor edi, edi
test rbp, rbp
jle 0x1402d2997
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140051860
mov rbx, rax
test rax, rax
jne 0x1402d2924
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1402d298d
mov edx, 0x8000
mov ecx, r14d
call fcn.140047e50
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.14005dd64
cmp eax, 0xffffffff
je 0x1402d296d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1402d2934
mov edx, r15d
mov ecx, r14d
call fcn.140047e50
jmp 0x1402d298d
cmp byte [rsi + 0x38], dil
je 0x1402d2984
cmp dword [rsi + 0x34], 5
jne 0x1402d2984
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1402d298d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140050ef0
jmp 0x1402d2a00
jns 0x1402d2a00
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140061654
cmp rax, 0xffffffffffffffff
jne 0x1402d29b8
cmp byte [rsi + 0x30], dil
je 0x1402d2a00
mov edi, dword [rsi + 0x2c]
jmp 0x1402d2a00
mov ecx, r14d
call fcn.140055504
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1402d2a00
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 0x1402d2a00
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1402d29f9
mov eax, dword [rsi + 0x2c]
jmp 0x1402d29fe
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140061654
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