joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013dc30
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x68
movdqa xmm2, xmmword [0x1402772f0]
mov r10, rcx
movdqa xmm3, xmmword [0x1402772a0]
mov rax, rcx
movdqa xmm4, xmmword [0x140277310]
mov r11, r8
movdqa xmm5, xmmword [0x1402771f0]
lea r8, [rcx + 0x1c00]
movdqu xmm0, xmmword [r9]
lea rcx, [rdx - 0x1c00]
movdqu xmm1, xmmword [r9 + 0x10]
add rcx, rax
movaps xmmword [rsp + 0x50], xmm6
mov edx, 2
movdqu xmm6, xmmword [r9 + 0x20]
movaps xmmword [rsp + 0x40], xmm7
movdqu xmm7, xmmword [r9 + 0x30]
movaps xmmword [rsp + 0x30], xmm8
movdqa xmm8, xmmword [0x1402772c0]
movaps xmmword [rsp + 0x20], xmm9
movdqa xmm9, xmmword [0x140277150]
movaps xmmword [rsp + 0x10], xmm10
movaps xmmword [rsp], xmm11
movdqa xmm11, xmmword [0x1402771b0]
movdqa xmm10, xmmword [0x140277190]
nop
cmp rax, rcx
jae 0x14013dd83
nop dword [rax]
aesenc xmm2, xmmword [rax]
aesdec xmm3, xmmword [rax + 0x10]
aesenc xmm4, xmmword [rax + 0x20]
aesdec xmm5, xmmword [rax + 0x30]
aesenc xmm2, xmmword [rax + 0x40]
aesdec xmm3, xmmword [rax + 0x50]
aesenc xmm4, xmmword [rax + 0x60]
aesdec xmm5, xmmword [rax + 0x70]
aesdec xmm0, xmm8
movdqu xmmword [rax], xmm0
aesenc xmm1, xmm9
movdqu xmmword [rax + 0x10], xmm1
aesdec xmm6, xmm10
movdqu xmmword [rax + 0x20], xmm6
aesenc xmm7, xmm11
movdqu xmmword [rax + 0x30], xmm7
aesdec xmm0, xmm8
movdqu xmmword [rax + 0x40], xmm0
aesenc xmm1, xmm9
movdqu xmmword [rax + 0x50], xmm1
aesdec xmm6, xmm10
aesenc xmm7, xmm11
movdqu xmmword [rax + 0x60], xmm6
movdqu xmmword [rax + 0x70], xmm7
prefetcht0 byte [r8]
prefetcht0 byte [r8 + 0x40]
sub rax, 0xffffffffffffff80
lea r8, [r8 + 0x80]
cmp rax, rcx
jb 0x14013dce0
add rcx, 0x1c00
mov r8, r10
sub rdx, 1
jne 0x14013dcd0
movaps xmm8, xmmword [rsp + 0x30]
movaps xmm9, xmmword [rsp + 0x20]
movaps xmm10, xmmword [rsp + 0x10]
movaps xmm11, xmmword [rsp]
movdqu xmmword [r9], xmm0
movdqa xmm0, xmmword [0x140277120]
movdqu xmmword [r9 + 0x10], xmm1
movdqa xmm1, xmmword [0x140277320]
movdqu xmmword [r9 + 0x20], xmm6
movaps xmm6, xmmword [rsp + 0x50]
movdqu xmmword [r9 + 0x30], xmm7
movaps xmm7, xmmword [rsp + 0x40]
aesenc xmm2, xmm0
aesdec xmm3, xmm0
aesenc xmm4, xmm0
aesdec xmm5, xmm0
aesenc xmm2, xmm1
aesdec xmm3, xmm1
aesenc xmm4, xmm1
aesdec xmm5, xmm1
movdqu xmmword [r11], xmm2
movdqu xmmword [r11 + 0x10], xmm3
movdqu xmmword [r11 + 0x20], xmm4
movdqu xmmword [r11 + 0x30], xmm5
add rsp, 0x68
ret
Function at 0x140146ad0
Capabilities:
Hash data using sha512

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140297200]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140146bce
lea rax, [rdx - 1]
cmp rax, 0x3f
ja 0x140146bb5
xor eax, eax
mov byte [rsp + 0x20], dil
xor edx, edx
mov qword [rsp + 0x32], rax
mov r8d, 0xf0
mov dword [rsp + 0x3a], eax
mov word [rsp + 0x3e], ax
mov word [rsp + 0x21], 0x100
mov byte [rsp + 0x23], 1
mov dword [rsp + 0x24], 0
mov word [rsp + 0x30], 0
call fcn.140205130
movaps xmm0, xmmword [0x14022b8c0]
mov rax, qword [rsp + 0x20]
movups xmmword [rbx], xmm0
movaps xmm1, xmmword [0x14022b8d0]
movups xmmword [rbx + 0x10], xmm1
movaps xmm0, xmmword [0x14022b8e0]
movups xmmword [rbx + 0x20], xmm0
movaps xmm1, xmmword [0x14022b8f0]
xorps xmm0, xmm0
movups xmmword [rbx + 0x30], xmm1
xor qword [rbx], rax
mov rax, qword [rsp + 0x30]
xor qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x38]
xor qword [rbx + 0x18], rax
movq rax, xmm0
xor qword [rbx + 0x20], rax
xor qword [rbx + 8], 0
psrldq xmm0, 8
movq rax, xmm0
xor qword [rbx + 0x28], rax
movzx eax, dil
mov dword [rbx + 0xe4], eax
xor eax, eax
jmp 0x140146bd3
cmp byte [rcx + 0xe8], 0
je 0x140146bc6
mov qword [rcx + 0x58], 0xffffffffffffffff
mov qword [rcx + 0x50], 0xffffffffffffffff
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401d5dd0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x14014b5b0
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx + 0xab0]
mov ecx, dword [0x1402a1218]
movdqa xmm4, xmmword [0x1402772c0]
add rcx, rax
movdqa xmm5, xmmword [0x140277150]
movdqu xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rdx + 0x10]
movdqu xmm2, xmmword [rdx + 0x20]
movdqu xmm3, xmmword [rdx + 0x30]
movaps xmmword [rsp + 0x10], xmm6
movdqa xmm6, xmmword [0x140277190]
movaps xmmword [rsp], xmm7
movdqa xmm7, xmmword [0x1402771b0]
cmp rax, rcx
jae 0x14014b640
nop word [rax + rax]
aesdec xmm0, xmm4
aesenc xmm1, xmm5
aesdec xmm2, xmm6
aesenc xmm3, xmm7
movdqu xmmword [rax], xmm0
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax + 0x20], xmm2
movdqu xmmword [rax + 0x30], xmm3
add rax, 0x40
cmp rax, rcx
jb 0x14014b610
movaps xmm6, xmmword [rsp + 0x10]
movaps xmm7, xmmword [rsp]
movdqu xmmword [rdx], xmm0
movdqu xmmword [rdx + 0x10], xmm1
movdqu xmmword [rdx + 0x20], xmm2
movdqu xmmword [rdx + 0x30], xmm3
add rsp, 0x28
ret
Function at 0x1401557f0
Capabilities:
Delete service
Stop service

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140297200]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x140155818
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
jne 0x140155836
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401d5dd0
add rsp, 0x50
pop rbx
ret
cmp byte [rbx], 0
mov qword [rsp + 0x68], rdi
mov dil, 1
jne 0x14015588b
lea r8, [rsp + 0x20]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, qword [rbx + 0x18]
test eax, eax
setne dil
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14015588b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.e_43_1me_1_37m_msr_____e_0m
mov ecx, 3
mov r9d, eax
lea rdx, str._s_e_0_31mfailed_to_remove_WinRing0_driver__error__ue_0m
call fcn.1400252b0
xor dil, dil
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, dil
mov qword [rbx + 0x18], 0
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401d5dd0
add rsp, 0x50
pop rbx
ret
Function at 0x140158d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, rcx
xor edi, edi
mov rax, qword [rcx + 8]
mov rdx, qword [rax + 0x10]
mov rdx, qword [rdx + 8]
add rdx, 0x88
call fcn.140159720
lea ecx, [rdi + 0x40]
call fcn.1401d5df0
mov rsi, rax
mov qword [rsp + 0x48], rax
mov r14, qword [rbp + 8]
lea rbx, [rax + 8]
lea rax, vtable.xmrig::Httpd.0
mov qword [rsi], rax
lea rax, vtable.xmrig::Httpd.1.0
mov qword [rbx], rax
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rdi
mov qword [rsi + 0x20], rdi
mov qword [rsi + 0x28], rdi
mov word [rsi + 0x30], di
mov qword [rsi + 0x38], rdi
lea ecx, [rdi + 0x20]
call fcn.1401d5df0
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rcx, vtable.std::_Ref_count_obj2_class_xmrig::HttpListener_.0
mov qword [rax], rcx
lea rcx, [rax + 0x10]
lea rdx, vtable.xmrig::HttpListener.0
mov qword [rcx], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x18], rcx
mov rbx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rbx, rbx
je 0x140158e7d
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140158e7d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140158e7d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + htons]
mov qword [rsp + 0x40], rsi
mov rcx, qword [r14 + 0x10]
add rcx, 0x10
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x140158e9e
mov qword [rdx], rsi
add qword [rcx + 8], 8
jmp 0x140158ea9
lea r8, [rsp + 0x40]
call fcn.140025300
nop
mov qword [rbp + 0x38], rsi
mov rcx, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp fcn.14005a2f0

Function at 0x140159ba0
Capabilities:
Encode data using xor

Disassembly:
lea rax, [rdx + 0x3f8]
lea r8, [rcx + 0x3f8]
cmp rcx, rax
ja 0x140159bd3
cmp r8, rdx
jb 0x140159bd3
sub rdx, rcx
mov r8d, 0x80
mov rax, qword [rdx + rcx]
xor qword [rcx], rax
lea rcx, [rcx + 8]
sub r8, 1
jne 0x140159bc1
ret
lea rax, [rcx + 0x10]
sub rdx, rcx
mov ecx, 0x10
nop
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmm1, xmmword [rdx + rax - 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 [rdx + rax - 0x20]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
sub rcx, 1
jne 0x140159be0
ret
Function at 0x140166660
Capabilities:
Hash data using sha256

Disassembly:
mov r11, rsp
push rbx
push rsi
push r14
sub rsp, 0xc0
mov rax, qword [0x140297200]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rsi, r8
mov rbx, rdx
mov r14, rcx
movups xmm0, xmmword [0x14022d2e0]
movups xmm1, xmmword [0x14022d2f0]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [r11 - 0x58], xmm1
mov qword [r11 - 0x48], 0
cmp r8, 0x80
jae 0x1401666be
lea rcx, [rsp + 0x30]
call fcn.1401664d0
jmp 0x140166724
mov qword [rsp + 0xb8], rbp
mov qword [rsp + 0xb0], rdi
mov rdi, rsi
shr rdi, 6
imul rbp, rdi, 0xffffffffffffffc0
add rbp, rsi
nop dword [rax]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140163e90
add rbx, 0x40
sub rdi, 1
jne 0x1401666e0
mov rdi, qword [rsp + 0xb0]
test rbp, rbp
je 0x140166714
mov r8, rbp
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.140204a90
add qword [rsp + 0x90], rsi
mov rbp, qword [rsp + 0xb8]
mov r9, r14
lea rcx, [rsp + 0x30]
call fcn.140166580
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401d5dd0
add rsp, 0xc0
pop r14
pop rsi
pop rbx
ret
Function at 0x1401cadb0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x140297068]
cmp eax, 1
jbe 0x1401cadf9
mov rdx, qword [0x14029b278]
test rdx, rdx
je 0x1401cadf1
lea ecx, [rax - 1]
call rdx
movzx ecx, ax
mov eax, dword [0x140297068]
shl eax, 6
add eax, 0xffffffc0
add eax, ecx
add rsp, 0x58
ret
shl eax, 6
add rsp, 0x58
ret
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x1401d0320
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
sub rsp, 0x78
mov rax, qword [0x140297200]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp byte [rcx], 0x2d
mov r13, r8
mov r12, rdx
jne 0x1401d034f
cmp byte [rcx + 1], 0
jne 0x1401d034f
xor eax, eax
jmp 0x1401d0354
sbb eax, eax
or eax, 1
mov qword [rsp + 0xb8], rsi
lea rbx, str._dev_stdin
test eax, eax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], r14
lea rdx, [0x1402111ec]
cmovne rbx, rcx
mov qword [rsp + 0x60], r15
mov rcx, rbx
call fcn.1401ee89c
mov rbp, rax
test rax, rax
je 0x1401d0469
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov edi, 0x1000
call fcn.1401ec4e8
test eax, eax
jne 0x1401d03be
mov eax, 0x8000
test word [rsp + 0x26], ax
je 0x1401d03be
mov eax, dword [rsp + 0x34]
inc eax
movsxd rdi, eax
lea rcx, [rdi + 1]
call fcn.1401e1af8
mov rsi, rax
test rax, rax
je 0x1401d0461
mov r9, rbp
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.1401e4d70
mov r15, rax
mov byte [rax + rsi], 0
cmp rax, rdi
jne 0x1401d0441
nop dword [rax]
nop word [rax + rax]
add rdi, rdi
mov rcx, rsi
lea rdx, [rdi + 1]
call fcn.1401e1864
mov r14, rax
test rax, rax
je 0x1401d0459
mov rbx, rdi
lea rcx, [rax + r15]
shr rbx, 1
mov r9, rbp
mov r8, rbx
mov edx, 1
mov rsi, rax
call fcn.1401e4d70
add r15, rax
mov byte [rsi + r15], 0
cmp rax, rbx
je 0x1401d0400
mov rcx, rbp
call fcn.1401e44bc
lea rax, [r15 + 1]
mov qword [r12], rsi
mov qword [r13], rax
xor eax, eax
jmp 0x1401d046e
mov rcx, rsi
call fcn.1401e159c
mov rcx, rbp
call fcn.1401e44bc
mov eax, 0xffffffff
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401d5dd0
add rsp, 0x78
pop r13
pop r12
pop rbp
pop rbx
ret

Function at 0x1401d6d04
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401d6d4e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401d6d4e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401d6d4e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401d6d4e
cmp dword [rcx + 0x84], 0xe
jbe 0x1401d6d4e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401d6d50
xor al, al
add rsp, 0x28
ret
Function at 0x1401e4248
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 0x1401e427f
call fcn.1401e1568
mov dword [rax], 0x16
call fcn.1401dd12c
xor eax, eax
jmp 0x1401e430d
mov rdx, r9
mov rcx, r8
call fcn.1401e41e4
mov rbx, rax
test rax, rax
je 0x1401e430a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1401e4110]
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 0x1401e42f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401e14dc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401e42de
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401e42ed
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1401f3730
jmp 0x1401e430a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401e4307
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 0x1401ec300
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 [0x140297200]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140215418]
mov rbp, rcx
call fcn.1401fa2e0
xor edi, edi
test rax, rax
je 0x1401ec3e6
mov ebx, edi
call fcn.1401e1568
mov r14d, dword [rax]
call fcn.1401e1568
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1401fa22c
mov rsi, rax
test rax, rax
je 0x1401ec377
call fcn.1401e1568
mov dword [rax], r14d
jmp 0x1401ec3a1
call fcn.1401e1568
cmp dword [rax], 0x22
jne 0x1401ec3de
call fcn.1401e1568
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1401fa22c
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1401ec3de
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1401ec3a5
cmp rax, 3
je 0x1401ec3c0
mov rcx, rsi
call fcn.1401ec25c
test al, al
je 0x1401ec3d1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1401ec3d1
mov dil, 1
mov rcx, rbx
call fcn.1401e159c
mov al, dil
jmp 0x1401ec3e8
mov rcx, rbx
call fcn.1401e159c
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401d5dd0
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 0x1401ec928
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, [0x14029c690]
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 0x1401ec97f
cmp word [rdx], r13w
jne 0x1401ec97f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401ec984
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401ecaa9
mov r11d, ntohs
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401ecaca
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401ec9bd
mov rdx, r9
mov word [rbx], cx
jmp 0x1401ec9e4
cmp r9, r8
jae 0x1401ec9f4
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 0x1401ec99e
jmp 0x1401ecaa9
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 0x1401eca9e
cmp dword [rsp + 0x80], esi
je 0x1401eca9e
lea r8, [0x14029c690]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401eca76
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401eca46
mov word [rbx], r13w
jmp 0x1401ecaa6
mov ecx, ntohs
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 0x1401eca53
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401ecaa6
cmp word [rsp + 0x70], r13w
jne 0x1401eca83
cmp rbx, r14
je 0x1401eca40
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401f9da8
cmp word [rsp + 0x70], r13w
je 0x1401ecaa9
mov ecx, ntohs
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, [0x14029c690]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401ecaa3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401ecaa9
Function at 0x1401eff80
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401efd7c

Function at 0x1401f32fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401f3312
mov al, 1
jmp 0x1401f3372
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401f3323
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401f3370
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401dd890
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401f3370
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401f3370
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401f3370
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401f3372
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401f984c
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.1401d6b50
sub rsp, rax
mov rax, qword [0x140297200]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401e1058
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401f989b
mov rax, rbp
jmp 0x1401f99a3
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 + 0x29c690]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401f9da0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x29c690]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401f999f
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 0x1401f999f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401f9da0
test rax, rax
js 0x1401f999f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401f999f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401f9991
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401f9991
cmp byte [rcx], 0xd
jne 0x1401f9977
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401f9986
cmp byte [rcx + 1], 0xa
jne 0x1401f9986
inc rcx
jmp 0x1401f9986
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x297460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401f9959
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401f99a3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401d5dd0
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 0x1401fa834
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.1401f9da8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401f9da8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401fa984
cmp rax, 0xffffffffffffffff
je 0x1401fa984
xor edi, edi
test rbp, rbp
jle 0x1401fa92f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401f36b8
mov rbx, rax
test rax, rax
jne 0x1401fa8bc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401fa925
mov edx, 0x8000
mov ecx, r14d
call fcn.1401f1094
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.1401f6334
cmp eax, 0xffffffff
je 0x1401fa905
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401fa8cc
mov edx, r15d
mov ecx, r14d
call fcn.1401f1094
jmp 0x1401fa925
cmp byte [rsi + 0x38], dil
je 0x1401fa91c
cmp dword [rsi + 0x34], 5
jne 0x1401fa91c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohs
cmp byte [rsi + 0x30], dil
je 0x1401fa925
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401f3730
jmp 0x1401fa998
jns 0x1401fa998
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401f9da8
cmp rax, 0xffffffffffffffff
jne 0x1401fa950
cmp byte [rsi + 0x30], dil
je 0x1401fa998
mov edi, dword [rsi + 0x2c]
jmp 0x1401fa998
mov ecx, r14d
call fcn.1401dd890
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401fa998
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, ntohs
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohs
jmp 0x1401fa998
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401fa991
mov eax, dword [rsi + 0x2c]
jmp 0x1401fa996
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401f9da8
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