joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d37a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, 0x3e7
mov r8d, 0xa
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400d383a
mov rdx, rax
mov rcx, rbx
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rdi
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x1400d382a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov edx, esi
mov rcx, rax
call fcn.1400d3850
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rsi, qword [rsp + 0x30]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400d4eb0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov eax, dword [rcx + 8]
mov r10, qword [rcx + 0x10]
sub eax, 0x500
mov edi, eax
je 0x1400d4f46
mov rax, qword [str.WJIM]
mov rbx, r10
sub rbx, r10
cmp qword [r10], rax
jne 0x1400d4f3b
mov r9d, 0xdeadbbef
mov rcx, r10
mov r11d, 0x140
nop dword [rax + rax]
imul edx, dword [rcx], 0x5bd1e995
lea rcx, [rcx + 4]
mov r8d, edx
shr r8d, 0x18
xor r8d, edx
imul edx, r9d, 0x5bd1e995
imul r8d, r8d, 0x5bd1e995
xor r8d, edx
mov r9d, r8d
dec r11
jne 0x1400d4ef0
mov ecx, r8d
shr ecx, 0xd
xor ecx, r8d
imul edx, ecx, 0x5bd1e995
mov ecx, edx
shr ecx, 0xf
xor ecx, edx
cmp ecx, 0xe22a4630
je 0x1400d4f53
inc rbx
inc r10
cmp rbx, rdi
jb 0x1400d4ed7
xor al, al
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov al, 1
ret

Function at 0x1400d51d0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x48]
lea rax, vtable.EventStoreClient.0
mov rdi, rcx
mov qword [rcx], rax
test rdx, rdx
je 0x1400d5227
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x1400d5227
xor r9d, r9d
mov r8d, 0x1388
call qword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
test eax, eax
je 0x1400d521d
mov rcx, qword [rdi + 0x48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x1400d5236
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400d5245
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rdi + 0x80]
call fcn.140009660
mov rcx, qword [rdi + 0x80]
call fcn.1402177e0
xor esi, esi
mov qword [rdi + 0x80], rsi
cmp qword [rdi + 0x20], 8
jb 0x1400d5276
mov rcx, qword [rdi + 8]
call fcn.1402177e0
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 0x18], rsi
mov qword [rdi + 0x20], 7
mov word [rdi + 8], si
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400d52a0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov ecx, 0xa8
call fcn.1402b968c
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400d52d0
mov rcx, rax
call fcn.1400d50c0
mov rbx, rax
jmp 0x1400d52d2
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x38], rax
cmp qword [rbx + 0x50], 0
je 0x1400d5333
test rax, rax
je 0x1400d5333
lea rax, [rbx + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x1400d5470]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x48], rax
cmp qword [rbx + 0x48], 0
jne 0x1400d534b
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
xor eax, eax
jmp 0x1400d534e
mov rax, rbx
add rsp, 0x40
pop rbx
ret

Function at 0x1400d5650
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r8d, dword [rdx + 0x48]
mov rdi, rdx
mov r14, rcx
lea rdx, str._08lu
lea rcx, [rsp + 0x38]
call fcn.1400d5c00
mov esi, dword [rdi + 0x48]
add esi, 9
movsxd rbx, esi
mov rcx, rbx
call fcn.1402b9c60
mov rbp, rax
test rax, rax
jne 0x1400d56c5
lea rdx, str.out_of_memory__needed__u_bytes_
lea ecx, [rax + 2]
mov r8d, esi
call fcn.140170d40
mov dword [rdi + 0x34], 3
xor al, al
jmp 0x1400d5771
lea r8, [rsp + 0x38]
mov rdx, rbx
mov rcx, rax
call fcn.1402bbf8c
cmp qword [rdi + 0x50], 0x10
lea r8, [rdi + 0x38]
jb 0x1400d56e3
mov r8, qword [r8]
mov rdx, rbx
mov rcx, rbp
call fcn.1402bbff0
mov rcx, qword [r14 + 0x28]
dec esi
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, rbp
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
mov ebx, eax
call fcn.1402b9c20
test ebx, ebx
jne 0x1400d5746
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x140348d58]
lea rdx, str._s___error__d
lea ecx, [rbx + 2]
mov r9d, eax
call fcn.140170d40
mov dword [rdi + 0x34], 4
xor al, al
jmp 0x1400d5771
mov r8d, dword [rsp + 0x30]
cmp esi, r8d
je 0x1400d576f
lea rdx, str.not_enough_written___d_bytes__expected__d_bytes_
mov r9d, esi
mov ecx, 2
call fcn.140170d40
mov dword [rdi + 0x34], 4
xor al, al
jmp 0x1400d5771
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402b9610
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400d5a90
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rdi, rcx
mov rcx, qword [rcx + 0x28]
mov esi, ebp
cmp rcx, 0xffffffffffffffff
je 0x1400d5ad4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x1400d5af4
mov qword [rdi + 0x28], 0xffffffffffffffff
mov qword [rsp + 0x50], rbx
cmp dword [rdi + 0x30], esi
jle 0x1400d5bad
lea rbx, [rdi + 8]
inc esi
cmp qword [rbx + 0x18], 8
jb 0x1400d5b06
mov rcx, qword [rbx]
jmp 0x1400d5b09
mov al, 1
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rcx, rbx
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x1400d5b58
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400d5b4d
cmp eax, 0x79
je 0x1400d5ba4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.WaitNamedPipe
lea rdx, str._s___error__d
mov r9d, eax
mov ecx, 2
call fcn.140170d40
xor al, al
jmp 0x1400d5bb5
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rbx + 0x18], 8
jb 0x1400d5b64
mov rcx, qword [rbx]
jmp 0x1400d5b67
mov rcx, rbx
mov qword [rsp + 0x30], rbp
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x1400d5bad
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x1400d5bca
cmp esi, dword [rdi + 0x30]
jl 0x1400d5ae6
cmp qword [rdi + 0x28], 0xffffffffffffffff
setne al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp qword [rbx + 0x18], 8
jb 0x1400d5bd4
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CreateFile
lea rdx, str._s___error__d:__s
mov ecx, 2
mov r9d, eax
mov qword [rsp + 0x20], rbx
call fcn.140170d40
xor al, al
jmp 0x1400d5bb5
Function at 0x1400d8b50
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rsi, r8
mov r15, rdx
mov r13, rcx
xor edi, edi
mov dword [r11 + 8], edi
lea rax, [r11 + 8]
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x68], rdi
lea r9, [r11 + 0x20]
xor r8d, r8d
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x1400d8d84
cmp dword [rsp + 0x90], edi
jne 0x1400d8bcc
mov rdx, qword [0x14041a158]
mov rcx, rsi
call fcn.1401fd6c0
mov al, 1
jmp 0x1400d8d86
mov eax, dword [rsp + 0xa8]
cmp eax, 7
jne 0x1400d8c8d
lea rax, vtable.Core::Array_class_Core::String_.0
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x48]
mov rdx, r15
mov rcx, r13
call fcn.1400d8da0
mov r14, qword [rsp + 0x58]
test al, al
jne 0x1400d8c0f
xor dil, dil
jmp 0x1400d8c5e
mov rdx, qword [0x14041a158]
mov rcx, rsi
call fcn.1401fd6c0
mov eax, dword [rsp + 0x50]
test eax, eax
jle 0x1400d8c5b
mov rbx, r14
mov ebp, eax
nop dword [rax + rax]
test rdi, rdi
jle 0x1400d8c44
lea rdx, [0x1403490e4]
mov rcx, rsi
call fcn.1401fd8b0
mov rdx, qword [rbx]
mov rcx, rsi
call fcn.1401fd8b0
inc rdi
add rbx, 0x10
dec rbp
jne 0x1400d8c30
mov dil, 1
test r14, r14
je 0x1400d8c84
lea r9, [fcn.140005eb0]
mov r8d, dword [r14 - 8]
mov edx, 0x10
mov rcx, r14
call fcn.1402ba5c4
lea rcx, [r14 - 8]
call fcn.1402b99fc
movzx eax, dil
jmp 0x1400d8d86
cmp eax, 0xb
ja 0x1400d8d84
mov ecx, 0x816
bt ecx, eax
jae 0x1400d8d84
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14, rax
mov r8d, dword [rsp + 0x90]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400d8d84
xor bpl, bpl
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xa8]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x1400d8d70
mov eax, dword [rsp + 0xa8]
dec eax
je 0x1400d8d62
dec eax
je 0x1400d8d62
sub eax, 2
je 0x1400d8d42
sub eax, 7
jne 0x1400d8d70
movzx edx, byte [rdi]
lea rcx, [rsp + 0x38]
call fcn.1400d6e40
cmp dword [rsp + 0x40], ebx
jle 0x1400d8d6d
mov rcx, qword [rsp + 0x38]
call fcn.1402b9c20
jmp 0x1400d8d6d
movzx edx, byte [rdi]
lea rcx, [rsp + 0x48]
call fcn.1400039c0
cmp dword [rsp + 0x50], 0
jle 0x1400d8d6d
mov rcx, qword [rsp + 0x48]
call fcn.1402b9c20
jmp 0x1400d8d6d
mov rdx, rdi
mov rcx, rsi
call fcn.1401fd6c0
mov bpl, 1
mov r8, rdi
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_HeapFree]
movzx eax, bpl
jmp 0x1400d8d86
xor al, al
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x1400d8da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x68], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov r15, r8
mov rbx, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [r11 + 8], r12d
lea rax, [r11 + 8]
mov qword [r11 - 0x70], rax
mov qword [r11 - 0x78], r12
lea r9, [r11 + 0x20]
xor r8d, r8d
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400d8f92
cmp dword [rsp + 0xb8], 7
jne 0x1400d8f92
lea rax, [0x140348ca0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r12
mov edx, dword [rsp + 0xa0]
shr edx, 1
lea rcx, [rsp + 0x38]
call fcn.1401ff260
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb8]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400d8f7d
mov edx, dword [rsp + 0xa0]
cmp edx, 2
ja 0x1400d8ea0
mov rcx, qword [r15 + 0x10]
test rcx, rcx
je 0x1400d8f7d
lea rbx, [rcx - 8]
lea r9, [fcn.140005eb0]
mov r8d, dword [rbx]
lea edx, [rax + 0x10]
call fcn.1402ba5c4
mov rcx, rbx
call fcn.1402b99fc
mov qword [r15 + 0x10], r12
mov dword [r15 + 8], r12d
jmp 0x1400d8f7d
shr edx, 1
lea rcx, [rsp + 0x38]
call fcn.140200570
mov ebp, r12d
or r13d, 0xffffffff
nop dword [rax]
nop word [rax + rax]
mov esi, r12d
mov ebx, r12d
movsxd r14, ebp
nop dword [rax]
xor edx, edx
mov r8d, ebx
lea rcx, [rsp + 0x38]
call fcn.1401ff870
movsxd rdi, eax
test eax, eax
jle 0x1400d8f5c
cmp r14, 1
jne 0x1400d8f11
mov r9d, edi
sub r9d, ebx
mov r8d, ebx
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.140201490
mov r8, rax
mov edx, esi
mov rcx, r15
call fcn.1400e2960
inc esi
mov r8d, 2
lea rdx, [0x1403490ec]
mov rax, qword [rsp + 0x38]
lea rax, [rax + rdi*2]
nop dword [rax]
movzx ecx, word [rdx]
cmp word [rax], cx
jne 0x1400d8f47
add rax, 2
add rdx, 2
dec r8
je 0x1400d8f64
jmp 0x1400d8f30
mov r8d, 1
cmp word [rax], cx
cmovb r8d, r13d
test r8d, r8d
je 0x1400d8f64
lea ebx, [rdi + 1]
test ebx, ebx
jns 0x1400d8ed0
test ebp, ebp
jne 0x1400d8f72
mov edx, esi
mov rcx, r15
call fcn.1400c7e30
inc ebp
cmp ebp, 2
jl 0x1400d8ec0
cmp dword [rsp + 0x40], 0
jle 0x1400d8f8e
mov rcx, qword [rsp + 0x38]
call fcn.1402b9c20
mov al, 1
jmp 0x1400d8f94
xor al, al
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e0910
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1a8]
sub rsp, 0x2a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rbp + 0x190], rax
lea rdi, [rcx + 8]
mov r8d, 1
lea rdx, [0x140347d14]
mov rcx, rdi
call fcn.1402019e0
test al, al
je 0x1400e096c
xor al, al
jmp 0x1400e0aae
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor esi, esi
mov qword [rsp + 0x48], rsi
lea edx, [rsi + 0xc]
lea rcx, [rsp + 0x40]
call fcn.1401ff260
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
lea r9d, [rsi + 0xc]
lea r8, [0x14034d958]
mov rcx, qword [rsp + 0x40]
call fcn.1402bd21c
lea edx, [rsi + 0xc]
lea rcx, [rsp + 0x40]
call fcn.140200570
nop
lea rax, [rbp - 0x80]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400e09c3
mov qword [rsp + 0x38], rsi
test ebx, ebx
jne 0x1400e09e4
lea rax, [0x140348ca0]
mov qword [rsp + 0x30], rax
jmp 0x1400e0a0a
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x80]
mov rcx, qword [rsp + 0x30]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140200570
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1400d2bd0
nop
cmp dword [rsp + 0x38], 0
jle 0x1400e0a3e
mov rcx, qword [rsp + 0x30]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x48], 0
jle 0x1400e0a4f
mov rcx, qword [rsp + 0x40]
call fcn.1402b9c20
mov r8, qword [rdi]
lea rdx, str._select___s_
lea rcx, [rsp + 0x50]
call fcn.1401ff700
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], rsi
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
lea rdx, [0x14034d978]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [rsp + 0x58], 0
jle 0x1400e0a9b
mov rcx, qword [rsp + 0x50]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x68], 0
jle 0x1400e0aac
mov rcx, qword [rsp + 0x60]
call fcn.1402b9c20
mov al, 1
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1402b9610
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400e2700
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbx, rcx
mov edx, 9
call fcn.1400d7f50
movzx esi, al
test al, al
jne 0x1400e274c
mov edx, 0xc
mov rcx, rbx
call fcn.1400d8600
test al, al
je 0x1400e293a
mov rdi, qword [0x14042bb58]
test rdi, rdi
je 0x1400e293a
mov qword [rbp + 0x17], 0
mov edx, 0x1c
lea rcx, [rbp + 0xf]
call fcn.1401ff260
mov eax, dword [rbp + 0x17]
inc eax
movsxd rdx, eax
mov r9d, 0x1c
lea r8, str.Captions_SearchingRepairFile
mov rcx, qword [rbp + 0xf]
call fcn.1402bd21c
mov edx, 0x1c
lea rcx, [rbp + 0xf]
call fcn.140200570
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp + 0x2f]
call fcn.1400f57b0
nop
cmp dword [rbp + 0x17], 0
jle 0x1400e27bc
mov rcx, qword [rbp + 0xf]
call fcn.1402b9c20
mov r8, qword [rbx + 8]
mov rdx, qword [rbp + 0x2f]
lea rcx, [rbp + 0x3f]
call fcn.1401ff700
nop
xor r9d, r9d
xorps xmm2, xmm2
mov rdx, rax
mov rcx, rdi
call fcn.1400f51b0
nop
cmp dword [rbp + 0x47], 0
jle 0x1400e27ef
mov rcx, qword [rbp + 0x3f]
call fcn.1402b9c20
movzx r9d, sil
mov r8, rbx
lea rdx, [rbp + 0x1f]
mov rcx, rdi
call fcn.140103890
nop
mov rdx, qword [rbx + 8]
cmp dword [rbp + 0x2b], 0
jne 0x1400e287f
lea rcx, str.WARNING:_Did_not_find_a_white_listed_repair_file_for:__s_r_n
call fcn.1402bbf64
xor edx, edx
mov rcx, rbx
call fcn.1400d7a70
movzx eax, byte [rbx + 0x40]
shr al, 4
test al, 1
je 0x1400e291b
mov rcx, rbx
call fcn.1400d8af0
cmp dword [rax + 0x28], 8
je 0x1400e291b
mov dword [rax + 0x28], 8
cmp byte [rax + 8], 0
je 0x1400e291b
mov rax, qword [rax]
mov rdx, qword [0x14042bb58]
mov qword [rbp + 0x3f], rax
mov dword [rbp + 0x47], 7
lea rcx, [rdx + 0x388]
lea r8, [rbp + 0x3f]
call fcn.140119b60
jmp 0x1400e291b
mov r8, qword [rbp + 0x1f]
lea rcx, str._tRepair_file_found__r_nBad:_t_ws_r_nReplace_t_s_r_n
call fcn.1402bbf64
mov rax, qword [rbx + 0x40]
shr rax, 0x23
test al, 1
je 0x1400e28a2
mov edx, 0xb
jmp 0x1400e290e
xor sil, sil
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400e2909
lea rdx, [rbp + 0x6f]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400e28f6
mov ecx, dword [rbx + 0x38]
cmp rcx, qword [rbp + 0x6f]
setge sil
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test sil, sil
mov edx, 0xb
jne 0x1400e290e
mov edx, 0xa
lea r8, [rbp + 0x1f]
mov rcx, rbx
call fcn.14000b8f0
nop
cmp dword [rbp + 0x27], 0
jle 0x1400e292b
mov rcx, qword [rbp + 0x1f]
call fcn.1402b9c20
nop
cmp dword [rbp + 0x37], 0
jle 0x1400e293a
mov rcx, qword [rbp + 0x2f]
call fcn.1402b9c20
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400ebbb0
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
push r12
push r14
push r15
sub rsp, 0x88
xor r12d, r12d
lea rax, [r11 + 0x18]
mov r15, rcx
mov rcx, qword [rcx + 8]
mov qword [r11 - 0x50], r12
mov qword [r11 - 0x58], r12
mov qword [r11 - 0x60], r12
mov qword [r11 - 0x68], r12
mov qword [r11 - 0x70], r12
mov qword [r11 - 0x78], r12
mov qword [r11 - 0x80], rax
lea rax, [r11 + 8]
mov r14, rdx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x1400ebc24
xor al, al
add rsp, 0x88
pop r15
pop r14
pop r12
pop rbx
ret
mov ecx, dword [rsp + 0xc0]
mov qword [rsp + 0x80], rbp
mov eax, 2
inc ecx
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], rdi
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1402b4964
mov edx, dword [rsp + 0xb0]
mov rcx, r14
mov rbp, rax
call fcn.1400c7e30
mov ecx, dword [rsp + 0xb0]
mov esi, r12d
mov edi, r12d
test ecx, ecx
je 0x1400ebcf2
nop dword [rax]
mov ecx, dword [rsp + 0xc0]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
inc ecx
lea r9, [rsp + 0xc8]
mov r8, rbp
mov dword [rsp + 0xc8], ecx
mov rcx, qword [r15 + 8]
mov edx, edi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x1400ebce5
lea rcx, [rsp + 0x60]
mov rdx, rbp
call fcn.1401fd200
mov edx, esi
mov rcx, r14
mov r8, rax
call fcn.1400e2960
inc esi
mov ecx, dword [rsp + 0xb0]
inc edi
cmp edi, ecx
jb 0x1400ebc80
mov rdi, qword [rsp + 0x70]
cmp esi, ecx
je 0x1400ebd05
mov edx, esi
mov rcx, r14
call fcn.1400c7e30
mov rcx, rbp
call fcn.1402b99fc
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
mov al, 1
add rsp, 0x88
pop r15
pop r14
pop r12
pop rbx
ret

Function at 0x1400ebd30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x50]
mov rdi, r8
xor ebx, ebx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rsi, rdx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x50], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400ebdc1
cmp dword [rsp + 0x68], 3
jne 0x1400ebdc1
mov edx, dword [rsp + 0x50]
mov rcx, rdi
call fcn.1400d2ad0
test al, al
je 0x1400ebdc1
mov rcx, qword [rdi + 0x10]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
xor al, al
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400ebdd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
xor eax, eax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne case.0x1400ebe12.5
mov eax, dword [rsp + 0x40]
dec eax
cmp eax, 0xa
ja case.0x1400ebe12.5
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0xebe58]
add rcx, rdx
jmp rcx
mov eax, 3
add rsp, 0x38
ret
mov eax, 4
add rsp, 0x38
ret
mov eax, 2
add rsp, 0x38
ret
mov eax, 7
add rsp, 0x38
ret
mov eax, 0xb
add rsp, 0x38
ret
mov eax, 1
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400ebe90
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push r14
push r15
sub rsp, 0x80
xor r15d, r15d
lea rax, [r11 + 0x18]
mov r14, rcx
mov rcx, qword [rcx + 8]
mov qword [r11 - 0x40], r15
mov qword [r11 - 0x48], r15
mov qword [r11 - 0x50], r15
mov qword [r11 - 0x58], rax
lea rax, [r11 + 8]
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x68], r15
mov rbp, rdx
mov qword [r11 - 0x70], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [r11 - 0x78], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1400ebef5
xor al, al
add rsp, 0x80
pop r15
pop r14
pop rbp
ret
mov ecx, dword [rsp + 0xb0]
mov qword [rsp + 0xa8], rbx
mov eax, 2
inc ecx
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], rdi
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1402b4964
mov edx, dword [rsp + 0xa0]
mov rcx, rbp
mov rsi, rax
call fcn.1400c7e30
mov ecx, dword [rsp + 0xa0]
mov edi, r15d
mov ebx, r15d
test ecx, ecx
je 0x1400ebfb8
nop
mov ecx, dword [rsp + 0xb0]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
inc ecx
lea r9, [rsp + 0xb8]
mov r8, rsi
mov dword [rsp + 0xb8], ecx
mov rcx, qword [r14 + 8]
mov edx, ebx
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1400ebfab
lea rcx, [rsp + 0x60]
mov rdx, rsi
call fcn.1401fd200
mov edx, edi
mov rcx, rbp
mov r8, rax
call fcn.1400e2960
inc edi
mov ecx, dword [rsp + 0xa0]
inc ebx
cmp ebx, ecx
jb 0x1400ebf50
mov rbx, qword [rsp + 0xa8]
cmp edi, ecx
je 0x1400ebfce
mov edx, edi
mov rcx, rbp
call fcn.1400c7e30
mov rcx, rsi
call fcn.1402b99fc
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov al, 1
add rsp, 0x80
pop r15
pop r14
pop rbp
ret