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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140102700]
cmp rdi, 1
jbe 0x14003559d
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140035586
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rcx, qword [rsi]
test rcx, rcx
je 0x140035595
lock sub dword [rcx + 8], 1
je 0x1400355f2
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140102700]
int3
add rcx, 8
add rcx, 0xfffffffffffffff8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140035610

Function at 0x1400359e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov qword [rcx], rdx
test rdx, rdx
je 0x1400359f6
lock inc dword [rdx + 8]
mov qword [rsi + 8], rdx
mov rdi, qword [0x140102700]
cmp rdi, 1
jbe 0x140035a85
lea rbx, [rsi + 8]
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140035b1b
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rbx
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rdi, qword [0x140102690]
cmp rdi, 1
jbe 0x140035ad2
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140035b2e
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140102700]
int3
lea rcx, [0x140102690]
int3
test rbx, rbx
je 0x140035a3a
call fcn.1400065a0
jmp 0x140035a21
test rsi, rsi
je 0x140035a7a
call fcn.1400065a0
jmp 0x140035a61

Function at 0x1400367c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x1401040d0]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140036822
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14003685e
movsxd rcx, dword [0x1401040c8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1401040cc]
jne 0x14003685e
mov rax, qword [rax + rcx]
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401040d0]
int3
xor eax, eax
jmp 0x140036816
Function at 0x14003d100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
sub rsp, 0x130
mov rax, qword [0x1400f9028]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov r9, qword [rcx + 8]
mov rsi, 0xffffffffffffffff
cmp r9, r8
jbe 0x14003d23e
mov r11, qword [rdx + 8]
cmp r11, 1
je 0x14003d26b
test r11, r11
je 0x14003d23b
xorps xmm0, xmm0
movaps xmmword [rsp + 0x110], xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov rdx, qword [rdx]
lea rsi, [r11 - 1]
mov r10d, r11d
and r10d, 3
cmp rsi, 3
jae 0x14003d1ce
xor esi, esi
jmp 0x14003d210
and r11, 0xfffffffffffffffc
xor esi, esi
nop word cs:[rax + rax]
nop
movzx eax, byte [rdx + rsi]
mov byte [rsp + rax + 0x20], 1
movzx eax, byte [rdx + rsi + 1]
mov byte [rsp + rax + 0x20], 1
movzx eax, byte [rdx + rsi + 2]
mov byte [rsp + rax + 0x20], 1
movzx eax, byte [rdx + rsi + 3]
mov byte [rsp + rax + 0x20], 1
add rsi, 4
cmp r11, rsi
jne 0x14003d1e0
test r10, r10
je 0x14003d22c
add rdx, rsi
xor eax, eax
movzx esi, byte [rdx + rax]
mov byte [rsp + rsi + 0x20], 1
add rax, 1
cmp r10, rax
jne 0x14003d21a
mov rax, qword [rcx]
movzx ecx, byte [rax + r8]
cmp byte [rsp + rcx + 0x20], 0
jne 0x14003d25a
mov rsi, r8
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.140065120
mov rax, rsi
add rsp, 0x130
pop rsi
ret
inc r8
cmp r9, r8
jne 0x14003d22f
mov r8, 0xffffffffffffffff
jmp 0x14003d23b
mov rax, qword [rdx]
mov al, byte [rax]
mov rcx, qword [rcx]
cmp byte [rcx + r8], al
jne 0x14003d23b
inc r8
cmp r9, r8
jne 0x14003d273
jmp 0x14003d23e
Function at 0x14003d290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x128
mov rax, qword [0x1400f9028]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r14, qword [rcx + 8]
test r14, r14
je 0x14003d3f1
add r14, 0xffffffffffffffff
cmp r14, r8
jae 0x14003d453
mov rsi, qword [rdx + 8]
cmp rsi, 1
je 0x14003d3fa
test rsi, rsi
je 0x14003d3d1
xorps xmm0, xmm0
movaps xmmword [rsp + 0x110], xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov rax, qword [rdx]
lea rdi, [rsi - 1]
mov edx, esi
and edx, 3
cmp rdi, 3
jae 0x14003d366
xor edi, edi
jmp 0x14003d3a0
and rsi, 0xfffffffffffffffc
xor edi, edi
nop dword [rax]
movzx ebx, byte [rax + rdi]
mov byte [rsp + rbx + 0x20], 1
movzx ebx, byte [rax + rdi + 1]
mov byte [rsp + rbx + 0x20], 1
movzx ebx, byte [rax + rdi + 2]
mov byte [rsp + rbx + 0x20], 1
movzx ebx, byte [rax + rdi + 3]
mov byte [rsp + rbx + 0x20], 1
add rdi, 4
cmp rsi, rdi
jne 0x14003d370
test rdx, rdx
je 0x14003d3bc
add rax, rdi
xor edi, edi
movzx esi, byte [rax + rdi]
mov byte [rsp + rsi + 0x20], 1
add rdi, 1
cmp rdx, rdi
jne 0x14003d3aa
mov rcx, qword [rcx]
movzx eax, byte [rcx + r14]
cmp byte [rsp + rax + 0x20], 0
jne 0x14003d42c
mov rax, r14
mov r14, rax
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140065120
mov rax, r14
add rsp, 0x128
pop rbx
pop rdi
pop rsi
pop r14
ret
mov r14, 0xffffffffffffffff
jmp 0x14003d3d1
mov rax, qword [rdx]
mov al, byte [rax]
mov rdi, qword [rcx]
inc r14
mov rdx, r14
mov cl, byte [rdi + rdx - 1]
lea r14, [rdx - 1]
cmp cl, al
jne 0x14003d41d
cmp rdx, 1
mov rdx, r14
jne 0x14003d408
cmp cl, al
mov rax, 0xffffffffffffffff
cmove r14, rax
jmp 0x14003d3d1
mov rax, r14
sub rax, 1
jb 0x14003d447
movzx edx, byte [rcx + r14 - 1]
cmp byte [rsp + rdx + 0x20], 0
mov r14, rax
je 0x14003d3ce
jmp 0x14003d42f
mov rax, 0xffffffffffffffff
jmp 0x14003d3ce
mov r14, r8
jmp 0x14003d2c8
Function at 0x140042b00
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x1400f9028]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [rcx + 0x18], 0
je 0x140042bc1
mov eax, dword [0x1401041d0]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140042c25
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [0x1401041d0]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140042c68
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140042bb5
movsxd rcx, dword [0x1401041c8]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x1401041cc]
movsxd rdx, dword [0x1401041c8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rbx, qword [rsi]
mov rdi, qword [rsi + 8]
cmp rbx, rdi
jne 0x140042bdf
cmp qword [rsi], 0
jne 0x140042c13
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140065120
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
lea r14, [rsp + 0x28]
mov r9, qword [rbx + 0x30]
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0x28], rax
mov qword [rbx + 0x28], 0
mov rax, qword [rcx]
lea rdx, [rbx + 8]
mov r8, r14
call qword [rax]
add rbx, 0x38
cmp rbx, rdi
je 0x140042bc1
jmp 0x140042be4
mov rcx, rsi
int3
lea rcx, [0x1401041d0]
int3
lea rcx, [0x1401041d0]
int3

Function at 0x14004da50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004da8e
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x14004da87
call fcn.1400065a0
jmp 0x14004da6e

Function at 0x14004fda0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004fdd4
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14004fdd4
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x14004fdce
Function at 0x14005e4e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
sub rsp, 0x128
mov rax, qword [0x1400f9028]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r10, qword [rcx + 8]
mov rdi, 0xffffffffffffffff
test r10, r10
je 0x14005e53c
mov rsi, qword [rdx + 8]
cmp rsi, 1
jne 0x14005e559
sub r10, r8
jbe 0x14005e53c
mov rdx, qword [rdx]
movsx edx, byte [rdx]
mov rsi, qword [rcx]
add r8, rsi
mov rcx, r8
mov r8, r10
call fcn.140066f20
test rax, rax
je 0x14005e53c
sub rax, rsi
mov rdi, rax
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140065120
mov rax, rdi
add rsp, 0x128
pop rdi
pop rsi
ret
test rsi, rsi
je 0x14005e53c
xorps xmm0, xmm0
movaps xmmword [rsp + 0x110], xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov rdx, qword [rdx]
lea rdi, [rsi - 1]
mov r9d, esi
and r9d, 3
cmp rdi, 3
jae 0x14005e5e7
xor edi, edi
jmp 0x14005e620
and rsi, 0xfffffffffffffffc
xor edi, edi
nop dword [rax]
movzx eax, byte [rdx + rdi]
mov byte [rsp + rax + 0x20], 1
movzx eax, byte [rdx + rdi + 1]
mov byte [rsp + rax + 0x20], 1
movzx eax, byte [rdx + rdi + 2]
mov byte [rsp + rax + 0x20], 1
movzx eax, byte [rdx + rdi + 3]
mov byte [rsp + rax + 0x20], 1
add rdi, 4
cmp rsi, rdi
jne 0x14005e5f0
test r9, r9
je 0x14005e63c
add rdx, rdi
xor edi, edi
movzx esi, byte [rdx + rdi]
mov byte [rsp + rsi + 0x20], 1
add rdi, 1
cmp r9, rdi
jne 0x14005e62a
mov rdi, 0xffffffffffffffff
cmp r10, r8
jbe 0x14005e53c
mov rcx, qword [rcx]
nop
movzx eax, byte [rcx + r8]
cmp byte [rsp + rax + 0x20], 0
jne 0x14005e66a
add r8, 1
cmp r10, r8
jne 0x14005e650
jmp 0x14005e53c
mov rdi, r8
jmp 0x14005e53c

Function at 0x14005f1b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rdi
mov r9, qword [rcx]
mov r10, qword [rcx + 8]
mov r8, r10
sub r8, r9
je 0x14005f23f
mov rax, r8
shr rax, 2
mov rdx, r9
not rdx
add rdx, r10
jne 0x14005f1d7
xor edx, edx
jmp 0x14005f21c
mov r10, r8
and r10, 0xfffffffffffffffe
xor edx, edx
lea r11, [0x1400e88b0]
nop word [rax + rax]
movzx esi, al
movzx edi, byte [r9 + rdx]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
movzx esi, al
movzx edi, byte [r9 + rdx + 1]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
add rdx, 2
cmp r10, rdx
jne 0x14005f1f0
test r8b, 1
je 0x14005f239
movzx edi, al
movzx edx, byte [r9 + rdx]
xor edx, edi
lea rdi, [0x1400e88b0]
shr eax, 8
xor eax, dword [rdi + rdx*4]
mov dword [rcx + 0x18], eax
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x14005f239
Function at 0x14005f790
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov edi, dword [0x140100ce4]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test esi, esi
jne 0x14005f7bd
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14005f7b3

Function at 0x140060240
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov qword [rcx], rdx
mov rdi, qword [0x140102700]
cmp rdi, 1
jbe 0x140060290
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400602d6
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140102700]
call fcn.14003b3c0
test al, al
je 0x1400602e2
mov qword [0x140102708], 0
lea rbx, [0x140102700]
lea rdi, [0x140102708]
mov rcx, rdi
xor edx, edx
call fcn.140035760
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14003b330
jmp 0x14006025a
test rsi, rsi
je 0x140060285
call fcn.1400065a0
jmp 0x14006026c
mov rdi, qword [0x140102700]
jmp 0x14006025a

Function at 0x1400602f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov byte [rcx], dl
mov rdi, qword [0x140102710]
cmp rdi, 1
jbe 0x14006033f
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140060385
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140102710]
call fcn.14003b3c0
test al, al
je 0x140060391
mov qword [0x140102718], 0
lea rbx, [0x140102710]
lea rdi, [0x140102718]
mov rcx, rdi
xor edx, edx
call fcn.140035760
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14003b330
jmp 0x140060309
test rsi, rsi
je 0x140060334
call fcn.1400065a0
jmp 0x14006031b
mov rdi, qword [0x140102710]
jmp 0x140060309

Function at 0x1400603a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140102710]
cmp rsi, 1
jbe 0x1400603e9
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400603e2
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140102710]
call fcn.14003b3c0
test al, al
je 0x14006042f
mov qword [0x140102718], 0
lea rdi, [0x140102710]
lea rsi, [0x140102718]
mov rcx, rsi
xor edx, edx
call fcn.140035760
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14003b330
jmp 0x1400603b3
mov rsi, qword [0x140102710]
jmp 0x1400603b3
Function at 0x1400612c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x1401041c0]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140061325
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140061361
movsxd rcx, dword [0x1401041b8]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x1401041bc]
movsxd rdx, dword [0x1401041b8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401041c0]
int3
test rsi, rsi
je 0x14006131f
call fcn.1400065a0
jmp 0x1400612fb

Function at 0x140061390
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [rdx]
mov dword [rcx], eax
mov eax, 1
lock xadd dword [0x140104194], eax
mov dword [rcx + 4], eax
mov eax, dword [0x140104190]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140061479
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400614ff
movsxd rcx, dword [0x140104188]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x14010418c]
movsxd rdx, dword [0x140104188]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov eax, dword [0x1401041a0]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400614bc
lea rdi, [rsi + 4]
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140061512
movsxd rcx, dword [0x140104198]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [0x14010419c]
movsxd rdx, dword [0x140104198]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140104190]
int3
lea rcx, [0x1401041a0]
int3
test rsi, rsi
je 0x14006140c
call fcn.1400065a0
jmp 0x1400613e8
test rdi, rdi
je 0x14006146f
call fcn.1400065a0
jmp 0x14006144b

Function at 0x140061530
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [0x1401041a8]
cmp rbx, 1
jbe 0x140061584
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400615ca
movsxd rcx, dword [rbx]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rbx + 4]
movsxd rdx, dword [rbx]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1401041a8]
call fcn.14003b3c0
test al, al
je 0x1400615d6
mov qword [0x1401041b0], 0
lea r14, [0x1401041a8]
lea rbx, [0x1401041b0]
mov rcx, rbx
xor edx, edx
call fcn.140035760
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9, r14
call fcn.14003b330
jmp 0x14006154c
test rdi, rdi
je 0x140061577
call fcn.1400065a0
jmp 0x14006155e
mov rbx, qword [0x1401041a8]
jmp 0x14006154c
Function at 0x1400615f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x1401041a8]
cmp rsi, 1
jbe 0x140061639
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140061632
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1401041a8]
call fcn.14003b3c0
test al, al
je 0x14006167f
mov qword [0x1401041b0], 0
lea rdi, [0x1401041a8]
lea rsi, [0x1401041b0]
mov rcx, rsi
xor edx, edx
call fcn.140035760
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14003b330
jmp 0x140061603
mov rsi, qword [0x1401041a8]
jmp 0x140061603

Function at 0x1400616f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140104190]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400617b7
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140061753
movsxd rcx, dword [0x140104188]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x14010418c]
movsxd rdx, dword [0x140104188]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov eax, dword [0x1401041a0]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400617fa
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
and eax, 0xfffffffc
je 0x1400617b2
movsxd rcx, dword [0x140104198]
shl rcx, 4
mov qword [rax + rcx], 0
sar bh, 0x7f
invalid
push rax
adc eax, dword [rcx]
add byte [rax + 0x20], 0x90
pop rbp
invalid
and byte [rax + 0x4992625d], dl
and al, 0x92
leave
in al, 0x6f
cli
jle 0x140061785
fucompi st(7)
idiv ebx
jl 0x14006182e
or dword [rax - 0x71d724b], esp
cld
hlt
out 4, al
jbe 0x14006187c
push 0xffffffff9e8189e7
sbb al, 0xd0
mov ebx, 0x4830b72e
invalid
xchg esi, eax
xchg ecx, eax
jle 0x14006189b
jbe 0x1400618b1
mov dh, 0
pop rsp
fidivr word [rsi]
test byte [r9 + 0x51], 0xe1
sub al, 0x56
and dword [rbx], edi
sub ah, dh
sub eax, 0xd125d0cc
sub dword [rsi + 0x77], ebx
in al, dx
and byte [rax + 0x7e], ah
jo 0x1400618a6
add ch, dl
and eax, 0xd80dbed2
jmp 0x141c5b0be
sub al, 0x45
in al, dx
add cl, byte [rbx - 3]
sub eax, 0xb1c252f3
sbb bl, bl
invalid
or esi, dword [rdi - 0x2afb7750]
mov eax, 0x83698402
xor al, byte [rdi - 7]
div qword [rdi - 0x2bc36f78]
mov dl, 0xa
mov bh, 0xb0
mov byte [rdx*2 + 0x71b46278], al
or dh, byte [rdi + 0x550488b0]
js 0x14006191b
mov ah, 0x71
invalid
xchg edi, eax
mov eax, 0xd53b1b82
sub eax, esi
and ebp, edx
hlt
Function at 0x140063e7c
Capabilities:
Encode data using xor

Disassembly:
push rbp
hlt
pop rbp
xchg dword [rsi - 0xd], edx
push rcx
test dword [rbx + 0x7b], eax
mov ebp, ebp
jne 0x140063ee8
cdq
cmp bh, byte cs:[rsp + riz*4]
cmc
pop rdi
lodsd eax, dword [rsi]
out 0x5e, al
sbb bh, byte [0x146294e23]
and eax, dword [rsi]
fcmovnb st(0), st(0)
imul dword [rdx]
sbb edi, dword [rax]
test dh, 0xb7
cdq
stc
xor al, 0xbd
jae 0x140063e96
cwde
movabs al, byte [0x3c2e0d4113264c59]
js 0x140063e50
int3
xor bl, byte [rcx - 0x762c1efb]
hlt

Function at 0x140065b0d
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x140065b2b
je 0x140065b36
call 0x140065b85
mov bl, 0xc7
lahf
pop rsi
jne 0x140065b16
call 0x140065b2e
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x140065b16
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x140065b64
je 0x140065ba2
invalid
je 0x140065bb3
jne 0x140065b16
lea rax, [0x140065a3c]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x14006179d]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x140065c54
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x140065cad
je 0x140065cb3
call 0x140065ca4
fild qword [rdi - 0x7c]
jmp 0x174fa2426
jne 0x140065c76
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x140065c36
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret