joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483920
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4839ea
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00403560
xorps xmm15, xmm15
mov r14, qword [0x0065afd0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x4839cf
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004dd5e0]
xor ebx, ebx
mov rcx, rdx
call fcn.0044e4a0
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00484e20
inc rbx
cmp rcx, rbx
jae 0x4839be
mov edi, 1
lea rsi, [0x004dd5e0]
call fcn.0044e580
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x0052ddd8]
lea rsi, [0x0052d518]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00467a80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00483920

Function at 0x4a4360
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4a4a9f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x4a438d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x4a4611
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x4a463d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x0052fa80]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004dd4e0]
lea rbx, [0x0052dc48]
call fcn.004377e0
inc rax
cmp rax, r8
jge 0x4a4662
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x4a4697
lea rdi, [0x004dd560]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x4a4383
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x4a467b
jmp 0x4a4650
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.00467a80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.004a4360

Function at 0x4a4c40
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4a4c57
inc rax
cmp rax, 4
jge 0x4a4c6f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4a4c54
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x4a4c80
inc rax
cmp rax, 4
jge 0x4a4c8e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x4a4cb7
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x4a4c9b
jmp 0x4a4c7d
Function at 0x4b4720
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4b486e
push rbp
mov rbp, rsp
sub rsp, 0x68
movups xmmword [rsp + 0x40], xmm15
mov qword [rsp + 0x30], 0
mov rax, qword [0x005cd970]
call fcn.004a4ec0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], rbx
movups xmmword [rsp + 0x50], xmm15
mov qword [rsp + 0x60], 0
lea rcx, [0x004b4880]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x60], rcx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x2b
call fcn.00403560
xorps xmm15, xmm15
mov r14, qword [0x0065afd0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x4b4832
mov rdx, qword [rsp + 0x28]
nop dword [rax + rax]
cmp rdx, rcx
jb 0x4b4868
mov qword [rsp + 0x20], rcx
mov rsi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov rbx, rcx
lea rdx, [rsp + 0x50]
call rsi
mov rax, qword [rsp + 0x20]
lea rcx, [rax + 1]
mov rbx, qword [rsp + 0x28]
cmp rbx, rcx
jb 0x4b485d
mov rsi, qword [rsp + 0x50]
sub rbx, rax
dec rbx
mov rdi, rbx
neg rdi
sar rdi, 0x3f
and rcx, rdi
mov rdi, qword [rsp + 0x38]
lea rax, [rdi + rcx]
lea rdx, [rsp + 0x50]
call rsi
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x68
pop rbp
ret
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x28]
lea rdx, [rsp + 0x50]
call rcx
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x68
pop rbp
ret
mov rax, rcx
mov rcx, rbx
call fcn.00469e20
call fcn.00469da0
nop
call fcn.00467a80
jmp fcn.004b4720
Function at 0x140009c50
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140013ee0], rbx
je 0x140009c9c
cmp rax, rbx
jne 0x140009c8f
mov ebx, 1
mov esi, ebx
jmp 0x140009ca1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140009c74
mov ebx, 1
mov eax, dword [0x140013ee8]
cmp eax, ebx
jne 0x140009cb7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140009d1c
mov eax, dword [0x140013ee8]
test eax, eax
jne 0x140009d16
mov dword [0x140013ee8], ebx
lea r15, [0x14000b650]
lea rdi, [0x14000b638]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140009d08
test eax, eax
jne 0x140009d0c
cmp qword [rdi], 0
je 0x140009cfd
mov rax, qword [rdi]
mov rcx, qword [0x14000b618]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140009cde
test eax, eax
je 0x140009d1c
mov eax, 0xff
jmp 0x140009df8
mov dword [0x140013084], ebx
mov eax, dword [0x140013ee8]
cmp eax, ebx
jne 0x140009d43
lea rdx, [0x14000b630]
lea rcx, [0x14000b620]
call sub.msvcrt.dll__initterm
mov dword [0x140013ee8], 2
test esi, esi
jne 0x140009d50
xor eax, eax
xchg qword [0x140013ee0], rax
cmp qword [0x140013ef0], 0
je 0x140009d84
lea rcx, [0x140013ef0]
call fcn.14000a020
test eax, eax
je 0x140009d84
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140013ef0]
mov r9, qword [0x14000b618]
call r9
mov r8, qword [0x140013098]
mov rdx, qword [0x140013090]
mov ecx, dword [0x140013088]
call fcn.1400044dc
mov dword [0x140013080], eax
cmp dword [0x1400130a0], 0
jne 0x140009db4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140013084], 0
jne 0x140009dc9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140013080]
jmp 0x140009df8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140143000
add rsp, 0x28
jmp 0x140009c50

Function at 0x140009f0c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140009f58
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140009f50
cmp dword [rcx + 0x3c], edx
jl 0x140009f50
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140009f50
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140009f58
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001290
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rcx
mov qword [r11 - 0x38], rcx
mov r8, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x18]
mov rax, rcx
sub rax, r8
xor r14d, r14d
cmp rax, 3
jb 0x14000135a
lea rax, [r8 + 3]
mov qword [rbx + 0x10], rax
mov rdi, rbx
cmp rcx, 0xf
jbe 0x1400012ef
mov rdi, qword [rbx]
lea rax, [0x140006537]
mov esi, 3
lea r15, [0x140006534]
cmp rax, rdi
jbe 0x140001322
lea rax, [rdi + r8]
cmp r15, rax
ja 0x140001322
cmp rdi, r15
ja 0x14000131a
mov rbp, r14
jmp 0x140001325
mov rbp, rdi
sub rbp, r15
jmp 0x140001325
mov rbp, rsi
lea rcx, [rdi + 3]
inc r8
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov r8, rbp
mov rdx, r15
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rdi + rbp]
sub rsi, rbp
lea rdx, [r15 + 3]
add rdx, rbp
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14000136e
mov esi, 3
mov qword [rsp + 0x28], rsi
mov edx, esi
mov rcx, rbx
call fcn.140004390
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0x30], 0x70
mov dword [rsp + 0x34], 0x40
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
lea rax, str.cmd.exe
mov qword [rsp + 0x48], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400013cd
mov rax, qword [rbx]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x68], r14
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x140001431
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14000142a
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140001425
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400014e3
mov rcx, r8
call fcn.1400049fc
mov eax, 0xffffffff
jmp 0x1400014a7
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [rsp + 0xa8]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400014a5
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400014a0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400014e3
mov rcx, r8
call fcn.1400049fc
mov eax, edi
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r14
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400048d0
lea r11, [rsp + 0xc0]
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
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140002de0
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 0x140002e08
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 0x140002e2e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002e30
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002e89
test ecx, ecx
jle 0x140002e69
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 0x140002e89
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002e89
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 0x140002eb0
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 0x140002ed2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002ee8
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 0x140002f04
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002f06
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002f42
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 0x140002fde
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002f7d
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 0x140002fbe
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 0x140002fde
cmp rbx, rax
ja 0x140002f90
test rbx, rbx
je 0x140002fde
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 0x140003440
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000346d
xor eax, eax
jmp 0x1400035d9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400034a7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400034a7
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 0x1400035d9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400035cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400034ea
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 0x140003515
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 0x1400035d1
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 0x140003584
sub eax, 1
je 0x140003584
cmp eax, 2
jne 0x1400035cc
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 0x1400035d1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400035b2
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 0x1400035cc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400035d1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400048d0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003940
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003a13
cmp byte [rcx + 0x71], 0
je 0x140003a13
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140003a0f
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 0x1400039d4
sub eax, 1
je 0x1400039d8
cmp eax, 2
jne 0x140003a0f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400048d0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003a06
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 0x140003a0f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400039bc
xor al, al
jmp 0x1400039bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400048d0
add rsp, 0x60
pop rbx
ret

Function at 0x140005320
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000536a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000536a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000536a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000536a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000536a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000536c
xor al, al
add rsp, 0x28
ret
Function at 0x180001000
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push rbp
push r12
push r13
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0xa8
mov rax, qword [0x180016070]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov eax, r8d
mov r15d, r8d
mov r13d, r9d
shr eax, 3
mov r12, rdx
mov r10, rcx
and r8d, 7
je 0x180001069
test r8d, r8d
je 0x18000105b
lea ecx, [rax*8]
add rcx, rdx
mov edx, r8d
nop dword [rax]
not byte [rcx]
lea rcx, [rcx + 1]
dec rdx
jne 0x180001050
sub r15d, r8d
jne 0x180001069
lea eax, [r15 + 1]
jmp 0x180001211
xor eax, eax
mov qword [rsp + 0x90], r14
xor r14d, r14d
mov qword [rbp - 5], rax
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
lea rcx, [rbp - 0x21]
lea r9d, [r14 + 1]
xor edx, edx
mov dword [rbp - 0x11], 0x208
mov dword [rbp - 0xd], 0x6601
mov dword [rbp - 9], 8
mov qword [rbp - 5], r10
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1800010d6
lea r9d, [r14 + 1]
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
lea rcx, [rbp - 0x21]
xor edx, edx
mov dword [rsp + 0x20], 8
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x180001109
mov rcx, qword [rbp - 0x21]
xor r9d, r9d
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 0x14]
lea rdx, [rbp - 0x11]
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x180001110
mov rcx, qword [rbp - 0x21]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x180001209
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x98], rdi
mov esi, r14d
test r15d, r15d
je 0x1800011d6
nop dword [rax]
nop dword [rax + rax]
mov ecx, 8
mov eax, r15d
mov edx, esi
sub eax, esi
cmp eax, ecx
cmovbe ecx, eax
add rdx, r12
mov dword [rbp - 0x29], ecx
mov r8d, ecx
lea rcx, [rbp + 7]
call fcn.180002720
mov rcx, qword [rbp - 0x19]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rax, [rbp - 0x29]
test r13d, r13d
je 0x18000118e
mov qword [rsp + 0x28], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
jmp 0x1800011aa
mov dword [rsp + 0x30], 0x10
mov qword [rsp + 0x28], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov edi, eax
test eax, eax
je 0x1800011d9
mov ebx, dword [rbp - 0x29]
mov ecx, r14d
lea rdx, [rbp + 7]
mov r8d, ebx
add rcx, r12
call fcn.180002720
add esi, 8
add r14d, ebx
cmp esi, r15d
jb 0x180001140
jmp 0x1800011d9
mov edi, dword [rbp - 0x29]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x21]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xe8]
mov eax, edi
mov rdi, qword [rsp + 0x98]
mov r14, qword [rsp + 0x90]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1800026f0
add rsp, 0xa8
pop r15
pop r13
pop r12
pop rbp
ret
Function at 0x180001230
Capabilities:
Parse pe header

Disassembly:
push rbp
push r12
push r14
sub rsp, 0x20
movsxd rax, edx
mov r12, r9
mov r14, r8
mov rbp, rcx
cmp rax, 0x40
jae 0x180001258
xor eax, eax
add rsp, 0x20
pop r14
pop r12
pop rbp
ret
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000124c
movsxd rcx, dword [rcx + 0x3c]
lea eax, [rcx + 0x108]
cmp edx, eax
jl 0x18000124c
cmp dword [rcx + rbp], 0x4550
mov qword [rsp + 0x40], rbx
lea rbx, [rcx + rbp]
jne 0x180001400
mov eax, 0x2000
test word [rbx + 0x16], ax
jne 0x180001400
mov eax, 0xf0
cmp word [rbx + 0x14], ax
jne 0x180001400
lea r9, [rbx + 0x108]
mov r8, rbx
mov rcx, rbp
mov qword [rsp + 0x50], rdi
call fcn.1800019a0
mov rcx, qword [rsp + 0x68]
mov dword [rcx], eax
test eax, eax
jne 0x1800012da
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop r12
pop rbp
ret
xor ecx, ecx
mov edx, eax
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
mov qword [rsp + 0x58], r15
call qword [0x1800176d0]
mov r15, qword [rsp + 0x60]
mov qword [r15], rax
mov r9, rax
test rax, rax
je 0x1800013f1
movzx r8d, word [rbx + 6]
mov ecx, dword [rbx + 0x54]
mov qword [rsp + 0x48], rsi
test r8, r8
jle 0x180001334
lea rdx, [rbx + 0x11c]
mov eax, dword [rdx]
test eax, eax
je 0x18000132b
cmp eax, ecx
cmovb ecx, eax
add rdx, 0x28
dec r8
jne 0x180001320
mov r8d, ecx
mov rdx, rbp
mov rcx, r9
call fcn.180002720
mov rcx, qword [r15]
xor esi, esi
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
mov qword [r14], rdx
lea r9, [rdx + 0x108]
xor edx, edx
mov qword [r12], r9
mov r8, qword [r14]
mov ecx, dword [r8 + 0x38]
mov eax, dword [r8 + 0x54]
dec eax
add eax, ecx
div ecx
imul eax, ecx
mov ebx, eax
add rbx, qword [r15]
cmp si, word [r8 + 6]
jae 0x1800013ec
mov edi, esi
mov eax, dword [rdi + r9 + 0xc]
test eax, eax
je 0x18000138e
mov ebx, eax
add rbx, qword [r15]
mov eax, dword [rdi + r9 + 0x10]
test eax, eax
je 0x1800013ca
mov edx, dword [rdi + r9 + 0x14]
mov r8d, eax
mov rcx, rbx
add rdx, rbp
call fcn.180002720
mov r9, qword [r12]
mov r8, qword [r14]
mov eax, dword [rdi + r9 + 8]
mov edx, dword [rdi + r9 + 0x10]
mov ecx, dword [r8 + 0x38]
cmp eax, edx
jae 0x1800013cf
lea eax, [rcx - 1]
add eax, edx
jmp 0x1800013d3
mov eax, dword [rdi + r9 + 8]
dec eax
add eax, ecx
xor edx, edx
inc esi
add rdi, 0x28
div ecx
imul eax, ecx
add rbx, rax
movzx eax, word [r8 + 6]
cmp esi, eax
jl 0x180001380
mov rsi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x58]
mov eax, 1
jmp 0x1800012c6
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop r12
pop rbp
ret