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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov esi, ecx
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x10005750c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x10005751d
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x100057554
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x10005754d
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
mov rax, qword [rax + 0x1f0]
mov edx, 1
mov r9d, esi
mov rcx, qword [rax + 0x190]
lea r8d, [rdx + 0x10]
add rcx, 0xdc
mov qword [rsp + 0x20], rcx
lea ecx, [rdx + 6]
call fcn.100061c20
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1000575a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x1000575d5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x1000575e6
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x10005761d
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100057616
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
mov rax, qword [rax + 0x388]
mov rbx, qword [rsp + 0x30]
mov rax, qword [rax + 0x108]
add rsp, 0x20
pop rdi
ret

Function at 0x1000579e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov dword [rcx], edx
call fcn.100068a00
mov rdi, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rdi, rax
call fcn.10006c530
test eax, eax
jne 0x100057a1f
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rdi, rdi
je 0x100057a30
mov rax, qword [rdi + 0xd8]
test rax, rax
jne 0x100057a67
call fcn.100063d30
call fcn.100068a00
mov rdi, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rdi, rax
call fcn.10006c530
test eax, eax
jne 0x100057a60
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov rax, qword [rdi + 0xd8]
xor edx, edx
mov qword [rbx + 8], rax
test rax, rax
je 0x100057a7b
mov rcx, qword [rax + 0x388]
jmp 0x100057a7e
mov rcx, rdx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rdx
mov dword [rbx + 0x20], edx
call fcn.10006bc50
test eax, eax
je 0x100057aa5
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x100057aa5
add rax, 0x6a8
mov qword [rbx + 0x18], rax
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x100057d20
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov dword [rcx], edx
mov qword [rcx + 8], rdi
mov qword [rcx + 0x18], rdi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x20], rdi
mov dword [rcx + 0x30], edi
test r8d, r8d
je 0x100057dec
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
call fcn.100068a00
mov rsi, qword gs:[0x30]
mov rcx, rax
mov rbp, rax
add rsi, rax
call fcn.10006c530
test eax, eax
jne 0x100057d82
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rsi, rsi
je 0x100057d93
mov rcx, qword [rsi + 0xd8]
test rcx, rcx
jne 0x100057dca
call fcn.100063d30
call fcn.100068a00
mov rsi, qword gs:[0x30]
mov rcx, rax
mov rbp, rax
add rsi, rax
call fcn.10006c530
test eax, eax
jne 0x100057dc3
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov rcx, qword [rsi + 0xd8]
mov rcx, qword [rcx + 0x210]
mov rdx, rbx
call fcn.1000d0160
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
test eax, eax
sete dil
mov dword [rbx + 0x30], edi
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x100057e00
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [rcx + 0x30], 0
je 0x100057ea1
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100057e43
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100057e54
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
jne 0x100057e8b
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100057e84
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rcx, qword [rbx + 0xd8]
mov rcx, qword [rcx + 0x210]
call fcn.1000d02c0
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x100057eb0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100057ee5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100057f03
cmp qword [rbx + 0xe8], rbx
jne 0x100057f03
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x100057f20
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebp, edx
mov rdi, rcx
mov dword [rcx], 0
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100057f6a
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100057f7b
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
jne 0x100057fb2
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100057fab
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rcx, qword [rbx + 0xd8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov qword [rdi + 8], rcx
mov eax, dword [rcx + 0x220]
not eax
and eax, ebp
or dword [rdi], eax
or dword [rcx + 0x220], ebp
mov rbp, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x100058010
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100058045
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100058090
cmp qword [rbx + 0xe8], rbx
jne 0x100058090
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x10005807e
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1000580b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov ebx, r8d
mov rdi, rcx
add rcx, 0x18
call fcn.100057d20
nop
test ebx, ebx
je 0x10005819d
call fcn.100068a00
mov rsi, rax
mov rdx, qword gs:[0x30]
lea rbx, [rdx + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x100058111
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100058122
mov rdx, qword [rbx + 0xd8]
test rdx, rdx
jne 0x10005815a
call fcn.100063d30
call fcn.100068a00
mov rbx, rax
mov rcx, qword gs:[0x30]
lea rsi, [rcx + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x100058153
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov rdx, qword [rsi + 0xd8]
mov qword [rdi + 8], rdx
mov eax, dword [rdx + 0x2d8]
shr eax, 0xb
and eax, 1
mov dword [rdi + 4], eax
jne 0x10005817c
test byte [rdx + 0x2d8], 4
je 0x10005817c
xor eax, eax
jmp 0x100058181
mov eax, 1
mov dword [rdi], eax
test eax, eax
je 0x10005819b
mov rcx, qword [rdx + 0x218]
mov qword [rdi + 0x10], rcx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
jmp 0x1000581a1
jmp 0x1000581a1
xor eax, eax
mov dword [rdi], eax
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x100058220
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebp, edx
mov rbx, rcx
call fcn.100068a00
mov rdi, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rdi, rax
call fcn.10006c530
test eax, eax
jne 0x100058264
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rdi, rdi
je 0x100058275
mov rdx, qword [rdi + 0xd8]
test rdx, rdx
jne 0x1000582ac
call fcn.100063d30
call fcn.100068a00
mov rdi, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rdi, rax
call fcn.10006c530
test eax, eax
jne 0x1000582a5
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov rdx, qword [rdi + 0xd8]
mov qword [rbx + 8], rdx
mov eax, dword [rdx + 0x2d8]
shr eax, 0xb
and eax, 1
mov dword [rbx + 4], eax
test ebp, ebp
je 0x1000582d3
test byte [rdx + 0x2d8], 4
je 0x1000582d3
mov eax, 1
jmp 0x1000582d5
xor eax, eax
mov dword [rbx], eax
test eax, eax
je 0x1000582f2
mov rcx, qword [rdx + 0x218]
mov r8d, 1
mov qword [rbx + 0x10], rcx
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x100058350
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x10005838d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x10005839e
mov rdx, qword [rbx + 0xd8]
test rdx, rdx
jne 0x1000583d5
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x1000583ce
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rdx, qword [rbx + 0xd8]
mov qword [rdi + 8], rdx
mov eax, dword [rdx + 0x2d8]
shr eax, 0xb
and eax, 1
mov dword [rdi], eax
je 0x100058403
mov rcx, qword [rdx + 0x218]
mov qword [rdi + 0x10], rcx
mov rax, qword [rcx]
call qword [rax + 0x20]
xor ecx, ecx
test eax, eax
sete cl
mov dword [rdi], ecx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x100058870
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rsi, rdx
mov ebp, ecx
call fcn.100068a00
mov rdi, rax
mov r8, qword gs:[0x30]
lea rbx, [r8 + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1000588bf
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x1000588d0
mov rbx, qword [rbx + 0xd8]
test rbx, rbx
jne 0x100058908
call fcn.100063d30
call fcn.100068a00
mov rbx, rax
mov rcx, qword gs:[0x30]
lea rdi, [rcx + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x100058901
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov rbx, qword [rdi + 0xd8]
mov rcx, qword [rbx + 0x210]
test rcx, rcx
je 0x100058945
mov eax, dword [rcx + 0xb4]
test al, 4
je 0x100058945
mov rax, qword [rcx + 0x98]
test byte [rax + 0x220], 1
jne 0x100058945
mov eax, dword [rax + 0x2d8]
test al, al
js 0x100058945
bt eax, 8
jb 0x100058945
mov eax, 2
jmp 0x100058987
lea rcx, [rsp + 0x28]
call fcn.100058350
nop
mov rcx, rsi
call fcn.1000cfc60
mov edx, ebp
mov rcx, rbx
call fcn.1000d54f0
mov ebx, eax
mov rcx, rsi
call fcn.1000cfe30
nop
cmp dword [rsp + 0x28], 0
je 0x100058985
mov rcx, qword [rsp + 0x38]
mov r8, qword [rcx]
mov rdx, qword [rsp + 0x30]
call qword [r8 + 0x18]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1000589b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x1000589e5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x1000589f6
mov rdx, qword [rbx + 0xd8]
test rdx, rdx
jne 0x100058a2d
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100058a26
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rdx, qword [rbx + 0xd8]
mov rcx, qword [rdx + 0x218]
mov rax, qword [rcx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [rax + reloc.WS2_32.dll_htonl]

Function at 0x100058a50
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100058a85
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100058a96
mov rdx, qword [rbx + 0xd8]
test rdx, rdx
jne 0x100058acd
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100058ac6
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rdx, qword [rbx + 0xd8]
mov rcx, qword [rdx + 0x218]
mov r8d, 1
mov rax, qword [rcx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [rax + 0x10]
Function at 0x100058b00
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100058b35
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100058b46
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x100058b7d
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100058b76
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
mov eax, dword [rax + 0x2d8]
mov rbx, qword [rsp + 0x30]
shr eax, 2
and eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x100058ba0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100058bd5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100058be6
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x100058c1d
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100058c16
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
mov eax, dword [rax + 0x220]
mov rbx, qword [rsp + 0x30]
shr eax, 9
and eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x100058c40
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, ecx
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100058c7c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100058c8d
mov rdx, qword [rbx + 0xd8]
test rdx, rdx
jne 0x100058cc4
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100058cbd
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rdx, qword [rbx + 0xd8]
test esi, esi
je 0x100058ce2
or dword [rdx + 0x220], 0x200
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rdx + 0x220]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov ecx, eax
btc ecx, 9
and ecx, eax
mov dword [rdx + 0x220], ecx
add rsp, 0x20
pop rdi
ret
Function at 0x100058d10
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100058d45
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100058d56
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x100058d8d
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100058d86
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
mov rax, qword [rax + 0x388]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x100058ff0
Capabilities:
Get thread local storage value
Print debug messages
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov r9d, r8d
mov r8d, edx
mov edx, ecx
lea rcx, [0x100002bd0]
add rsp, 0x28
jmp fcn.1001533b0

Function at 0x100059020
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
call fcn.10006c530
test eax, eax
jne 0x10005905d
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rax, qword [rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + rdi]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x100059d90
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1e0
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
lea rdx, [rsp + 0x30]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test eax, eax
jne 0x100059df2
movzx r8d, word [rsp + 0x30]
movzx ecx, r8w
movzx r9d, r8b
lea r8, [0x100003210]
shr cx, 8
movzx edx, cl
mov rcx, qword [0x10029b218]
mov dword [rsp + 0x20], edx
lea edx, [rax + 4]
call fcn.100156ed0
jmp 0x100059df8
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.10005f420
add rsp, 0x1e0
pop rbx
ret
Function at 0x10005a660
Capabilities:
Accept command line arguments

Disassembly:
push rbp
mov eax, 0x12a0
call fcn.10005f3c0
sub rsp, rax
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x58], 0xfffffffffffffffe
mov qword [rbp + 0x1270], rbx
mov qword [rbp + 0x1278], rdi
mov rax, qword [0x10022f440]
xor rax, rbp
mov qword [rbp + 0x1250], rax
call fcn.10006aeb0
mov rcx, qword [rax + 8]
shl rcx, 3
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x10005a6bb
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.10005f3c0
sub rsp, rax
lea rbx, [rsp + 0x40]
call fcn.10006aeb0
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 1
mov r9, rbx
mov r8, qword [rax + 8]
xor edx, edx
lea rcx, [rbp + 0x60]
call fcn.1000675e0
nop
call fcn.100059550
mov ebx, eax
test eax, eax
je 0x10005a718
mov edx, eax
lea rcx, [0x100003758]
call qword [sym.imp.MSVCR100.dll_wprintf]
nop
jmp 0x10005a82a
mov dword [rbp], edi
mov dword [rbp + 4], edi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rbp + 4]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
cmp dword [0x10024662c], 0
je 0x10005a786
mov edx, 1
lea rcx, [0x10005a5b0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x10005a763
mov rdx, rbx
mov ecx, dword [rbp + 4]
call fcn.10005a4a0
jmp 0x10005a827
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x100003790]
call qword [sym.imp.MSVCR100.dll_wprintf]
jmp 0x10005a827
lea rax, [0x1000026f0]
mov qword [rbp + 0x10], rax
lea rax, [fcn.10005a4a0]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rdi
mov qword [rbp + 0x28], rdi
lea rcx, [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x10005a7bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp], eax
mov dword [0x1002465e4], 1
mov qword [rbp + 8], rdi
mov qword [rsp + 0x20], 0xffffffffffffffff
lea r9, [rbp + 8]
mov r8d, 0x80
lea rdx, [rbp]
lea rcx, [fcn.10005c190]
call fcn.1000c8c40
mov dword [rbp + 0x30], 0x40014f
mov qword [rbp + 0x38], rdi
mov qword [rbp + 0x48], rdi
mov qword [rbp + 0x40], rdi
mov qword [rbp + 0x50], rdi
lea r8, [rbp + 0x30]
mov edx, 0x4e20
mov rcx, qword [rbp + 8]
call fcn.1000cfbc0
mov ecx, dword [rbp]
call fcn.1000c8a80
nop
lea rcx, [rbp + 8]
call fcn.100058450
mov ebx, dword [rbp]
lea rcx, [rbp + 0x60]
call fcn.100067830
mov eax, ebx
mov rcx, qword [rbp + 0x1250]
xor rcx, rbp
call fcn.10005f420
mov rbx, qword [rbp + 0x1270]
mov rdi, qword [rbp + 0x1278]
lea rsp, [rbp + 0x1260]
pop rbp
ret
Function at 0x10005b250
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14d, edx
mov rdi, rcx
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x10005b29e
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x10005b2af
mov rbx, qword [rbx + 0xd8]
test rbx, rbx
jne 0x10005b2e6
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x10005b2df
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rbx, qword [rbx + 0xd8]
cmp rbx, qword [rdi + 0x28]
je 0x10005b32f
lea rsi, [rdi + 0x30]
xor r9d, r9d
mov r8, rbp
mov edx, r14d
mov rcx, rdi
mov qword [rbx + 0xd0], rsi
call fcn.10005ae60
mov qword [rbx + 0xd0], 0
test eax, eax
jne 0x10005b335
mov qword [rdi + 0x38], 1
mov qword [rdi + 0x28], rbx
mov rcx, qword [rbx + 0x210]
mov qword [rsi], rcx
jmp 0x10005b335
inc qword [rdi + 0x38]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x10005b360
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.100068a00
mov rdi, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rdi, rax
call fcn.10006c530
test eax, eax
jne 0x10005b39d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rdi, rdi
je 0x10005b3ac
cmp qword [rdi + 0xd8], 0
jne 0x10005b3cd
call fcn.100063d30
call fcn.100068a00
mov rcx, rax
mov rdi, rax
call fcn.10006c530
test eax, eax
jne 0x10005b3cd
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec qword [rbx + 0x38]
jne 0x10005b3ec
lock or dword [rsp], 0
xor eax, eax
xor edx, edx
mov rcx, rbx
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rax
call fcn.10005b130
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret