joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e230
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 0x14002e48f
movabs rdx, 0x2000000000000000
cmp rcx, rdx
jae 0x14002e48f
mov qword [rsp + 0x40], rbp
mov rbp, rax
mov qword [rsp + 0x48], rdi
and ebp, 0xf
je 0x14002e2d8
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.140017c10
lea r8, [rdi + rbp]
cmp r8, 0x10
jne 0x14002e2c8
cmp byte [rsi + 0x189], 0
jne 0x14002e2c8
lea rcx, [rsi + 0x178]
mov rdx, rcx
lea r8, [rsi + 0x48]
call fcn.14002dbe0
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 0x14002e460
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 0x14002e330
mov ecx, reloc.WS2_32.dll_recv
sub rcx, rdx
cmp rdx, 0x10
jae 0x14002e435
cmp rcx, 0x40
jb 0x14002e40e
lea r11, [rdx + rdi]
lea rax, [rbx + 0xf]
lea r10, [rdi + 0xf]
lea rbp, [rdx + rbx]
cmp r11, rax
ja 0x14002e387
cmp r10, rbp
jae 0x14002e40e
cmp r11, r10
jbe 0x14002e40e
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 0x14002e3a0
cmp rdx, 0x10
jae 0x14002e435
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 0x14002e420
cmp byte [rsi + 0x189], 0
jne 0x14002e44d
lea r8, [rsi + 0x48]
mov rdx, rdi
mov rcx, rdi
call fcn.14002dbe0
add rbx, 0x10
sub r15, 1
jne 0x14002e310
mov r15, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
test r14, r14
je 0x14002e484
lea rcx, [rsi + 0x178]
mov r9, r14
mov rdx, rcx
mov r8, rbx
call fcn.140017c10
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 0x14002eb20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
mov r11, qword [0x140068170]
mov r10, r8
mov rax, qword [0x140068170]
mov rbx, rcx
mov rsi, qword [0x140068170]
test r8, r8
je 0x14002ec80
mov qword [rsp + 0x10], rdi
sub rbx, rdx
lea rdi, [rdx - 8]
lea rdi, [rdi + r8*8]
nop word [rax + rax]
mov r9, qword [0x140068170]
xor r9, qword [rdi]
lea rdi, [rdi - 8]
mov r8, qword [0x140068170]
mov rax, qword [0x140068170]
xor r8, qword [rbx + rdi + 8]
mov rcx, r8
xor rcx, r9
sub r9, r8
shr rcx, 0x3f
xor rcx, rax
mov rax, qword [0x140068170]
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 [0x140068170]
or r9, rdx
shr r9, 0x3f
xor rax, r9
mov r9, qword [0x140068170]
xor r9, qword [rbx + rdi + 8]
mov rcx, rax
mov r8, qword [0x140068170]
neg rax
xor r8, qword [rdi + 8]
shr rcx, 1
neg rcx
or rcx, rax
mov rax, qword [0x140068170]
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 [0x140068170]
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 [0x140068170]
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 0x14002eb60
mov rdi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rax, r11
pop rsi
ret
Function at 0x14002f4e0
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 [0x140068170]
mov rdi, r9
mov rax, qword [0x140068170]
sub r9d, 1
movsxd rax, r9d
mov r13, r8
mov rbx, rdx
mov rsi, rcx
js 0x14002f538
cmp qword [r8 + rax*8], 0
jne 0x14002f69d
dec r9d
sub rax, 1
jns 0x14002f524
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.14002f3f0
mov r12d, eax
test eax, eax
jne 0x14002f6d5
lea r8, [rbp*8]
mov rdx, rdi
sub r8, r14
mov rcx, rsi
call fcn.14002ec90
sub r15d, 1
je 0x14002f6d0
mov r9, qword [0x140068170]
mov r8, qword [0x140068170]
mov rax, qword [0x140068170]
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 [0x140068170]
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 [0x140068170]
mov rbx, qword [0x140068170]
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 0x14002f66f
nop dword [rax]
mov rcx, qword [rsi + rax*8]
inc rax
mov rdx, qword [0x140068170]
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 0x14002f640
or rbx, r8
mov rdx, r13
mov r8, rdi
mov rcx, rsi
call fcn.14002eb20
mov rcx, qword [0x140068170]
and rax, rbx
mov rbx, qword [rsp + 0x68]
cmp rax, rcx
je 0x14002f560
mov eax, r12d
jmp 0x14002f6d5
movsxd r14, r9d
movabs rcx, 0x8000000000000000
xor eax, eax
mov rdx, qword [r8 + r14*8]
test rcx, rdx
jne 0x14002f6c1
shr rcx, 1
inc rax
cmp rax, 0x40
jb 0x14002f6b0
inc r14
shl r14, 6
sub r14, rax
jmp 0x14002f53d
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 0x14002f930
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 0x14002f9d0
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.14002f700
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call fcn.140037340
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.14002f270
test r14, r14
jne 0x14002fa8b
lea r14d, [rdi + 0x3f]
jmp 0x14002fa8e
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 0x14002fae6
test r14, r14
jne 0x14002fa40
test r8, r8
jne 0x14002fbe2
mov rdi, qword [rsp + 0xd8]
lea r15, [rsi*8]
xor ebx, ebx
nop dword [rax + rax]
mov rax, qword [0x140068170]
mov rcx, qword [0x140068170]
xor rax, rbx
xor rcx, rax
mov rax, qword [0x140068170]
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 0x14002fb83
test rsi, rsi
je 0x14002fb83
mov r11, rdi
mov rax, rbp
sub r11, rbp
mov r10, rsi
nop dword [rax]
mov r8, qword [0x140068170]
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 0x14002fb50
mov rdx, qword [rsp + 0xc8]
inc rbx
add rdi, r15
cmp rbx, r12
jb 0x14002fb00
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.14002f270
xor ebx, ebx
mov qword [rsp + 0xc8], 0
mov r8, r13
test r14, r14
jne 0x14002fa40
mov r13, r8
test r8, r8
jne 0x14002fa40
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 0x14003e828
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 0x14003e687
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003e687
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003e687
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003e687
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003e687
cmp dword [rcx + 0x84], 0xe
jbe 0x14003e687
cmp dword [rcx + 0xf8], 0
je 0x14003e687
mov ecx, ebx
call fcn.14003e744
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.14003e514
nop
cmp dword [rbp + 0x20], 0
je 0x14003e6d5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003e6e0
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003e618

Function at 0x14003eef4
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.140051b30
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.140045f50
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003ef43
mov rax, rbp
jmp 0x14003f04b
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 + 0x677e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140047d64
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x677e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003f047
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 0x14003f047
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140047d64
test rax, rax
js 0x14003f047
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003f047
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003f039
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003f039
cmp byte [rcx], 0xd
jne 0x14003f01f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003f02e
cmp byte [rcx + 1], 0xa
jne 0x14003f02e
inc rcx
jmp 0x14003f02e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x66170]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003f001
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003f04b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400353c0
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 0x140041814
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400677e0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140041872
cmp word [rdx], r12w
jne 0x140041872
or byte [rax + r8*8 + 0x38], cl
jmp 0x140041878
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400419d3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400419ae
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400418b1
mov rcx, r9
jmp 0x1400418d4
cmp r9, rdx
jae 0x1400418eb
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140041895
jmp 0x1400419d3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400419a8
cmp dword [rsp + 0x80], edi
je 0x1400419a8
mov rdx, r14
lea r11, [0x1400677e0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140041981
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140041954
mov word [rbx], r12w
jmp 0x1400419cf
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14004195d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400419cf
cmp word [rsp + 0x70], r12w
jne 0x14004198e
cmp rbx, rsi
je 0x14004194e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140047d6c
cmp word [rsp + 0x70], r12w
je 0x1400419d3
mov word [rbx], r13w
jmp 0x1400419cf
lea r11, [0x1400677e0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400419cb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400419d3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400483f0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140048410
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003fff4
or eax, 0xffffffff
jmp 0x140048412
xor eax, eax
add rsp, 0x28
ret
Function at 0x140049e08
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 0x140049e38
xor eax, eax
jmp 0x140049efb
mov rbp, rbx
cmp word [rax], si
je 0x140049e5d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140049e44
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140049e40
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.140049d58
movsxd r14, eax
test eax, eax
jne 0x140049e9b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140049e31
mov rcx, r14
call fcn.1400449b0
mov rdi, rax
test rax, rax
jne 0x140049eb4
xor ecx, ecx
call fcn.140044028
jmp 0x140049e90
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.140049d58
test eax, eax
jne 0x140049ee5
mov rcx, rdi
call fcn.140044028
jmp 0x140049eef
xor ecx, ecx
call fcn.140044028
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 0x140049f18
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 0x140049f9f
mov rsi, rbx
cmp word [rax], bp
je 0x140049f5e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140049f48
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140049f44
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400449b0
mov rdi, rax
test rax, rax
je 0x140049f8c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140037340
mov rbp, rdi
xor ecx, ecx
call fcn.140044028
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 0x14004f764
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.14003cc48
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14004f7ee
cmp byte [rbp - 0x21], r15b
je 0x14004f7e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14004f824
call fcn.14004427c
test eax, eax
jne 0x14004f810
cmp byte [rbp - 0x21], r15b
je 0x14004f808
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14004f824
cmp byte [rbp - 0x21], r15b
je 0x14004f821
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.14003e9b4
test eax, eax
jne 0x14004f8c4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003cc48
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14004f863
cmp byte [rbp - 0x21], r15b
je 0x14004f898
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004f898
call fcn.14004427c
test eax, eax
jne 0x14004f884
cmp byte [rbp - 0x21], r15b
je 0x14004f87d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14004f898
cmp byte [rbp - 0x21], r15b
je 0x14004f895
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.14003e9b4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004f8c4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004f8c7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004f8d5
mov rcx, rdi
call fcn.140044028
cmp byte [rbp + 0x3f], r15b
je 0x14004f8e4
mov rcx, qword [rbp + 0x27]
call fcn.140044028
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 0x1400507d0
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.140047d6c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140047d6c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140050920
cmp rax, 0xffffffffffffffff
je 0x140050920
xor edi, edi
test rbp, rbp
jle 0x1400508cb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400434e8
mov rbx, rax
test rax, rax
jne 0x140050858
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400508c1
mov edx, 0x8000
mov ecx, r14d
call fcn.140040dbc
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.140042c04
cmp eax, 0xffffffff
je 0x1400508a1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140050868
mov edx, r15d
mov ecx, r14d
call fcn.140040dbc
jmp 0x1400508c1
cmp byte [rsi + 0x38], dil
je 0x1400508b8
cmp dword [rsi + 0x34], 5
jne 0x1400508b8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400508c1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140044028
jmp 0x140050934
jns 0x140050934
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140047d6c
cmp rax, 0xffffffffffffffff
jne 0x1400508ec
cmp byte [rsi + 0x30], dil
je 0x140050934
mov edi, dword [rsi + 0x2c]
jmp 0x140050934
mov ecx, r14d
call fcn.140047864
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140050934
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 0x140050934
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14005092d
mov eax, dword [rsi + 0x2c]
jmp 0x140050932
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140047d6c
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
Function at 0x140001450
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, dword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x20], 0x40
xor r14d, r14d
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8, rdi
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
je 0x1400014db
mov r15, rax
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffffffffffff
mov rdx, r15
mov r8, rbx
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400014d8
mov qword [rsi], 0
call r15
mov r14, rax
jmp 0x1400014db
xor r14d, r14d
mov rax, r14
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140001870
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400026b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400026b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]