joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c740
Capabilities:
Set environment variable

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0xb0
mov rax, qword [0x14006b380]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x14006d5c0]
mov rbx, r8
mov rdi, rdx
mov r15, rcx
test rax, rax
jne 0x14002c790
lea rcx, [0x14004d19c]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x14006d5c0], rax
test rax, rax
je 0x14002c94d
mov qword [rsp + 0xa8], rbp
lea rdx, str.environ
mov qword [rsp + 0xa0], rsi
mov rcx, rax
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x90], r14
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov r14, rax
test rbx, rbx
je 0x14002c835
mov rdx, rbx
mov rcx, rdi
call fcn.14002c590
mov rdx, 0xffffffffffffffff
mov rcx, rbx
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov rdx, r14
mov rcx, rbp
mov r8, rax
mov rbx, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
je 0x14002c81c
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
int3
sub qword [rbx], 1
jne 0x14002c8ea
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14002c8ea
movzx eax, byte [rdi]
lea rbx, [rsp + 0x30]
xor r12d, r12d
mov esi, 0x28
mov word [rsp + 0x30], r12w
test al, al
je 0x14002c8c5
nop
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r12b
lea rcx, [rsp + 0x24]
call fcn.14003b7fc
cmp rax, 1
jne 0x14002c947
mov rcx, rsi
mov rax, rbx
cmp word [rbx], r12w
je 0x14002c89d
nop dword [rax]
nop dword [rax + rax]
add rax, 2
dec rcx
cmp word [rax], r12w
jne 0x14002c890
cmp rcx, 1
jb 0x14002c947
movzx ecx, word [rsp + 0x24]
inc rdi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r12w
dec rsi
movzx eax, byte [rdi]
test al, al
jne 0x14002c850
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x14002c8ea
mov rcx, r15
call fcn.1400015b0
sub qword [r14], 1
jne 0x14002c8fa
mov rax, qword [r14 + 8]
mov rcx, r14
call qword [rax + 0x30]
sub qword [rbp], 1
jne 0x14002c90b
mov rax, qword [rbp + 8]
mov rcx, rbp
call qword [rax + 0x30]
mov r12, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002c9e0
add rsp, 0xb0
pop r15
pop rdi
pop rbx
ret
call fcn.14003b5a8
int3
call fcn.14003b5a8
int3

Function at 0x14002d414
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002d45e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002d45e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002d45e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002d45e
cmp dword [rcx + 0x84], 0xe
jbe 0x14002d45e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002d460
xor al, al
add rsp, 0x28
ret
Function at 0x14003136c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400313db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400313db
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400313db
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400313db
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400313db
cmp dword [rcx + 0x84], 0xe
jbe 0x1400313db
cmp dword [rcx + 0xf8], 0
je 0x1400313db
mov ecx, ebx
call fcn.14003148c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140031268
nop
cmp dword [rbp + 0x20], 0
je 0x140031429
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140031434
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003136c

Function at 0x140031570
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400313db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400313db
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400313db
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400313db
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400313db
cmp dword [rcx + 0x84], 0xe
jbe 0x1400313db
cmp dword [rcx + 0xf8], 0
je 0x1400313db
mov ecx, ebx
call fcn.14003148c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140031268
nop
cmp dword [rbp + 0x20], 0
je 0x140031429
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140031434
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003136c
Function at 0x1400431d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140043257
mov rsi, rbx
cmp word [rax], bp
je 0x140043216
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140043200
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400431fc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003e498
mov rdi, rax
test rax, rax
je 0x140043244
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140049550
mov rbp, rdi
xor ecx, ecx
call fcn.14003f294
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004595c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140045972
mov al, 1
jmp 0x1400459d2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140045983
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400459d0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140043974
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400459d0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400459d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400459d0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400459d2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140049330
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140049358
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140049358
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400045d0
Capabilities:
Get thread local storage value

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

Function at 0x140004660
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x14009dce4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14000468d
mov r8, qword [rax + 8]
jmp 0x140004690
xor r8d, r8d
cmp rdi, 0x3fc
ja 0x1400046b4
test r8, r8
je 0x1400046b4
cmp qword [r8], 0
jne 0x1400046b4
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
mov qword [r8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.140066a18
Function at 0x1400049d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor r9d, r9d
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 8], rax
mov rdi, rax
test rax, rax
jne 0x140004a33
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
lea edx, [rdi + 1]
mov rcx, rsi
mov ebx, eax
call qword [r8]
mov dword [rsp + 0x30], ebx
call fcn.140066430
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x140004b36
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x140004a80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
mov dword [rsp + 0x30], ebx
call fcn.140066430
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x140004b48
xor ecx, ecx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r8, [0x140004b60]
mov r9, rsi
mov dword [rsp + 0x20], ecx
mov edx, r14d
mov dword [rsp + 0x68], ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 8], rax
test rax, rax
jne 0x140004af5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test rdi, rdi
je 0x140004ad4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140004ae3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x30], ebx
call fcn.140066430
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x140004b24
test rdi, rdi
je 0x140004b11
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.140004350
int3
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.140004350
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.140004350
int3
Function at 0x1400056b0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x230
mov rax, qword [0x1400992c0]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov r14, rcx
mov qword [rsp + 0x38], rcx
mov ecx, 0x38
call fcn.1400665f0
mov rdi, rax
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.1400046e0
mov ebx, eax
call fcn.140066430
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], rax
test ebx, ebx
jne 0x14000588d
mov qword [rdi + 0x28], r14
xor ebx, ebx
mov qword [rdi + 0x30], rbx
mov qword [r14], rdi
mov eax, 1
lock xadd dword [0x14009dcd8], eax
inc eax
cmp eax, 1
jne 0x14000574f
lea ecx, [rbx + 2]
lea rdx, [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x14009dcdc], eax
lock xadd dword [0x14009dcdc], ebx
test ebx, ebx
jne 0x14000589f
mov ecx, 0xa8
call fcn.1400665f0
mov qword [rsp + 0x30], rax
lea r8d, [rbx - 1]
mov rdx, r14
mov rcx, rax
call fcn.140004c30
mov r15, rax
mov qword [rsp + 0x30], rax
mov rbp, qword [r14]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14001d6a0
mov rax, qword [r15 + 0x18]
cmp qword [rbp + 0x28], rax
jne 0x140005865
mov qword [rsp + 0x40], rbp
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
mov rbx, qword [rbp + 0x30]
test rbx, rbx
je 0x140005811
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x20]
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400057e8
test rdi, rdi
je 0x1400057e8
cmp rax, rdi
je 0x140005879
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140005808
test rsi, rsi
je 0x140005808
lea rdx, [rsi + 8]
add rcx, 8
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
je 0x140005879
mov rbx, qword [rbx + 0x20]
test rbx, rbx
jne 0x1400057d1
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [r15 + 8], xmm0
mov rdx, qword [rbp + 0x30]
mov qword [r15 + 0x20], rdx
mov qword [rbp + 0x30], r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov qword [r14 + 0x10], r15
mov rax, r14
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1400664b0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea rcx, [rsp + 0x50]
call fcn.1400048a0
nop
mov rcx, rax
call fcn.1400149e0
nop
lea rcx, [rsp + 0x68]
call fcn.140004850
nop
mov rcx, rax
call fcn.140014a20
nop
lea rdx, str.mutex
lea rcx, [rsp + 0x20]
call fcn.140004350
nop
call fcn.140066430
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], rax
lea rdx, str.winsock
lea rcx, [rsp + 0x20]
call fcn.140004350
int3
Function at 0x140005a00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
call fcn.140066430
mov qword [rsp + 0x28], rax
mov rbx, qword [rbx + 0x10]
mov eax, edi
lock xadd dword [rbx + 0x30], eax
test eax, eax
jne 0x140005aa0
mov ecx, 1
mov eax, ecx
xchg dword [rbx + 0x34], eax
test eax, eax
jne 0x140005a75
xchg dword [rbx + 0x38], ecx
test ecx, ecx
jne 0x140005a75
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x140005a75
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x40], eax
call fcn.140066430
mov qword [rsp + 0x48], rax
test ebx, ebx
jne 0x140005b79
mov dword [rsp + 0x40], edi
call fcn.140066430
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm0
jmp 0x140005b56
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
lea rax, [rbx + 0x28]
test rbx, rbx
cmove rax, rdi
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov ecx, dword [0x14009dce4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x50]
mov ecx, dword [0x14009dce4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r8, [rsp + 0x20]
mov edx, 0xffffffff
mov rcx, rbx
call fcn.1400052b0
test rax, rax
je 0x140005b26
nop dword [rax]
lea rax, [rdi + 1]
cmp rdi, 0xffffffffffffffff
cmove rax, rdi
mov rdi, rax
lea r8, [rsp + 0x20]
mov edx, 0xffffffff
mov rcx, rbx
call fcn.1400052b0
test rax, rax
jne 0x140005b00
mov rdx, qword [rsp + 0x60]
mov ecx, dword [0x14009dce4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140005b47
call fcn.140066a18
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140005b56
call fcn.140066a18
cmp dword [rsp + 0x20], 0
jne 0x140005b6e
mov rax, rdi
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
lea rcx, [rsp + 0x20]
call fcn.140004310
int3
lea rdx, str.pqcs
lea rcx, [rsp + 0x40]
call fcn.140004350
int3
mov rcx, qword [rcx + 0x18]
jmp 0x140005a00
Function at 0x1400125b0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1400992c0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x14009dcd8], eax
inc eax
cmp eax, 1
jne 0x1400125fd
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x14009dcdc], eax
test dil, dil
je 0x140012610
xor eax, eax
lock xadd dword [0x14009dcdc], eax
test eax, eax
jne 0x140012634
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400664b0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov dword [rsp + 0x20], eax
call fcn.140066430
lea rdx, str.winsock
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call fcn.140004350
int3
Function at 0x140014a60
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r14
sub rsp, 0x40
xor r14d, r14d
mov rbp, rcx
mov qword [rcx + 8], r14
mov rbx, rdx
mov qword [rcx + 0x10], r14
lea ecx, [r14 + 0x20]
call fcn.1400665f0
mov rdi, rax
mov qword [rsp + 0x60], rax
lea rax, vtable.boost::asio::detail::win_thread::func_struct_boost::asio::detail::win_iocp_io_context::timer_thread_function_.0
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 1]
xor ecx, ecx
mov qword [rdi], rax
mov qword [rdi + 0x18], rbx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 8], rax
mov rsi, rax
test rax, rax
jne 0x140014aef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rdi]
lea edx, [rsi + 1]
mov rcx, rdi
mov ebx, eax
call qword [r8]
mov dword [rsp + 0x30], ebx
call fcn.140066430
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x140014bf8
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rdi + 0x10], rax
cmp qword [rbp + 0x10], r14
jne 0x140014b3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rdi]
mov edx, 1
mov rcx, rdi
mov ebx, eax
call qword [r8]
mov dword [rsp + 0x30], ebx
call fcn.140066430
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x140014c0a
lea rax, [rsp + 0x70]
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x28], rax
lea r8, [0x140004b60]
mov r9, rdi
mov dword [rsp + 0x20], r14d
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 8], rax
test rax, rax
jne 0x140014bb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rdi]
mov edx, 1
mov rcx, rdi
mov ebx, eax
call qword [r8]
test rsi, rsi
je 0x140014b93
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140014ba2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x30], ebx
call fcn.140066430
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x140014be6
test rsi, rsi
je 0x140014bd0
mov edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x68]
mov rax, rbp
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.140004350
int3
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.140004350
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.140004350
int3

Function at 0x14002ad10
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
test r8b, r8b
jne 0x14002ad3d
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14002ad3d
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv_s]
mov rbx, qword [rsp + 0x30]
test eax, eax
sete al
add rsp, 0x20
pop rdi
ret
Function at 0x14002b9d0
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x38
mov rdi, rcx
xor ebp, ebp
lea rbx, [rcx + 0x28]
mov qword [rsp + 0x70], rbx
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14002bb2a
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x14002bb35
cmp qword [rdi + 0x78], rbp
je 0x14002ba1d
mov eax, 3
lock cmpxchg dword [rdi + 0x80], ebp
jmp 0x14002baae
mov eax, ebp
xchg dword [rdi + 0x80], eax
mov ecx, SafeArrayGetElemsize
call fcn.1400665f0
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14002ba87
mov ecx, 8
call fcn.1400665f0
test rax, rax
je 0x14002ba50
mov qword [rax], rdi
jmp 0x14002ba53
mov rax, rbp
mov qword [rsp + 0x78], rax
lea rsi, [rbx + 8]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x14002b6c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x14002bb1d
jmp 0x14002ba8a
mov rbx, rbp
mov rcx, qword [rdi + 0x78]
mov qword [rdi + 0x78], rbx
test rcx, rcx
je 0x14002baae
cmp dword [rcx + 8], 0
je 0x14002baa4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov edx, SafeArrayGetElemsize
call fcn.140066a20
mov eax, dword [rdi + 0x80]
nop
test eax, eax
jne 0x14002bb0b
movabs rsi, 0x7fffffffffffb1df
movabs rbx, 0x7fffffffffffffff
nop dword [rax]
lea rcx, [rsp + 0x68]
call fcn.140002cb0
mov rax, qword [rsp + 0x68]
cmp rax, rsi
jge 0x14002baf1
add rax, 0x4e20
mov qword [rsp + 0x60], rax
jmp 0x14002baf6
mov qword [rsp + 0x60], rbx
lea rcx, [rsp + 0x60]
call fcn.14001adf0
mov eax, dword [rdi + 0x80]
nop
test eax, eax
je 0x14002bad0
mov rcx, qword [rsp + 0x70]
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.140065469
mov dword [rsi], ebp
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3