joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140158e30
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x48
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.140158880
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jbe 0x140158edb
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov ecx, eax
call fcn.14027bb94
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140158ed2
mov eax, dword [rsp + 0x20]
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x50]
mov edx, eax
mov rcx, qword [rsp + 0x28]
call fcn.140158970
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x140158ec8
mov rcx, qword [rsp + 0x28]
call fcn.140158c30
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x28]
call fcn.14027a7c0
mov qword [rsp + 0x30], 0
add rsp, 0x48
ret
Function at 0x140159220
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140325ed8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x60], 0
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x71], 0
mov byte [rsp + 0x72], 0
mov byte [rsp + 0x73], 0
mov byte [rsp + 0x74], 0
mov byte [rsp + 0x75], 5
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x1401592e3
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1401592d8
mov dword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14026d940
add rsp, 0x88
ret

Function at 0x140159300
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x260
mov rax, qword [0x140325ed8]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rcx, str.WriteSetupPath
call fcn.140158e30
lea rax, [rsp + 0x140]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea r8, str.TempA76AA028_5C69_476E_8176_8C215CCDDE35
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140286f10
mov r8d, 0x104
lea rdx, [rsp + 0x140]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [0x140335264]
lea rcx, [rsp + 0x30]
call fcn.140278e78
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401593db
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x140]
call fcn.140286e08
mov rcx, qword [rsp + 0x20]
call fcn.1402793a8
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x140]
lea rcx, str.write_setup_path__s:_s
call fcn.140158e30
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14026d940
add rsp, 0x260
pop rdi
ret
Function at 0x140159400
Capabilities:
Delete registry key
Print debug messages

Disassembly:
push rdi
sub rsp, 0x4b0
mov rax, qword [0x140325ed8]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
lea rcx, str.DeleteUninstallKey
call fcn.140158e30
lea rax, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
lea r9, str.networkSrv
mov r8, qword [rsp + 0x28]
mov edx, 0x400
lea rcx, [rsp + 0xa0]
call fcn.140001420
lea rdx, [rsp + 0xa0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1401594bc
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x64
rep stosb byte [rdi], al
mov r9d, dword [rsp + 0x20]
lea r8, str.DeleteUninstallKey_RegDeleteKeyW:_d
mov edx, 0x64
lea rcx, [rsp + 0x30]
call fcn.140001420
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.14026d940
add rsp, 0x4b0
pop rdi
ret

Function at 0x1401594e0
Capabilities:
Create process on windows
Print debug messages

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x380
mov rax, qword [0x140325ed8]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov r8d, 0x168
lea rdx, [rsp + 0xa0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1401595bf
mov dword [rsp + 0x30], reloc.WS2_32.dll_WSASetLastError
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, WSAGetLastError
rep stosb byte [rdi], al
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x60], 0
cmp dword [rsp + 0x398], 0
je 0x140159563
lea rax, str.open
mov qword [rsp + 0x28], rax
jmp 0x14015956f
lea rax, str.runas
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x48], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x390]
call fcn.140112d50
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [rsp + 0x20], eax
lea rcx, str.ShellExecuteExW
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.14026d940
add rsp, 0x380
pop rdi
ret
Function at 0x1401595e0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x78
movzx eax, word [rsp + 0x80]
mov r8, qword [rsp + 0x88]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140159620
xor eax, eax
jmp 0x140159716
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
ja 0x14015963f
xor eax, eax
jmp 0x140159716
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140159660
xor eax, eax
jmp 0x140159716
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14015967f
xor eax, eax
jmp 0x140159716
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1401596c5
xor eax, eax
jmp 0x140159716
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x140159702
cmp dword [rsp + 0x44], 0
ja 0x140159706
xor eax, eax
jmp 0x140159716
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x78
ret

Function at 0x140159720
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x150
mov rax, qword [0x140325ed8]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov r8, qword [rsp + 0x170]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140286f10
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x168]
mov ecx, dword [rsp + 0x160]
call fcn.1401595e0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1401597ae
lea rcx, [rsp + 0x30]
call fcn.140159880
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14026d940
add rsp, 0x150
pop rdi
ret
Function at 0x140159e70
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x140325ed8]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x140159eac
xor eax, eax
jmp 0x140159f11
mov dword [rsp + 0x30], 0x130
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140159f04
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x5c]
call fcn.14027a6f0
test eax, eax
jne 0x140159ef0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140159f11
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140159ec8
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14026d940
add rsp, 0x178
ret
Function at 0x140181950
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x140181977
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
xor dl, al
or r9b, dl
sub r8, 1
jne 0x140181960
movzx eax, r9b
ret

Function at 0x140183490
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
mov eax, 0x30
call fcn.14026deb0
sub rsp, rax
mov r10, r9
mov r11, r8
mov rbx, rcx
test r9, r9
jne 0x1401834cb
mov edx, 0xe2
mov dword [rsp + 0x20], r9d
lea ecx, [rax - 0x23]
lea r8d, [rdx - 4]
call fcn.14016f720
xor eax, eax
add rsp, 0x30
pop rbx
ret
movzx r8d, byte [r8]
and r8d, 0x80
test rdx, rdx
je 0x1401834de
mov dword [rdx], r8d
cmp r10, 1
jne 0x140183503
test rbx, rbx
je 0x1401834f8
movzx eax, byte [r11]
test r8d, r8d
je 0x1401834f6
not al
inc al
mov byte [rcx], al
mov eax, 1
add rsp, 0x30
pop rbx
ret
movzx eax, byte [r11]
xor ecx, ecx
test al, al
jne 0x140183514
mov ecx, 1
jmp 0x14018354c
cmp al, 0xff
jne 0x140183580
xor edx, edx
mov ecx, 1
cmp rcx, r10
jae 0x14018353f
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + r11]
inc rcx
or edx, eax
cmp rcx, r10
jb 0x140183530
xor eax, eax
test edx, edx
setne al
mov ecx, eax
test eax, eax
je 0x140183580
movzx eax, byte [r11 + 1]
and eax, 0x80
cmp r8d, eax
jne 0x140183580
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov edx, 0xe2
lea ecx, [r9 + 0xd]
lea r8d, [rdx - 5]
call fcn.14016f720
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov eax, ecx
sub r10, rax
test rbx, rbx
je 0x1401835e5
neg r8d
mov qword [rsp + 0x40], rdi
lea r9, [rax + r11]
sbb dil, dil
add r9, r10
movzx edi, dil
mov edx, edi
and edx, 1
test r10, r10
je 0x1401835e0
mov r8, r9
sub r8, rax
sub r8, r11
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r9 - 1]
lea r9, [r9 - 1]
dec r8
movzx ecx, dil
xor ecx, eax
add edx, ecx
mov byte [r8 + rbx], dl
shr edx, 8
test r8, r8
jne 0x1401835c0
mov rdi, qword [rsp + 0x40]
mov rax, r10
add rsp, 0x30
pop rbx
ret
Function at 0x140190b50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
xor r10d, r10d
mov qword [rsp + 0x18], rdi
movsxd rdi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x140190b9e
mov qword [rsp + 0x10], rbx
mov r11, rcx
sub r11, rdx
mov rbx, rdx
neg rbx
mov r9, rdx
movzx eax, byte [r9]
cmp byte [r11 + r9], al
jne 0x140190b99
inc r9
inc r10d
lea rax, [rbx + r9]
cmp rax, rdi
jl 0x140190b80
mov rbx, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
lea edx, [r8 - 1]
movsxd rax, edx
test edx, edx
js 0x140190bda
mov r8, rbp
lea rcx, [rax + rsi]
sub r8, rsi
mov r9, rsi
neg r9
nop
cmp byte [rcx + r8], 0
jne 0x140190bda
cmp byte [rcx], 0xff
jne 0x140190bda
dec rcx
dec edx
lea rax, [rcx + r9]
test rax, rax
jns 0x140190bc0
cmp r10d, edx
jl case.0x140190c2f.2
jle 0x140190bf4
lea eax, [r10*8]
mov rbp, qword [rsp + 0x20]
pop rsi
ret
movsxd rax, r10d
movzx r8d, byte [rax + rsi]
movzx r9d, byte [rax + rbp]
movzx edx, r8b
xor dl, r9b
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x140190c2f.2
lea r11, [0x140000000]
cdqe
movzx eax, byte [r11 + rax + 0x190ca4]
mov ecx, dword [r11 + rax*4 + 0x190c84]
add rcx, r11
jmp rcx
mov eax, 7
jmp 0x140190c60
mov eax, 6
jmp 0x140190c60
mov eax, 5
jmp 0x140190c60
mov eax, 4
jmp 0x140190c60
mov eax, 3
jmp 0x140190c60
mov eax, 2
jmp 0x140190c60
mov eax, 1
test dl, r9b
jne case.0x140190c2f.2
and r8b, dl
cmp r8b, dl
jne case.0x140190c2f.2
lea eax, [rax + r10*8]
mov rbp, qword [rsp + 0x20]
pop rsi
ret
or eax, 0xffffffff
mov rbp, qword [rsp + 0x20]
pop rsi
ret
Function at 0x1401a2480
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1401a264e
push rbx
push rbp
push rsi
push rdi
push r13
mov eax, 0x20
call fcn.14026deb0
sub rsp, rax
mov rbp, qword [rsp + 0x70]
mov rbx, r8
mov qword [rsp + 0x50], r12
mov r13, r9
mov r12, qword [rsp + 0x78]
mov rdi, rdx
mov rsi, rcx
mov r10, rbp
cmp rbx, 0x10
jb 0x1401a2518
mov rbp, rbx
shr rbp, 4
imul rax, rbp, 0xfffffffffffffff0
add rbx, rax
nop
sub r10, rsi
mov r8, rdi
sub r8, rsi
mov rcx, rsi
mov edx, 2
mov rax, qword [r10 + rcx]
xor rax, qword [rcx]
mov qword [r8 + rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x1401a24e1
mov r8, r13
mov rdx, rdi
mov rcx, rdi
call r12
mov r10, rdi
add rsi, 0x10
add rdi, 0x10
sub rbp, 1
jne 0x1401a24d0
mov rbp, qword [rsp + 0x70]
test rbx, rbx
je 0x1401a2632
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r15
nop dword [rax + rax]
mov r8, r10
mov r9, rdi
mov r11d, 1
mov r14d, 2
sub r8, rsi
sub r9, rsi
sub r11, rsi
sub r14, rsi
xor eax, eax
mov r15d, 3
sub r15, rsi
nop dword [rax]
cmp rax, rbx
jae 0x1401a25d4
lea rdx, [rax + rsi]
movzx ecx, byte [r8 + rdx]
xor cl, byte [rdx]
mov byte [r9 + rdx], cl
lea rcx, [r11 + rdx]
cmp rcx, rbx
jae 0x1401a25d1
movzx ecx, byte [rsi + rax + 1]
xor cl, byte [rax + r10 + 1]
mov byte [rdi + rax + 1], cl
lea rcx, [r14 + rdx]
cmp rcx, rbx
jae 0x1401a25cb
movzx ecx, byte [rsi + rax + 2]
xor cl, byte [rax + r10 + 2]
mov byte [rdi + rax + 2], cl
lea rcx, [r15 + rdx]
cmp rcx, rbx
jae 0x1401a25c5
movzx ecx, byte [rsi + rax + 3]
xor cl, byte [rax + r10 + 3]
mov byte [rdi + rax + 3], cl
add rax, 4
cmp rax, 0x10
jb 0x1401a2560
jmp 0x1401a2601
add rax, 3
jmp 0x1401a25d4
add rax, 2
jmp 0x1401a25d4
inc rax
cmp rax, 0x10
jae 0x1401a2601
sub r10, rdi
lea rcx, [rax + rdi]
mov edx, reloc.WS2_32.dll_recv
sub rdx, rax
nop dword [rax]
movzx eax, byte [r10 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1401a25f0
mov r8, r13
mov rdx, rdi
mov rcx, rdi
call r12
mov r10, rdi
cmp rbx, 0x10
jbe 0x1401a2628
add rsi, 0x10
add rdi, 0x10
sub rbx, 0x10
jne 0x1401a2530
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x60]
mov r12, qword [rsp + 0x50]
cmp rbp, r10
je 0x1401a2644
movups xmm0, xmmword [r10]
movups xmmword [rbp], xmm0
add rsp, 0x20
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401a2850
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x30
call fcn.14026deb0
sub rsp, rax
mov rdi, r8
mov r14, rdx
mov r8, qword [rsp + 0xa0]
mov r15, rcx
mov ebx, dword [r8]
mov dword [rsp + 0x80], ebx
test ebx, ebx
je 0x1401a28c8
mov rdx, qword [rsp + 0x98]
nop dword [rax]
test rdi, rdi
je 0x1401a28c1
mov eax, ebx
dec rdi
movzx ecx, byte [rax + rdx]
xor cl, byte [r15]
inc r15
mov byte [r14], cl
inc r14
inc ebx
and ebx, 0xf
jne 0x1401a28a0
mov dword [rsp + 0x80], ebx
mov rcx, qword [rsp + 0x90]
mov esi, listen
movzx r13d, byte [rcx + 0xc]
lea r12, [rcx + 0xc]
mov r10, qword [rsp + 0xa8]
shl r13d, 8
movzx eax, byte [rcx + 0xd]
lea ebp, [rsi - 0xb]
or r13d, eax
movzx eax, byte [rcx + 0xe]
shl r13d, 8
or r13d, eax
movzx eax, byte [rcx + 0xf]
shl r13d, 8
or r13d, eax
cmp rdi, 0x10
jb 0x1401a29ed
mov eax, 0x10000000
mov ebx, esi
nop dword [rax + rax]
mov rsi, rdi
shr rsi, 4
cmp rsi, rax
cmova rsi, rax
add r13d, esi
mov eax, r13d
cmp rax, rsi
jae 0x1401a293f
sub rsi, rax
xor r13d, r13d
mov qword [rsp + 0x20], rcx
mov r8, rsi
mov rcx, r15
mov rdx, r14
call r10
mov rcx, qword [rsp + 0x90]
mov eax, r13d
shr eax, 0x18
mov byte [r12], al
mov eax, r13d
shr eax, 0x10
mov byte [rcx + 0xd], al
mov eax, r13d
shr eax, 8
mov byte [rcx + 0xe], al
mov byte [rcx + 0xf], r13b
test r13d, r13d
jne 0x1401a29ad
mov r8d, ebx
mov ecx, ebp
mov rdx, r12
nop word [rax + rax]
movzx eax, byte [rdx - 1]
lea rdx, [rdx - 1]
add ecx, eax
mov byte [rdx], cl
shr ecx, 8
add r8d, 0xffffffff
jne 0x1401a2990
mov rcx, qword [rsp + 0x90]
mov r9, qword [rsp + 0x88]
mov eax, 0x10000000
mov r10, qword [rsp + 0xa8]
shl rsi, 4
sub rdi, rsi
add r14, rsi
add r15, rsi
cmp rdi, 0x10
jae 0x1401a2920
mov ebx, dword [rsp + 0x80]
mov esi, listen
mov r8, qword [rsp + 0xa0]
test rdi, rdi
je 0x1401a2aa2
mov rax, qword [rsp + 0x98]
xor edx, edx
mov qword [rsp + 0x20], rcx
mov r8, rbp
mov rcx, rax
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov rdx, rax
call r10
mov rcx, qword [rsp + 0x90]
inc r13d
mov eax, r13d
shr eax, 0x18
mov byte [r12], al
mov eax, r13d
shr eax, 0x10
mov byte [rcx + 0xd], al
mov eax, r13d
shr eax, 8
mov byte [rcx + 0xe], al
mov byte [rcx + 0xf], r13b
test r13d, r13d
jne 0x1401a2a69
nop dword [rax + rax]
movzx eax, byte [r12 - 1]
lea r12, [r12 - 1]
add ebp, eax
mov byte [r12], bpl
shr ebp, 8
add esi, 0xffffffff
jne 0x1401a2a50
mov rdx, qword [rsp + 0x98]
nop dword [rax]
nop word [rax + rax]
mov ecx, ebx
inc ebx
movzx eax, byte [rcx + r15]
xor al, byte [rcx + rdx]
mov byte [rcx + r14], al
sub rdi, 1
jne 0x1401a2a80
mov rax, qword [rsp + 0xa0]
mov dword [rax], ebx
jmp 0x1401a2aa5
mov dword [r8], ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401a3170
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
mov eax, 0x20
call fcn.14026deb0
sub rsp, rax
cmp qword [rcx + 0x38], 0
mov rbx, r8
mov r14, rdx
mov rsi, rcx
je 0x1401a31af
mov eax, 0xfffffffe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rcx, qword [rcx + 0x30]
movabs rax, 0x2000000000000000
add rcx, rbx
cmp rcx, rax
ja 0x1401a3280
cmp rcx, rbx
jb 0x1401a3280
mov qword [rsp + 0x38], rdi
mov edi, dword [rsi + 0x174]
mov qword [rsi + 0x30], rcx
test edi, edi
je 0x1401a3214
test rbx, rbx
je 0x1401a3203
movzx eax, byte [r14]
dec rbx
mov ecx, edi
inc r14
xor byte [rcx + rsi + 0x40], al
inc edi
and edi, 0xf
jne 0x1401a31e5
jmp 0x1401a3207
test edi, edi
jne 0x1401a3262
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
call fcn.1401a4800
mov qword [rsp + 0x30], rbp
mov rbp, rbx
and rbp, 0xfffffffffffffff0
je 0x1401a323b
lea rdx, [rsi + 0x60]
mov r9, rbp
lea rcx, [rsi + 0x40]
mov r8, r14
call fcn.1401a4630
add r14, rbp
sub rbx, rbp
mov rbp, qword [rsp + 0x30]
test rbx, rbx
je 0x1401a3262
mov edi, ebx
lea rcx, [rsi + 0x40]
sub r14, rsi
nop
movzx eax, byte [r14 + rcx - 0x40]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rbx, 1
jne 0x1401a3250
mov dword [rsi + 0x174], edi
xor eax, eax
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rbx, qword [rsp + 0x40]
or eax, 0xffffffff
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1401a43d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
mov eax, 0x20
call fcn.14026deb0
sub rsp, rax
xor ebp, ebp
mov rsi, r8
mov qword [rcx + 0x30], rbp
mov r15, rdx
mov qword [rcx + 0x38], rbp
mov rbx, rcx
mov qword [rcx + 0x170], rbp
cmp r8, 0xc
jne 0x1401a4421
movsd xmm0, qword [rdx]
lea edi, [rbp + 1]
movsd qword [rcx], xmm0
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov dword [rcx + 0xc], 0x1000000
jmp 0x1401a4582
mov qword [rsp + 0x58], r13
mov r13, rsi
mov qword [rcx + 0x40], rbp
mov qword [rsp + 0x60], r14
mov qword [rcx + 0x48], rbp
cmp rsi, 0x10
jb 0x1401a44c4
mov rbp, rsi
mov qword [rsp + 0x50], r12
shr rbp, 4
mov rdi, r15
imul rax, rbp, 0xfffffffffffffff0
sub rdi, rbx
add rsi, rax
sub rdi, 0x3f
mov rax, rbp
shl rax, 4
add r15, rax
nop word [rax + rax]
lea rax, [rbx + 0x40]
mov edx, 4
nop dword [rax]
movzx ecx, byte [rax + rdi - 1]
xor byte [rax], cl
movzx ecx, byte [rax + rdi]
xor byte [rax + 1], cl
movzx ecx, byte [rax + rdi + 1]
xor byte [rax + 2], cl
movzx ecx, byte [rax + rdi + 2]
xor byte [rax + 3], cl
lea rax, [rax + 4]
sub rdx, 1
jne 0x1401a4480
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call fcn.1401a4800
add rdi, 0x10
sub rbp, 1
jne 0x1401a4470
mov r12, qword [rsp + 0x50]
test rsi, rsi
je 0x1401a44ef
lea rcx, [rbx + 0x40]
sub r15, rbx
movzx eax, byte [r15 + rcx - 0x40]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rsi, 1
jne 0x1401a44d0
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call fcn.1401a4800
shl r13, 3
lea rdx, [rbx + 0x60]
xor byte [rbx + 0x4f], r13b
lea rcx, [rbx + 0x40]
mov rax, r13
shr rax, 0x38
xor byte [rbx + 0x48], al
mov rax, r13
shr rax, 0x30
xor byte [rbx + 0x49], al
mov rax, r13
shr rax, 0x28
xor byte [rbx + 0x4a], al
mov rax, r13
shr rax, 0x20
xor byte [rbx + 0x4b], al
mov rax, r13
shr rax, 0x18
xor byte [rbx + 0x4c], al
mov rax, r13
shr rax, 0x10
xor byte [rbx + 0x4d], al
mov rax, r13
shr rax, 8
xor byte [rbx + 0x4e], al
call fcn.1401a4800
movzx eax, byte [rbx + 0x4d]
movzx edi, byte [rbx + 0x4c]
mov r14, qword [rsp + 0x60]
mov r13, qword [rsp + 0x58]
shl edi, 8
or edi, eax
movzx eax, byte [rbx + 0x4e]
shl edi, 8
or edi, eax
movzx eax, byte [rbx + 0x4f]
shl edi, 8
or edi, eax
mov rax, qword [rbx + 0x40]
mov qword [rbx], rax
mov rax, qword [rbx + 0x48]
mov qword [rbx + 8], rax
mov qword [rbx + 0x40], rbp
lea rdx, [rbx + 0x20]
mov qword [rbx + 0x48], rbp
mov rcx, rbx
mov r8, qword [rbx + 0x180]
call qword [rbx + 0x178]
inc edi
mov eax, edi
mov byte [rbx + 0xf], dil
shr eax, 0x18
mov byte [rbx + 0xc], al
mov eax, edi
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, edi
shr eax, 8
mov byte [rbx + 0xe], al
add rsp, 0x20
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401a4630
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov rsi, rcx
lea r14, [r8 + 0xe]
sub rsi, r8
lea r13, [0x1402c3ea0]
mov r12, r9
mov rbp, rdx
mov r11, rcx
nop word [rax + rax]
movzx eax, byte [r11 + 0xf]
mov rdi, r14
movzx ecx, byte [r14 + 1]
mov r15d, reloc.WS2_32.dll_ntohs
xor rcx, rax
mov r9, rcx
and ecx, 0xf
add rcx, rcx
and r9, 0xfffffffffffffff0
mov r8, qword [rbp + rcx*8]
mov rcx, qword [rbp + rcx*8 + 8]
mov rax, r8
mov rdx, rcx
shr r8, 4
and edx, 0xf
shl rax, 0x3c
shr rcx, 4
or rax, rcx
mov rbx, qword [r13 + rdx*8]
xor rbx, r8
xor rbx, qword [r9 + rbp]
xor rax, qword [r9 + rbp + 8]
nop word [rax + rax]
movzx ecx, byte [rdi]
mov r9, rbx
movzx edx, byte [rsi + rdi]
lea rdi, [rdi - 1]
xor rdx, rcx
shr rbx, 4
mov rcx, rax
shl r9, 0x3c
shr rax, 4
and ecx, 0xf
or r9, rax
mov r10, rdx
and r10, 0xfffffffffffffff0
and edx, 0xf
add rdx, rdx
mov r8, qword [r13 + rcx*8]
xor r8, rbx
xor r9, qword [rbp + rdx*8 + 8]
xor r8, qword [rbp + rdx*8]
mov rcx, r9
and ecx, 0xf
shr r9, 4
mov rax, r8
shr r8, 4
shl rax, 0x3c
or rax, r9
mov rbx, qword [r13 + rcx*8]
xor rax, qword [r10 + rbp + 8]
xor rbx, r8
xor rbx, qword [r10 + rbp]
sub r15, 1
jne 0x1401a46d0
mov rdx, rbx
mov byte [r11 + 7], bl
shr rdx, 0x20
add r14, 0x10
mov ecx, edx
mov byte [r11 + 3], dl
shr ecx, 0x18
sub rsi, 0x10
mov byte [r11], cl
mov ecx, edx
shr ecx, 0x10
mov byte [r11 + 1], cl
mov ecx, edx
shr ecx, 8
mov rdx, rax
mov byte [r11 + 2], cl
mov ecx, ebx
shr ecx, 0x18
mov byte [r11 + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [r11 + 5], cl
mov ecx, ebx
shr ecx, 8
mov byte [r11 + 6], cl
shr rdx, 0x20
mov ecx, edx
mov byte [r11 + 0xb], dl
shr ecx, 0x18
mov byte [r11 + 8], cl
mov ecx, edx
shr ecx, 0x10
mov byte [r11 + 9], cl
mov ecx, edx
shr ecx, 8
mov byte [r11 + 0xa], cl
mov ecx, eax
shr ecx, 0x18
mov byte [r11 + 0xc], cl
mov ecx, eax
shr ecx, 0x10
mov byte [r11 + 0xd], cl
mov ecx, eax
shr ecx, 8
mov byte [r11 + 0xe], cl
mov byte [r11 + 0xf], al
sub r12, 0x10
jne 0x1401a4670
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret