joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c8f60
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, 0xffff
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x1400c8f91
xor eax, eax
jmp 0x1400c90df
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x1400c8fce
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x1400c8fce
lea ecx, [r10 - 1]
movzx eax, si
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x1400c90df
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x1400c90d4
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400c9015
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400c903e
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.1402cb990
cmp ax, di
je 0x1400c90d4
movzx edi, si
jmp 0x1400c90d4
lea r8, [rsp + 0x40]
mov word [rsp + 0x50], si
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x52]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + reloc.WS2_32.dll_getservbyport]
test eax, eax
js 0x1400c90d4
cmp eax, 1
jle 0x1400c9094
cmp eax, 3
jne 0x1400c90d4
movzx ecx, word [rsp + 0x50]
jmp 0x1400c9021
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x1400c90c1
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call fcn.1402cc658
cmp rbp, rax
jne 0x1400c90d4
lea rax, [rsp + 0x50]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x48], rax
movzx eax, si
jne 0x1400c90d7
movzx eax, di
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140296f70
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400c9570
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400c9644
cmp byte [rcx + 0x72], 0
je 0x1400c9644
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x1400c9640
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x1400c9606
sub eax, 1
je 0x1400c960a
cmp eax, 2
jne 0x1400c9640
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140296f70
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400c9637
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.1402cc658
cmp rdi, rax
jne 0x1400c9640
cmp byte [rbx + 0x72], 0
sete al
jmp 0x1400c95ee
xor al, al
jmp 0x1400c95ee
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140296f70
add rsp, 0x60
pop rbx
ret
Function at 0x1400cb640
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rcx
mov qword [rsp + 0x58], rcx
mov ecx, 0x80
call fcn.140296fc8
mov rbx, rax
mov qword [rsp + 0x88], rax
xor esi, esi
mov dword [rax + 8], esi
lea rax, vtable.contextsubscriber.0
mov qword [rbx], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx + 0x10], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbx + 0x20], xmm1
lea rcx, [rbx + 0x30]
lea edx, [rsi + 2]
call fcn.1400fdf14
lea rcx, [rsp + 0x30]
call fcn.14002ce60
nop
mov eax, 9
mov word [rdi], ax
mov qword [rdi + 8], rbx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rdi + 0x18]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
lea rbx, [rdi + 0x30]
mov qword [rsp + 0x88], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
je 0x1400cb7f4
mov qword [rbx + 8], rax
lea rbx, [rdi + 0x40]
mov qword [rsp + 0x88], rbx
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
je 0x1400cb7b1
mov qword [rbx + 8], rax
mov byte [rdi + 0x50], sil
lea ecx, [rsi + 8]
call fcn.140296fc8
mov qword [rax], rdi
mov qword [rsp + 0x88], rax
lea rbx, [rdi + 0x60]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x1400cb8a0]
xor edx, edx
xor ecx, ecx
call fcn.1402c7870
mov qword [rdi + 0x58], rax
test rax, rax
je 0x1400cb7e7
mov rax, rdi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140296f70
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ebx, eax
call fcn.1400cbc20
mov r8, rax
lea r9, str.Failed_to_create_event
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1400cbc30
lea rdx, [0x1403c6b08]
lea rcx, [rsp + 0x60]
call fcn.1402b5304
nop
mov dword [rbx], esi
mov ecx, 6
call fcn.1400fdfcc
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400cbc20
mov r8, rax
lea r9, str.Failed_to_create_event
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1400cbc30
lea rdx, [0x1403c6b08]
lea rcx, [rsp + 0x30]
call fcn.1402b5304
int3
Function at 0x1400d04e0
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rdi, rcx
cmp qword [rcx + 0x10], rbx
je 0x1400d05a0
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x1400d05a0
test rdx, rdx
je 0x1400d053e
test r8, r8
je 0x1400d0543
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptHashData]
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x30]
lea rax, vtable.McCryptoLib::CWinError.0
mov qword [rsp + 0x30], rax
call qword [0x140373400]
test eax, eax
jne 0x1400d054a
mov byte [rdi + 8], 1
jmp 0x1400d059c
test r8, r8
je 0x1400d0510
mov eax, 0x8000000a
jmp 0x1400d05a5
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ecx, eax
call fcn.1400bdc38
mov qword [rsp + 0x28], rax
lea r8, str.E:BT_a76716fc_23e4_48c9_a49e_4f088d2116acCoreTechMcCryptoLib_srcwindowswin_hash.cpp
lea rax, str.McCryptoLib::CMcCryptoHashWin::AddToHash
mov r9d, 0x90
lea rdx, str.__S:__d____S___s:_Error_trying_to_add_data_for_hashing
mov qword [rsp + 0x20], rax
mov ecx, 2
call fcn.1400cdf64
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ebx, eax
mov eax, ebx
jmp 0x1400d05a5
mov eax, 0x8000000d
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400d1274
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov r14, r9
mov r12, r8
mov r13, rdx
mov rsi, rcx
xor ebx, ebx
mov edi, ebx
mov ebp, ebx
mov r15d, ebx
mov dword [rax + 8], ebx
lea rdx, [rax - 0x48]
call fcn.1400d144c
nop
cmp byte [rsp + 0xd0], bl
je 0x1400d12d2
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
sub rdi, rbx
mov rbp, qword [rsi + 0x20]
mov r15d, dword [r14]
mov eax, dword [rsi + 0x78]
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8d, r12d
mov rdx, r13
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
mov dword [rsp + 0x58], eax
lea rax, vtable.McCryptoLib::CWinError.0
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0xb0]
mov qword [r14], rax
lea rcx, [rsp + 0x50]
call qword [0x140373400]
mov ebx, eax
lea rcx, [rsp + 0x60]
call fcn.14009f430
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400d1360
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov r14, r9
mov r12, r8
mov r13, rdx
mov rsi, rcx
xor ebx, ebx
mov edi, ebx
mov ebp, ebx
mov r15d, ebx
mov dword [rax + 8], ebx
lea rdx, [rax - 0x48]
call fcn.1400d144c
nop
cmp byte [rsp + 0xd0], bl
je 0x1400d13be
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
sub rdi, rbx
mov rbp, qword [rsi + 0x20]
mov r15d, dword [r14]
mov eax, dword [rsi + 0x78]
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8d, r12d
mov rdx, r13
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov dword [rsp + 0x58], eax
lea rax, vtable.McCryptoLib::CWinError.0
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0xb0]
mov qword [r14], rax
lea rcx, [rsp + 0x50]
call qword [0x140373400]
mov ebx, eax
lea rcx, [rsp + 0x60]
call fcn.14009f430
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400d69e0
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x90
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor esi, esi
mov dword [rsp + 0x78], 0
mov word [rsp + 0x7c], 0x500
mov rax, rdx
mov ebp, 1
test rdx, rdx
je 0x1400d6a26
mov qword [rsp + 0x68], rdx
mov ebp, esi
jmp 0x1400d6a64
mov qword [rsp + 0x68], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400d6a5f
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400d6a58
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400d6baa
mov rax, qword [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0xb0], rdi
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x70], rsi
lea edx, [r9 + 2]
mov rdi, rsi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400d6aa8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400d6b6e
mov edx, dword [rsp + 0x60]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x1400d6b6e
mov r9d, dword [rsp + 0x60]
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov r8, rdi
mov edx, 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400d6b6e
lea rax, [rsp + 0x70]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x48], esi
mov r8d, 0x20
mov dword [rsp + 0x40], esi
mov dl, 2
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400d6b6e
cmp dword [rdi], 0
mov qword [rsp + 0xa0], rbx
mov ebx, esi
jbe 0x1400d6b66
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
mov edx, ebx
add rdx, rdx
mov rdx, qword [rdi + rdx*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1400d6b61
inc ebx
cmp ebx, dword [rdi]
jb 0x1400d6b40
jmp 0x1400d6b66
mov esi, 1
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400d6b7e
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test rdi, rdi
je 0x1400d6b8c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rdi, qword [rsp + 0xb0]
test ebp, ebp
je 0x1400d6ba8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400d6ba8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140296f70
mov rbp, qword [rsp + 0xb8]
add rsp, 0x90
pop rsi
ret

Function at 0x1400d8700
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rdx + 0x18], 8
mov rdi, rcx
jb 0x1400d8717
mov rdx, qword [rdx]
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, qword [rdi + 8]
test eax, eax
setne bl
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x1400d8741
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400dfde0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
test rdx, rdx
je 0x1400dfe33
lea r9, [rsp + 0x38]
mov qword [rsp + 0x38], 0
xor r8d, r8d
lea rcx, [0x14030b970]
mov edx, 0x8000
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rbx, qword [rsp + 0x38]
test eax, eax
jns 0x1400dfe48
test rbx, rbx
je 0x1400dfe33
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, 0x57
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov r9, 0xffffffffffffffff
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.1402c7a98
mov edi, eax
test rbx, rbx
je 0x1400dfe6d
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e0dc0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x40
mov edi, r8d
mov rax, rdx
mov rbx, rcx
test rdx, rdx
je 0x1400e0ec3
xor ebp, ebp
cmp bp, word [rdx]
je 0x1400e0ec3
cmp qword [rcx + 0x50], rbp
je 0x1400e0df8
mov eax, UnRegisterTypeLib
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x60], rsi
mov edx, 0xc0000000
mov dword [rsp + 0x28], RegisterTypeLib
mov rcx, rax
mov esi, ebp
mov dword [rsp + 0x20], edi
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov rax, qword [rbx + 0x50]
mov qword [rbx + 0x50], rcx
test rax, rax
je 0x1400e0e48
cmp rax, 0xffffffffffffffff
je 0x1400e0e48
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x50]
cmp rcx, 0xffffffffffffffff
jne 0x1400e0e67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov qword [rbx + 0x50], rbp
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
cmp edi, 3
jne 0x1400e0e8a
lea r9d, [rdi - 1]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
lea eax, [rdi - 1]
cmp eax, 1
ja 0x1400e0eb4
lea r9, [rsp + 0x78]
mov word [rsp + 0x68], 0xfeff
mov r8d, 2
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
mov eax, 0x57
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400e2690
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rsi, rcx
mov rcx, qword [rcx + 0x68]
mov qword [rax - 0x10], r12
mov r12, rdx
mov qword [rax - 0x18], r13
xor r13d, r13d
mov qword [rax - 0x20], r14
mov ebx, r13d
mov qword [rax - 0x28], r15
mov r14d, r9d
mov qword [rax - 0x30], rbx
mov r15, r8
mov dword [rax + 8], r13d
mov dword [rax - 0x38], r13d
test rcx, rcx
je 0x1400e26e2
mov edx, 0x1b58
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
mov edi, 0x57
call qword [rsi + 0x98]
test al, al
je 0x1400e27e2
mov qword [rsp + 0x90], rbp
mov rbp, qword [rsp + 0xa8]
test rbp, rbp
je 0x1400e27da
cmp r13w, word [rbp]
je 0x1400e27da
mov rcx, rsi
call fcn.1400e0ed0
mov edi, eax
test eax, eax
je 0x1400e2735
cmp eax, 0xb7
jne 0x1400e27da
lea rax, [rsp + 0x48]
mov r9d, r14d
mov qword [rsp + 0x38], rax
mov r8, r15
lea rax, [rsp + 0x80]
mov rdx, r12
mov qword [rsp + 0x30], rax
mov rcx, rsi
mov eax, dword [rsp + 0xa0]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
call fcn.1400df5b0
mov rbx, qword [rsp + 0x48]
mov edi, eax
test eax, eax
jne 0x1400e27da
test rbx, rbx
jne 0x1400e2782
lea edi, [rax + 0xe]
jmp 0x1400e27da
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], r13w
lea rax, [rax + 1]
jne 0x1400e2790
mov rcx, qword [rsi + 0x50]
lea r8d, [rax + rax]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test byte [rsi + 0x7c], 1
mov ebp, eax
je 0x1400e27ce
cmp r13w, word [rbx]
je 0x1400e27ce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test ebp, ebp
jne 0x1400e27da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbp, qword [rsp + 0x90]
mov rcx, qword [rsi + 0x50]
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x68]
lea rax, [rcx - 1]
mov qword [rsi + 0x50], r13
mov r13, qword [rsp + 0x60]
cmp rax, 0xfffffffffffffffd
ja 0x1400e280e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x1400e281b
mov rcx, rbx
call fcn.1402ba464
mov rcx, qword [rsi + 0x68]
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x88]
test rcx, rcx
je 0x1400e283a
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
add rsp, 0x70
pop rdi
ret
Function at 0x1400e5440
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
xor r15d, r15d
mov qword [rsp + 0x60], r15
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x14030b970]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jns 0x1400e548d
lea eax, [r15 + 0x57]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x68], rdi
mov rcx, 0xffffffffffffffff
test rdi, rdi
je 0x1400e558a
mov rbx, rcx
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400e54b0
test ebx, ebx
je 0x1400e558a
mov r9, qword [rsi]
mov r14d, dword [r9 - 0x10]
mov rbp, rdi
sub rbp, r9
sar rbp, 1
test ebx, ebx
js 0x1400e560c
mov ecx, 1
sub ecx, dword [r9 - 8]
mov eax, dword [r9 - 0xc]
sub eax, ebx
or eax, ecx
jge 0x1400e54fa
mov edx, ebx
mov rcx, rsi
call fcn.140028260
mov r9, qword [rsi]
movsxd r8, ebx
add r8, r8
cmp rbp, r14
ja 0x1400e5536
lea rdx, [r9 + rbp*2]
test r8, r8
je 0x1400e556e
test rdx, rdx
jne 0x1400e5520
call fcn.1402be600
mov dword [rax], reloc.WS2_32.dll_shutdown
jmp 0x1400e5569
movsxd rax, dword [r9 - 0xc]
add rax, rax
cmp rax, r8
jb 0x1400e555e
mov rcx, r9
call fcn.1402b53e0
jmp 0x1400e556e
movsxd rax, dword [r9 - 0xc]
add rax, rax
test r8, r8
je 0x1400e556e
mov rcx, r9
cmp rax, r8
jb 0x1400e5554
mov rdx, rdi
call fcn.1402b53e0
jmp 0x1400e556e
mov r8, rax
xor edx, edx
call fcn.1402b60e0
call fcn.1402be600
mov dword [rax], 0x22
call fcn.1402ba3cc
mov rax, qword [rsi]
cmp ebx, dword [rax - 0xc]
jg 0x1400e560c
mov dword [rax - 0x10], ebx
movsxd rcx, ebx
mov rax, qword [rsi]
mov word [rax + rcx*2], r15w
jmp 0x1400e55e0
mov r8, qword [rsi]
lea rdx, [r8 - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], 0
je 0x1400e55e0
mov eax, dword [rdx + 0x10]
shr eax, 0x1f
test al, al
je 0x1400e55b8
cmp dword [r8 - 0xc], 0
jl 0x1400e5601
mov dword [r8 - 0x10], r15d
mov rax, qword [rsi]
mov word [rax], r15w
jmp 0x1400e55e0
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400e55cb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x1400e55ee
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070057
call fcn.140028370
nop
mov ecx, 0x80070057
call fcn.140028370
int3
Function at 0x1400e6d40
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov eax, r8d
mov edi, r8d
xor edi, 8
and al, 8
cmove edi, r8d
test rcx, rcx
jne 0x1400e6d79
xor eax, eax
jmp 0x1400e6e1f
xor ebp, ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14030b9c0]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rbx
test eax, eax
jns 0x1400e6da8
mov edi, ebp
jmp 0x1400e6e0e
mov r9, rsi
mov r8, rbx
lea rdx, [0x14030bca8]
lea rcx, [rsp + 0x30]
call fcn.1400270c0
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r8d, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400e6dfb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
call fcn.14002cde0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
test rbx, rbx
je 0x1400e6e1c
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140296f70
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400e6d40

Function at 0x1400e6e40
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov eax, r8d
mov edi, r8d
xor edi, 8
and al, 8
cmove edi, r8d
test rcx, rcx
jne 0x1400e6d79
xor eax, eax
jmp 0x1400e6e1f
xor ebp, ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14030b9c0]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rbx
test eax, eax
jns 0x1400e6da8
mov edi, ebp
jmp 0x1400e6e0e
mov r9, rsi
mov r8, rbx
lea rdx, [0x14030bca8]
lea rcx, [rsp + 0x30]
call fcn.1400270c0
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r8d, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400e6dfb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
call fcn.14002cde0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
test rbx, rbx
je 0x1400e6e1c
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140296f70
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400e6d40