joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140275ab0
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x88
mov rax, qword [rsp + 0xb0]
lea r8, [r8*8]
movaps xmmword [rsp + 0x70], xmm6
lea r9, [r9*8]
movaps xmmword [rsp + 0x60], xmm7
movq xmm0, r9
movaps xmmword [rsp + 0x50], xmm8
movq xmm7, r8
movdqu xmm6, xmmword [rax + 0x20]
mov r8d, 7
movdqu xmm3, xmmword [rax + 0x40]
movdqu xmm5, xmmword [rax + 0x30]
movdqu xmm8, xmmword [rax + 0x10]
movdqu xmm4, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm9
movdqu xmm9, xmmword [rax + 0x60]
movaps xmmword [rsp + 0x30], xmm10
movdqu xmm10, xmmword [rax + 0x50]
punpcklqdq xmm7, xmm0
movaps xmmword [rsp + 0x20], xmm11
xorps xmm7, xmm6
movdqu xmm11, xmmword [rax + 0x70]
nop dword [rax]
nop word [rax + rax]
movdqa xmm2, xmm4
movdqa xmm0, xmm9
movdqa xmm4, xmm11
movdqa xmm1, xmm10
aesenc xmm0, xmm11
movdqa xmm11, xmm0
movdqa xmm0, xmm3
aesenc xmm0, xmm10
movdqa xmm10, xmm0
movdqa xmm0, xmm5
aesenc xmm0, xmm3
movdqa xmm3, xmm0
movdqa xmm0, xmm8
xorps xmm3, xmm7
aesenc xmm1, xmm9
movdqa xmm9, xmm1
movdqa xmm1, xmm6
aesenc xmm0, xmm6
movdqa xmm6, xmm0
movdqa xmm0, xmm2
aesenc xmm0, xmm8
movdqa xmm8, xmm0
aesenc xmm1, xmm5
movdqa xmm5, xmm1
aesenc xmm4, xmm2
xorps xmm4, xmm7
sub r8, 1
jne 0x140275b40
movdqu xmmword [rax], xmm4
movdqu xmmword [rax + 0x20], xmm6
movdqu xmmword [rax + 0x70], xmm11
movdqu xmmword [rax + 0x60], xmm9
movdqu xmmword [rax + 0x50], xmm10
movdqu xmmword [rax + 0x40], xmm3
movdqu xmmword [rax + 0x30], xmm1
movdqu xmmword [rax + 0x10], xmm0
cmp rdx, 0x10
jne 0x140275c0a
xorps xmm3, xmm10
xorps xmm5, xmm6
xorps xmm3, xmm9
xorps xmm4, xmm0
xorps xmm3, xmm5
xorps xmm3, xmm4
movdqu xmmword [rcx], xmm3
jmp 0x140275c43
cmp rdx, 0x20
jne 0x140275c39
xorps xmm4, xmm0
xorps xmm5, xmm6
xorps xmm4, xmm5
movdqu xmmword [rcx], xmm4
movdqu xmm1, xmmword [rax + 0x60]
movdqu xmm0, xmmword [rax + 0x50]
xorps xmm1, xmmword [rax + 0x70]
xorps xmm0, xmmword [rax + 0x40]
xorps xmm1, xmm0
movdqu xmmword [rcx + 0x10], xmm1
jmp 0x140275c43
mov r8, rdx
xor edx, edx
call fcn.1402d2f00
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x60]
movaps xmm8, xmmword [rsp + 0x50]
movaps xmm9, xmmword [rsp + 0x40]
movaps xmm10, xmmword [rsp + 0x30]
movaps xmm11, xmmword [rsp + 0x20]
add rsp, 0x88
ret
Function at 0x140277980
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140423a40]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
mov rsi, r9
movups xmmword [rsp + 0x20], xmm0
mov rdi, r8
call fcn.1402d2860
movdqu xmm1, xmmword [rsp + 0x20]
lea rcx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
movdqu xmm0, xmmword [rsi + 0x20]
sub r8, rdi
xorps xmm1, xmmword [rsi + 0x50]
add rcx, rdi
xorps xmm1, xmmword [rsi + 0x40]
xor edx, edx
xorps xmm1, xmmword [rsi + 0x10]
andps xmm0, xmmword [rsi + 0x30]
xorps xmm1, xmm0
movdqu xmmword [rsp + 0x20], xmm1
call fcn.1402d2f00
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1402d2860
movdqu xmm4, xmmword [rsi + 0x50]
movdqu xmm0, xmmword [rsi + 0x40]
movdqu xmm1, xmmword [rsi + 0x30]
aesenc xmm1, xmmword [rsi + 0x40]
aesenc xmm0, xmm4
aesenc xmm4, xmmword [rsi]
movdqu xmmword [rsi + 0x50], xmm0
movdqu xmm0, xmmword [rsi + 0x20]
aesenc xmm0, xmmword [rsi + 0x30]
movdqu xmmword [rsi + 0x30], xmm0
movdqu xmm0, xmmword [rsi]
aesenc xmm0, xmmword [rsi + 0x10]
movdqu xmmword [rsi + 0x40], xmm1
movdqu xmm1, xmmword [rsi + 0x10]
aesenc xmm1, xmmword [rsi + 0x20]
movdqu xmmword [rsi + 0x10], xmm0
movdqu xmm0, xmmword [rsp + 0x20]
movdqu xmmword [rsi + 0x20], xmm1
xorps xmm4, xmm0
movdqu xmmword [rsi], xmm4
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140293710
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140277b20
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, rsp
sub rsp, 0x88
movdqa xmm3, xmmword [0x140374710]
movdqa xmm4, xmmword [0x140374720]
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
movdqu xmm8, xmmword [rdx]
movaps xmmword [rax - 0x48], xmm9
movdqu xmm9, xmmword [rdx + 0x10]
movaps xmmword [rax - 0x58], xmm10
movaps xmmword [rax - 0x68], xmm11
movdqu xmm11, xmmword [rcx]
movaps xmmword [rax - 0x78], xmm12
mov eax, 4
movdqu xmm12, xmmword [rcx + 0x10]
xorps xmm8, xmm11
movaps xmmword [rsp], xmm13
xorps xmm9, xmm12
movdqa xmm7, xmm12
movdqa xmm2, xmm11
xorps xmm7, xmm4
movdqa xmm13, xmm9
xorps xmm2, xmm3
movdqa xmm10, xmm8
nop dword [rax]
movdqa xmm0, xmm3
movdqa xmm5, xmm2
movdqa xmm1, xmm4
aesenc xmm0, xmm2
movdqa xmm6, xmm0
movdqa xmm2, xmm13
aesenc xmm1, xmm3
movdqa xmm3, xmm10
aesenc xmm2, xmm4
movdqa xmm4, xmm1
aesenc xmm4, xmm0
movdqa xmm0, xmm2
aesenc xmm3, xmm13
aesenc xmm0, xmm1
movdqa xmm1, xmm3
aesenc xmm1, xmm2
aesenc xmm5, xmm7
aesenc xmm7, xmm10
movdqa xmm10, xmm4
xorps xmm7, xmm11
movdqa xmm2, xmm7
aesenc xmm2, xmm3
movdqa xmm3, xmm0
aesenc xmm3, xmm4
movdqa xmm4, xmm1
aesenc xmm4, xmm0
movdqa xmm0, xmm2
aesenc xmm6, xmm5
aesenc xmm10, xmm6
aesenc xmm0, xmm1
aesenc xmm5, xmm7
movdqa xmm7, xmm3
xorps xmm5, xmm12
movdqa xmm1, xmm5
aesenc xmm1, xmm2
movdqa xmm2, xmm4
aesenc xmm2, xmm3
movdqa xmm3, xmm0
aesenc xmm3, xmm4
movdqa xmm4, xmm1
aesenc xmm7, xmm10
aesenc xmm6, xmm5
xorps xmm6, xmm8
movdqa xmm13, xmm6
aesenc xmm10, xmm6
xorps xmm10, xmm9
aesenc xmm4, xmm0
aesenc xmm13, xmm1
sub rax, 1
jne 0x140277ba0
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x50]
movaps xmm9, xmmword [rsp + 0x40]
movaps xmm11, xmmword [rsp + 0x20]
movaps xmm12, xmmword [rsp + 0x10]
movdqu xmmword [r8], xmm10
movaps xmm10, xmmword [rsp + 0x30]
movdqu xmmword [r8 + 0x10], xmm13
movaps xmm13, xmmword [rsp]
movdqu xmmword [r8 + 0x50], xmm7
movaps xmm7, xmmword [rsp + 0x60]
movdqu xmmword [r8 + 0x20], xmm4
movdqu xmmword [r8 + 0x30], xmm3
movdqu xmmword [r8 + 0x40], xmm2
add rsp, 0x88
ret
Function at 0x140277cf0
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x58
mov rax, qword [rsp + 0x80]
lea r8, [r8*8]
movaps xmmword [rsp + 0x40], xmm6
lea r9, [r9*8]
movaps xmmword [rsp + 0x30], xmm7
movq xmm0, r9
movq xmm7, r8
movaps xmmword [rsp + 0x20], xmm8
movdqu xmm5, xmmword [rax + 0x30]
mov r8d, 7
movdqu xmm2, xmmword [rax + 0x50]
movdqu xmm8, xmmword [rax + 0x40]
movdqu xmm3, xmmword [rax + 0x20]
movdqu xmm6, xmmword [rax + 0x10]
movdqu xmm4, xmmword [rax]
punpcklqdq xmm7, xmm0
xorps xmm7, xmm5
movdqa xmm1, xmm4
movdqa xmm0, xmm8
movdqa xmm4, xmm2
aesenc xmm0, xmm2
movdqa xmm2, xmm0
movdqa xmm0, xmm5
aesenc xmm0, xmm8
movdqa xmm8, xmm0
movdqa xmm0, xmm3
aesenc xmm0, xmm5
movdqa xmm5, xmm0
movdqa xmm0, xmm6
aesenc xmm0, xmm3
movdqa xmm3, xmm0
movdqa xmm0, xmm1
aesenc xmm0, xmm6
movdqa xmm6, xmm0
aesenc xmm4, xmm1
xorps xmm4, xmm7
sub r8, 1
jne 0x140277d51
movdqu xmmword [rax], xmm4
movdqu xmmword [rax + 0x30], xmm5
movdqu xmmword [rax + 0x50], xmm2
movdqu xmmword [rax + 0x40], xmm8
movdqu xmmword [rax + 0x20], xmm3
movdqu xmmword [rax + 0x10], xmm0
cmp rdx, 0x10
jne 0x140277de5
xorps xmm2, xmm8
xorps xmm5, xmm3
xorps xmm2, xmm5
xorps xmm4, xmm0
xorps xmm2, xmm4
movdqu xmmword [rcx], xmm2
jmp 0x140277e13
cmp rdx, 0x20
jne 0x140277e09
xorps xmm3, xmm0
xorps xmm3, xmm4
movdqu xmmword [rcx], xmm3
movdqu xmm0, xmmword [rax + 0x40]
xorps xmm0, xmmword [rax + 0x50]
xorps xmm0, xmmword [rax + 0x30]
movdqu xmmword [rcx + 0x10], xmm0
jmp 0x140277e13
mov r8, rdx
xor edx, edx
call fcn.1402d2f00
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
movaps xmm8, xmmword [rsp + 0x20]
add rsp, 0x58
ret
Function at 0x14028e260
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x14028e3f6
cmp r9, 4
jb 0x14028e29a
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 0x14028e281
xor r11d, r11d
test r9, r9
je 0x14028e3f6
cmp r9, 8
jb 0x14028e3cd
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x14028e2cc
cmp r10, r8
jae 0x14028e3cd
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x14028e2e1
cmp r10, rdx
jae 0x14028e3cd
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x14028e387
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 0x14028e320
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x14028e3bf
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 0x14028e3a0
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x14028e3f6
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 0x14028e3e0
add rsp, 8
ret

Function at 0x140294384
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1402943ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1402943ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1402943ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1402943ce
cmp dword [rcx + 0x84], 0xe
jbe 0x1402943ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1402943d0
xor al, al
add rsp, 0x28
ret
Function at 0x1402a225c
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 0x1402a2293
call fcn.1402a20e0
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1402a1f74
xor eax, eax
jmp 0x1402a2321
mov rdx, r9
mov rcx, r8
call fcn.1402a21f8
mov rbx, rax
test rax, rax
je 0x1402a231e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1402a2124]
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 0x1402a230b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1402a2054
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1402a22f2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1402a2301
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1402b68e4
jmp 0x1402a231e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1402a231b
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 0x1402aa484
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.140293a60
sub rsp, rax
mov rax, qword [0x140423a40]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1402a9aec
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1402aa4d3
mov rax, rbp
jmp 0x1402aa5db
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 + 0x42ba10]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1402badfc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x42ba10]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1402aa5d7
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 0x1402aa5d7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1402badfc
test rax, rax
js 0x1402aa5d7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1402aa5d7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1402aa5c9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1402aa5c9
cmp byte [rcx], 0xd
jne 0x1402aa5af
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1402aa5be
cmp byte [rcx + 1], 0xa
jne 0x1402aa5be
inc rcx
jmp 0x1402aa5be
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x423e80]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1402aa591
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1402aa5db
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140293710
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 0x1402ab7d8
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 [0x140423a40]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1403828f0]
mov rbp, rcx
call fcn.1402bbb20
xor edi, edi
test rax, rax
je 0x1402ab8be
mov ebx, edi
call fcn.1402a20e0
mov r14d, dword [rax]
call fcn.1402a20e0
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1402bba6c
mov rsi, rax
test rax, rax
je 0x1402ab84f
call fcn.1402a20e0
mov dword [rax], r14d
jmp 0x1402ab879
call fcn.1402a20e0
cmp dword [rax], 0x22
jne 0x1402ab8b6
call fcn.1402a20e0
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1402bba6c
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1402ab8b6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1402ab87d
cmp rax, 3
je 0x1402ab898
mov rcx, rsi
call fcn.1402ab734
test al, al
je 0x1402ab8a9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1402ab8a9
mov dil, 1
mov rcx, rbx
call fcn.1402a2108
mov al, dil
jmp 0x1402ab8c0
mov rcx, rbx
call fcn.1402a2108
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140293710
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 0x1402abd7c
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 0x1402abdeb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1402abdeb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1402abdeb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1402abdeb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1402abdeb
cmp dword [rcx + 0x84], 0xe
jbe 0x1402abdeb
cmp dword [rcx + 0xf8], 0
je 0x1402abdeb
mov ecx, ebx
call fcn.1402abe9c
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.1402abc78
nop
cmp dword [rbp + 0x20], 0
je 0x1402abe39
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1402abe44
int3
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1402abd7c

Function at 0x1402abf80
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1402abd7c
Function at 0x1402ba034
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, [0x14042ba10]
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 0x1402ba08b
cmp word [rdx], r13w
jne 0x1402ba08b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1402ba090
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1402ba1b5
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1402ba1d6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1402ba0c9
mov rdx, r9
mov word [rbx], cx
jmp 0x1402ba0f0
cmp r9, r8
jae 0x1402ba100
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 0x1402ba0aa
jmp 0x1402ba1b5
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 0x1402ba1aa
cmp dword [rsp + 0x80], esi
je 0x1402ba1aa
lea r8, [0x14042ba10]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1402ba182
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1402ba152
mov word [rbx], r13w
jmp 0x1402ba1b2
mov ecx, recv
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 0x1402ba15f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1402ba1b2
cmp word [rsp + 0x70], r13w
jne 0x1402ba18f
cmp rbx, r14
je 0x1402ba14c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1402bae04
cmp word [rsp + 0x70], r13w
je 0x1402ba1b5
mov ecx, recv
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, [0x14042ba10]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1402ba1af
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1402ba1b5
Function at 0x1402bafa0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1402bafb6
mov al, 1
jmp 0x1402bb016
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1402bafc7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1402bb014
mov ecx, dword [rcx + 0x18]
nop
call fcn.1402bb594
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1402bb014
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1402bb014
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1402bb014
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1402bb016
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1402bee10
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 0x1402bee40
xor eax, eax
jmp 0x1402bef03
mov rbp, rbx
cmp word [rax], si
je 0x1402bee65
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1402bee4c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1402bee48
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.1402bcfd4
movsxd r14, eax
test eax, eax
jne 0x1402beea3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1402bee39
mov rcx, r14
call fcn.1402b6920
mov rdi, rax
test rax, rax
jne 0x1402beebc
xor ecx, ecx
call fcn.1402b68e4
jmp 0x1402bee98
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.1402bcfd4
test eax, eax
jne 0x1402beeed
mov rcx, rdi
call fcn.1402b68e4
jmp 0x1402beef7
xor ecx, ecx
call fcn.1402b68e4
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 0x1402bef20
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1402befa7
mov rsi, rbx
cmp word [rax], bp
je 0x1402bef66
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1402bef50
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1402bef4c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1402b6920
mov rdi, rax
test rax, rax
je 0x1402bef94
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1402d2860
mov rbp, rdi
xor ecx, ecx
call fcn.1402b68e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1402c5608
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.1402bae04
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1402bae04
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1402c5758
cmp rax, 0xffffffffffffffff
je 0x1402c5758
xor edi, edi
test rbp, rbp
jle 0x1402c5703
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1402b686c
mov rbx, rax
test rax, rax
jne 0x1402c5690
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1402c56f9
mov edx, 0x8000
mov ecx, r14d
call fcn.1402aaf00
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.1402b9ce0
cmp eax, 0xffffffff
je 0x1402c56d9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1402c56a0
mov edx, r15d
mov ecx, r14d
call fcn.1402aaf00
jmp 0x1402c56f9
cmp byte [rsi + 0x38], dil
je 0x1402c56f0
cmp dword [rsi + 0x34], 5
jne 0x1402c56f0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
cmp byte [rsi + 0x30], dil
je 0x1402c56f9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1402b68e4
jmp 0x1402c576c
jns 0x1402c576c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1402bae04
cmp rax, 0xffffffffffffffff
jne 0x1402c5724
cmp byte [rsi + 0x30], dil
je 0x1402c576c
mov edi, dword [rsi + 0x2c]
jmp 0x1402c576c
mov ecx, r14d
call fcn.1402bb594
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1402c576c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
jmp 0x1402c576c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1402c5765
mov eax, dword [rsi + 0x2c]
jmp 0x1402c576a
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1402bae04
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