joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140183e00
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm1, xmmword [rcx]
movdqu xmmword [rdx + 0x10], xmm3
movdqa xmm2, xmm1
movdqu xmmword [rdx], xmm1
pslldq xmm2, 4
movdqa xmm0, xmm2
pslldq xmm2, 4
pxor xmm0, xmm1
movdqa xmm4, xmm2
pxor xmm4, xmm0
pslldq xmm2, 4
pxor xmm4, xmm2
aeskeygenassist xmm0, xmm3, 1
pshufd xmm1, xmm0, 0xff
pxor xmm4, xmm1
movdqa xmm1, xmm3
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqu xmmword [rdx + 0x20], xmm4
pslldq xmm1, 4
pxor xmm0, xmm3
movdqa xmm2, xmm1
pslldq xmm1, 4
pxor xmm2, xmm0
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm4, 0
pshufd xmm1, xmm0, 0xaa
pxor xmm2, xmm1
movdqa xmm1, xmm4
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqu xmmword [rdx + 0x30], xmm2
pslldq xmm1, 4
pxor xmm0, xmm4
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm0
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 2
pshufd xmm1, xmm0, 0xff
pxor xmm3, xmm1
movdqa xmm1, xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqu xmmword [rdx + 0x40], xmm3
pxor xmm0, xmm2
pslldq xmm1, 4
movdqa xmm2, xmm1
pslldq xmm1, 4
pxor xmm2, xmm0
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 0
pshufd xmm1, xmm0, 0xaa
pxor xmm2, xmm1
movdqa xmm1, xmm3
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqu xmmword [rdx + 0x50], xmm2
pslldq xmm1, 4
pxor xmm0, xmm3
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm0
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 4
pshufd xmm1, xmm0, 0xff
pxor xmm3, xmm1
movdqa xmm1, xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqu xmmword [rdx + 0x60], xmm3
pxor xmm0, xmm2
pslldq xmm1, 4
movdqa xmm2, xmm1
pslldq xmm1, 4
pxor xmm2, xmm0
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 0
pshufd xmm1, xmm0, 0xaa
pxor xmm2, xmm1
movdqa xmm1, xmm3
movdqu xmmword [rdx + 0x70], xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
movdqa xmm4, xmm1
pxor xmm0, xmm3
pslldq xmm1, 4
pxor xmm4, xmm0
pxor xmm4, xmm1
aeskeygenassist xmm0, xmm2, 8
pshufd xmm1, xmm0, 0xff
pxor xmm4, xmm1
movdqa xmm1, xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqu xmmword [rdx + 0x80], xmm4
pxor xmm0, xmm2
pslldq xmm1, 4
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm0
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm4, 0
pshufd xmm1, xmm0, 0xaa
pxor xmm3, xmm1
movdqa xmm1, xmm4
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqu xmmword [rdx + 0x90], xmm3
pslldq xmm1, 4
pxor xmm0, xmm4
movdqa xmm2, xmm1
pslldq xmm1, 4
pxor xmm2, xmm0
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 0x10
pshufd xmm1, xmm0, 0xff
pxor xmm2, xmm1
movdqu xmmword [rdx + 0xa0], xmm2
ret
Function at 0x140190130
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140190240
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov ecx, dword [0x14050dcd0]
cmp ecx, 0xffffffff
jne 0x140190268
xor esi, esi
jmp 0x140190271
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x1401902b5
mov rcx, qword [rsi + 0x30]
nop
mov rdi, qword [rsi + 0x18]
test rcx, rcx
jne 0x1401902f8
test rdi, rdi
jne 0x140190300
lea rdx, [0x14018fac0]
lea rcx, [0x14051f7e0]
call fcn.14018f6a0
mov ecx, dword [0x14050dcd0]
cmp ecx, 0xffffffff
je 0x1401902b5
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x1401902e8
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1401902e8
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rdi, rdi
je 0x140190358
nop dword [rax]
mov rax, qword [rdi + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rdi]
test rcx, rcx
je 0x140190337
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rdi]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsi + 0x18]
test rdi, rdi
jne 0x140190300
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x140190280
nop dword [rax]
nop word [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14019038c
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x14019038c
call qword [rbx + 0x28]
mov rax, rbx
mov rcx, qword [rbx + 0x10]
cmp byte [rcx + 0x19], 0
je 0x1401903b8
mov rcx, qword [rbx + 8]
cmp byte [rcx + 0x19], 0
jne 0x1401903cd
cmp rax, qword [rcx + 0x10]
jne 0x1401903cd
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x1401903a3
jmp 0x1401903cd
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x1401903cd
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1401903c1
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.140145bd0
nop
mov edx, 0x40
mov rcx, rax
call fcn.14038b5d4
nop
mov rcx, qword [rsi + 0x30]
test rcx, rcx
jne 0x140190370
jmp 0x140190280
Function at 0x140190240
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140190240
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov ecx, dword [0x14050dcd0]
cmp ecx, 0xffffffff
jne 0x140190268
xor esi, esi
jmp 0x140190271
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x1401902b5
mov rcx, qword [rsi + 0x30]
nop
mov rdi, qword [rsi + 0x18]
test rcx, rcx
jne 0x1401902f8
test rdi, rdi
jne 0x140190300
lea rdx, [0x14018fac0]
lea rcx, [0x14051f7e0]
call fcn.14018f6a0
mov ecx, dword [0x14050dcd0]
cmp ecx, 0xffffffff
je 0x1401902b5
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x1401902e8
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1401902e8
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rdi, rdi
je 0x140190358
nop dword [rax]
mov rax, qword [rdi + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rdi]
test rcx, rcx
je 0x140190337
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rdi]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsi + 0x18]
test rdi, rdi
jne 0x140190300
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x140190280
nop dword [rax]
nop word [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14019038c
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x14019038c
call qword [rbx + 0x28]
mov rax, rbx
mov rcx, qword [rbx + 0x10]
cmp byte [rcx + 0x19], 0
je 0x1401903b8
mov rcx, qword [rbx + 8]
cmp byte [rcx + 0x19], 0
jne 0x1401903cd
cmp rax, qword [rcx + 0x10]
jne 0x1401903cd
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x1401903a3
jmp 0x1401903cd
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x1401903cd
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1401903c1
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.140145bd0
nop
mov edx, 0x40
mov rcx, rax
call fcn.14038b5d4
nop
mov rcx, qword [rsi + 0x30]
test rcx, rcx
jne 0x140190370
jmp 0x140190280
Function at 0x1401fb2c0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.14038bb30
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140200020
Capabilities:
Encode data using add xor sub operations

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x14020008c
movzx ecx, byte [rcx]
test cl, cl
je 0x14020008c
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
or r9d, r11d
mov r8d, eax
mov edx, r9d
mov ecx, 0x20
shr edx, 2
add r11d, 0x100
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x140200040
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

Function at 0x140200090
Capabilities:
Encode data using add xor sub operations

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x140200100
movzx ecx, byte [rcx]
test cl, cl
je 0x140200100
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
mov r8d, eax
and r9d, 0xffffffdf
or r9d, r11d
mov ecx, 0x20
mov edx, r9d
add r11d, 0x100
shr edx, 2
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x1402000b0
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

Function at 0x1402129c0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.14038bb30
sub rsp, rax
lea rcx, [0x14051faf0]
add rsp, 0x28
jmp fcn.1401fb120
Function at 0x140223ae0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r11, rdx
movsxd rdi, r9d
lea rsi, [rcx - 1]
mov r10, r8
not rcx
shr rsi, 0x3f
shr rcx, 0x3f
and rsi, rcx
mov ecx, dword [rdx + 8]
xor ecx, dword [r8 + 8]
dec rsi
and ecx, esi
xor dword [rdx + 8], ecx
xor dword [r8 + 8], ecx
mov edx, dword [rdx + 0x10]
movq xmm4, rsi
xor edx, dword [r8 + 0x10]
and edx, esi
punpcklqdq xmm4, xmm4
xor dword [r11 + 0x10], edx
xor dword [r8 + 0x10], edx
mov ecx, dword [r11 + 0x14]
mov edx, ecx
mov eax, dword [r8 + 0x14]
xor rdx, rax
and edx, 4
and rdx, rsi
mov eax, edx
xor eax, ecx
xor ecx, ecx
mov dword [r11 + 0x14], eax
xor dword [r8 + 0x14], edx
mov edx, ecx
test r9d, r9d
jle 0x140223bfd
cmp edi, 2
jb 0x140223bfd
mov r9, qword [r8]
lea rax, [rdi - 1]
mov r8, qword [r11]
lea rbx, [rdi - 1]
lea rbx, [r9 + rbx*8]
lea rax, [r8 + rax*8]
cmp r9, rax
ja 0x140223b8c
cmp rbx, r8
jae 0x140223bfd
cmp r9, r10
ja 0x140223b96
cmp rbx, r10
jae 0x140223bfd
cmp r9, r11
ja 0x140223ba0
cmp rbx, r11
jae 0x140223bfd
cmp r8, r10
ja 0x140223baa
cmp rax, r10
jae 0x140223bfd
cmp r8, r11
ja 0x140223bb4
cmp rax, r11
jae 0x140223bfd
mov eax, edi
and eax, 0xfffffffe
nop dword [rax]
movdqu xmm2, xmmword [rcx + r9]
add edx, 2
movdqu xmm1, xmmword [rcx + r8]
lea rcx, [rcx + 0x10]
movdqa xmm3, xmm2
pxor xmm3, xmm1
pand xmm3, xmm4
movdqa xmm0, xmm3
pxor xmm3, xmm2
pxor xmm0, xmm1
movdqu xmmword [rcx + r8 - 0x10], xmm0
movdqu xmmword [rcx + r9 - 0x10], xmm3
cmp edx, eax
jl 0x140223bc0
movsxd rax, edx
cmp rax, rdi
jge 0x140223c3d
nop word [rax + rax]
mov rcx, qword [r11]
mov rdx, qword [rcx + rax*8]
lea r8, [rcx + rax*8]
mov rcx, qword [r10]
mov r9, rdx
xor r9, qword [rcx + rax*8]
and r9, rsi
xor rdx, r9
mov qword [r8], rdx
mov rcx, qword [r10]
xor qword [rcx + rax*8], r9
inc rax
cmp rax, rdi
jl 0x140223c10
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x14023bdd0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x280
call fcn.14038bb30
sub rsp, rax
mov rax, qword [0x140515698]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x14051fdb8], 0
lea rax, [0x14023b740]
mov qword [rsp + 0x28], rax
lea rbx, [0x140433840]
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x14023bb90]
mov qword [rsp + 0x38], rax
lea rax, [0x140433860]
mov qword [rsp + 0x40], rax
lea rax, [0x14023b6e0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rbx
jne 0x14023bfa9
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14023bf9f
lea r8, [rsp + 0x160]
mov qword [rsp + 0x290], rsi
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1403c3ee0
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1403c3f40
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14023beca
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14023bf2a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1403c3ee0
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1403c3f40
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14023bf97
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14023bf2a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14023bf97
mov qword [rsp + 0x298], rdi
lea rbx, [rsp + 0x28]
xor edi, edi
nop dword [rax]
mov rdx, qword [rbx - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
test rax, rax
je 0x14023bf86
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x14023bf40
mov rax, qword [rsp + 0x28]
mov qword [0x140512070], rax
mov rax, qword [rsp + 0x38]
mov qword [0x140512080], rax
mov rax, qword [rsp + 0x48]
mov qword [0x140512090], rax
jmp 0x14023bf8f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x14051fdb8], 1
mov rax, rbp
lea rcx, [0x140512068]
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14038bd70
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret
Function at 0x14023bfe0
Capabilities:
Resolve dns

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
mov eax, 0x870
call fcn.14038bb30
sub rsp, rax
mov rax, qword [0x140515698]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov r13, qword [rsp + 0x8c8]
mov r14, rcx
mov dword [rsp + 0x24], r8d
xor r15d, r15d
mov dword [rsp + 0x28], edx
mov r8d, 0x401
mov qword [rsp + 0x38], rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x20], r9w
mov r12d, r15d
call fcn.1403a9730
xor edx, edx
lea rcx, [rsp + 0x450]
mov r8d, 0x401
call fcn.1403a9730
mov r9d, 0x400
lea rbx, [rsp + 0x40]
mov r8, r14
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x40]
lea rdi, [rsp + 0x450]
lea edx, [r9 + 1]
call fcn.1403c3fac
lea rbp, [r15 - 1]
mov rcx, r14
mov qword [r13], r15
mov rsi, r13
mov byte [rdi], r15b
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov r14, rax
test rax, rax
je 0x14023c1df
cmp word [rax + 0x10], 2
jne 0x14023c107
cmp word [rax + 0x12], 4
jne 0x14023c107
mov rbx, qword [rax + 0x18]
mov rax, qword [rbx]
test rax, rax
je 0x14023c102
nop dword [rax]
mov r9d, dword [rax]
movzx r8d, word [rsp + 0x20]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
call fcn.14023c250
mov qword [rsi], rax
test rax, rax
je 0x14023c1d7
add rbx, 8
lea rsi, [rax + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x14023c0d0
mov rbx, qword [rsp + 0x30]
mov r8, qword [r14]
mov r9d, 0x400
mov rcx, rdi
lea edx, [r9 + 1]
call fcn.1403c3fac
cmp qword [r13], r15
jne 0x14023c180
mov rax, rbp
inc rax
cmp byte [rdi + rax], r15b
jne 0x14023c125
test rax, rax
je 0x14023c1f9
mov r8, rdi
mov rax, rbx
sub r8, rbx
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14023c153
inc rax
test ecx, ecx
jne 0x14023c140
test edx, edx
je 0x14023c1f9
inc r12d
cmp r12d, 0x10
je 0x14023c1f9
mov r14, qword [rsp + 0x38]
mov rax, rbx
mov rbx, rdi
mov rdi, rax
mov qword [rsp + 0x30], rbx
jmp 0x14023c090
cmp dword [rsp + 0x8c0], r15d
je 0x14023c20f
nop
cmp byte [rdi + rbp + 1], r15b
lea rbp, [rbp + 1]
jne 0x14023c190
lea rdx, [rbp + 1]
mov ecx, 1
call fcn.1403b4ce8
mov rbx, rax
test rax, rax
jne 0x14023c1b6
mov rbx, r15
jmp 0x14023c1c5
mov r8, rdi
lea rdx, [rbp + 1]
mov rcx, rax
call fcn.1403c3ee0
mov rax, qword [r13]
mov qword [rax + 0x18], rbx
mov rax, qword [r13]
cmp qword [rax + 0x18], r15
jne 0x14023c20f
mov r15d, 8
jmp 0x14023c20f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2af9
je 0x14023c209
sub ecx, 1
je 0x14023c201
sub ecx, 1
jne 0x14023c209
mov r15d, 0x2afb
jmp 0x14023c20f
mov r15d, 0x2afa
jmp 0x14023c20f
mov r15d, 0x2af9
mov eax, r15d
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.14038bd70
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14023efc0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push r12
push r13
push r14
mov eax, 0x50
call fcn.14038bb30
sub rsp, rax
mov r14, qword [rsp + 0xa8]
lea r10, [rax - 0x51]
mov rbp, qword [rsp + 0xb0]
xor r11d, r11d
cmp r14, 1
mov eax, r11d
mov r13, r9
mov r12, r8
mov r9, qword [rcx]
setne al
add rax, rbp
mov rsi, rcx
cmp rax, r9
jbe 0x14023f01e
xor eax, eax
add rsp, 0x50
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret
mov qword [rsp + 0x80], rbx
cmp r14, 1
je 0x14023f123
lea r10, [r8 - 1]
add r10, r9
movzx ebx, byte [r10]
cmp dword [rsp + 0xb8], r11d
je 0x14023f05b
sub r9, rbx
mov eax, 1
sub r9, rbp
dec r9
mov qword [rcx], r9
jmp 0x14023f15a
lea rcx, [rbx + rax]
mov qword [rsp + 0x98], r15
mov r15d, 0x100
mov r8, r9
sub r8, rcx
mov rax, r9
xor r8, rcx
xor rax, rcx
or r8, rax
xor r8, r9
shr r8, 0x3f
dec r8
cmp r9, r15
cmovb r15, r9
test r15, r15
je 0x14023f0fd
mov qword [rsp + 0x90], rdi
mov rdi, rbx
shr rdi, 0x3f
nop dword [rax]
nop dword [rax + rax]
mov rax, r11
lea r10, [r10 - 1]
shr rax, 0x3f
mov rcx, rbx
sub rcx, r11
inc r11
shr rcx, 0x3f
xor cl, al
xor al, dil
or cl, al
xor cl, dil
dec cl
movzx edx, cl
movzx ecx, byte [r10 + 1]
xor rcx, rbx
and rdx, rcx
not rdx
and r8, rdx
cmp r11, r15
jb 0x14023f0b0
mov rdx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov r15, qword [rsp + 0x98]
lea rax, [rbx + 1]
not r8
movzx r10d, r8b
dec r10
shr r10, 0x3f
neg r10
and rax, r10
sub r9, rax
mov qword [rsi], r9
mov rax, qword [rsp + 0xc0]
mov r9, r13
mov qword [rsp + 0x40], rax
mov r8, r12
mov rax, qword [rsp + 0xa0]
mov rcx, rsi
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call fcn.14023ebf0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret
Function at 0x1402458f0
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x28
call fcn.14038bb30
sub rsp, rax
cmp dword [0x14051fdf0], 0
jne 0x1402459aa
xor edx, edx
mov dword [0x14051fdf0], 1
mov r8d, 0x198
lea rcx, [0x14051fe00]
call fcn.1403a9730
mov ecx, 0x202
lea rdx, [0x14051fe00]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1402459aa
call fcn.140200110
lea r8, str.BIO_sock_init
mov edx, 0x94
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140200230
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov ecx, 2
mov edx, eax
call fcn.140200330
call fcn.140200110
lea r8, str.BIO_sock_init
mov edx, 0x96
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140200230
xor r8d, r8d
lea edx, [r8 + 0x7a]
lea ecx, [rdx - 0x5a]
call fcn.140200330
mov eax, 0xffffffff
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret

Function at 0x1402459c0
Capabilities:
Set socket configuration

Disassembly:
push rbx
mov eax, 0x20
call fcn.14038bb30
sub rsp, rax
mov dword [rsp + 0x30], edx
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
movsxd rcx, ecx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
jns 0x140245a22
call fcn.140200110
lea r8, str.BIO_socket_ioctl
mov edx, 0xd1
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140200230
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_ioctlsocket__
mov ecx, 2
mov edx, eax
call fcn.140200330
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x20
pop rbx
ret

Function at 0x140245a30
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x260
call fcn.14038bb30
sub rsp, rax
mov rax, qword [0x140515698]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov edi, ecx
mov rbx, r8
mov esi, edx
cmp ecx, 0x3f
ja 0x140245ac2
test rbx, rbx
jne 0x140245a6a
lea eax, [r8 + 1]
jmp 0x140245ac7
xor ecx, ecx
call fcn.1403b5270
mov rcx, rax
cmp rbx, rax
jge 0x140245a7d
xor eax, eax
jmp 0x140245ac7
xor eax, eax
mov qword [rsp + 0x48], rdi
sub ebx, ecx
mov dword [rsp + 0x34], eax
test esi, esi
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x40]
mov dword [rsp + 0x30], ebx
cmovne r8, rax
lea rdx, [rsp + 0x40]
cmove rdx, rax
lea ecx, [rdi + 1]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
jmp 0x140245ac7
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14038bd70
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x140247ce0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.14038bb30
sub rsp, rax
mov r10, rcx
test r9, r9
jne 0x140247d2a
call fcn.140200110
lea r8, str.c2i_ibuf
mov edx, 0xa0
lea rcx, str.crypto_asn1_a_int.c
call fcn.140200230
xor r8d, r8d
mov edx, 0xde
lea ecx, [r8 + 0xd]
call fcn.140200330
xor eax, eax
add rsp, 0x28
ret
mov qword [rsp + 0x20], rbx
movzx ebx, byte [r8]
and ebx, 0x80
test rdx, rdx
je 0x140247d40
mov dword [rdx], ebx
cmp r9, 1
jne 0x140247d66
test r10, r10
je 0x140247d57
movzx eax, byte [r8]
test ebx, ebx
je 0x140247d55
neg al
mov byte [rcx], al
mov rbx, qword [rsp + 0x20]
mov eax, 1
add rsp, 0x28
ret
movzx ecx, byte [r8]
xor r11d, r11d
mov eax, r11d
test cl, cl
jne 0x140247d81
mov eax, 1
mov r11d, eax
jmp 0x140247e41
cmp cl, 0xff
jne 0x140247e8a
mov eax, 1
lea rcx, [r9 - 1]
mov edx, r11d
cmp r9, rax
jbe 0x140247e2f
cmp rcx, 8
jb 0x140247e20
and ecx, 7
mov rdx, r9
sub rdx, rcx
xorps xmm2, xmm2
xorps xmm3, xmm3
nop dword [rax]
nop dword [rax + rax]
movd xmm1, dword [rax + r8]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
por xmm2, xmm1
movd xmm1, dword [rax + r8 + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
por xmm1, xmm3
movdqa xmm3, xmm1
cmp rax, rdx
jb 0x140247dc0
por xmm2, xmm1
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd edx, xmm2
cmp rax, r9
jae 0x140247e2f
nop dword [rax]
movzx ecx, byte [rax + r8]
inc rax
or edx, ecx
cmp rax, r9
jb 0x140247e20
test edx, edx
mov eax, r11d
setne al
test edx, edx
setne r11b
test edx, edx
je 0x140247e8a
movzx ecx, byte [r8 + 1]
and ecx, 0x80
cmp ebx, ecx
jne 0x140247e8a
call fcn.140200110
lea r8, str.c2i_ibuf
mov edx, 0xc1
lea rcx, str.crypto_asn1_a_int.c
call fcn.140200230
xor r8d, r8d
mov edx, 0xdd
lea ecx, [r8 + 0xd]
call fcn.140200330
mov rbx, qword [rsp + 0x20]
xor eax, eax
add rsp, 0x28
ret
mov ecx, eax
sub r9, rcx
test r10, r10
je 0x140247edd
neg ebx
lea rax, [r11 + r8]
sbb r11d, r11d
movzx r11d, r11b
mov ecx, r11d
and ecx, 1
test r9, r9
je 0x140247edd
lea r8, [rax + r9]
mov rdx, r8
sub rdx, r8
add rdx, r9
nop dword [rax]
movzx eax, byte [r8 - 1]
lea r8, [r8 - 1]
dec rdx
xor eax, r11d
add ecx, eax
mov byte [r10 + rdx], cl
shr ecx, 8
test rdx, rdx
jne 0x140247ec0
mov rbx, qword [rsp + 0x20]
mov rax, r9
add rsp, 0x28
ret