joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180010228
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x180022250]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18000dccc
xor ebx, ebx
cmp qword [0x180157b68], rbx
mov rdi, rax
jne 0x18001033b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180010412
lea rdx, [0x18001c138]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180010412
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x18001c128]
mov rcx, rsi
mov qword [0x180157b68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x18001c110]
mov rcx, rsi
mov qword [0x180157b70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x18001c0f0]
mov rcx, rsi
mov qword [0x180157b78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180157b88], rax
test rax, rax
je 0x180010332
lea rdx, [0x18001c0d8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180157b80], rax
jmp 0x180010342
mov rax, qword [0x180157b80]
jmp 0x180010349
mov rax, qword [0x180157b80]
mov r11, qword [0x180157b88]
cmp rax, rdi
je 0x1800103b0
cmp r11, rdi
je 0x1800103b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180157b88]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1800103b0
test rax, rax
je 0x1800103b0
call rsi
test rax, rax
je 0x1800103aa
lea rcx, [rsp + 0x30]
mov r9d, recv
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1800103aa
test byte [rsp + 0x40], 1
jne 0x1800103b0
bts ebp, 0x15
jmp 0x1800103f0
mov rcx, qword [0x180157b70]
cmp rcx, rdi
je 0x1800103f0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800103f0
call rax
mov rbx, rax
test rax, rax
je 0x1800103f0
mov rcx, qword [0x180157b78]
cmp rcx, rdi
je 0x1800103f0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800103f0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180157b68]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180010412
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180010414
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18000a890
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140c9d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140c9d1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140c9d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c9d06f
add dl, dl
jne 0x140c9d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c9d0f6
xor eax, eax
add dl, dl
jne 0x140c9d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c9d1ad
add dl, dl
jne 0x140c9d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c9d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c9d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c9d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c9d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c9d07e
mov eax, 1
add dl, dl
jne 0x140c9d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c9d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c9d0fb
sub eax, ebx
mov ebx, 1
jne 0x140c9d14c
mov ecx, 1
add dl, dl
jne 0x140c9d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c9d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c9d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c9d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c9d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c9d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c9d15d
cmp eax, 0x7d00
jae 0x140c9d19b
cmp eax, 0x500
jb 0x140c9d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c9d07e
cmp eax, 0x7f
ja 0x140c9d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c9d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c9d1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140c9d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001d950
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1400a8020]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor esi, esi
mov r14, rdx
cmp qword [rcx + 0x18], 8
mov rbx, rcx
mov qword [rsp + 0x30], rsi
jb 0x14001d98b
mov rdx, qword [rcx]
jmp 0x14001d98e
mov rdx, rcx
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor eax, eax
lea rdi, [rsp + 0x40]
mov ecx, 0x208
lea rdx, [rsp + 0x40]
rep stosb byte [rdi], al
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x14001d9d0
mov rcx, qword [rsp + 0x30]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x14008a920]
lea rax, [rsp + 0x40]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, [0x14008a948]
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 7
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x14001da60
mov rdx, qword [rbx]
inc r8
call fcn.140022ac0
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x14001da76
mov rbx, qword [rbx]
mov word [rbx], si
mov r8, qword [r14 + 0x18]
cmp r8, 8
jb 0x14001da8e
mov rdx, qword [r14]
inc r8
call fcn.140022ac0
mov qword [r14 + 0x18], 7
mov qword [r14 + 0x10], rsi
cmp qword [r14 + 0x18], 8
jb 0x14001daa9
mov rax, qword [r14]
mov word [rax], si
jmp 0x14001daad
mov word [r14], si
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140052210
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r14
pop rdi
pop rsi
ret
Function at 0x14002c590
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x218]
sub rsp, 0x300
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400a8020]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rbx, rcx
lea r14, vtable.LogItem.0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x60], 7
xor esi, esi
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rsi
mov word [rsp + 0x68], si
mov dword [rbp - 0x78], 1
mov dword [rbp - 0x74], 1
lea rdx, str._DBG___0x
lea rcx, [rsp + 0x40]
call fcn.14001ccb0
mov dword [rax + 0x48], esi
mov rdx, rbx
mov rcx, rax
call fcn.140027220
mov dword [rax + 0x48], 1
lea rdx, [0x14008c5bc]
mov rcx, rax
call fcn.14001ccb0
mov rcx, rax
lea rdx, str.AcceptClientSocket_called...
call fcn.14001ccb0
nop
lea rcx, [rsp + 0x40]
call fcn.14001c830
cmp qword [rbx + 0x200], 0xffffffffffffffff
jne 0x14002c79c
mov rax, qword [rbx + 0x1f8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x20], 1
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x14002c65a
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x1f8]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rbx + 0x200], rax
cmp rax, 0xffffffffffffffff
jne 0x14002c65a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rsi
mov word [rsp + 0x68], si
mov dword [rbp - 0x78], 1
mov dword [rbp - 0x74], 1
lea rdx, str._DBG___0x
lea rcx, [rsp + 0x40]
call fcn.14001ccb0
mov dword [rax + 0x48], esi
mov rdx, rbx
mov rcx, rax
call fcn.140027220
mov dword [rax + 0x48], 1
lea rdx, [0x14008c5bc]
mov rcx, rax
call fcn.14001ccb0
mov rcx, rax
lea rdx, str.Socket_server_error_on_accept_operation_occured.
call fcn.14001ccb0
nop
lea rcx, [rsp + 0x40]
call fcn.14001c830
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x30], rsi
mov byte [rbp - 0x40], 0
mov r8d, 0x32
lea rdx, str.SocketHeciServer::SocketServer::AcceptClientSocket
lea rcx, [rbp - 0x40]
call fcn.140022560
nop
mov r8d, edi
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x40]
call fcn.1400285c0
lea rdx, [0x1400a3a00]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140052210
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14003c3b0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov rbp, r8
mov r14, rdx
lea rsi, [0x1400ada60]
cmp qword [0x1400ada78], 0x10
cmovae rsi, qword [0x1400ada60]
mov ecx, 0x18
call fcn.14005224c
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14003c423
mov qword [rax + 8], 0
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.140051b70
mov qword [rbx], rax
jmp 0x14003c425
xor ebx, ebx
test rbx, rbx
jne 0x14003c435
mov ecx, 0x8007000e
call fcn.140051a10
int3
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r14
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
setne r14b
or ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x14003c4a4
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003c481
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003c497
call fcn.140052234
mov qword [rbx + 8], 0
mov edx, 0x18
mov rcx, rbx
call fcn.140052234
test r14b, r14b
je 0x14003c4bd
mov ecx, esi
call fcn.14003bf00
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14003c4bf
mov al, 1
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140041eb0
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
cmp byte [0x1400a9f69], 0
je 0x140041ec8
mov eax, dword [0x1400a9f6c]
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx r8d, ax
mov edx, r8d
and edx, 0x3ff
sub edx, 7
je 0x140041f2e
sub edx, 3
je 0x140041f0a
sub edx, 0xb
je 0x140041f00
cmp edx, 1
je 0x140041ef6
xor eax, eax
add rsp, 0x28
ret
mov eax, 2
add rsp, 0x28
ret
mov eax, 5
add rsp, 0x28
ret
mov eax, 0xfc00
mov ecx, 0x800
and r8w, ax
mov edx, 1
cmp r8w, cx
mov eax, 3
cmovne eax, edx
add rsp, 0x28
ret
mov eax, 4
add rsp, 0x28
ret
Function at 0x140047030
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rsp + 0x118], rbx
mov rax, qword [0x1400a8020]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
xor r15d, r15d
mov dword [rbp - 0x65], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
mov qword [rbp - 0x39], rax
test rax, rax
jne 0x1400470f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x69], eax
lea rax, vtable.LogItem.0
mov qword [rbp - 0x29], rax
mov qword [rbp - 9], 7
mov qword [rbp - 0x11], r15
mov word [rbp - 0x21], r15w
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], r15
mov word [rbp - 1], r15w
mov dword [rbp + 0x1f], 1
mov dword [rbp + 0x23], 1
lea rdx, str.Cannot_create_read_event._Error:
lea rcx, [rbp - 0x29]
call fcn.14001ccb0
mov rcx, rax
lea rdx, [rbp - 0x69]
call fcn.14001ca50
nop
jmp 0x140047225
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x51], r15
lea rax, [rbp - 0x61]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x65]
mov r8d, r14d
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x140047130
cmp eax, 0x3e5
jne 0x14004722e
mov edx, dword [rsi + 0x34]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400471a8
lea rax, vtable.LogItem.0
mov qword [rbp - 0x29], rax
mov qword [rbp - 9], 7
mov qword [rbp - 0x11], r15
mov word [rbp - 0x21], r15w
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], r15
mov word [rbp - 1], r15w
mov dword [rbp + 0x1f], 1
mov dword [rbp + 0x23], 1
lea rdx, str.Timeout_occured_while_reading_from_heci_device.
lea rcx, [rbp - 0x29]
call fcn.14001ccb0
nop
lea rcx, [rbp - 0x29]
call fcn.14001c830
mov rdx, rbx
mov rcx, rsi
call fcn.140046000
jmp 0x140047236
mov r9d, 1
lea r8, [rbp - 0x65]
lea rdx, [rbp - 0x61]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x14004723b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x69], eax
lea rax, vtable.LogItem.0
mov qword [rbp - 0x29], rax
mov qword [rbp - 9], 7
mov qword [rbp - 0x11], r15
mov word [rbp - 0x21], r15w
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], r15
mov word [rbp - 1], r15w
mov dword [rbp + 0x1f], 1
mov dword [rbp + 0x23], 1
lea rdx, str.Read_function_fail_to_finish._Error:
lea rcx, [rbp - 0x29]
call fcn.14001ccb0
mov rcx, rax
lea rdx, [rbp - 0x69]
call fcn.14001ca50
nop
lea rcx, [rbp - 0x29]
call fcn.14001c830
mov rcx, rsi
call fcn.140046e60
or edi, 0xffffffff
jmp 0x14004723e
mov edi, dword [rbp - 0x65]
cmp rbx, 0xffffffffffffffff
je 0x14004724d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140052210
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004d560
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x390], rbx
mov rax, qword [0x1400a8020]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov r10, rdx
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x28], ebx
lea rdi, [rbp + 0x40]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, r10
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x14004d681
lea rcx, [rbp - 0x20]
call fcn.14001bbf0
nop
mov rcx, rax
call fcn.14004dcd0
mov rdi, rax
lea rax, vtable.std::exception.0
mov qword [rbp - 0x80], rax
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
lea rcx, [rdi + 8]
lea rdx, [rbp - 0x78]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
nop
lea rax, vtable.BaseException.0
mov qword [rbp - 0x80], rax
lea rdx, [rdi + 0x18]
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x58], rbx
mov byte [rbp - 0x68], bl
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x68]
call fcn.140022690
nop
lea rax, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rbp - 0x80], rax
lea rdx, [rdi + 0x38]
mov qword [rbp - 0x30], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x38], rbx
mov byte [rbp - 0x48], bl
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x48]
call fcn.140022690
nop
lea rax, vtable.Exception.0
mov qword [rbp - 0x80], rax
lea rdx, [0x1400a3730]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
mov rdx, qword [rsp + 0x20]
cmp word [rdx], bx
jne 0x14004d6a3
mov r8, rbx
jmp 0x14004d6ba
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], bx
jne 0x14004d6b0
lea rcx, [rsp + 0x60]
call fcn.140022180
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rcx, [rbp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
cmp word [rbp + 0x40], 0
je 0x14004d70c
lea rax, [rbp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14004d702
mov r8, rbx
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140022180
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14001bf20
nop
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x14004d743
inc r8
mov rdx, qword [rsp + 0x60]
call fcn.140022ac0
mov rax, rsi
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140052210
mov rbx, qword [rsp + 0x390]
add rsp, 0x360
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004e710
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x58]
sub rsp, 0x150
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400a8020]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rbx, rcx
call fcn.14004e560
cmp qword [rbx + 0x20], 8
jb 0x14004e753
mov rcx, qword [rbx + 8]
jmp 0x14004e757
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004e897
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x40], 7
xor edi, edi
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x28]
call fcn.1400222d0
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x40]
call fcn.14001bf20
mov rbx, rax
lea rcx, [rbp - 0x20]
call fcn.14001bbf0
nop
lea rdx, str.Error_when_deleting_file:
mov rcx, rax
call fcn.1400243e0
mov rcx, rax
mov rdx, rbx
call fcn.14002f180
mov rcx, rax
lea rdx, str.Last_error:
call fcn.1400243e0
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.140031710
mov rbx, rax
lea rax, vtable.std::exception.0
mov qword [rsp + 0x60], rax
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rcx, [rbx + 8]
lea rdx, [rsp + 0x68]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
nop
lea rax, vtable.BaseException.0
mov qword [rsp + 0x60], rax
lea rdx, [rbx + 0x18]
mov qword [rbp - 0x70], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x78], rdi
mov byte [rsp + 0x78], dil
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x78]
call fcn.140022690
nop
lea rax, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rsp + 0x60], rax
lea rdx, [rbx + 0x38]
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x58], rdi
mov byte [rbp - 0x68], dil
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x68]
call fcn.140022690
nop
lea rax, vtable.Exception.0
mov qword [rsp + 0x60], rax
lea rdx, [0x1400a3730]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140052210
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14004e8c0
Capabilities:
Move file

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov rax, qword [0x1400a8020]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rdi, rdx
mov rbx, rcx
call fcn.14004e560
cmp qword [rdi + 0x18], 8
jb 0x14004e90c
mov rdx, qword [rdi]
jmp 0x14004e90f
mov rdx, rdi
cmp qword [rbx + 0x20], 8
jb 0x14004e91c
mov rcx, qword [rbx + 8]
jmp 0x14004e920
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14004eaa1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x48], 7
xor esi, esi
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400222d0
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.14001bf20
mov rdi, rax
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x50]
call fcn.1400222d0
lea rdx, [rsp + 0x50]
lea rcx, [rbp]
call fcn.14001bf20
mov rbx, rax
lea rcx, [rbp + 0x20]
call fcn.14001bbf0
nop
lea rdx, str.Error_when_renaming_file_from
mov rcx, rax
call fcn.1400243e0
mov rcx, rax
mov rdx, rbx
call fcn.14002f180
mov rcx, rax
call fcn.14004f350
mov rcx, rax
mov rdx, rdi
call fcn.14002f180
mov rcx, rax
lea rdx, str.Last_error:
call fcn.1400243e0
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.140031710
mov rbx, rax
lea rax, vtable.std::exception.0
mov qword [rbp - 0x80], rax
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
lea rcx, [rbx + 8]
lea rdx, [rbp - 0x78]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
nop
lea rax, vtable.BaseException.0
mov qword [rbp - 0x80], rax
lea rdx, [rbx + 0x18]
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x58], rsi
mov byte [rbp - 0x68], sil
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x68]
call fcn.140022690
nop
lea rax, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rbp - 0x80], rax
lea rdx, [rbx + 0x38]
mov qword [rbp - 0x30], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x38], rsi
mov byte [rbp - 0x48], sil
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x48]
call fcn.140022690
nop
lea rax, vtable.Exception.0
mov qword [rbp - 0x80], rax
lea rdx, [0x1400a3730]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140052210
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret