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

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x20
mov rax, qword [rcx + 0x150]
mov rsi, rcx
mov r14, r8
mov rbx, rdx
lea rcx, [rax + r8]
cmp rcx, rax
jb 0x14002e4cf
movabs rdx, 0x2000000000000000
cmp rcx, rdx
jae 0x14002e4cf
mov qword [rsp + 0x40], rbp
mov rbp, rax
mov qword [rsp + 0x48], rdi
and ebp, 0xf
je 0x14002e318
mov edi, reloc.WS2_32.dll_recv
lea rcx, [rsi + 0x178]
sub rdi, rbp
cmp rdi, r8
cmova rdi, r8
add rcx, rbp
mov rdx, rcx
mov r9, rdi
mov r8, rbx
call fcn.140017c50
lea r8, [rdi + rbp]
cmp r8, 0x10
jne 0x14002e308
cmp byte [rsi + 0x189], 0
jne 0x14002e308
lea rcx, [rsi + 0x178]
mov rdx, rcx
lea r8, [rsi + 0x48]
call fcn.14002dc20
mov rax, qword [rsi + 0x150]
sub r14, rdi
add rbx, rdi
add rax, rdi
add rax, r14
mov qword [rsi + 0x150], rax
cmp r14, 0x10
jb 0x14002e4a0
mov qword [rsp + 0x50], r15
lea rdi, [rsi + 0x178]
mov r15, r14
shr r15, 4
imul rax, r15, 0xfffffffffffffff0
add r14, rax
nop word [rax + rax]
mov r8, rdi
mov r9, rdi
sub r8, rbx
sub r9, rbx
xor edx, edx
mov r10d, 8
sub r10, rbx
mov rax, rbx
nop word [rax + rax]
mov rcx, qword [r8 + rax]
add rdx, 8
xor rcx, qword [rax]
mov qword [r9 + rax], rcx
lea rax, [rax + 8]
lea rcx, [r10 + rax]
cmp rcx, 0x10
jbe 0x14002e370
mov ecx, reloc.WS2_32.dll_recv
sub rcx, rdx
cmp rdx, 0x10
jae 0x14002e475
cmp rcx, 0x40
jb 0x14002e44e
lea r11, [rdx + rdi]
lea rax, [rbx + 0xf]
lea r10, [rdi + 0xf]
lea rbp, [rdx + rbx]
cmp r11, rax
ja 0x14002e3c7
cmp r10, rbp
jae 0x14002e44e
cmp r11, r10
jbe 0x14002e44e
and ecx, 0x3f
mov r10d, reloc.WS2_32.dll_recv
sub r10, rcx
lea rax, [rbp + 0x10]
movdqu xmm0, xmmword [rax - 0x10]
add rdx, 0x40
movdqu xmm1, xmmword [r8 + rax - 0x10]
movdqu xmm2, xmmword [rax + r8]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [r9 + rax - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [r8 + rax - 0x30]
movdqu xmmword [rax + r9 - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [r8 + rax - 0x20]
movdqu xmmword [r9 + rax - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [r9 + rax - 0x20], xmm2
cmp rdx, r10
jb 0x14002e3e0
cmp rdx, 0x10
jae 0x14002e475
mov r10d, reloc.WS2_32.dll_recv
lea rcx, [rdx + rbx]
sub r10, rdx
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
xor al, byte [rcx]
mov byte [r9 + rcx], al
lea rcx, [rcx + 1]
sub r10, 1
jne 0x14002e460
cmp byte [rsi + 0x189], 0
jne 0x14002e48d
lea r8, [rsi + 0x48]
mov rdx, rdi
mov rcx, rdi
call fcn.14002dc20
add rbx, 0x10
sub r15, 1
jne 0x14002e350
mov r15, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
test r14, r14
je 0x14002e4c4
lea rcx, [rsi + 0x178]
mov r9, r14
mov rdx, rcx
mov r8, rbx
call fcn.140017c50
xor eax, eax
add rsp, 0x20
pop r14
pop rsi
pop rbx
ret
mov eax, 0xffffffec
add rsp, 0x20
pop r14
pop rsi
pop rbx
ret
Function at 0x14002eb60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
mov r11, qword [0x140068190]
mov r10, r8
mov rax, qword [0x140068190]
mov rbx, rcx
mov rsi, qword [0x140068190]
test r8, r8
je 0x14002ecc0
mov qword [rsp + 0x10], rdi
sub rbx, rdx
lea rdi, [rdx - 8]
lea rdi, [rdi + r8*8]
nop word [rax + rax]
mov r9, qword [0x140068190]
xor r9, qword [rdi]
lea rdi, [rdi - 8]
mov r8, qword [0x140068190]
mov rax, qword [0x140068190]
xor r8, qword [rbx + rdi + 8]
mov rcx, r8
xor rcx, r9
sub r9, r8
shr rcx, 0x3f
xor rcx, rax
mov rax, qword [0x140068190]
mov rdx, rcx
neg rcx
shr rdx, 1
neg rdx
or rdx, rcx
shr rdx, 0x3f
neg rdx
xor rax, rdx
and rdx, r8
not rax
and r9, rax
mov rax, qword [0x140068190]
or r9, rdx
shr r9, 0x3f
xor rax, r9
mov r9, qword [0x140068190]
xor r9, qword [rbx + rdi + 8]
mov rcx, rax
mov r8, qword [0x140068190]
neg rax
xor r8, qword [rdi + 8]
shr rcx, 1
neg rcx
or rcx, rax
mov rax, qword [0x140068190]
shr rcx, 0x3f
neg rcx
or rsi, rcx
mov rcx, r8
xor rcx, r9
sub r9, r8
shr rcx, 0x3f
xor rcx, rax
mov rax, qword [0x140068190]
mov rdx, rcx
neg rcx
shr rdx, 1
neg rdx
or rdx, rcx
mov rcx, rsi
shr rdx, 0x3f
not rcx
neg rdx
xor rax, rdx
and rdx, r8
not rax
and r9, rax
mov rax, qword [0x140068190]
or r9, rdx
shr r9, 0x3f
xor rax, r9
mov rdx, rax
neg rax
shr rdx, 1
neg rdx
or rdx, rax
shr rdx, 0x3f
neg rdx
and rcx, rdx
or rsi, rdx
or r11, rcx
sub r10, 1
jne 0x14002eba0
mov rdi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rax, r11
pop rsi
ret
Function at 0x14002f520
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x140068190]
mov rdi, r9
mov rax, qword [0x140068190]
sub r9d, 1
movsxd rax, r9d
mov r13, r8
mov rbx, rdx
mov rsi, rcx
js 0x14002f578
cmp qword [r8 + rax*8], 0
jne 0x14002f6dd
dec r9d
sub rax, 1
jns 0x14002f564
xor eax, eax
mov r14d, eax
lea rbp, [r14 + 7]
mov eax, 0x1e
shr rbp, 3
mov r15d, 0xfa
cmp rbp, 4
cmova r15d, eax
nop dword [rax + rax]
mov rax, qword [rsp + 0x88]
mov r8, rbp
mov r9, qword [rsp + 0x80]
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14002f430
mov r12d, eax
test eax, eax
jne 0x14002f715
lea r8, [rbp*8]
mov rdx, rdi
sub r8, r14
mov rcx, rsi
call fcn.14002ecd0
sub r15d, 1
je 0x14002f710
mov r9, qword [0x140068190]
mov r8, qword [0x140068190]
mov rax, qword [0x140068190]
xor r8, rbx
mov rcx, qword [rsi]
xor r9, rcx
mov rcx, r8
xor rcx, r9
sub r9, r8
shr rcx, 0x3f
xor rcx, rax
mov rax, qword [0x140068190]
mov rdx, rcx
neg rcx
shr rdx, 1
neg rdx
or rdx, rcx
shr rdx, 0x3f
neg rdx
xor rax, rdx
and rdx, r8
not rax
and r9, rax
mov rax, qword [0x140068190]
mov rbx, qword [0x140068190]
or r9, rdx
shr r9, 0x3f
xor rax, r9
mov r8, rax
neg rax
shr r8, 1
neg r8
or r8, rax
mov eax, 1
shr r8, 0x3f
dec r8
cmp rax, rdi
jae 0x14002f6af
nop dword [rax]
mov rcx, qword [rsi + rax*8]
inc rax
mov rdx, qword [0x140068190]
xor rdx, rcx
mov rcx, rdx
neg rdx
shr rcx, 1
neg rcx
or rcx, rdx
shr rcx, 0x3f
neg rcx
or rbx, rcx
cmp rax, rdi
jb 0x14002f680
or rbx, r8
mov rdx, r13
mov r8, rdi
mov rcx, rsi
call fcn.14002eb60
mov rcx, qword [0x140068190]
and rax, rbx
mov rbx, qword [rsp + 0x68]
cmp rax, rcx
je 0x14002f5a0
mov eax, r12d
jmp 0x14002f715
movsxd r14, r9d
movabs rcx, 0x8000000000000000
xor eax, eax
mov rdx, qword [r8 + r14*8]
test rcx, rdx
jne 0x14002f701
shr rcx, 1
inc rax
cmp rax, 0x40
jb 0x14002f6f0
inc r14
shl r14, 6
sub r14, rax
jmp 0x14002f57d
mov eax, 0xfffffff2
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14002f970
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r13, qword [rsp + 0xc8]
lea rbx, [r9*8]
mov r14, qword [rsp + 0xd8]
mov r12d, 1
mov r10, rdx
mov rdi, rcx
mov ecx, r12d
mov edx, 3
mov rax, r13
mov r11, r8
mov r8, qword [r8]
mov rsi, r9
shl rax, 6
cmp rax, 0x4f
cmova ecx, edx
lea r15, [r8*2 + 4]
shl r12, cl
and r15d, 8
mov rax, r12
mov qword [rsp + 0x40], rcx
imul rax, r9
add r15, r8
mov edx, 0x40
lea rbp, [r14 + rax*8]
lea r9, [rbx + rbp]
mov qword [rsp + 0xb8], r9
nop dword [rax]
nop dword [rax + rax]
mov rcx, r8
shr edx, 1
imul rcx, r15
mov eax, 2
sub rax, rcx
imul r15, rax
cmp edx, 8
jae 0x14002fa10
mov rax, qword [rsp + 0xd0]
neg r15
mov qword [rsp + 0x38], r9
mov r8, rsi
mov qword [rsp + 0x30], r14
mov r9, r15
mov qword [rsp + 0x28], r12
mov rdx, r11
mov rcx, r10
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], r15
call fcn.14002f740
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call fcn.140037380
xor r14d, r14d
xor ebx, ebx
mov qword [rsp + 0xc8], rbx
nop word [rax + rax]
mov rax, qword [rsp + 0xb8]
mov r9, rsi
mov qword [rsp + 0x38], rax
mov rdi, r14
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xa0]
mov r8, rax
mov rdx, rax
mov rcx, rax
call fcn.14002f2b0
test r14, r14
jne 0x14002facb
lea r14d, [rdi + 0x3f]
jmp 0x14002face
dec r14
test rdi, rdi
lea rax, [r13 - 1]
mov rcx, r14
cmovne rax, r13
inc rbx
mov r8, rax
mov r13, rax
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + r8*8]
mov rax, qword [rsp + 0xc8]
shr rdx, cl
add rax, rax
and edx, 1
or rdx, rax
mov qword [rsp + 0xc8], rdx
cmp rbx, qword [rsp + 0x40]
je 0x14002fb26
test r14, r14
jne 0x14002fa80
test r8, r8
jne 0x14002fc22
mov rdi, qword [rsp + 0xd8]
lea r15, [rsi*8]
xor ebx, ebx
nop dword [rax + rax]
mov rax, qword [0x140068190]
mov rcx, qword [0x140068190]
xor rax, rbx
xor rcx, rax
mov rax, qword [0x140068190]
xor rcx, rdx
xor rax, rcx
mov r9, rax
neg rax
shr r9, 1
neg r9
or r9, rax
shr r9, 0x3f
dec r9
cmp rbp, rdi
je 0x14002fbc3
test rsi, rsi
je 0x14002fbc3
mov r11, rdi
mov rax, rbp
sub r11, rbp
mov r10, rsi
nop dword [rax]
mov r8, qword [0x140068190]
mov rdx, qword [r11 + rax]
xor r8, r9
mov rcx, qword [rax]
lea rax, [rax + 8]
and rdx, r9
not r8
and rcx, r8
or rdx, rcx
mov qword [rax - 8], rdx
sub r10, 1
jne 0x14002fb90
mov rdx, qword [rsp + 0xc8]
inc rbx
add rdi, r15
cmp rbx, r12
jb 0x14002fb40
mov rax, qword [rsp + 0xb8]
mov r9, rsi
mov rdx, qword [rsp + 0xa0]
mov r8, rbp
mov r15, qword [rsp + 0x48]
mov rcx, rdx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call fcn.14002f2b0
xor ebx, ebx
mov qword [rsp + 0xc8], 0
mov r8, r13
test r14, r14
jne 0x14002fa80
mov r13, r8
test r8, r8
jne 0x14002fa80
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003e96c
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 0x14003e7d7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003e7d7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003e7d7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003e7d7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003e7d7
cmp dword [rcx + 0x84], 0xe
jbe 0x14003e7d7
cmp dword [rcx + 0xf8], 0
je 0x14003e7d7
mov ecx, ebx
call fcn.14003e888
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.14003e664
nop
cmp dword [rbp + 0x20], 0
je 0x14003e825
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003e830
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003e768

Function at 0x14003f03c
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.140051d70
sub rsp, rax
mov rax, qword [0x140066010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140046084
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003f08b
mov rax, rbp
jmp 0x14003f193
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 + 0x67800]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140047f14
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x67800]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003f18f
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 0x14003f18f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140047f14
test rax, rax
js 0x14003f18f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003f18f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003f181
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003f181
cmp byte [rcx], 0xd
jne 0x14003f167
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003f176
cmp byte [rcx + 1], 0xa
jne 0x14003f176
inc rcx
jmp 0x14003f176
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x66170]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003f149
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003f193
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140035400
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 0x1400419a8
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, [0x140067800]
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 0x1400419ff
cmp word [rdx], r13w
jne 0x1400419ff
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140041a04
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140041b29
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140041b4a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140041a3d
mov rdx, r9
mov word [rbx], cx
jmp 0x140041a64
cmp r9, r8
jae 0x140041a74
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 0x140041a1e
jmp 0x140041b29
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 0x140041b1e
cmp dword [rsp + 0x80], esi
je 0x140041b1e
lea r8, [0x140067800]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140041af6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140041ac6
mov word [rbx], r13w
jmp 0x140041b26
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 0x140041ad3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140041b26
cmp word [rsp + 0x70], r13w
jne 0x140041b03
cmp rbx, r14
je 0x140041ac0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140047f1c
cmp word [rsp + 0x70], r13w
je 0x140041b29
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, [0x140067800]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140041b23
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140041b29
Function at 0x1400485a0
Capabilities:
Delete file

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

Function at 0x1400486c0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400486d6
mov al, 1
jmp 0x140048736
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400486e7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140048734
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400479c0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140048734
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140048734
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140048734
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140048736
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140049fec
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 0x14004a01c
xor eax, eax
jmp 0x14004a0df
mov rbp, rbx
cmp word [rax], si
je 0x14004a041
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004a028
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004a024
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.140049f0c
movsxd r14, eax
test eax, eax
jne 0x14004a07f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004a015
mov rcx, r14
call fcn.140044b00
mov rdi, rax
test rax, rax
jne 0x14004a098
xor ecx, ecx
call fcn.140044178
jmp 0x14004a074
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.140049f0c
test eax, eax
jne 0x14004a0c9
mov rcx, rdi
call fcn.140044178
jmp 0x14004a0d3
xor ecx, ecx
call fcn.140044178
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 0x14004a0fc
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 0x14004a183
mov rsi, rbx
cmp word [rax], bp
je 0x14004a142
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004a12c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004a128
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140044b00
mov rdi, rax
test rax, rax
je 0x14004a170
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140037380
mov rbp, rdi
xor ecx, ecx
call fcn.140044178
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 0x14004f9e4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14003cd5c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14004fa6e
cmp byte [rbp - 0x21], r15b
je 0x14004fa69
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14004faa4
call fcn.1400443c8
test eax, eax
jne 0x14004fa90
cmp byte [rbp - 0x21], r15b
je 0x14004fa88
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14004faa4
cmp byte [rbp - 0x21], r15b
je 0x14004faa1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14003eaf4
test eax, eax
jne 0x14004fb44
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003cd5c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14004fae3
cmp byte [rbp - 0x21], r15b
je 0x14004fb18
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004fb18
call fcn.1400443c8
test eax, eax
jne 0x14004fb04
cmp byte [rbp - 0x21], r15b
je 0x14004fafd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14004fb18
cmp byte [rbp - 0x21], r15b
je 0x14004fb15
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14003eaf4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004fb44
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004fb47
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004fb55
mov rcx, rdi
call fcn.140044178
cmp byte [rbp + 0x3f], r15b
je 0x14004fb64
mov rcx, qword [rbp + 0x27]
call fcn.140044178
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140050a40
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.140047f1c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140047f1c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140050b90
cmp rax, 0xffffffffffffffff
je 0x140050b90
xor edi, edi
test rbp, rbp
jle 0x140050b3b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14004363c
mov rbx, rax
test rax, rax
jne 0x140050ac8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140050b31
mov edx, 0x8000
mov ecx, r14d
call fcn.140040f4c
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.140042d60
cmp eax, 0xffffffff
je 0x140050b11
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140050ad8
mov edx, r15d
mov ecx, r14d
call fcn.140040f4c
jmp 0x140050b31
cmp byte [rsi + 0x38], dil
je 0x140050b28
cmp dword [rsi + 0x34], 5
jne 0x140050b28
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140050b31
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140044178
jmp 0x140050ba4
jns 0x140050ba4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140047f1c
cmp rax, 0xffffffffffffffff
jne 0x140050b5c
cmp byte [rsi + 0x30], dil
je 0x140050ba4
mov edi, dword [rsi + 0x2c]
jmp 0x140050ba4
mov ecx, r14d
call fcn.1400479c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140050ba4
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 0x140050ba4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140050b9d
mov eax, dword [rsi + 0x2c]
jmp 0x140050ba2
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140047f1c
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