joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140067f00
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 0x140068018
call sub.msvcrt.dll_wcslen
mov r13, rax
mov rbx, rax
jmp 0x140067f47
lea rsi, [rbx - 1]
movzx edx, word [rdi + rsi*2]
cmp dx, 0x2f
je 0x140067fa0
cmp dx, 0x5c
je 0x140067fa0
mov rbx, rsi
test rbx, rbx
jne 0x140067f30
test rbp, rbp
je 0x140067f7e
mov ecx, 0x20a
call fcn.140082db0
mov qword [rbp], rax
mov rdx, rax
test rax, rax
je 0x14006804c
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140068031
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 0x140067f4c
test rbp, rbp
je 0x140067fd9
lea rcx, [rbx + rbx + 2]
call fcn.140082db0
mov qword [rbp], rax
mov rcx, rax
test rax, rax
je 0x14006804c
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.140082db0
mov qword [r12], rax
mov rcx, rax
test rax, rax
je 0x14006804c
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 0x140067f8a
test rdx, rdx
je 0x140068024
mov qword [rdx], 0
mov qword [r12], 0
jmp 0x140067f8a
mov rcx, qword [rbp]
call fcn.140082dd0
mov qword [rbp], 0
mov eax, 0xffffffff
jmp 0x140067f8c
lea rdx, [0x140226d30]
mov ecx, 0xe
call fcn.140060630
nop
nop
Function at 0x140068f60
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 0x140069040
jle 0x140068fc0
cmp eax, 0x2afa
je 0x140069030
jg 0x140069000
cmp eax, 0x277d
je 0x140068fe0
cmp eax, 0x2af9
jne 0x140069020
mov eax, 0xfffff440
mov dword [rbx + 0x58], eax
add rsp, 0x20
pop rbx
ret
cmp eax, 0x2726
je 0x140069010
jg 0x140068ff0
test eax, eax
je 0x140068fb3
cmp eax, 8
jne 0x140069020
mov eax, 0xfffff442
jmp 0x140068fb3
mov eax, 0xfffff43e
jmp 0x140068fb3
cmp eax, 0x273c
jne 0x140069020
mov eax, 0xfffff43d
jmp 0x140068fb3
cmp eax, 0x2afb
jne 0x140069020
mov eax, 0xfffff444
jmp 0x140068fb3
mov eax, 0xfffff446
jmp 0x140068fb3
mov ecx, eax
call fcn.140060690
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 0x14006a120
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 0x14006a1a0
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 0x14006a222
mov dword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov rdx, rsi
mov rcx, rdi
call fcn.140069fa0
test eax, eax
jne 0x14006a210
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 0x14006a1d0
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 0x14006a1be
call rbp
mov edx, eax
xor eax, eax
cmp edx, 0x217
je 0x14006a23b
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call rbp
test eax, eax
jg 0x14006a22f
call rbp
cdqe
jmp 0x14006a23b
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 0x14006a206
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 0x14006a278
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 0x14006a25c
Function at 0x14006a420
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 0x14006a4a8
mov r8d, 0x10
lea rcx, [0x14006a280]
mov qword [rdx + 0x238], 0
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x14006a560
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x14006a489
xor r9d, r9d
mov r8d, 0x32
lea rdx, [0x14006aff0]
call fcn.140082970
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 0x14006a4d7
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 0x14006a570
test byte [rbx + 0x5a], 8
je 0x14006a468
cmp qword [rbx + 0xf0], 0
je 0x14006a5e0
cmp qword [rbx + 0xf8], 0xffffffffffffffff
jne 0x14006a468
mov rdx, qword [rbx + 0xd8]
lea rcx, [rbx + 0xf8]
mov dword [rsp + 0x28], 4
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
lea r8, [0x14006a6a0]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x14006a468
nop word cs:[rax + rax]
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14006a584
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
cmp eax, 0x3e5
je 0x14006a4fa
call rbp
test eax, eax
jle 0x14006a5d0
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 0x14006a618
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0xe8], rdx
mov qword [rax + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x14006a489
call rbp
cdqe
jmp 0x14006a596
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 0x14006a512
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140226dcb]
mov ecx, eax
call fcn.140060630
nop dword [rax]
mov qword [rbx + 0xe8], rdi
jmp 0x14006a5c0
Function at 0x14006a740
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.140060630
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 0x14006a7a8
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 0x14006a7d6
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 0x14006a7d0
call rdi
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
jmp 0x14006a782
call rdi
cdqe
jmp 0x14006a7c1
call fcn.14006a630
nop
nop dword [rax]
Function at 0x14006af10
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.140082ef0
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 0x14006af63
mov r8d, dword [rsp + 0x50]
test r8d, r8d
jne 0x14006af80
mov r8, rbp
mov rdx, 0xfffffffffffff024
mov rcx, rbx
call qword [rbx + 0x70]
xor eax, eax
jmp 0x14006afb7
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 0x14006afc8
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.14006ae50
xor eax, eax
jmp 0x14006afb7
Function at 0x14006b5e0
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 0x14006b651
call r15
mov edx, eax
cmp eax, 0xe7
je 0x14006b64d
cmp eax, 5
jne 0x14006b718
add rbx, 1
call r13
mov r9, rbx
mov r8, rbp
mov rdx, r14
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.14006ae20
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 0x14006b638
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 0x14006b72b
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 0x14006b750
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 0x14006b718
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 0x14006b707
Function at 0x14006c6e0
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 0x14006c705
mov qword [rcx + 0x100], r8
mov edx, 0x2726
test ah, 0x20
je 0x14006c8b0
mov edx, 0x2748
test ah, 0x10
jne 0x14006c8b0
mov edx, 0x32
test eax, 0x2000000
je 0x14006c8b0
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 0x14006c760
mov edx, eax
or edx, 0x44
mov dword [rsi + 0x58], edx
test al, 8
jne 0x14006c950
nop dword [rax + rax]
mov eax, dword [rsi + 0x128]
mov qword [rsi + 0x100], r8
xor edi, edi
test eax, eax
jle 0x14006c8ae
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 0x14006c7a9
mov eax, dword [rsi + 0x78]
add rdi, 1
add eax, 1
mov dword [rsi + 0x78], eax
cmp dword [rsi + 0x128], edi
jle 0x14006c8ae
mov rbx, rdi
shl rbx, 7
add rbx, qword [rsi + 0x130]
test rdi, rdi
je 0x14006c827
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 0x14006c8da
mov dword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov rdx, rsi
mov rcx, rbp
call fcn.140069fa0
test eax, eax
jne 0x14006c8c8
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 0x14006c790
call r14
cmp eax, 0x3e5
je 0x14006c790
call r14
mov edx, eax
xor eax, eax
cmp edx, 0x217
jne 0x14006c920
nop word [rax + rax]
mov qword [rbx + 0x40], rax
mov rax, qword [rbp + 0x48]
mov qword [rbx + 0x68], 0
test rax, rax
je 0x14006c900
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 0x14006c7a9
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 0x14006c910
call r15
movzx eax, ax
or eax, 0x80070000
cdqe
jmp 0x14006c870
mov qword [rbx + 0x68], rbx
jmp 0x14006c891
call r15
cdqe
jmp 0x14006c870
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call r14
test eax, eax
jle 0x14006c960
call r14
movzx eax, ax
or eax, 0x80070000
cdqe
jmp 0x14006c870
add dword [rbp + 8], 1
jmp 0x14006c760
call r14
cdqe
jmp 0x14006c870
Function at 0x14006cef0
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 0x14006cf1d
test cl, 1
jne 0x14006d000
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x14006cf31
call fcn.140082540
mov edx, dword [rbx + 0x58]
and dh, 0x10
je 0x14006cf67
mov rax, qword [rdi + 0x40]
mov ecx, eax
test eax, eax
jns 0x14006cf70
mov rax, qword [0x1402341f0]
call qword [rax]
cmp eax, 0x3e3
jne 0x14006d020
mov eax, dword [rbx + 0x58]
and eax, 0x11000
cmp eax, 0x1000
je 0x14006d04f
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 0x14006d068
mov edx, dword [rsp + 0x4c]
mov eax, dword [rbx + 0x58]
test edx, edx
jne 0x14006cfd4
jmp 0x14006cf57
mov rcx, rbx
call fcn.14006b0b0
test eax, eax
je 0x14006cf54
mov edx, dword [rsp + 0x4c]
cmp edx, eax
jb 0x14006cf54
sub edx, eax
mov dword [rsp + 0x4c], edx
je 0x14006cf54
mov eax, dword [rbx + 0x58]
test ah, 0x10
je 0x14006cf57
mov eax, dword [rbx + 0x110]
test eax, eax
jne 0x14006cfb8
mov r8d, 0xffffffff
mov rcx, rbx
call fcn.14006af10
jmp 0x14006cfc0
and ecx, 0x20
jne 0x14006cf1d
mov rax, qword [rsi + 0x50]
or edx, 0x20
mov dword [rbx + 0x58], edx
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
jmp 0x14006cf1d
movdqa xmm0, xmmword [0x140226e10]
mov edx, eax
lea r8, [rsp + 0x30]
mov rcx, rbx
movaps xmmword [rsp + 0x30], xmm0
call fcn.14006ae50
mov eax, dword [rbx + 0x58]
and eax, 0x11000
cmp eax, 0x1000
jne 0x14006cf67
mov rdx, rbx
mov rcx, rsi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
jmp fcn.14006a420
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.14006ae50
jmp 0x14006cfa8
Function at 0x14006e020
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 0x14006e09e
xor eax, eax
lock cmpxchg qword [0x140274db8], rbx
mov rsi, rax
test rax, rax
jne 0x14006e080
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140274dc0], eax
cmp eax, 0xffffffff
je 0x140211d36
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.140060630
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.140082dd0
cmp byte [0x140274db0], 0
jne 0x14006e0e5
call fcn.14006e020
mov ecx, dword [0x140274dc0]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140211d3c
mov rcx, rsi
call rbx
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14006e0c0
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 0x14006e09e
xor eax, eax
lock cmpxchg qword [0x140274db8], rbx
mov rsi, rax
test rax, rax
jne 0x14006e080
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140274dc0], eax
cmp eax, 0xffffffff
je 0x140211d36
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.140060630
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.140082dd0
cmp byte [0x140274db0], 0
jne 0x14006e0e5
call fcn.14006e020
mov ecx, dword [0x140274dc0]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140211d3c
mov rcx, rsi
call rbx
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x14006e1b0
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.140082db0
mov rbx, rax
test rax, rax
je 0x14006e287
mov qword [rax], rbp
xor edx, edx
xor ecx, ecx
mov r9, rax
mov qword [rax + 8], rsi
lea r8, [0x14006e0c0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
jne 0x14006e240
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, rbx
mov esi, dword [rax]
call fcn.140082dd0
cmp esi, 0xd
je 0x14006e280
jg 0x14006e260
test esi, esi
je 0x14006e250
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 0x14006e252
mov eax, 0xfffff027
jmp 0x14006e252
Function at 0x14006f880
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 0x14006f9b0
movzx eax, word [rcx]
cmp ax, 0x5c
je 0x14006fa30
cmp ax, 0x2f
jne 0x14006faa0
mov edi, 4
mov r13d, 2
lea rcx, [rbp + r15 + 4]
add rcx, rsi
add rcx, r13
add rcx, rcx
call fcn.140082db0
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 0x14006fab8
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 0x14006fa73
mov r8, rbp
mov rdx, r14
lea rsi, [rdi + rbp*2]
mov rcx, rdi
call sub.msvcrt.dll_wcsncpy
test r15, r15
je 0x14006f97c
test rbp, rbp
jne 0x14006fa00
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 0x14006fa20
test al, 0x10
jne 0x14006fa20
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 0x14006fad0
lea rcx, [rbp + r15 + 4]
add rcx, r13
add rcx, rsi
add rcx, rcx
call fcn.140082db0
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 0x14006f926
jmp 0x14006f90d
cmp word [rsi - 2], 0x2e
je 0x14006f965
mov edx, 0x2e
add rsi, 2
mov word [rsi - 2], dx
jmp 0x14006f965
mov rcx, rbx
xor ebx, ebx
call fcn.140082dd0
jmp 0x14006f99b
cmp word [rcx + 2], 0x5c
jne 0x14006f8cd
lea rcx, [rbp + r15 + 4]
add rcx, rsi
add rcx, rcx
call fcn.140082db0
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 0x14006f945
mov ecx, 0x5c
add rdi, 2
mov word [rdi - 2], cx
jmp 0x14006f945
cmp word [rcx + 2], 0x3a
je 0x14006fb00
lea rax, [rsi + rsi]
mov qword [rsp + 0x28], rax
jmp 0x14006f9c2
mov r8d, 0x5c
add rdi, 2
mov word [rdi - 2], r8w
jmp 0x14006f926
movzx eax, word [rcx]
cmp ax, 0x2f
je 0x14006f8cd
cmp ax, 0x5c
je 0x14006f8cd
cmp rdx, 1
jne 0x14006fb55
mov qword [rsp + 0x28], 2
jmp 0x14006f9c2
movzx eax, word [r12 + 4]
cmp ax, 0x2f
je 0x14006fa3b
cmp ax, 0x5c
je 0x14006fa3b
cmp r13, 1
jbe 0x14006fa3b
mov rcx, qword [rsp + 0xb0]
mov r8d, 2
mov rdx, r12
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x14006fa3b
add r12, 4
sub rsi, 2
lea rdi, [r13 + r13]
jmp 0x14006f8d8
cmp word [rcx + 2], 0x3a
jne 0x14006faa7
jmp 0x14006fb1a
Function at 0x140073390
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [rcx + 0x58]
test al, 1
jne 0x1400733d0
test ah, 0x80
je 0x1400733e0
mov eax, dword [rcx + 0x10]
cmp eax, 0xc
je 0x1400733c8
cmp eax, 0xe
je 0x1400733c0
cmp eax, 7
mov edx, 0xfffff02a
mov eax, 0xfffff008
cmovne eax, edx
ret
jmp fcn.14007b320
jmp 0x140074e90
mov eax, 0xfffff00d
ret
mov eax, 0xfffff031
ret
sub rsp, 0x58
mov eax, dword [rcx + 0x100]
test eax, eax
jne 0x140074ef8
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 0x140074ee0
add rsp, 0x58
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140060690
add rsp, 0x58
ret
mov eax, 0xfffff008
jmp 0x140074ed5