joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e790
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 0x14002e830
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.14002e3a0
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call fcn.140032040
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.14002f240
test r14, r14
jne 0x14002e8eb
lea r14d, [rdi + 0x3f]
jmp 0x14002e8ee
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 0x14002e946
test r14, r14
jne 0x14002e8a0
test r8, r8
jne 0x14002ea42
mov rdi, qword [rsp + 0xd8]
lea r15, [rsi*8]
xor ebx, ebx
nop dword [rax + rax]
mov rax, qword [0x140063d40]
mov rcx, qword [0x140063d40]
xor rax, rbx
xor rcx, rax
mov rax, qword [0x140063d40]
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 0x14002e9e3
test rsi, rsi
je 0x14002e9e3
mov r11, rdi
mov rax, rbp
sub r11, rbp
mov r10, rsi
nop dword [rax]
mov r8, qword [0x140063d40]
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 0x14002e9b0
mov rdx, qword [rsp + 0xc8]
inc rbx
add rdi, r15
cmp rbx, r12
jb 0x14002e960
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.14002f240
xor ebx, ebx
mov qword [rsp + 0xc8], 0
mov r8, r13
test r14, r14
jne 0x14002e8a0
mov r13, r8
test r8, r8
jne 0x14002e8a0
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 0x14002ec30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
mov r11, qword [0x140063d40]
mov r10, r8
mov rax, qword [0x140063d40]
mov rbx, rcx
mov rsi, qword [0x140063d40]
test r8, r8
je 0x14002ed90
mov qword [rsp + 0x10], rdi
sub rbx, rdx
lea rdi, [rdx - 8]
lea rdi, [rdi + r8*8]
nop word [rax + rax]
mov r9, qword [0x140063d40]
xor r9, qword [rdi]
lea rdi, [rdi - 8]
mov r8, qword [0x140063d40]
mov rax, qword [0x140063d40]
xor r8, qword [rbx + rdi + 8]
mov rcx, r8
xor rcx, r9
sub r9, r8
shr rcx, 0x3f
xor rcx, rax
mov rax, qword [0x140063d40]
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 [0x140063d40]
or r9, rdx
shr r9, 0x3f
xor rax, r9
mov r9, qword [0x140063d40]
xor r9, qword [rbx + rdi + 8]
mov rcx, rax
mov r8, qword [0x140063d40]
neg rax
xor r8, qword [rdi + 8]
shr rcx, 1
neg rcx
or rcx, rax
mov rax, qword [0x140063d40]
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 [0x140063d40]
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 [0x140063d40]
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 0x14002ec70
mov rdi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rax, r11
pop rsi
ret
Function at 0x140039714
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 0x140039573
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140039573
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140039573
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140039573
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140039573
cmp dword [rcx + 0x84], 0xe
jbe 0x140039573
cmp dword [rcx + 0xf8], 0
je 0x140039573
mov ecx, ebx
call fcn.140039630
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.140039400
nop
cmp dword [rbp + 0x20], 0
je 0x1400395c1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400395cc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140039504

Function at 0x140039dd4
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.14004d920
sub rsp, rax
mov rax, qword [0x140063040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140041db4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140039e23
mov rax, rbp
jmp 0x140039f2b
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 + 0x66a70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140043b00
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x66a70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140039f27
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 0x140039f27
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140043b00
test rax, rax
js 0x140039f27
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140039f27
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140039f19
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140039f19
cmp byte [rcx], 0xd
jne 0x140039eff
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140039f0e
cmp byte [rcx + 1], 0xa
jne 0x140039f0e
inc rcx
jmp 0x140039f0e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x631a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140039ee1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140039f2b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400310d0
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 0x14003d52c
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, [0x140066a70]
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 0x14003d58a
cmp word [rdx], r12w
jne 0x14003d58a
or byte [rax + r8*8 + 0x38], cl
jmp 0x14003d590
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14003d6eb
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14003d6c6
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14003d5c9
mov rcx, r9
jmp 0x14003d5ec
cmp r9, rdx
jae 0x14003d603
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 0x14003d5ad
jmp 0x14003d6eb
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 0x14003d6c0
cmp dword [rsp + 0x80], edi
je 0x14003d6c0
mov rdx, r14
lea r11, [0x140066a70]
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 0x14003d699
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14003d66c
mov word [rbx], r12w
jmp 0x14003d6e7
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 0x14003d675
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14003d6e7
cmp word [rsp + 0x70], r12w
jne 0x14003d6a6
cmp rbx, rsi
je 0x14003d666
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140043b08
cmp word [rsp + 0x70], r12w
je 0x14003d6eb
mov word [rbx], r13w
jmp 0x14003d6e7
lea r11, [0x140066a70]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14003d6e3
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14003d6eb
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 0x14004418c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400441ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003b5a4
or eax, 0xffffffff
jmp 0x1400441ae
xor eax, eax
add rsp, 0x28
ret
Function at 0x140045c6c
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 0x140045c9c
xor eax, eax
jmp 0x140045d5f
mov rbp, rbx
cmp word [rax], si
je 0x140045cc1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140045ca8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140045ca4
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.140045bbc
movsxd r14, eax
test eax, eax
jne 0x140045cff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140045c95
mov rcx, r14
call fcn.140040814
mov rdi, rax
test rax, rax
jne 0x140045d18
xor ecx, ecx
call fcn.14003fe8c
jmp 0x140045cf4
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.140045bbc
test eax, eax
jne 0x140045d49
mov rcx, rdi
call fcn.14003fe8c
jmp 0x140045d53
xor ecx, ecx
call fcn.14003fe8c
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 0x140045d7c
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 0x140045e03
mov rsi, rbx
cmp word [rax], bp
je 0x140045dc2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140045dac
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140045da8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140040814
mov rdi, rax
test rax, rax
je 0x140045df0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140032040
mov rbp, rdi
xor ecx, ecx
call fcn.14003fe8c
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 0x14004b5c4
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.140038ab8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14004b64e
cmp byte [rbp - 0x21], r15b
je 0x14004b649
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14004b684
call fcn.1400400e0
test eax, eax
jne 0x14004b670
cmp byte [rbp - 0x21], r15b
je 0x14004b668
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14004b684
cmp byte [rbp - 0x21], r15b
je 0x14004b681
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.140039894
test eax, eax
jne 0x14004b724
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140038ab8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14004b6c3
cmp byte [rbp - 0x21], r15b
je 0x14004b6f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004b6f8
call fcn.1400400e0
test eax, eax
jne 0x14004b6e4
cmp byte [rbp - 0x21], r15b
je 0x14004b6dd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14004b6f8
cmp byte [rbp - 0x21], r15b
je 0x14004b6f5
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.140039894
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004b724
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004b727
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004b735
mov rcx, rdi
call fcn.14003fe8c
cmp byte [rbp + 0x3f], r15b
je 0x14004b744
mov rcx, qword [rbp + 0x27]
call fcn.14003fe8c
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 0x14004c630
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.140043b08
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140043b08
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14004c780
cmp rax, 0xffffffffffffffff
je 0x14004c780
xor edi, edi
test rbp, rbp
jle 0x14004c72b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14003f34c
mov rbx, rax
test rax, rax
jne 0x14004c6b8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14004c721
mov edx, 0x8000
mov ecx, r14d
call fcn.14003cc20
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.14003e91c
cmp eax, 0xffffffff
je 0x14004c701
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14004c6c8
mov edx, r15d
mov ecx, r14d
call fcn.14003cc20
jmp 0x14004c721
cmp byte [rsi + 0x38], dil
je 0x14004c718
cmp dword [rsi + 0x34], 5
jne 0x14004c718
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14004c721
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14003fe8c
jmp 0x14004c794
jns 0x14004c794
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140043b08
cmp rax, 0xffffffffffffffff
jne 0x14004c74c
cmp byte [rsi + 0x30], dil
je 0x14004c794
mov edi, dword [rsi + 0x2c]
jmp 0x14004c794
mov ecx, r14d
call fcn.1400436c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14004c794
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 0x14004c794
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14004c78d
mov eax, dword [rsi + 0x2c]
jmp 0x14004c792
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140043b08
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 0x1400017fd
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [rsp + 0x70]
mov rcx, rax
shr rcx, 0x20
jne 0x140001840
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov rcx, rdx
mov rdx, r8
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rsi
mov edx, eax
add rsp, 0x40
pop rsi
jmp fcn.14000179a
lea rax, str.C:UsersAdministrator.cargo_registry_src_rsproxy.cn_0dccff568467c15bwindows_0.52.0_srcWindowsWin32SystemRegistrymod.rs
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__valuecombase.dll
lea r9, [0x14002b710]
lea r8, [rsp + 0x3f]
mov edx, 0x2b
call fcn.140028cf0
int3
Function at 0x140010360
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x140010385
cmp rax, rcx
je 0x14001038b
cmp rdx, 4
jae 0x140010392
xor eax, eax
xor r8d, r8d
jmp 0x140010430
pop rbp
jmp fcn.1400053d0
xor eax, eax
jmp 0x140010447
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14002b590]
movdqa xmm3, xmmword [0x14002b5a0]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x1400103c0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140010447
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140010430
pop rbp
ret

Function at 0x1400141f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140037580]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140014261
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14001428e
test eax, eax
js 0x14001426d
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140014284
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1400138f0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140013a50
mov ecx, 7
int 0x29
ud2
Function at 0x14001afd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x14001b03c
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x14001b03c
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x14001b03c
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x14001b0e8
cmp byte [rdx], 0xed
jne 0x14001b0f1
movzx r12d, byte [rdx + 1]
mov r8d, r12d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x14001b0f1
movzx r13d, byte [rdx + 2]
cmp rbx, 3
jb 0x14001b081
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
and r13d, 0x3f
shl r12d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
sub rax, rbx
cmp rax, r8
jb 0x14001b1db
add rdx, 3
mov r15, rdx
and r12d, 0x3c0
or r14d, r13d
or r14d, r12d
add r14d, 0x10000
mov rcx, rsi
mov edx, r14d
call fcn.140018400
add rdi, 0xfffffffffffffffd
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
sub rax, rbx
cmp rax, rdi
jb 0x14001b200
mov rcx, qword [rsi + 8]
add rcx, rbx
mov rdx, r15
jmp 0x14001b18e
test rdi, rdi
je 0x14001b180
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x14001b118
add r9, 2
cmp r8, rax
cmovne r8, r9
nop word cs:[rax + rax]
mov r9, r8
cmp r8, rax
je 0x14001b180
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x14001b110
cmp r10b, 0xe0
jb 0x14001b0fa
cmp r10b, 0xed
jne 0x14001b14f
cmp r8, rax
je 0x14001b180
lea r8, [r9 + 2]
cmp r8, rax
je 0x14001b180
cmp byte [r9 + 1], 0x9f
ja 0x14001b17c
add r9, 3
mov r8, r9
jmp 0x14001b110
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x14001b110
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x14001b110
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x14001b1ae
add rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.140029e70
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x14001b18b
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r15, rdx
mov rdx, rbx
call fcn.140029e70
mov rdx, r15
jmp 0x14001b09c
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.140029e70
mov rbx, qword [rsi + 0x10]
jmp 0x14001b0d9
Function at 0x140022bef
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.shell32.dll_CommandLineToArgvW]
test rax, rax
je 0x140022c9b
mov rdi, rax
lea rbx, [rsp + 0x30]
and qword [rbx], 0
mov qword [rbx + 8], 8
and qword [rbx + 0x10], 0
movsxd r12, dword [rsp + 0x2c]
shl r12, 3
xor r13d, r13d
lea r14, [rsp + 0x48]
cmp r12, r13
je 0x140022c75
mov r15, qword [rdi + r13]
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.1400217cc
mov rcx, rbx
mov rdx, r14
call fcn.140022f6b
add r13, 8
jmp 0x140022c45
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rax, rax
jne 0x140022c88
call fcn.140027871
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
jmp 0x140022cac
and qword [rsi], 0
mov qword [rsi + 8], 8
and qword [rsi + 0x10], 0
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret