joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415e20
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41604a
sub rsp, 0x58
mov qword [rsp + 0x50], rbp
lea rbp, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00430100
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x415e9b
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x415eae
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x415ed0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x415ee4
cmp rbx, 0x1000
jae 0x415ea5
jmp 0x415f6e
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x415ef6
xor esi, esi
jmp 0x415f60
mov rax, qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
nop dword [rax]
call fcn.00430100
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
test sil, sil
jne 0x415eda
jmp 0x415ec2
call fcn.0045efc0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x415fe9
call fcn.00435040
lea rax, [0x004ae225]
mov ebx, 0x19
call fcn.00435940
mov rax, qword [rsp + 0x68]
call fcn.00435640
lea rax, [0x004ade6f]
mov ebx, 0x19
nop
call fcn.00435940
mov eax, dword [rsp + 0x34]
call fcn.00435640
call fcn.004352a0
call fcn.004350c0
lea rax, [0x004aaeb3]
mov ebx, 0xd
call fcn.004338c0
cmp eax, 0x5af
je 0x415f93
call fcn.00435040
lea rax, [0x004ae225]
mov ebx, 0x19
call fcn.00435940
mov rax, qword [rsp + 0x38]
call fcn.00435640
lea rax, [0x004ade6f]
mov ebx, 0x19
nop dword [rax]
call fcn.00435940
mov eax, dword [rsp + 0x34]
call fcn.00435640
call fcn.004352a0
call fcn.004350c0
lea rax, [0x004af8b6]
mov ebx, 0x1f
call fcn.004338c0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045b440
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00415e20
Function at 0x45d5e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00664520]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x00664293], 0
je 0x45d616
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x006647a0]
aesenc xmm0, xmmword [0x006647b0]
aesenc xmm0, xmmword [0x006647c0]
movq rax, xmm0
ret
jmp 0x409620

Function at 0x45ef40
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.KERNEL32.DLL_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x00664720]
mov qword [rsp + 8], rdx
lea r8d, [0x006642a8]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.KERNEL32.DLL_WriteFile]
call rax
call fcn.0045d4e0
add rsp, 0x30
ret

Function at 0x45fe00
Capabilities:
Access peb ldr_data

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x70], rbp
lea rbp, [rsp + 0x70]
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], r11
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x50], rax
call fcn.00459f60
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret

Function at 0x45fea0
Capabilities:
Access peb ldr_data

Disassembly:
sub rsp, 0x90
mov qword [rsp + 0x88], rbp
lea rbp, [rsp + 0x88]
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], r11
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x68], rax
call fcn.0045a0a0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
add rsp, 0x90
ret
Function at 0x45ff60
Capabilities:
Access peb ldr_data

Disassembly:
sub rsp, 0xa8
mov qword [rsp + 0xa0], rbp
lea rbp, [rsp + 0xa0]
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], r11
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rax
call fcn.0045a1e0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa0]
add rsp, 0xa8
ret

Function at 0x460060
Capabilities:
Access peb ldr_data

Disassembly:
sub rsp, 0xc0
mov qword [rsp + 0xb8], rbp
lea rbp, [rsp + 0xb8]
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], r11
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x98], rax
nop
call fcn.0045a320
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xb8]
add rsp, 0xc0
ret
Function at 0x140001990
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x2c0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x14000a008]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov esi, ecx
xor bl, bl
xor edx, edx
lea ecx, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x74]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x70], 0x238
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001a2c
mov ebp, 1
nop word [rax + rax]
movzx ebx, bl
cmp dword [rsp + 0x78], esi
cmove ebx, ebp
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001a10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x140001acc
mov qword [rsp + 0x50], 0xf
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x38], bl
mov r8d, 5
lea rdx, str.ESRCH
lea rcx, [rsp + 0x38]
call fcn.140001fb0
nop
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rax, qword [rsp + 0x38]
lea rcx, vtable.std::exception.0
mov qword [rsp + 0x20], rcx
xor ecx, ecx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x68], 1
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x60]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
lea rax, vtable.std::invalid_argument.0
mov qword [rsp + 0x20], rax
lea rdx, [0x140008450]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140003dc0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003270
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rdx
lea rdx, [r8 + r8*8]
shl rdx, 3
cmp rdx, 0x1000
jb 0x1400032a0
mov rcx, qword [rax - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400032ac
mov rax, rcx
mov rcx, rax
add rsp, 0x28
jmp fcn.1401dee30
call fcn.1401ee17c
int3

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

Disassembly:
mov rcx, qword [rcx + 0x10]
jmp fcn.1401dee30
Function at 0x140008960
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rdx
imul rdx, r8, 0x58
cmp rdx, 0x1000
jb 0x14000898c
mov rcx, qword [rax - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008998
mov rax, rcx
mov rcx, rax
add rsp, 0x28
jmp fcn.1401dee30
call fcn.1401ee17c
int3

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

Disassembly:
sub rsp, 0x28
mov rax, rdx
imul rdx, r8, 0x78
cmp rdx, 0x1000
jb 0x1400089dc
mov rcx, qword [rax - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400089e8
mov rax, rcx
mov rcx, rax
add rsp, 0x28
jmp fcn.1401dee30
call fcn.1401ee17c
int3

Function at 0x140009ab0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, qword [rsp + 0x80]
mov rbp, rcx
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x140009ae0
lock inc dword [rbx + 8]
mov rbx, qword [rsi + 8]
mov edi, 0xffffffff
test rbx, rbx
je 0x140009b13
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140009b13
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140009b13
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp dword [rsp + 0x70], 0x5000002
jne 0x140009b3c
xor eax, eax
lea r8, [0x140009d80]
mov qword [rsp + 0x28], rax
mov r9, rbp
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x140009b6c
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140009b6c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140009b6c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000a0c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14035e2b0]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 0x42
call fcn.1401dee38
lea r8, str.154.8.156.14
mov edx, 0x20
mov rcx, rax
mov rbx, rax
call fcn.1401f2f60
xor edi, edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rdi
lea r8, str.19835
mov qword [rsp + 0x30], rdi
xor edx, edx
mov dword [rsp + 0x28], 0xa
xor ecx, ecx
lea r9d, [rdi - 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rsp + 0x40]
call fcn.1401f2f34
mov r9, rbx
mov qword [rsp + 0x28], rdi
lea r8, [0x14000a1a0]
mov word [rbx + 0x40], ax
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401dee10
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14000eb50
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14035e2b0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], rcx
mov rdx, r8
mov rsi, rcx
mov dword [rsp + 0x50], 1
xor r15d, r15d
lea r8, [rsp + 0x48]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], r15d
mov r14d, r15d
mov rdi, r9
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000ecfa
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000ecfa
mov ecx, dword [rsp + 0x40]
mov eax, 2
inc ecx
mov rbx, 0xffffffffffffffff
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.1401deea0
mov r8d, dword [rsp + 0x40]
xor edx, edx
inc r8d
mov rcx, rax
mov r14, rax
call fcn.1401e1b90
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000ecfa
mov rcx, 0xffffffff80000002
mov qword [rsp + 0xb8], rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r15
lea ecx, [rbx + 2]
mov qword [rsp + 0x30], r15
mov r9d, ebx
mov dword [rsp + 0x28], r15d
mov r8, r14
xor edx, edx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, eax
mov edi, eax
call fcn.1401deea0
mov qword [rsp + 0x38], r15
lea ecx, [rbx + 2]
mov qword [rsp + 0x30], r15
mov r9d, ebx
mov dword [rsp + 0x28], edi
mov r8, r14
xor edx, edx
mov qword [rsp + 0x20], rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], reloc.WS2_32.dll_ntohs
inc rbx
cmp byte [rbx + rbp], r15b
jne 0x14000ecb6
mov r8, rbx
lea rcx, [rsp + 0x58]
mov rdx, rbp
call fcn.140005010
mov rcx, rbp
call fcn.1401dee30
mov rcx, r14
call fcn.1401dee30
movups xmm0, xmmword [rsp + 0x58]
mov rbp, qword [rsp + 0xb8]
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14000ed33
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r14
call fcn.1401dee30
mov qword [rsi], r15
lea rdx, [0x140327610]
mov qword [rsi + 0x10], r15
xor r8d, r8d
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov rcx, rsi
mov byte [rsi], r15b
call fcn.140005010
mov rax, rsi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401dee10
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400293d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x60
cmp byte [0x140370290], 0
mov rsi, r8
mov rbp, rdx
mov r14, rcx
jne 0x1400293fb
xor ebx, ebx
jmp 0x14002944c
mov qword [rsp + 0x70], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x140577180]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140029445
lea rbx, [rdi + 8]
test rbx, rbx
je 0x140029445
cmp byte [rbx + 0x330], 0
je 0x140029447
xor edx, edx
mov rcx, rbx
call fcn.140030d00
mov rbx, rax
jmp 0x140029447
xor ebx, ebx
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x28], 0x10000
lea rdx, [rsp + 0x30]
mov r9, rbp
mov qword [rsp + 0x20], 0
mov r8, r14
mov rcx, rbx
call fcn.140064340
mov r8, rsi
lea rdx, [rsp + 0x30]
lea rcx, [0x140064260]
call fcn.140055d10
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140064520
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov r9, qword [0x1403704a0]
mov r11, rdx
mov r10, qword [0x140370498]
lea rcx, [r10 + r11]
mov r8, rcx
cmp rcx, r9
jb 0x140055cc8
xor edx, edx
mov rax, rcx
div r9
mov r8, rdx
mov rax, r10
lock cmpxchg qword [0x140370498], r8
mov r10, rax
jne 0x140055cb1
cmp rcx, r9
jb 0x140055cee
lea r8, [0x140370488]
xor edx, edx
xor ecx, ecx
jmp 0x1400293d0
ret
Function at 0x14002f1d0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov qword [0x14036f2d8], rax
cmp rax, 0x1000
jbe 0x14002f20f
lea rcx, str._jemalloc_:_Unsupported_system_page_size_n
call fcn.14002eb70
cmp byte [0x1403671c0], 0
jne 0x14002f2a8
jmp 0x14002f25f
cmp dword [0x140370318], 0
mov byte [0x14036f2d4], 0
je 0x14002f22c
cmp byte [0x1403671c0], 0
jne 0x14002f2ae
xor ecx, ecx
mov dword [0x140577190], 3
mov edx, 0x1000
mov dword [0x14036f2d0], 3
mov r8d, 0x2000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x14002f267
mov al, 1
add rsp, 0x50
pop rbx
ret
cmp byte [0x1403570f8], 0
je 0x14002f28c
mov edx, 0x1000
mov r9d, 4
mov r8d, 0x80000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
jmp 0x14002f293
mov byte [0x1403570f8], 0
mov edx, 0x1000
mov rcx, rbx
call fcn.14002f160
xor al, al
add rsp, 0x50
pop rbx
ret
call fcn.1401f3454
int3
lea rcx, str._jemalloc_:_no_MADV_HUGEPAGE_support_n
call fcn.14002eb70
call fcn.1401f3454
int3
Function at 0x140039060
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x140370290], 0
je 0x1400390d5
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x140577180]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
test rdi, rdi
je 0x1400390b7
lea rax, [rdi + 8]
test rax, rax
je 0x1400390b7
cmp byte [rax + 0x330], bl
je 0x1400390ba
xor edx, edx
mov rcx, rax
call fcn.140030d00
jmp 0x1400390ba
mov rax, rbx
mov rdi, qword [rsp + 0x30]
lea rcx, [rax + 0xd8]
test rax, rax
cmovne rbx, rcx
mov rax, rbx
test rbx, rbx
jne 0x1400390dc
lea rax, [0x140357ba8]
add rsp, 0x20
pop rbx
ret
Function at 0x140055ca0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x60
cmp byte [0x140370290], 0
mov rsi, r8
mov rbp, rdx
mov r14, rcx
jne 0x1400293fb
xor ebx, ebx
jmp 0x14002944c
mov qword [rsp + 0x70], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x140577180]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140029445
lea rbx, [rdi + 8]
test rbx, rbx
je 0x140029445
cmp byte [rbx + 0x330], 0
je 0x140029447
xor edx, edx
mov rcx, rbx
call fcn.140030d00
mov rbx, rax
jmp 0x140029447
xor ebx, ebx
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x28], 0x10000
lea rdx, [rsp + 0x30]
mov r9, rbp
mov qword [rsp + 0x20], 0
mov r8, r14
mov rcx, rbx
call fcn.140064340
mov r8, rsi
lea rdx, [rsp + 0x30]
lea rcx, [0x140064260]
call fcn.140055d10
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140064520
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov r9, qword [0x1403704a0]
mov r11, rdx
mov r10, qword [0x140370498]
lea rcx, [r10 + r11]
mov r8, rcx
cmp rcx, r9
jb 0x140055cc8
xor edx, edx
mov rax, rcx
div r9
mov r8, rdx
mov rax, r10
lock cmpxchg qword [0x140370498], r8
mov r10, rax
jne 0x140055cb1
cmp rcx, r9
jb 0x140055cee
lea r8, [0x140370488]
xor edx, edx
xor ecx, ecx
jmp 0x1400293d0
ret
Function at 0x1400796c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
test rcx, rcx
jne fcn.140023b90
ret

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

Disassembly:
cmp rcx, rdx
jne fcn.140023b90
ret

Function at 0x140079b30
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x100
mov rax, qword [0x14035e2b0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rsi, r8
movzx ebp, dx
mov rbx, rcx
call fcn.1400799b0
mov word [rsi], ax
test ax, ax
je 0x140079b76
mov r8, rsi
movzx edx, bp
mov rcx, rbx
call fcn.140079aa0
jmp 0x140079c4a
xor eax, eax
mov qword [rsp + 0x138], rdi
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0xc00
movups xmmword [rsi + 2], xmm0
mov qword [rsi + 0x12], rax
lea rcx, [rsp + 0x60]
mov word [rsi + 0x1a], ax
xor edi, edi
movzx eax, word [rsi]
xorps xmm1, xmm1
mov dword [rsp + 0x2c], eax
mov rdx, rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rdi
lea r8d, [rdi + 3]
mov qword [rsp + 0x60], rax
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x50], rdi
movdqu xmmword [rsp + 0x40], xmm1
call fcn.140079f20
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x140079c01
call fcn.140023b90
test ebx, ebx
je 0x140079c09
mov ecx, ebx
jmp 0x140079c3a
mov rbx, qword [rsp + 0x20]
mov rdx, rbx
test rbx, rbx
je 0x140079c2c
mov eax, dword [rdx + 4]
cmp eax, 2
je 0x140079c65
cmp eax, 0x17
je 0x140079c65
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x140079c16
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, edi
mov rdi, qword [rsp + 0x138]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1401dee10
add rsp, 0x100
pop rsi
pop rbp
pop rbx
ret
mov r8, qword [rdx + 0x10]
mov rcx, rsi
mov rdx, qword [rdx + 0x20]
call fcn.1401e14e0
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
movzx ecx, bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 2], ax
mov edi, 1
jmp 0x140079c40
Function at 0x140079ca0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
xor ebx, ebx
mov dword [rax - 0x38], 0x1c
mov rdi, r8
mov rsi, rdx
lea r8, [rax - 0x38]
mov r14, r9
lea rdx, [rax - 0x30]
mov word [rax - 0x30], bx
cmp dword [rsp + 0x80], ebx
je 0x140079ce4
call qword [sym.imp.WS2_32.dll_getsockname]
jmp 0x140079cea
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x140079cf2
xor eax, eax
jmp 0x140079d6c
movzx ecx, word [rsp + 0x2a]
mov qword [rsp + 0x60], rbp
movzx ebp, word [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [r14], ax
lea rcx, [rsp + 0x30]
movzx eax, word [rsp + 0x28]
mov r8, rsi
movsxd r9, dword [rdi]
lea rdx, [rsp + 0x2c]
cmp eax, 2
cmovne rdx, rcx
mov ecx, eax
call sub.WS2_32.dll_InetNtopW
test rax, rax
je 0x140079d47
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov ebx, 1
mov dword [rdi], eax
jmp 0x140079d65
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x57
jne 0x140079d65
cmp bp, 2
mov ecx, reloc.WS2_32.dll_recv
mov eax, 0x2e
cmovne ecx, eax
mov dword [rdi], ecx
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret