joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140054034
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x1400bde10]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x14005408a
cmp word [rdx], r9w
jne 0x14005408a
or byte [rax + rbp*8 + 0x38], 4
jmp 0x14005408f
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x14005420e
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x1400541d9
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x1400540d7
cmp rcx, r8
jae 0x1400540f7
cmp word [rcx], r9w
jne 0x1400540d7
add rax, 4
mov edx, r9d
jmp 0x1400540da
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x1400540ac
jmp 0x14005420e
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400541d2
cmp dword [rsp + 0x80], edi
je 0x1400541d2
lea r9, [0x1400bde10]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x1400541ac
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x14005415f
mov word [rbx], bp
jmp 0x14005420b
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x14005417a
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x14005420b
cmp word [rsp + 0x70], bp
jne 0x1400541b8
cmp rbx, rsi
je 0x140054157
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140054d54
cmp word [rsp + 0x70], bp
je 0x14005420e
mov word [rbx], 0xd
jmp 0x14005420b
mov rcx, r15
lea r9, [0x1400bde10]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140054208
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14005420e
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400570c4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400570f4
xor eax, eax
jmp 0x1400571b7
mov rbp, rbx
cmp word [rax], si
je 0x140057119
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140057100
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400570fc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140055004
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14005715a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400570ed
call fcn.14004ec80
mov rdi, rax
test rax, rax
jne 0x140057170
xor ecx, ecx
call fcn.14004d900
jmp 0x14005714f
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140055004
test eax, eax
jne 0x1400571a1
mov rcx, rdi
call fcn.14004d900
jmp 0x1400571ab
xor ecx, ecx
call fcn.14004d900
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400571d4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14005725b
mov rsi, rbx
cmp word [rax], bp
je 0x14005721a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140057204
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140057200
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004ec80
mov rdi, rax
test rax, rax
je 0x140057248
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14005f6d0
mov rbp, rdi
xor ecx, ecx
call fcn.14004d900
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005a60c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x14005a67f
cmp word [rcx], si
je 0x14005a67f
lea rdx, [0x14006c9d8]
call fcn.14003bd9c
test eax, eax
je 0x14005a67f
lea rdx, [0x14006c9f0]
mov rcx, rbx
call fcn.14003bd9c
test eax, eax
jne 0x14005a675
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14005a69c
mov eax, dword [rsp + 0x30]
jmp 0x14005a6ae
mov rcx, rbx
call fcn.14004d240
jmp 0x14005a6ae
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x14005a6a0
xor eax, eax
jmp 0x14005a6ae
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14005a6ae
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14005a6c0
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.14004d74c
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14005a763
cmp edi, dword [rsp + 0x30]
je 0x14005a75c
test ebp, ebp
je 0x14005a75c
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x14005a738
sub dx, 0x61
cmp dx, 0x19
ja 0x14005a744
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x14005a725
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x14005a748
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x14005a765
mov eax, 1
jmp 0x14005a765
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14005d5c0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400442c8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14005d64a
cmp byte [rbp - 0x21], r15b
je 0x14005d645
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14005d680
call fcn.14004dc90
test eax, eax
jne 0x14005d66c
cmp byte [rbp - 0x21], r15b
je 0x14005d664
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14005d680
cmp byte [rbp - 0x21], r15b
je 0x14005d67d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140046fb4
test eax, eax
jne 0x14005d720
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400442c8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14005d6bf
cmp byte [rbp - 0x21], r15b
je 0x14005d6f4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14005d6f4
call fcn.14004dc90
test eax, eax
jne 0x14005d6e0
cmp byte [rbp - 0x21], r15b
je 0x14005d6d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14005d6f4
cmp byte [rbp - 0x21], r15b
je 0x14005d6f1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140046fb4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14005d720
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14005d723
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14005d731
mov rcx, rdi
call fcn.14004d900
cmp byte [rbp + 0x3f], r15b
je 0x14005d740
mov rcx, qword [rbp + 0x27]
call fcn.14004d900
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14005f260
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005f288
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005f288
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001450
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov esi, dword [0x14004e098]
test esi, esi
je 0x1400014f7
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400014ea
je 0x1400014e8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm6, xmmword [rsp + 0x20]
movzx eax, byte [0x14005e030]
mov ecx, 0x18
call fcn.1400480a0
test rax, rax
je 0x140001518
movups xmmword [rax], xmm6
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x1400014e3
mov rcx, qword [0x14005e100]
xor edx, edx
mov r8, rdi
call fcn.14004b76c
mov rax, rsi
jmp 0x1400014ea
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14004e080]
call fcn.1400160d0
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140001479
jmp 0x1400014ea
mov ecx, 8
mov edx, 0x18
call fcn.140003e20
int3
Function at 0x14000aac0
Capabilities:
Send data
Send data on socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14000ab18
mov rdi, r8
mov rbx, rdx
mov r14, qword [rcx]
lea rsi, str.failed_to_write_whole_buffer
nop
cmp rdi, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rdi
mov rcx, r14
mov rdx, rbx
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x14000ab1c
test eax, eax
je 0x14000ab2b
movsxd rcx, eax
cmp rdi, rcx
jb 0x14000ab38
add rbx, rcx
sub rdi, rcx
jne 0x14000aae0
xor esi, esi
jmp 0x14000ab2b
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea r8, str._rustc_f6e511eec7342f59a25f7c0534f1dbea00d01b14library_std_srciomod.rs
mov rdx, rdi
call fcn.140004480
int3

Function at 0x14000ad80
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 0x14000adc2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x14000adca
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14000addb
jmp 0x14000adf2
xor r10d, r10d
jmp 0x14000ae7d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x14000adf2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x14000ae09
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 0x14000ae29
add r11, r8
jmp 0x14000af59
mov rcx, qword [rax + 0x18]
xor rcx, rsi
mov rdi, qword [rax + 0x10]
mov r9, qword [rax]
add r9, rdi
mov r11, qword [rax + 8]
add r11, rcx
rol rdi, 0xd
xor rdi, r9
rol rcx, 0x10
rol r9, 0x20
xor rcx, r11
add r11, rdi
rol rdi, 0x11
add r9, rcx
xor rdi, r11
rol rcx, 0x15
mov qword [rax + 0x10], rdi
xor rcx, r9
rol r11, 0x20
mov qword [rax + 0x18], rcx
mov qword [rax + 8], r11
xor r9, rsi
mov qword [rax], r9
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x14000aef2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
mov rbx, qword [rdx + r10]
xor rdi, rbx
add rcx, rsi
rol rsi, 0xd
add r9, rdi
xor rsi, rcx
rol rdi, 0x10
xor rdi, r9
rol rcx, 0x20
add r9, rsi
add rcx, rdi
rol rsi, 0x11
xor rsi, r9
rol rdi, 0x15
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x14000aea0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x14000af0f
mov r9d, dword [rdx + r10]
mov r8d, 4
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jb 0x14000af20
jmp 0x14000af3b
xor r9d, r9d
xor r8d, r8d
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jae 0x14000af3b
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8d, r11d
jae 0x14000af55
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 0x14000ffb0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000ffd5
cmp rax, rcx
je 0x14000ffdb
cmp rdx, 4
jae 0x14000ffdf
xor eax, eax
xor r8d, r8d
jmp 0x140010070
pop rbp
jmp fcn.140004950
xor eax, eax
pop rbp
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14004f400]
movdqa xmm3, xmmword [0x14004f410]
pxor xmm1, xmm1
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 0x140010000
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140010087
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140010070
pop rbp
ret
Function at 0x140015e30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x14004e0b8]
test esi, esi
je 0x140015ed7
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140015ece
je 0x140015e79
test rdi, rdi
je 0x140015e7d
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x140015e7f
mov rbx, qword [rdi + 8]
jmp 0x140015e7f
xor eax, eax
jmp 0x140015ece
xor ebx, ebx
movzx eax, byte [0x14005e030]
mov ecx, 0x10
call fcn.1400480a0
test rax, rax
je 0x140015ef8
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140015ecb
mov rcx, qword [0x14005e100]
xor edx, edx
mov r8, rdi
call fcn.14004b76c
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14004e0a0]
call fcn.1400160d0
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140015e5d
jmp 0x140015ece
mov ecx, 8
mov edx, 0x10
call fcn.140003e20
int3

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x14004e0d8]
test esi, esi
je 0x140015fb6
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140015fad
je 0x140015fab
movzx eax, byte [0x14005e030]
mov ecx, 0x10
call fcn.1400480a0
test rax, rax
je 0x140015fd7
mov qword [rax], 0
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140015fa6
mov rax, qword [rdi]
test rax, rax
je 0x140015f95
lock dec qword [rax]
jne 0x140015f95
mov rcx, qword [rdi]
call fcn.140013c10
mov rcx, qword [0x14005e100]
xor edx, edx
mov r8, rdi
call fcn.14004b76c
mov rax, rsi
jmp 0x140015fad
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14004e0c0]
call fcn.1400160d0
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140015f3a
jmp 0x140015fad
mov ecx, 8
mov edx, 0x10
call fcn.140003e20
int3
Function at 0x1400160d0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
cmp qword [rcx], 0
je 0x140016165
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rbp - 4], eax
cmp eax, 1
jne 0x1400161a4
cmp dword [rbp], 0
je 0x140016188
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400161c7
mov edi, eax
mov rax, qword [0x140061038]
mov rax, qword [0x14005e108]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14005e108], rsi
jne 0x140016140
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140016199
call sub.KERNEL32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x140016209
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14001618d
mov edi, dword [rbp + 4]
jmp 0x140016199
mov edi, dword [rsi + 0x18]
jmp 0x140016197
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x38], 0
lea rdx, [0x140055d80]
lea r9, str.std_src_sys_thread_localkeywindows.rs
lea rcx, [rbp - 4]
lea r8, [rbp - 0x38]
call fcn.140016240
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rdx, str.std_src_sys_thread_localkeywindows.rs
lea rcx, [rbp - 0x38]
call fcn.140004680
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x38]
call fcn.140016280
int3

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x14004e058]
test esi, esi
je 0x140016bec
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140016be3
je 0x140016be1
movzx eax, byte [0x14005e030]
mov ecx, 0x18
call fcn.1400480a0
test rax, rax
je 0x140016c0d
mov qword [rax], 0
mov byte [rax + 8], 0
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140016bdc
mov rcx, qword [0x14005e100]
xor edx, edx
mov r8, rdi
call fcn.14004b76c
mov rax, rsi
jmp 0x140016be3
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14004e040]
call fcn.1400160d0
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140016b86
jmp 0x140016be3
mov ecx, 8
mov edx, 0x18
call fcn.140003e20
int3
Function at 0x140038ad0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rbx, rdx
mov qword [rbp - 0x20], rcx
movzx eax, byte [rdx + 0x18]
mov byte [rbp + 7], al
mov byte [rdx + 0x18], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 2
mov qword [rbp - 8], 0
movzx r15d, word [rdx + 0x10]
mov rsi, qword [rdx]
mov r12, qword [rdx + 8]
mov eax, 2
xor edi, edi
xor r13d, r13d
mov r14d, r15d
test r15w, r15w
je 0x140038b6b
jmp 0x140038c80
shl edx, 6
or edx, r9d
mov r14d, edx
xor r15d, r15d
mov rsi, rcx
cmp r14w, 0x22
jne 0x140038c33
xor r13b, 1
mov r14d, r15d
test r15w, r15w
jne 0x140038c80
cmp rsi, r12
je 0x140038c92
lea rcx, [rsi + 1]
mov qword [rbx], rcx
movzx r14d, byte [rsi]
test r14b, r14b
jns 0x140038b49
mov edx, r14d
and edx, 0x1f
lea rcx, [rsi + 2]
mov qword [rbx], rcx
movzx r9d, byte [rsi + 1]
and r9d, 0x3f
cmp r14b, 0xdf
jbe 0x140038b40
lea rcx, [rsi + 3]
mov qword [rbx], rcx
movzx r8d, byte [rsi + 2]
shl r9d, 6
and r8d, 0x3f
or r8d, r9d
cmp r14b, 0xf0
jb 0x140038bec
lea rcx, [rsi + 4]
mov qword [rbx], rcx
movzx r14d, byte [rsi + 3]
and edx, 7
shl edx, 0x12
shl r8d, 6
and r14d, 0x3f
or r14d, r8d
or r14d, edx
cmp r14d, 0xffff
jbe 0x140038b49
jmp 0x140038c02
shl edx, 0xc
or r8d, edx
mov r14d, r8d
cmp r14d, 0xffff
jbe 0x140038b49
lea edx, [r14 + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov word [rbx + 0x10], r14w
mov rsi, rcx
mov r15d, r14d
mov r14d, edx
jmp 0x140038b4f
movzx ecx, r14w
cmp ecx, 0x3b
jne 0x140038c4a
test r13b, 1
je 0x140038c8e
mov r13b, 1
mov r14w, 0x3b
cmp rdi, qword [rbp - 0x18]
jne 0x140038c5d
lea rcx, [rbp - 0x18]
call fcn.140037a90
mov rax, qword [rbp - 0x10]
mov word [rax + rdi*2], r14w
inc rdi
mov qword [rbp - 8], rdi
mov r14d, r15d
test r15w, r15w
je 0x140038b6b
nop word cs:[rax + rax]
mov word [rbx + 0x10], 0
xor r15d, r15d
jmp 0x140038b4f
mov byte [rbx + 0x18], 1
test rdi, rdi
setne al
or byte [rbp + 7], al
je 0x140038cd8
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x40]
mov r8, rdi
call fcn.140018790
movups xmm0, xmmword [rbp - 0x40]
movups xmm1, xmmword [rbp - 0x30]
mov rax, qword [rbp - 0x20]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
cmp qword [rbp - 0x18], 0
jne 0x140038cf0
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movabs rax, 0x8000000000000000
mov rcx, qword [rbp - 0x20]
mov qword [rcx], rax
cmp qword [rbp - 0x18], 0
je 0x140038cc7
mov r8, qword [rbp - 0x10]
mov rcx, qword [0x14005e100]
xor edx, edx
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.14004b76c