joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028f3c
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp dword [0x14047e6e4], 0
jne 0x140028f74
lea rcx, str.HWLOC_XML_VERBOSE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140028f6a
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x14047e6e8], eax
mov dword [0x14047e6e4], 1
mov eax, dword [0x14047e6e8]
add rsp, 0x28
ret

Function at 0x140029034
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x14046e3c8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, rdx
mov esi, r8d
mov rdi, rcx
xor r8d, r8d
mov rcx, rbx
xor edx, edx
call fcn.140062f78
mov r14, rax
test sil, 1
je 0x1400291b3
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.14002ef44
mov r13, qword [rsp + 0x20]
mov r15d, eax
mov rcx, rdi
test eax, eax
je 0x14002919a
lea r8, str.object
lea rdx, [rbp - 0x49]
call qword [rdi + reloc.WS2_32.dll_htonl]
mov r9d, esi
lea rcx, [rbp - 0x49]
mov r8, r14
mov rdx, rbx
call fcn.14002e080
lea r8, str.object
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x49]
call qword [rbp - 0x41]
mov r8, qword [rsp + 0x28]
lea rcx, [rsp + 0x30]
mov r9d, esi
mov rdx, rbx
call fcn.14002e080
mov rdi, qword [r14 + 0x78]
jmp 0x140029106
mov r9d, esi
lea rcx, [rsp + 0x30]
mov r8, rdi
mov rdx, rbx
call fcn.14002ee24
mov rdi, qword [rdi + 0x58]
test rdi, rdi
jne 0x1400290ef
mov rdi, qword [r14 + 0xa0]
jmp 0x14002912b
mov r9d, esi
lea rcx, [rsp + 0x30]
mov r8, rdi
mov rdx, rbx
call fcn.14002ee24
mov rdi, qword [rdi + 0x58]
test rdi, rdi
jne 0x140029114
mov rdi, qword [r14 + 0xb0]
jmp 0x14002914b
mov r9d, esi
mov r8, rdi
mov rdx, rbx
call fcn.14002ee24
mov rdi, qword [rdi + 0x58]
lea rcx, [rsp + 0x30]
test rdi, rdi
jne 0x140029139
lea rdx, str.object
call qword [rsp + 0x50]
cmp r15d, 1
jbe 0x14002918a
lea rdi, [r13 + 8]
lea r14d, [r15 - 1]
mov r8, qword [rdi]
lea rcx, [rbp - 0x49]
mov r9d, esi
mov rdx, rbx
call fcn.14002ee24
lea rdi, [rdi + 8]
sub r14, 1
jne 0x14002916e
lea rdx, str.object
lea rcx, [rbp - 0x49]
call qword [rbp - 0x29]
jmp 0x1400291a8
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.14002ee24
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14002920f
mov r9d, esi
mov r8, r14
mov rdx, rbx
mov rcx, rdi
call fcn.14002ed20
mov rdx, rbx
mov rcx, rdi
call fcn.14002f5d0
lea rcx, str.HWLOC_XML_EXPORT_SUPPORT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400291ee
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
je 0x1400291f9
mov rdx, rbx
mov rcx, rdi
call fcn.14002f640
mov rdx, rbx
mov rcx, rdi
call fcn.1400305ac
mov rdx, rbx
mov rcx, rdi
call fcn.1400306dc
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400106c0
add rsp, 0x100
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140029468
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
cmp dword [0x14047e6ec], ebx
jne 0x1400294ba
lea rcx, str.HWLOC_LIBXML
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14002949c
lea rcx, str.HWLOC_LIBXML_IMPORT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400294b0
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
sete bl
mov dword [0x14047e6f0], ebx
mov dword [0x14047e6ec], 1
mov eax, dword [0x14047e6f0]
add rsp, 0x20
pop rbx
ret

Function at 0x1400294c8
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
cmp dword [0x14047e6f4], ebx
jne 0x14002951a
lea rcx, str.HWLOC_LIBXML
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x1400294fc
lea rcx, str.HWLOC_LIBXML_EXPORT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140029510
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
sete bl
mov dword [0x14047e6f8], ebx
mov dword [0x14047e6f4], 1
mov eax, dword [0x14047e6f8]
add rsp, 0x20
pop rbx
ret
Function at 0x14002d8e4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x90
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
mov rax, qword [0x14046e3c8]
xor rax, rsp
mov qword [rsp + 0x40], rax
movss xmm7, dword [0x140314808]
mov r12, rcx
lea rcx, str.HWLOC_XML_V1DIST_SCALE
mov r14, r9
mov rsi, r8
mov ebx, edx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
imul ebx, ebx
xor edi, edi
test rax, rax
je 0x14002da17
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm7, xmm7
cvtsd2ss xmm7, xmm0
test ebx, ebx
je 0x14002d9a2
movss xmm1, dword [0x14031480c]
mov edx, ebx
movaps xmm0, xmm7
xor ecx, ecx
mulss xmm0, dword [rsi]
comiss xmm0, xmm1
jb 0x14002d989
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x14002d989
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rsi, 4
add rax, rcx
mov qword [r14], rax
add r14, 8
sub rdx, 1
jne 0x14002d965
xorps xmm2, xmm2
lea rdx, [0x140412568]
cvtss2sd xmm2, xmm7
lea rcx, [rsp + 0x28]
movq r8, xmm2
call fcn.140028da0
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.140062f78
mov rcx, rax
lea r8, [rsp + 0x28]
lea rdx, str.xmlv1DistancesScale
call fcn.140024688
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400106c0
lea r11, [rsp + 0x90]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
test ebx, ebx
je 0x14002d9e0
movss xmm9, dword [0x140314804]
mov r15, r14
mov rbp, rsi
xorps xmm8, xmm8
movss xmm6, dword [rbp]
comiss xmm8, xmm6
ja 0x14002d95b
lea rdx, [rsp + 0x20]
movaps xmm0, xmm6
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_modff]
comiss xmm0, dword [0x1403147fc]
jbe 0x14002da5e
comiss xmm9, xmm0
ja 0x14002d95b
addss xmm6, dword [0x140314800]
inc edi
add rbp, 4
cvttss2si eax, xmm6
movsxd rcx, eax
mov qword [r15], rcx
add r15, 8
cmp edi, ebx
jb 0x14002da2e
jmp 0x14002d9e0

Function at 0x140033608
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140033652
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140033652
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140033652
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140033652
cmp dword [rcx + 0x84], 0xe
jbe 0x140033652
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140033654
xor al, al
add rsp, 0x28
ret
Function at 0x140035400
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x48
cmp dword [rcx + 0x100], 0
jbe 0x140035417
mov eax, 0xfffff008
add rsp, 0x48
ret
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x50]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x140035450
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140037f80
add rsp, 0x48
ret
mov eax, dword [rsp + 0x50]
add rsp, 0x48
ret
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x100], 0
mov ebx, r8d
mov rdi, rdx
jbe 0x14003bdd9
mov eax, 0xfffff008
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r9, [rsp + 0x30]
call fcn.14003e440
test eax, eax
je 0x14003bdfa
mov ecx, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140037f80
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140011100
mov eax, dword [rcx + 0x58]
test al, 1
je 0x140047d7d
mov eax, 0xfffff00d
ret
bt eax, 0xf
jb 0x140047d89
mov eax, 0xfffff031
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x140047dab
cmp eax, 0xc
je 0x140047da6
cmp eax, 0xe
je 0x140047da1
mov eax, 0xfffff02a
ret
jmp 0x14003bdb0
jmp 0x140035400
mov eax, 0xfffff008
ret
Function at 0x1400358c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rdi, r8
mov rcx, qword [r8 + 0x70]
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
jne 0x140035940
mov eax, dword [rdx + 0x58]
test al, 0x40
je 0x1400359b8
mov edx, eax
and edx, 0xffffffbf
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
jne 0x140035915
test dl, 1
jne 0x140035915
test al, 4
je 0x140035915
and eax, 0xffffffbb
mov dword [rbx + 0x58], eax
test al, 8
je 0x140035915
mov rax, qword [rbx + 8]
dec dword [rax + 8]
cmp qword [rbx + 0x100], 0
je 0x1400359b8
mov ecx, dword [r8 + 0x40]
call fcn.140045730
mov ecx, eax
call fcn.140037f80
mov edx, eax
mov rcx, rbx
call qword [rbx + 0x100]
jmp 0x1400359b8
cmp dword [r8 + 0x40], 0
jl 0x140035995
lea r9, [rdx + 0x110]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140035995
mov rax, qword [rbx + 0x130]
mov qword [rdi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rdi
test rax, rax
je 0x1400359b8
xor edx, edx
mov rcx, rbx
call rax
jmp 0x1400359b8
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x70], 0xffffffffffffffff
test byte [rbx + 0x58], 0x40
je 0x1400359b8
mov rdx, rdi
mov rcx, rbx
call fcn.140036490
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x1400359e1
test ecx, ecx
jne 0x1400359e1
test al, 0x20
jne 0x1400359e1
or eax, 0x20
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140035a00
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
sub dword [rdx + 0x7c], 1
mov rbp, r8
mov rbx, rdx
mov rdi, rcx
jne 0x140035a3f
mov eax, dword [rdx + 0x58]
test al, 1
jne 0x140035a3f
test al, 4
je 0x140035a3f
and eax, 0xfffffffb
mov dword [rdx + 0x58], eax
test al, 8
je 0x140035a3f
mov rax, qword [rdx + 8]
dec dword [rax + 8]
dec dword [rcx + 0x20]
xor esi, esi
mov ecx, dword [r8 + 0x40]
test ecx, ecx
js 0x140035a93
test byte [rdx + 0x58], 1
je 0x140035a59
mov esi, 0x3e3
jmp 0x140035a9a
mov rcx, qword [rbx + 0x110]
xor r9d, r9d
mov edx, 0xffff
mov dword [rsp + 0x20], esi
mov r8d, 0x7010
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140035a8b
or dword [rbx + 0x58], 0xc080
inc dword [rdi + 0xa8]
jmp 0x140035a9a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140035a98
call fcn.140045730
mov esi, eax
mov ecx, esi
call fcn.140037f80
mov edx, eax
mov rcx, rbp
call qword [rbp + reloc.WS2_32.dll_WSASetLastError]
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x140035ad2
test ecx, ecx
jne 0x140035ad2
test al, 0x20
jne 0x140035ad2
or eax, 0x20
mov dword [rbx + 0x58], eax
mov rax, qword [rdi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rdi + 0x50], rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400360e0
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, rdx
mov dword [rsp + 0x20], 4
mov edx, 6
lea r9, [rsp + 0x50]
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140036118
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret

Function at 0x140036120
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
push rbx
sub rsp, 0x30
mov rbx, rdx
mov dword [rsp + 0x20], 4
mov rcx, rbx
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140036164
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x30
pop rbx
ret
cmp dword [rsp + 0x50], 0
je 0x14003618f
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov rcx, rbx
lea r8d, [rdx - 3]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140036158
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x1400361a0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rdx + 0x110], 0xffffffffffffffff
mov esi, r9d
mov rdi, r8
mov dword [rsp + 0x38], 1
mov rbx, rdx
mov rbp, rcx
je 0x1400361dc
mov eax, 0xfffff00e
jmp 0x1400362cb
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x1400361ff
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400362cb
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x14003621e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400362cb
mov rdx, qword [rbp + 0x38]
xor r9d, r9d
mov r8, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
jne 0x140036243
cmp dword [rsp + 0x50], eax
je 0x140036213
or dword [rbx + 0x58], 0x80000
mov ecx, dword [0x140708120]
cmp esi, 0x17
mov eax, dword [rbx + 0x58]
cmove ecx, dword [0x140708124]
bt eax, 0x13
jb 0x140036279
test ecx, ecx
jne 0x140036279
mov dl, 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x140036213
or dword [rbx + 0x58], 0x20000
mov eax, dword [rbx + 0x58]
bt eax, 0x18
jae 0x140036294
mov r8d, 1
mov rdx, rdi
mov rcx, rbx
call fcn.1400360e0
test eax, eax
jne 0x1400362cb
test dword [rbx + 0x58], 0x2000000
je 0x1400362b6
mov r9d, 0x3c
mov rdx, rdi
mov rcx, rbx
lea r8d, [r9 - 0x3b]
call fcn.140036120
test eax, eax
jne 0x1400362cb
mov qword [rbx + 0x110], rdi
cmp esi, 0x17
jne 0x1400362c9
or dword [rbx + 0x58], 0x400000
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400362e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
cmp qword [rcx + 0x110], 0xffffffffffffffff
mov esi, r9d
mov r15d, r8d
mov rdi, rdx
mov rbx, rcx
jne 0x140036378
test sil, 1
je 0x140036324
cmp word [rdx], 0x17
je 0x140036324
mov eax, 0x57
jmp 0x1400363dc
movzx ecx, word [rdx]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140036348
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400363dc
movzx r9d, word [rdi]
mov r8, rbp
mov rcx, qword [rbx + 8]
mov rdx, rbx
mov dword [rsp + 0x20], 0
call fcn.1400361a0
mov r14d, eax
test eax, eax
je 0x140036378
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, r14d
jmp 0x1400363dc
cmp word [rdi], 0x17
jne 0x1400363a8
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x50]
mov edx, 0x29
mov dword [rsp + 0x20], 4
and esi, 1
mov dword [rsp + 0x50], esi
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x110]
mov r8d, r15d
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1400363d3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x1400363dc
mov dword [rbx + 0x118], eax
or dword [rbx + 0x58], 0x2000
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140036740
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xorps xmm0, xmm0
lea rbx, [rdx + 0x80]
movups xmmword [rbx + 0x40], xmm0
lea r14, [rbx + 0x40]
xor ebp, ebp
movups xmmword [r14 + 0x10], xmm0
or dword [rdx + 0x58], 0x40000
lea rax, [0x14047edd8]
movups xmmword [r14], xmm0
mov rdi, rdx
mov rsi, rcx
movups xmmword [r14 + 0x10], xmm0
test dword [rdx + 0x58], 0x80000
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], ebp
je 0x1400367a6
mov rax, qword [rbx + 0x70]
or rax, 1
mov qword [rbx + 0x58], rax
mov rcx, qword [rdi + 0x110]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], ebp
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x140036831
mov eax, dword [rdi + 0x58]
bt eax, 0x11
jae 0x140036899
bts eax, 0x10
mov dword [rdi + 0x58], eax
mov eax, dword [rsp + 0x78]
mov qword [rbx + 0x48], rax
inc dword [rdi + 0x78]
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x140036824
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x14003690f
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x14003690f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140036899
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x140036850
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14003685e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [r14], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14003688c
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x14003690f
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x14003690f
or dword [rdi + 0x58], 0x10000
inc dword [rdi + 0x78]
test dword [rdi + 0x58], 0x80000
je 0x14003690f
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x14003690f
mov rdx, qword [rbx + 0x70]
lea r8, [0x140036400]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x14003690f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1400368f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400368ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov rdx, rbx
mov rcx, rsi
mov qword [r14], rax
call fcn.1400360b0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140038b20
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
mov edx, 0xfffff027
cmp eax, 0xffffffff
mov dword [rbx], eax
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140038b50
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140038b65
add rsp, 0x28
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3

Function at 0x140038ba0
Capabilities:
Create thread
Get system information on windows
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
test byte [rdx], 1
mov rbp, r9
mov r14, r8
mov rsi, rcx
je 0x140038c00
mov rbx, qword [rdx + 8]
test rbx, rbx
je 0x140038c02
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rsp + 0x34]
dec rbx
add rbx, rax
dec rax
not rax
and rbx, rax
mov eax, ebx
cmp rax, rbx
je 0x140038c02
mov eax, 0xfffff019
jmp 0x140038c94
xor ebx, ebx
mov ecx, 0x18
call fcn.140011380
mov rdi, rax
test rax, rax
jne 0x140038c1b
mov eax, 0xfffff027
jmp 0x140038c94
mov qword [rsp + 0x28], 0
lea r8, [0x140038dc0]
mov r9, rdi
mov dword [rsp + 0x20], 4
mov edx, ebx
mov qword [rax], r14
xor ecx, ecx
mov qword [rax + 8], rbp
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
test rax, rax
jne 0x140038c82
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov rcx, rdi
mov ebx, dword [rax]
call fcn.140011390
test ebx, ebx
je 0x140038c92
cmp ebx, 0xb
je 0x140038c7b
cmp ebx, 0xd
je 0x140038c74
cmp ebx, 0x16
je 0x140038bf6
mov eax, 0xfffff01a
jmp 0x140038c94
mov eax, 0xfffff004
jmp 0x140038c94
mov eax, 0xfffff008
jmp 0x140038c94
mov qword [rsi], rax
mov rcx, rax
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400396d0
Capabilities:
Write file on windows

Disassembly:
cmp dword [r8 + 0x110], 0
mov rax, qword [rsp + 0x38]
jne 0x14003afd0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
jmp fcn.14003ac50
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x360
mov rax, qword [0x14046e3c8]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov rsi, qword [rsp + 0x3c0]
xor r14d, r14d
mov r15, qword [rsp + 0x3c8]
mov rbx, r9
mov qword [rsp + 0x48], rdx
mov r12, r8
mov dword [rsp + 0x40], r14d
mov r13, rcx
mov edi, r14d
test rsi, rsi
je 0x14003b053
mov rcx, rbx
mov rdx, rsi
nop dword [rax]
mov eax, dword [rcx]
lea rcx, [rcx + 0x10]
add rdi, rax
sub rdx, 1
jne 0x14003b030
mov eax, 0xffffffff
cmp rdi, rax
jbe 0x14003b053
mov eax, 0x2747
jmp 0x14003b1b3
test r15, r15
je 0x14003b08d
cmp dword [r15 + 0x10], 0xc
je 0x14003b069
mov eax, 0x32
jmp 0x14003b1b3
mov rcx, r12
call fcn.14003afa0
mov edx, eax
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x40]
mov rcx, r15
call fcn.140035f00
test eax, eax
jne 0x14003b1b3
test r15, r15
mov qword [rsp + 0x3b8], rbp
setne r14b
inc r14
add r14, rsi
cmp r14, 6
jae 0x14003b0f1
lea rbp, [rsp + 0x2f0]
xorps xmm0, xmm0
lea rdx, [rsp + 0x60]
mov r8d, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x50]
movups xmmword [rsp + 0x60], xmm0
call fcn.140010ed0
movups xmm0, xmmword [rax]
mov eax, 1
movups xmmword [rbp], xmm0
test r15, r15
je 0x14003b134
mov ecx, dword [rsp + 0x40]
sub ecx, eax
je 0x14003b10e
cmp ecx, eax
jne 0x14003b113
or dword [rsp + 0x60], 2
jmp 0x14003b113
mov edx, reloc.WS2_32.dll_recv
mov rcx, r14
call fcn.140011300
mov rbp, rax
test rax, rax
jne 0x14003b0b0
lea eax, [rbp + 8]
jmp 0x14003b1ab
or dword [rsp + 0x60], 6
mov r8d, 0x278
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140010ed0
movups xmm0, xmmword [rax]
mov eax, 2
movups xmmword [rbp + 0x10], xmm0
test rdi, rdi
je 0x14003b165
or dword [rsp + 0x60], 1
mov dword [rsp + 0x68], edi
test rsi, rsi
je 0x14003b165
shl rax, 4
add rax, rbp
nop
lea rax, [rax + 0x10]
movups xmm0, xmmword [rbx]
lea rbx, [rbx + 0x10]
movups xmmword [rax - 0x10], xmm0
sub rsi, 1
jne 0x14003b150
mov rax, qword [rsp + 0x3d0]
mov r9, rbp
mov rdx, qword [rsp + 0x48]
mov r8, r12
mov dword [rsp + 0x30], 1
mov rcx, r13
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call fcn.14003ac50
mov ebx, eax
lea rax, [rsp + 0x2f0]
cmp rbp, rax
je 0x14003b1a9
mov rcx, rbp
call fcn.140011390
mov eax, ebx
mov rbp, qword [rsp + 0x3b8]
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.1400106c0
add rsp, 0x360
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14003a300
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
test r9d, r9d
mov edx, 0x40040003
mov eax, 0x400c0003
cmovne edx, eax
mov rdi, r8
xor eax, eax
mov rsi, rcx
mov rcx, qword [rbx + 0x120]
mov r9d, 0xff
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rdi + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x14003a375
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rdx, qword [rsi + 0x38]
xor r9d, r9d
mov r8, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x14003a3ad
mov rax, qword [rdi + 0x70]
mov rsi, qword [rsp + 0x58]
mov qword [rbx + 0x118], rax
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [0x140417c00]
call fcn.1400384a0
int3