joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800eaf50
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10c8
call fcn.180108000
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1030], xmm6
mov qword [rbp + 0x1028], 0xfffffffffffffffe
mov rsi, rdx
mov qword [rbp + 0x1020], rcx
mov qword [rbp + 0xfd8], rcx
mov qword [rbp + 0xfe0], rdx
lea rcx, [rbp - 0x50]
mov r8d, 0x1000
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea rbx, [0x1800f0610]
lea r12, [rbp + 0xfb0]
mov rdi, qword [sym.imp.kernel32.dll_WriteFileEx]
mov r15, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
mov r8d, 0x1000
lea rcx, [rbp + 0xfd8]
lea rdx, [rbp - 0x50]
call fcn.1800f0530
mov r14, rdx
test rax, rax
jne 0x1800eb0ec
test r14, r14
je 0x1800eb0bc
cmp r14, 0x1000
ja 0x1800eb190
xor r13d, r13d
nop dword [rax + rax]
cmp r13, r14
ja 0x1800eb167
mov r8d, r14d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xff4], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea rax, [rbp + 0xff4]
mov qword [rbp + 0xfc8], rax
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov r9, r12
call rdi
test eax, eax
je 0x1800eb0b6
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r15
cmp dword [rbp + 0xff4], 1
jne 0x1800eb080
cmp dword [rbp + 0xff8], 0
jne 0x1800eb0bc
mov eax, dword [rbp + 0xffc]
add r13, rax
cmp r13, r14
jne 0x1800eb020
jmp 0x1800eafcb
call qword [sym.imp.kernel32.dll_GetLastError]
mov rdi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1020]
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1030]
add rsp, 0x10c8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, r14d
and eax, 3
cmp eax, 1
jne 0x1800eb0bc
mov rax, r14
dec rax
mov qword [rbp + 0xfe8], rax
mov rax, qword [r14 - 1]
mov qword [rbp + 0x1000], rax
mov rax, qword [r14 + 7]
mov qword [rbp + 0x1008], rax
mov rax, qword [rax]
test rax, rax
je 0x1800eb12b
mov rcx, qword [rbp + 0x1000]
call rax
mov rcx, qword [rbp + 0x1000]
mov rax, qword [rbp + 0x1008]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1800eb14b
mov r8, qword [rax + 0x10]
call fcn.1800098b0
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp + 0xfe8]
call fcn.1800098b0
jmp 0x1800eb0bc
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r14
call fcn.18010edf0
jmp 0x1800eb1b9
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r14
call fcn.18010ed80
ud2
Function at 0x1800ef030
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x1801ab330]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1800ef0c6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x1800ef0f3
test eax, eax
js 0x1800ef0d2
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x1800ef0e9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.1800e76a0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.1800e0040
mov ecx, 7
int 0x29
ud2
Function at 0x1800ef6f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, rdx
mov qword [rbp - 8], rcx
movzx r15d, byte [rdx + 0x18]
mov byte [rdx + 0x18], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 2
mov qword [rbp - 0x10], 0
mov r12, qword [rdx + 8]
movzx esi, word [rdx + 0x10]
mov eax, 2
xor edi, edi
xor r13d, r13d
jmp 0x1800ef75c
mov word [rax + rdi*2], r14w
inc rdi
mov qword [rbp - 0x10], rdi
mov rdx, qword [rbx]
mov r14d, esi
test si, si
jne 0x1800ef800
nop dword [rax + rax]
cmp rdx, r12
je 0x1800ef8bf
lea rcx, [rdx + 1]
mov qword [rbx], rcx
movzx r9d, byte [rdx]
movzx r14d, r9b
test r14b, r14b
jns 0x1800ef82a
mov r8d, r14d
and r8d, 0x1f
lea rcx, [rdx + 2]
mov qword [rbx], rcx
movzx r10d, byte [rdx + 1]
and r10d, 0x3f
cmp r14b, 0xdf
jbe 0x1800ef820
lea rcx, [rdx + 3]
mov qword [rbx], rcx
movzx r14d, byte [rdx + 2]
shl r10d, 6
and r14d, 0x3f
or r14d, r10d
cmp r9b, 0xf0
jb 0x1800ef848
lea rcx, [rdx + 4]
mov qword [rbx], rcx
movzx edx, byte [rdx + 3]
and r8d, 7
shl r8d, 0x12
shl r14d, 6
and edx, 0x3f
or edx, r14d
or edx, r8d
mov r14d, edx
cmp r14d, 0xffff
jbe 0x1800ef82a
jmp 0x1800ef858
mov word [rbx + 0x10], 0
xor esi, esi
cmp r14w, 0x22
je 0x1800ef836
jmp 0x1800ef890
shl r8d, 6
or r8d, r10d
mov r14d, r8d
xor esi, esi
mov rdx, rcx
cmp r14w, 0x22
jne 0x1800ef890
xor r13b, 1
mov r14d, esi
test si, si
je 0x1800ef770
jmp 0x1800ef800
shl r8d, 0xc
or r14d, r8d
cmp r14d, 0xffff
jbe 0x1800ef82a
lea r8d, [r14 + 0xff0000]
shr r8d, 0xa
or r8d, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov word [rbx + 0x10], r14w
mov rdx, rcx
mov esi, r14d
mov r14d, r8d
cmp r14w, 0x22
je 0x1800ef836
nop dword [rax]
movzx ecx, r14w
cmp ecx, 0x3b
jne 0x1800ef89f
test r13b, 1
je 0x1800ef8bb
cmp rdi, qword [rbp - 0x20]
jne 0x1800ef750
lea rcx, [rbp - 0x20]
call fcn.1800e43c0
mov rax, qword [rbp - 0x18]
jmp 0x1800ef750
mov byte [rbx + 0x18], 1
test rdi, rdi
setne al
or r15b, al
je 0x1800ef8f8
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x40]
mov r8, rdi
call fcn.1800e7c10
movups xmm0, xmmword [rbp - 0x40]
movups xmm1, xmmword [rbp - 0x30]
mov rax, qword [rbp - 8]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov rdx, qword [rbp - 0x20]
test rdx, rdx
jne 0x1800ef912
jmp 0x1800ef924
movabs rax, 0x8000000000000000
mov rcx, qword [rbp - 8]
mov qword [rcx], rax
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x1800ef924
mov rcx, qword [rbp - 0x18]
add rdx, rdx
mov r8d, 2
call fcn.1800098b0
mov rax, qword [rbp - 8]
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1800f0530
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rbp - 4], 0
xorps xmm0, xmm0
movaps xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
lea rax, [rbp - 4]
mov qword [rbp - 0x18], rax
mov rcx, qword [rcx]
lea rax, [0x1800f0610]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x1800f05bf
mov rsi, qword [sym.imp.kernel32.dll_SleepEx]
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call rsi
cmp dword [rbp - 4], 1
jne 0x1800f0590
mov eax, dword [rbp]
mov esi, dword [rbp + 4]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
test eax, eax
cmovne rsi, rcx
jne 0x1800f05d2
xor eax, eax
jmp 0x1800f0602
call qword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
mov eax, ecx
and eax, 3
shr rcx, 0x20
cmp eax, 2
jne 0x1800f05f2
call case.0x1800ea057.119
xor ecx, ecx
cmp al, 0xb
setne al
cmove rsi, rcx
jmp 0x1800f0602
cmp rcx, 0xb
setne al
xor edx, edx
cmp ecx, 0xb
cmove rsi, rdx
movzx eax, al
mov rdx, rsi
add rsp, 0x68
pop rsi
pop rbp
ret
Function at 0x180001670
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001698
xor eax, eax
lea r8, [0x1800015c0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x18003ca44
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1802b3070]
xor rax, rsp
mov qword [rsp + 0x18], rax
test rcx, rcx
je 0x18003cac1
cmp dword [0x1802e64d8], 0x9fb
jne 0x18003cabf
lea rdx, [rsp + 0x10]
mov qword [rsp + 8], rdx
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x10], rax
mov r8d, 2
mov dword [rsp], r8d
mov eax, dword [rdx]
add rdx, 4
mov qword [rsp + 8], rdx
mov ecx, eax
xor ecx, 0x2002b1
shl ecx, 9
xor eax, 0x59000000
shr eax, 0x17
or ecx, eax
sub ecx, 0x2c9f7970
mov dword [rdx - 4], ecx
sub r8d, 1
mov dword [rsp], r8d
jne 0x18003ca85
mov rax, qword [rsp + 0x10]
jmp 0x18003cac3
jmp 0x18003cac1
xor eax, eax
mov rcx, qword [rsp + 0x18]
xor rcx, rsp
call fcn.18019bcb0
add rsp, 0x28
ret
Function at 0x18003eafc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x1802b3070]
xor rax, rsp
mov qword [rsp + 0x90], rax
movss xmm6, dword [0x18029296c]
movss dword [rsp + 0x24], xmm6
mov rdx, qword [rcx]
cmp rdx, 2
jb 0x18003ed0b
mov ecx, 0x68
mov dword [rsp + 0x20], ecx
mov eax, dword [0x1802e64d8]
cmp eax, 0x9fb
jl 0x18003eb66
mov ecx, 0x28
jmp 0x18003eb86
cmp eax, 0x9f3
jl 0x18003eb74
mov ecx, 0x70
jmp 0x18003eb86
add eax, 0xfffff766
mov r8d, 0x40
cmp eax, 0x45
cmovbe ecx, r8d
mov dword [rsp + 0x20], ecx
movsxd rax, ecx
mov rcx, qword [rax + rdx]
test rcx, rcx
jne 0x18003eb9e
movaps xmm0, xmm6
jmp 0x18003ed0e
mov r14d, dword [rcx + 0x18]
mov rsi, qword [rcx + 0x10]
test rsi, rsi
jne 0x18003ebb3
movaps xmm0, xmm6
jmp 0x18003ed0e
xor edi, edi
movabs r15, 0x60fe62612198f29a
mov dword [rsp + 0x28], edi
cmp edi, r14d
jge 0x18003ed03
lea eax, [rdi*8]
movsxd rcx, eax
mov rdx, qword [rcx + rsi + 0x20]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
xor ecx, ecx
lea rax, [rdx - 0x1000]
movabs r8, 0x7ffffffeefff
cmp rax, r8
ja 0x18003ec05
mov rbx, rdx
mov qword [rsp + 0x30], rdx
mov rcx, rdx
test rcx, rcx
jne 0x18003ec0f
jmp 0x18003ecfc
lea rcx, [rsp + 0x30]
call fcn.18003e8b8
movsd xmm0, qword [rax]
movsd qword [rsp + 0x38], xmm0
mov eax, dword [rax + 8]
mov dword [rsp + 0x40], eax
mov rax, qword [rbx]
cmp byte [rsp + 0x38], 0
je 0x18003ecfc
movabs rcx, 0x8a00648373f1dd7b
mov qword [rsp + 0x50], rcx
movabs rcx, 0x8874aaa231783ec
mov qword [rsp + 0x58], rcx
movabs rcx, 0x88483e74388b5fa8
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], r15
movabs rcx, 0xe37407e6199eaf2b
mov qword [rsp + 0x70], rcx
movabs rcx, 0x66e83acb4640e680
mov qword [rsp + 0x78], rcx
movabs rcx, 0x88483e7438ef30e5
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], r15
movdqa xmm0, xmmword [rsp + 0x50]
pxor xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [rsp + 0x60]
pxor xmm1, xmmword [rsp + 0x80]
movdqa xmmword [rsp + 0x60], xmm1
lea rdx, [rsp + 0x50]
mov rcx, qword [rax + 0x10]
call fcn.18019e150
test rax, rax
je 0x18003ecfc
movss xmm0, dword [rsp + 0x3c]
comiss xmm0, dword [0x180292928]
jb 0x18003ed03
comiss xmm6, xmm0
jb 0x18003ed03
mulss xmm6, xmm0
movss dword [rsp + 0x24], xmm6
jmp 0x18003ed03
inc edi
jmp 0x18003ebbf
jmp 0x18003ed0b
movaps xmm0, xmm6
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.18019bcb0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
ret
Function at 0x180040504
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1802b3070]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r10, rcx
mov qword [rsp + 0x18], rcx
mov eax, dword [0x1802e64d8]
cmp eax, 0x9fb
jne 0x180040587
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x10], rdx
mov r8d, 2
mov dword [rsp], r8d
mov eax, dword [rdx]
add rdx, 4
mov qword [rsp + 0x10], rdx
mov ecx, eax
shl ecx, 0x1f
add ecx, 0x80000000
add eax, 0x3ea11ff
shr eax, 1
or ecx, eax
sub ecx, 0x49842854
xor ecx, 0xe6981334
mov dword [rdx - 4], ecx
sub r8d, 1
mov dword [rsp], r8d
jne 0x180040545
mov rax, qword [rsp + 0x20]
jmp 0x18004061a
cmp eax, 0x9f9
jne 0x1800405bd
xor r8d, r8d
mov dword [rsp + 4], r8d
cmp r8d, 8
jge 0x1800405b8
movsxd rcx, r8d
mov al, byte [rsp + rcx + 0x18]
add al, 0x6d
ror al, 1
ror al, 2
mov byte [rsp + rcx + 0x18], al
inc r8d
mov r10, qword [rsp + 0x18]
jmp 0x180040591
mov rax, r10
jmp 0x18004061a
cmp eax, 0x9f8
jne 0x180040616
xor r8d, r8d
mov dword [rsp + 8], r8d
mov r9d, r8d
mov dword [rsp + 0xc], r8d
cmp r9d, 4
jge 0x180040611
lea ecx, [r9*8]
mov rax, r10
shr rax, cl
mov dl, al
xor dl, 0x3d
shl dl, 4
xor al, 0x30
shr al, 4
or dl, al
xor dl, 0xd0
movzx eax, dl
shl eax, cl
or r8d, eax
mov dword [rsp + 8], r8d
inc r9d
mov dword [rsp + 0xc], r9d
jmp 0x1800405d4
mov eax, r8d
jmp 0x18004061a
jmp 0x180040618
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18019bcb0
add rsp, 0x38
ret

Function at 0x180043740
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1802b3070]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebx, ebx
cmp byte [0x1802e6390], bl
je 0x1800437b6
mov eax, dword [0x1802e64d8]
cmp eax, 0x9fb
jne 0x18004377a
call fcn.180043358
mov ecx, dword [rax]
call fcn.180043220
jmp 0x1800437bf
cmp eax, 0x9f9
jne 0x18004376c
call fcn.18004354c
movss xmm0, dword [rax]
movss dword [rsp + 0x20], xmm0
mov al, byte [rsp + rbx + 0x20]
lea ecx, [rax - 0x50]
shl al, 7
xor cl, 0x78
shr cl, 1
or cl, al
mov byte [rsp + rbx + 0x20], cl
inc rbx
cmp rbx, 4
jl 0x180043790
movss xmm0, dword [rsp + 0x20]
jmp 0x1800437bf
call fcn.18004354c
movss xmm0, dword [rax]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18019bcb0
add rsp, 0x30
pop rbx
ret
Function at 0x1800669e8
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1802b3070]
xor rax, rsp
mov qword [rsp + 0x18], rax
test rcx, rcx
je 0x180066a70
cmp dword [0x1802e64d8], 0x9fb
jne 0x180066a6e
lea rdx, [rsp + 0x10]
mov qword [rsp], rdx
mov r8d, 2
mov qword [rsp + 8], r8
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x10], rax
mov eax, dword [rdx]
add rdx, 4
mov qword [rsp], rdx
mov ecx, eax
shl ecx, 7
add ecx, 0x13e7e780
add eax, 0x8027cfcf
shr eax, 0x19
or ecx, eax
xor ecx, 0xb13b7cb5
rol ecx, 9
mov dword [rdx - 4], ecx
cmp r8d, 1
sete cl
dec r8d
mov qword [rsp + 8], r8
test cl, cl
je 0x180066a29
mov rax, qword [rsp + 0x10]
jmp 0x180066a72
jmp 0x180066a70
xor eax, eax
mov rcx, qword [rsp + 0x18]
xor rcx, rsp
call fcn.18019bcb0
add rsp, 0x28
ret

Function at 0x18006881c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1802b3070]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 0x5a4d
mov r14, r9
mov rbp, r8
cmp word [rdx], ax
jne 0x1800688c1
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1800688c1
movzx esi, word [rcx + 0x14]
xor r11d, r11d
movzx ebx, word [rcx + 6]
add rsi, rcx
test rbx, rbx
je 0x1800688c1
xor r8d, r8d
lea rcx, [rsi + 0x18]
test dword [rcx + 0x24], 0x20000
jne 0x1800688b2
mov rax, qword [rcx]
mov rdi, rbp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x30]
sub rdi, rax
mov byte [rsp + 0x38], 0
movzx r9d, byte [rax]
movzx r10d, byte [rax + rdi]
sub r9d, r10d
jne 0x1800688ad
inc rax
test r10d, r10d
jne 0x180068897
test r9d, r9d
je 0x1800688e5
inc r11d
inc r8
add rcx, 0x28
cmp r8, rbx
jl 0x180068876
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18019bcb0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
movsxd rax, r11d
mov r9, r14
lea rcx, [rax + rax*4]
mov ebx, dword [rsi + rcx*8 + 0x24]
mov r8d, dword [rsi + rcx*8 + 0x20]
add rbx, rdx
mov rdx, rbx
call fcn.180068724
cmp rax, 0xffffffffffffffff
je 0x1800688c1
add rax, rbx
jmp 0x1800688c3
Function at 0x180081808
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
test rax, rax
je 0x180081846
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPriorityClass]
add eax, 0xffffff80
test eax, 0xffffff7f
je 0x180081846
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r9d, dword [rcx + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x1800818bc
mov edx, dword [r9 + 0x18]
test edx, edx
je 0x1800818bc
mov esi, dword [r9 + 0x20]
dec edx
mov r11d, 0x5afad060
lea rcx, [rsi + rdx*4]
mov r10d, dword [rcx + r8]
add r10, r8
mov cl, byte [r10]
inc r10
test cl, cl
je 0x1800818b8
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [r10]
inc r10
test cl, cl
jne 0x180081898
cmp r11d, 0x8e120aa
je 0x1800818c1
test edx, edx
jne 0x18008187b
mov rax, qword [rax]
jmp 0x180081857
mov ecx, dword [r9 + 0x24]
add rcx, r8
movzx edx, word [rcx + rdx*2]
mov ecx, dword [r9 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
mov rcx, rbx
add rax, r8
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp rax
Function at 0x180081d74
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x180081dc7
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov rcx, rbx
call fcn.18007fd20
call fcn.180081808
call fcn.1800818f0
and qword [rsp + 0x28], 0
lea r8, [0x180080f9c]
and dword [rsp + 0x20], 0
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180081dc7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x180082174
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180082199
xor eax, eax
jmp 0x180082296
cmp qword [rcx + 0x68], 0
je 0x1800821aa
call fcn.180084514
jmp 0x180082296
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x1800821c1
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800821c3
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800821f8
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.18019e640
mov rax, qword [rsi + 0x50]
sub rbp, rbx
add r14, rbx
mov r8, rbp
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x180082290
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x180082233
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
mov rbx, r8
cmp r8, r15
jbe 0x18008226b
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.1801a819c
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x1800822a7
cmp rbp, r15
ja 0x180082241
mov r8, rbx
test rbx, rbx
je 0x180082290
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.1801a819c
mov r8, rbx
sub r8, rax
sub rdi, r8
mov rax, rdi
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
sub rdi, rbp
jmp 0x180082293
Function at 0x180082674
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1802b3070]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x1800826ad
xor eax, eax
jmp 0x1800827cf
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x1800826e7
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x1800826e7
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x1800827cf
cmp qword [rbx + 0x80], 0
je 0x1800827cd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180082722
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x180082745
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.1801a8530
cmp eax, edi
cmovne edi, esi
jmp 0x1800827cd
lea r8, [rbp - 0x40]
mov byte [rbp - 0x30], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp - 0x2f]
lea r8, [rbp - 8]
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x28]
mov qword [rsp + 0x28], r8
lea r8, [rbp - 0x38]
mov qword [rsp + 0x20], r8
lea r8, [rbp - 0x30]
call qword [rax + 0x38]
test eax, eax
je 0x180082793
sub eax, 1
je 0x180082793
cmp eax, 2
jne 0x1800827cd
movsx ecx, byte [rbp - 0x30]
jmp 0x18008272f
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x1800827bd
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call fcn.1801a7eb8
cmp r14, rax
jne 0x1800827cd
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x38], rax
mov eax, esi
jne 0x1800827cf
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18019bcb0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret