joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801726d0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x1804e8c5c]
mov ebx, edi
test ecx, ecx
je 0x18017280b
mov rax, qword [0x1804e8c50]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180172728
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180172700
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18017280b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1801723f0
mov r8d, dword [0x1804e8c5c]
cmp ebx, r8d
jae 0x180172798
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1804e8c50]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180172791
mov edx, esi
mov ecx, ebx
call fcn.1801725a0
mov edi, eax
test eax, eax
jne 0x180172798
mov r8d, dword [0x1804e8c5c]
inc ebx
cmp ebx, r8d
jb 0x180172760
cmp qword [rsp + 0x20], 0
je 0x18017280b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1801727f7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1801727e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1801727c0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1804e5b40]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180172b60
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x1804e5b38], ebp
je 0x180172bb7
cmp rbx, 0x20
jae 0x180172ba0
xor ecx, ecx
jmp 0x180172ba2
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1804e5b38], ebp
jne 0x180172b96
cmp qword [0x1804e5b40], r15
je 0x180172cb1
test rdi, rdi
jne 0x180172bd7
mov ecx, esi
call fcn.1801726d0
mov ebp, eax
jmp 0x180172cb6
mov ecx, dword [0x1804e8c5c]
mov ebx, r15d
test ecx, ecx
je 0x180172bff
mov r8, qword [0x1804e8c50]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180172c09
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180172bf0
mov ebp, 4
jmp 0x180172cb6
cmp ebx, 0xffffffff
je 0x180172bff
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180172ca8
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1801723f0
mov edx, esi
mov ecx, ebx
call fcn.1801725a0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180172cb6
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180172c92
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180172c88
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180172c60
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1804e5b40]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180172cb6
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180172cb6
mov ebp, 2
xchg dword [0x1804e5b38], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x1801780a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rbx, 0xffffffffffffffff
nop dword [rax]
cmp byte [rcx + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x1801780c0
lea rdx, [rbx + 1]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
lea r8, [rbx + 1]
mov rdx, rsi
mov rcx, rax
call fcn.1803c8a30
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rdi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.dll_CloseClipboard]

Function at 0x180178130
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x13c0
call fcn.18038e800
sub rsp, rax
mov rax, qword [0x1804de580]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
mov edi, edx
mov ebx, ecx
call fcn.18038d308
mov dword [rsp + 0x24], eax
mov r9d, 1
mov r10d, 0x270
mov dword [rsp + 0x13a4], 0xffffffff
mov r8d, eax
shr r8d, 0x1e
xor r8d, eax
imul eax, r8d, 0x6c078965
add eax, r9d
mov dword [rsp + r9*4 + 0x24], eax
inc r9
cmp r9, r10
jb 0x180178183
lea eax, [rbx - 0x80000000]
mov dword [rsp + 0x20], r10d
mov ebp, 0x80000000
cmp ebx, ebp
lea esi, [rbx + rbp]
cmovae esi, eax
lea ebx, [rdi + rbp]
cmp edi, ebp
lea eax, [rdi - 0x80000000]
cmovae ebx, eax
sub ebx, esi
cmp ebx, 0xffffffff
jne 0x180178250
lea r8, [rsp + 0x28]
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1801781e0
mov eax, dword [rsp + 0x20]
mov edx, dword [rsp + rax*4 + 0x24]
mov eax, edx
shr eax, 0xb
and eax, dword [rsp + 0x13a4]
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
jmp 0x18017828e
lea rcx, [rsp + 0x20]
inc ebx
call fcn.1801ac190
mov ecx, eax
mov edi, ebx
imul rcx, rdi
cmp ecx, ebx
jae 0x18017828a
mov eax, ebx
xor edx, edx
neg eax
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x18017828a
lea rcx, [rsp + 0x20]
call fcn.1801ac190
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x180178276
shr rcx, 0x20
lea edx, [rsi + rcx]
cmp edx, ebp
lea ecx, [rdx - 0x80000000]
lea eax, [rdx + rbp]
cmovae eax, ecx
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.18038db10
lea r11, [rsp + 0x13c0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18018c4e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
test edx, edx
je 0x18018c546
cmp edx, 1
jne 0x18018c56f
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor ebx, ebx
lea r8, [0x18018b2a0]
mov qword [rsp + 0x28], rbx
mov r9, rdi
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r9, rdi
mov qword [rsp + 0x28], rbx
lea r8, [0x18018c3e0]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp dword [0x1804e6248], 0
je 0x18018c56f
call fcn.180172ce0
mov rcx, qword [0x1804e6410]
call fcn.18039d558
xor ebx, ebx
mov qword [0x1804e6410], rbx
mov dword [0x1804e6248], ebx
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x18018d560
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x18018d582
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x18018d5fc
mov rdi, r14
mov rcx, rbx
call fcn.1801929b0
test rax, rax
jle 0x18018d5d4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1803c8a30
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18018d5ec
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_getservbyport]
cmp eax, 0xffffffff
je 0x18018d5f4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x18018d596
sub r14, rdi
jmp 0x18018d6df
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x18018d613
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18018d615
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18018d647
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1803c8a30
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18018d6dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18018d682
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x18018d6bd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18039d7cc
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x18018d6dc
cmp rbp, rax
ja 0x18018d690
test rbp, rbp
je 0x18018d6dc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18039d7cc
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x180199b80
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x180199d2e
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1804e6548]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1804e6558]
lea rdx, [rdi + rdi]
call fcn.180193d40
mov rax, qword [0x1804e6548]
lea r9, [rdi - 1]
mov qword [0x1804e6570], r9
mov qword [0x1804e6578], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180199d23
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x1804e6558]
mov r9, qword [r11]
cmp r9, rbx
jne 0x180199c6f
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180199ce4
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x180199cac
mov r10, qword [rdx]
cmp r10, rax
je 0x180199ca6
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180199ce4
cmp r9, rdx
je 0x180199cc0
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x180199cf8
cmp r9, rdx
jne 0x180199cb1
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x180199d1e
mov r9, qword [0x1804e6570]
jmp 0x180199c20
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180199ce4
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.18038cac4
int3
Function at 0x1801ac190
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1801ac1f1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1801ac1b0
mov ecx, dword [r9]
jmp 0x1801ac2db
cmp ecx, 0x4e0
jb 0x1801ac2db
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1801ac210
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1801ac260
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x1801c6f60
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, reloc.WS2_32.dll_WSASetLastError
call fcn.18038e800
sub rsp, rax
mov rax, qword [0x1804de580]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r9
mov rbx, rcx
cmp edx, 0x1d
je 0x1801c6f97
mov eax, 0xfffffffe
jmp 0x1801c70b7
test rbx, rbx
je 0x1801c70b5
cmp r8d, 0x30
jne 0x1801c70b5
mov r8d, Ordinal_50
mov rdx, rdi
call fcn.1801c6e40
test eax, eax
jle 0x1801c70b5
movdqa xmm0, xmmword [str.6666666666666666O]
lea rdx, [rsp + 0x20]
mov r8d, Ordinal_45
movq qword [rsp + 0x40], xmm0
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call fcn.1801c6e40
test eax, eax
je 0x1801c70b5
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1801c6c40
test eax, eax
je 0x1801c70b5
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx + 0x14], xmm0
mov rdx, rdi
mov rcx, rbx
movups xmmword [rbx + 0x24], xmm0
lea r8d, [rax + 0x30]
movups xmmword [rbx + 0x34], xmm0
movups xmmword [rbx + 0x44], xmm0
mov qword [rbx + 0x54], rax
mov dword [rbx + 0x5c], eax
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
call fcn.1801c6e40
test eax, eax
jle 0x1801c70b5
movdqa xmm0, xmmword [0x1803ec800]
lea rdx, [rsp + 0x20]
mov r8d, Ordinal_45
movq qword [rsp + 0x40], xmm0
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call fcn.1801c6e40
test eax, eax
je 0x1801c70b5
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1801c6e40
test eax, eax
je 0x1801c70b5
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [rsp + 0x48]
call fcn.180001240
mov eax, 1
jmp 0x1801c70b7
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18038db10
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret

Function at 0x1801c7820
Capabilities:
Hash data using sha256

Disassembly:
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
mov qword [rcx + 0x60], rax
mov dword [rcx + 0x68], eax
mov eax, 1
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
mov dword [rcx + 0x6c], Ordinal_27
ret
Function at 0x1801c8d30
Capabilities:
Query environment variable

Disassembly:
mov eax, Ordinal_41
call fcn.18038e800
sub rsp, rax
cmp dword [0x1804e2520], 0
jne 0x1801c8eb0
mov qword [rsp + 0x40], rsi
lea r8d, [rax + 8]
mov qword [rsp + 0x48], rdi
lea rcx, [0x1803ec810]
mov qword [rsp + 0x30], rbx
lea rdi, [0x1804e24c0]
mov rdx, rdi
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x20], r14
mov dword [0x1804e2520], 1
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x2e
ja 0x1801c8e72
movzx ebx, word [0x1804e24c0]
xor ebp, ebp
cmp bx, 0x7e
mov ecx, ebp
mov r14d, 2
cmove ecx, r14d
add rcx, rdi
call fcn.1801c8ec0
mov rsi, rax
cmp bx, 0x7e
jne 0x1801c8df1
lea rcx, [0x1804e8c20]
mov rbx, rax
call fcn.180001030
not rsi
movabs rcx, 0xedfff7fdffffffff
and rax, rsi
and ebx, 0x1000000
mov rsi, rax
and rsi, rcx
test rbx, rbx
cmove rsi, rax
jmp 0x1801c8e0a
cmp word [0x1804e24c0], 0x3a
jne 0x1801c8e0a
lea rcx, [0x1804e8c20]
call fcn.180001030
mov rsi, rax
movzx eax, word [0x1804e24c0]
test ax, ax
je 0x1801c8e28
lea rdi, [rdi + 2]
cmp ax, 0x3a
je 0x1801c8e31
movzx eax, word [rdi]
test ax, ax
jne 0x1801c8e16
mov qword [0x1804e8c28], rbp
jmp 0x1801c8e81
movzx ebx, word [rdi]
cmp bx, 0x7e
cmove rbp, r14
lea rcx, [rdi + rbp]
call fcn.1801c8ec0
mov rcx, rax
shr rcx, 0x20
cmp bx, 0x7e
jne 0x1801c8e64
not eax
not ecx
and dword [0x1804e8c28], eax
and dword [0x1804e8c2c], ecx
jmp 0x1801c8e81
mov dword [0x1804e8c28], eax
mov dword [0x1804e8c2c], ecx
jmp 0x1801c8e81
lea rcx, [0x1804e8c20]
call fcn.180001030
mov rsi, rax
mov r14, qword [rsp + 0x20]
mov eax, esi
mov rdi, qword [rsp + 0x48]
bts eax, 0xa
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
shr rsi, 0x20
mov dword [0x1804e8c24], esi
mov rsi, qword [rsp + 0x40]
mov dword [0x1804e8c20], eax
add rsp, 0x28
ret

Function at 0x1801c9eb0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.18038e800
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x1801ca0a0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
push rdi
push r13
mov eax, Ordinal_50
call fcn.18038e800
sub rsp, rax
mov eax, dword [0x1804e2528]
mov r13d, ecx
mov ebx, 1
cmp eax, 2
je 0x1801ca11a
nop word [rax + rax]
xor eax, eax
lock cmpxchg dword [0x1804e2528], ebx
je 0x1801ca0f4
cmp eax, ebx
je 0x1801ca0d0
mov eax, dword [0x1804e2528]
xor ecx, ecx
cmp eax, 2
sete cl
test ecx, ecx
je 0x1801ca138
jmp 0x1801ca11a
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
lea r8, [0x1801c9fc0]
xor edx, edx
xor ecx, ecx
mov dword [0x1804e2524], eax
call fcn.1801ed910
mov dword [0x1804e2528], 2
mov r8d, reloc.WS2_32.dll___WSAFDIsSet
lea rdx, str.crypto_threads_win.c
lea ecx, [r8 - 0x3f]
call fcn.1801b8550
mov rdi, rax
test rax, rax
jne 0x1801ca143
xor eax, eax
add rsp, 0x30
pop r13
pop rdi
pop rbx
ret
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.1801f60c0
mov qword [rdi + 0x30], rax
call fcn.1801f5cc0
mov qword [rdi + 0x40], rax
call fcn.1801f5cc0
mov qword [rdi + 0x50], rax
call fcn.1801f60c0
mov qword [rdi + 0x38], rax
call fcn.1801f60c0
mov qword [rdi + 0x48], rax
call fcn.1801f60c0
cmp r13d, ebx
mov qword [rdi + 0x30], rax
mov r8d, 0x85
lea rdx, str.crypto_threads_win.c
cmovge ebx, r13d
inc ebx
movsxd rbx, ebx
lea rcx, [rbx*8]
call fcn.1801b8550
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1801ca1e8
cmp qword [rdi + 0x40], 0
je 0x1801ca1e8
cmp qword [rdi + 0x50], 0
je 0x1801ca1e8
cmp qword [rdi + 0x30], 0
je 0x1801ca1e8
cmp qword [rdi + 0x38], 0
je 0x1801ca1e8
cmp qword [rdi + 0x48], 0
jne 0x1801ca241
mov r8d, 0xa9
lea rdx, str.crypto_threads_win.c
mov rcx, rax
call fcn.1801b82c0
lea rcx, [rdi + 0x40]
call fcn.1801f5c20
lea rcx, [rdi + 0x50]
call fcn.1801f5c20
lea rcx, [rdi + 0x38]
call fcn.1801f6050
lea rcx, [rdi + 0x48]
call fcn.1801f6050
lea rcx, [rdi + 0x30]
call fcn.1801f6050
mov r8d, 0xaf
lea rdx, str.crypto_threads_win.c
mov rcx, rdi
call fcn.1801b82c0
xor edi, edi
mov r15, qword [rsp + 0x20]
mov rax, rdi
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop r13
pop rdi
pop rbx
ret
Function at 0x1801ca270
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.18038e800
sub rsp, rax
mov rbx, rcx
lea esi, [rax - 0x21]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1804e2524]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x1801ca2fe
mov r8d, 0xde
lea rdx, str.crypto_threads_win.c
lea ecx, [r8 + 0x12]
call fcn.1801b8550
mov r14, rax
test rax, rax
jne 0x1801ca2ef
mov r8d, 0xdf
lea rdx, str.crypto_threads_win.c
lea rcx, str.assertion_failed:_data___NULL
call fcn.1801b8590
mov ecx, dword [0x1804e2524]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
mov rax, r14
cmp qword [rax], 0
jne 0x1801ca30f
cmp esi, 0xffffffff
cmove esi, ecx
cmp qword [rax + 0x10], rbx
je 0x1801ca3d3
inc ecx
add rax, 0x18
cmp ecx, 0xa
jl 0x1801ca303
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
nop dword [rax + rax]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x1801ca330
mov rcx, qword [rbx + 0x10]
mov r8d, eax
lea rdx, [r8*8]
lock inc qword [rdx + rcx]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x1801ca354
cmp r8d, eax
je 0x1801ca3b2
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0x10]
lock dec qword [rdx + rax]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x1801ca380
mov r8d, eax
mov rax, qword [rbx + 0x10]
lea rdx, [r8*8]
lock inc qword [rdx + rax]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x1801ca3a4
cmp r8d, eax
jne 0x1801ca370
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x10]
lea rdx, [r14 + rcx*8]
mov dword [rdx + 8], 1
mov qword [rdx + 0x10], rbx
lea rcx, [rax + r8*8]
mov qword [rdx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret