joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180009dc0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x180009e1d
lea rbx, [0x1800a5910]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180009e04
cmp r10, 2
jb 0x180009e04
cmp byte [r9], r8b
jne 0x180009e04
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180009de0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180009e5f
lea rbx, [0x1800a5910]
cmp r8b, 0x23
jne 0x180009e43
cmp byte [r9], r8b
jne 0x180009e43
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180009e30
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180009fa0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180009fba
mov qword [r8], 0
lea rdx, [0x1800aad40]
call fcn.180009e70
mov rbx, rax
test rax, rax
jne 0x180009fda
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x18000a0b3
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18000a0b3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x18000a0b3
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18000a0b3
cmp rdi, 0xffffffffffffffff
je 0x18000a0b3
mov rax, qword [0x1800c8910]
test rax, rax
je 0x18000a050
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x18000a0b3
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x18000a0a0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1800c8910]
test rax, rax
je 0x18000a095
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18000a0bc
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18000a0ae
mov qword [r14], rdi
mov rax, rsi
jmp 0x18000a0be
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x18000d050
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov r11, rcx
lea rdi, [0x1800a5910]
movsxd rcx, dword [rcx + 0xf0]
mov r10d, edx
shr r10d, 0x18
mov r8d, edx
shr r8d, 8
mov r9d, edx
mov rax, qword [r11 + 0xf8]
shr r9d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r8b
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, r10
shr ebx, 8
xor ebx, dword [rdi + rcx*4]
mov rcx, qword [r11]
not ebx
cmp dword [rcx + 0x3f10], ebx
jne 0x18000d0e4
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.18001ff70
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18000d100
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
movss xmm0, dword [rcx + 0x110]
lea r10, [0x1800a5910]
mov rax, qword [rcx + 0xf8]
movss xmm1, dword [rcx + 0x114]
movss xmm2, dword [rdx]
movss xmm4, dword [rdx + 8]
subss xmm2, xmm0
movss xmm3, dword [rdx + 4]
subss xmm4, xmm0
movss xmm0, dword [rdx + 0xc]
subss xmm3, xmm1
movsxd rcx, dword [rcx + 0xf0]
subss xmm0, xmm1
movd r8d, xmm2
movss dword [rsp], xmm2
mov r9d, dword [rax + rcx*4 - 4]
movzx eax, byte [rsp]
not r9d
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
movss dword [rsp + 4], xmm3
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
movss dword [rsp + 8], xmm4
movss dword [rsp + 0xc], xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 4]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm3
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 8]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm4
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
shr eax, 8
movzx edx, al
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
mov eax, r8d
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 0xc]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
shr r8, 0x18
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx edx, r9b
shr r9d, 8
xor r8, rdx
xor r9d, dword [r10 + r8*4]
not r9d
mov eax, r9d
add rsp, 0x18
ret
Function at 0x180010be0
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180010c30
lea r11, [0x1800a5910]
nop dword [rax]
cmp r9b, 0x23
jne 0x180010c13
cmp byte [r8], r9b
jne 0x180010c13
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180010c00
mov rcx, qword [0x1800c8910]
not eax
movsxd rdx, dword [rcx + 0x3ea8]
mov r9, qword [rcx + 0x3eb0]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x180010c91
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x180010c89
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x180010c8c
mov rdx, r8
test rdx, rdx
jne 0x180010c60
cmp r9, r10
je 0x180010ca0
cmp dword [r9], eax
jne 0x180010ca0
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x18001e760
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c58], 0
lea rbx, [rcx + 0x5c60]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x18001e807
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18001e7ba
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1800210e0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.18000a4e0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c58]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c68]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1800c8908]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18001e80f
mov rcx, rbx
call fcn.18000a4e0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18001eba0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1800c8910]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18001ec03
mov qword [rsp], rbx
lea rbx, [0x1800a5910]
nop dword [rax]
cmp r9b, 0x23
jne 0x18001ebe3
cmp byte [r8], r9b
jne 0x18001ebe3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x18001ebd0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5bd0]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x18001ec37
mov r10, qword [r10 + 0x5bd8]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x18001ec3e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x18001ec24
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x180041750
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
test dword [rcx + 0x10], 0x100000
mov rdi, rdx
je 0x1800417dc
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x1800417b0
lea r11, [0x1800a5910]
nop
cmp r9b, 0x23
jne 0x180041793
cmp byte [r8], r9b
jne 0x180041793
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180041780
mov rcx, qword [0x1800c8910]
not eax
cmp dword [rcx + 0x3f28], eax
jne 0x1800417c7
mov dword [rcx + 0x3f2c], eax
cmp dword [rcx + 0x3f58], eax
jne 0x180041839
mov byte [rcx + 0x3f5c], 1
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x1800c8910]
xor edx, edx
mov qword [rsp + 0x30], rbx
mov rcx, rdi
mov qword [rsp + 0x38], rsi
mov rbx, qword [rax + 0x3ec8]
movsxd rax, dword [rbx + 0xf0]
mov r8, qword [rbx + 0xf8]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.180009dc0
mov rcx, qword [rbx]
mov esi, eax
mov rbx, qword [rsp + 0x30]
cmp dword [rcx + 0x3f10], eax
jne 0x180041832
mov r8, rdi
mov edx, ntohl
mov ecx, eax
call fcn.18001ff70
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180044220
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1800442b7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1800442b7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xac2fcd69
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x1800442b2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x180044290
cmp r8d, 0xa3fb0dc7
je 0x1800442bc
test r9d, r9d
jne 0x180044270
mov rax, qword [rax]
jmp 0x180044240
mov ecx, dword [rbx + 0x24]
mov r8d, 0x40
add rcx, r10
movzx edx, word [rcx + r9*2]
lea r9, [0x1800c8930]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov edx, 1
mov rcx, qword [0x1800c8948]
add rax, r10
call rax
mov rax, qword [0x1800c8938]
mov rcx, qword [0x1800c8948]
mov qword [rax], rcx
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x180044387
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x180044387
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xb13edfd2
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x180044382
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x180044360
cmp r8d, 0x32fb2a78
je 0x18004438c
test r9d, r9d
jne 0x180044340
mov rax, qword [rax]
jmp 0x180044310
mov ecx, dword [rbx + 0x24]
mov edx, 1
add rcx, r10
movzx r8d, word [rcx + r9*2]
lea r9, [0x1800c8930]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + r8*4]
mov r8d, dword [0x1800c8930]
add rax, r10
mov rcx, qword [0x1800c8948]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
Function at 0x180044690
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1800c31c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [0x1800c89e8]
mov rbp, rcx
mov dword [rsp + 0x44], 0
test rax, rax
jne 0x180044787
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rsi, qword [rax]
mov r11, rsi
nop word [rax + rax]
mov r9, qword [r11 + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x180044768
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x180044768
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r8d
mov edx, 0xe5260b03
lea rax, [rdi + r8*4]
mov ecx, dword [rax + r9]
add rcx, r9
movzx eax, byte [rcx]
inc rcx
test al, al
je 0x180044763
nop dword [rax]
movsx eax, al
lea rcx, [rcx + 1]
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [rcx - 1]
test al, al
jne 0x180044740
cmp edx, 0xb059807a
je 0x1800448b6
test r8d, r8d
jne 0x180044720
mov rax, qword [r11]
mov r11, rax
cmp rax, rsi
je 0x18004477e
cmp qword [rax + 0x30], 0
jne 0x1800446f0
xor eax, eax
mov qword [0x1800c89e8], rax
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbp
call rax
mov eax, dword [rsp + 0x44]
test al, 0xe6
je 0x180044891
bt eax, 8
jb 0x180044891
lea rax, [rbp - 0xfffffff]
movabs rcx, 0x7ffff0000000
cmp rax, rcx
ja 0x180044891
mov rax, qword [0x1800c89d0]
test rax, rax
jne 0x180044883
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rsi, qword [rax]
mov r11, rsi
nop
mov r9, qword [r11 + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x180044864
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x180044864
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r8d
mov edx, 0x762b6c74
lea rax, [rdi + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x18004485f
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x180044840
cmp edx, 0xeaeb4ccf
je 0x1800448d2
test r8d, r8d
jne 0x180044820
mov rax, qword [r11]
mov r11, rax
cmp rax, rsi
je 0x18004487a
cmp qword [rax + 0x30], 0
jne 0x1800447f0
xor eax, eax
mov qword [0x1800c89d0], rax
mov edx, 8
mov rcx, rbp
call rax
test eax, eax
je 0x180044893
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180097330
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x180044780
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x18004487c
Function at 0x1800461e0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1800c31c0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x1800c7f98], eax
inc eax
cmp eax, 1
jne 0x18004622f
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1800c7f9c], eax
test dil, dil
je 0x180046242
xor eax, eax
lock xadd dword [0x1800c7f9c], eax
test eax, eax
jne 0x180046266
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.180097330
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov dword [rsp + 0x20], eax
call fcn.180046bf0
lea rdx, str.winsock
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call fcn.180046b50
int3

Function at 0x18004ae50
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x70
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x1800c7f90]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18004af85
cmp qword [rax], rbx
je 0x18004ae8c
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x18004ae78
add rsp, 0x70
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x18004af85
mov ecx, dword [rbx + 0x60]
test ecx, ecx
je 0x18004af49
cmp ecx, 1
jne 0x18004af85
xorps xmm0, xmm0
mov dword [rbx + 0x60], 2
lea rdx, [rbx + 0x68]
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x30], xmm0
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_
xorps xmm0, xmm0
lea rax, vtable.asio::multiple_exceptions.0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
movups xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm0
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_
lea rcx, [rsp + 0x30]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea r8, [0x1800bedf8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCopyException_void____ptr64__void_const____ptr64__void_const____ptr64_
lea rcx, [rsp + 0x58]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call sub.VCRUNTIME140.dll___std_exception_destroy
jmp 0x18004af6d
xorps xmm0, xmm0
mov dword [rbx + 0x60], 1
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea rcx, [rsp + 0x20]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCurrentException_void____ptr64_
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x68]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrAssign_void____ptr64__void_const____ptr64_
lea rcx, [rsp + 0x20]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
add rsp, 0x70
pop rbx
ret
Function at 0x18004bec0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rbx, rcx
mov rax, qword [rcx + 8]
mov r9d, 0xffffffff
mov ecx, 2
mov qword [rsp + 0x28], rax
xor r8d, r8d
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 [0x1800c8018], eax
test eax, eax
mov rax, qword [rbx + 8]
je 0x18004bf21
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x30
pop rbx
ret
xor r8d, r8d
lea rcx, [fcn.180008340]
mov rdx, rax
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 0x18004d0d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x18004d0ff
mov rax, qword [rax + 0x38]
test rax, rax
je 0x18004d0f7
xor edx, edx
mov rcx, rax
call qword [rax]
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x18004d149
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18004d138
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x18004d138
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x18004d154
inc ecx
inc rax
cmp rax, 2
jl 0x18004d126
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18004d2c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x18004d2f0
add rcx, 0x68
cmp qword [rcx + 0x20], 0
je 0x18004d2e8
mov rax, qword [rcx + 0x18]
call qword [rax]
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x18004d33a
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18004d329
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x18004d329
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x18004d345
inc ecx
inc rax
cmp rax, 2
jl 0x18004d317
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xa0]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18004d370
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x18004d3a0
add rcx, 0x60
cmp qword [rcx + 0x20], 0
je 0x18004d398
mov rax, qword [rcx + 0x18]
call qword [rax]
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x18004d3ea
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18004d3d9
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x18004d3d9
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x18004d3f5
inc ecx
inc rax
cmp rax, 2
jl 0x18004d3c7
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x98]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18004d4d0
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, 0xc0
mov rsi, rdx
mov rbx, rcx
xor edi, edi
mov eax, edi
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x18004d519
call fcn.18004dfe0
mov dword [rsp + 0x20], edi
lea rax, [0x1800c3050]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xor eax, eax
jmp 0x18004d62d
mov dword [rsp + 0xa0], edi
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0xb0], rdi
lea rcx, [rsp + 0xa8]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
lea rax, [rbx + 0x28]
test rbx, rbx
cmove rax, rdi
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r9, rsi
lea r8, [rsp + 0x40]
mov edx, 0xffffffff
mov rcx, rbx
call fcn.18004b6f0
test rax, rax
je 0x18004d5e9
nop dword [rax + rax]
lea rax, [rdi + 1]
cmp rdi, 0xffffffffffffffff
cmove rax, rdi
mov rdi, rax
mov r9, rsi
lea r8, [rsp + 0x40]
mov edx, 0xffffffff
mov rcx, rbx
call fcn.18004b6f0
test rax, rax
jne 0x18004d5c0
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rbx, [rsp + 0x40]
mov esi, ntohl
mov rcx, qword [rbx]
test rcx, rcx
je 0x18004d613
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add rbx, 8
sub rsi, 1
jne 0x18004d605
lea rcx, [rsp + 0xa8]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
mov rax, rdi
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret