joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140231300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
xor r15d, r15d
sub rax, 0x34
mov qword [rcx + 0x78], r15
mov qword [rcx + 0x28], rax
mov r14d, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r15w
lea ebp, [r15 - 1]
mov dword [rcx + 0x3c], r15d
mov edi, r15d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r15w
cmp r15w, word [rcx + 0xb8]
jge 0x14023143b
mov esi, r15d
mov rax, qword [rbx + 0xd0]
lea edx, [rbp + 1]
mov dword [rbx + 0x88], r15d
mov r9d, r14d
mov qword [rbx + 0x80], r15
mov rcx, rbx
movsx ebp, word [rsi + rax]
mov r8d, ebp
call fcn.140230fc0
test al, al
jne 0x1402314d6
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
lea eax, [r8 - 1]
test edx, eax
jne 0x1402313cf
cmp edx, dword [rbx + 0x60]
jl 0x1402313cf
cmp edx, dword [rbx + 0x64]
jg 0x1402313cf
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1402313cf
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rcx + 0x18]
xor cl, byte [rax + 0x18]
test cl, 8
jne 0x1402313cf
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x1402313f2
test byte [r9 + 0x18], 8
je 0x1402313f2
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x140231403
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.1402303a0
test al, al
jne 0x1402314d6
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x140231426
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
inc edi
add rsi, 2
cmp edi, eax
jl 0x140231363
movzx edi, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp di, 1
jbe 0x1402314da
test rdx, rdx
je 0x1402314da
mov ebp, 0xffff
nop dword [rax + rax]
lea rsi, [rdx + 8]
cmp di, 1
jbe 0x140231478
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x14023147b
mov r10, r15
mov qword [rsi], r10
test byte [rdx + 0x18], 8
mov r11d, dword [rdx + 0x20]
mov r8d, r11d
mov eax, dword [rdx + 0x1c]
je 0x140231496
dec r11d
add r11d, eax
jmp 0x1402314ad
sub r8d, eax
inc r8d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.140230440
test al, al
jne 0x1402314d6
lea edx, [r11 + 1]
mov rcx, rbx
call fcn.140230440
test al, al
jne 0x1402314d6
mov rdx, qword [rsi]
add di, bp
jne 0x140231460
jmp 0x1402314de
mov al, 1
jmp 0x1402314e9
mov qword [rbx + 0x78], r15
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140236940
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14023695c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1402369b0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140236ad5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x140236ad5
test rax, rax
je 0x140236ad5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x140236ad5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x140236a4a
lea rax, [0x140236b00]
jmp 0x140236aa3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x140236ad5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140236ac3
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x140236a70
lea rax, [0x140236b30]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x140236aea
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x140237380
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [fcn.140357c98]
mov rbx, rax
test rax, rax
jne 0x1402373c3
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 8]
mov qword [rsp + 0x50], r14
cmp r15d, dword [rbp + 0x1c]
jbe 0x140237410
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi]
mov esi, dword [rbp + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor r14d, r14d
test r15, r15
je 0x140237472
mov r14, r15
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rdi]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi]
sub r15, 1
jne 0x140237430
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x1402374b1
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1403a1318]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1403a1319]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x140237480
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret

Function at 0x140238a10
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
mov dword [rbx], eax
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x140238a40
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140238a80
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
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 0x140239d00
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x40], edx
lea r8, [rsp + 0x40]
mov edx, 0x8004667e
movsxd rcx, ecx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ebx, ebx
mov edi, eax
test eax, eax
jns 0x140239d48
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [0x140400fb1]
mov dword [rsp + 0x20], ebx
mov r8d, eax
lea edx, [rbx + 5]
lea ecx, [rbx + 2]
call fcn.1401d6370
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140239d60
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x38
cmp dword [0x1406c7c40], 0
jne 0x140239df4
xor edx, edx
mov dword [0x1406c7c40], 1
mov r8d, 0x198
lea rcx, [0x1406c7c50]
call fcn.140374500
mov ecx, 0x202
lea rdx, [0x1406c7c50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140239df4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 9
mov dword [rsp + 0x20], 0
lea r9, [0x140400fb1]
mov r8d, eax
lea ecx, [rdx - 7]
call fcn.1401d6370
mov edx, reloc.WS2_32.dll_WSASetLastError
mov dword [rsp + 0x20], 0
lea r9, [0x140400fb1]
lea r8d, [rdx + 0xa]
lea ecx, [rdx - 0x50]
call fcn.1401d6370
mov eax, 0xffffffff
add rsp, 0x38
ret
mov eax, 1
add rsp, 0x38
ret
Function at 0x14023a1b0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
xor edi, edi
mov ebx, r9d
mov ebp, r8d
mov r14, rdx
mov rsi, rcx
cmp r9d, 0x17
ja 0x14023a324
mov eax, 0x800005
bt eax, ebx
jae 0x14023a324
call fcn.140239d60
cmp eax, 1
jne 0x14023a340
mov eax, dword [rsp + 0xa0]
mov ecx, edi
mov qword [rsp + 0x80], r15
xorps xmm0, xmm0
mov dword [rsp + 0x30], ecx
xorps xmm1, xmm1
mov dword [rsp + 0x34], ebx
mov r15d, edi
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], edi
movdqu xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
test rsi, rsi
je 0x14023a23d
test ebx, ebx
jne 0x14023a23d
bts ecx, 0xa
mov dword [rsp + 0x30], ecx
cmp ebp, 1
jne 0x14023a248
or ecx, ebp
mov dword [rsp + 0x30], ecx
mov rbp, qword [rsp + 0xa8]
lea r8, [rsp + 0x30]
mov r9, rbp
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
je 0x14023a2ab
nop word [rax + rax]
cmp ebx, 8
je 0x14023a2fe
mov ecx, dword [rsp + 0x30]
bt ecx, 0xa
jae 0x14023a2bd
btr ecx, 0xa
lea r8, [rsp + 0x30]
or ecx, 4
mov r9, rbp
mov dword [rsp + 0x30], ecx
mov rdx, r14
mov rcx, rsi
mov r15d, ebx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
jne 0x14023a270
mov r15, qword [rsp + 0x80]
mov edi, 1
jmp 0x14023a340
mov edx, 0x8f
mov dword [rsp + 0x20], edi
lea r9, [0x140400fb1]
lea ecx, [rdx - 0x6f]
lea r8d, [rcx - 0x1e]
call fcn.1401d6370
test r15d, r15d
cmovne ebx, r15d
mov ecx, ebx
call fcn.140239e20
mov rdx, rax
mov ecx, 1
call fcn.1401d69f0
mov r15, qword [rsp + 0x80]
jmp 0x14023a340
mov edx, 0x8f
mov dword [rsp + 0x20], edi
lea r9, [0x140400fb1]
lea ecx, [rdx - 0x6f]
lea r8d, [rdx - 0x4e]
call fcn.1401d6370
mov r15, qword [rsp + 0x80]
jmp 0x14023a340
mov edx, 0x8f
mov dword [rsp + 0x20], edi
lea r9, [0x140400fb1]
lea ecx, [rdx - 0x6f]
lea r8d, [rdx - 0xc]
call fcn.1401d6370
lea r11, [rsp + 0x60]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14023a380
Capabilities:
Resolve dns

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x488
mov rax, qword [0x140463cc0]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rdi, r9
mov rbx, r8
mov esi, edx
mov r14, rcx
call fcn.140239d60
cmp eax, 1
je 0x14023a3bb
xor eax, eax
jmp 0x14023a56f
xor edx, edx
mov qword [rsp + 0x480], rbp
mov r8d, 0x400
mov byte [rsp + 0x60], 0
lea rcx, [rsp + 0x61]
call fcn.140374500
xor eax, eax
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x51], rax
lea r8, [rsp + 0x60]
mov dword [rsp + 0x59], eax
neg esi
mov word [rsp + 0x5d], ax
mov ecx, reloc.WS2_32.dll_recv
mov byte [rsp + 0x5f], al
mov edx, 0x1c
sbb eax, eax
xorps xmm0, xmm0
and eax, 0xa
mov r9d, 0x401
cmp word [r14], 2
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
cmove edx, ecx
mov dword [rsp + 0x28], 0x20
mov rcx, r14
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x41], xmm0
call qword [sym.imp.WS2_32.dll_getnameinfo]
xor esi, esi
mov ebp, eax
test eax, eax
je 0x14023a47b
lea r9, [0x140400fb1]
mov dword [rsp + 0x20], esi
mov edx, 0x86
lea ecx, [rsi + 0x20]
lea r8d, [rsi + 2]
call fcn.1401d6370
mov ecx, ebp
call fcn.140239e20
mov rdx, rax
lea ecx, [rsi + 1]
call fcn.1401d69f0
xor eax, eax
jmp 0x14023a567
cmp byte [rsp + 0x40], sil
jne 0x14023a4c2
movzx eax, word [r14]
cmp ax, 2
jne 0x14023a493
movzx ecx, word [r14 + 2]
jmp 0x14023a4a2
cmp ax, 0x17
jne 0x14023a4a0
movzx ecx, word [r14 + 2]
jmp 0x14023a4a2
mov ecx, esi
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r9d, ax
lea r8, [0x140401ac8]
mov edx, 0x20
lea rcx, [rsp + 0x40]
call fcn.1401ba500
test rbx, rbx
je 0x14023a4de
xor r8d, r8d
lea rdx, [0x140400fb1]
lea rcx, [rsp + 0x60]
call fcn.1402399c0
mov qword [rbx], rax
test rdi, rdi
je 0x14023a4fa
xor r8d, r8d
lea rdx, [0x140400fb1]
lea rcx, [rsp + 0x40]
call fcn.1402399c0
mov qword [rdi], rax
test rbx, rbx
je 0x14023a504
cmp qword [rbx], rsi
je 0x14023a513
test rdi, rdi
je 0x14023a562
cmp qword [rdi], rsi
jne 0x14023a562
test rbx, rbx
je 0x14023a52d
mov rcx, qword [rbx]
lea rdx, [0x140400fb1]
xor r8d, r8d
call fcn.1401b7dd0
mov qword [rbx], rsi
test rdi, rdi
je 0x14023a542
mov rcx, qword [rdi]
lea rdx, [0x140400fb1]
xor r8d, r8d
call fcn.1401b7dd0
mov qword [rdi], rsi
mov edx, 0x86
mov dword [rsp + 0x20], esi
lea r9, [0x140400fb1]
lea ecx, [rdx - 0x66]
lea r8d, [rdx - 0x45]
call fcn.1401d6370
xor eax, eax
jmp 0x14023a567
mov eax, 1
mov rbp, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14016e5c0
add rsp, 0x488
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140242630
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x140242657
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 0x140242640
movzx eax, r9b
ret
Function at 0x140247790
Capabilities:
Hash data using sha512

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x140463cc0]
xor rax, rsp
mov qword [rsp + 0x100], rax
movabs rax, 0x6a09e667f3bcc908
mov dword [rsp + 0xf4], 0x40
mov qword [rsp + 0x20], rax
lea rsi, [0x1406c86b0]
movabs rax, 0xbb67ae8584caa73b
test r8, r8
mov qword [rsp + 0x28], rax
mov rbx, rdx
movabs rax, 0x3c6ef372fe94f82b
cmovne rsi, r8
mov qword [rsp + 0x30], rax
mov rdi, rcx
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rsp + 0x38], rax
movabs rax, 0x510e527fade682d1
mov qword [rsp + 0x40], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rsp + 0x48], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rsp + 0x50], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rsp + 0x58], rax
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0xf0], eax
test rdx, rdx
je 0x1402478b7
mov rax, rdx
lea rcx, [rdx*8]
shr rax, 0x3d
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], rcx
cmp rdx, 0x80
jb 0x1402478a0
mov r8, rdx
lea rcx, [rsp + 0x20]
shr r8, 7
mov rdx, rdi
call fcn.140247a30
add rdi, rbx
and ebx, 0x7f
sub rdi, rbx
test rbx, rbx
je 0x1402478b7
mov r8, rbx
lea rcx, [rsp + 0x70]
mov rdx, rdi
call fcn.140373e60
mov dword [rsp + 0xf0], ebx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140246f80
mov edx, 0xd8
lea rcx, [rsp + 0x20]
call fcn.140239440
mov rax, rsi
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.14016e5c0
add rsp, 0x110
pop rdi
pop rsi
pop rbx
ret
Function at 0x14024ad00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movzx r9d, byte [rdx]
lea eax, [r8 - 1]
movzx r11d, r9b
movsxd r10, eax
shr r11b, 7
xor edi, edi
mov esi, r8d
mov rbx, rcx
test eax, eax
jle 0x14024ad64
mov r8, rcx
sub rdx, rcx
mov edi, eax
nop word [rax + rax]
movzx ecx, byte [r8 + rdx + 1]
lea r8, [r8 + 1]
add r9b, r9b
movzx eax, cl
shr al, 7
or al, r9b
movzx r9d, cl
mov byte [r8 - 1], al
sub r10, 1
jne 0x14024ad40
cmp esi, 0x10
mov eax, 0x87
mov rsi, qword [rsp + 0x10]
mov ecx, 0x1b
cmove ecx, eax
movsxd rax, edi
mov rdi, qword [rsp + 0x18]
neg r11b
and cl, r11b
add r9b, r9b
xor cl, r9b
mov byte [rax + rbx], cl
mov rbx, qword [rsp + 8]
ret

Function at 0x14025b4a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r8d, dword [rcx + 4]
mov r9, rdx
movsxd rdx, dword [rcx]
and r8d, 0x100
mov rcx, qword [rcx + 8]
jmp fcn.14025b6e0

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov r10, rdx
xor r11b, r11b
xor edx, edx
mov rdi, r9
mov rbx, rcx
test rcx, rcx
je 0x14025b7e1
test r10, r10
je 0x14025b7e1
movzx eax, byte [rcx]
test r8d, r8d
jne 0x14025b729
cmp al, 0x7f
jbe 0x14025b7da
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x14025b7e9
mov r11b, 0xff
cmp al, 0x80
jbe 0x14025b73f
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x14025b7e9
jne 0x14025b7da
mov eax, 1
lea rcx, [r10 - 1]
cmp r10, rax
jbe 0x14025b7cf
cmp rcx, 8
jb 0x14025b7c1
and ecx, 7
mov rdx, r10
sub rdx, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [rax]
movd xmm1, dword [rbx + rax]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
orps xmm3, xmm1
movd xmm1, dword [rbx + rax + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
orps xmm2, xmm1
cmp rax, rdx
jb 0x14025b770
orps xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movd edx, xmm2
cmp rax, r10
jae 0x14025b7cf
movzx ecx, byte [rbx + rax]
inc rax
or edx, ecx
cmp rax, r10
jb 0x14025b7c1
neg edx
sbb r11b, r11b
mov edx, r11d
and edx, 1
mov eax, edx
add rax, r10
jmp 0x14025b7e9
mov eax, 1
mov r10, rdx
test rdi, rdi
je 0x14025b835
mov rcx, qword [r9]
test rcx, rcx
je 0x14025b835
mov r8d, r11d
mov byte [rcx], r11b
and r8d, 1
lea r9, [rbx + r10]
test r10, r10
je 0x14025b832
mov ebx, edx
add rbx, rcx
nop
movzx edx, byte [r9 - 1]
lea r9, [r9 - 1]
dec r10
movzx ecx, r11b
xor edx, ecx
add r8d, edx
mov byte [rbx + r10], r8b
shr r8d, 8
test r10, r10
jne 0x14025b810
add qword [rdi], rax
mov rbx, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x14025b840
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x38
mov r10, rcx
test r9, r9
jne 0x14025b872
mov edx, 0xe2
mov dword [rsp + 0x20], r9d
lea r9, [0x140400fb1]
mov ecx, reloc.WS2_32.dll_listen
lea r8d, [rdx - 4]
call fcn.1401d6370
xor eax, eax
add rsp, 0x38
ret
movzx r11d, byte [r8]
and r11d, 0x80
test rdx, rdx
je 0x14025b885
mov dword [rdx], r11d
cmp r9, 1
jne 0x14025b8a7
test r10, r10
je 0x14025b89d
movzx eax, byte [r8]
test r11d, r11d
je 0x14025b89b
neg al
mov byte [rcx], al
mov eax, 1
add rsp, 0x38
ret
movzx ecx, byte [r8]
test cl, cl
jne 0x14025b8b9
mov eax, 1
jmp 0x14025b96a
xor eax, eax
cmp cl, 0xff
jne 0x14025b9a3
xor edx, edx
lea rcx, [r9 - 1]
mov eax, 1
cmp r9, rax
jbe 0x14025b95f
cmp rcx, 8
jb 0x14025b950
and ecx, 7
mov rdx, r9
sub rdx, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [rax]
movd xmm1, dword [r8 + rax]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
orps xmm3, xmm1
movd xmm1, dword [r8 + rax + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
orps xmm2, xmm1
cmp rax, rdx
jb 0x14025b8f0
orps xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movd edx, xmm2
cmp rax, r9
jae 0x14025b95f
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
inc rax
or edx, ecx
cmp rax, r9
jb 0x14025b950
xor eax, eax
test edx, edx
setne al
test edx, edx
je 0x14025b9a3
movzx ecx, byte [r8 + 1]
and ecx, 0x80
cmp r11d, ecx
jne 0x14025b9a3
mov edx, 0xe2
mov dword [rsp + 0x20], 0
lea r9, [0x140400fb1]
mov ecx, reloc.WS2_32.dll_listen
lea r8d, [rdx - 5]
call fcn.1401d6370
xor eax, eax
add rsp, 0x38
ret
mov qword [rsp + 0x30], rbx
mov rbx, r9
sub rbx, rax
test r10, r10
je 0x14025b9ed
neg r11d
sbb r11d, r11d
add r9, r8
movzx r11d, r11b
mov edx, r11d
and edx, 1
test rbx, rbx
je 0x14025b9ed
mov r8, rbx
nop
movzx ecx, byte [r9 - 1]
lea r9, [r9 - 1]
dec r8
xor ecx, r11d
add edx, ecx
mov byte [r10 + r8], dl
shr edx, 8
test r8, r8
jne 0x14025b9d0
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret

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

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x14026227c
movzx ecx, byte [rcx]
test cl, cl
je 0x14026227c
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 0x140262230
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret
Function at 0x140262290
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x140262318
movzx eax, byte [rcx]
test al, al
je 0x140262318
mov qword [rsp + 0x30], rsi
mov esi, 0x100
movsx ecx, al
call fcn.14023a9f0
mov r9d, eax
mov edx, ebx
or r9d, esi
lea rdi, [rdi + 1]
mov eax, ebx
mov r8d, r9d
shr r8d, 2
mov ecx, 0x20
xor r8d, r9d
add esi, 0x100
and r8d, 0xf
imul r9d, r9d
sub ecx, r8d
shr rdx, cl
mov ecx, r8d
shl eax, cl
mov ebx, edx
or ebx, eax
movzx eax, byte [rdi]
xor ebx, r9d
test al, al
jne 0x1402622b5
mov rsi, qword [rsp + 0x30]
mov eax, ebx
shr eax, 0x10
xor eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140264640
Capabilities:
Get thread local storage value

Disassembly:
lea rcx, [0x1406c8740]
jmp fcn.140238a40
Function at 0x14028ad70
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push r13
push r14
sub rsp, 0x40
mov rsi, qword [rcx + 0x70]
mov rbx, r8
mov r8d, dword [rsi + 0x70]
lea r13, [rsi + 0x70]
mov qword [rsp + 0x38], r13
mov rbp, r9
mov r14, rdx
test r8d, r8d
je 0x14028ade6
test r9, r9
je 0x14028adc2
cmp r8d, 0x40
jae 0x14028adc2
mov eax, r8d
inc r8d
movzx ecx, byte [rax + rsi + 0x30]
xor cl, byte [rbx]
inc rbx
mov byte [r14], cl
inc r14
sub rbp, 1
jne 0x14028ada0
mov dword [r13], r8d
test rbp, rbp
je 0x14028af19
cmp r8d, 0x40
jne 0x14028ade6
mov dword [r13], 0
add dword [rsi + 0x20], 1
jne 0x14028ade6
inc dword [rsi + 0x24]
mov ecx, dword [rsi + 0x20]
lea rax, [rsi + 0x20]
mov qword [rsp + 0x80], r12
mov r12d, ebp
and r12d, 0x3f
mov qword [rsp + 0x88], r15
mov r15d, r12d
sub rbp, r15
mov dword [rsp + 0x30], r12d
cmp rbp, 0x40
jb 0x14028aea6
mov qword [rsp + 0x78], rdi
lea r13, [rsi + 0x20]
mov r12d, 0x10000000
mov r15d, ecx
nop dword [rax + rax]
mov rdx, rbp
mov qword [rsp + 0x20], r13
shr rdx, 6
mov r9, rsi
cmp rdx, r12
cmova rdx, r12
mov rdi, rdx
lea eax, [rdx + r15]
xor r15d, r15d
mov ecx, eax
cmp rcx, rdx
cmovae r15d, eax
sub rdi, rcx
cmp rcx, rdx
mov rcx, r14
cmovae rdi, rdx
mov rdx, rbx
shl rdi, 6
mov r8, rdi
call fcn.1402ea840
sub rbp, rdi
mov dword [r13], r15d
add rbx, rdi
add r14, rdi
test r15d, r15d
jne 0x14028ae8a
inc dword [rsi + 0x24]
cmp rbp, 0x40
jae 0x14028ae30
mov r12d, dword [rsp + 0x30]
lea rax, [rsi + 0x20]
mov rdi, qword [rsp + 0x78]
mov r15d, r12d
mov r13, qword [rsp + 0x38]
test r12d, r12d
je 0x14028af09
lea rcx, [rsi + 0x30]
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
mov r9, rsi
movups xmmword [rcx], xmm0
mov r8d, 0x40
mov rdx, rcx
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
call fcn.1402ea840
test r12d, r12d
je 0x14028af05
sub rsi, rbx
sub r14, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsi + rbx + 0x30]
xor al, byte [rbx]
mov byte [rbx + r14], al
lea rbx, [rbx + 1]
sub r15, 1
jne 0x14028aef0
mov dword [r13], r12d
mov r12, qword [rsp + 0x80]
mov r15, qword [rsp + 0x88]
mov eax, 1
add rsp, 0x40
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret