joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f238
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x140019200]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r8d, 0x40
lea rdx, [rsp + 0x20]
lea rcx, str._MSI_TEST
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
je 0x14000f2a0
movzx eax, word [rsp + 0x20]
lea rdx, [rsp + 0x22]
test eax, eax
je 0x14000f29e
mov ecx, dword [0x140019e8c]
and eax, 0x1f
bts ecx, eax
movzx eax, word [rdx]
lea rdx, [rdx + 2]
test eax, eax
jne 0x14000f287
mov dword [0x140019e8c], ecx
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400016e0
add rsp, 0xb8
ret

Function at 0x14000ff20
Capabilities:
Check if file exists

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 - 0x168]
sub rsp, 0x250
mov rax, qword [0x140019200]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov esi, 0x104
mov qword [r8], r15
mov r9d, esi
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14000ff93
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14000ff93
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x14000ff71
lea rax, [rdx - 2]
test r9, r9
lea r8, [0x140013e40]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov rdx, rsi
mov word [rax], r15w
call fcn.14000f7c0
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x1400100bc
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rax
mov dword [rsp + 0x20], r15d
call fcn.140007b40
mov ebx, eax
test eax, eax
jns 0x140010010
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xcf
call fcn.14000b3c4
jmp 0x1400100b0
lea r8, [0x140013e48]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14000f7c0
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14001009d
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140007b40
mov esi, eax
test eax, eax
jns 0x140010077
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd7
call fcn.14000b3c4
mov rcx, rbx
call fcn.140004350
mov ebx, esi
jmp 0x1400100b0
mov rcx, rbx
call fcn.140004350
movsxd rax, dword [rsp + 0x24]
movsxd rcx, dword [rsp + 0x20]
shl rcx, 0x1f
or rcx, rax
mov qword [r14], rcx
mov rcx, rdi
call fcn.140004350
jmp 0x1400100cd
mov rcx, qword [rbp + 0x168]
mov edx, 0xd5
call fcn.14000b3a4
mov ebx, eax
mov rcx, rdi
call fcn.140004350
mov eax, ebx
jmp 0x1400100e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x1400100d1
xor eax, eax
jmp 0x1400100e2
mov rcx, qword [rbp + 0x168]
mov edx, 0xc9
call fcn.14000b3a4
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400016e0
lea r11, [rsp + 0x250]
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 0x140011f40
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
cmp byte [0x14001a47c], bl
jne 0x140012003
cmp byte [0x14001a128], bl
je 0x140012003
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140012014
lea rdx, str.GetSystemWow64DirectoryW
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
jne 0x140011fb6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
xor edi, edi
jmp 0x140011fe0
movabs r10, 0x9351969e78d6d070
mov edx, 0x105
mov rcx, rdi
call qword [0x140013788]
mov edi, eax
test eax, eax
jne 0x140011fe2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, edi
jmp 0x140012014
mov edx, 0x105
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180025eb0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x180025ef2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x180025efa
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x180025f0b
jmp 0x180025f22
xor r10d, r10d
jmp 0x180025fad
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x180025f22
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x180025f39
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x180025f59
add r11, r8
jmp 0x180026089
mov rcx, qword [rax + 0x18]
xor rcx, rsi
mov rdi, qword [rax + 0x10]
mov r9, qword [rax]
add r9, rdi
mov r11, qword [rax + 8]
add r11, rcx
rol rdi, 0xd
xor rdi, r9
rol rcx, 0x10
rol r9, 0x20
xor rcx, r11
add r11, rdi
rol rdi, 0x11
add r9, rcx
xor rdi, r11
rol rcx, 0x15
mov qword [rax + 0x10], rdi
xor rcx, r9
rol r11, 0x20
mov qword [rax + 0x18], rcx
mov qword [rax + 8], r11
xor r9, rsi
mov qword [rax], r9
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x180026022
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
mov rbx, qword [rdx + r10]
xor rdi, rbx
add rcx, rsi
rol rsi, 0xd
add r9, rdi
xor rsi, rcx
rol rdi, 0x10
xor rdi, r9
rol rcx, 0x20
add r9, rsi
add rcx, rdi
rol rsi, 0x11
xor rsi, r9
rol rdi, 0x15
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x180025fd0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x18002603f
mov r9d, dword [rdx + r10]
mov r8d, 4
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jb 0x180026050
jmp 0x18002606b
xor r9d, r9d
xor r8d, r8d
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jae 0x18002606b
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8d, r11d
jae 0x180026085
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x18004d900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rcx
mov r12, qword [rsp + 0x90]
test r12, r12
sete al
mov r13, rdx
sub r13, r12
setbe cl
or cl, al
jne 0x18004d93d
cmp r12, r13
mov rbp, r13
cmovb rbp, r12
cmp rbp, r9
jbe 0x18004d94e
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, r8
lea r14, [r12 + r12*2]
shl r14, 4
add r14, rdi
lea r15, [rdx + rdx*2]
shl r15, 4
cmp r13, r12
mov rdx, rdi
cmovb rdx, r14
mov rax, rbp
shl rax, 4
lea rbx, [rax + rax*2]
mov rcx, r8
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
add rbx, rsi
cmp r13, r12
jae 0x18004da4e
add r15, rdi
add r15, 0xffffffffffffffd0
xor r12d, r12d
nop word [rax + rax]
lea rbp, [r14 - 0x30]
lea r13, [rbx - 0x30]
xor eax, eax
cmp rax, qword [rbx - 0x30]
mov rcx, r13
jo 0x18004d9f6
mov al, 1
cmp r12, qword [rbp]
mov rcx, rbp
jo 0x18004d9f6
mov rcx, qword [rbx - 0x28]
mov rax, qword [rbx - 0x20]
mov rdx, qword [r14 - 0x28]
mov r8, qword [r14 - 0x20]
mov rbx, rax
sub rbx, r8
cmovb r8, rax
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne rbx, rax
mov rax, rbx
shr rax, 0x3f
test rbx, rbx
mov rcx, r13
cmovs rcx, rbp
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmm2, xmmword [rcx + 0x20]
movups xmmword [r15 + 0x20], xmm2
movups xmmword [r15 + 0x10], xmm1
movups xmmword [r15], xmm0
movzx ecx, al
xor al, 1
movzx eax, al
lea rax, [rax + rax*2]
shl eax, 4
add rbp, rax
lea rax, [rcx + rcx*2]
shl eax, 4
add r13, rax
cmp rbp, rdi
je 0x18004da43
add r15, 0xffffffffffffffd0
mov rbx, r13
mov r14, rbp
cmp r13, rsi
jne 0x18004d9a0
mov rdi, rbp
mov rbx, r13
jmp 0x18004dafd
test rbp, rbp
je 0x18004dafd
add r15, rdi
nop word [rax + rax]
xor eax, eax
cmp rax, qword [r14]
jno 0x18004da70
mov cl, 1
mov rdx, rsi
jmp 0x18004dabb
xor ecx, ecx
cmp rcx, qword [rsi]
jno 0x18004da80
mov al, 1
mov rdx, r14
jmp 0x18004dabb
mov rcx, qword [r14 + 8]
mov rax, qword [r14 + 0x10]
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
mov r12, rax
sub r12, r8
cmovb r8, rax
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne r12, rax
mov rax, r12
shr rax, 0x3f
test r12, r12
setns cl
mov rdx, rsi
cmovs rdx, r14
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
movups xmmword [rdi + 0x20], xmm2
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
movzx ecx, cl
lea rcx, [rcx + rcx*2]
shl ecx, 4
add rsi, rcx
add rdi, 0x30
cmp rsi, rbx
je 0x18004dafd
movzx eax, al
lea rax, [rax + rax*2]
shl eax, 4
add r14, rax
cmp r14, r15
jne 0x18004da60
sub rbx, rsi
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp sub.VCRUNTIME140.dll_memcpy
Function at 0x1800a41e0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r14, r9
mov r15, r8
mov rbx, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call sub.kernel32.dll_GetSystemInfo
mov ecx, dword [rsp + 0x34]
test rcx, rcx
je 0x1800a44eb
mov rax, rbx
shr rax, 0x20
je 0x1800a4238
mov rax, rbx
xor edx, edx
div rcx
jmp 0x1800a423e
mov eax, ebx
xor edx, edx
div ecx
lea rdi, [rcx + rbx]
sub rdi, rdx
test rdx, rdx
cmove rdi, rbx
test rdi, rdi
cmove rdi, rcx
test r14, r14
je 0x1800a43d3
shl r14, 4
add r14, r15
xor ecx, ecx
lea r9, [0x18015968c]
lea r10, [0x180159670]
xor r8d, r8d
xor edx, edx
xor r12d, r12d
xor r11d, r11d
xor ebx, ebx
jmp 0x1800a4299
add r15, 0x10
mov r12b, 1
mov r8b, 1
nop dword [rax]
cmp r15, r14
je 0x1800a4407
mov r13, r15
lea r15, [r13 + 0x10]
mov ebp, dword [r13]
cmp ebp, 2
jne 0x1800a42ee
nop dword [rax]
cmp r15, r14
je 0x1800a4350
mov ebp, dword [r15]
cmp ebp, 2
jne 0x1800a42d0
add r15, 0x10
cmp r15, r14
jne 0x1800a42b9
jmp 0x1800a4350
mov r12d, ebp
movsxd r12, dword [r9 + r12*4]
add r12, r9
jmp r12
mov ebp, ebp
movsxd rbp, dword [r10 + rbp*4]
add rbp, r10
jmp rbp
mov r8b, 1
jmp 0x1800a4290
add r15, 0x10
mov r12b, 1
mov dl, 1
jmp 0x1800a4290
cmp r11, 1
sete r10b
test r8b, 1
je 0x1800a43ed
movzx r9d, dl
and r9d, 1
shl r9d, 5
add r9d, 0x20
test r10b, r10b
je 0x1800a4449
not dl
movzx ecx, dl
and ecx, 1
lea ebp, [rcx*2 + 0x22]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, r9d
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingW
mov r14, rax
call fcn.1800e21f0
test r14, r14
je 0x1800a4481
cmp eax, 0xb7
jne 0x1800a448a
mov dword [rsi + 8], 9
jmp 0x1800a44d0
xor ebx, ebx
xor r10d, r10d
xor edx, edx
xor ecx, ecx
or r10b, dl
mov r9d, 1
test r10b, 1
jne 0x1800a43fb
jmp 0x1800a4449
or dl, r10b
mov r9d, 0x10
test dl, 1
je 0x1800a4449
mov dword [rsi + 8], 7
jmp 0x1800a44d0
cmp r11, 1
sete r10b
test r12b, 1
jne 0x1800a4358
test r8b, 1
je 0x1800a43dc
movzx r8d, dl
and r8d, 1
lea r9d, [r8*2 + 2]
cmp r11, 1
jne 0x1800a4449
not dl
movzx ecx, dl
and ecx, 1
lea ebp, [rcx*2 + 2]
jmp 0x1800a438a
test rbx, rbx
je 0x1800a4457
mov dword [rsi + 8], 8
jmp 0x1800a44d0
mov rdx, rdi
mov r8d, 0x3000
call sub.kernel32.dll_VirtualAlloc
test rax, rax
je 0x1800a4473
mov qword [rsi], 1
jmp 0x1800a44b7
call fcn.1800e21f0
mov dword [rsi + 8], 0xa
jmp 0x1800a44cd
mov dword [rsi + 8], 0xb
jmp 0x1800a44cd
mov r8, rdi
shr r8, 0x20
mov qword [rsp + 0x20], 0
mov rcx, r14
mov edx, ebp
mov r9d, ebx
call sub.kernel32.dll_MapViewOfFile
test rax, rax
je 0x1800a44c1
mov qword [rsi], 0
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdi
jmp 0x1800a44d7
call fcn.1800e21f0
mov dword [rsi + 8], 0xc
mov dword [rsi + 0xc], eax
mov qword [rsi], 2
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fmmap_fixed_fixed_0.1.3_srclib.rs
call fcn.1801498f0
ud2
Function at 0x1800d88d0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x1800d8970
jmp 0x1800d895f
jae 0x1800d8a3e
cmp r8, 0x201
jae 0x1800d8970
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x1800d89d6
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x1800d89ae
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.1801481f0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x1800d89ff
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1800d8aaa
mov r8d, r13d
cmp r12, r8
jne 0x1800d8950
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1800d8ade
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1800d895f
jmp 0x1800d8970
cmp r14, r8
jb 0x1800d8af8
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.1800db650
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x1800d8a93
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.180056f90
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x1800d8a7e
jmp 0x1800d8a93
lea rcx, str.internal_error:_entered_unreachable_code_rustc_1e4f10ba6476e48a42a79b9f846a2d9366525b9elibrary_alloc_src_vecmod.rs
lea r8, str.std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.1801492b0
jmp 0x1800d8b0d
lea rax, str.std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.1801496c0
ud2
Function at 0x1800e1fb0
Capabilities:
Read 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 [0x18017ba20]
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_NtReadFile]
cmp eax, 0x103
jne 0x1800e203f
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0xc0000011
jne 0x1800e204c
xor edx, edx
xor eax, eax
jmp 0x1800e2076
cmp eax, 0x103
je 0x1800e2080
test eax, eax
js 0x1800e205f
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x1800e2076
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.1800db1e0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.1800d5d80
mov ecx, 7
int 0x29
ud2

Function at 0x1800e20d0
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 [0x18017ba20]
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 0x1800e2166
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x1800e2193
test eax, eax
js 0x1800e2172
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x1800e2189
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.1800db1e0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.1800d5d80
mov ecx, 7
int 0x29
ud2
Function at 0x1800e3610
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, 0x28
lea rbp, [rsp + 0x20]
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x1800e367c
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x1800e367c
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x1800e367c
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x1800e3728
cmp byte [rdx], 0xed
jne 0x1800e3731
movzx r12d, byte [rdx + 1]
mov r8d, r12d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x1800e3731
movzx r13d, byte [rdx + 2]
cmp rbx, 3
jb 0x1800e36c1
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
and r13d, 0x3f
shl r12d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
sub rax, rbx
cmp rax, r8
jb 0x1800e381b
add rdx, 3
mov r15, rdx
and r12d, 0x3c0
or r14d, r13d
or r14d, r12d
add r14d, 0x10000
mov rcx, rsi
mov edx, r14d
call fcn.1800df070
add rdi, 0xfffffffffffffffd
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
sub rax, rbx
cmp rax, rdi
jb 0x1800e3840
mov rcx, qword [rsi + 8]
add rcx, rbx
mov rdx, r15
jmp 0x1800e37ce
test rdi, rdi
je 0x1800e37c0
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x1800e3758
add r9, 2
cmp r8, rax
cmovne r8, r9
nop word cs:[rax + rax]
mov r9, r8
cmp r8, rax
je 0x1800e37c0
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x1800e3750
cmp r10b, 0xe0
jb 0x1800e373a
cmp r10b, 0xed
jne 0x1800e378f
cmp r8, rax
je 0x1800e37c0
lea r8, [r9 + 2]
cmp r8, rax
je 0x1800e37c0
cmp byte [r9 + 1], 0x9f
ja 0x1800e37bc
add r9, 3
mov r8, r9
jmp 0x1800e3750
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x1800e3750
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x1800e3750
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x1800e37ee
add rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.1801481f0
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x1800e37cb
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r15, rdx
mov rdx, rbx
call fcn.1801481f0
mov rdx, r15
jmp 0x1800e36dc
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.1801481f0
mov rbx, qword [rsi + 0x10]
jmp 0x1800e3719
Function at 0x1800fa370
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x1801b0dcc]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x1800fa3b7
mov rax, qword [0x1801b0dc0]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800fa3c4
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x1800fa3a0
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x1800fa3b7
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.1800fa5d0
mov edi, eax
test eax, eax
jne 0x1800fa4af
mov r9d, dword [0x1801b0dcc]
cmp ebx, r9d
jae 0x1800fa43c
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1801b0dc0]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x1800fa435
mov edx, esi
mov ecx, ebx
call fcn.1800fa4c0
mov edi, eax
test eax, eax
jne 0x1800fa43c
mov r9d, dword [0x1801b0dcc]
inc ebx
cmp ebx, r9d
jb 0x1800fa400
cmp qword [rsp + 0x20], 0
je 0x1800fa4ad
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800fa499
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.kernel32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800fa48a
mov rcx, rax
call qword [sym.imp.kernel32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1800fa460
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1801b0598]
call qword [sym.imp.kernel32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x1800fa4c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1801b0dc0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1800fa524
mov eax, 0xa
jmp 0x1800fa5b7
test esi, esi
je 0x1800fa546
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800fa569
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800fa569
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800fa562
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800fa569
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.kernel32.dll_VirtualProtect]
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.kernel32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret