joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001dca0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0xd8
mov qword [rsp + 0x90], 0x5f5e100
mov byte [rsp + 0x30], 0x45
mov byte [rsp + 0x31], 0x56
mov byte [rsp + 0x32], reloc.OLEAUT32.dll_VarR8FromDisp
mov byte [rsp + 0x33], 0x5f
mov byte [rsp + 0x34], WSASetLastError
and al, 0x34
insd dword [rdi], dx
mov byte [rsp + 0x35], 0x4a
mov byte [rsp + 0x36], 0x6a
mov byte [rsp + 0x37], 0x26
mov byte [rsp + 0x38], gethostbyname
mov byte [rsp + 0x39], 0x4c
mov byte [rsp + 0x3a], reloc.WS2_32.dll_getservbyname
mov byte [rsp + 0x3b], 0x76
mov byte [rsp + 0x3c], 0x47
mov byte [rsp + 0x3d], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x3e], VarI4FromDisp
mov byte [rsp + 0x3f], 0x43
mov byte [rsp + 0x40], 0x7a
mov byte [rsp + 0x41], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x42], gethostbyname
mov byte [rsp + 0x43], VarI4FromDisp
mov byte [rsp + 0x44], 0x2a
mov byte [rsp + 0x45], 0x4c
mov byte [rsp + 0x46], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0xc0], 0
movabs rax, 0x140000e46
mov qword [rsp + 0x60], rax
movabs rax, 0x1400044f6
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x5c], 0x7d0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x88], 0
movabs rax, sym.imp.KERNEL32.dll_HeapAlloc
mov qword [rsp + 0xa0], rax
movabs rax, sym.imp.KERNEL32.dll_GetProcessHeap
mov qword [rsp + 0xb8], rax
movabs rax, sym.imp.KERNEL32.dll_HeapFree
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
call qword [rsp + reloc.WS2_32.dll_WSASetLastError]
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x90]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [rsp + 0x98]
add byte [rax], al
add byte [rax - 0x77], cl
and al, 0x20
mov qword [rsp + 0x48], 0
jmp 0x14001de10
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0x48], rax
jae 0x14001de38
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
movzx ecx, byte [rsp + 0x48]
mov byte [rax], cl
jmp 0x14001de03
mov rax, qword [rsp + 0x50]
add rax, 0x2b5e
mov qword [rsp + 0x50], rax
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
imul eax, eax, 0x64
cdqe
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
imul eax, eax, 0x8c
cdqe
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax + 0x2b5e]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x28], 0
jmp 0x14001de96
Function at 0x14001dd50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0xd8
mov qword [rsp + 0x90], 0x5f5e100
mov byte [rsp + 0x30], 0x45
mov byte [rsp + 0x31], 0x56
mov byte [rsp + 0x32], reloc.OLEAUT32.dll_VarR8FromDisp
mov byte [rsp + 0x33], 0x5f
mov byte [rsp + 0x34], WSASetLastError
and al, 0x34
insd dword [rdi], dx
mov byte [rsp + 0x35], 0x4a
mov byte [rsp + 0x36], 0x6a
mov byte [rsp + 0x37], 0x26
mov byte [rsp + 0x38], gethostbyname
mov byte [rsp + 0x39], 0x4c
mov byte [rsp + 0x3a], reloc.WS2_32.dll_getservbyname
mov byte [rsp + 0x3b], 0x76
mov byte [rsp + 0x3c], 0x47
mov byte [rsp + 0x3d], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x3e], VarI4FromDisp
mov byte [rsp + 0x3f], 0x43
mov byte [rsp + 0x40], 0x7a
mov byte [rsp + 0x41], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x42], gethostbyname
mov byte [rsp + 0x43], VarI4FromDisp
mov byte [rsp + 0x44], 0x2a
mov byte [rsp + 0x45], 0x4c
mov byte [rsp + 0x46], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0xc0], 0
movabs rax, 0x140000e46
mov qword [rsp + 0x60], rax
movabs rax, 0x1400044f6
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x5c], 0x7d0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x88], 0
movabs rax, sym.imp.KERNEL32.dll_HeapAlloc
mov qword [rsp + 0xa0], rax
movabs rax, sym.imp.KERNEL32.dll_GetProcessHeap
mov qword [rsp + 0xb8], rax
movabs rax, sym.imp.KERNEL32.dll_HeapFree
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
call qword [rsp + reloc.WS2_32.dll_WSASetLastError]
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x90]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [rsp + 0x98]
add byte [rax], al
add byte [rax - 0x77], cl
and al, 0x20
mov qword [rsp + 0x48], 0
jmp 0x14001de10
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0x48], rax
jae 0x14001de38
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
movzx ecx, byte [rsp + 0x48]
mov byte [rax], cl
jmp 0x14001de03
mov rax, qword [rsp + 0x50]
add rax, 0x2b5e
mov qword [rsp + 0x50], rax
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
imul eax, eax, 0x64
cdqe
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
imul eax, eax, 0x8c
cdqe
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax + 0x2b5e]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x28], 0
jmp 0x14001de96
Function at 0x14001ddf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0xd8
mov qword [rsp + 0x90], 0x5f5e100
mov byte [rsp + 0x30], 0x45
mov byte [rsp + 0x31], 0x56
mov byte [rsp + 0x32], reloc.OLEAUT32.dll_VarR8FromDisp
mov byte [rsp + 0x33], 0x5f
mov byte [rsp + 0x34], WSASetLastError
and al, 0x34
insd dword [rdi], dx
mov byte [rsp + 0x35], 0x4a
mov byte [rsp + 0x36], 0x6a
mov byte [rsp + 0x37], 0x26
mov byte [rsp + 0x38], gethostbyname
mov byte [rsp + 0x39], 0x4c
mov byte [rsp + 0x3a], reloc.WS2_32.dll_getservbyname
mov byte [rsp + 0x3b], 0x76
mov byte [rsp + 0x3c], 0x47
mov byte [rsp + 0x3d], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x3e], VarI4FromDisp
mov byte [rsp + 0x3f], 0x43
mov byte [rsp + 0x40], 0x7a
mov byte [rsp + 0x41], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x42], gethostbyname
mov byte [rsp + 0x43], VarI4FromDisp
mov byte [rsp + 0x44], 0x2a
mov byte [rsp + 0x45], 0x4c
mov byte [rsp + 0x46], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0xc0], 0
movabs rax, 0x140000e46
mov qword [rsp + 0x60], rax
movabs rax, 0x1400044f6
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x5c], 0x7d0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x88], 0
movabs rax, sym.imp.KERNEL32.dll_HeapAlloc
mov qword [rsp + 0xa0], rax
movabs rax, sym.imp.KERNEL32.dll_GetProcessHeap
mov qword [rsp + 0xb8], rax
movabs rax, sym.imp.KERNEL32.dll_HeapFree
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
call qword [rsp + reloc.WS2_32.dll_WSASetLastError]
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x90]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [rsp + 0x98]
add byte [rax], al
add byte [rax - 0x77], cl
and al, 0x20
mov qword [rsp + 0x48], 0
jmp 0x14001de10
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0x48], rax
jae 0x14001de38
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
movzx ecx, byte [rsp + 0x48]
mov byte [rax], cl
jmp 0x14001de03
mov rax, qword [rsp + 0x50]
add rax, 0x2b5e
mov qword [rsp + 0x50], rax
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
imul eax, eax, 0x64
cdqe
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
imul eax, eax, 0x8c
cdqe
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax + 0x2b5e]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x28], 0
jmp 0x14001de96
Function at 0x14001ded0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x28], eax
jae 0x14001dfcc
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x28]
cdq
mov ecx, dword [rsp + 0x6c]
idiv ecx
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x20]
push rsp
and al, 0x20
movzx ecx, byte [rdx + rcx]
imul eax, ecx
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
imul ecx, ecx, 0x11b5
mov edx, 1
imul rdx, rdx, 0x3e7
mov r8, qword [rsp + 0x20]
movzx edx, byte [r8 + rdx]
imul ecx, edx
add eax, ecx
cdqe
mov qword [rsp + 0xb0], rax
movsxd rcx, dword [rsp + 0x28]
xor edx, edx
mov rax, rcx
mov ecx, reloc.WS2_32.dll_socket
div rcx
mov rax, rdx
movzx eax, byte [rsp + rax + 0x30]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0xb0]
movzx ecx, byte [rcx + rdx]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
mov ecx, 1
imul rcx, rcx, 0x3e7
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
mov edx, 1
imul rdx, rdx, 0
mov r8, qword [rsp + 0x20]
movzx edx, byte [r8 + rdx]
imul edx, edx, 0x11b5
imul edx, ecx
mov ecx, edx
mov edx, 1
imul rdx, rdx, 1
mov r8, qword [rsp + 0x20]
movzx edx, byte [r8 + rdx]
mov dword [rsp + 0x68], edx
mov r8d, 1
imul r8, r8, 1
mov r9, qword [rsp + 0x20]
movzx r8d, byte [r9 + r8]
mov eax, dword [rsp + 0x28]
cdq
idiv r8d
mov edx, dword [rsp + 0x68]
imul eax, edx
add eax, ecx
cdqe
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x58]
mov byte [rcx + rax], dl
jmp 0x14001de8c
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x78], rax
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [rsp + 0x88]
movabs rcx, resource.13
call qword [rsp + 0x78]
xor eax, eax
add rsp, 0xd8
ret
Function at 0x14001df90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x28], eax
jae 0x14001dfcc
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x28]
cdq
mov ecx, dword [rsp + 0x6c]
idiv ecx
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x20]
push rsp
and al, 0x20
movzx ecx, byte [rdx + rcx]
imul eax, ecx
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
imul ecx, ecx, 0x11b5
mov edx, 1
imul rdx, rdx, 0x3e7
mov r8, qword [rsp + 0x20]
movzx edx, byte [r8 + rdx]
imul ecx, edx
add eax, ecx
cdqe
mov qword [rsp + 0xb0], rax
movsxd rcx, dword [rsp + 0x28]
xor edx, edx
mov rax, rcx
mov ecx, reloc.WS2_32.dll_socket
div rcx
mov rax, rdx
movzx eax, byte [rsp + rax + 0x30]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0xb0]
movzx ecx, byte [rcx + rdx]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
mov ecx, 1
imul rcx, rcx, 0x3e7
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
mov edx, 1
imul rdx, rdx, 0
mov r8, qword [rsp + 0x20]
movzx edx, byte [r8 + rdx]
imul edx, edx, 0x11b5
imul edx, ecx
mov ecx, edx
mov edx, 1
imul rdx, rdx, 1
mov r8, qword [rsp + 0x20]
movzx edx, byte [r8 + rdx]
mov dword [rsp + 0x68], edx
mov r8d, 1
imul r8, r8, 1
mov r9, qword [rsp + 0x20]
movzx r8d, byte [r9 + r8]
mov eax, dword [rsp + 0x28]
cdq
idiv r8d
mov edx, dword [rsp + 0x68]
imul eax, edx
add eax, ecx
cdqe
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x58]
mov byte [rcx + rax], dl
jmp 0x14001de8c
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x78], rax
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [rsp + 0x88]
movabs rcx, resource.13
call qword [rsp + 0x78]
xor eax, eax
add rsp, 0xd8
ret
Function at 0x140022048
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r15d, r8d
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x140022088
lea edx, [rsi + 2]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
call fcn.140024408
xor al, al
jmp 0x14002215a
call fcn.140021038
or eax, 0xffffffff
xor edx, edx
mov rcx, rsi
mov dword [rdi + 0xc], eax
mov dword [rdi + 8], eax
lea r8d, [rax + 3]
call fcn.1400e2df8
mov rcx, rsi
call fcn.1400e2994
xor r8d, r8d
movsxd rbp, eax
xor edx, edx
mov rcx, rsi
call fcn.1400e2df8
test ebp, ebp
jg 0x1400220ca
mov edx, reloc.WS2_32.dll_inet_ntoa
mov rcx, rdi
jmp 0x140022071
lea eax, [rbp + 1]
movsxd rcx, eax
call fcn.1400b0228
mov r9, rsi
mov rdx, rbp
mov esi, 1
mov rcx, rax
mov r8d, esi
mov rbx, rax
mov byte [rax], 0
call fcn.1400dfe74
mov rcx, rbx
cmp rax, rsi
je 0x140022103
call fcn.1400b0230
lea edx, [rsi + 1]
jmp 0x1400220c5
mov byte [rbp + rbx], 0
mov rax, rbx
cmp byte [rbx], 0
je 0x140022136
mov dl, byte [rax]
mov r8, rax
cmp dl, 0xd
jne 0x140022129
add rax, rsi
mov byte [rcx], 0xa
cmp byte [rax], 0xa
cmovne rax, r8
jmp 0x14002212b
mov byte [rcx], dl
inc rax
add rcx, rsi
cmp byte [rax], 0
jne 0x140022110
mov byte [rcx], 0
mov r9d, r15d
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rbx
call fcn.1400b0230
cmp byte [rdi + 0x50], 0
sete al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140025ec8
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x24], 0xca
mov rbx, rcx
jne 0x140025efb
call fcn.14002ba60
cmp byte [rbx + 0x58], 0
je 0x140025ef4
mov dword [rbx + 0x24], 0xcf
mov al, 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x24], VarI2FromI1
cmp dword [rbx + 0x24], 0xcb
jne 0x140025f7b
mov rax, qword [rbx + 0x238]
cmp byte [rax + 0x20], 0
je 0x140025f6d
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140025f1f
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x238]
mov rcx, rbx
call qword [rax]
test eax, eax
je 0x140025f65
cmp eax, 2
je 0x140025f6d
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140025f11
dec eax
test eax, 0xfffffffd
jne 0x140025f11
inc dword [rcx + 8]
mov rdx, qword [rbx + 0x10]
mov r8d, dword [rdx + 0xc]
cmp dword [rcx + 8], r8d
jl 0x140025f11
mov ecx, dword [rbx + 0x188]
add ecx, r8d
mov dword [rdx + 0xc], ecx
jmp 0x140025f11
xor al, al
add rsp, 0x20
pop rbx
ret
mov eax, dword [rbx + 0x9c]
mov dword [rbx + 0xa4], eax
jmp 0x140025f9f
cmp dword [rbx + 0x24], 0xcc
je 0x140025f9f
mov rax, qword [rbx]
mov dword [rax + 0x28], socket
mov rcx, qword [rbx]
mov eax, dword [rbx + 0x24]
mov dword [rcx + 0x2c], eax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140025fac
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, reloc.OLEAUT32.dll_VarI2FromI1
mov rdi, rcx
cmp dword [rcx + 0x24], ebx
je 0x140025fdb
mov rax, qword [rcx + 0x218]
call qword [rax]
and dword [rdi + 0x98], 0
mov dword [rdi + 0x24], ebx
mov rax, qword [rdi + 0x218]
cmp byte [rax + 0x10], 0
je 0x14002605d
lea rsi, [rdi + 0x98]
mov eax, dword [rsi]
jmp 0x14002602f
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140026012
mov dword [rcx + 8], eax
mov rcx, qword [rdi + 0x10]
mov eax, dword [rdi + 0x78]
mov dword [rcx + 0xc], eax
mov rcx, rdi
mov rax, qword [rdi + 0x10]
call qword [rax]
mov rax, qword [rdi + 0x220]
xor r9d, r9d
mov ebx, dword [rsi]
mov r8, rsi
xor edx, edx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, dword [rsi]
cmp eax, ebx
je 0x140026081
cmp eax, dword [rdi + 0x78]
jb 0x140025ff3
mov rax, qword [rdi + 0x218]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rdi + 0x218]
mov rcx, rdi
call qword [rax]
and dword [rsi], 0
mov rax, qword [rdi + 0x218]
cmp byte [rax + 0x10], 0
jne 0x140025fef
mov al, byte [rdi + 0x59]
neg al
mov al, 1
sbb ecx, ecx
neg ecx
add ecx, 0xcd
mov dword [rdi + 0x24], ecx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor al, al
jmp 0x140026071
Function at 0x14002cc44
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
cmp dword [rcx + 0x64], 1
mov rbx, rcx
mov rdi, qword [rcx + 0x268]
jne 0x14002cc7b
mov esi, 0x1fe
mov byte [rdi + 0x38], 1
jmp 0x14002cc81
xor esi, esi
mov byte [rdi + 0x38], sil
mov rax, qword [rcx + 8]
lea r8d, [rsi + 0x100]
mov r9d, dword [rcx + 0x7c]
mov edx, 1
call qword [rax + reloc.WS2_32.dll_recv]
mov r12d, dword [rdi + 0x28]
xor ebp, ebp
mov qword [rdi + 0x30], rax
cmp dword [rbx + 0x7c], ebp
jle 0x14002cd8f
mov r13d, esi
lea r11, [rdi + 0x3c]
xor r8d, r8d
mov r10d, dword [r11]
mov eax, r12d
cdq
idiv r10d
mov dword [rsp + 0x50], eax
mov r12d, eax
test r13, r13
je 0x14002ccd7
mov rax, qword [rdi + 0x30]
add qword [rax + r8], 0xff
mov rax, qword [rdi + 0x30]
lea ecx, [r10 - 1]
xor r14d, r14d
xor esi, esi
mov r9, qword [r8 + rax]
lea eax, [rcx + 0xff]
add ecx, ecx
cdq
idiv ecx
xor r15d, r15d
mov edx, eax
cmp esi, edx
jle 0x14002cd2e
imul eax, r14d, 0x1fe
lea ecx, [r10 + 0xfe]
lea r12d, [r10*2 - 2]
add ecx, eax
add ecx, 0x1fe
inc r14d
mov eax, ecx
cdq
idiv r12d
mov edx, eax
cmp esi, eax
jg 0x14002cd14
mov r12d, dword [rsp + 0x50]
movzx eax, r14b
inc esi
movzx ecx, r12b
imul ecx, eax
mov byte [r15 + r9], cl
inc r15
cmp r15, 0xff
jle 0x14002ccf8
test r13, r13
je 0x14002cd7c
mov ecx, 1
lea rdx, [r9 - 1]
mov al, byte [r9]
mov byte [rdx], al
dec rdx
mov al, byte [r9 + 0xff]
mov byte [r9 + rcx + 0xff], al
inc rcx
cmp rcx, 0xff
jle 0x14002cd59
inc ebp
add r11, 4
add r8, 8
cmp ebp, dword [rbx + 0x7c]
jl 0x14002ccb5
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14004dc50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [0x1401740c0]
xor rax, rsp
mov qword [rsp + 0x10], rax
mov ebx, 3
mov r10, rdx
mov r9, rcx
cmp byte [rcx + 8], bl
je 0x14004ddf3
mov edi, dword [rcx]
xor r11d, r11d
test byte [rcx + 8], 2
movzx esi, r11w
je 0x14004dcba
movzx edx, byte [rcx + 9]
movzx eax, byte [r8]
mov ecx, edx
sub ecx, eax
movzx eax, byte [r8 + 1]
mov dword [rsp], ecx
mov ecx, edx
sub ecx, eax
movzx eax, byte [r8 + 2]
sub edx, eax
mov dword [rsp + 4], ecx
mov dword [rsp + 8], edx
jmp 0x14004dccd
movzx eax, byte [r8 + 3]
mov ebx, 1
movzx ecx, byte [rcx + 9]
sub ecx, eax
mov dword [rsp], ecx
test byte [r9 + 8], 4
je 0x14004dce7
movzx eax, byte [r8 + 4]
movzx ecx, byte [r9 + 9]
sub ecx, eax
mov eax, ebx
inc ebx
mov dword [rsp + rax*4], ecx
mov ecx, ebx
mov rax, r11
test ebx, ebx
je 0x14004ddf3
cmp dword [rsp + rax*4], r11d
jg 0x14004dd00
mov dword [rsp + rax*4], r11d
jmp 0x14004dd05
mov esi, 1
inc rax
cmp rax, rcx
jl 0x14004dcf4
test si, si
je 0x14004ddf3
mov al, byte [r9 + 9]
cmp al, 2
je 0x14004ddd6
cmp al, 4
je 0x14004dda1
cmp al, 8
je 0x14004dd80
cmp al, 0x10
jne 0x14004ddf3
imul edi, ebx
test edi, edi
je 0x14004ddf3
movzx r8d, byte [r10]
xor edx, edx
mov eax, r11d
inc r11d
div ebx
movzx eax, byte [r10 + 1]
mov ecx, edx
mov edx, 0x100
imul r8d, edx
mov ecx, dword [rsp + rcx*4]
add r8w, ax
shr r8w, cl
movzx eax, r8w
shr ax, 8
mov byte [r10], al
mov byte [r10 + 1], r8b
lea r10, [r10 + 2]
cmp r11d, edi
jb 0x14004dd3d
jmp 0x14004ddf3
imul edi, ebx
test edi, edi
je 0x14004ddf3
xor edx, edx
mov eax, r11d
div ebx
inc r11d
mov ecx, dword [rsp + rdx*4]
shr byte [r10], cl
inc r10
cmp r11d, edi
jb 0x14004dd87
jmp 0x14004ddf3
mov ecx, dword [rsp]
mov edx, 0xf0
sar edx, cl
mov eax, reloc.WS2_32.dll_ntohs
and dl, 0xf0
sar eax, cl
or dl, al
cmp dword [r9 + 4], r11d
jbe 0x14004ddf3
mov r8d, dword [r9 + 4]
mov al, byte [r10]
shr al, cl
and al, dl
mov byte [r10], al
inc r10
sub r8, 1
jne 0x14004ddc1
jmp 0x14004ddf3
cmp dword [r9 + 4], r11d
jbe 0x14004ddf3
mov ecx, dword [r9 + 4]
mov al, byte [r10]
shr al, 1
and al, 0x55
mov byte [r10], al
inc r10
sub rcx, 1
jne 0x14004dde0
mov rcx, qword [rsp + 0x10]
xor rcx, rsp
call fcn.1400b0730
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005c134
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov r10, rcx
mov dword [rdx], 0x12345678
mov ecx, 0x34567890
mov dword [rdx + 4], 0x23456789
mov dword [rdx + 8], ecx
mov rbx, r8
mov r9, rdx
mov al, byte [r10]
test al, al
je 0x14005c1b9
mov r8d, dword [rdx + 4]
mov r11d, ecx
mov ecx, dword [r9]
inc r10
xor rcx, rax
movzx eax, cl
mov ecx, dword [r9]
shr ecx, 8
mov edx, dword [rbx + rax*4]
xor edx, ecx
mov ecx, r11d
movzx eax, dl
add eax, r8d
mov dword [r9], edx
imul r8d, eax, 0x8088405
shr ecx, 8
inc r8d
mov dword [r9 + 4], r8d
mov eax, r8d
shr rax, 0x18
xor rax, r11
movzx eax, al
mov eax, dword [rbx + rax*4]
xor eax, ecx
mov r11d, eax
mov dword [r9 + 8], eax
mov al, byte [r10]
test al, al
jne 0x14005c165
mov rbx, qword [rsp + 8]
ret
Function at 0x14005e23c
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x10108], 0
mov rdi, rcx
je 0x14005e304
xor r11d, r11d
cmp dword [rcx + 0xd4], r11d
jbe 0x14005e304
movzx ecx, byte [r11 + rdi + 0x100]
mov r8, qword [rdi + 0x10138]
mov r10d, dword [rdi + 0x10130]
mov eax, dword [rdi + 0x10128]
and r10d, 0xfffd
xor rcx, rax
or r10d, 2
movzx eax, cl
mov ecx, dword [rdi + 0x10128]
shr ecx, 8
mov edx, dword [r8 + rax*4]
xor edx, ecx
mov dword [rdi + 0x10128], edx
movzx eax, dl
add eax, dword [rdi + 0x1012c]
mov edx, dword [rdi + 0x10130]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rdi + 0x1012c], ecx
shr rcx, 0x18
xor rcx, rdx
shr edx, 8
movzx eax, cl
mov eax, dword [r8 + rax*4]
xor eax, edx
mov dword [rdi + 0x10130], eax
mov eax, r10d
xor eax, 1
imul eax, r10d
shr eax, 8
xor byte [r11 + rdi + 0x100], al
inc r11d
cmp r11d, dword [rdi + 0xd4]
jb 0x14005e266
mov r9d, dword [rdi + 0xd4]
lea r8, [rdi + 0x100]
mov rdx, qword [rdi + 0x58]
mov rcx, qword [rdi + 0x38]
mov ebx, dword [rdi + 0xd4]
call qword [rdi + reloc.WS2_32.dll_recv]
or ecx, 0xffffffff
xor edx, edx
cmp eax, ebx
cmovne edx, ecx
mov ecx, dword [rdi + 0x84]
add qword [rdi + 0x10118], rbx
mov eax, edx
add qword [rdi + 0x10120], rcx
and dword [rdi + 0x84], 0
and dword [rdi + 0xd4], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret