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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.14000f2a0
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x140007a36
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x140007970
jmp 0x14000795f
jae 0x140007a48
cmp r8, 0x201
jae 0x140007970
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x1400079c8
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x14000799f
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.14001d730
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x1400079f7
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140007b1b
mov r8d, esi
cmp r12, r8
jne 0x140007950
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140007b45
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000795f
jmp 0x140007970
lea rcx, [rbp - 0x58]
call fcn.1400057e0
mov byte [rsi + 0x18], 2
jmp 0x140007ada
cmp r15, r8
jb 0x140007b5f
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.1400095d0
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x140007a99
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.140002b60
cmp byte [rbp + 0x3d8], 2
jne 0x140007af1
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.1400057e0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x140007ada
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.140002b60
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x140007ac5
jmp 0x140007ada
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x140007a81
jmp 0x140007a99
lea rcx, str.internal_error:_entered_unreachable_code_rustc_49691b1f70d71dd7b8349c332b7f277ee527bf08library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001e140
jmp 0x140007b74
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14001e590
ud2
Function at 0x14000e040
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140021708]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000e084
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000e0ea
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000e121
test eax, eax
js 0x14000e0fb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000e114
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140009310
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140005980
mov ecx, 7
int 0x29
ud2
Function at 0x14001b690
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001b70a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001b700
cmp r11, r10
ja 0x14001b7a3
cmp r10, rdx
ja 0x14001b7b7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001b702
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001b6e0
jmp 0x14001b777
ja 0x14001b70a
mov r11, r10
cmp rax, r8
jne 0x14001b6b2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001b77b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001b750
mov r8, r10
sub ecx, r9d
jns 0x14001b76e
jmp 0x14001b77d
cmp r10, rdx
je 0x14001b789
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001b77d
xor al, 1
cmp r8, rdx
jne 0x14001b730
jmp 0x14001b77d
xor eax, eax
jmp 0x14001b77d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14002353b]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001e140
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001e610
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001e590
ud2

Function at 0x14001d1b4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d1fe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d1fe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d1fe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d1fe
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d1fe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001d200
xor al, al
add rsp, 0x28
ret
Function at 0x140001970
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14003c010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rbx + 0x1c]
test ecx, ecx
je 0x140001a7b
cmp ecx, 1
je 0x1400019be
mov eax, 8
jmp 0x140001b9d
lea rdx, [rbx + 0x70]
lea rcx, [rsp + 0x58]
call fcn.140001bd0
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
nop
mov rdx, qword [rsp + 0x70]
test eax, eax
jne 0x140001a37
cmp rdx, 8
jb 0x140001a2d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a28
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001bc1
call fcn.140011f40
mov eax, 4
jmp 0x140001b9d
cmp rdx, 8
jb 0x140001a74
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a6f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001bc7
call fcn.140011f40
xor eax, eax
jmp 0x140001b9d
mov byte [rbx + 0x18], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140001aa4
mov eax, 2
jmp 0x140001b9d
lea rdx, [rbx + 0x70]
lea rcx, [rsp + 0x58]
call fcn.140001bd0
nop
lea rcx, [rbx + 0xb0]
lea rax, [rsp + 0x58]
cmp rcx, rax
je 0x140001adf
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
call fcn.140002160
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
xor edi, edi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x3e8
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov edx, 0x80003
lea r9d, [rdi + 1]
lea r8d, [rdi + 0xe]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x48], rax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001b2e
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rbx + 0x48], 0xffffffffffffffff
jne 0x140001b47
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
sete dil
add edi, 2
jmp 0x140001b5d
mov dword [rbx], edi
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rbx
call fcn.1400012c0
mov edi, eax
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140001b9b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001bbb
call fcn.140011f40
mov eax, edi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140011ee0
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
call fcn.140016cdc
int3
call fcn.140016cdc
int3
call fcn.140016cdc
int3
Function at 0x140001c90
Capabilities:
Read pipe
Write pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov dword [rsp + 0x20], r9d
push rsi
sub rsp, 0x40
xor ebx, ebx
mov rbp, r8
mov rsi, rdx
test rdx, rdx
je 0x140001dd8
xor ecx, ecx
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov dword [rsp + 0x28], 0x190000
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001d51
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140001dc1
mov edx, dword [rsp + 0x88]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x140001dc1
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov dword [rsp + 0x28], 0x190000
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001dc1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x140001db2
xor r9d, r9d
mov dword [rsp + 0x68], 2
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x140001db2
mov rax, qword [rsp + 0x80]
mov r8d, 0x410
mov r9, qword [rsp + 0x70]
mov rdx, rbp
mov qword [rsp + 0x30], rbx
mov rcx, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x40c
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov ebx, eax
cmp rdi, 0xffffffffffffffff
je 0x140001dc1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
Function at 0x1400066d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov esi, r8d
mov r14, rdx
mov rdi, rcx
xor eax, eax
mov dword [rbp + 0x67], eax
mov qword [rbp - 0x11], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
mov qword [rbp + 0x7f], rax
mov qword [rbp + 7], rax
mov qword [rbp - 0x21], rax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 0x28]
mov qword [rbp - 0x19], rcx
cmp rbx, 0xffffffffffffffff
je 0x140006874
nop word [rax + rax]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x67]
mov r8d, esi
mov rdx, r14
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400067cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400067c4
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp - 0x21]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x140006794
cmp eax, 1
je 0x140006826
jmp 0x140006740
mov r9d, 1
lea r8, [rbp + 0x67]
lea rdx, [rbp - 0x11]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1400067cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140006840
jmp 0x1400068aa
cmp eax, 0x6d
je 0x14000685a
jmp 0x1400067f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.Read_Error
lea rcx, [rbp + 0xf]
call fcn.14000eb50
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x59]
call fcn.140006150
lea rdx, [0x14003a978]
lea rcx, [rbp - 0x59]
call fcn.140013b5c
nop
lea rcx, [rbp - 0x59]
call fcn.1400061c0
lea rdx, [0x14003a940]
lea rcx, [rbp - 0x59]
call fcn.140013b5c
int3
lea rcx, [rbp - 0x59]
call fcn.1400061c0
lea rdx, [0x14003a940]
lea rcx, [rbp - 0x59]
call fcn.140013b5c
int3
lea rcx, [rbp - 0x59]
call fcn.1400061c0
lea rdx, [0x14003a940]
lea rcx, [rbp - 0x59]
call fcn.140013b5c
int3
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.Failed_to_create_connection
lea rcx, [rbp + 0xf]
call fcn.14000eb50
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x59]
call fcn.140006150
lea rdx, [0x14003a978]
lea rcx, [rbp - 0x59]
call fcn.140013b5c
nop
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.unexpected_error
lea rcx, [rbp + 0xf]
call fcn.14000eb50
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x59]
call fcn.140006150
lea rdx, [0x14003a978]
lea rcx, [rbp - 0x59]
call fcn.140013b5c
int3
Function at 0x140006940
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov esi, r8d
mov r14, rdx
mov rdi, rcx
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140006ad3
xor eax, eax
mov dword [rbp + 0x67], eax
mov qword [rbp - 0x49], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
mov qword [rbp + 0x7f], rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x59], rax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 0x28]
mov qword [rbp - 0x51], rcx
cmp rbx, 0xffffffffffffffff
je 0x140006aed
nop word [rax + rax]
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x67]
mov r8d, esi
mov rdx, r14
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140006a2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140006a4e
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp - 0x59]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x140006a14
cmp eax, 1
je 0x140006a9f
jmp 0x1400069c0
mov r9d, 1
lea r8, [rbp + 0x67]
lea rdx, [rbp - 0x49]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp eax, 0xe8
je 0x140006ab9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
je 0x140006ab9
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.Connection_Closed
lea rcx, [rbp + 0xf]
call fcn.14000eb50
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x29]
call fcn.140006150
lea rdx, [0x14003a978]
lea rcx, [rbp - 0x29]
call fcn.140013b5c
nop
lea rcx, [rbp - 0x29]
call fcn.1400061c0
lea rdx, [0x14003a940]
lea rcx, [rbp - 0x29]
call fcn.140013b5c
int3
lea rcx, [rbp - 0x29]
call fcn.1400061c0
lea rdx, [0x14003a940]
lea rcx, [rbp - 0x29]
call fcn.140013b5c
nop
lea rcx, [rbp + 0xf]
call fcn.1400061c0
lea rdx, [0x14003a940]
lea rcx, [rbp + 0xf]
call fcn.140013b5c
nop
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.Failed_to_create_connection
lea rcx, [rbp + 0xf]
call fcn.14000eb50
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x29]
call fcn.140006150
lea rdx, [0x14003a978]
lea rcx, [rbp - 0x29]
call fcn.140013b5c
int3
Function at 0x140006b30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov dword [rsp + 0x38], 0xfffe00ff
lea rdx, [rsp + 0x38]
mov r8d, 4
mov rdi, rcx
call fcn.140006940
mov r8d, 4
mov dword [rsp + 0x38], 0x10000
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140006940
mov eax, dword [rbx + 0xc]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov dword [rsp + 0x38], eax
mov rcx, rdi
call fcn.140006940
mov eax, dword [rbx + 8]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov dword [rsp + 0x38], eax
mov rcx, rdi
call fcn.140006940
mov eax, dword [rbx + 0x10]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov dword [rsp + 0x38], eax
mov rcx, rdi
call fcn.140006940
mov r8d, dword [rbx + 0x10]
mov rcx, rdi
mov rdx, qword [rbx + 0x18]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140006940
Function at 0x140011370
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001138d
cmp dword [rax], 0
jne 0x140011397
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.140011520
inc dword [rax]
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, qword [rcx + 8]
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140011421
cmp dword [rax], 0
jbe 0x140011421
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140011444
add dword [rax], 0xffffffff
jne 0x1400113f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140011467
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001140b
cmp dword [rax], 0
jne 0x14001141b
lea rcx, [rbx + 0x10]
add rsp, 0x60
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x60
pop rbx
ret
lea rdx, str.must_own_monitor_prior_to_calling_exit__
lea rcx, [rsp + 0x20]
call fcn.140004510
lea rdx, [0x14003a8a0]
lea rcx, [rsp + 0x20]
call fcn.140013b5c
int3
lea rdx, str.likely_unbalanced_enter_exit_monitor_pair__extra_exit_
lea rcx, [rsp + 0x20]
call fcn.140004510
lea rdx, [0x14003a8a0]
lea rcx, [rsp + 0x20]
call fcn.140013b5c
int3
lea rdx, str.unable_to_set_tls_value
lea rcx, [rsp + 0x20]
call fcn.140004510
lea rdx, [0x14003a8a0]
lea rcx, [rsp + 0x20]
call fcn.140013b5c
int3

Function at 0x140011490
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
mov ecx, 0x38
call fcn.140011f04
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1400114e2
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 8], eax
cmp eax, 0xffffffff
je 0x1400114f3
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1400114e4
xor ebx, ebx
mov qword [rdi + 8], rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
lea rdx, str.unable_to_create_tls_index
lea rcx, [rsp + 0x20]
call fcn.140004510
lea rdx, [0x14003a8a0]
lea rcx, [rsp + 0x20]
call fcn.140013b5c
int3
Function at 0x140011520
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140011568
lea edx, [rax + 4]
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140011576
mov dword [rax], 0
mov rdx, rax
mov ecx, dword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140011599
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
lea rdx, str.unable_to_create_tls_data
lea rcx, [rsp + 0x20]
call fcn.140004510
lea rdx, [0x14003a8a0]
lea rcx, [rsp + 0x20]
call fcn.140013b5c
int3
lea rdx, str.unable_to_set_tls_value
lea rcx, [rsp + 0x20]
call fcn.140004510
lea rdx, [0x14003a8a0]
lea rcx, [rsp + 0x20]
call fcn.140013b5c
int3

Function at 0x140011670
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov ecx, 8
call fcn.140011f04
xor edx, edx
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140011694
mov qword [rax], rdx
jmp 0x140011697
mov rax, rdx
mov qword [rsp + 0x28], rdx
lea r8, [0x140011740]
mov dword [rsp + 0x20], edx
mov r9, rbx
xor edx, edx
mov qword [rbx + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rbx + 0x20]
mov qword [rcx], rax
add rsp, 0x30
pop rbx
ret

Function at 0x14001f6a4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001f4d0
Function at 0x14003b870
Capabilities:
Access peb ldr_data

Disassembly:
push rcx
push r11
push r13
sub rcx, rcx
add rcx, 0x60
mov r11, qword gs:[rcx]
push r10

Function at 0x14003bb00
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14003bb4c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003bb44
cmp dword [rcx + 0x3c], edx
jl 0x14003bb44
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14003bb44
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14003bb4c
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14010b3af
Capabilities:
Encode data using xor

Disassembly:
lea rsp, [rsp + 8]
je 0x14010ba3f
mov edx, 0xf2256090
push r10
lea r10, [0x140119e18]
mov edx, 0x5588a989
neg dl
inc edx
movzx edx, byte [r8 + rdx - 0x5588a978]
push 0xffffffffc7afe70e
rol word [rsp + 1], 0x4d
xor edx, eax
and edx, 0xff
mov edx, dword [r10 + rdx*4]
shr eax, 8
xor eax, edx
push 0x6abe848b
inc r8
xor eax, 0xd2838019
dec r11
lea rsp, [rsp + 0x10]
jne 0x14010b3c8
jmp 0x14010ba3d

Function at 0x14011e8f4
Capabilities:
Encode data using xor

Disassembly:
call fcn.14012ab55
push 0xffffffffc4b53538
mov r9, qword [rbp + riz]
mov r10, qword ss:[r9]
call fcn.1400eef57
test rdx, rdx
push 0xffffffff8c858a09
lea rsp, [rsp + 0x18]
je 0x14011e97b
mov ebx, 0xada7a79e
sar ebx, 0xf9
push rdi
mov edi, 0x97116090
lea rbx, [0x1400ff310]
mov edi, 0xb0981a18
movzx edi, byte [r11]
push 0xffffffff898d200b
sub word [rsp + 6], 0x9697
xor edi, eax
shl byte [rsp + 6], 7
and edi, 0xff
mov edi, dword [rbx + rdi*4]
shl dword [rsp + 2], 0xb4
shr eax, 8
xor eax, edi
inc r11
inc word [rsp + 2]
xor eax, 0x23915603
sar dword [rsp + 1], 0x85
dec rdx
push 0xffffffffac3e6129
push 0x528ae53f
lea rsp, [rsp + 0x18]
jne 0x14011e91c
mov edi, 0x26007233
pop rdi
call fcn.1401219fa
call fcn.1400ed8b3
add r9, rdx
jmp 0x1400f85a0