joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461200
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x402caf
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.004096a0
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045f0e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x402c80
cmp byte [0x00675a93], 0
je 0x461215
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45e1e0
jmp 0x402c80

Function at 0x461220
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00675e60]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x00675a93], 0
je 0x461255
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x00676120]
aesenc xmm0, xmmword [0x00676130]
aesenc xmm0, xmmword [0x00676140]
movq rax, xmm0
ret
jmp 0x4098a0

Function at 0x461260
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00675e60]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x00675a93], 0
je 0x461296
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00676120]
aesenc xmm0, xmmword [0x00676130]
aesenc xmm0, xmmword [0x00676140]
movq rax, xmm0
ret
jmp 0x409900

Function at 0x462be0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x006760a0]
mov qword [rsp + 8], rdx
lea r8d, [0x00675ab0]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.00461140
add rsp, 0x30
ret
Function at 0x4ef0c0
Capabilities:
Encode data using xor

Disassembly:
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
test rdx, 0xf
jne 0x4ef12b
mov rax, 0
movdqu xmm0, xmmword [rsi + rax]
movdqu xmm1, xmmword [rcx + rax]
pxor xmm0, xmm1
movdqu xmmword [rbx + rax], xmm0
add rax, 0x10
cmp rdx, rax
jne 0x4ef0e4
ret
sub rdx, 1
mov dil, byte [rsi + rdx]
mov al, byte [rcx + rdx]
xor dil, al
mov byte [rbx + rdx], dil
test rdx, 7
jne 0x4ef101
cmp rdx, 0
je 0x4ef14d
test rdx, 0xf
je 0x4ef0dd
test rdx, 7
jne 0x4ef101
sub rdx, 8
mov rdi, qword [rsi + rdx]
mov rax, qword [rcx + rdx]
xor rdi, rax
mov qword [rbx + rdx], rdi
cmp rdx, 0x10
jge 0x4ef0dd
ret
Function at 0x4f0a00
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rbx]
add rax, 0x10
pxor xmm0, xmm1
sub rcx, 0xc
je 0x4f0a3f
jb 0x4f0a54
movups xmm1, xmmword [rax]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesenc xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesenc xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x20]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x30]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x40]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x50]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x60]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x70]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x80]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x90]
aesenclast xmm0, xmm1
movups xmmword [rdx], xmm0
ret

Function at 0x4f0ac0
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rbx]
add rax, 0x10
pxor xmm0, xmm1
sub rcx, 0xc
je 0x4f0aff
jb 0x4f0b14
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x20]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x30]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x40]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x50]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x60]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x70]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x80]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x90]
aesdeclast xmm0, xmm1
movups xmmword [rdx], xmm0
ret
Function at 0x4f0b80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x4f0c50
jb 0x4f0caf
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.004f09a0
aeskeygenassist xmm1, xmm0, 1
call fcn.004f09c0
aeskeygenassist xmm1, xmm2, 2
call fcn.004f09a0
aeskeygenassist xmm1, xmm0, 2
call fcn.004f09c0
aeskeygenassist xmm1, xmm2, 4
call fcn.004f09a0
aeskeygenassist xmm1, xmm0, 4
call fcn.004f09c0
aeskeygenassist xmm1, xmm2, 8
call fcn.004f09a0
aeskeygenassist xmm1, xmm0, 8
call fcn.004f09c0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.004f09a0
aeskeygenassist xmm1, xmm0, 0x10
call fcn.004f09c0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.004f09a0
aeskeygenassist xmm1, xmm0, 0x20
call fcn.004f09c0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.004f09a0
jmp 0x4f0d1d
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.004f0900
aeskeygenassist xmm1, xmm2, 2
call fcn.004f0960
aeskeygenassist xmm1, xmm2, 4
call fcn.004f0900
aeskeygenassist xmm1, xmm2, 8
call fcn.004f0960
aeskeygenassist xmm1, xmm2, 0x10
call fcn.004f0900
aeskeygenassist xmm1, xmm2, 0x20
call fcn.004f0960
aeskeygenassist xmm1, xmm2, 0x40
call fcn.004f0900
aeskeygenassist xmm1, xmm2, 0x80
call fcn.004f0960
jmp 0x4f0d1d
aeskeygenassist xmm1, xmm0, 1
call fcn.004f08c0
aeskeygenassist xmm1, xmm0, 2
call fcn.004f08c0
aeskeygenassist xmm1, xmm0, 4
call fcn.004f08c0
aeskeygenassist xmm1, xmm0, 8
call fcn.004f08c0
aeskeygenassist xmm1, xmm0, 0x10
call fcn.004f08c0
aeskeygenassist xmm1, xmm0, 0x20
call fcn.004f08c0
aeskeygenassist xmm1, xmm0, 0x40
call fcn.004f08c0
aeskeygenassist xmm1, xmm0, 0x80
call fcn.004f08c0
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.004f08c0
aeskeygenassist xmm1, xmm0, 0x36
call fcn.004f08c0
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x4f0d2a
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
ret
Function at 0xc2fc00
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xc2fc0d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xc2fc1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xc2fc05
lea eax, [rcx + 1]
jmp 0xc2fc2b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xc2fc3e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xc2fc24
sub eax, 3
jb 0xc2fc5e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xc2fcad
sar eax, 1
movsxd rbp, eax
jb 0xc2fc94
jmp 0xc2fc6c
add ebx, ebx
jne 0xc2fc6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xc2fc94
inc ecx
add ebx, ebx
jne 0xc2fc7a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xc2fc94
call r11
adc ecx, ecx
add ebx, ebx
jne 0xc2fc8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xc2fc7c
add ecx, 2
jmp 0xc2fc99
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00c2fbc2
jmp 0xc2fc0d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x345200
mov dl, 0x8b
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xc2fcf9
cmp rsi, rcx
jae 0xc2fd01
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xc2fce0
cmp al, 0x8f
ja 0xc2fce0
cmp byte [rsi - 2], 0xf
je 0xc2fce6
sub al, 0xe8
cmp al, 1
ja 0xc2fcca
cmp rsi, rcx
jae 0xc2fd01
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xc2fcd0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xc2fd01
lodsb al, byte [rsi]
jmp 0xc2fce0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x825000]
mov eax, dword [rdi]
or eax, eax
je 0xc2fd5e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x82f000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xc2fd0e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xc2fd58
mov qword [rbx], rax
add rbx, 8
jmp 0xc2fd2e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xc2fda2
cmp al, 0xef
ja 0xc2fd8a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xc2fd6a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xc2fd79
mov eax, dword [rdi]
add rdi, 4
jmp 0xc2fd79
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xc2fdf6
sub rsp, 0xffffffffffffff80
jmp 0x464f00
Function at 0x1400110e6
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001b040
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140040066]
call fcn.140011870
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001b097
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14001b1a3
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14001b13c
cmp qword [rbp + 0x28], 0
jle 0x14001b13c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001b0dc
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1400117f8
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14001b192
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001b192
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400114ce
Capabilities:
Terminate process

Disassembly:
jmp 0x14001dad0
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 0x1400115f0
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001e600
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001e620
xor al, al
jmp 0x14001e6a1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001e633
xor al, al
jmp 0x14001e6a1
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 0x14001e65d
xor al, al
jmp 0x14001e6a1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001e671
xor al, al
jmp 0x14001e6a1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001e683
xor al, al
jmp 0x14001e6a1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001e69f
xor al, al
jmp 0x14001e6a1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011857
Capabilities:
Write file on windows

Disassembly:
jmp 0x140017460
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x1400389c0]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x140040066]
call fcn.140011870
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x1400174c6
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400174cd
mov al, 1
jmp 0x14001761d
call fcn.140011267
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.140011267
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.1400116c2
movzx eax, al
test eax, eax
je 0x14001751e
xor al, al
jmp 0x14001761d
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x140017583
cmp dword [rbp + 0x154], 1
je 0x14001758e
cmp dword [rbp + 0x154], 3
je 0x14001760c
jmp 0x14001761b
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x1400175de
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x1400175de
xor al, al
jmp 0x14001761d
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400175f9
mov dword [rbp + 0x154], 1
jmp 0x140017603
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001761d
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001761d
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140026770]
call fcn.140011717
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.14001141f
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x401c40
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov eax, 1
xchg byte [0x00f61100], al
test al, al
je 0x401c5f
lea rcx, [0x00f61100]
call fcn.00438d60
movzx eax, byte [0x00f61101]
test al, al
je 0x401c80
mov byte [0x00f61100], 0
add rsp, 0x58
ret
lea rdx, [0x00fe2148]
lea rcx, [0x00fe2170]
mov rax, rdx
mov byte [rax], 0
add rax, 1
cmp rax, rcx
jne 0x401c91
lea rax, [0x00fe2148]
xor ecx, ecx
pxor xmm0, xmm0
mov qword [0x00fe2148], rax
mov qword [0x00fe2150], rax
lea rax, [0x00f61140]
mov r8, rax
add rcx, 1
movaps xmmword [r8], xmm0
add r8, 0x10
cmp rcx, 0x4000
jne 0x401cc2
mov byte [0x00fa1140], 0
xor ecx, ecx
pxor xmm0, xmm0
add rcx, 1
movaps xmmword [rax + 0x40040], xmm0
add rax, 0x10
cmp rcx, 0xd8
jne 0x401ce4
lea rax, [0x00fa1f00]
mov byte [rax], 0
add rax, 1
cmp rax, rdx
jne 0x401d03
mov rax, qword [0x007290f8]
test rax, rax
jne 0x401d31
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov qword [0x007290f8], rax
mov qword [0x00fa1f00], rax
lea rax, [0x00fa1f10]
mov qword [0x00fa1f08], rax
mov byte [0x00f61101], 1
mov byte [0x00f61100], 0
add rsp, 0x58
ret
Function at 0x40d6b0
Capabilities:
Get system information on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rax, qword [0x006c9220]
mov rsi, rcx
lea rcx, [rax - 1]
test rax, rcx
jne 0x40d784
lea rbx, [rdx + rcx]
neg rax
mov rdx, qword [rsi]
and rbx, rax
mov rax, qword [rsi + 8]
sub rdx, rax
cmp rdx, rbx
jge 0x40d74b
mov rax, qword [0x007290f8]
test rax, rax
je 0x40d790
lea rdi, [rax - 1]
test rdi, rax
jne 0x40d784
lea rdx, str.Allocate
neg rax
add rdi, rbx
and rdi, rax
mov rcx, rdi
call fcn.0040d590
mov r8, qword [0x00f538d0]
lea rdx, [rax + rdi]
mov qword [rsi + 8], rax
mov qword [rsi], rdx
test r8, r8
je 0x40d743
mov rdx, rdi
mov rcx, rax
call r8
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
sub rdx, rax
cmp rbx, rdx
jg 0x40d760
add rbx, rax
mov qword [rsi + 8], rbx
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
lea r8, str.__allocated_end____allocated_current_____sptr_size______0_
xor r9d, r9d
mov edx, 0x1b33
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
call fcn.00406990
call fcn.0040b4c0
nop dword [rax]
lea rcx, [rsp + 0x30]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov qword [0x007290f8], rax
jmp 0x40d6f7
Function at 0x40e930
Capabilities:
Get system information on windows
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rbx, qword [0x007290f8]
mov r12, qword [rsp + 0xf0]
test rbx, rbx
mov qword [rsp + 0xd0], rcx
mov rbp, rdx
mov rsi, r9
mov qword [rsp + 0xe0], r8
je 0x40eb30
mov r13, qword [sym.imp.kernel32.dll_ReadFile]
lea r14, [rsp + 0x50]
cmp r12, rbx
cmovbe rbx, r12
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rbp]
mov rdx, qword [rax]
call fcn.0040e7f0
xor ecx, ecx
mov r9d, 4
mov rdx, rbx
mov r8d, 0x3000
call qword [sym.imp.kernel32.dll_VirtualAlloc]
test rax, rax
je 0x40ebb7
mov qword [rbp], rax
mov rax, qword [rsp + 0xe0]
xor r9d, r9d
mov r8d, 7
mov edx, 0x80000000
mov rcx, qword [rsp + 0xd0]
mov qword [rax], rbx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.kernel32.dll_CreateFileA]
cmp rax, 1
mov rdi, rax
je 0x40eb50
cmp rax, 2
je 0x40eb74
cmp qword [rsp + 0xf8], 0
setne r15b
cmp rax, 0xffffffffffffffff
sete al
test al, r15b
jne 0x40eae1
cmp rdi, 0xffffffffffffffff
je 0x40eaf1
mov qword [rsi], 0
xor ecx, ecx
jmp 0x40ea6b
test eax, eax
mov r8d, dword [rsp + 0x50]
je 0x40eaac
mov rcx, r8
add rcx, qword [rsi]
cmp r12, rcx
mov qword [rsi], rcx
sete dl
test r8, r8
sete al
or al, dl
jne 0x40eba0
cmp rbx, rcx
jbe 0x40eb10
mov r8d, ebx
mov rdx, rcx
mov r9, r14
add rdx, qword [rbp]
mov qword [rsp + 0x20], 0
sub r8d, ecx
mov rcx, rdi
call r13
test eax, eax
jne 0x40ea45
test r15b, r15b
je 0x40ea45
call qword [sym.imp.kernel32.dll_GetLastError]
mov rsi, qword [rsp + 0xf8]
mov dword [rsi], eax
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rbp]
mov rdx, qword [rax]
call fcn.0040e7f0
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
xor edx, edx
mov eax, edx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov rdi, qword [rsp + 0xf8]
mov dword [rdi], eax
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rbp]
mov rdx, qword [rax]
call fcn.0040e7f0
xor edx, edx
jmp 0x40eacb
add rbx, rbx
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
cmp r12, rbx
cmovbe rbx, r12
jmp 0x40e984
lea rcx, [rsp + 0x50]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov ebx, dword [rsp + 0x54]
mov qword [0x007290f8], rbx
jmp 0x40e971
lea r8, str.__res_____fd_t_1_____fd_t_1_____fd_t__1_______0_
xor r9d, r9d
mov edx, 0x2564
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
call fcn.00406990
lea r8, str.__res_____fd_t_2_____fd_t_2_____fd_t__1_______0_
xor r9d, r9d
mov edx, 0x2565
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
call fcn.00406990
nop dword [rax + rax]
mov byte [rsp + 0x4f], al
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
movzx edx, byte [rsp + 0x4f]
jmp 0x40eacb
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rsp + 0x20], 0
lea r8, str.allocate
mov rcx, rbx
lea rdx, str.ReadFileToBuffer
mov r9d, eax
call fcn.0040d4f0
nop
nop
Function at 0x4598c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x459a66
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree_1]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00475a40
xorps xmm15, xmm15
mov r14, qword [0x00724050]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x45992b
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x459940
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
nop
test rbx, rbx
jbe 0x459965
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x459979
cmp rbx, 0x1000
jae 0x459935
nop dword [rax]
jmp 0x4599e9
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x45998d
xor edx, edx
jmp 0x4599e0
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree_1]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00475a40
xorps xmm15, xmm15
mov r14, qword [0x00724050]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop dword [rax]
test dl, dl
jne 0x45996f
jmp 0x459954
call fcn.004a77e0
xorps xmm15, xmm15
mov r14, qword [0x00724050]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.0047a020
lea rax, [0x00538002]
mov ebx, 0x18
call fcn.0047a920
mov rax, qword [rsp + 0x38]
call fcn.0047a620
lea rax, [0x005380c2]
mov ebx, 0x19
call fcn.0047a920
mov rax, qword [rsp + 0x30]
nop
call fcn.0047a620
call fcn.0047a280
call fcn.0047a0a0
lea rax, [0x0053a362]
mov ebx, 0x21
nop dword [rax + rax]
call fcn.004786e0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004a3580
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.004598c0