joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400930a0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x1400930e2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x1400930ea
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1400930fb
jmp 0x140093112
xor r10d, r10d
jmp 0x14009319d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140093112
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140093129
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140093149
add r11, r8
jmp 0x14009327a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140093212
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x1400931c0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x140093230
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x140093242
jmp 0x14009325c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14009325c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140093276
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400ade00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rdx
cmp dword [rcx], 2
jne 0x1400ade96
movdqu xmm0, xmmword [rcx + 8]
pshufd xmm1, xmm0, 0x44
pxor xmm1, xmmword [0x14011c090]
movdqa xmmword [rsp + 0x30], xmm1
pshufd xmm1, xmm0, 0xee
pxor xmm1, xmmword [0x14011c0a0]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmmword [rsp + 0x50], xmm0
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov rdi, qword [rsi]
xor eax, eax
test rdi, rdi
setne al
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.1400930a0
test rdi, rdi
je 0x1400adf25
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
jmp 0x1400adf3e
mov rdx, qword [rsi]
xor ecx, ecx
test rdx, rdx
setne cl
movabs rax, 0xcbf29ce484222325
xor rax, rcx
movabs rcx, 0x1efac7090aef4a21
imul rax, rcx
test rdx, rdx
je 0x1400ae036
mov r9, qword [rsi + 0x10]
test r9, r9
je 0x1400ae0b8
mov rcx, qword [rsi + 8]
movabs rdx, 0x100000001b3
mov r10, r9
and r10, 7
je 0x1400ae043
mov r11, rax
mov r8, rcx
nop word cs:[rax + rax]
movzx eax, byte [r8]
inc r8
xor rax, r11
imul rax, rdx
mov r11, rax
dec r10
jne 0x1400adf00
cmp r9, 8
jae 0x1400ae04c
jmp 0x1400ae0b8
movzx eax, byte [rsi + 8]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.1400930a0
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x60]
shl r9, 0x38
or r9, qword [rsp + 0x68]
mov rax, qword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
add r8, rcx
rol rcx, 0xd
xor rax, r9
xor rcx, r8
rol r8, 0x20
mov rdx, qword [rsp + 0x38]
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rax, r8
xor rcx, rdx
rol rdx, 0x20
xor r8, r9
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
xor rdx, 0xff
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
add rdx, rax
shl rax, 0x10
xor rax, rdx
shr rax, 0x2b
add rdx, rcx
shr rcx, 0x2f
xor rcx, rax
mov rax, rdx
shr rax, 0x20
xor rax, rdx
xor rax, rcx
jmp 0x1400ae0b8
movzx edx, byte [rsi + 8]
xor rax, rdx
imul rax, rcx
jmp 0x1400ae0b8
mov r8, rcx
cmp r9, 8
jb 0x1400ae0b8
add rcx, r9
nop
movzx r9d, byte [r8]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 1]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 2]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 3]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 4]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 5]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 6]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 7]
add r8, 8
xor rax, r9
imul rax, rdx
cmp r8, rcx
jne 0x1400ae050
and eax, 0x7fff
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x1400c88c0
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x1400c8929
mov rdi, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x1400c8929
mov rsi, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x1400c8929
mov rbx, rax
xor edi, edi
movzx eax, byte [0x1401891c0]
mov rcx, qword [0x140189110]
test rcx, rcx
jne 0x1400c89d8
jmp 0x1400c89c4
lea rcx, str.ntdll.dll
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x1400c8a38
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x1400c8a38
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x1400c8a38
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x1400c8a38
mov rsi, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x1400c8a38
mov rbx, qword [rsp + 0x20]
movzx eax, byte [0x1401891c0]
mov rcx, qword [0x140189110]
test rcx, rcx
jne 0x1400c89d8
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400c8a3f
mov rcx, rax
mov qword [0x140189110], rax
mov r8d, 0x18
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400c8a3f
mov r14, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbx
xor eax, eax
lock cmpxchg qword [0x140189050], r14
je 0x1400c8a2b
mov rsi, rax
cmp qword [r14], 0
je 0x1400c8a17
mov rcx, qword [r14 + 0x10]
call sub.KERNEL32.dll_CloseHandle
mov rcx, qword [0x140189110]
xor edx, edx
mov r8, r14
call fcn.14011631c
mov r14, rsi
mov rax, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400c8a50
ud2
mov ecx, 8
mov edx, 0x18
call fcn.140083160
ud2
Function at 0x1400c8c60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x60
mov ecx, dword [0x140119030]
test ecx, ecx
je 0x1400c8d66
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400c8c8e
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x1400c8d60
mov ecx, dword [0x140119030]
test ecx, ecx
je 0x1400c8d88
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400c8da5
mov rsi, rax
test rax, rax
jne 0x1400c8d23
movzx eax, byte [0x1401891c0]
mov rcx, qword [0x140189110]
test rcx, rcx
jne 0x1400c8ce0
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400c8dc3
mov rcx, rax
mov qword [0x140189110], rax
mov r8d, 0x40
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400c8dc3
mov rsi, rax
lea rax, [0x140119018]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140119030]
test ecx, ecx
je 0x1400c8db0
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rcx, [rsp + 0x28]
call fcn.1400c80d0
movups xmm0, xmmword [rsp + 0x28]
movups xmm1, xmmword [rsp + 0x38]
movups xmm2, xmmword [rsp + 0x48]
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 0x28], xmm2
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x38], rax
cmp qword [rsi + 8], 0
movups xmmword [rsi + 8], xmm0
je 0x1400c8d60
lock dec qword [0x140189040]
add rsi, 8
jmp 0x1400c8da7
lea rcx, [0x140119018]
call fcn.1400d3180
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400c8c80
jmp 0x1400c8c8e
lea rcx, [0x140119018]
call fcn.1400d3180
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400c8cad
xor esi, esi
mov rax, rsi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x140119018]
call fcn.1400d3180
mov ecx, eax
jmp 0x1400c8d1b
mov ecx, 8
mov edx, 0x40
call fcn.140083160
ud2

Function at 0x1400ccf60
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140086130
cmp rax, rcx
je 0x1400ccf85
cmp rdx, 4
jae 0x1400ccf88
xor eax, eax
xor r8d, r8d
jmp 0x1400cd020
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14011c9b0]
movdqa xmm3, xmmword [0x14011c9c0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x1400ccfb0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1400cd037
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1400cd020
ret
Function at 0x1400cdfd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x1400ce02b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1400ce02b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x1400ce046
cmp eax, 0x42
jne 0x1400ce02b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1400ce0f6
cmp byte [r9 + r11], 0x5f
jne 0x1400ce0f6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400ce15e
mov rcx, rsi
xor edx, edx
call fcn.1400c9710
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.1400c9710
test al, al
jne 0x1400ce1f1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400ce082
lea rdx, [0x14014e813]
mov r8d, 1
call fcn.140086620
test al, al
jne 0x1400ce1f1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1400ce03a
xor r14d, r14d
lea rbx, [0x14014ebc8]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400ce0b4
cmp byte [rax + rcx], 0x45
je 0x1400ce21a
sub r14, 1
jb 0x1400ce0d9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400ce0d9
mov r8d, 2
mov rdx, rbx
call fcn.140086620
test al, al
jne 0x1400ce1f1
mov rcx, rsi
call fcn.1400caf60
test al, al
jne 0x1400ce1f1
mov rax, qword [rsi]
test rax, rax
jne 0x1400ce0a0
jmp 0x1400ce03a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1400ce1b8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x1400ce152
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400ce13c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400ce12b
add dl, 0xa9
jmp 0x1400ce13a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400ce1b8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400ce1b8
movzx edx, bl
add rax, rdx
jae 0x1400ce100
jmp 0x1400ce1b8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400ce1b8
cmp rax, rcx
jae 0x1400ce1b5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400ce1f9
cmp qword [rsi + 0x20], 0
je 0x1400ce213
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.1400cdfd0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400ce03c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400ce208
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x14014eb88]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.140086620
test al, al
je 0x1400ce208
mov dil, 2
jmp 0x1400ce03a
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x1400ce1c3
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1400ce03a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1400ce03a
Function at 0x1400d0450
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x60], 4
mov dword [rsp + 0xa8], 0x400010
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x1400d04b7
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x88], edx
mov qword [rsp + 0x90], rax
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1400d04f8
mov r8, qword [rcx + 0x40]
xor edx, edx
test r8, r8
je 0x1400d04f1
lea r9, [0x14017bbf8]
xor r10d, r10d
nop word cs:[rax + rax]
movzx r11d, byte [rax + r10]
or edx, dword [r9 + r11*4]
inc r10
cmp r8, r10
jne 0x1400d04e0
mov dword [rsp + 0x98], edx
mov r14, qword [rcx + 0x10]
test r14, r14
je 0x1400d0560
mov rbx, qword [rcx]
lea rdi, [r14*8]
movzx eax, byte [0x1401891c0]
mov rcx, qword [0x140189110]
test rcx, rcx
jne 0x1400d0537
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400d0651
mov rcx, rax
mov qword [0x140189110], rax
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400d0651
mov rsi, rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov eax, r14d
jmp 0x1400d0567
xor eax, eax
mov esi, 8
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x68], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call sub.secur32.dll_AcquireCredentialsHandleA
test eax, eax
je 0x1400d05f0
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov ebx, 1
test r14, r14
je 0x1400d05d5
mov rcx, qword [0x140189110]
xor edx, edx
mov r8, rsi
call fcn.14011631c
mov rax, rbx
mov rdx, rdi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r14
ret
movaps xmm6, xmmword [rsp + 0x50]
movzx eax, byte [0x1401891c0]
mov rcx, qword [0x140189110]
test rcx, rcx
jne 0x1400d061c
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400d0660
mov rcx, rax
mov qword [0x140189110], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400d0660
mov rdi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
movups xmmword [rax + 0x10], xmm6
xor ebx, ebx
test r14, r14
jne 0x1400d05c4
jmp 0x1400d05d5
mov ecx, 8
mov rdx, rdi
call fcn.140083160
ud2
mov ecx, 8
mov edx, 0x20
call fcn.140083160
ud2
Function at 0x1400d2e00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov ecx, dword [0x1401190a0]
test ecx, ecx
je 0x1400d2e30
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400d2e49
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400d2e49
add rdi, 0x10
jmp 0x1400d2f3e
lea rcx, str.08_r_
call fcn.1400d3180
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400d2e1d
mov ecx, dword [0x1401190a0]
test ecx, ecx
je 0x1400d2f1f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400d2f3c
mov rsi, rax
test rax, rax
jne 0x1400d2eee
mov qword [rsp + 0x28], 0
lea rax, str.08_r_
mov qword [rsp + 0x20], rax
movzx eax, byte [0x1401891c0]
mov rcx, qword [0x140189110]
test rcx, rcx
jne 0x1400d2eb0
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400d2f58
mov rcx, rax
mov qword [0x140189110], rax
mov r8d, 0x18
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400d2f58
mov rsi, rax
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
mov ecx, dword [0x1401190a0]
test ecx, ecx
je 0x1400d2f48
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x1400d2f3e
test rcx, rcx
je 0x1400d2f3e
lock dec qword [rcx]
jne 0x1400d2f3e
call fcn.14007fc80
jmp 0x1400d2f3e
lea rcx, str.08_r_
call fcn.1400d3180
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400d2e68
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, str.08_r_
call fcn.1400d3180
mov ecx, eax
jmp 0x1400d2ee6
mov ecx, 8
mov edx, 0x18
call fcn.140083160
ud2
Function at 0x1400d3180
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400d3205
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x1400d3246
cmp dword [rsp + 0x2c], 0
je 0x1400d322a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400d326e
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x140189130]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140189130], rsi
jne 0x1400d31e0
mov byte [0x140189128], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x1400d323c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1400d32ba
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1400d322f
mov edi, dword [rsp + 0x28]
jmp 0x1400d323c
mov edi, dword [rsi + 0x18]
jmp 0x1400d323a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rdx, [0x140151920]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.1400d3320
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x140178ba0]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.140085be0
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x140178ba0]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.1400d3360
ud2
Function at 0x1400d3ed0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1401190c0]
test ecx, ecx
je 0x1400d3f96
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400d3efd
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x1400d3f90
mov ecx, dword [0x1401190c0]
test ecx, ecx
je 0x1400d3fb8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400d3fd5
mov rsi, rax
test rax, rax
jne 0x1400d3f8a
movzx eax, byte [0x1401891c0]
mov rcx, qword [0x140189110]
test rcx, rcx
jne 0x1400d3f4f
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400d3ff0
mov rcx, rax
mov qword [0x140189110], rax
mov r8d, 0x10
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400d3ff0
mov rsi, rax
lea rax, [0x1401190a8]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1401190c0]
test ecx, ecx
je 0x1400d3fe0
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x1400d3fd7
lea rcx, [0x1401190a8]
call fcn.1400d3180
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400d3ef0
jmp 0x1400d3efd
lea rcx, [0x1401190a8]
call fcn.1400d3180
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400d3f1c
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401190a8]
call fcn.1400d3180
mov ecx, eax
jmp 0x1400d3f82
mov ecx, 8
mov edx, 0x10
call fcn.140083160
ud2
Function at 0x1400d4c50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140119080]
test ecx, ecx
je 0x1400d4c7d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400d4c96
cmp qword [rax + 8], 0
je 0x1400d4c96
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140119068]
call fcn.1400d3180
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400d4c6c
mov ecx, dword [0x140119080]
test ecx, ecx
je 0x1400d4d41
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400d4d5e
mov rsi, rax
test rax, rax
jne 0x1400d4d23
movzx eax, byte [0x1401891c0]
mov rcx, qword [0x140189110]
test rcx, rcx
jne 0x1400d4ce8
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400d4d76
mov rcx, rax
mov qword [0x140189110], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400d4d76
mov rsi, rax
lea rax, [0x140119068]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140119080]
test ecx, ecx
je 0x1400d4d66
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140119068]
call fcn.1400d3180
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400d4cb5
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140119068]
call fcn.1400d3180
mov ecx, eax
jmp 0x1400d4d1b
mov ecx, 8
mov edx, 0x20
call fcn.140083160
ud2

Function at 0x1400d8bd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, rdx
movzx r9d, byte [rdx + 0x38]
movzx r8d, byte [rdx + 0x3a]
xor edx, edx
cmp r9b, 1
ja 0x1400d8c3b
movzx r10d, byte [rax + 0x10]
movzx r11d, r10b
test r8b, r8b
jne 0x1400d8d98
cmp r10b, 5
jb 0x1400d8d98
mov r10, qword [rax]
mov rdx, qword [rax + 8]
xor esi, esi
test r9b, r9b
jne 0x1400d8c2b
cmp r11b, 6
je 0x1400d8c2b
mov esi, 2
cmp rdx, 2
jb 0x1400d8e42
cmp rsi, rdx
jne 0x1400d8d58
xor edx, edx
jmp 0x1400d8d98
xor r10d, r10d
add rdx, r10
lea rdi, [r10 + rsi]
inc rdi
cmp rdi, rdx
sete dl
xchg esp, eax
ret 0xf45
mov dh, 0x14
invalid
test dl, 1
jne 0x1400d8d8d
cmp r10b, 0x2e
jne 0x1400d8d8d
movzx edx, byte [rdi]
cmp dl, 0x5c
cmp r10b, 0x2e
sete r10b
lea r8, [0x140150478]
mov ecx, 2
call fcn.140085c20
ud2