joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140067e60
Capabilities:
Get common file path

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rcx
mov rbp, rdx
mov r12, r8
test rcx, rcx
je 0x140067f78
call sub.msvcrt.dll_wcslen
mov r13, rax
mov rbx, rax
jmp 0x140067ea7
lea rsi, [rbx - 1]
movzx edx, word [rdi + rsi*2]
cmp dx, 0x2f
je 0x140067f00
cmp dx, 0x5c
je 0x140067f00
mov rbx, rsi
test rbx, rbx
jne 0x140067e90
test rbp, rbp
je 0x140067ede
mov ecx, 0x20a
call fcn.140082d10
mov qword [rbp], rax
mov rdx, rax
test rax, rax
je 0x140067fac
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140067f91
mov rcx, rdi
call sub.msvcrt.dll__wcsdup
mov qword [r12], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test rsi, rsi
je 0x140067eac
test rbp, rbp
je 0x140067f39
lea rcx, [rbx + rbx + 2]
call fcn.140082d10
mov qword [rbp], rax
mov rcx, rax
test rax, rax
je 0x140067fac
mov r8, rbx
mov rdx, rdi
call sub.msvcrt.dll_wcsncpy
mov rax, qword [rbp]
xor ecx, ecx
mov word [rax + rbx*2], cx
sub r13, rsi
lea rsi, [r13 + r13]
mov rcx, rsi
call fcn.140082d10
mov qword [r12], rax
mov rcx, rax
test rax, rax
je 0x140067fac
lea rdx, [rdi + rbx*2]
lea r8, [r13 - 1]
call sub.msvcrt.dll_wcsncpy
mov rax, qword [r12]
xor edx, edx
mov word [rax + rsi - 2], dx
jmp 0x140067eea
test rdx, rdx
je 0x140067f84
mov qword [rdx], 0
mov qword [r12], 0
jmp 0x140067eea
mov rcx, qword [rbp]
call fcn.140082d30
mov qword [rbp], 0
mov eax, 0xffffffff
jmp 0x140067eec
lea rdx, [0x140226d30]
mov ecx, 0xe
call fcn.140060590
nop
nop
Function at 0x140068ec0
Capabilities:
Resolve dns

Disassembly:
push rbx
sub rsp, 0x20
mov r8, qword [rcx + 0x48]
mov rdx, qword [rcx + 0x40]
mov rbx, rcx
mov qword [rcx + 0x48], 0
mov rcx, qword [rcx + 0x38]
lea r9, [rbx + 0x48]
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
cmp eax, 0x273f
je 0x140068fa0
jle 0x140068f20
cmp eax, 0x2afa
je 0x140068f90
jg 0x140068f60
cmp eax, 0x277d
je 0x140068f40
cmp eax, 0x2af9
jne 0x140068f80
mov eax, 0xfffff440
mov dword [rbx + 0x58], eax
add rsp, 0x20
pop rbx
ret
cmp eax, 0x2726
je 0x140068f70
jg 0x140068f50
test eax, eax
je 0x140068f13
cmp eax, 8
jne 0x140068f80
mov eax, 0xfffff442
jmp 0x140068f13
mov eax, 0xfffff43e
jmp 0x140068f13
cmp eax, 0x273c
jne 0x140068f80
mov eax, 0xfffff43d
jmp 0x140068f13
cmp eax, 0x2afb
jne 0x140068f80
mov eax, 0xfffff444
jmp 0x140068f13
mov eax, 0xfffff446
jmp 0x140068f13
mov ecx, eax
call fcn.1400605f0
mov dword [rbx + 0x58], eax
add rsp, 0x20
pop rbx
ret
mov eax, 0xfffff447
mov dword [rbx + 0x58], eax
add rsp, 0x20
pop rbx
ret
mov eax, 0xfffff443
mov dword [rbx + 0x58], eax
add rsp, 0x20
pop rbx
ret

Function at 0x14006a080
Capabilities:
Connect pipe
Create pipe

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
test r9d, r9d
jne 0x14006a100
mov rcx, qword [rdx + 0x120]
xor r8d, r8d
mov qword [rsp + 0x38], 0
mov r9d, 0xff
mov dword [rsp + 0x30], 0
mov edx, 0x40040003
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x70], rax
mov r8, rax
cmp rax, 0xffffffffffffffff
je 0x14006a182
mov dword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov rdx, rsi
mov rcx, rdi
call fcn.140069f00
test eax, eax
jne 0x14006a170
pxor xmm0, xmm0
lea rdx, [rbx + 0x40]
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rdx + 0x10], xmm0
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x14006a130
mov eax, dword [rsi + 0x78]
add eax, 1
mov dword [rsi + 0x78], eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
cmp eax, 0x3e5
je 0x14006a11e
call rbp
mov edx, eax
xor eax, eax
cmp edx, 0x217
je 0x14006a19b
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call rbp
test eax, eax
jg 0x14006a18f
call rbp
cdqe
jmp 0x14006a19b
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
test eax, eax
jle 0x14006a166
call rbp
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov rax, qword [rdi + 0x48]
mov qword [rbx + 0x68], 0
test rax, rax
je 0x14006a1d8
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0x68], rdx
mov qword [rax + 0x68], rbx
mov eax, dword [rsi + 0x78]
mov qword [rdi + 0x48], rbx
add eax, 1
mov dword [rsi + 0x78], eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov qword [rbx + 0x68], rbx
jmp 0x14006a1bc
Function at 0x14006a380
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov eax, dword [rdx + 0x58]
mov rsi, rcx
mov rbx, rdx
lea rdi, [rdx + 0x80]
test eax, 0x1000000
je 0x14006a408
mov r8d, 0x10
lea rcx, [0x14006a1e0]
mov qword [rdx + 0x238], 0
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x14006a4c0
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x14006a3e9
xor r9d, r9d
mov r8d, 0x32
lea rdx, [0x14006af50]
call fcn.1400828d0
or dword [rbx + 0x58], 0x10000
mov eax, dword [rbx + 0x78]
add eax, 1
mov dword [rbx + 0x78], eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
pxor xmm0, xmm0
lea rdx, [rdx + 0xc0]
movups xmmword [rbx + 0xc0], xmm0
movups xmmword [rdx + 0x10], xmm0
test eax, 0x80000
je 0x14006a437
mov rax, qword [rbx + 0xf0]
or rax, 1
mov qword [rbx + 0xd8], rax
mov rcx, qword [rbx + 0x118]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdx
lea rdx, [0x140274da0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006a4d0
test byte [rbx + 0x5a], 8
je 0x14006a3c8
cmp qword [rbx + 0xf0], 0
je 0x14006a540
cmp qword [rbx + 0xf8], 0xffffffffffffffff
jne 0x14006a3c8
mov rdx, qword [rbx + 0xd8]
lea rcx, [rbx + 0xf8]
mov dword [rsp + 0x28], 4
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
lea r8, [0x14006a600]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x14006a3c8
nop word cs:[rax + rax]
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14006a4e4
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
cmp eax, 0x3e5
je 0x14006a45a
call rbp
test eax, eax
jle 0x14006a530
call rbp
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0xc0], rax
mov rax, qword [rsi + 0x48]
mov qword [rbx + 0xe8], 0
test rax, rax
je 0x14006a578
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0xe8], rdx
mov qword [rax + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x14006a3e9
call rbp
cdqe
jmp 0x14006a4f6
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0xf0], rax
test rax, rax
jne 0x14006a472
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140226dcb]
mov ecx, eax
call fcn.140060590
nop dword [rax]
mov qword [rbx + 0xe8], rdi
jmp 0x14006a520
Function at 0x14006a6a0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.QueueUserWorkItem
mov ecx, eax
call fcn.140060590
nop
nop dword [rax]
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rax, qword [rcx + 0x80]
mov rdx, qword [rcx + 0x98]
mov rsi, qword [rax + 8]
mov rbx, rcx
lea r9, [rsp + 0x3c]
mov rcx, qword [rax + 0x118]
mov qword [rsp + 0x20], 0
mov r8d, dword [rbx + 0x90]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14006a708
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsi + 0x38]
lea r9, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x14006a736
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
test eax, eax
jle 0x14006a730
call rdi
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
jmp 0x14006a6e2
call rdi
cdqe
jmp 0x14006a721
call fcn.14006a590
nop
nop dword [rax]
Function at 0x14006ae70
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
lea r12, [rsp + 0x30]
mov rbx, rcx
mov esi, edx
mov edi, r8d
xor edx, edx
xor r8d, r8d
lea rbp, [rsp + 0x50]
mov rcx, r12
call fcn.140082e50
movdqu xmm0, xmmword [rsp + 0x30]
mov edx, esi
mov r8, rbp
mov rcx, rbx
movaps xmmword [rsp + 0x50], xmm0
call qword [rbx + 0x68]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14006aec3
mov r8d, dword [rsp + 0x50]
test r8d, r8d
jne 0x14006aee0
mov r8, rbp
mov rdx, 0xfffffffffffff024
mov rcx, rbx
call qword [rbx + 0x70]
xor eax, eax
jmp 0x14006af17
cmp r8d, edi
mov rcx, qword [rbx + 0x118]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x20], 0
cmova r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006af28
mov edx, dword [rsp + 0x4c]
mov r8, rbp
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rsp + 0x4c]
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm1, xmmword [rsp + 0x50]
mov r8, r12
mov rcx, rbx
mov edx, eax
movaps xmmword [rsp + 0x30], xmm1
call fcn.14006adb0
xor eax, eax
jmp 0x14006af17
Function at 0x14006b540
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r13, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r12, qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea rbp, str._pipeuv_p__lu
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [rsp + 0xc0]
mov edi, r8d
mov qword [rsp + 0xa0], rcx
mov rsi, r9
mov rbx, rdx
mov qword [rsp + 0xa8], rdx
or edi, 0x400c0000
jmp 0x14006b5b1
call r15
mov edx, eax
cmp eax, 0xe7
je 0x14006b5ad
cmp eax, 5
jne 0x14006b678
add rbx, 1
call r13
mov r9, rbx
mov r8, rbp
mov rdx, r14
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.14006ad80
mov r9d, 1
xor r8d, r8d
mov edx, edi
mov qword [rsp + 0x38], 0
mov rcx, rsi
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call r12
mov r10, rax
cmp rax, 0xffffffffffffffff
je 0x14006b598
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x40], r10
xor r9d, r9d
mov rcx, r10
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov r10, qword [rsp + 0x40]
test rax, rax
je 0x14006b68b
mov rax, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xa8]
mov eax, dword [rax + 0x58]
mov qword [rdi + 0x80], rdi
mov qword [rdi + 0x128], 0
mov edx, eax
or dl, 0x80
mov dword [rdi + 0x58], edx
test eax, 0x1000000
jne 0x14006b6b0
mov rax, qword [rsp + 0xa8]
xor edx, edx
mov qword [rax + 0x118], r10
mov eax, edx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x48], r10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x40]
jmp 0x14006b678
mov qword [rsp + 0x40], r10
lea rcx, [rdi + 0x210]
mov qword [rdi + 0x238], 0
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov r10, qword [rsp + 0x40]
jmp 0x14006b667
Function at 0x14006c640
Capabilities:
Connect pipe
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov eax, dword [rcx + 0x58]
mov rbp, qword [rcx + 8]
mov rsi, rcx
test al, 0x40
je 0x14006c665
mov qword [rcx + 0x100], r8
mov edx, 0x2726
test ah, 0x20
je 0x14006c810
mov edx, 0x2748
test ah, 0x10
jne 0x14006c810
mov edx, 0x32
test eax, 0x2000000
je 0x14006c810
mov edx, eax
or edx, 0x40
mov dword [rsi + 0x58], edx
mov edx, dword [rsi + 0x7c]
lea ecx, [rdx + 1]
mov dword [rsi + 0x7c], ecx
mov ecx, eax
and ecx, 4
or ecx, edx
jne 0x14006c6c0
mov edx, eax
or edx, 0x44
mov dword [rsi + 0x58], edx
test al, 8
jne 0x14006c8b0
nop dword [rax + rax]
mov eax, dword [rsi + 0x128]
mov qword [rsi + 0x100], r8
xor edi, edi
test eax, eax
jle 0x14006c80e
mov r12, qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov r14, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13, qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
jmp 0x14006c709
mov eax, dword [rsi + 0x78]
add rdi, 1
add eax, 1
mov dword [rsi + 0x78], eax
cmp dword [rsi + 0x128], edi
jle 0x14006c80e
mov rbx, rdi
shl rbx, 7
add rbx, qword [rsi + 0x130]
test rdi, rdi
je 0x14006c787
mov rcx, qword [rsi + 0x120]
xor r8d, r8d
mov qword [rsp + 0x38], 0
mov r9d, 0xff
mov dword [rsp + 0x30], 0
mov edx, 0x40040003
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call r13
mov qword [rbx + 0x70], rax
mov r8, rax
cmp rax, 0xffffffffffffffff
je 0x14006c83a
mov dword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov rdx, rsi
mov rcx, rbp
call fcn.140069f00
test eax, eax
jne 0x14006c828
pxor xmm0, xmm0
lea rdx, [rbx + 0x40]
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rdx + 0x10], xmm0
mov rcx, qword [rbx + 0x70]
call r12
test eax, eax
jne 0x14006c6f0
call r14
cmp eax, 0x3e5
je 0x14006c6f0
call r14
mov edx, eax
xor eax, eax
cmp edx, 0x217
jne 0x14006c880
nop word [rax + rax]
mov qword [rbx + 0x40], rax
mov rax, qword [rbp + 0x48]
mov qword [rbx + 0x68], 0
test rax, rax
je 0x14006c860
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0x68], rdx
mov qword [rax + 0x68], rbx
mov eax, dword [rsi + 0x78]
mov qword [rbp + 0x48], rbx
add rdi, 1
add eax, 1
mov dword [rsi + 0x78], eax
cmp dword [rsi + 0x128], edi
jg 0x14006c709
xor edx, edx
mov eax, edx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
call r15
test eax, eax
jle 0x14006c870
call r15
movzx eax, ax
or eax, 0x80070000
cdqe
jmp 0x14006c7d0
mov qword [rbx + 0x68], rbx
jmp 0x14006c7f1
call r15
cdqe
jmp 0x14006c7d0
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call r14
test eax, eax
jle 0x14006c8c0
call r14
movzx eax, ax
or eax, 0x80070000
cdqe
jmp 0x14006c7d0
add dword [rbp + 8], 1
jmp 0x14006c6c0
call r14
cdqe
jmp 0x14006c7d0
Function at 0x14006ce50
Capabilities:
Read file on windows
Read pipe

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov ecx, dword [rdx + 0x58]
mov rbx, rdx
mov rdi, r8
mov edx, ecx
and edx, 0xffdeffff
sub dword [rbx + 0x78], 1
mov dword [rbx + 0x58], edx
jne 0x14006ce7d
test cl, 1
jne 0x14006cf60
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x14006ce91
call fcn.1400824a0
mov edx, dword [rbx + 0x58]
and dh, 0x10
je 0x14006cec7
mov rax, qword [rdi + 0x40]
mov ecx, eax
test eax, eax
jns 0x14006ced0
mov rax, qword [0x1402341f0]
call qword [rax]
cmp eax, 0x3e3
jne 0x14006cf80
mov eax, dword [rbx + 0x58]
and eax, 0x11000
cmp eax, 0x1000
je 0x14006cfaf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
lea rax, [rsp + 0x4c]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x118]
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x14006cfc8
mov edx, dword [rsp + 0x4c]
mov eax, dword [rbx + 0x58]
test edx, edx
jne 0x14006cf34
jmp 0x14006ceb7
mov rcx, rbx
call fcn.14006b010
test eax, eax
je 0x14006ceb4
mov edx, dword [rsp + 0x4c]
cmp edx, eax
jb 0x14006ceb4
sub edx, eax
mov dword [rsp + 0x4c], edx
je 0x14006ceb4
mov eax, dword [rbx + 0x58]
test ah, 0x10
je 0x14006ceb7
mov eax, dword [rbx + 0x110]
test eax, eax
jne 0x14006cf18
mov r8d, 0xffffffff
mov rcx, rbx
call fcn.14006ae70
jmp 0x14006cf20
and ecx, 0x20
jne 0x14006ce7d
mov rax, qword [rsi + 0x50]
or edx, 0x20
mov dword [rbx + 0x58], edx
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
jmp 0x14006ce7d
movdqa xmm0, xmmword [0x140226e10]
mov edx, eax
lea r8, [rsp + 0x30]
mov rcx, rbx
movaps xmmword [rsp + 0x30], xmm0
call fcn.14006adb0
mov eax, dword [rbx + 0x58]
and eax, 0x11000
cmp eax, 0x1000
jne 0x14006cec7
mov rdx, rbx
mov rcx, rsi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
jmp fcn.14006a380
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm1, xmmword [0x140226e10]
lea r8, [rsp + 0x30]
mov rcx, rbx
mov edx, eax
movaps xmmword [rsp + 0x30], xmm1
call fcn.14006adb0
jmp 0x14006cf08
Function at 0x14006df80
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
test rax, rax
je 0x14006dffe
xor eax, eax
lock cmpxchg qword [0x140274db8], rbx
mov rsi, rax
test rax, rax
jne 0x14006dfe0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140274dc0], eax
cmp eax, 0xffffffff
je 0x140211c46
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [0x140274db0], 1
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xffffffff
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140226e40]
mov ecx, eax
call fcn.140060590
nop
nop word cs:[rax + rax]
nop
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
mov rsi, qword [rcx + 8]
mov rdi, qword [rcx + 0x10]
call fcn.140082d30
cmp byte [0x140274db0], 0
jne 0x14006e045
call fcn.14006df80
mov ecx, dword [0x140274dc0]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140211c4c
mov rcx, rsi
call rbx
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14006e020
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
test rax, rax
je 0x14006dffe
xor eax, eax
lock cmpxchg qword [0x140274db8], rbx
mov rsi, rax
test rax, rax
jne 0x14006dfe0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140274dc0], eax
cmp eax, 0xffffffff
je 0x140211c46
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [0x140274db0], 1
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xffffffff
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140226e40]
mov ecx, eax
call fcn.140060590
nop
nop word cs:[rax + rax]
nop
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
mov rsi, qword [rcx + 8]
mov rdi, qword [rcx + 0x10]
call fcn.140082d30
cmp byte [0x140274db0], 0
jne 0x14006e045
call fcn.14006df80
mov ecx, dword [0x140274dc0]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140211c4c
mov rcx, rsi
call rbx
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x14006e110
Capabilities:
Create thread
Resume thread

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, rcx
mov ecx, 0x18
mov rbp, rdx
mov rsi, r8
call fcn.140082d10
mov rbx, rax
test rax, rax
je 0x14006e1e7
mov qword [rax], rbp
xor edx, edx
xor ecx, ecx
mov r9, rax
mov qword [rax + 8], rsi
lea r8, [0x14006e020]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
jne 0x14006e1a0
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, rbx
mov esi, dword [rax]
call fcn.140082d30
cmp esi, 0xd
je 0x14006e1e0
jg 0x14006e1c0
test esi, esi
je 0x14006e1b0
cmp esi, 0xb
mov edx, 0xfffff008
mov eax, 0xfffff01a
cmove eax, edx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov qword [rdi], rax
mov rcx, rax
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor eax, eax
cmp esi, 0x16
setne al
sub eax, 0xfe7
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 0xfffff004
jmp 0x14006e1b2
mov eax, 0xfffff027
jmp 0x14006e1b2
Function at 0x14006f7e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r15, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xb8]
mov r12, rcx
mov rsi, rdx
mov r14, r8
mov rbp, r9
cmp rdx, 2
jbe 0x14006f910
movzx eax, word [rcx]
cmp ax, 0x5c
je 0x14006f990
cmp ax, 0x2f
jne 0x14006fa00
mov edi, 4
mov r13d, 2
lea rcx, [rbp + r15 + 4]
add rcx, rsi
add rcx, r13
add rcx, rcx
call fcn.140082d10
mov rdx, qword [rsp + 0xb0]
mov r8, r13
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_wcsncpy
lea rax, [rsi + rsi]
add rdi, rbx
mov qword [rsp + 0x28], rax
movzx edx, word [rdi - 2]
lea rcx, [0x140226f00]
call sub.msvcrt.dll_wcsrchr
test rax, rax
je 0x14006fa18
mov rcx, rdi
mov r8, rsi
mov rdx, r12
call sub.msvcrt.dll_wcsncpy
mov rax, qword [rsp + 0x28]
add rdi, rax
test rsi, rsi
jne 0x14006f9d3
mov r8, rbp
mov rdx, r14
lea rsi, [rdi + rbp*2]
mov rcx, rdi
call sub.msvcrt.dll_wcsncpy
test r15, r15
je 0x14006f8dc
test rbp, rbp
jne 0x14006f960
mov rdx, qword [rsp + 0xa0]
mov rcx, rsi
mov r8, r15
lea rsi, [rsi + r15*2]
call sub.msvcrt.dll_wcsncpy
xor eax, eax
mov rcx, rbx
mov word [rsi], ax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006f980
test al, 0x10
jne 0x14006f980
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x28], 0
test rdx, rdx
jne 0x14006fa30
lea rcx, [rbp + r15 + 4]
add rcx, r13
add rcx, rsi
add rcx, rcx
call fcn.140082d10
mov rdx, qword [rsp + 0xb0]
mov r8, r13
mov rbx, rax
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
lea rdi, [rbx + r13*2]
test r13, r13
je 0x14006f886
jmp 0x14006f86d
cmp word [rsi - 2], 0x2e
je 0x14006f8c5
mov edx, 0x2e
add rsi, 2
mov word [rsi - 2], dx
jmp 0x14006f8c5
mov rcx, rbx
xor ebx, ebx
call fcn.140082d30
jmp 0x14006f8fb
cmp word [rcx + 2], 0x5c
jne 0x14006f82d
lea rcx, [rbp + r15 + 4]
add rcx, rsi
add rcx, rcx
call fcn.140082d10
mov rdx, qword [rsp + 0xb0]
xor r8d, r8d
mov rbx, rax
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
mov r8, rsi
mov rdx, r12
mov rcx, rbx
call sub.msvcrt.dll_wcsncpy
lea rdi, [rbx + rsi*2]
movzx edx, word [rdi - 2]
lea rcx, [0x140226f00]
call sub.msvcrt.dll_wcsrchr
test rax, rax
jne 0x14006f8a5
mov ecx, 0x5c
add rdi, 2
mov word [rdi - 2], cx
jmp 0x14006f8a5
cmp word [rcx + 2], 0x3a
je 0x14006fa60
lea rax, [rsi + rsi]
mov qword [rsp + 0x28], rax
jmp 0x14006f922
mov r8d, 0x5c
add rdi, 2
mov word [rdi - 2], r8w
jmp 0x14006f886
movzx eax, word [rcx]
cmp ax, 0x2f
je 0x14006f82d
cmp ax, 0x5c
je 0x14006f82d
cmp rdx, 1
jne 0x14006fab5
mov qword [rsp + 0x28], 2
jmp 0x14006f922
movzx eax, word [r12 + 4]
cmp ax, 0x2f
je 0x14006f99b
cmp ax, 0x5c
je 0x14006f99b
cmp r13, 1
jbe 0x14006f99b
mov rcx, qword [rsp + 0xb0]
mov r8d, 2
mov rdx, r12
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x14006f99b
add r12, 4
sub rsi, 2
lea rdi, [r13 + r13]
jmp 0x14006f838
cmp word [rcx + 2], 0x3a
jne 0x14006fa07
jmp 0x14006fa7a
Function at 0x1400732f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [rcx + 0x58]
test al, 1
jne 0x140073330
test ah, 0x80
je 0x140073340
mov eax, dword [rcx + 0x10]
cmp eax, 0xc
je 0x140073328
cmp eax, 0xe
je 0x140073320
cmp eax, 7
mov edx, 0xfffff02a
mov eax, 0xfffff008
cmovne eax, edx
ret
jmp fcn.14007b280
jmp 0x140074df0
mov eax, 0xfffff00d
ret
mov eax, 0xfffff031
ret
sub rsp, 0x58
mov eax, dword [rcx + 0x100]
test eax, eax
jne 0x140074e58
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASend]
mov edx, eax
mov eax, dword [rsp + 0x4c]
cmp edx, 0xffffffff
je 0x140074e40
add rsp, 0x58
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400605f0
add rsp, 0x58
ret
mov eax, 0xfffff008
jmp 0x140074e35