joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006b0c0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r14, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rcx], rdx
mov qword [rcx + 8], r8
lea rax, [rdx + r8]
mov qword [rcx + 0x10], rax
mov r9, rax
lea r15, [0x180146040]
mov rcx, qword [0x180146040]
cmp rcx, r15
je 0x18006b137
test byte [rcx + 0x1c], 8
je 0x18006b137
cmp byte [rcx + 0x19], 4
jb 0x18006b137
mov edx, 0xa
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
mov r9, rbx
mov rcx, qword [rcx + 0x10]
call fcn.18006b020
mov r9, qword [rdi + 0x10]
mov rcx, qword [0x180146040]
cmp r9, rbx
ja 0x18006b176
nop dword [rax]
cmp rcx, r15
je 0x18006b16c
test byte [rcx + 0x1c], 8
je 0x18006b16c
cmp byte [rcx + 0x19], 2
jb 0x18006b16c
mov edx, 0xb
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r14
mov r9, qword [rdi]
mov rcx, qword [rcx + 0x10]
call fcn.18006b020
mov ebx, 0xe8040074
jmp 0x18006b32f
mov qword ds:[rdi + 0x18], rbx
test rbx, rbx
je 0x18006b2fd
lea rax, [rbx + 0x40]
cmp rax, r9
jae 0x18006b2fd
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x18006b2fd
movsxd rcx, dword [rbx + 0x3c]
add rcx, rbx
mov qword [rdi + 0x20], rcx
je 0x18006b2de
lea rdx, [rcx + 0x108]
cmp rdx, r9
jae 0x18006b2de
cmp dword [rcx], 0x4550
jne 0x18006b2de
mov qword ds:[rdi + 0x28], rdx
test rdx, rdx
je 0x18006b2aa
movzx esi, word ds:[rcx + 6]
lea rax, [rsi + rsi*4]
shl rax, 3
mov qword [rsp + 0x78], rax
lea rcx, [rdx + rax]
cmp rcx, rdx
jb 0x18006b2aa
cmp rcx, r9
jae 0x18006b2aa
xor ebx, ebx
mov r8d, ebx
mov dword [rsp + 0x34], ebx
nop dword [rax + rax]
cmp r8d, esi
jae 0x18006b25b
mov eax, r8d
lea rcx, [rax + rax*4]
mov rax, qword [rdi + 0x28]
mov r11, qword [rdi]
mov edx, dword [rax + rcx*8 + 0xc]
add rdx, r11
mov r10d, dword [rax + rcx*8 + 8]
add r10, rdx
cmp rdx, r9
ja 0x18006b2aa
cmp r10, r9
ja 0x18006b2aa
cmp r10, r11
jb 0x18006b2aa
inc r8d
mov dword [rsp + 0x34], r8d
jmp 0x18006b220
mov dword [rsp + 0x30], ebx
mov rcx, qword [0x180146040]
cmp rcx, r15
je 0x18006b333
test byte [rcx + 0x1c], 8
je 0x18006b333
cmp byte ds:[rcx + 0x19], 4
jb 0x18006b333
mov edx, 0xf
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r14
mov r9, qword [rdi]
mov rcx, qword [rcx + 0x10]
call fcn.18006b020
jmp 0x18006b333
mov rcx, qword [0x180146040]
cmp rcx, r15
je 0x18006b2d7
test byte [rcx + 0x1c], 8
je 0x18006b2d7
cmp byte [rcx + 0x19], 2
jb 0x18006b2d7
mov edx, 0xe
lea r8, [0x1801350a0]
mov rcx, qword [rcx + 0x10]
call fcn.180011520
mov ebx, 0xc000007b
jmp 0x18006b32f
mov rcx, qword [0x180146040]
cmp rcx, r15
je 0x18006b32a
test byte [rcx + 0x1c], 8
je 0x18006b32a
cmp byte [rcx + 0x19], 2
jb 0x18006b32a
mov edx, 0xd
jmp 0x18006b31a
mov rcx, qword [0x180146040]
cmp rcx, r15
je 0x18006b32a
test byte [rcx + 0x1c], 8
je 0x18006b32a
cmp byte [rcx + 0x19], 2
jb 0x18006b32a
mov edx, 0xc
lea r8, [0x1801350a0]
mov rcx, qword [rcx + 0x10]
call fcn.180011520
mov ebx, 0xc000012f
mov dword [rsp + 0x30], ebx
jmp 0x18006b372
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x18006bc40
Capabilities:
Get thread local storage value

Disassembly:
mov qword ss:[rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov eax, dword [0x180152a20]
xor ebx, ebx
mov edi, dword [0x18015a870]
mov qword [rsp + 0x30], rbx
cmp eax, 2
jne 0x18006bc9b
mov ecx, dword [0x180152a24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18006bc80
cmp rax, 0xffffffffffffffff
je 0x18006bc9b
mov rbx, qword [rax + rdi*8]
mov edx, dword [0x18015a870]
lea r8, [rbx + 1]
lea r9, [rsp + 0x30]
lea rcx, [0x180152a20]
call fcn.18008b080
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18006bcc0
Capabilities:
Get thread local storage value

Disassembly:
mov qword ss:[rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov eax, dword [0x180152a20]
xor ebx, ebx
mov edi, dword [0x18015a870]
mov qword [rsp + 0x30], rbx
cmp eax, 2
jne 0x18006bd1d
mov ecx, dword [0x180152a24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18006bd03
cmp rax, 0xffffffffffffffff
je 0x18006bd1d
mov rbx, qword [rax + rdi*8]
dec rbx
mov edx, dword [0x18015a870]
lea r9, [rsp + 0x30]
mov r8, rbx
lea rcx, [0x180152a20]
call fcn.18008b080
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18006e280
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jmp 0x180073b06
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x6e8
mov ecx, 0x6d97a
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x50], 0x34
lea rdx, [r8 + 0x648]
mov byte [rsp + 0x51], 0x2b
mov byte [rsp + 0x52], 0x48
mov byte [rsp + 0x53], 0x32
mov byte [rsp + 0x54], 0x37
mov byte [rsp + 0x55], 0x4a
mov byte [rsp + 0x56], 0x24
mov byte [rsp + 0x57], 0x64
mov byte [rsp + 0x58], 0x30
mov byte [rsp + 0x59], 0x59
mov byte [rsp + 0x5a], 0x6b
mov byte [rsp + 0x5b], 0x30
mov byte [rsp + 0x5c], 0x57
mov byte [rsp + 0x5d], 0x77
and al, 0x5d
ja 0x180073b4a
and al, 0x5e
mov byte [r12 + 0x5f], 0x65
mov byte [rsp + 0x60], 0x66
mov byte [rsp + 0x61], 0x59
mov byte [rsp + 0x62], 0x31
mov byte [rsp + 0x63], 0x49
mov byte [rsp + 0x64], 0x6a
mov byte [rsp + 0x65], 0
lea rax, [r8 + 0xb0]
nop dword [rax]
mov qword [rax], 0x227033fc
add rax, 8
cmp rax, rdx
jne 0x180073bb6
sub ecx, 1
jne 0x180073bab
cmp qword [rsp + 0x490], 0x227033fc
je 0x180073bfa
lea rdx, [0x1800b2a75]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [0x1800b5a7e]
add rsp, 0x6e8
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.180073d36
xor r8d, r8d
mov rbx, rax
mov edx, 0x6d92a5e2
mov rcx, rax
lea rsi, [rsp + 0x40]
call fcn.180073a76
mov rcx, rbx
lea rbx, [rsp + 0x38]
xor r8d, r8d
mov edx, 0x3803e5e2
mov rbp, rax
call fcn.180073a76
xor r8d, r8d
mov rdi, rax
mov qword [rsp + 0x40], 0x3d31b
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x3000
mov r9, rsi
mov rdx, rbx
mov rcx, 0xffffffffffffffff
call rbp
test eax, eax
js 0x180073cf6
lea rax, [rsp + 0x48]
mov r9d, 0x40
mov r8, rsi
mov rdx, rbx
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call rdi
test eax, eax
js 0x180073d19
xor ecx, ecx
cmp qword [rsp + 0x40], 0
mov eax, 0x34
movabs r9, resource.0
movabs r8, 0x2e8ba2e8ba2e8ba3
jne 0x180073cd6
jmp 0x180073ced
mov rax, rcx
mov rdi, rcx
mul r8
shr rdx, 2
lea rax, [rdx + rdx*4]
lea rax, [rdx + rax*2]
add rax, rax
sub rdi, rax
movzx eax, byte [rsp + rdi + 0x50]
xor al, byte [rcx + r9]
mov rdx, qword [rsp + 0x38]
mov byte [rdx + rcx], al
add rcx, 1
cmp qword [rsp + 0x40], rcx
ja 0x180073cb6
call qword [rsp + 0x38]
jmp 0x180073bd9
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1800b2a46]
xor ecx, ecx
call qword [0x1800b5a7e]
xor eax, eax
add rsp, 0x6e8
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1800b2a5e]
xor ecx, ecx
call qword [0x1800b5a7e]
xor eax, eax
jmp 0x180073d0d
Function at 0x180073a76
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
movsxd rax, dword [rcx + 0x3c]
mov eax, dword [rcx + rax + 0x88]
add rax, rcx
mov ebx, dword [rax + 0x18]
mov r9d, dword [rax + 0x20]
mov edi, dword [rax + 0x1c]
mov ebp, dword [rax + 0x24]
test ebx, ebx
je 0x180073ada
lea rsi, [rcx + r9]
lea r10d, [r8 + 0x60]
xor r11d, r11d
nop
mov eax, dword [rsi + r11*4]
xor r8d, r8d
add rax, rcx
cmp byte [rax], 0
je 0x180073acc
nop
movzx r9d, byte [rax]
add rax, 1
or r9d, r10d
add r8d, r9d
add r8d, r8d
cmp byte [rax], 0
jne 0x180073ab6
cmp edx, r8d
je 0x180073ae1
add r11, 1
cmp ebx, r11d
ja 0x180073aa6
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rax, [rbp + r11*2]
movzx eax, word [rcx + rax]
lea rax, [rdi + rax*4]
mov eax, dword [rcx + rax]
add rax, rcx
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x180073d36
Capabilities:
Access peb ldr_data

Disassembly:
xor rax, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
ret

Function at 0x180073fc0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
mov r9, rcx
xor r10b, r10b
mov byte [rsp], r10b
mov byte [r8], r10b
mov qword [rsp + 0x30], rcx
cmp rdx, rcx
jb 0x180073fe3
mov rax, rdx
sub rax, rcx
jmp 0x180073fea
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x38], rax
cmp rdx, r9
jb 0x180074048
cmp rax, 0x40
jb 0x180074048
mov eax, 0x5a4d
cmp ax, word [rcx]
je 0x180074009
mov byte [r8], 1
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x1000
ja 0x180074048
add rcx, 4
add rcx, rax
cmp rcx, rdx
ja 0x180074048
lfence
movsxd rax, dword [r9 + 0x3c]
movzx r10d, byte [rsp]
mov edx, 1
mov ecx, 0x4550
cmp cx, word [rax + r9]
cmove r10d, edx
mov byte [rsp], r10b
jmp 0x18007404f
movzx eax, r10b
add rsp, 0x18
ret

Function at 0x180074d40
Capabilities:
Get thread local storage value

Disassembly:
mov qword ss:[rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov eax, dword [0x180152a20]
xor ebx, ebx
mov edi, dword [0x18015a87c]
mov qword [rsp + 0x30], rbx
cmp eax, 2
jne 0x180074d9b
mov ecx, dword [0x180152a24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180074d80
cmp rax, 0xffffffffffffffff
je 0x180074d9b
mov rbx, qword [rax + rdi*8]
mov edx, dword [0x18015a87c]
lea r8, [rbx + 1]
lea r9, [rsp + 0x30]
lea rcx, [0x180152a20]
call fcn.18008b080
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180074dc0
Capabilities:
Get thread local storage value

Disassembly:
mov qword ss:[rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov eax, dword [0x180152a20]
xor ebx, ebx
mov edi, dword [0x18015a87c]
mov qword [rsp + 0x30], rbx
cmp eax, 2
jne 0x180074e1d
mov ecx, dword [0x180152a24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180074e03
cmp rax, 0xffffffffffffffff
je 0x180074e1d
mov rbx, qword [rax + rdi*8]
dec rbx
mov edx, dword [0x18015a87c]
lea r9, [rsp + 0x30]
mov r8, rbx
lea rcx, [0x180152a20]
call fcn.18008b080
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180077be0
Capabilities:
Get thread local storage value

Disassembly:
mov qword ss:[rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov eax, dword [0x180152a20]
xor ebx, ebx
mov edi, dword [0x18015b8d8]
mov qword [rsp + 0x30], rbx
cmp eax, 2
jne 0x180077c3b
mov ecx, dword [0x180152a24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180077c20
cmp rax, 0xffffffffffffffff
je 0x180077c3b
mov rbx, qword [rax + rdi*8]
mov edx, dword [0x18015b8d8]
lea r8, [rbx + 1]
lea r9, [rsp + 0x30]
lea rcx, [0x180152a20]
call fcn.18008b080
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180077c60
Capabilities:
Get thread local storage value

Disassembly:
mov qword ss:[rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov eax, dword [0x180152a20]
xor ebx, ebx
mov edi, dword [0x18015b8d8]
mov qword [rsp + 0x30], rbx
cmp eax, 2
jne 0x180077cbd
mov ecx, dword [0x180152a24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180077ca3
cmp rax, 0xffffffffffffffff
je 0x180077cbd
mov rbx, qword [rax + rdi*8]
dec rbx
mov edx, dword [0x18015b8d8]
lea r9, [rsp + 0x30]
mov r8, rbx
lea rcx, [0x180152a20]
call fcn.18008b080
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18007e240
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x180152a20]
xor ebx, ebx
mov esi, dword [0x18015b8dc]
mov edi, ebx
mov qword [rsp + 0x30], rbx
cmp eax, 2
je 0x18007e271
mov r9d, 0xc000a003
jmp 0x18007e298
mov ecx, dword [0x180152a24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax]
test rax, rax
jne 0x18007e28c
mov eax, 0xe804006f
jmp 0x18007e2eb
cmp rax, 0xffffffffffffffff
jne 0x18007e2e5
mov r9d, 0xc000004b
mov rax, qword [0x180146040]
lea rcx, [0x180146040]
cmp rax, rcx
je 0x18007e30f
test byte [rax + 0x1c], 1
je 0x18007e30f
cmp byte [rax + 0x19], 2
jb 0x18007e30f
lfence
mov rcx, qword [0x180146040]
lea r8, [0x1801356d0]
mov edx, 0xa
mov rcx, qword [rcx + 0x10]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.180012460
mov rdi, qword [rax + rsi*8]
mov eax, ebx
mov edx, dword [0x18015b8dc]
lea r9, [rsp + 0x30]
cmp eax, 0xe804006f
lea rcx, [0x180152a20]
cmovne rbx, rdi
lea r8, [rbx + 1]
call fcn.18008b080
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18007e320
Capabilities:
Get thread local storage value

Disassembly:
mov qword ss:[rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov eax, dword [0x180152a20]
xor ebx, ebx
mov edi, dword [0x18015b8dc]
mov qword [rsp + 0x30], rbx
cmp eax, 2
je 0x18007e34d
mov r9d, 0xc000a003
jmp 0x18007e36c
mov ecx, dword [0x180152a24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18007e3c0
nop
cmp rax, 0xffffffffffffffff
jne 0x18007e3b4
mov r9d, 0xc000004b
mov rax, qword [0x180146040]
lea rcx, [0x180146040]
cmp rax, rcx
je 0x18007e3da
test byte [rax + 0x1c], 1
je 0x18007e3da
cmp byte [rax + 0x19], 2
jb 0x18007e3da
lfence
mov rcx, qword [0x180146040]
lea r8, [0x1801356d0]
mov edx, 0xb
mov rcx, qword [rcx + 0x10]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.180012460
mov rbx, qword [rax + rdi*8]
test rbx, rbx
je 0x18007e3c0
dec rbx
mov edx, dword [0x18015b8dc]
lea r9, [rsp + 0x30]
mov r8, rbx
lea rcx, [0x180152a20]
call fcn.18008b080
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180082040
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x180152a20]
xor ebx, ebx
mov esi, dword [rcx]
mov rdi, rcx
mov qword [rsp + 0x30], rbx
cmp eax, 2
je 0x18008206e
mov r9d, 0xc000a003
jmp 0x18008208c
mov ecx, dword [0x180152a24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1800820b6
nop
cmp rax, 0xffffffffffffffff
jne 0x1800820b2
mov r9d, 0xc000004b
mov rcx, qword [0x180146040]
lea rax, [0x180146040]
cmp rcx, rax
je 0x180082112
test byte [rcx + 0x1c], 1
je 0x180082112
cmp byte [rcx + 0x19], 2
jb 0x180082112
mov edx, 0xa
jmp 0x180082102
mov rbx, qword [rax + rsi*8]
mov edx, dword [rdi]
lea r8, [rbx + 1]
lea r9, [rsp + 0x30]
lea rcx, [0x180152a20]
call fcn.18008b080
mov r9d, eax
test eax, eax
jns 0x180082112
mov rcx, qword [0x180146040]
lea rax, [0x180146040]
cmp rcx, rax
je 0x180082112
test byte [rcx + 0x1c], 1
je 0x180082112
cmp byte [rcx + 0x19], 2
jb 0x180082112
lfence
mov rcx, qword [0x180146040]
mov edx, 0xb
mov rcx, qword [rcx + 0x10]
lea r8, [0x180135b00]
call fcn.180012460
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180082140
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x180152a20]
xor ebx, ebx
mov esi, dword [rcx]
mov rdi, rcx
mov qword [rsp + 0x30], rbx
cmp eax, 2
je 0x18008216e
mov r9d, 0xc000a003
jmp 0x18008218c
mov ecx, dword [0x180152a24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1800821b9
nop
cmp rax, 0xffffffffffffffff
jne 0x1800821b2
mov r9d, 0xc000004b
mov rcx, qword [0x180146040]
lea rax, [0x180146040]
cmp rcx, rax
je 0x180082214
test byte [rcx + 0x1c], 1
je 0x180082214
cmp byte [rcx + 0x19], 2
jb 0x180082214
mov edx, 0xc
jmp 0x180082204
mov rbx, qword [rax + rsi*8]
dec rbx
mov edx, dword [rdi]
lea r9, [rsp + 0x30]
mov r8, rbx
lea rcx, [0x180152a20]
call fcn.18008b080
mov r9d, eax
test eax, eax
jns 0x180082214
mov rcx, qword [0x180146040]
lea rax, [0x180146040]
cmp rcx, rax
je 0x180082214
test byte [rcx + 0x1c], 1
je 0x180082214
cmp byte [rcx + 0x19], 2
jb 0x180082214
lfence
mov rcx, qword [0x180146040]
mov edx, 0xd
mov rcx, qword [rcx + 0x10]
lea r8, [0x180135b00]
call fcn.180012460
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180082240
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x180152a20]
mov ebx, dword [rcx]
cmp eax, 2
je 0x18008225b
mov r9d, 0xc000a003
jmp 0x180082278
mov ecx, dword [0x180152a24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1800822cd
cmp rax, 0xffffffffffffffff
jne 0x1800822be
mov r9d, 0xc000004b
mov rax, qword [0x180146040]
lea rcx, [0x180146040]
cmp rax, rcx
je 0x1800822c5
test byte [rax + 0x1c], 1
je 0x1800822c5
cmp byte [rax + 0x19], 2
jb 0x1800822c5
lfence
mov rcx, qword [0x180146040]
lea r8, [0x180135b00]
mov edx, 0xe
mov rcx, qword [rcx + 0x10]
call fcn.180012460
xor al, al
add rsp, 0x20
pop rbx
ret
cmp qword [rax + rbx*8], 0
jle 0x1800822cd
xor al, al
add rsp, 0x20
pop rbx
ret
mov al, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1800848e0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, str.sspicli.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
jne 0x180084938
mov rcx, qword [0x180146040]
lea rax, [0x180146040]
cmp rcx, rax
je 0x180084b06
test byte [rcx + 0x1c], 8
je 0x180084b06
cmp byte [rcx + 0x19], 5
jb 0x180084b06
lea edx, [rbx + 0xa]
jmp 0x180084af6
lea rdx, [0x180135c08]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi], rax
test rax, rax
jne 0x180084987
mov rcx, qword [0x180146040]
lea rax, [0x180146040]
nop
cmp rcx, rax
je 0x180084b06
test byte [rcx + 0x1c], 8
je 0x180084b06
cmp byte [rcx + 0x19], 2
jb 0x180084b06
mov edx, 0xb
jmp 0x180084af6
lea rdx, str.LsaFreeReturnBuffer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword ds:[rdi + 8], rax
test rax, rax
jne 0x1800849da
mov rcx, qword [0x180146040]
lea rax, [0x180146040]
cmp rcx, rax
je 0x180084b06
test byte [rcx + 0x1c], 8
je 0x180084b06
cmp byte [rcx + 0x19], 2
jb 0x180084b06
mov edx, 0xc
jmp 0x180084af6
lea rdx, str.LsaGetLogonSessionData
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x180084a28
mov rcx, qword [0x180146040]
lea rax, [0x180146040]
cmp rcx, rax
je 0x180084b06
test byte [rcx + 0x1c], 8
je 0x180084b06
cmp byte [rcx + 0x19], 2
jb 0x180084b06
mov edx, 0xd
jmp 0x180084af6
lea rdx, str.LsaConnectUntrusted
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword ds:[rdi + 0x18], rax
test rax, rax
jne 0x180084a77
mov rcx, qword [0x180146040]
lea rax, [0x180146040]
cmp rcx, rax
je 0x180084b06
test byte [rcx + 0x1c], 8
je 0x180084b06
cmp byte [rcx + 0x19], 2
jb 0x180084b06
mov edx, 0xe
jmp 0x180084af6
lea rdx, str.LsaLookupAuthenticationPackage
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x180084ab8
mov rcx, qword [0x180146040]
lea rax, [0x180146040]
nop
cmp rcx, rax
je 0x180084b06
test byte [rcx + 0x1c], 8
je 0x180084b06
cmp byte [rcx + 0x19], 2
jb 0x180084b06
mov edx, 0xf
jmp 0x180084af6
lea rdx, str.LsaDeregisterLogonProcess
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x28], rax
test rax, rax
jne 0x180084b13
mov rcx, qword [0x180146040]
lea rax, [0x180146040]
nop
cmp rcx, rax
je 0x180084b06
test byte [rcx + 0x1c], 8
je 0x180084b06
cmp byte [rcx + 0x19], 2
jb 0x180084b06
mov edx, 0x10
mov rcx, qword [rcx + 0x10]
lea r8, [0x180135cb0]
call fcn.180011520
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword ss:[rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret
Function at 0x18008afa0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [rcx]
mov rdi, rcx
cmp eax, 2
je 0x18008afbb
mov eax, 0xc000a003
add rsp, 0x20
pop rdi
ret
cmp qword [rcx + 0x40], 0
jne 0x18008afcd
mov eax, 0xc000000d
add rsp, 0x20
pop rdi
ret
mov ecx, dword [rcx + 4]
mov qword [rsp + 0x38], rsi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [rdi + 4]
mov rdx, 0xffffffffffffffff
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rcx, [rsi - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x18008b070
cmp qword [rdi + 0x40], 0
je 0x18008b03b
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rdi + 8], ebx
jbe 0x18008b036
nop dword [rax + rax]
mov rax, qword [rdi + 0x40]
lea rcx, [rbx*8]
mov rax, qword [rcx + rax]
test rax, rax
je 0x18008b02f
mov rcx, qword [rcx + rsi]
call qword [case.0x180020d94.0]
inc ebx
cmp ebx, dword [rdi + 8]
jb 0x18008b010
mov rbx, qword [rsp + 0x30]
mov eax, dword ds:[rdi + 0x3c]
cmp dword [rdi + 0x38], eax
ja 0x18008b05f
mov rax, qword [rdi + 0x30]
mov rcx, rsi
call qword [case.0x180020d94.0]
mov rsi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
lock inc dword [rdi + 0x3c]
mov rdx, rsi
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
mov rsi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword ss:[rsp + 0x20], rbp
push r12
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx]
mov r15, r9
mov r12d, edx
mov rbp, r8
mov r14, rcx
cmp eax, 2
je 0x18008b0ba
mov eax, 0xc000a003
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov ecx, dword [rcx + 4]
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18008b0db
mov eax, 0xc000004b
jmp 0x18008b197
mov qword [rsp + 0x48], rsi
test rax, rax
jne 0x18008b182
lea rcx, [r14 + 0x10]
call fcn.18008aaa0
mov rbx, rax
test rax, rax
jne 0x18008b105
mov eax, 0xc000009a
jmp 0x18008b192
mov ecx, dword [r14 + 8]
xor eax, eax
mov qword [rsp + 0x50], rdi
mov rdx, rbx
mov rdi, rbx
lea rcx, [rcx*8 + 8]
rep stosb byte [rdi], al
mov ecx, dword [r14 + 4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rdi, qword [rsp + 0x50]
test eax, eax
jne 0x18008b182
mov eax, dword [r14 + 0x3c]
cmp dword [r14 + 0x38], eax
ja 0x18008b14c
mov rax, qword [r14 + 0x30]
mov rcx, rbx
call qword [case.0x180020d94.0]
jmp 0x18008b15e
lock inc dword [r14 + 0x3c]
mov rdx, rbx
lea rcx, [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x18008b172
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18008b192
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0xc0070000
jmp 0x18008b192
mov rax, qword [rbx + r12*8]
lea rcx, [rbx + r12*8]
mov qword [r15], rax
xor eax, eax
mov qword [rcx], rbp
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret