joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000760c
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 0x14000767b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000767b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000767b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000767b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000767b
cmp dword [rcx + 0x84], 0xe
jbe 0x14000767b
cmp dword [rcx + 0xf8], 0
je 0x14000767b
mov ecx, ebx
call fcn.14000772c
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.140007508
nop
cmp dword [rbp + 0x20], 0
je 0x1400076c9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400076d4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000760c

Function at 0x140007810
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000760c
Function at 0x14000cb38
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 0x14000cb68
xor eax, eax
jmp 0x14000cc2b
mov rbp, rbx
cmp word [rax], si
je 0x14000cb8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000cb74
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000cb70
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.14000ca58
movsxd r14, eax
test eax, eax
jne 0x14000cbcb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000cb61
mov rcx, r14
call fcn.140008158
mov rdi, rax
test rax, rax
jne 0x14000cbe4
xor ecx, ecx
call fcn.14000811c
jmp 0x14000cbc0
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.14000ca58
test eax, eax
jne 0x14000cc15
mov rcx, rdi
call fcn.14000811c
jmp 0x14000cc1f
xor ecx, ecx
call fcn.14000811c
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 0x140010f4c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140010f62
mov al, 1
jmp 0x140010fc2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140010f73
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140010fc0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000d458
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140010fc0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140010fc0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140010fc0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140010fc2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140012000
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.14000bb28
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001208a
cmp byte [rbp - 0x21], r15b
je 0x140012085
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400120c0
call fcn.140008924
test eax, eax
jne 0x1400120ac
cmp byte [rbp - 0x21], r15b
je 0x1400120a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400120c0
cmp byte [rbp - 0x21], r15b
je 0x1400120bd
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.14000b108
test eax, eax
jne 0x140012160
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000bb28
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400120ff
cmp byte [rbp - 0x21], r15b
je 0x140012134
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012134
call fcn.140008924
test eax, eax
jne 0x140012120
cmp byte [rbp - 0x21], r15b
je 0x140012119
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012134
cmp byte [rbp - 0x21], r15b
je 0x140012131
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.14000b108
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140012160
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140012163
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140012171
mov rcx, rdi
call fcn.14000811c
cmp byte [rbp + 0x3f], r15b
je 0x140012180
mov rcx, qword [rbp + 0x27]
call fcn.14000811c
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 0x1400146f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140014718
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140014718
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400011e0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov rbx, rdx
lea rcx, [0x14000e230]
call fcn.140016530
call fcn.14000e0d0
call fcn.140001110
lea rcx, [0x14005bff0]
call qword [sym.imp.api_ms_win_service_core_l1_1_0.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140001308
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x427
jne 0x1400013db
mov qword [rsp + 0x30], rsi
cmp edi, 2
jne 0x140001384
mov rcx, qword [rbx + 8]
lea r8d, [rdi + 2]
lea rdx, str._ddd
call fcn.140017168
xor edi, edi
lea rsi, str.ssh_agent
test eax, eax
jne 0x140001266
mov dword [0x14005c018], 7
jmp 0x1400012b0
mov rcx, qword [rbx + 8]
lea rdx, [0x140035bf8]
mov r8d, 3
call fcn.140017168
test eax, eax
jne 0x14000128c
mov dword [0x14005c018], 6
jmp 0x1400012b0
mov rcx, qword [rbx + 8]
lea rdx, [0x140035c00]
mov r8d, 2
call fcn.140017168
test eax, eax
jne 0x1400012cf
mov dword [0x14005c018], 5
mov qword [0x14005e5b0], rsi
mov qword [0x14005e5c0], rdi
mov qword [0x14005e5b8], rdi
mov dword [0x14005c010], 1
mov rcx, qword [rbx + 8]
lea rdx, [0x140035c00]
mov r8d, 2
call fcn.140017168
test eax, eax
jne 0x140001315
lea edx, [rax + 1]
lea rcx, [0x1400010f0]
call qword [sym.imp.api_ms_win_core_console_l1_1_0.dll_SetConsoleCtrlHandler]
mov ecx, 1
call fcn.140001a20
mov rsi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 8]
call fcn.140016fd4
movsxd rbx, eax
test eax, eax
je 0x140001384
mov edx, 1
mov qword [0x14005e5b0], rsi
mov rcx, rsi
mov dword [0x14005c018], 3
mov qword [0x14005e5c0], rdi
mov qword [0x14005e5b8], rdi
lea r8d, [rdx + 7]
mov dword [0x14005c010], edi
mov dword [0x14005c014], 8
call fcn.14002b580
call fcn.14002b570
mov rcx, rbx
call fcn.140001ff0
mov rsi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 0x10]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
test rax, rax
je 0x1400013fe
mov r8d, 0x10
lea rdx, [0x140035bc0]
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
test rax, rax
je 0x1400013fe
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_StartServiceA]
test eax, eax
jne 0x140001303
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x420
je 0x140001303
jmp 0x1400013e9
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.unable_to_start_ssh_agent_service__error_:_d
call fcn.1400038c0
int3
lea rcx, str.unable_to_open_service_handle
call fcn.1400038c0
int3
Function at 0x140001a20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
xor edi, edi
mov ebx, ecx
mov qword [rsp + 0x68], rdi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
mov r9d, ebx
lea rdx, str.agent_start
lea rcx, str._s_pid:_d__dbg:_d
mov dword [rsp + 0x60], eax
mov r8d, eax
call fcn.140003980
xor eax, eax
mov dword [0x14005e530], ebx
mov qword [0x14005e590], rax
lea rbx, [0x14005e590]
mov r9, rbx
mov dword [0x14005e590], 0x18
lea r8, [0x14005e598]
mov qword [0x14005e598], rax
lea edx, [rdi + 1]
mov qword [0x14005e5a0], rax
lea rcx, str.D:P_A__GA___SY__A__GA___BA__A__0x12019b___AU_
call qword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x140001b72
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREOpenSSHAgent
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x140001b87
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
lea r9d, [rdi + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ProcessID
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x140001b96
xor r9d, r9d
lea edx, [rdi + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventA]
mov qword [0x14005e568], rax
test rax, rax
je 0x140001ba5
xor r9d, r9d
lea edx, [rdi + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventA]
mov qword [0x14005e588], rax
test rax, rax
je 0x140001bba
mov qword [0x14005e5a8], 0xffffffffffffffff
mov dword [0x14005e5a0], edi
call fcn.140001680
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.cannot_convert_sddl_ERROR:_d
call fcn.1400038c0
int3
mov edx, eax
lea rcx, str.cannot_create_agent_root_reg_key__ERROR:_d
call fcn.1400038c0
int3
mov edx, eax
lea rcx, str.cannot_publish_agent_master_process_id_ERROR:_d
call fcn.1400038c0
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.cannot_create_global_stop_event_ERROR:_d
call fcn.1400038c0
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.cannot_create_event_ERROR:_d
call fcn.1400038c0
int3
Function at 0x140002180
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x30
mov r9d, dword [rcx + 0x40044]
mov rdi, r8
mov r8d, edx
mov rbx, rcx
mov rdx, rcx
lea rcx, str.connection_io__p_bytes:_d_state:_d
call fcn.140003a10
mov edx, dword [rsp + 0x48]
test edx, edx
jne 0x1400021d6
mov rcx, qword [rbx + 0x20]
lea r8, [rsp + 0x48]
xor r9d, r9d
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_GetOverlappedResult]
test eax, eax
je 0x140002322
mov edx, dword [rsp + 0x48]
cmp dword [rbx + 0x40044], 4
jne 0x1400021e9
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_DebugBreak]
mov edx, dword [rsp + 0x48]
mov ecx, dword [rbx + 0x40044]
test ecx, ecx
je 0x1400022cf
sub ecx, 1
je 0x140002272
sub ecx, 1
je 0x14000221b
cmp ecx, 1
je 0x1400022cf
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_DebugBreak]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
add dword [rbx + 0x3c], edx
mov eax, dword [rbx + 0x3c]
mov ecx, dword [rbx + 0x38]
cmp eax, ecx
jne 0x140002261
mov rcx, rbx
call fcn.140002340
test eax, eax
jne 0x140002322
mov r8d, dword [rbx + 0x38]
lea rdx, [rbx + 0x40]
mov rcx, qword [rbx + 0x20]
xor r9d, r9d
mov dword [rbx + 0x40044], 3
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
jmp 0x140002311
sub ecx, eax
lea rdx, [rbx + 0x40]
add rdx, rax
mov r8d, ecx
jmp 0x1400022ff
add dword [rbx + 0x3c], edx
lea rdx, [rbx + 0x40]
cmp dword [rbx + 0x3c], 4
jne 0x1400022be
movzx eax, byte [rbx + 0x41]
movzx ecx, byte [rdx]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x42]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x43]
shl ecx, 8
or ecx, eax
mov dword [rbx + 0x3c], 0
mov dword [rbx + 0x38], ecx
cmp ecx, 0x40000
ja 0x140002322
mov dword [rbx + 0x40044], 2
mov r8d, ecx
jmp 0x1400022ff
mov eax, dword [rbx + 0x38]
mov r8d, 4
sub r8d, eax
add rdx, rax
jmp 0x1400022ff
cmp edx, dword [rbx + 0x38]
je 0x1400022da
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_DebugBreak]
xor edx, edx
mov dword [rbx + 0x40044], 1
mov r8d, 0x4000c
lea rcx, [rbx + 0x38]
call fcn.140015b90
lea rdx, [rbx + 0x40]
mov r8d, 4
mov rcx, qword [rbx + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x140002334
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e5
je 0x140002334
mov rcx, rbx
mov dword [rbx + 0x40044], 4
call fcn.1400019b0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000bbe0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r9, rcx
lea r11, [rdx + 8]
lea r10, [rcx + 2]
mov ebx, 0xa
nop word [rax + rax]
mov ecx, dword [r11 - 4]
lea r10, [r10 + 8]
movzx eax, byte [r11 - 8]
mov r8d, dword [r11 - 8]
lea r11, [r11 + 0xc]
and al, 7
mov byte [r10 - 0xa], al
mov eax, r8d
shr eax, 3
and al, 7
shr r8d, 6
mov byte [r10 - 9], al
movzx eax, byte [r11 - 0x10]
shl al, 2
xor r8b, al
mov eax, ecx
shr eax, 1
and r8b, 7
and al, 7
mov byte [r10 - 8], r8b
mov byte [r10 - 7], al
mov eax, ecx
shr eax, 4
and al, 7
shr ecx, 7
mov byte [r10 - 6], al
movzx eax, byte [r11 - 0xc]
add al, al
xor cl, al
and cl, 7
mov byte [r10 - 5], cl
mov ecx, dword [r11 - 0xc]
mov eax, ecx
shr eax, 2
shr ecx, 5
and al, 7
and cl, 7
mov byte [r10 - 4], al
mov byte [r10 - 3], cl
sub rbx, 1
jne 0x14000bc00
movzx eax, byte [rdx + 0x78]
lea r10, [r9 + 0x54]
mov ecx, dword [rdx + 0x78]
lea r8d, [rbx + 0x54]
and al, 7
mov byte [r9 + 0x50], al
mov eax, ecx
shr eax, 3
and al, 7
shr ecx, 6
mov byte [r9 + 0x51], al
movzx eax, byte [rdx + 0x7c]
shl al, 2
xor cl, al
and cl, 7
mov byte [r9 + 0x52], cl
mov ecx, dword [rdx + 0x7c]
mov eax, ecx
shr eax, 1
shr ecx, 4
and al, 7
and cl, 7
mov byte [r9 + 0x53], al
xor al, al
mov byte [r10], cl
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [r9]
lea r9, [r9 + 1]
add cl, al
movzx eax, cl
sar cl, 3
add byte [r9], cl
and al, 7
mov byte [r9 - 1], al
sar al, 2
movzx ecx, al
shl cl, 3
sub byte [r9 - 1], cl
sub r8, 1
jne 0x14000bce0
add byte [r10], al
mov rbx, qword [rsp + 8]
ret

Function at 0x14000c100
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, dword [rcx + 0x7c]
lea r10, [rcx + 0x74]
mov r9d, r11d
mov r8, rcx
xor r9d, 0x7f
mov ebx, 5
dec r9d
shr r9d, 0x1f
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r10 - 0x10]
mov eax, dword [r10 - 0xc]
xor ecx, 0xff
mov edx, dword [r10 + 4]
lea r10, [r10 - 0x18]
xor eax, 0xff
dec ecx
dec eax
shr ecx, 0x1f
shr eax, 0x1f
xor edx, 0xff
and ecx, eax
dec edx
mov eax, dword [r10 + 0x10]
xor eax, 0xff
shr edx, 0x1f
dec eax
shr eax, 0x1f
and ecx, eax
mov eax, dword [r10 + 0x14]
xor eax, 0xff
dec eax
shr eax, 0x1f
and ecx, eax
mov eax, dword [r10 + 0x18]
xor eax, 0xff
dec eax
shr eax, 0x1f
and ecx, eax
and ecx, edx
and r9d, ecx
sub rbx, 1
jne 0x14000c130
mov ecx, dword [r8]
sub ecx, 0xed
not ecx
shr ecx, 0x1f
and ecx, r9d
neg ecx
mov eax, ecx
movzx edx, cl
and eax, 0x7f
sub r11d, eax
mov eax, 0x1e
mov dword [r8 + 0x7c], r11d
nop dword [rax]
nop dword [rax + rax]
sub dword [r8 + rax*4], edx
sub dword [r8 + rax*4 - 4], edx
sub rax, 2
test rax, rax
jg 0x14000c1d0
mov rbx, qword [rsp + 8]
and ecx, 0xed
sub dword [r8], ecx
ret
Function at 0x14000c320
Capabilities:
Encode data using xor

Disassembly:
mov r9, rdx
movzx r10d, r8b
neg r10d
lea rdx, [rcx + 0x7c]
lea rax, [r9 + 0x7c]
movd xmm2, r10d
pshufd xmm2, xmm2, 0
cmp rcx, rax
ja 0x14000c367
cmp rdx, r9
jb 0x14000c367
sub r9, rcx
mov r8d, 0x20
nop
mov edx, dword [rcx + r9]
xor edx, dword [rcx]
lea rcx, [rcx + 4]
and edx, r10d
xor dword [rcx - 4], edx
sub r8, 1
jne 0x14000c350
ret
lea rax, [rcx + 0x10]
sub r9, rcx
mov ecx, 4
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmm1, xmmword [r9 + rax - 0x10]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
pand xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [r9 + rax - 0x20]
pxor xmm1, xmm0
pand xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
sub rcx, 1
jne 0x14000c380
ret

Function at 0x14000d710
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r10, r8
mov r11, rdx
mov r9d, eax
test r8, r8
je 0x14000d748
sub r11, rcx
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [r11 + rcx]
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
xor r8d, edx
or r9d, r8d
sub r10, 1
jne 0x14000d730
test r9d, r9d
setne al
ret
Function at 0x14000d750
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
xor r11d, r11d
lea r15, [0x140051930]
mov r14, r9
mov rbx, rdx
mov r10, rcx
mov eax, r11d
cmp rdx, 2
jbe 0x14000d828
lea edx, [r11 + 4]
nop dword [rax + rax]
movzx r9d, byte [r10]
sub rbx, 3
movzx edi, byte [r10 + 1]
movzx ebp, r9b
movzx esi, byte [r10 + 2]
movzx ecx, dil
shr cl, 4
and r9b, 3
and dil, 0xf
shl r9b, 4
add r9b, cl
shl dil, 2
movzx ecx, sil
shr bpl, 2
shr cl, 6
add r10, 3
add dil, cl
and sil, 0x3f
cmp rdx, r14
ja 0x14000d8ce
movzx ecx, bpl
add rdx, 4
movzx ecx, byte [rcx + r15]
mov byte [rax + r8], cl
movzx ecx, r9b
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 1], cl
movzx ecx, dil
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 2], cl
movzx ecx, sil
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 3], cl
add rax, 4
cmp rbx, 2
ja 0x14000d790
test rbx, rbx
je 0x14000d8ec
xor r9b, r9b
mov word [rsp + 0x29], r11w
xor dil, dil
mov byte [rsp + 0x28], r9b
xor dl, dl
test rbx, rbx
je 0x14000d876
mov rdx, r11
nop dword [rax]
movzx ecx, byte [r10]
inc r11d
mov byte [rsp + rdx + 0x28], cl
inc r10
mov edx, r11d
cmp rdx, rbx
jb 0x14000d850
movzx edi, byte [rsp + 0x2a]
movzx edx, byte [rsp + 0x29]
movzx r9d, byte [rsp + 0x28]
movzx ecx, dl
shr dil, 6
movzx r10d, r9b
shr cl, 4
and r9b, 3
shr r10b, 2
and dl, 0xf
shl r9b, 4
shl dl, 2
add r9b, cl
lea rcx, [rax + 4]
add dl, dil
cmp rcx, r14
ja 0x14000d8ce
movzx ecx, r10b
movzx ecx, byte [rcx + r15]
mov byte [rax + r8], cl
movzx ecx, r9b
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 1], cl
cmp rbx, 1
jne 0x14000d8d3
mov byte [rax + r8 + 2], 0x3d
jmp 0x14000d8e0
or eax, 0xffffffff
jmp 0x14000d8f6
movzx ecx, dl
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 2], cl
add rax, 3
mov byte [rax + r8], 0x3d
inc rax
cmp rax, r14
jae 0x14000d8ce
mov byte [rax + r8], 0
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
pop r15
pop r14
pop rdi
ret
Function at 0x14000ed70
Capabilities:
Initialize winsock library

Disassembly:
push rdi
sub rsp, 0x1d0
mov rax, qword [0x14005b1f0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
xor eax, eax
mov word [rsp + 0x20], ax
lea rax, [rsp + 0x22]
mov rdi, rax
xor eax, eax
mov ecx, 0x196
rep stosb byte [rdi], al
lea rdx, [rsp + 0x20]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140014060
add rsp, 0x1d0
pop rdi
ret
Function at 0x140010510
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
add rax, 0xa4
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x58]
mov dword [rax + 0xa4], ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
lea r8, [0x140010330]
xor edx, edx
xor ecx, ecx
call fcn.14001dcac
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400105b3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14000f290
mov dword [rsp + 0x30], eax
call fcn.14001b7e4
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8, qword [rsp + 0x50]
mov edx, eax
lea rcx, str.syncio_initiate_write_initiate___ERROR__beginthreadex__d__io:_p
call fcn.140003a10
mov eax, 0xffffffff
jmp 0x1400105cf
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x38], rcx
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x74], 1
xor eax, eax
add rsp, 0x40
pop rdi
ret