joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003f90
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, 0x10
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140003ff8
mov rcx, qword [0x140017028]
lea rax, [0x140017028]
cmp rcx, rax
je 0x140003fe3
test byte [rcx + 0x1c], 1
je 0x140003fe3
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x1f]
lea r8, [0x140012430]
call fcn.14000128c
mov edx, 2
mov rcx, rdi
call qword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
jmp 0x14000403a
mov rcx, qword [rax + 0x48]
lea rdx, [rsp + 0x38]
mov r8d, 2
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x38]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x140004016
test rax, rax
jne 0x140004038
mov rcx, qword [rbx + 0x48]
lea rdx, [rbx + 0x7a]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov byte [rbx + 0x78], 1
jmp 0x140003ff1
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000885c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400088c5
call fcn.1400092d8
mov ebx, eax
lea ecx, [rax + 0x7ff8fffe]
cmp ecx, 1
jbe 0x1400088c1
mov rcx, qword [0x140017028]
lea rax, [0x140017028]
cmp rcx, rax
je 0x1400088c1
test byte [rcx + 0x1c], 1
je 0x1400088c1
mov rcx, qword [rcx + 0x10]
lea r8, [0x140012ab8]
mov edx, 0x1e
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140005374
mov eax, ebx
jmp 0x1400088c9
mov dword [rbx], eax
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000893c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, dword [rdx]
mov rdi, r8
mov rsi, rdx
mov r8d, ebx
mov rdx, rdi
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edx, edx
mov r9d, eax
test eax, eax
jne 0x1400089b0
call fcn.1400092d8
mov ebx, eax
mov rcx, qword [0x140017028]
lea rax, [0x140017028]
cmp rcx, rax
je 0x1400089ac
test byte [rcx + 0x1c], 1
je 0x1400089ac
mov rcx, qword [rcx + 0x10]
lea r8, [0x140012ab8]
mov edx, 0x27
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.140005374
mov eax, ebx
jmp 0x1400089d2
cmp r9d, ebx
ja 0x1400089c6
lea eax, [r9 - 1]
cmp word [rdi + rax*2], dx
je 0x1400089cd
mov eax, 0x8000ffff
jmp 0x1400089d2
test ebx, ebx
je 0x1400089cd
mov word [rdi], dx
mov qword [rsi], r9
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140008cac
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, qword [r9]
mov rdi, r9
mov eax, r14d
mov r15, r8
mov dword [rsp + 0x68], eax
mov rbp, rdx
cmp rax, r14
je 0x140008ce3
mov ebx, 0x80070057
jmp 0x140008d2b
mov rbx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r9, r15
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x140008d65
test rbx, rbx
je 0x140008d46
mov eax, dword [rsp + 0x68]
cmp rax, qword [rdi]
jbe 0x140008d46
mov ebx, 0x800700ea
mov qword [rdi], rax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov eax, dword [rsp + 0x68]
mov r9, rdi
mov qword [rdi], rax
mov rdx, r14
mov r8d, dword [r15]
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.140008c10
jmp 0x140008d2d
mov ebx, 0x80070002
cmp esi, ebx
jne 0x140008da1
mov rcx, qword [0x140017028]
lea rax, [0x140017028]
cmp rcx, rax
je 0x140008d2b
test byte [rcx + 0x1c], 4
je 0x140008d2b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140012ac8]
mov edx, 0x15
mov r9, rbp
call fcn.1400051ec
jmp 0x140008d2b
mov ebx, 0x800700ea
cmp esi, ebx
je 0x140008de6
mov rcx, qword [0x140017028]
lea rax, [0x140017028]
cmp rcx, rax
je 0x140008ddf
test byte [rcx + 0x1c], 1
je 0x140008ddf
mov rcx, qword [rcx + 0x10]
lea r8, [0x140012ac8]
mov edx, 0x16
mov dword [rsp + 0x20], esi
mov r9, rbp
call fcn.140005374
mov ebx, esi
jmp 0x140008d2b
mov eax, dword [rsp + 0x68]
cmp qword [rdi], rax
jb 0x140008d28
mov ebx, 0x8000ffff
jmp 0x140008d2b
Function at 0x140009c58
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140017500]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
mov qword [rbp - 0x30], rcx
xor edi, edi
mov qword [rcx], rdi
mov qword [rbp - 0x38], rdi
mov dword [rbp - 0x28], 0x650076
mov dword [rbp - 0x24], 0x730072
mov dword [rbp - 0x20], 0x6f0069
mov dword [rbp - 0x1c], 0x2e006e
mov dword [rbp - 0x18], 0x6c0064
mov dword [rbp - 0x14], 0x6c
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x38]
call fcn.140008fa8
test eax, eax
js 0x140009da8
mov byte [rbp - 0x40], dil
lea r8, [0x140012b60]
lea rdx, [rbp - 0x28]
lea rcx, [0x140017018]
call fcn.1400090f8
lea rdx, [rbp - 0x28]
test eax, eax
jns 0x140009d30
lea rax, [0x140009a90]
mov qword [0x140017018], rax
lea r8, str.GetFileVersionInfoSizeW
lea rcx, [0x140017010]
call fcn.1400090f8
test eax, eax
js 0x140009db0
lea r8, str.GetFileVersionInfoW
lea rdx, [rbp - 0x28]
lea rcx, [0x140017020]
call fcn.1400090f8
test eax, eax
js 0x140009da0
jmp 0x140009d47
lea r8, str.GetFileVersionInfoExW
lea rcx, section..data
call fcn.1400090f8
test eax, eax
js 0x140009db8
lea r8, str.VerQueryValueW
lea rdx, [rbp - 0x28]
lea rcx, [0x140017008]
call fcn.1400090f8
test eax, eax
js 0x140009d98
mov rcx, qword [rbx]
mov rax, qword [rbp - 0x38]
mov qword [rbx], rax
test rcx, rcx
je 0x140009d78
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14000a210
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ecx, eax
call fcn.1400083b4
int3
mov ecx, eax
call fcn.1400083b4
nop
mov ecx, eax
call fcn.1400083b4
nop
mov ecx, eax
call fcn.1400083b4
int3
mov ecx, eax
call fcn.1400083b4
int3
Function at 0x14000a04c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.14000a5b0
test al, al
je 0x14000a1ad
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.14000a574
mov bl, al
mov ecx, dword [0x140017b80]
cmp ecx, 1
je 0x14000a1b8
test ecx, ecx
jne 0x14000a0d9
mov dword [0x140017b80], 1
lea rdx, [0x140011878]
lea rcx, [0x140011848]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x14000a0ba
mov eax, 0xff
jmp 0x14000a19d
lea rdx, [0x140011840]
lea rcx, [0x1400117f8]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x140017b80], 2
jmp 0x14000a0e1
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.14000a720
call fcn.14000a8b8
mov rbx, rax
cmp qword [rax], 0
je 0x14000a11e
mov rcx, rax
call fcn.14000a688
test al, al
je 0x14000a11e
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x1400117e8]
call fcn.14000a8c0
mov rbx, rax
cmp qword [rax], 0
je 0x14000a140
mov rcx, rax
call fcn.14000a688
test al, al
je 0x14000a140
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_wide_environment
mov rdi, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv
mov rbx, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call main
mov ebx, eax
call fcn.14000aa24
test al, al
je 0x14000a1c2
test sil, sil
jne 0x14000a177
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.14000a744
mov eax, ebx
jmp 0x14000a19d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.14000a8d0
nop
mov ecx, 7
call fcn.14000a8d0
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
int3
sub rsp, 0x28
call fcn.14000a7c4
add rsp, 0x28
jmp 0x14000a04c
Function at 0x1400019c0
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14003c010]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rdi, rcx
xor ebx, ebx
mov qword [rbp + 7], rbx
mov byte [rbp + 0xf], bl
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rdi + 0x1c]
test ecx, ecx
je 0x140001ad5
cmp ecx, 1
je 0x140001a1e
mov ebx, 8
jmp 0x140001be7
lea rdx, [rdi + 0x70]
lea rcx, [rbp + 0x2f]
call fcn.140001c30
nop
lea rcx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rcx, qword [rbp + 0x2f]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
nop
mov rdx, qword [rbp + 0x47]
test eax, eax
jne 0x140001a91
cmp rdx, 8
jb 0x140001a87
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a82
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001c1e
call fcn.140011770
mov ebx, 4
jmp 0x140001be7
cmp rdx, 8
jb 0x140001be7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001be1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001c18
jmp 0x140001be1
mov byte [rdi + 0x18], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x140001afc
lea ebx, [rax + 2]
jmp 0x140001be7
lea rdx, [rdi + 0x70]
lea rcx, [rbp + 0x2f]
call fcn.140001c30
nop
lea rcx, [rdi + 0xb0]
lea rax, [rbp + 0x2f]
cmp rcx, rax
je 0x140001b31
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rdx, qword [rbp + 0x2f]
mov r8, qword [rbp + 0x3f]
call fcn.1400021c0
lea rcx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rcx, qword [rbp + 0x2f]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x3e8
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov edx, 0x80003
mov r9d, 1
lea r8d, [r9 + 0xd]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rdi + 0x48], rax
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x140001b7c
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rdi + 0x48], 0xffffffffffffffff
jne 0x140001b94
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
sete bl
add ebx, 2
jmp 0x140001baa
mov dword [rdi], ebx
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rdi
call fcn.140001320
mov ebx, eax
mov rdx, qword [rbp + 0x47]
cmp rdx, 8
jb 0x140001be7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001be1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001c12
call fcn.140011770
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140011710
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14001676c
nop
call fcn.14001676c
int3
call fcn.14001676c
int3
Function at 0x140001cf0
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 0x140001e38
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 0x140001db1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140001e21
mov edx, dword [rsp + 0x88]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x140001e21
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 0x140001e21
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x140001e18
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 0x140001e12
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 0x140001e21
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 0x140006780
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 0x140006924
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 0x14000687f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140006874
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 0x140006844
cmp eax, 1
je 0x1400068d6
jmp 0x1400067f0
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 0x14000687f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x1400068f0
jmp 0x14000695a
cmp eax, 0x6d
je 0x14000690a
jmp 0x1400068a0
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.14000ea7c
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x59]
call fcn.140006200
lea rdx, [0x14003a960]
lea rcx, [rbp - 0x59]
call fcn.14001337c
nop
lea rcx, [rbp - 0x59]
call fcn.140006270
lea rdx, [0x14003a928]
lea rcx, [rbp - 0x59]
call fcn.14001337c
int3
lea rcx, [rbp - 0x59]
call fcn.140006270
lea rdx, [0x14003a928]
lea rcx, [rbp - 0x59]
call fcn.14001337c
int3
lea rcx, [rbp - 0x59]
call fcn.140006270
lea rdx, [0x14003a928]
lea rcx, [rbp - 0x59]
call fcn.14001337c
int3
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.Failed_to_create_connection
lea rcx, [rbp + 0xf]
call fcn.14000ea7c
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x59]
call fcn.140006200
lea rdx, [0x14003a960]
lea rcx, [rbp - 0x59]
call fcn.14001337c
nop
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.unexpected_error
lea rcx, [rbp + 0xf]
call fcn.14000ea7c
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x59]
call fcn.140006200
lea rdx, [0x14003a960]
lea rcx, [rbp - 0x59]
call fcn.14001337c
int3
Function at 0x1400069f0
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 0x140006b83
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 0x140006b9d
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 0x140006add
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140006afe
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 0x140006ac4
cmp eax, 1
je 0x140006b4f
jmp 0x140006a70
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 0x140006b69
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
je 0x140006b69
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.Connection_Closed
lea rcx, [rbp + 0xf]
call fcn.14000ea7c
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x29]
call fcn.140006200
lea rdx, [0x14003a960]
lea rcx, [rbp - 0x29]
call fcn.14001337c
nop
lea rcx, [rbp - 0x29]
call fcn.140006270
lea rdx, [0x14003a928]
lea rcx, [rbp - 0x29]
call fcn.14001337c
int3
lea rcx, [rbp - 0x29]
call fcn.140006270
lea rdx, [0x14003a928]
lea rcx, [rbp - 0x29]
call fcn.14001337c
nop
lea rcx, [rbp + 0xf]
call fcn.140006270
lea rdx, [0x14003a928]
lea rcx, [rbp + 0xf]
call fcn.14001337c
nop
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.Failed_to_create_connection
lea rcx, [rbp + 0xf]
call fcn.14000ea7c
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x29]
call fcn.140006200
lea rdx, [0x14003a960]
lea rcx, [rbp - 0x29]
call fcn.14001337c
int3
Function at 0x140006be0
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.1400069f0
mov r8d, 4
mov dword [rsp + 0x38], 0x10000
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1400069f0
mov eax, dword [rbx + 0xc]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov dword [rsp + 0x38], eax
mov rcx, rdi
call fcn.1400069f0
mov eax, dword [rbx + 8]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov dword [rsp + 0x38], eax
mov rcx, rdi
call fcn.1400069f0
mov eax, dword [rbx + 0x10]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov dword [rsp + 0x38], eax
mov rcx, rdi
call fcn.1400069f0
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.1400069f0
Function at 0x140010b88
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x60
xor r9d, r9d
mov rbx, rcx
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 0x140010bc6
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, rbx
add rsp, 0x60
pop rbx
ret
lea rdx, str.unable_to_create_tls_index
lea rcx, [rsp + 0x20]
call fcn.140004620
lea rdx, [0x14003a888]
lea rcx, [rsp + 0x20]
call fcn.14001337c
int3

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

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010c72
add dword [rax], 0xffffffff
jne 0x140010c6c
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 0x140010c95
add rsp, 0x60
pop rbx
ret
lea rdx, str.likely_unbalanced_enter_exit_monitor_pair__extra_exit_
lea rcx, [rsp + 0x20]
call fcn.140004620
lea rdx, [0x14003a888]
lea rcx, [rsp + 0x20]
call fcn.14001337c
int3
lea rdx, str.unable_to_set_tls_value
lea rcx, [rsp + 0x20]
call fcn.140004620
lea rdx, [0x14003a888]
lea rcx, [rsp + 0x20]
call fcn.14001337c
int3

Function at 0x140010cb8
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 0x140010cd5
cmp dword [rax], 0
jne 0x140010cdf
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.140010d9c
inc dword [rax]
add rsp, 0x20
pop rbx
ret

Function at 0x140010cf0
Capabilities:
Get thread local storage value

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x140010cfc
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010d43
cmp dword [rax], 0
jbe 0x140010d43
mov rcx, rbx
call fcn.140010c38
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010d33
cmp dword [rax], 0
jne 0x140010d3d
lea rcx, [rbx + 0x10]
call 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.140004620
lea rdx, [0x14003a888]
lea rcx, [rsp + 0x20]
call fcn.14001337c
int3
Function at 0x140010cfc
Capabilities:
Get thread local storage value

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x140010cfc
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010d43
cmp dword [rax], 0
jbe 0x140010d43
mov rcx, rbx
call fcn.140010c38
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010d33
cmp dword [rax], 0
jne 0x140010d3d
lea rcx, [rbx + 0x10]
call 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.140004620
lea rdx, [0x14003a888]
lea rcx, [rsp + 0x20]
call fcn.14001337c
int3

Function at 0x140010d9c
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 0x140010de1
lea edx, [rax + 4]
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140010def
and dword [rax], 0
mov rdx, rax
mov ecx, dword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140010e12
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.140004620
lea rdx, [0x14003a888]
lea rcx, [rsp + 0x20]
call fcn.14001337c
int3
lea rdx, str.unable_to_set_tls_value
lea rcx, [rsp + 0x20]
call fcn.140004620
lea rdx, [0x14003a888]
lea rcx, [rsp + 0x20]
call fcn.14001337c
int3

Function at 0x140010ee0
Capabilities:
Create thread

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