joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400776c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x140077611
mov rdx, qword [rbx + 0x28]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x1400775fe
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14007761f
mov rcx, r8
call fcn.140248fa4
xor eax, eax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
lea rcx, [rbx + 8]
add rsp, 0x20
pop rbx
jmp 0x1400776c0
call fcn.14025746c
int3
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [rcx]
mov rsi, rcx
mov rax, qword [rbx + 8]
mov qword [rax], 0
mov rbx, qword [rbx]
test rbx, rbx
je 0x140077716
mov qword [rsp + 0x30], rdi
nop dword [rax + rax]
mov rdi, qword [rbx]
lea rcx, [rbx + 0x10]
call fcn.140077730
mov edx, 0x48
mov rcx, rbx
call fcn.140248fa4
mov rbx, rdi
test rdi, rdi
jne 0x1400776f0
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsi]
mov edx, 0x48
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
jmp fcn.140248fa4

Function at 0x140082030
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140249800
sub rsp, rax
cmp dword [0x1403df040], 0xffffffff
je 0x14008212c
lea rcx, [0x1403df040]
mov qword [rsp + 0x20], rdi
call fcn.140095be0
xor edx, edx
lea rcx, [0x1403df040]
mov rdi, rax
call fcn.140095d60
test rdi, rdi
je 0x140082101
lea rdx, [0x140082140]
lea rcx, [0x1403f1120]
call fcn.140095cf0
xor ecx, ecx
test eax, eax
cmovne ecx, dword [0x1403f1124]
test ecx, ecx
je 0x140082101
mov qword [rsp + 0x38], rsi
mov rsi, qword [0x1403f1118]
test rsi, rsi
je 0x1400820fc
mov rcx, qword [rsi + 8]
call fcn.140095dd0
test eax, eax
je 0x1400820fc
mov qword [rsp + 0x30], rbx
mov rbx, qword [rdi]
test rbx, rbx
je 0x1400820ee
mov rcx, qword [rbx + 8]
call qword [rbx + reloc.WS2_32.dll_recv]
mov rax, qword [rbx + 0x18]
lea rdx, str.cryptoinitthread.c
mov qword [rdi], rax
mov rcx, rbx
mov rbx, qword [rbx + 0x18]
mov r8d, 0x159
call fcn.1400952a0
test rbx, rbx
jne 0x1400820c2
mov rcx, qword [rsi + 8]
call fcn.140095d90
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
call fcn.1400823e0
mov r8d, 0xec
lea rdx, str.cryptoinitthread.c
mov rcx, rdi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
jmp fcn.1400952a0
add rsp, 0x28
ret

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

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x20
call fcn.140249800
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x140085333
movzx eax, byte [rcx]
test al, al
je 0x140085333
mov qword [rsp + 0x30], rsi
mov esi, 0x100
nop
movsx ecx, al
call fcn.140099660
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 0x1400852d0
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 0x140095250
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140249800
sub rsp, rax
mov rax, qword [str.PR_t_]
lea r9, [fcn.140095250]
cmp rax, r9
je 0x140095277
add rsp, 0x28
jmp rax
test rcx, rcx
jne 0x140095283
xor eax, eax
add rsp, 0x28
ret
cmp dword [0x1403df628], 0
je 0x140095296
mov dword [0x1403df628], 0
add rsp, 0x28
jmp fcn.14001a500

Function at 0x1400952a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140249800
sub rsp, rax
mov rax, qword [fcn.1400952a0]
lea r9, [fcn.1400952a0]
cmp rax, r9
je 0x1400952c7
add rsp, 0x28
jmp rax
add rsp, 0x28
jmp fcn.140018fc0

Function at 0x1400952d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140249800
sub rsp, rax
mov rax, qword [fcn.1400952d0]
mov r10, rdx
lea rdx, [fcn.1400952d0]
mov r11, r8
cmp rax, rdx
je 0x140095300
mov rdx, r10
add rsp, 0x28
jmp rax
test rcx, rcx
jne 0x14009534a
mov rax, qword [str.PR_t_]
lea rcx, [fcn.140095250]
cmp rax, rcx
je 0x140095328
mov r8d, r9d
mov rdx, r11
mov rcx, r10
add rsp, 0x28
jmp rax
test r10, r10
je 0x140095376
cmp dword [0x1403df628], 0
je 0x14009533e
xor eax, eax
mov dword [0x1403df628], eax
mov rcx, r10
add rsp, 0x28
jmp fcn.14001a500
test r10, r10
jne 0x14009537d
mov rax, qword [fcn.1400952a0]
lea rdx, [fcn.1400952a0]
cmp rax, rdx
je 0x140095371
mov r8d, r9d
mov rdx, r11
call rax
xor eax, eax
add rsp, 0x28
ret
call fcn.140018fc0
xor eax, eax
add rsp, 0x28
ret
mov rdx, r10
add rsp, 0x28
jmp fcn.14001f820
Function at 0x140095410
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20
call fcn.140249800
sub rsp, rax
mov rsi, r9
mov rax, r8
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
jne 0x1400954aa
mov r9, qword [str.PR_t_]
lea rcx, [fcn.140095250]
cmp r9, rcx
je 0x140095469
mov r8d, dword [rsp + 0x50]
mov rdx, rsi
mov rcx, rax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp r9
test rax, rax
jne 0x140095482
xor ecx, ecx
mov eax, ecx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp dword [0x1403df628], 0
je 0x140095493
xor ecx, ecx
mov dword [0x1403df628], ecx
mov rcx, rax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14001a500
test rax, rax
jne 0x140095502
test rbx, rbx
je 0x1400954b9
call fcn.14009a1a0
mov rax, qword [fcn.1400952a0]
lea rcx, [fcn.1400952a0]
cmp rax, rcx
mov rcx, rdi
je 0x1400954eb
mov r8d, dword [rsp + 0x50]
mov rdx, rsi
call rax
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
call fcn.140018fc0
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp rax, rbx
jae 0x140095528
sub rbx, rax
add rcx, r8
mov rdx, rbx
call fcn.14009a1a0
mov rax, rdi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov r8d, dword [rsp + 0x50]
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x30], rbp
call fcn.140095250
mov rbp, rax
test rax, rax
je 0x140095566
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.14027dfb0
mov r9d, dword [rsp + 0x50]
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.140095390
mov rbx, qword [rsp + 0x38]
mov rax, rbp
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140095d60
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140249800
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 0x140097760
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x28
call fcn.140249800
sub rsp, rax
cmp dword [0x1403f1460], 0
jne 0x14009781a
xor edx, edx
mov dword [0x1403f1460], 1
mov r8d, 0x198
lea rcx, [0x1403f1470]
call fcn.14027e650
mov ecx, 0x202
lea rdx, [0x1403f1470]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14009781a
call fcn.140095630
lea r8, str.BIO_sock_init
mov edx, __WSAFDIsSet
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140095750
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov ecx, 2
mov edx, eax
call fcn.140095850
call fcn.140095630
lea r8, str.BIO_sock_init
mov edx, __WSAFDIsSet
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140095750
xor r8d, r8d
lea edx, [r8 + 0x7a]
lea ecx, [rdx - 0x5a]
call fcn.140095850
mov eax, 0xffffffff
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret
Function at 0x140097830
Capabilities:
Set socket configuration

Disassembly:
push rbx
mov eax, 0x20
call fcn.140249800
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 0x140097892
call fcn.140095630
lea r8, str.BIO_socket_ioctl
mov edx, 0xd1
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140095750
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_ioctlsocket__
mov ecx, 2
mov edx, eax
call fcn.140095850
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x20
pop rbx
ret

Function at 0x1400978a0
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x260
call fcn.140249800
sub rsp, rax
mov rax, qword [0x1403e4f00]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov edi, ecx
mov rbx, r8
mov esi, edx
cmp ecx, 0x3f
ja 0x140097932
test rbx, rbx
jne 0x1400978da
lea eax, [r8 + 1]
jmp 0x140097937
xor ecx, ecx
call fcn.14025cac4
mov rcx, rax
cmp rbx, rax
jge 0x1400978ed
xor eax, eax
jmp 0x140097937
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 0x140097937
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140249860
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x140098660
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x280
call fcn.140249800
sub rsp, rax
mov rax, qword [0x1403e4f00]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x1403f1610], 0
lea rax, [0x140097fe0]
mov qword [rsp + 0x28], rax
lea rbx, [0x1402ff218]
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x140098420]
mov qword [rsp + 0x38], rax
lea rax, [0x1402ff238]
mov qword [rsp + 0x40], rax
lea rax, [0x140097f80]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rbx
jne 0x140098839
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14009882f
lea r8, [rsp + 0x160]
mov qword [rsp + 0x290], rsi
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.140266d94
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1402574e4
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14009875a
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400987ba
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.140266d94
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1402574e4
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140098827
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400987ba
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140098827
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 0x140098816
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x1400987d0
mov rax, qword [rsp + 0x28]
mov qword [0x1403df660], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1403df670], rax
mov rax, qword [rsp + 0x48]
mov qword [0x1403df680], rax
jmp 0x14009881f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x1403f1610], 1
mov rax, rbp
lea rcx, [0x1403df658]
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140249860
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret
Function at 0x140098870
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.140249800
sub rsp, rax
mov rax, qword [0x1403e4f00]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov r13, qword [rsp + 0x8c8]
mov r14, rcx
mov dword [rsp + 0x24], r8d
xor ebp, ebp
mov dword [rsp + 0x28], edx
mov r8d, 0x400
mov qword [rsp + 0x38], rcx
xor edx, edx
lea rcx, [rsp + 0x41]
mov byte [rsp + 0x40], bpl
mov r12d, ebp
mov word [rsp + 0x20], r9w
call fcn.14027e650
xor edx, edx
mov byte [rsp + 0x450], bpl
mov r8d, 0x400
lea rcx, [rsp + 0x451]
call fcn.14027e650
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.140266df4
lea r15, [rbp - 1]
nop dword [rax]
mov rcx, r14
mov qword [r13], rbp
mov rsi, r13
mov byte [rdi], bpl
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov r14, rax
test rax, rax
je 0x140098a7e
cmp word [rax + 0x10], 2
jne 0x1400989a7
cmp word [rax + 0x12], 4
jne 0x1400989a7
mov rbx, qword [rax + 0x18]
mov rax, qword [rbx]
test rax, rax
je 0x1400989a2
nop dword [rax]
mov r9d, dword [rax]
movzx r8d, word [rsp + 0x20]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
call fcn.140098ae0
mov qword [rsi], rax
test rax, rax
je 0x140098a77
add rbx, 8
lea rsi, [rax + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x140098970
mov rbx, qword [rsp + 0x30]
mov r8, qword [r14]
mov r9d, 0x400
mov rcx, rdi
lea edx, [r9 + 1]
call fcn.140266df4
cmp qword [r13], rbp
jne 0x140098a20
mov rax, r15
inc rax
cmp byte [rdi + rax], bpl
jne 0x1400989c5
test rax, rax
je 0x140098a98
mov r8, rdi
mov rax, rbx
sub r8, rbx
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400989f3
inc rax
test ecx, ecx
jne 0x1400989e0
test edx, edx
je 0x140098a98
inc r12d
cmp r12d, 0x10
je 0x140098a98
mov r14, qword [rsp + 0x38]
mov rax, rbx
mov rbx, rdi
mov rdi, rax
mov qword [rsp + 0x30], rbx
jmp 0x140098930
cmp dword [rsp + 0x8c0], ebp
je 0x140098aab
nop dword [rax]
cmp byte [rdi + r15 + 1], bpl
lea r15, [r15 + 1]
jne 0x140098a30
lea rdx, [r15 + 1]
mov ecx, 1
call fcn.140017320
mov rbx, rax
test rax, rax
jne 0x140098a56
mov rbx, rbp
jmp 0x140098a65
mov r8, rdi
lea rdx, [r15 + 1]
mov rcx, rax
call fcn.140266d94
mov rax, qword [r13]
mov qword [rax + 0x18], rbx
mov rax, qword [r13]
cmp qword [rax + 0x18], rbp
jne 0x140098aab
mov ebp, 8
jmp 0x140098aab
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2af9
je 0x140098aa6
sub ecx, 1
je 0x140098a9f
sub ecx, 1
jne 0x140098aa6
mov ebp, 0x2afb
jmp 0x140098aab
mov ebp, 0x2afa
jmp 0x140098aab
mov ebp, 0x2af9
mov eax, ebp
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.140249860
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 0x14009ca80
Capabilities:
Encode data using xor

Disassembly:
push rbx
movsxd rbx, r9d
mov r10, r8
mov r11, rdx
cmp rdx, r8
je 0x14009cbe2
mov qword [rsp + 0x10], rsi
lea rsi, [rcx - 1]
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 ecx, dword [rdx + 0x10]
movq xmm4, rsi
xor ecx, dword [r8 + 0x10]
and ecx, esi
punpcklqdq xmm4, xmm4
xor dword [rdx + 0x10], ecx
xor dword [r8 + 0x10], ecx
mov edx, dword [rdx + 0x14]
mov ecx, dword [r8 + 0x14]
xor rcx, rdx
and ecx, 4
and rcx, rsi
mov eax, ecx
xor eax, edx
mov dword [r11 + 0x14], eax
xor dword [r8 + 0x14], ecx
xor ecx, ecx
mov edx, ecx
test r9d, r9d
jle 0x14009cb9e
cmp ebx, 2
jb 0x14009cb9e
mov r9, qword [r8]
lea rax, [rbx - 1]
mov r8, qword [r11]
mov qword [rsp + 0x18], rdi
lea rdi, [rbx - 1]
lea rdi, [r9 + rdi*8]
lea rax, [r8 + rax*8]
cmp r9, rax
ja 0x14009cb2e
cmp rdi, r8
jae 0x14009cb99
cmp r9, r10
ja 0x14009cb38
cmp rdi, r10
jae 0x14009cb99
cmp r9, r11
ja 0x14009cb42
cmp rdi, r11
jae 0x14009cb99
cmp r8, r10
ja 0x14009cb4c
cmp rax, r10
jae 0x14009cb99
cmp r8, r11
ja 0x14009cb56
cmp rax, r11
jae 0x14009cb99
mov eax, ebx
and eax, 0xfffffffe
nop dword [rax + rax]
movdqu xmm2, xmmword [rcx + r9]
add edx, 2
movdqu xmm1, xmmword [rcx + r8]
lea rcx, [rcx + 0x10]
movdqa xmm3, xmm2
xorps xmm3, xmm1
andps xmm3, xmm4
movdqa xmm0, xmm3
xorps xmm3, xmm2
xorps xmm0, xmm1
movdqu xmmword [rcx + r8 - 0x10], xmm0
movdqu xmmword [rcx + r9 - 0x10], xmm3
cmp edx, eax
jl 0x14009cb60
mov rdi, qword [rsp + 0x18]
movsxd rax, edx
cmp rax, rbx
jge 0x14009cbdd
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, rbx
jl 0x14009cbb0
mov rsi, qword [rsp + 0x10]
pop rbx
ret

Function at 0x1400a2e50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
mov eax, 0x20
call fcn.140249800
sub rsp, rax
mov rbx, rcx
lea rdx, str.cryptoevpevp_lib.c
mov rcx, qword [rcx + 0x58]
mov r8d, 0x354
call fcn.1400952a0
mov rcx, qword [rbx + 0x68]
call fcn.1400bdaf0
mov rcx, qword [rbx + 0x78]
call fcn.140095c50
mov r8d, 0x357
lea rdx, str.cryptoevpevp_lib.c
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400952a0
Function at 0x1400bdaf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
test rcx, rcx
je 0x1400bdc2e
push rbx
mov eax, 0x20
call fcn.140249800
sub rsp, rax
mov rbx, rcx
mov eax, 0xffffffff
lock xadd dword [rcx + 0x10], eax
cmp eax, 1
jne 0x1400bdc19
test byte [rcx], al
je 0x1400bdb9d
mov rax, qword [rcx + 0x70]
test rax, rax
je 0x1400bdb3c
test byte [rcx + 0xc8], 1
jne 0x1400bdb3c
mov rcx, qword [rcx + 0xd0]
call rax
mov rdx, qword [rbx + 0x68]
test rdx, rdx
je 0x1400bdb6b
mov ecx, dword [rbx + 0x60]
call fcn.140094850
mov rcx, qword [rbx + 0x68]
lea rdx, str.cryptoprovider_core.c
mov r8d, 0x2bd
call fcn.1400952a0
mov qword [rbx + 0x68], 0
mov rcx, qword [rbx + 0xa8]
lea rdx, str.cryptoprovider_core.c
mov r8d, 0x2c2
call fcn.1400952a0
and dword [rbx], 0xfffffffe
mov qword [rbx + 0xa8], 0
mov qword [rbx + 0xb0], 0
mov rcx, rbx
call fcn.140082700
mov rcx, qword [rbx + 0x38]
call fcn.140144830
mov rcx, qword [rbx + 0x28]
lea rdx, str.cryptoprovider_core.c
mov r8d, 0x2d1
call fcn.1400952a0
mov rcx, qword [rbx + 0x30]
lea rdx, str.cryptoprovider_core.c
mov r8d, 0x2d2
call fcn.1400952a0
mov rcx, qword [rbx + 0x48]
lea rdx, [0x1400bd080]
call fcn.140081b30
mov rcx, qword [rbx + 0xb8]
call fcn.140095c50
mov rcx, qword [rbx + 8]
call fcn.140095c50
mov r8d, 0x2d9
lea rdx, str.cryptoprovider_core.c
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400952a0
test byte [rcx + 0xc8], 1
je 0x1400bdc29
xor edx, edx
call fcn.14011a2f0
add rsp, 0x20
pop rbx
ret

Function at 0x1400d4d50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
movsxd rbx, r8d
mov r11, rdx
mov rdi, rcx
test r8d, r8d
jle 0x1400d4d8f
mov r9, rdx
mov rdx, rcx
sub rdx, r9
movzx eax, byte [r9]
cmp byte [rdx + r9], al
jne 0x1400d4d8f
inc r9
inc r10d
mov rax, r9
sub rax, r11
cmp rax, rbx
jl 0x1400d4d74
lea edx, [r8 - 1]
movsxd rax, edx
test edx, edx
js 0x1400d4dba
mov r8, rdi
lea rcx, [rax + r11]
sub r8, r11
cmp byte [rcx + r8], 0
jne 0x1400d4dba
cmp byte [rcx], 0xff
jne 0x1400d4dba
dec edx
dec rcx
cmp rcx, r11
jns 0x1400d4da4
cmp r10d, edx
jl case.0x1400d4e13.2
jle 0x1400d4dd8
lea eax, [r10*8]
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
movsxd rax, r10d
movzx r8d, byte [rax + r11]
movzx r9d, byte [rax + rdi]
movzx edx, r8b
xor dl, r9b
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x1400d4e13.2
lea r11, [0x140000000]
cdqe
movzx eax, byte [r11 + rax + 0xd4e88]
mov ecx, dword [r11 + rax*4 + 0xd4e68]
add rcx, r11
jmp rcx
mov eax, 7
jmp 0x1400d4e44
mov eax, 6
jmp 0x1400d4e44
mov eax, 5
jmp 0x1400d4e44
mov eax, 4
jmp 0x1400d4e44
mov eax, 3
jmp 0x1400d4e44
mov eax, 2
jmp 0x1400d4e44
mov eax, 1
test dl, r9b
jne case.0x1400d4e13.2
and r8b, dl
lea eax, [rax + r10*8]
cmp r8b, dl
je 0x1400d4e5a
mov eax, 0xffffffff
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
Function at 0x1400d5d40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.140249800
sub rsp, rax
mov r11, rcx
test r9, r9
jne 0x1400d5d8a
call fcn.140095630
lea r8, str.c2i_ibuf
mov edx, 0xa0
lea rcx, str.crypto_asn1_a_int.c
call fcn.140095750
xor r8d, r8d
mov edx, 0xde
lea ecx, [r8 + 0xd]
call fcn.140095850
xor eax, eax
add rsp, 0x28
ret
movzx r10d, byte [r8]
and r10d, 0x80
test rdx, rdx
je 0x1400d5d9d
mov dword [rdx], r10d
cmp r9, 1
jne 0x1400d5dbf
test r11, r11
je 0x1400d5db5
movzx eax, byte [r8]
test r10d, r10d
je 0x1400d5db3
neg al
mov byte [rcx], al
mov eax, 1
add rsp, 0x28
ret
movzx ecx, byte [r8]
test cl, cl
jne 0x1400d5dd1
mov eax, 1
jmp 0x1400d5e8a
xor eax, eax
cmp cl, 0xff
jne 0x1400d5ecf
xor edx, edx
lea rcx, [r9 - 1]
mov eax, 1
cmp r9, rax
jbe 0x1400d5e7f
cmp rcx, 8
jb 0x1400d5e70
and ecx, 7
mov rdx, r9
sub rdx, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop word [rax + rax]
movd xmm1, dword [rax + r8]
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 0x1400d5e10
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 0x1400d5e7f
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rax + r8]
inc rax
or edx, ecx
cmp rax, r9
jb 0x1400d5e70
xor eax, eax
test edx, edx
setne al
test edx, edx
je 0x1400d5ecf
movzx ecx, byte [r8 + 1]
and ecx, 0x80
cmp r10d, ecx
jne 0x1400d5ecf
call fcn.140095630
lea r8, str.c2i_ibuf
mov edx, 0xc1
lea rcx, str.crypto_asn1_a_int.c
call fcn.140095750
xor r8d, r8d
mov edx, 0xdd
lea ecx, [r8 + 0xd]
call fcn.140095850
xor eax, eax
add rsp, 0x28
ret
sub r9, rax
test r11, r11
je 0x1400d5f1d
add rax, r8
mov rdx, r9
neg r10d
sbb r10d, r10d
movzx r10d, r10b
mov ecx, r10d
and ecx, 1
test r9, r9
je 0x1400d5f1d
lea r8, [rax + r9]
mov rax, r9
sub rax, r9
add r11, rax
nop
movzx eax, byte [r8 - 1]
lea r8, [r8 - 1]
dec rdx
xor eax, r10d
add ecx, eax
mov byte [r11 + rdx], cl
shr ecx, 8
test rdx, rdx
jne 0x1400d5f00
mov rax, r9
add rsp, 0x28
ret