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

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x10
mov qword [rsp + 0x30], rbx
lea r13, [0x140000000]
mov qword [rsp + 0x38], rbp
mov rdi, rdx
mov qword [rsp + 0x40], rsi
mov rax, rcx
mov qword [rsp + 8], r14
xor r12d, r12d
mov qword [rsp], r15
test rdi, rdi
je 0x14000d770
cmp rax, rdi
jae 0x14000d8e8
movzx r8d, byte [rax]
test r8b, r8b
je 0x14000d8e8
xor ebx, ebx
mov ecx, r8d
shr rcx, 3
mov rdx, rdi
movsx r9, byte [rcx + r13 + 0x7b488]
test r9d, r9d
sete bl
add ebx, r9d
test rdi, rdi
jne 0x14000d7a6
movsxd rdx, ebx
add rdx, rax
xor esi, esi
lea rcx, [rax + 1]
cmp rax, rdx
cmovb esi, r8d
cmp rcx, rdx
jae 0x14000d7be
movzx r15d, byte [rcx]
jmp 0x14000d7c1
xor r15b, r15b
lea rcx, [rax + 2]
cmp rcx, rdx
jae 0x14000d7d0
movzx r14d, byte [rcx]
jmp 0x14000d7d3
xor r14b, r14b
lea rcx, [rax + 3]
cmp rcx, rdx
jae 0x14000d7e1
movzx ebp, byte [rcx]
jmp 0x14000d7e4
xor bpl, bpl
lea r10, [r9*4]
movzx ecx, sil
mov r9d, dword [r10 + r13 + 0x7b4a8]
and r9d, ecx
movzx r8d, r15b
shl r9d, 6
mov ecx, r8d
and ecx, 0x3f
movzx edx, r14b
or r9d, ecx
movzx r11d, bpl
shl r9d, 6
and r8d, 0xc0
mov ecx, edx
and edx, 0xc0
and ecx, 0x3f
or r9d, ecx
mov ecx, r11d
shr r11d, 2
and ecx, 0x3f
or r11d, edx
shl r9d, 6
shr r11d, 2
or r9d, ecx
mov ecx, dword [r10 + r13 + 0x7b4d8]
or r11d, r8d
shr r9d, cl
shr r11d, 2
mov edx, r9d
cmp r9d, dword [r10 + r13 + 0x7b4c0]
sbb ecx, ecx
and edx, 0xfffff800
and ecx, 0x40
xor r8d, r8d
or r11d, ecx
mov ecx, 0x80
cmp edx, 0xd800
cmove r8d, ecx
xor edx, edx
or r11d, r8d
mov ecx, 0x100
cmp r9d, 0xffff
cmova edx, ecx
mov ecx, dword [r10 + r13 + 0x7b4f0]
or r11d, edx
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x14000d8da
xor edx, edx
test bpl, bpl
setne dl
xor ecx, ecx
test r14b, r14b
setne cl
add edx, ecx
xor ecx, ecx
test r15b, r15b
setne cl
add edx, ecx
xor ecx, ecx
test sil, sil
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
mov ebx, edx
movsxd rcx, ebx
add rax, rcx
inc r12d
jmp 0x14000d762
mov r15, qword [rsp]
mov eax, r12d
mov r14, qword [rsp + 8]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x10
pop r13
pop r12
pop rdi
ret
Function at 0x14000d960
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x20], rsi
mov rsi, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp], rax
cmp rcx, rax
jae 0x14000db77
mov qword [r11 + 0x18], rbp
lea rbp, [0x140000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
nop
test rsi, rsi
je 0x14000d9be
cmp r8, rsi
jae 0x14000db54
movzx edx, byte [r8]
test dl, dl
je 0x14000db54
xor ebx, ebx
mov eax, edx
shr rax, 3
mov rcx, rsi
movsx r9, byte [rax + rbp + 0x7b488]
test r9d, r9d
sete bl
add ebx, r9d
test rsi, rsi
jne 0x14000d9f2
movsxd rcx, ebx
add rcx, r8
xor r14d, r14d
lea rax, [r8 + 1]
cmp r8, rcx
cmovb r14d, edx
cmp rax, rcx
jae 0x14000da0b
movzx r13d, byte [rax]
jmp 0x14000da0e
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x14000da1d
movzx r12d, byte [rax]
jmp 0x14000da20
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x14000da2f
movzx r15d, byte [rax]
jmp 0x14000da32
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov ebp, dword [r10 + rbp + 0x7b4a8]
and ebp, eax
movzx r9d, r13b
shl ebp, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or ebp, eax
movzx r11d, r15b
shl ebp, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or ebp, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl ebp, 6
or ebp, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x140000000]
mov ecx, dword [r10 + rax + 0x7b4d8]
shr r11d, 2
shr ebp, cl
mov ecx, 0x100
cmp ebp, dword [r10 + rax + 0x7b4c0]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, ebp
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp ebp, 0xffff
cmova eax, ecx
lea rcx, [0x140000000]
mov ecx, dword [r10 + rcx + 0x7b4f0]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x14000db36
test r15b, r15b
mov eax, r9d
mov ecx, r9d
mov ebp, 0xfffd
setne cl
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
mov eax, r9d
test r14b, r14b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
mov ebx, ecx
mov word [rdi], bp
add rdi, 2
movsxd rax, ebx
lea rbp, [0x140000000]
add r8, rax
cmp rdi, qword [rsp]
jb 0x14000d9b0
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov word [rdi], r9w
test rax, rax
je 0x14000db8d
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x14000f9a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5d40], 0
lea rbx, [rcx + 0x5d48]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14000fa47
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14000f9fa
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001e970
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14001e420
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5d40]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5d50]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1402a16d8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14000fa4f
mov rcx, rbx
call fcn.14001e420
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400188e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1402a16d0]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5ca4], ecx
test rbx, rbx
je 0x14001894f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.140018960
lea rdx, [0x14007c26c]
mov rcx, rbx
mov rdi, rax
call fcn.14000cfb0
mov rbx, rax
test rax, rax
je 0x14001894a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x14001cef0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
mov rbx, qword [0x1402a16d0]
cmp byte [rbx + 0x5ca1], 0
jne 0x14001d04c
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001d045
lea rdx, [0x14007c268]
mov qword [rsp + 0x40], rdi
call fcn.14000cfb0
mov rdi, rax
test rax, rax
je 0x14001d040
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14001d02d
xor edx, edx
mov r8d, 2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001d02d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x14001d02d
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001d02d
cmp rsi, 0xffffffffffffffff
je 0x14001d02d
mov rax, qword [0x1402a16d0]
test rax, rax
je 0x14001cfb7
inc dword [rax + 0x19c]
mov rdx, qword [0x1402a16e0]
mov rcx, rsi
call qword [section..data]
mov rbp, rax
test rax, rax
je 0x14001d02d
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x14001cff3
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14001d009
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14001d009
mov rdx, rsi
mov rcx, rbp
call fcn.14000f4d0
mov rax, qword [0x1402a16d0]
test rax, rax
je 0x14001d01b
dec dword [rax + 0x19c]
mov rdx, qword [0x1402a16e0]
mov rcx, rbp
call qword [0x14008e008]
jmp 0x14001d036
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov byte [rbx + 0x5ca1], 1
movss xmm0, dword [rbx + 0x5ca4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001d08f
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5ca4], xmm0
jb 0x14001d08f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001d07e
call fcn.1400188e0
jmp 0x14001d085
mov byte [rbx + 0x184], 1
mov dword [rbx + 0x5ca4], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400321f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1402a16d0]
mov rcx, qword [rax + 0x4bf0]
mov r10, qword [rax + 0x3f90]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x168]
movss xmm4, dword [rcx + 0x168]
movss xmm3, dword [rcx + 0x16c]
movss xmm2, dword [rcx + 0x170]
movss xmm1, dword [rcx + 0x174]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2a8]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x248], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2a8]
mov rcx, qword [rcx + 0x198]
add rsp, 0x38
jmp 0x1400270e0

Function at 0x1400322c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1402a16d0]
mov rcx, qword [rax + 0x4bf0]
mov r9, qword [rax + 0x3f90]
movups xmm0, xmmword [r9 + 0x248]
movups xmmword [rcx + 0x168], xmm0
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rcx + 0x148]
movss xmm4, dword [rcx + 0x148]
movss xmm3, dword [rcx + 0x14c]
movss xmm2, dword [rcx + 0x150]
movss xmm1, dword [rcx + 0x154]
movups xmmword [r9 + 0x248], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x21e]
mov rcx, qword [rcx + 0x198]
mov rdx, qword [r9 + 0x2a8]
add rsp, 0x38
jmp 0x1400270e0
Function at 0x140034ba0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1402a1240]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [rcx]
mov ebx, edx
test al, al
je 0x140034bd8
cmp al, 0x25
jne 0x140034bcd
cmp byte [rcx + 1], al
jne 0x140034bd8
inc rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x140034bc1
cmp byte [rcx], 0x25
jne 0x140034ca9
cmp byte [rcx + 1], 0x25
je 0x140034ca9
xorps xmm3, xmm3
mov r8, rcx
cvtss2sd xmm3, xmm2
mov edx, 0x40
lea rcx, [rsp + 0x30]
movq r9, xmm3
call fcn.14000d100
cmp byte [rsp + 0x30], 0x20
lea rcx, [rsp + 0x30]
jne 0x140034c1d
inc rcx
cmp byte [rcx], 0x20
je 0x140034c15
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x140034c97
movzx edx, byte [rcx]
movzx r8d, dl
cmp dl, 0x2d
jne 0x140034c36
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
xorps xmm1, xmm1
cmovne rax, rcx
cmp r8b, 0x2b
lea rcx, [rax + 1]
cmovne rcx, rax
movzx eax, byte [rcx]
cmp al, 0x30
jl 0x140034c86
movss xmm2, dword [0x14007c4a4]
nop dword [rax]
cmp al, 0x39
ja 0x140034c86
movsx eax, byte [rcx]
inc rcx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x140034c60
cmp dl, 0x2d
jne 0x140034ca4
xorps xmm1, xmmword [0x14007c590]
movaps xmm0, xmm1
jmp 0x140034cac
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x140034cac
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140075f70
add rsp, 0x80
pop rbx
ret

Function at 0x140034cd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1402a1240]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [rcx]
mov ebx, edx
test al, al
je 0x140034d08
cmp al, 0x25
jne 0x140034cfd
cmp byte [rcx + 1], al
jne 0x140034d08
inc rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x140034cf1
cmp byte [rcx], 0x25
jne 0x140034dcb
cmp byte [rcx + 1], 0x25
je 0x140034dcb
mov r8, rcx
movaps xmm3, xmm2
lea rcx, [rsp + 0x30]
movq r9, xmm2
mov edx, 0x40
call fcn.14000d100
cmp byte [rsp + 0x30], 0x20
lea rcx, [rsp + 0x30]
jne 0x140034d49
inc rcx
cmp byte [rcx], 0x20
je 0x140034d41
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x140034dbd
movzx edx, byte [rcx]
movzx r8d, dl
cmp dl, 0x2d
jne 0x140034d62
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
xorps xmm1, xmm1
cmovne rax, rcx
cmp r8b, 0x2b
lea rcx, [rax + 1]
cmovne rcx, rax
movzx eax, byte [rcx]
cmp al, 0x30
jl 0x140034dac
movsd xmm2, qword [0x140081300]
cmp al, 0x39
ja 0x140034dac
movsx eax, byte [rcx]
inc rcx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x140034d88
cmp dl, 0x2d
jne 0x140034dc6
xorps xmm1, xmmword [0x1400813e0]
movaps xmm0, xmm1
jmp 0x140034dce
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x140034dce
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140075f70
add rsp, 0x80
pop rbx
ret
Function at 0x14005f850
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x1402a1240]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, r9
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x50], rbx
xor r14d, r14d
mov rax, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x14005f8a0
mov rax, qword [rdx]
mov word [rsp + 0x33], 0x4c
mov word [rsp + 0x30], 0x554e
mov byte [rsp + 0x32], 0x4c
mov byte [rsp + 0x35], 0
mov rdx, rbx
cmp qword [r9 + 0x18], 0xf
jbe 0x14005f8c5
mov rdx, qword [r9]
mov rcx, rdi
cmp qword [r8 + 0x18], 0xf
jbe 0x14005f8d2
mov rcx, qword [r8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x64
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], r14
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14005f910
lea rdx, [rsp + 0x60]
mov rcx, rbp
call fcn.140049980
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x14005f962
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x14005f95d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005fa20
mov rcx, r8
call fcn.140075e54
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14005f9ab
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14005f9a6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005fa27
mov rcx, r8
call fcn.140075e54
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14005f9f0
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14005f9eb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005fa2e
mov rcx, r8
call fcn.140075e54
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rax, rbp
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140075f70
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140075c20
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
call fcn.14006d150
call fcn.14006d150
lea rcx, str.mode_con_cols85_lines17
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.color_1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x140082880]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.14006c450
xor eax, eax
add rsp, 0x28
ret

Function at 0x140076c00
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140076c4a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140076c4a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140076c4a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140076c4a
cmp dword [rcx + 0x84], 0xe
jbe 0x140076c4a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140076c4c
xor al, al
add rsp, 0x28
ret
Function at 0x408290
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [0x0076d0a8], 0
je 0x408348
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.00411030
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, qword [0x007220e0]
call fcn.00411030
mov rcx, rsi
mov rdx, qword [0x007220e0]
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, rbx
call fcn.00411030
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40835b
xor ecx, ecx
mov rdx, rbx
mov r8, rsi
mov r9d, 0x2010
call sub.user32.dll_MessageBoxA
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x40e380
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov ebx, edx
mov rax, qword [rbp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rbp + 0x28]
call fcn.0040e9d0
mov esi, eax
test sil, sil
jne 0x40e534
test ebx, ebx
je 0x40e534
xor edi, edi
test r13d, r13d
jle 0x40e461
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40e445
cmp ebx, 0xffffffff
je 0x40e3f3
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40e3f3
xor esi, esi
jmp 0x40e534
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40e445
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40e433
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40e433
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40e534
lea rcx, [rbp + 0x3c]
call fcn.0040df20
sub r13d, 1
test r13d, r13d
jg 0x40e3da
nop
cmp ebx, 0xffffffff
je 0x40e461
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40e45f
xor esi, esi
jmp 0x40e534
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40e39d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40e461
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040e5e0
xor ecx, ecx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x0076d9a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40e4c4
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jae 0x40e4c2
sub ebx, eax
jmp 0x40e4c4
xor ebx, ebx
test sil, sil
je 0x40e4f5
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40e4f2
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40e4c9
mov dil, 1
nop
jmp 0x40e512
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40e4f5
mov dil, 1
test dil, dil
je 0x40e484
nop
test sil, sil
je 0x40e534
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret
Function at 0x410250
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0076d0a8], 0
je 0x4102ea
cmp word [0x0076d3b8], 0xd7b2
jne 0x410283
cmp dword [0x0076d3c0], 0
jbe 0x410283
lea rcx, [0x0076d3b0]
call qword [0x0076d3d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x007249b4]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x00410320]
call fcn.00411680
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x41030b
cmp byte [0x0072205a], 0
jne 0x41030b
xor ecx, ecx
lea rdx, [0x007249b4]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x4105d0
Capabilities:
Create thread

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x38], rcx
mov ebx, edx
mov rsi, r8
mov rdi, r9
cmp qword [0x00722060], 0
je 0x410601
mov rcx, rsi
mov rdx, rdi
call qword [0x00722060]
mov r13, rax
jmp 0x410616
mov ecx, 0x10
call fcn.00409270
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x0076d0a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x00410560]
mov r9, r13
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread
mov rbx, rax
test rbx, rbx
jne 0x41065b
mov rcx, r13
call fcn.004092a0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x415a20
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00771f08]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00771f30], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00771f00], al
cmp byte [0x00771f00], 0
je 0x415abe
lea rcx, [0x00415ac4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00415ade]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00771ee8], rax
lea rcx, [0x00415ac4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00415afc]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00771ef0], rax
lea rcx, [0x00415ac4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00415b1a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00771ef8], rax
add rsp, 0x28
ret