joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400031c0
Capabilities:
Get common file path
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x660
mov rax, qword [0x14003a010]
xor rax, rsp
mov qword [rsp + 0x650], rax
mov rdi, rdx
lea r8, str._s.moz_backup
mov r9, rcx
mov ebx, 0x104
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.1400025a4
mov r9, rdi
lea r8, str._s.moz_backup
mov edx, ebx
lea rcx, [rsp + 0x230]
call fcn.1400025a4
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140012210
test eax, eax
jne 0x140003308
lea rcx, [rsp + 0x20]
call fcn.140002998
test eax, eax
je 0x140003308
cmp byte [0x14003c170], 0
jne 0x140003308
cmp byte [0x14003c171], 0
jne 0x140003308
call fcn.140002608
mov rcx, rax
lea r8, [rsp + 0x230]
lea rdx, str.backup_discard:_unable_to_remove:__S
call fcn.14000a0ec
lea r9, [rsp + 0x440]
xor r8d, r8d
lea rdx, [0x140032c48]
lea rcx, [0x14003d0a0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor r8d, r8d
lea rdx, [rsp + 0x440]
lea rcx, [rsp + 0x20]
call fcn.140002d2c
test eax, eax
je 0x1400032d0
call fcn.140002608
mov rcx, rax
lea r8, [rsp + 0x230]
mov r9, rdi
lea rdx, str.backup_discard:_failed_to_rename_file:_S__dst:_S
call fcn.14000a0ec
mov eax, 0x45
jmp 0x14000330a
xor edx, edx
lea rcx, [rsp + 0x440]
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
call fcn.140002608
lea rdx, str.backup_discard:_file_renamed_and_will_be_removed_on_OS_reboot:__S
mov r8, rdi
mov rcx, rax
test ebx, ebx
jne 0x140003303
lea rdx, str.backup_discard:_failed_to_schedule_OS_reboot_removal_of_file:__S
call fcn.14000a0ec
xor eax, eax
mov rcx, qword [rsp + 0x650]
xor rcx, rsp
call fcn.14000d4c0
mov rbx, qword [rsp + 0x680]
add rsp, 0x660
pop rdi
ret
Function at 0x140003c0c
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14003a010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov r14, rdx
mov rcx, rdx
call fcn.14001aa0c
lea rdx, [rsp + 0x20]
mov ecx, eax
call fcn.1400120cc
xor r15d, r15d
test eax, eax
je 0x140003c7c
mov rdi, qword [rsi + 0x28]
call fcn.140017324
mov rbx, rax
call fcn.140002608
mov r9d, dword [rbx]
lea rdx, str.LoadSourceFile:_unable_to_stat_destination_file:__S__err:__d
mov rcx, rax
mov r8, rdi
call fcn.14000a0ec
mov eax, 6
jmp 0x140003d93
mov ebx, dword [rsi + 0x3c]
cmp dword [rsp + 0x34], ebx
je 0x140003cab
call fcn.140002608
mov r8d, dword [rsp + 0x34]
lea rdx, str.LoadSourceFile:_destination_file_size__d_does_not_match_expected_size__d
mov rcx, rax
mov r9d, ebx
call fcn.14000a0ec
mov eax, 2
jmp 0x140003d93
mov rcx, rbx
call fcn.140011578
mov qword [rsi + 0x58], rax
mov rdi, rax
test rax, rax
jne 0x140003cc7
lea eax, [rdi + 0xd]
jmp 0x140003d93
mov ebp, dword [rsi + 0x3c]
test rbp, rbp
je 0x140003d02
mov ebx, 0x7fffffff
mov r9, r14
cmp rbp, rbx
mov edx, 1
mov rcx, rdi
cmovb rbx, rbp
mov r8, rbx
call fcn.140011814
cmp rax, rbx
jne 0x140003d71
add rdi, rax
sub rbp, rax
jne 0x140003ccf
mov rdi, qword [rsi + 0x58]
mov ebp, dword [rsi + 0x3c]
mov edx, ebp
or ebx, 0xffffffff
mov r8, rdi
lea rax, [rdx + rdi]
cmp rdi, rax
cmova rdx, r15
test rdx, rdx
je 0x140003d47
movzx eax, byte [r8]
lea r9, [0x140035930]
mov ecx, ebx
inc r8
shr rcx, 0x18
xor rcx, rax
mov eax, ebx
shl eax, 8
mov ebx, dword [r9 + rcx*4]
xor ebx, eax
mov rax, r8
sub rax, rdi
cmp rax, rdx
jne 0x140003d1a
mov edi, dword [rsi + 0x40]
not ebx
cmp ebx, edi
je 0x140003d91
call fcn.140002608
mov rcx, rax
lea rdx, str.LoadSourceFile:_destination_file_crc__d_does_not_match_expected_crc__d
mov r9d, edi
mov r8d, ebx
call fcn.14000a0ec
mov eax, 4
jmp 0x140003d93
mov rbx, qword [rsi + 0x28]
call fcn.140002608
mov rcx, rax
lea rdx, str.LoadSourceFile:_error_reading_destination_file:__S
mov r8, rbx
call fcn.14000a0ec
jmp 0x140003c72
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000d4c0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400048cc
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x20], r9
push rbp
lea rbp, [rax - 0x57]
sub rsp, 0xe0
mov eax, edx
mov rdi, rcx
mov ecx, eax
mov rdx, r8
call fcn.140004674
mov rbx, rax
test rax, rax
je 0x1400049f3
xor edx, edx
lea rcx, [rbp - 0x21]
lea r8d, [rdx + 0x68]
call fcn.14000f4f0
lea rax, str.winsta0Default
mov dword [rbp - 0x21], 0x68
mov qword [rbp - 0x11], rax
xor r9d, r9d
xor eax, eax
xor r8d, r8d
mov qword [rbp - 0x41], rax
mov rdx, rbx
mov qword [rbp - 0x39], rax
mov rcx, rdi
mov qword [rbp - 0x31], rax
lea rax, [rbp - 0x41]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x21]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test eax, eax
je 0x140004987
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400049e9
and qword [rbp + 0x77], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x30], 0
xor edx, edx
and dword [rsp + 0x28], 0
mov r8d, eax
lea rax, [rbp + 0x77]
mov ecx, 0x1300
mov r9d, 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rax, qword [rbp + 0x77]
lea rdx, str._null_
test rax, rax
lea rcx, str.Error_restarting:__s_n
cmovne rdx, rax
call fcn.1400024b4
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x1400049e9
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call fcn.140011538
mov eax, edi
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140004f1c
Capabilities:
Get common file path
Move file
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x14003a010]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14000f4f0
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x140033390]
lea rcx, [0x14003d2b0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140005024
lea rcx, [rsp + 0x20]
call fcn.140002c80
test eax, eax
jne 0x140005024
lea rdx, [0x140031b80]
lea rcx, [rsp + 0x20]
call fcn.1400114d4
mov rbx, rax
test rax, rax
je 0x140005024
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rdi + rdx], 0
jne 0x140004fa7
mov r9, rbx
mov r8d, 1
mov rcx, rdi
call fcn.140011388
mov rcx, rbx
mov rdi, rax
call fcn.140010f38
cmp rdi, 1
jne 0x140005024
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x208
call fcn.14000f4f0
lea r9, [0x14003d2b0]
mov edx, 0x104
lea r8, str._supdate.status
lea rcx, [rsp + 0x230]
call fcn.1400025a4
mov r8d, edi
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
jmp 0x140005026
xor al, al
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14000d4c0
mov rbx, qword [rsp + 0x468]
add rsp, 0x450
pop rdi
ret

Function at 0x1400050b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14003a010]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea r9, [0x14003d2b0]
mov edx, 0x104
lea r8, str._s_update.status
lea rcx, [rsp + 0x60]
call fcn.1400025a4
lea rdx, [0x140033154]
lea rcx, [rsp + 0x60]
call fcn.1400114d4
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140005185
lea esi, [rdi + 0x20]
xor edx, edx
mov r8d, esi
lea rcx, [rsp + 0x40]
call fcn.14000f4f0
mov r9, rbx
lea r8d, [rdi + 1]
mov edx, esi
lea rcx, [rsp + 0x40]
call fcn.140011814
movups xmm0, xmmword [str.pending_service]
lea esi, [rdi + 0xf]
movups xmm1, xmmword [str.applied_service]
mov r8d, esi
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
movdqu xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x30], xmm1
call fcn.140017150
test eax, eax
je 0x14000517a
mov r8d, esi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140017150
test eax, eax
jne 0x14000517d
mov dil, 1
mov rcx, rbx
call fcn.140010f38
mov al, dil
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14000d4c0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400051b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14003a010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rcx
lea r9, [0x14003d2b0]
xor edi, edi
lea r8, str._s_update.status
mov byte [rcx], dil
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400025a4
lea rdx, [0x140033154]
lea rcx, [rsp + 0x50]
call fcn.1400114d4
mov rbx, rax
test rax, rax
je 0x140005275
xor edx, edx
lea r8d, [rdi + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14000f4f0
mov r9, rbx
lea edx, [rdi + 0x20]
lea r8d, [rdi + 1]
lea rcx, [rsp + 0x30]
call fcn.140011814
movsd xmm0, qword [str.succeeded]
lea r8d, [rdi + 9]
movzx eax, word [0x140033440]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movsd qword [rsp + 0x20], xmm0
mov word [rsp + 0x28], ax
call fcn.140017150
test eax, eax
mov rcx, rbx
mov dil, 1
sete al
mov byte [rsi], al
call fcn.140010f38
mov al, dil
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000d4c0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140007124
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14003a010]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdx, [0x140033154]
mov r15, rcx
call fcn.1400114d4
mov rbx, rax
test rax, rax
jne 0x14000716b
lea rdi, str.GetManifestContents:_error_opening_manifest_file:__S
jmp 0x14000718a
mov rcx, rbx
call fcn.14001aa0c
lea rdx, [rsp + 0x30]
mov ecx, eax
call fcn.1400120cc
test eax, eax
je 0x1400071d6
lea rdi, str.GetManifestContents:_error_stating_manifest_file:__S
call fcn.140002608
mov rcx, rax
mov r8, r15
mov rdx, rdi
call fcn.14000a0ec
xor ebp, ebp
test rbx, rbx
je 0x1400071ac
mov rcx, rbx
call fcn.140010f38
mov rax, rbp
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000d4c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov eax, dword [rsp + 0x44]
inc eax
movsxd rcx, eax
call fcn.140011578
mov rsi, rax
test rax, rax
je 0x14000719d
movsxd rax, dword [rsp + 0x44]
mov r14, rsi
mov rbp, rax
test eax, eax
je 0x14000722b
mov edi, 0x7fffffff
mov r9, rbx
cmp rbp, rdi
mov edx, 1
mov rcx, r14
cmovb rdi, rbp
mov r8, rdi
call fcn.140011814
cmp rax, rdi
jne 0x140007257
add r14, rax
sub rbp, rax
jne 0x1400071fb
mov eax, dword [rsp + 0x44]
cdqe
mov byte [rax + rsi], 0
mov eax, dword [rsp + 0x44]
inc eax
movsxd rcx, eax
add rcx, rcx
call fcn.140011578
mov rbp, rax
test rax, rax
jne 0x140007270
mov rcx, rsi
call fcn.140011538
jmp 0x14000719d
call fcn.140002608
mov rcx, rax
lea rdx, str.GetManifestContents:_error_reading_manifest_file:__S
mov r8, r15
call fcn.14000a0ec
jmp 0x14000724a
mov eax, dword [rsp + 0x44]
or r9d, 0xffffffff
inc eax
mov r8, rsi
mov dword [rsp + 0x28], eax
mov ecx, 0xfde9
mov qword [rsp + 0x20], rbp
lea edx, [r9 + 9]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1400072c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140002608
mov rcx, rax
lea rdx, str.GetManifestContents:_error_converting_utf8_to_utf16le:__d
mov r8d, edi
call fcn.14000a0ec
mov rcx, rsi
call fcn.140011538
mov rcx, rbp
jmp 0x14000724d
mov rcx, rsi
call fcn.140011538
jmp 0x14000719f
Function at 0x140007b30
Capabilities:
Copy file
Create directory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x490
mov rax, qword [0x14003a010]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r12, rdx
mov r13, r8
lea rdx, [rsp + 0x30]
mov rsi, rcx
call fcn.1400121c0
xor ebx, ebx
mov edi, eax
test eax, eax
je 0x140007ba6
call fcn.140017324
mov rbx, rax
call fcn.140002608
mov edx, dword [rbx]
mov rcx, rax
mov dword [rsp + 0x20], edx
mov r9d, edi
lea rdx, str.ensure_copy_recursive:_path_doesnt_exist:__S__rv:__d__err:__d
mov r8, rsi
call fcn.14000a0ec
mov eax, 6
jmp 0x140007d7a
movzx eax, word [rsp + 0x36]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x4000
cmp ax, cx
je 0x140007c02
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140007bfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140002608
mov rcx, rax
mov dword [rsp + 0x20], ebx
mov r9, r12
lea rdx, str.ensure_copy:_failed_to_copy_the_file__S_over_to__S__lasterr:__x
mov r8, rsi
call fcn.14000a0ec
mov ebx, 0x3d
mov eax, ebx
jmp 0x140007d7a
mov rcx, r12
call fcn.1400122d0
mov ebp, eax
test eax, eax
jns 0x140007c4c
call fcn.140017324
cmp dword [rax], 0x11
je 0x140007c4c
call fcn.140017324
mov rbx, rax
call fcn.140002608
mov edx, dword [rbx]
mov rcx, rax
mov dword [rsp + 0x20], edx
mov r9d, ebp
lea rdx, str.ensure_copy_recursive:_could_not_create_destination_directory:__S__rv:__d__err:__d
mov r8, rsi
call fcn.14000a0ec
mov eax, 7
jmp 0x140007d7a
mov rcx, rsi
call fcn.140007da8
mov r14, rax
test rax, rax
jne 0x140007d4d
call fcn.140017324
mov rbx, rax
call fcn.140002608
mov rcx, rax
lea rdx, str.ensure_copy_recursive:_path_is_not_a_directory:__S__rv:__d__err:__d
mov eax, dword [rbx]
mov r9d, ebp
mov dword [rsp + 0x20], eax
jmp 0x140007b94
movzx ecx, word [rdi]
cmp cx, word [0x140032858]
jne 0x140007ca2
movzx ecx, word [rdi + 2]
cmp cx, word [0x14003285a]
je 0x140007d4d
movzx eax, word [rdi]
cmp ax, word [0x140032798]
jne 0x140007ccc
movzx eax, word [rdi + 2]
cmp ax, word [0x14003279a]
jne 0x140007ccc
movzx eax, word [rdi + 4]
cmp ax, word [0x14003279c]
je 0x140007d4d
mov r9, rsi
mov qword [rsp + 0x20], rdi
lea r8, str._s__s
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1400025a4
mov r15d, ebx
movsxd rax, r15d
lea rdx, [rsp + 0x60]
imul rcx, rax, 0x208
add rcx, r13
call fcn.14001aa34
test eax, eax
je 0x140007d4d
inc r15d
cmp r15d, 3
jl 0x140007ced
mov r9, r12
mov qword [rsp + 0x20], rdi
lea r8, str._s__s
mov edx, 0x104
lea rcx, [rsp + 0x270]
call fcn.1400025a4
mov r8, r13
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x60]
call fcn.140007b30
mov ebp, eax
test eax, eax
jne 0x140007d61
mov rcx, r14
call fcn.140007e34
mov rdi, rax
test rax, rax
jne 0x140007c85
cmp qword [r14], 0xffffffffffffffff
je 0x140007d70
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, r14
call fcn.14000dda4
mov eax, ebp
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14000d4c0
mov rbx, qword [rsp + 0x4e8]
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007e34
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x14003a010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x140007e88
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140007eb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 2
cmp eax, edi
je 0x140007e84
call fcn.140017324
mov dword [rax], edi
xor eax, eax
jmp 0x140007ee5
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x140007eb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140017324
mov edi, 2
cmp ebx, edi
je 0x140007e82
mov edi, 9
jmp 0x140007e82
lea rbx, [0x14003c5c0]
xor edx, edx
mov rcx, rbx
mov r8d, 0x208
call fcn.14000f4f0
mov r8d, 0x104
lea rdx, [rsp + 0x4c]
mov rcx, rbx
call fcn.1400121c8
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14000d4c0
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret

Function at 0x140007fc4
Capabilities:
Hash data via wincrypt
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], r14
push r15
sub rsp, 0x20
mov r15d, r8d
mov rbx, r9
mov r14, rdx
test rcx, rcx
je 0x1400080b3
test rdx, rdx
je 0x1400080b3
test rbx, rbx
je 0x1400080b3
cmp dword [rsp + 0x50], 0
je 0x1400080b3
cmp qword [rsp + 0x58], 0
je 0x1400080b3
mov r9, rcx
mov edx, r15d
mov rcx, r14
mov r8d, 1
call fcn.140011814
cmp rax, 1
je 0x14000804e
mov ecx, 2
call fcn.140012920
mov r8, qword [rsp + 0x58]
lea rdx, str.ERROR:_Could_not_read__s_n
mov rcx, rax
call fcn.140002508
jmp 0x1400080cc
xor ebp, ebp
cmp dword [rsp + 0x50], ebp
jbe 0x14000808a
test rbx, rbx
je 0x140008077
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, r15d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
neg eax
sbb ecx, ecx
neg ecx
dec ecx
jmp 0x14000807a
or ecx, 0xffffffff
test ecx, ecx
jne 0x14000808e
inc ebp
add rbx, 8
cmp ebp, dword [rsp + 0x50]
jb 0x140008056
xor eax, eax
jmp 0x1400080cf
mov ecx, 2
call fcn.140012920
mov r8, qword [rsp + 0x58]
lea rdx, str.ERROR:_Could_not_update_verify_context_for__s_n
mov rcx, rax
call fcn.140002508
mov eax, 0xfffffffe
jmp 0x1400080cf
mov ecx, 2
call fcn.140012920
mov rcx, rax
lea rdx, str.ERROR:_Invalid_parameter_specified._n
call fcn.140002508
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
add rsp, 0x20
pop r15
ret
Function at 0x1400080e8
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x14003a010]
xor rax, rsp
mov qword [rbp + 0x27], rax
and qword [rbp - 0x29], 0
mov rsi, r8
mov rdi, rdx
mov r14, rcx
or r15d, 0xffffffff
lea rcx, [rbp - 0x19]
xor edx, edx
lea r8d, [r15 + 0x41]
call fcn.14000f4f0
test r14, r14
je 0x140008254
test rdi, rdi
je 0x140008254
test rsi, rsi
je 0x140008254
cmp qword [r14], 0
jne 0x140008165
lea ecx, [r15 + 3]
call fcn.140012920
lea rdx, str.ERROR:_MAR_file_is_not_open._n
jmp 0x140008265
mov ebx, 0x18
mov dword [rsp + 0x20], 0xf0000000
mov r9d, ebx
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
xor edx, edx
lea rcx, [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140008200
mov r9d, ebx
mov dword [rsp + 0x20], 0xf0000008
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
xor edx, edx
lea rcx, [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140008200
mov r9d, ebx
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rbp - 0x29]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140008200
mov r9d, ebx
mov dword [rsp + 0x20], 0xf0000008
xor r8d, r8d
lea rcx, [rbp - 0x29]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140008200
and qword [rbp - 0x29], 0
lea ecx, [rbx - 0x16]
call fcn.140012920
lea rdx, str.ERROR:_Could_not_init_crytpo_library._n
jmp 0x140008265
xor ebx, ebx
mov r8d, dword [rsi]
lea r9, [rbp - 0x19]
mov rdx, qword [rdi]
lea r9, [r9 + rbx*8]
mov rcx, qword [rbp - 0x29]
call fcn.140007f08
test eax, eax
jne 0x140008241
inc ebx
add rsi, 4
add rdi, 8
cmp ebx, 1
jb 0x140008202
mov rdx, qword [rbp - 0x29]
lea r8, [rbp - 0x19]
mov rcx, qword [r14]
call fcn.1400082a4
mov r15d, eax
jmp 0x14000826d
mov ecx, 2
call fcn.140012920
lea rdx, str.ERROR:_Could_not_load_public_key._n
jmp 0x140008265
mov ecx, 2
call fcn.140012920
lea rdx, str.ERROR:_Invalid_parameter_specified._n
mov rcx, rax
call fcn.140002508
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14000827c
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, r15d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14000d4c0
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008c24
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x20
mov r9, qword [rcx]
mov ebx, 1
mov r14, rcx
mov r8d, ebx
lea rcx, [rbp + 0x40]
lea edi, [rbx + 3]
mov edx, edi
call fcn.140011814
cmp rax, rbx
je 0x140008c5b
or eax, 0xffffffff
jmp 0x140008d28
mov eax, dword [rbp + 0x40]
cmp eax, dword [str.MAR1]
jne 0x140008c53
mov r9, qword [r14]
lea rcx, [rbp + 0x38]
mov r8, rbx
mov rdx, rdi
call fcn.140011814
cmp rax, rbx
jne 0x140008c53
mov ecx, dword [rbp + 0x38]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov rcx, qword [r14]
xor r8d, r8d
mov edx, eax
mov dword [rbp + 0x38], eax
call fcn.1400170d4
test eax, eax
jne 0x140008c53
mov r9, qword [r14]
lea rcx, [rbp + 0x30]
mov r8, rbx
mov rdx, rdi
call fcn.140011814
cmp rax, rbx
jne 0x140008c53
mov ecx, dword [rbp + 0x30]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov ecx, eax
mov dword [rbp + 0x30], eax
call fcn.140011578
mov rdi, rax
test rax, rax
je 0x140008c53
mov edx, dword [rbp + 0x30]
mov r8, rbx
mov r9, qword [r14]
mov rcx, rax
call fcn.140011814
cmp rax, rbx
je 0x140008cef
mov rcx, rdi
call fcn.140011538
jmp 0x140008c53
mov esi, dword [rbp + 0x30]
mov rbx, rdi
mov qword [rbp + 0x48], rbx
add rsi, rdi
cmp rbx, rsi
jae 0x140008d18
mov r8, rsi
lea rdx, [rbp + 0x48]
mov rcx, r14
call fcn.140008b5c
mov rbx, qword [rbp + 0x48]
test eax, eax
je 0x140008cfc
mov rcx, rdi
call fcn.140011538
sub rbx, rsi
neg rbx
sbb eax, eax
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140008dfc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov rsi, r9
mov rbx, rcx
test r9, r9
jne 0x140008e2c
or eax, 0xffffffff
jmp 0x140008fc6
xor r8d, r8d
lea r15d, [r8 + 4]
mov edx, r15d
call fcn.1400170d4
test eax, eax
jne 0x140008e24
lea r14d, [r15 - 3]
mov r9, rbx
mov r8d, r14d
lea rcx, [rbp - 0x10]
mov edx, r15d
call fcn.140011814
cmp rax, r14
jne 0x140008e24
mov ecx, dword [rbp - 0x10]
call qword [sym.imp.WSOCK32.dll_ntohl]
xor r8d, r8d
mov rcx, rbx
mov edx, eax
mov dword [rbp - 0x10], eax
call fcn.1400170d4
test eax, eax
jne 0x140008e24
mov r8d, r14d
mov edx, r15d
mov rcx, rbx
call fcn.1400170d4
test eax, eax
jne 0x140008e24
mov r9, rbx
lea rcx, [rbp + 0x38]
mov r8d, r14d
mov edx, r15d
call fcn.140011814
cmp rax, r14
jne 0x140008e24
mov ecx, dword [rbp + 0x38]
call qword [sym.imp.WSOCK32.dll_ntohl]
xor r8d, r8d
lea edx, [r15 + 0xc]
mov rcx, rbx
mov dword [rbp + 0x38], eax
call fcn.1400170cc
test eax, eax
jne 0x140008e24
mov r9, rbx
lea rcx, [rbp + 0x40]
mov r8d, r14d
mov edx, r15d
call fcn.140011814
cmp rax, r14
jne 0x140008e24
mov ecx, dword [rbp + 0x40]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov dword [rbp + 0x40], eax
cmp eax, 8
ja 0x140008e24
xor edi, edi
test eax, eax
je 0x140008f53
mov r8d, r14d
mov edx, r15d
mov rcx, rbx
call fcn.1400170d4
test eax, eax
jne 0x140008e24
mov r9, rbx
lea rcx, [rbp - 0xc]
mov r8, r14
mov rdx, r15
call fcn.140011814
cmp rax, r14
jne 0x140008e24
mov ecx, dword [rbp - 0xc]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov r8d, r14d
mov rcx, rbx
mov edx, eax
mov dword [rbp - 0xc], eax
call fcn.1400170d4
test eax, eax
jne 0x140008e24
add edi, r14d
cmp edi, dword [rbp + 0x40]
jb 0x140008ef9
mov rcx, rbx
call fcn.140017ee0
movsxd rcx, eax
mov eax, dword [rbp + 0x38]
cmp rcx, rax
jne 0x140008f6b
and dword [rsi], 0
jmp 0x140008fc4
mov rdi, qword [rbp + 0x58]
test rdi, rdi
je 0x140008fae
mov r9, rbx
mov dword [rsi], r14d
mov r8, r14
mov rdx, r15
mov rcx, rdi
call fcn.140011814
cmp rax, r14
jne 0x140008e24
mov ecx, dword [rdi]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov dword [rdi], eax
mov rdi, qword [rbp + 0x50]
test rdi, rdi
je 0x140008fc4
mov rcx, rbx
call fcn.140017ee0
jmp 0x140008fc2
mov rdi, qword [rbp + 0x50]
test rdi, rdi
je 0x140008fc4
mov rcx, rbx
call fcn.140017ee0
add eax, r15d
mov dword [rdi], eax
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret