joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800225b0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, rcx
lea rdi, [rsp + 0x28]
mov rcx, rdi
call fcn.180045550
mov rcx, rdi
call sub.kernel32.dll_GetSystemInfo
movzx eax, word [rsp + 0x28]
cmp rax, 0xe
ja case.0x1800225eb.4
lea rcx, [0x1803542d4]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ecx, 3
mov edx, 1
call fcn.18000a890
test rax, rax
je 0x180022843
mov byte [rax + 2], 0x6d
mov word [rax], 0x7261
jmp 0x1800226e7
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ecx, 4
mov edx, 1
call fcn.18000a890
test rax, rax
je 0x180022834
mov dword [rax], 0x32336169
jmp 0x180022751
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ecx, 5
mov edx, 1
call fcn.18000a890
test rax, rax
je 0x180022852
mov byte [rax + 4], 0x61
mov dword [rax], 0x68706c61
jmp 0x1800226a4
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ecx, 5
mov edx, 1
call fcn.18000a890
test rax, rax
je 0x180022852
mov byte [rax + 4], 0x34
mov dword [rax], 0x366d7261
mov qword [rsi], 5
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 5
jmp 0x18002282a
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ecx, 3
mov edx, 1
call fcn.18000a890
test rax, rax
je 0x180022843
mov byte [rax + 2], 0x36
mov word [rax], 0x3878
mov qword [rsi], 3
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 3
jmp 0x18002282a
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ecx, 4
mov edx, 1
call fcn.18000a890
test rax, rax
je 0x180022834
mov dword [rax], 0x7370696d
jmp 0x180022751
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ecx, 4
mov edx, 1
call fcn.18000a890
test rax, rax
je 0x180022834
mov dword [rax], 0x34366169
mov qword [rsi], 4
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 4
jmp 0x18002282a
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ecx, 7
mov edx, 1
call fcn.18000a890
test rax, rax
je 0x180022861
mov dword [rax + 3], 0x34366168
mov dword [rax], 0x68706c61
jmp 0x1800227c9
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ecx, 7
mov edx, 1
call fcn.18000a890
test rax, rax
je 0x180022861
mov dword [rax + 3], 0x63707265
mov dword [rax], 0x65776f70
mov qword [rsi], 7
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 7
jmp 0x18002282a
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ecx, 6
mov edx, 1
call fcn.18000a890
test rax, rax
je 0x180022870
mov word [rax + 4], 0x3436
mov dword [rax], 0x5f363878
mov qword [rsi], 6
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 6
jmp 0x18002282a
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x58
pop rdi
pop rsi
ret
mov ecx, 1
mov edx, 4
call fcn.1800debd0
mov ecx, 1
mov edx, 3
call fcn.1800debd0
mov ecx, 1
mov edx, 5
call fcn.1800debd0
mov ecx, 1
mov edx, 7
call fcn.1800debd0
mov ecx, 1
mov edx, 6
call fcn.1800debd0
int3
Function at 0x180025c30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
mov rcx, qword [0x180104328]
jmp 0x180015940

Function at 0x180027390
Capabilities:
List user account groups

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rdi, qword [rcx + 8]
mov rbx, qword [rcx + 0x10]
mov qword [rcx + 0x10], 0
test rbx, rbx
je 0x1800273f2
add rdi, 8
jmp 0x1800273d9
add rdi, 0x20
dec rbx
je 0x1800273f2
mov rdx, qword [rdi - 8]
test rdx, rdx
je 0x1800273d0
mov rcx, qword [rdi]
mov r8d, 1
call fcn.18000a8a0
jmp 0x1800273d0
movabs rdi, 0x8000000000000000
mov qword [rsp + 0x68], 0
lea r14, [rsp + 0x40]
lea r15, [rsp + 0x78]
nop
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x5c], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
xor ecx, ecx
xor edx, edx
lea r8, [rsp + 0x38]
mov r9d, 0xffffffff
call sub.netapi32.dll_NetGroupEnum
test eax, eax
je 0x18002746a
cmp eax, 0xea
jne 0x180027616
mov r13, qword [rsp + 0x38]
mov ebp, dword [rsp + 0x4c]
test rbp, rbp
je 0x1800275f9
mov dword [rsp + 0x58], eax
shl rbp, 3
xor ebx, ebx
jmp 0x18002749d
add rbx, 8
cmp rbp, rbx
je 0x1800275f0
mov rdx, qword [r13 + rbx]
test rdx, rdx
je 0x180027490
mov qword [rsp + 0x40], 0
xor ecx, ecx
mov r8d, 3
mov r9, r14
call sub.netapi32.dll_NetGroupGetInfo
test eax, eax
jne 0x1800275d0
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x10]
mov rcx, r15
call fcn.180015050
mov rax, qword [rsp + 0x78]
cmp rax, rdi
je 0x1800275d0
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov rax, qword [r13 + rbx]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x180027556
lea rcx, [rsp + 0x90]
lea rdx, [rsp + 0x70]
call fcn.180054b00
mov r12, qword [rsp + 0x90]
cmp r12, rdi
mov eax, 0
cmove r12, rax
mov r14, qword [rsp + 0x98]
mov ecx, 1
cmove r14, rcx
mov r15, qword [rsp + 0xa0]
cmove r15, rax
mov rdi, qword [rsi + 0x10]
cmp rdi, qword [rsi]
je 0x18002756b
jmp 0x180027573
mov r14d, 1
xor r12d, r12d
xor r15d, r15d
mov rdi, qword [rsi + 0x10]
cmp rdi, qword [rsi]
jne 0x180027573
mov rcx, rsi
call fcn.180028100
mov rax, qword [rsi + 8]
mov rcx, rdi
shl rcx, 5
mov qword [rax + rcx], r12
mov qword [rax + rcx + 8], r14
mov qword [rax + rcx + 0x10], r15
mov dword [rax + rcx + 0x18], 0
inc rdi
mov qword [rsi + 0x10], rdi
mov rdx, qword [rsp + 0x50]
test rdx, rdx
movabs rdi, 0x8000000000000000
lea r14, [rsp + 0x40]
lea r15, [rsp + 0x78]
je 0x1800275d0
mov r8d, 1
mov rcx, qword [rsp + 0x60]
call fcn.18000a8a0
nop dword [rax]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180027490
call sub.netapi32.dll_NetApiBufferFree
jmp 0x180027490
mov r13, qword [rsp + 0x38]
mov eax, dword [rsp + 0x58]
cmp eax, 0xea
jne 0x18002761b
test r13, r13
je 0x180027410
mov rcx, r13
call sub.netapi32.dll_NetApiBufferFree
jmp 0x180027410
mov r13, qword [rsp + 0x38]
test r13, r13
je 0x180027628
mov rcx, r13
call sub.netapi32.dll_NetApiBufferFree
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x18002b3b0
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 0x18002b3f2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x18002b3fa
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x18002b40b
jmp 0x18002b422
xor r10d, r10d
jmp 0x18002b4ad
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x18002b422
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x18002b439
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 0x18002b459
add r11, r8
jmp 0x18002b589
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 0x18002b522
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 0x18002b4d0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x18002b53f
mov r9d, dword [rdx + r10]
mov r8d, 4
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jb 0x18002b550
jmp 0x18002b56b
xor r9d, r9d
xor r8d, r8d
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jae 0x18002b56b
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 0x18002b585
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 0x18002c7b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
mov rcx, qword [0x180104328]
jmp 0x180015940

Function at 0x18002eb90
Capabilities:
Get local ipv4 addresses

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
mov rsi, rcx
mov dword [rsp + 0x30], 0x3c00
xor ebx, ebx
lea r14, [rsp + 0x30]
xor ebp, ebp
nop word cs:[rax + rax]
mov edx, dword [rsp + 0x30]
mov rcx, rbx
call sub.msvcrt.dll_realloc
test rax, rax
je 0x18002ec7e
mov rdi, rax
mov qword [rsp + 0x20], r14
xor ecx, ecx
mov edx, 0xe
xor r8d, r8d
mov r9, rax
call sub.iphlpapi.dll_GetAdaptersAddresses
mov dword [rsp + 0x34], eax
test eax, eax
je 0x18002ece2
cmp ebp, 1
ja 0x18002ec0a
inc ebp
mov rbx, rdi
cmp eax, 0x6f
je 0x18002ebc0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x38], rax
lea rax, [fcn.1800fea10]
mov qword [rsp + 0x40], rax
lea rax, [0x180354fb0]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
mov qword [rsp + 0x80], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x60]
call fcn.1800e0130
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi], xmm0
mov rcx, rdi
call sub.msvcrt.dll_free
jmp 0x18002ecf7
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ecx, 0x32
mov edx, 1
call fcn.18000a890
test rax, rax
je 0x18002ed05
mov rdi, rax
movups xmm0, xmmword [0x180354f70]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [0x180354f60]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [str.failed_to_allocate_memory_for_IP_ADAPTER_ADDRESSESGetAdaptersAddresses___failed_with_code]
movups xmmword [rax], xmm0
mov word [rax + 0x30], 0x5345
mov rcx, rbx
call sub.msvcrt.dll_free
mov qword [rsi], 0x32
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], 0x32
jmp 0x18002ecf7
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rdi
movabs rax, 0x8000000000000000
mov qword [rsi], rax
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov ecx, 1
mov edx, 0x32
call fcn.1800debd0
ud2
Function at 0x18002ff70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x180015837
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x18001582f
je 0x1800157d0
test rdi, rdi
je 0x1800157d4
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x1800157d6
mov rbx, qword [rdi + 8]
jmp 0x1800157d6
xor eax, eax
jmp 0x18001582f
xor ebx, ebx
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.18000a890
test rax, rax
je 0x180015851
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 0x18001582c
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.18000a8a0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1800ba2b0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1800157b4
jmp 0x18001582f
mov ecx, 8
mov edx, 0x10
call fcn.1800debf0
int3
mov rdx, rcx
mov rcx, qword [0x180104120]
jmp 0x180015790

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x180015913
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x18001590b
je 0x180015909
test rdi, rdi
je 0x1800158ac
test byte [rdi], 1
mov dword [rdi], 0
je 0x1800158ac
mov rdi, qword [rdi + 4]
jmp 0x1800158ae
xor edi, edi
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ecx, 0xc
mov edx, 4
call fcn.18000a890
test rax, rax
je 0x18001592d
mov qword [rax], rdi
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 0x180015904
mov edx, 0xc
mov r8d, 4
mov rcx, rdi
call fcn.18000a8a0
mov rax, rsi
jmp 0x18001590b
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1800ba2b0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x180015894
jmp 0x18001590b
mov ecx, 4
mov edx, 0xc
call fcn.1800debf0
int3
mov rdx, rcx
mov rcx, qword [0x180104118]
jmp 0x180015870

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

Disassembly:
mov rcx, qword [0x180104120]
xor edx, edx
jmp 0x180015790
Function at 0x18005a430
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, rdx
mov rdi, rcx
movups xmm0, xmmword [rdx + 0x38]
movups xmm1, xmmword [rdx + 0x48]
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
mov rax, qword [rdx + 0x28]
movzx ebp, byte [rdx + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x60], bpl
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ecx, 0x5f0
mov edx, 8
call fcn.18000a890
test rax, rax
je 0x18005a699
mov rbx, rax
movabs r15, 0x800000000000000
mov r8d, 0x5f0
mov rcx, rax
xor edx, edx
call sub.msvcrt.dll_memset
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x28], rax
movabs rcx, 0x7465646279746573
movabs rdx, 0x6c7967656e657261
movabs r8, 0xded7d4e2d7dedfc6
movabs r9, 0xa60c596fc19fead0
movabs r10, 0xe414a674f0de7325
nop dword [rax]
mov eax, 1
lock xadd qword [0x1803a2090], rax
mov r11, rax
xor r11, rcx
mov r14, r11
rol r14, 0x10
lea r12, [r11 + rdx]
xor r14, r12
lea r13, [r14 + r8]
xor rax, r13
add r11, r9
mov r12, r11
rol r12, 0x20
rol r14, 0x15
xor r11, r10
xor r13, r15
xor r13, r14
add rax, r11
rol r11, 0xd
add r12, r13
xor r11, rax
rol r13, 0x10
xor r13, r12
rol rax, 0x20
add r12, r11
add rax, r13
rol r11, 0x11
xor r11, r12
rol r13, 0x15
rol r12, 0x20
xor r13, rax
xor rax, r15
xor r12, 0xff
add rax, r11
add r12, r13
rol r11, 0xd
xor r11, rax
rol r13, 0x10
rol rax, 0x20
xor r13, r12
add r12, r11
rol r11, 0x11
add rax, r13
xor r11, r12
rol r13, 0x15
xor r13, rax
rol r12, 0x20
add rax, r11
add r12, r13
rol r11, 0xd
xor r11, rax
rol r13, 0x10
rol rax, 0x20
xor r13, r12
add r12, r11
rol r11, 0x11
add rax, r13
xor r11, r12
rol r13, 0x15
xor r13, rax
rol r12, 0x20
add rax, r11
add r12, r13
rol r11, 0xd
xor r11, rax
rol r13, 0x10
xor r13, r12
add r12, r11
rol r11, 0x11
rol r13, 0x15
mov rax, r12
rol rax, 0x20
xor rax, r11
xor rax, r13
cmp rax, r12
je 0x18005a4f0
xor rax, r12
mov rcx, qword [rsi + 0x58]
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movups xmmword [rdi + 0x128], xmm1
movups xmmword [rdi + 0x118], xmm0
mov rdx, qword [rsp + 0x20]
mov qword [rdi + 0x138], rdx
mov byte [rdi + 0x140], bpl
mov qword [rdi], 0
mov qword [rdi + 8], rbx
mov qword [rdi + 0x80], 0
mov qword [rdi + 0x88], rbx
mov rdx, qword [rsp + 0x28]
mov qword [rdi + 0x100], rdx
mov qword [rdi + 0x108], rax
mov qword [rdi + 0x110], rcx
mov rdx, qword [rsi + 0x10]
mov rax, rdx
neg rax
jo 0x18005a685
jae 0x18005a685
mov rcx, qword [rsi + 0x18]
mov r8d, 1
call fcn.18000a8a0
mov rax, rdi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 8
mov edx, 0x5f0
call fcn.1800debf0
ud2
Function at 0x18005acf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
lea rcx, [0x180104090]
jmp 0x18005cbe0
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x18005cc87
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x18005cc7f
je 0x18005cc20
test rdi, rdi
je 0x18005cc24
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x18005cc26
mov rbx, qword [rdi + 8]
jmp 0x18005cc26
xor eax, eax
jmp 0x18005cc7f
xor ebx, ebx
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.18000a890
test rax, rax
je 0x18005cca1
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 0x18005cc7c
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.18000a8a0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1800ba2b0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x18005cc04
jmp 0x18005cc7f
mov ecx, 8
mov edx, 0x10
call fcn.1800debf0
int3

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

Disassembly:
mov rcx, qword [0x180104178]
xor edx, edx
jmp 0x18005ccc0
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x18005cda3
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x18005cd9b
je 0x18005cd99
test rbx, rbx
je 0x18005cd03
mov rdi, qword [rbx + 8]
test byte [rbx], 1
mov qword [rbx], 0
jne 0x18005cd13
call fcn.1800631b0
mov rcx, rax
call fcn.180062f20
mov rdi, rax
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.18000a890
test rax, rax
je 0x18005cdbd
mov qword [rax], rdi
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 0x18005cd94
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x820]
lea rdx, [rax - 1]
mov qword [rcx + 0x820], rdx
xor rax, 1
or rax, qword [rcx + 0x818]
jne 0x18005cd81
call fcn.1800643b0
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.18000a8a0
mov rax, rsi
jmp 0x18005cd9b
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1800ba2b0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x18005cce8
jmp 0x18005cd9b
mov ecx, 8
mov edx, 0x10
call fcn.1800debf0
ud2
Function at 0x18005cbe0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
lea rcx, [0x180104090]
jmp 0x18005cbe0
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x18005cc87
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x18005cc7f
je 0x18005cc20
test rdi, rdi
je 0x18005cc24
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x18005cc26
mov rbx, qword [rdi + 8]
jmp 0x18005cc26
xor eax, eax
jmp 0x18005cc7f
xor ebx, ebx
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.18000a890
test rax, rax
je 0x18005cca1
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 0x18005cc7c
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.18000a8a0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1800ba2b0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x18005cc04
jmp 0x18005cc7f
mov ecx, 8
mov edx, 0x10
call fcn.1800debf0
int3

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

Disassembly:
mov rcx, qword [0x180104178]
xor edx, edx
jmp 0x18005ccc0
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x18005cda3
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x18005cd9b
je 0x18005cd99
test rbx, rbx
je 0x18005cd03
mov rdi, qword [rbx + 8]
test byte [rbx], 1
mov qword [rbx], 0
jne 0x18005cd13
call fcn.1800631b0
mov rcx, rax
call fcn.180062f20
mov rdi, rax
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.18000a890
test rax, rax
je 0x18005cdbd
mov qword [rax], rdi
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 0x18005cd94
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x820]
lea rdx, [rax - 1]
mov qword [rcx + 0x820], rdx
xor rax, 1
or rax, qword [rcx + 0x818]
jne 0x18005cd81
call fcn.1800643b0
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.18000a8a0
mov rax, rsi
jmp 0x18005cd9b
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1800ba2b0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x18005cce8
jmp 0x18005cd9b
mov ecx, 8
mov edx, 0x10
call fcn.1800debf0
ud2

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

Disassembly:
mov rcx, qword [0x180380f30]
xor edx, edx
jmp 0x18005cbe0
Function at 0x1800695c0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x180069626
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
jmp 0x1800695e8
add rdi, rbx
sub rsi, rbx
je 0x180069626
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xbfffffff
jbe 0x1800695e0
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call sub.advapi32.dll_SystemFunction036
test al, al
jne 0x1800695e0
and ebp, 0x7fffffff
jmp 0x180069628
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret