joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e580
Capabilities:
Hash data using murmur3

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x42e806
push rbp
mov rbp, rsp
sub rsp, 0x38
test byte [rax], al
mov rcx, qword [rax + 0x1268]
lea rsi, [rax + 0x1278]
sub rcx, rsi
shr rcx, 3
cmp rcx, 0x200
ja 0x42e7fa
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], rcx
mov qword [rax + 0x1268], 0
cmp byte [0x006d5310], 0
jne 0x42e5da
xor edx, edx
xor ebx, ebx
jmp 0x42e620
xor edx, edx
jmp 0x42e605
mov qword [rsp + 0x28], rdx
mov rcx, qword [rax + rdx*8 + 0x1278]
mov rax, rcx
call fcn.0041d8c0
mov rdx, qword [rsp + 0x28]
inc rdx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jl 0x42e5de
add rax, 0x1268
call fcn.0042e500
add rsp, 0x38
pop rbp
ret
inc rdx
nop
cmp rdx, rcx
jge 0x42e794
mov rsi, qword [rax + rdx*8 + 0x1278]
cmp rsi, 0x1000
jb 0x42e61b
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov rax, rsi
xor ebx, ebx
mov rcx, rbx
call fcn.00413240
test rax, rax
jne 0x42e66c
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x42e61b
mov rsi, qword [rbx + 0x50]
test byte [rsi], al
mov r8, rcx
shr r8, 3
movzx r9d, byte [rsi + r8]
and ecx, 7
mov r10d, 1
shl r10d, cl
nop
add rsi, r8
test r10b, r9b
je 0x42e6ac
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x42e61b
nop
lock or byte [rsi], r10b
mov rcx, qword [rbx + 0x18]
movabs rsi, 0x800000000000
lea r8, [rsi + rcx]
mov r9, r8
shr r8, 0x2a
nop
nop
nop
cmp r8, 0x40
jae 0x42e7ed
lea r10, [0x006a76f8]
mov r8, qword [r10 + r8*8]
test byte [r8], al
mov r10, rcx
shr r10, 0x10
and r10d, 0x3f
shr rcx, 0xd
and ecx, 7
mov r11d, 1
shl r11d, cl
shr r9, 0x16
and r9d, 0xfffff
mov r8, qword [r8 + r9*8]
test byte [r8], al
movzx r9d, byte [r8 + r10 + 0x11440]
lea r8, [r8 + r10]
lea r8, [r8 + 0x11440]
test r11b, r9b
jne 0x42e72f
lock or byte [r8], r11b
movzx r8d, byte [rbx + 0x6a]
test r8b, 1
je 0x42e765
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0x1250]
add r8, qword [rbx + 0x70]
mov qword [rax + 0x1250], r8
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x42e61b
mov r8, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp r8, rcx
jae 0x42e7e5
mov rbx, qword [rsp + 0x48]
mov qword [rbx + r8*8 + 0x1278], rax
inc r8
mov rax, rbx
mov rdx, qword [rsp + 0x28]
mov rbx, r8
jmp 0x42e61b
cmp rbx, 0x200
ja 0x42e7d4
lea rdx, [rax + 0x1278]
lea rsi, [rax + 0x1240]
mov rcx, rbx
mov edi, 0x200
mov rbx, rdx
mov rax, rsi
call fcn.00424180
mov rax, qword [rsp + 0x48]
add rax, 0x1268
call fcn.0042e500
add rsp, 0x38
pop rbp
ret
mov rcx, rbx
mov edx, 0x200
nop dword [rax]
call fcn.004613c0
mov rax, r8
call fcn.00461340
mov rax, r8
mov ecx, 0x40
call fcn.00461360
mov edx, 0x200
nop
call fcn.004613a0
nop
mov qword [rsp + 8], rax
call fcn.004665c0
mov rax, qword [rsp + 8]
jmp fcn.0042e580
Function at 0x443660
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4437c7
push rbp
mov rbp, rsp
sub rsp, 0x18
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x443672
cmp edx, ecx
jne 0x4437b5
nop word [rax + rax]
test rsi, rsi
jne 0x4437b5
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x4436d4
nop
call fcn.00463200
xorps xmm15, xmm15
mov r14, qword [0x006d5578]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.00443580
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov ebx, edx
sar edx, 0x1f
shr edx, 0x1b
add edx, ebx
mov esi, edx
and edx, 0xffffffe0
sub ebx, edx
test ebx, ebx
jl 0x4437b0
mov rdx, qword [0x00682448]
sar esi, 5
mov rax, rcx
mov ecx, ebx
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and edi, r8d
cmp rdx, rsi
jbe 0x4437a5
mov rcx, qword [0x00682440]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], edi
mov rcx, qword [0x00682f90]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x00682f90], rax
nop
mov edx, 1
lea rsi, [0x00682f98]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1228]
shr rdx, 0x3d
test dl, dl
jne 0x443793
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1228], rdx
add rsp, 0x18
pop rbp
ret
lea rax, [0x0053ee99]
mov ebx, 0x28
nop
call fcn.00434880
mov rax, rsi
mov rcx, rdx
call fcn.00461340
call fcn.00432f20
lea rax, [0x0053e22c]
mov ebx, 0x23
call fcn.00434880
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045f0a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00443660
Function at 0x44fa80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x44fbf7
movzx edx, byte [rax]
test edx, edx
jne 0x44fab4
nop dword [rax]
test r8b, r8b
jne 0x44fab4
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x44fac7
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x44fbb7
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x44fba5
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x44fb97
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x44fb1d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x44fb60
mov eax, 1
cmp rax, rbx
ja 0x44fb4b
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.00461400
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x44fb8f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x44fb53
mov rcx, r11
mov eax, r12d
jmp 0x44fb22
mov rcx, rbx
call fcn.00461340
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00461340
mov eax, r8d
mov rcx, rbx
call fcn.00461400
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x44fbed
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x44fbb0
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x44facd
mov eax, edx
mov rcx, rbx
call fcn.00461340
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00461340
nop
int3
Function at 0x457280
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45732f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x00457380]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045ef60
xorps xmm15, xmm15
mov r14, qword [0x006d5578]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045f0a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.00457280
Function at 0x460e80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x403c03
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00409fc0
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045f0a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x403be0
cmp byte [0x006d530a], 0
je 0x460e95
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45e0e0
jmp 0x403be0

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

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x006d5620]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x006d530a], 0
je 0x460ed5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x006d58e0]
aesenc xmm0, xmmword [0x006d58f0]
aesenc xmm0, xmmword [0x006d5900]
movq rax, xmm0
ret
jmp 0x40a1e0

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

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x006d5620]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x006d530a], 0
je 0x460f16
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x006d58e0]
aesenc xmm0, xmmword [0x006d58f0]
aesenc xmm0, xmmword [0x006d5900]
movq rax, xmm0
ret
jmp 0x40a240
Function at 0x488200
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x488336
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rax, qword [rsp + 0x58]
call fcn.004661e0
mov rcx, qword [rsp + 0x60]
mov qword [rsp], rcx
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 8], rdx
mov byte [rsp + 0x10], 0
nop
call fcn.00403b40
xorps xmm15, xmm15
mov r14, qword [0x006d5578]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
nop dword [rax]
jne 0x488316
mov rcx, qword [rsp + 0x68]
lea rdx, [rcx + 1]
mov qword [rsp + 0x30], rdx
lea rax, [0x00521380]
xor ebx, ebx
mov rcx, rdx
call fcn.00448780
mov rbx, qword [rsp + 0x68]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x60]
call fcn.00488bc0
mov qword [rsp + 0x28], rbx
lea rdx, [rbx + 1]
cmp rcx, rdx
jae 0x4882cd
mov rbx, rdx
mov edi, 1
lea rsi, [0x00521380]
nop dword [rax + rax]
call fcn.00448860
mov rdx, rbx
mov rbx, qword [rsp + 0x28]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x48], rax
lea rsi, [rax + rbx*2]
mov rax, rsi
call fcn.004626e0
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
mov word [rdx + rcx*2], 0
call fcn.00466220
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor edi, edi
xor esi, esi
add rsp, 0x50
pop rbp
ret
call fcn.00466220
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x005fde08]
lea rsi, [0x005fd720]
add rsp, 0x50
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045f0a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00488200
Function at 0x4cadd0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov r9d, dword [0x01172540]
test r9d, r9d
jle 0x4cae64
mov r10b, byte [rsi]
lea r8, [0x01172550]
xor ecx, ecx
mov rbx, r8
jmp 0x4cae10
add rcx, 1
add rbx, 0x807f
cmp rcx, r9
je 0x4cae64
imul rdx, rcx, 0x807f
cmp r10b, byte [rdx + r8]
jne 0x4cae00
mov edi, 1
mov edx, r10d
nop word cs:[rax + rax]
nop
test dl, dl
je 0x4cae46
movzx edx, byte [rsi + rdi]
lea rax, [rdi + 1]
cmp dl, byte [rbx + rdi]
mov rdi, rax
je 0x4cae30
jmp 0x4cae00
mov eax, ecx
imul rax, rax, 0x807f
lea rcx, [0x01172550]
add rax, rcx
add rax, 0x80
jmp 0x4caffd
movsxd r9, r9d
cmp r9d, 5
jae 0x4cb009
imul rax, r9, 0x807f
lea r14, [0x01172550]
lea rdx, [rax + r14]
add rdx, 0x80
mov rcx, rsi
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
add eax, 0xffffffff
cmp eax, 0x7ffd
ja 0x4caf24
mov r9, 0xffffffffffffffff
nop
cmp byte [rsi + r9 + 1], 0
lea r9, [r9 + 1]
jne 0x4caeb0
cmp r9, 0x80
jae 0x4cb02a
movsxd rbx, dword [0x01172540]
imul r15, rbx, 0x807f
lea rdx, [r14 + r15]
mov eax, 1
movzx ecx, byte [rsi + rax - 1]
test cl, cl
je 0x4caf2b
mov byte [rdx + rax - 1], cl
movzx ecx, byte [rsi + rax]
test cl, cl
je 0x4caf39
mov byte [rdx + rax], cl
add rax, 2
cmp rax, 0x81
jne 0x4caee0
lea rcx, [r15 + r14]
add rcx, 0x80
test cl, 0xf
jne 0x4cafea
mov eax, pe_nt_image_headers64
xor esi, esi
jmp 0x4cafaf
xor eax, eax
jmp 0x4caffd
lea rcx, [rax + rdx]
add rcx, 0xffffffffffffffff
add rax, 0xffffffffffffffff
jmp 0x4caf3d
lea rcx, [rdx + rax]
mov esi, pe_nt_image_headers64
sub rsi, rax
mov edi, ecx
or edi, esi
test dil, 0xf
je 0x4cafaf
cmp rax, 0x80
je 0x4cafea
mov edx, esi
and edx, 7
add rax, 0xffffffffffffff87
cmp rax, 7
jb 0x4caf99
and rsi, 0xfffffffffffffff8
nop
mov byte [rcx], 0
mov byte [rcx + 1], 0
mov byte [rcx + 2], 0
mov byte [rcx + 3], 0
mov byte [rcx + 4], 0
mov byte [rcx + 5], 0
mov byte [rcx + 6], 0
mov byte [rcx + 7], 0
add rcx, 8
add rsi, 0xfffffffffffffff8
jne 0x4caf70
test rdx, rdx
je 0x4cafea
xor eax, eax
mov byte [rcx + rax], 0
add rax, 1
cmp rdx, rax
jne 0x4cafa0
jmp 0x4cafea
and rsi, 0xfffffffffffffff8
lea rdi, [rcx + rsi]
cmp rdi, rcx
jbe 0x4cafea
add rsi, rax
add rsi, rdx
lea rdi, [rax + rdx]
add rdi, 0x10
cmp rsi, rdi
cmovbe rsi, rdi
not rax
sub rax, rdx
lea r8, [rax + rsi]
add r8, 0x10
and r8, 0xfffffffffffffff0
xor edx, edx
call sub.msvcrt.dll_memset
add ebx, 1
mov dword [0x01172540], ebx
lea rax, [r15 + r14]
add rax, 0x80
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov qword [rsp + 0x20], 5
lea rcx, str.gotsan.cpp
lea r8, str.__num_env_vars_______kEnvVariables__
mov edx, 0x2366
call fcn.004b9330
mov qword [rsp + 0x20], pe_nt_image_headers64
lea rcx, str.gotsan.cpp
lea r8, str.__internal_strlen_name________kMaxEnvNameLength__
mov edx, 0x236a
call fcn.004b9330
int3
Function at 0x4d15a0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x58
movabs rax, 0x10000000000
lea rsi, [rax + rcx*2]
and rsi, 0xfffffffffffffff0
add rdx, rcx
lea rdi, [rax + rdx*2]
and rdi, 0xfffffffffffffff0
mov rax, qword [0x01170498]
mov rcx, rax
test rax, rax
jne 0x4d1608
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x2c]
mov qword [0x01170498], rax
mov rcx, rax
test rax, rax
jne 0x4d1608
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x2c]
mov qword [0x01170498], rcx
xor eax, eax
cmp rsi, rdi
jae 0x4d1631
neg rax
and rax, rsi
neg rcx
and rdi, rcx
sub rdi, rax
je 0x4d1629
mov rcx, rsi
mov rdx, rdi
call fcn.004ced60
nop
add rsp, 0x58
pop rdi
pop rsi
ret
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__beg___end______0_
mov edx, 0x2304
xor r9d, r9d
call fcn.004b9330
int3

Function at 0x4d1db0
Capabilities:
Check if file exists
Create directory

Disassembly:
mov rdx, rcx
lea rcx, [0x00512520]
jmp fcn.004f4e60
Function at 0x4e5990
Capabilities:
Get system information on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, rdx
mov rsi, rcx
mov rdx, qword [0x00512518]
mov rcx, rax
call fcn.00502250
mov rdi, rax
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, rcx
sub rdx, rax
cmp rdx, rdi
jge 0x4e5a34
mov rdx, qword [0x01170498]
test rdx, rdx
jne 0x4e59e5
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x2c]
mov qword [0x01170498], rdx
mov rcx, rdi
call fcn.00502250
mov r14, rax
xor ecx, ecx
mov rdx, rax
mov r8d, 0x3000
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x4e5a71
mov qword [rsi + 8], rax
mov rcx, r14
add rcx, rax
mov qword [rsi], rcx
mov rbx, qword [0x01170488]
test rbx, rbx
je 0x4e5a34
mov rcx, rax
mov rdx, r14
call rbx
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
sub rcx, rax
cmp rcx, rdi
jl 0x4e5a4d
add rdi, rax
mov qword [rsi + 8], rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__allocated_end____allocated_current_____sptr_size______0_
mov edx, 0x19b8
xor r9d, r9d
call fcn.004b9330
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsp + 0x20], 0
lea rdx, str.Allocate
lea r8, str.allocate
mov rcx, r14
mov r9d, eax
call fcn.004e5be0
int3

Function at 0x4e5c60
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rsi, rcx
xor edi, edi
nop
cmp byte [rsi + rdi], 0
lea rdi, [rdi + 1]
jne 0x4e5c70
mov rbx, qword [0x00512520]
mov al, 1
xchg byte [rbx], al
test al, al
jne 0x4e5d0e
lea rcx, [0x00512520]
call fcn.004ef610
mov rcx, qword [0x00512528]
cmp rcx, 0xffffffffffffffff
je 0x4e5d3c
lea rax, [rcx - 1]
cmp rax, 1
ja 0x4e5cd0
xor eax, eax
cmp rcx, 1
sete al
or eax, 0xfffffff4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
test rax, rax
je 0x4e5cf7
add edi, 0xffffffff
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, rsi
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4e5d00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [rbx], 0
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
xor ebp, ebp
mov r14, qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x4e5d1c
add ebp, 1
cmp ebp, 0x63
ja 0x4e5d25
pause
jmp 0x4e5d2a
xor ecx, ecx
call r14
cmp byte [rbx], 0
jne 0x4e5d19
mov al, 1
xchg byte [rbx], al
test al, al
jne 0x4e5d19
jmp 0x4e5c8d
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__fd_____fd_t__1_______0_
mov edx, 0x24a7
xor r9d, r9d
call fcn.004b9330
int3
Function at 0x4ef320
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
je 0x4ef3d6
mov r14, r8
mov rsi, rdx
mov rax, qword [rsp + 0x80]
test rax, rax
lea rbx, [rsp + 0x2c]
cmovne rbx, rax
test r9, r9
lea rdi, [rsp + 0x30]
cmovne rdi, r9
mov dword [rbx], 0
mov qword [rdi], 0
lea rax, [rcx - 1]
cmp rax, 1
ja 0x4ef38c
xor eax, eax
cmp rcx, 1
sete al
or eax, 0xfffffff4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
test rax, rax
je 0x4ef3cc
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x28]
mov rdx, rsi
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test eax, eax
je 0x4ef3b5
mov eax, dword [rsp + 0x28]
mov qword [rdi], rax
jmp 0x4ef3bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
test esi, esi
setne al
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov dword [rbx], 6
xor eax, eax
jmp 0x4ef3c2
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__fd_____fd_t__1_______0_
mov edx, 0x24a7
xor r9d, r9d
call fcn.004b9330
int3

Function at 0x4ef520
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rcx]
mov al, 1
xchg byte [rdi], al
test al, al
jne 0x4ef5b9
mov rcx, rbx
call fcn.004ef610
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x4ef5e7
lea rax, [rcx - 1]
cmp rax, 1
ja 0x4ef57c
xor eax, eax
cmp rcx, 1
sete al
or eax, 0xfffffff4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
test rax, rax
je 0x4ef5a0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rdx, rsi
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4ef5a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [rdi], 0
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebp, ebp
mov r15, qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x4ef5c7
add ebp, 1
cmp ebp, 0x63
ja 0x4ef5d0
pause
jmp 0x4ef5d5
xor ecx, ecx
call r15
cmp byte [rdi], 0
jne 0x4ef5c4
mov al, 1
xchg byte [rdi], al
test al, al
jne 0x4ef5c4
jmp 0x4ef540
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__fd_____fd_t__1_______0_
mov edx, 0x24a7
xor r9d, r9d
call fcn.004b9330
int3
Function at 0x4f3850
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov ebx, r8d
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x01170498]
test rax, rax
jne 0x4f3888
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x4c]
mov qword [0x01170498], rax
cmp rax, 0x8001
mov ecx, 0x8000
cmovae rcx, rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x48]
lea r8, [rsp + 0x38]
lea r9, [rsp + 0x40]
mov rcx, r12
call fcn.004ec160
test al, al
je 0x4f3952
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x4f398b
mov r14, qword [rdi + 0x10]
mov r15, qword [rdi + 0x18]
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0
xor eax, eax
movabs rsi, 0x400100100002600
mov rcx, rbx
add rax, 1
movzx edx, byte [rcx + rax - 1]
cmp rdx, 0x3a
jbe 0x4f3923
jmp 0x4f392e
mov qword [rdi + 0x18], rax
add rax, 1
movzx edx, byte [rcx + rax - 1]
cmp rdx, 0x3a
ja 0x4f392e
bt rsi, rdx
jb 0x4f3910
test rdx, rdx
je 0x4f3970
mov rcx, rdi
mov rdx, r12
call fcn.004f2d00
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x18]
add rax, 1
movzx edx, byte [rcx + rax - 1]
cmp rdx, 0x3a
jbe 0x4f3923
jmp 0x4f392e
mov al, 1
test bl, bl
jne 0x4f399a
mov r8d, dword [rsp + 0x34]
lea rcx, str.Failed_to_read_options_from__s:_error__d_n
mov rdx, r12
call fcn.004cd040
xor eax, eax
jmp 0x4f399a
cmp dword [0x006d9804], 0
jg 0x4f3983
mov dword [0x006d9804], 1
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r15
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.004ced60
mov al, 1
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x4f4e10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
je 0x4f4e53
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rcx, rax
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4f4e53
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
add rsp, 0x38
pop rdi
pop rsi
ret