joyce8/EMBER2024-capa huggingface dataset:
Function at 0x141866cac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
mov r8, qword [rsp + 0x30]
jl 0x141352e51
movabs r14, 0x532020ca6437669e
mov r12, r14
call fcn.14136c193
pushfq
test r8b, 0x45
jno 0x141352e44

Function at 0x141866cbd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor qword [rsp + 0x30], 0x523f375a
test qword [rsp + 0x30], 0x33e7f98
call fcn.141717047
neg byte [rsp + 0x38]
add byte [rsp + 0x38], 0x48
add byte [rsp + 0x38], 4
not dword [rsp + 0x38]
push qword [rsp + 0x30]
popfq
lea rsp, [rsp + 0x50]
call fcn.141cb0616
rcr dword [rdx], 0xf0
sahf
mov edx, 0xa57e68b6
add ebx, ebp
invalid
movsx r11d, byte [rsp + 0x36]
mov r11, qword [rsp + 0x10]
jge 0x140366536
cmp dword [rsp + 0x38], 0x25904797
mov rdi, qword [rsp + 0x28]
ja 0x1410e1d99
mov ebp, 0xf724e5f2
sbb eax, 0x643b8bdb
sbb ebx, ebx
je 0x141866d59
sub dword [rbx + rbx*8], ebx
jne 0x141866c9b
xchg ecx, esp
and al, 0x9e
or bh, byte [rbx + 0x45e624ed]
adc al, 0xe6
and al, 0xff
pop rax
sub dh, bl
and al, 0xa7
sbb byte [rcx], al
adc bl, bl
imul dh
cmc
in al, dx
and al, 0x51
xchg dword [rbx - 0x13], eax
and al, 0xc
insd dword [rdi], dx
test al, 0xe8
and al, 0x90
invalid
popfq
iretd

Function at 0x1418d551f
Capabilities:
Encode data using xor

Disassembly:
invalid
mov esi, 0x2474ff
popfq
lea rsp, [rsp + 0x10]
call fcn.141c30e2d
push qword [rsp + 0x30]
popfq
lea rsp, [rsp + 0x38]
call fcn.141c3c19c
jl 0x1418d550f
jne 0x1418d54d4
invalid

Function at 0x1419c790a
Capabilities:
Encode data using xor

Disassembly:
push rdx
movabs rdx, 0xfa2bda53377f15
jbe 0x1412b4fdf

Function at 0x1419d264f
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
fbstp tbyte [rsi + 0x5dbcd722]
push rbp
cmp bh, byte [rdx]
mov ebp, 0x3d2797f5
psubsb mm3, qword [rsp + riz*8 - 8]
sbb dword [rax], 0xb101373c
pop rax
lea ebp, [rcx - 0x8f3cb3a]
jae 0x1419d25f7
adc dword [rbp - 0x31], ebx
int 0x3e
invalid
add qword [rsp + 0x10], 0xffffffffbe571a32
call fcn.14137cf3d
jns 0x1419d266e
and al, 0x23
invalid
je 0x1419d260a
cmp eax, 0xc22ebbe3
invalid

Function at 0x1419dadb0
Capabilities:
Encode data using xor

Disassembly:
add ebx, dword [0x1bc464182]
sbb byte [rbx], ch
movabs rbx, 0x18476f7c3d826b31
mov rbx, qword [rsp + 0x18]
sbb byte [r8 - 0x75], r9b
pop rsp
and al, 0x18
mov ecx, 0x1ee92dbd
not cx
setge cl
neg cl
mov rcx, qword [rsp + 0x20]
add qword [rsp + 0x30], 0xffffffffbe339e84
push qword [rsp + 0x28]
popfq
lea rsp, [rsp + 0x38]
call fcn.141bbf02e
in al, 0x3f
enter 0xffffffffffffa07f, 0x76
movabs dword [0xd47fff5bac047ff8], eax
sub r15b, byte [rax]
xor byte [rdx + rdx*4 - 0x67fffbc], 0x8e
add ebp, 0x43b74f7f
sti
jg 0x1419dadb8
imul esp, edx, 0x3e
sbb dh, 0x89
push rdx
add dword [rax - 0x3ec42483], eax
jg 0x1419dada8
or dl, byte [rdx]
cmp al, 0x80
or dword [rcx + 0x39], eax
sar dword [rdi + 0x58], 0xe
invalid

Function at 0x141af3f45
Capabilities:
Encode data using xor

Disassembly:
add qword [rsp + 0x10], 0xffffffffbe33d6c3
sub bp, bp
bswap ebp
neg bpl
mov rbp, qword [rsp + 0x18]
push qword [rsp + 0x20]
popfq
lea rsp, [rsp + 0x30]
call fcn.141c8460d
Function at 0x141b76dd9
Capabilities:
Encode data using xor

Disassembly:
jge fcn.1413d6518
mov r10, qword [rsp + 0x20]
call fcn.141a2773c
add bl, byte [rcx + rdx*8]
xchg al, dl
lodsq rax, qword [rsi]
sub edi, dword [rsi - 0x6e3ad78a]
ror dword [r11 + rdi - 0x65], 1
mov r13b, 0xeb
pop rbp
pop rdi
mov esi, 0xdeb18cc2
push r12
cli
movabs eax, dword [0xc541b2fd64babe6d]
enter 0xffffffffffff944e, 0x41
cli
ja 0x141b76e48
stosd dword [rdi], eax
and dword [r14 + riz*2 - 0x19], edi
sub edx, r13d
adc dword [rdi], ebx
mov esi, 0x2b0e0fd5
mov esi, 0x916602dc
jrcxz 0x141b76e4e
cwde
wait
adc r14, r15
pop rdi
mov esi, 0xde129618
invalid
invalid
mov esi, 0x6449d85e
stosb byte [rdi], al
and ebx, esp
fcomp qword [rbx - 0x1c]
movabs dword [0xd8b510582dc29e0a], eax
or al, 0xe9
add dword [rsi + 0x177ba23], ebp
pop rdx
punpckldq mm0, dword [rax + 0x4c0b5a5]
mov dword [rdi], ebx
invalid

Function at 0x141b8266a
Capabilities:
Encode data using xor

Disassembly:
bswap r11d
setns r11b
test r11d, r11d
mov r11, qword [rsp + 0x18]
jns 0x1415e3ea2
Function at 0x140011098
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400110d6
cmp word [rcx], 0x5a4d
jne 0x1400110d6
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x1400110d6
call fcn.1400075c9
mov rcx, qword [0x1400b6bd0]
mov rbx, rax
call fcn.140015130
cmp byte [rax], 0
jne 0x1400110d6
cmp dword [rbx], 0x4550
je 0x1400110d8
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1400142a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14001a1d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140014310
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400bbb04]
test esi, esi
mov rbx, rcx
jle 0x140014440
mov rax, qword [0x1400bbb08]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001435b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400143e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140014340
mov rcx, rbx
call fcn.140014d80
test rax, rax
mov rdi, rax
je 0x140014462
mov rax, qword [0x1400bbb08]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140014ec0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400bbb08]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140014447
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400143de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400143f0
add dword [0x1400bbb04], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400bbb08]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400143de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400142a0
nop dword [rax]
xor esi, esi
jmp 0x140014368
mov rax, qword [0x1400bbb08]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.1400142a0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.1400142a0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400149d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400bbb60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400bbb40]
test rbx, rbx
je 0x140014a2c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140014a23
test rsi, rsi
je 0x140014a23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014a08
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140014c40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014c78
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014c80
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014c50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014c78
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014c80
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014c60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014c78
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014c80
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014d80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400b6be0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140014da0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140014da8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140014da0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140014dfd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140014df4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140014da0
add rax, 0x28
cmp rax, r9
jne 0x140014de0
xor eax, eax
ret

Function at 0x140014e00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400b6be0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140014e1f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140014e28
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140014e1f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140014ec0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400b6be0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140014edf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140014ee8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14001b020
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x87], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14001b12a
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x14001b102
add rax, 1
cmp rax, 0x6b
je 0x14001b11f
cmp byte [rcx + rax], 0
jne 0x14001b0f8
cmp eax, 0x6a
movsxd rdx, eax
je 0x14001b11f
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x14001b113

Function at 0x14001b4a0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400bc650], 1
je 0x14001b518
lea rdi, [0x1400bc650]
mov rcx, rdi
call fcn.14001ada0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001a720
mov esi, dword [0x1400bc650]
test esi, esi
jne 0x14001b528
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x140020678], eax
je 0x14001fef6
mov dword [0x1400bc650], 1
mov rcx, rbp
call fcn.14001aa10
test rbx, rbx
je 0x14001b518
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001b140
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14001b4f8
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.14001a1f0
jmp 0x14001b4f8
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
Function at 0x180005450
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1800054d9
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x1800a2a00]
mov edi, eax
mov rcx, qword gs:[0x58]
mov eax, 4
mov rcx, qword [rcx + rdx*8]
mov edx, dword [rax + rcx]
cmp dword [0x1800a40a0], edx
jle 0x1800054c0
lea rcx, [0x1800a40a0]
call fcn.180050638
cmp dword [0x1800a40a0], 0xffffffff
jne 0x1800054c0
lea rcx, [0x18007f660]
call fcn.180050b14
lea rcx, [0x1800a40a0]
call fcn.1800505cc
lea rax, [0x1800a0e08]
mov dword [rsp + 0x20], edi
test edi, edi
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x40]
jne 0x1800054e1
mov eax, ebx
add rsp, 0x30
pop rbx
ret
lea rdx, [0x18008d490]
lea rcx, [rsp + 0x20]
call fcn.1800050a0
int3

Function at 0x180005730
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
cmp dword [r8 + 8], 0x5b0
mov rbx, r8
mov rsi, rdx
mov ebp, ecx
jne 0x180005785
lea rcx, str.GuildedCapture_message_hook_enter
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r8, qword [0x1800a40b0]
mov rax, qword [rbx + 0x18]
test r8, r8
je 0x18000577e
cmp r8, rax
je 0x180005785
mov rcx, rax
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
jmp 0x180005785
mov qword [0x1800a40b0], rax
cmp qword [rbx], 0
je 0x1800057f9
mov qword [rsp + 0x30], rdi
call fcn.180027cc0
mov ecx, dword [0x1800a2a00]
mov rax, qword gs:[0x58]
mov rdi, qword [rbx]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1800a49e8], ecx
jle 0x1800057ed
lea rcx, [0x1800a49e8]
call fcn.180050638
cmp dword [0x1800a49e8], 0xffffffff
jne 0x1800057ed
call fcn.18001dcc0
lea rcx, [0x18007fde0]
call fcn.180050b14
lea rcx, [0x1800a49e8]
call fcn.1800505cc
xchg qword [0x1800a4b28], rdi
mov rdi, qword [rsp + 0x30]
mov r9, rbx
mov r8, rsi
mov edx, ebp
xor ecx, ecx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.USER32.dll_CallNextHookEx]
Function at 0x1800059b0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1800a0040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea rcx, [rsp + 0x90]
call fcn.180005130
nop
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.180006250
mov rbx, rax
mov qword [rsp + 0x20], rax
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.180006250
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180005500
lea r8, [rsp + 0x70]
cmp qword [rsp + 0x88], 7
cmova r8, qword [rsp + 0x70]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov rdi, rax
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x180005a87
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005a82
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005b85
call fcn.180050b2c
movdqa xmm0, xmmword [0x180090ab0]
movdqu xmmword [rsp + 0x80], xmm0
xor esi, esi
mov word [rsp + 0x70], si
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x180005ade
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x180005ad9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180005b8b
mov rcx, r8
call fcn.180050b2c
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
test rdi, rdi
je 0x180005b11
mov edx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180005b11
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x180005b13
mov bl, 1
mov rdx, qword [rsp + 0xa8]
cmp rdx, 7
jbe 0x180005b57
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005b52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005b7f
call fcn.180050b2c
movzx eax, bl
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.180050570
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.18005c4f8
nop
call fcn.18005c4f8
nop
call fcn.18005c4f8
int3
Function at 0x1800060c0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1800a0040]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx ebx, dl
mov rdi, rcx
mov eax, 1
lock xadd dword [0x1800a4740], eax
inc eax
cmp eax, 1
jne 0x18000610d
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1800a4744], eax
test bl, bl
je 0x18000611f
xor ebx, ebx
lock xadd dword [0x1800a4744], ebx
test ebx, ebx
jne 0x180006143
mov rax, rdi
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.180050570
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov ecx, dword [0x1800a2a00]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1800a40a0], ecx
jle 0x180006193
lea rcx, [0x1800a40a0]
call fcn.180050638
cmp dword [0x1800a40a0], 0xffffffff
jne 0x180006193
lea rcx, [0x18007f660]
call fcn.180050b14
lea rcx, [0x1800a40a0]
call fcn.1800505cc
lea rax, [0x1800a0e08]
mov dword [rsp + 0x20], ebx
lea rdx, str.winsock
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call fcn.1800050a0
int3

Function at 0x1800072d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, dword [0x1800a4940]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rbx, [rdi + 3]
xor esi, esi
shr rbx, 2
test rax, rax
je 0x180007333
mov rax, qword [rax + 8]
test rax, rax
je 0x180007333
mov rcx, qword [rax]
test rcx, rcx
je 0x180007333
mov qword [rax], rsi
movzx eax, byte [rcx]
cmp rax, rbx
jb 0x18000732e
mov byte [rcx + rdi], al
mov rax, rcx
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
call fcn.180050b68
lea rcx, [rbx*4 + 1]
call fcn.1800506b0
cmp rbx, 0xff
movzx ecx, bl
cmova ecx, esi
mov byte [rax + rdi], cl
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x180007360
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x1800a4940]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18000738d
mov r8, qword [rax + 8]
jmp 0x180007390
xor r8d, r8d
cmp rdi, 0x3fc
ja 0x1800073b4
test r8, r8
je 0x1800073b4
cmp qword [r8], 0
jne 0x1800073b4
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
mov qword [r8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.180050b68
Function at 0x1800075e0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x1800a4750], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x18000763d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x30
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.180004a20]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x180008073
call fcn.1800081c0
mov dword [rsp + 0x20], ebx
lea rax, [0x1800a0df8]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov dword [rsp + 0x50], ebx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
lea rcx, [rsp + 0x58]
call fcn.180052430
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rbx
lea rax, [rdi + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x1800a4940]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x1800a4940]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r9, rsi
lea r8, [rsp + 0x38]
mov rcx, rdi
call fcn.180008440
test rax, rax
je 0x180008114
nop word [rax + rax]
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
mov r9, rsi
lea r8, [rsp + 0x38]
mov rcx, rdi
call fcn.180008440
test rax, rax
jne 0x1800080f0
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x1800a4940]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180008135
call fcn.180050b68
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180008144
call fcn.180050b68
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180008153
call fcn.180050b68
lea rcx, [rsp + 0x58]
call fcn.1800524bc
mov rax, rbx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret