joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005fc70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
je 0x14005fccb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14005fccb
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x14005fce6
cmp eax, 0x42
jne 0x14005fccb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14005fd9a
cmp byte [r8 + r11], 0x5f
jne 0x14005fd9a
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14005fe0e
mov rcx, rsi
xor edx, edx
call fcn.14005ea60
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14005ea60
test al, al
jne 0x14005fea8
mov r8, qword [rsi + 0x20]
test r8, r8
je 0x14005fd21
lea rcx, [0x1401ec76e]
mov edx, 1
call fcn.140068050
test al, al
jne 0x14005fea8
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14005fcda
xor r14d, r14d
lea rbx, [0x1401ec758]
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14005fd59
test rax, rax
je 0x14005fd59
cmp byte [rax + rcx], 0x45
je 0x14005fed1
sub r14, 1
jb 0x14005fd7d
mov r8, qword [rsi + 0x20]
test r8, r8
je 0x14005fd7d
mov edx, 2
mov rcx, rbx
call fcn.140068050
test al, al
jne 0x14005fea8
mov rcx, rsi
call fcn.14005f190
test al, al
jne 0x14005fea8
mov rax, qword [rsi]
test rax, rax
jne 0x14005fd40
jmp 0x14005fcda
xor eax, eax
mov edi, 0x3e
nop word cs:[rax + rax]
mov r9b, 1
cmp r11, r10
jae 0x14005fe6f
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x14005fe02
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14005fdec
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14005fddb
add dl, 0xa9
jmp 0x14005fdea
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14005fe6f
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14005fe6f
movzx edx, bl
add rax, rdx
jae 0x14005fdb0
jmp 0x14005fe6f
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14005fe6f
cmp rax, rcx
jae 0x14005fe6c
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14005feb0
cmp qword [rsi + 0x20], 0
je 0x14005feca
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14005fc70
mov edi, eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
cmp al, 2
jne 0x14005fcda
jmp 0x14005fea8
mov r9b, 1
xor edi, edi
mov r8, qword [rsi + 0x20]
test r8, r8
je 0x14005febf
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rcx, [0x1401ec718]
test r9b, r9b
cmovne rcx, rax
xor r9b, 1
movzx eax, r9b
lea rdx, [rax + rax*8]
or rdx, 0x10
call fcn.140068050
test al, al
je 0x14005febf
mov dil, 2
jmp 0x14005fcda
mov dil, 1
xor r9d, r9d
mov r8, qword [rsi + 0x20]
test r8, r8
jne 0x14005fe7a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14005fcda
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14005fcda
Function at 0x140064fa0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140074890
mov rax, rcx
neg rcx
test rax, 7
je 0x1400748ad
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140074908
test al, 7
jne 0x1400748a0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400748c1
mov rdx, qword [rax - 8]
test dl, dl
je 0x140074932
test dh, dh
je 0x14007492c
shr rdx, 0x10
test dl, dl
je 0x140074926
test dh, dh
je 0x140074920
shr rdx, 0x10
test dl, dl
je 0x14007491a
test dh, dh
je 0x140074914
shr edx, 0x10
test dl, dl
je 0x14007490e
test dh, dh
jne 0x1400748c1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x14006b430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14006b4aa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14006b4a0
cmp r10, r11
jb 0x14006b542
cmp r10, rdx
ja 0x14006b556
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14006b4a2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14006b480
jmp 0x14006b516
ja 0x14006b4aa
mov r11, r10
cmp rax, r8
jne 0x14006b452
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x14006b51a
mov r9, qword [rsp + 0x78]
lea rdx, [r9 + rax]
cmp rax, 1
mov r8, r9
sbb r8, 0xffffffffffffffff
movzx ecx, cx
mov al, 1
movzx r10d, byte [r9]
test r10b, r10b
jns 0x14006b4f0
cmp r8, rdx
je 0x14006b528
movzx r9d, byte [r8]
inc r8
and r10d, 0x7f
shl r10d, 8
or r10d, r9d
mov r9, r8
sub ecx, r10d
js 0x14006b51c
xor al, 1
xor r8d, r8d
cmp r9, rdx
setne r10b
test r9, r9
je 0x14006b51c
mov r8b, r10b
add r8, r9
cmp r9, rdx
jne 0x14006b4d0
jmp 0x14006b51c
xor eax, eax
jmp 0x14006b51c
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_srcunicodeprintable.rs
lea r8, [0x1401f18f8]
mov edx, 0x2b
call fcn.140081130
ud2
lea r8, [0x1401f1910]
mov rcx, r11
mov rdx, r10
call fcn.140081640
ud2
lea r8, [0x1401f1910]
mov rcx, r10
call fcn.1400815c0
ud2
Function at 0x140070e14
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140070e5e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140070e5e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140070e5e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140070e5e
cmp dword [rcx + 0x84], 0xe
jbe 0x140070e5e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140070e60
xor al, al
add rsp, 0x28
ret

Function at 0x140075654
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140075450
Function at 0x14007871c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14007874c
xor eax, eax
jmp 0x14007880f
mov rbp, rbx
cmp word [rax], si
je 0x140078771
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140078758
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140078754
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14007863c
movsxd r14, eax
test eax, eax
jne 0x1400787af
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x140078745
mov rcx, r14
call fcn.1400795f8
mov rdi, rax
test rax, rax
jne 0x1400787c8
xor ecx, ecx
call fcn.140076c9c
jmp 0x1400787a4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14007863c
test eax, eax
jne 0x1400787f9
mov rcx, rdi
call fcn.140076c9c
jmp 0x140078803
xor ecx, ecx
call fcn.140076c9c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14007bd00
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14007770c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14007bd8a
cmp byte [rbp - 0x21], r15b
je 0x14007bd85
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14007bdc0
call fcn.140079e08
test eax, eax
jne 0x14007bdac
cmp byte [rbp - 0x21], r15b
je 0x14007bda4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14007bdc0
cmp byte [rbp - 0x21], r15b
je 0x14007bdbd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140076cec
test eax, eax
jne 0x14007be60
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14007770c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14007bdff
cmp byte [rbp - 0x21], r15b
je 0x14007be34
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14007be34
call fcn.140079e08
test eax, eax
jne 0x14007be20
cmp byte [rbp - 0x21], r15b
je 0x14007be19
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14007be34
cmp byte [rbp - 0x21], r15b
je 0x14007be31
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140076cec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14007be60
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14007be63
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14007be71
mov rcx, rdi
call fcn.140076c9c
cmp byte [rbp + 0x3f], r15b
je 0x14007be80
mov rcx, qword [rbp + 0x27]
call fcn.140076c9c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14007ed60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14007ed88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14007ed88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x6f143fee
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rax, [0x6f159200]
lea rdi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
mov ebx, 3
mov r15, qword [rdx]
mov rbp, qword [rdx + 8]
test r8b, r8b
lea r13, [rsp + 0x30]
mov r14, rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
cmovne rdi, rax
mov rcx, r13
lea rax, [r15*4]
cqo
xor r12d, r12d
xor esi, esi
idiv rbx
lea rdx, [rax + 6]
call fcn.6f143f9d
mov rax, r15
cqo
idiv rbx
sub r15, rdx
cmp rsi, r15
jne 0x6f144076
cmp rdx, 1
jne 0x6f144112
jmp 0x6f144184
movzx ebx, byte [rbp + rsi + 9]
movzx eax, byte [rbp + rsi + 8]
mov rcx, r13
mov qword [rsp + 0x28], rdx
shl eax, 0x10
shl ebx, 8
or ebx, eax
movzx eax, byte [rbp + rsi + 0xa]
add rsi, 3
or ebx, eax
call fcn.6f143876
mov eax, ebx
shr eax, 0x12
mov cl, byte [rdi + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + r12 + 8], cl
mov rcx, r13
call fcn.6f143876
mov eax, ebx
shr eax, 0xc
and eax, 0x3f
mov cl, byte [rdi + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + r12 + 9], cl
mov rcx, r13
call fcn.6f143876
mov eax, ebx
and ebx, 0x3f
shr eax, 6
and eax, 0x3f
mov cl, byte [rdi + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + r12 + 0xa], cl
mov rcx, r13
call fcn.6f143876
mov cl, byte [rdi + rbx]
mov rax, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
mov byte [rax + r12 + 0xb], cl
add r12, 4
jmp 0x6f144062
cmp rdx, 2
jne 0x6f1441eb
movzx ebx, byte [rsi + rbp + 8]
mov rcx, r13
mov eax, ebx
movzx ebx, byte [rsi + rbp + 9]
shl eax, 0x10
shl ebx, 8
or ebx, eax
call fcn.6f143876
mov eax, ebx
mov rcx, r13
shr eax, 0x12
mov dl, byte [rdi + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + r12 + 8], dl
call fcn.6f143876
mov eax, ebx
shr ebx, 6
mov rcx, r13
shr eax, 0xc
and ebx, 0x3c
and eax, 0x3f
mov dl, byte [rdi + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + r12 + 9], dl
call fcn.6f143876
mov dl, byte [rdi + rbx]
mov rax, qword [rsp + 0x38]
mov byte [rax + r12 + 0xa], dl
jmp 0x6f1441d4
movzx ebx, byte [rsi + rbp + 8]
mov rcx, r13
call fcn.6f143876
mov rcx, r13
shl ebx, 0x10
mov eax, ebx
shr ebx, 0xc
shr eax, 0x12
and ebx, 0x30
mov dl, byte [rdi + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + r12 + 8], dl
call fcn.6f143876
mov rax, qword [rsp + 0x38]
mov dl, byte [rdi + rbx]
mov rcx, r13
mov byte [rax + r12 + 9], dl
call fcn.6f143876
mov rax, qword [rsp + 0x38]
mov byte [rax + r12 + 0xa], 0x3d
mov rcx, r13
call fcn.6f143876
mov rax, qword [rsp + 0x38]
mov byte [rax + r12 + 0xb], 0x3d
add r12, 4
mov rdx, r12
mov rcx, r13
call fcn.6f143f9d
movups xmm0, xmmword [rsp + 0x30]
mov rax, r14
movups xmmword [r14], xmm0
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x6f14f67d
Capabilities:
Write file on windows

Disassembly:
push r12
push rdi
sub rsp, 0x28
xor r8d, r8d
mov r12, rcx
mov r10, rdx
test rdx, rdx
je 0x6f14f6a4
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r10
mov r9, r12
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x28
pop rdi
pop r12
jmp 0x6f152ef0
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x6f150ed1
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, qword [fcn.6f1530c0]
xor ebx, ebx
mov rsi, rcx
mov rdi, rdx
lea r12, [rsp + 0x20]
mov ecx, 1
cmp rbx, rdi
jl 0x6f150f2e
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x6f159380]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp 0x6f152ef0
call rbp
xor r8d, r8d
mov rdx, r12
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movups xmmword [rsp + 0x20], xmm0
call fcn.6f150e1b
mov rax, qword [0x6f1599b0]
cmp byte [rax], 0
jne 0x6f150f5f
inc rbx
jmp 0x6f150eef
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x6f151e30
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.6f1530c0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.6f1530c0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x6f151ea0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x6f15d604]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x6f152048
mov rax, qword [0x6f15d608]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x6f151eec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x6f151f77
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x6f151ed0
mov rcx, r12
call fcn.6f152ba0
mov rbp, rax
test rax, rax
je 0x6f152082
mov rax, qword [0x6f15d608]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.6f152cd0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6f15d608]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6f152091
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x6f151f70
sub eax, 4
and eax, 0xfffffffb
jne 0x6f152000
add dword [0x6f15d604], 1
cmp ebx, 8
jae 0x6f151fa8
test bl, 4
jne 0x6f152050
test ebx, ebx
je 0x6f151f99
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x6f152070
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x6f151f99
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x6f151fda
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x6f15d608]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6f151f70
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.6f151e30
nop dword [rax]
xor edi, edi
jmp 0x6f151ef7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x6f151f99
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x6f151f99
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.6f151e30
mov rax, qword [0x6f15d608]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.6f151e30
nop
nop dword [rax]
Function at 0x6f152810
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6f15d8e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6f15d8c0]
test rbx, rbx
je 0x6f152864
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x6f15285b
test r12, r12
je 0x6f15285b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6f152840
lea rcx, [0x6f15d8e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x6f152ba0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x6f159900]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x6f152c19
mov rcx, r10
call fcn.6f152a70
test eax, eax
je 0x6f152c19
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x6f152c16
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x6f152c0d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x6f152c19
add r8, 0x28
cmp r8, r9
jne 0x6f152bf8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x4163e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41656b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x0077a108]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x416445
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x416454
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x416473
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x416483
cmp rbx, 0x1000
jae 0x41644b
jmp 0x4164ed
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x416495
xor edx, edx
jmp 0x4164e4
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x0077a108]
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]
test dl, dl
jne 0x416479
jmp 0x416468
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x0077a108]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x0054ffce]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x0055052f]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x00552e69]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS
Function at 0x4165a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4167c6
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x0077a108]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x416613
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x416622
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x416645
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x416655
cmp rbx, 0x1000
jae 0x416619
nop
jmp 0x4166d8
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x41666d
xor esi, esi
jmp 0x4166ca
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x0077a108]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x41664b
jmp 0x416636
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x0077a108]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x416760
nop dword [rax + rax]
call sym.runtime.printlock
lea rax, [0x00550548]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call sym.runtime.printuint
lea rax, [0x0055052f]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
call sym.runtime.printuint
nop
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x0054ca48]
mov ebx, 0xd
call sym.runtime.throw
nop dword [rax + rax]
cmp eax, 0x5af
je 0x416700
call sym.runtime.printlock
lea rax, [0x00550548]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x0055052f]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
nop dword [rax]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x0055255a]
mov ebx, 0x1f
nop dword [rax + rax]
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp sym.runtime.sysUsedOS