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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14000df5b
mov rsi, rbx
cmp word [rax], bp
je 0x14000df1a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000df04
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000df00
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000a928
mov rdi, rax
test rax, rax
je 0x14000df48
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000bfb0
mov rbp, rdi
xor ecx, ecx
call fcn.140009990
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400126d8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400126ee
mov al, 1
jmp 0x14001274e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400126ff
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001274c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000e3cc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001274c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001274c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001274c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001274e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140015f04
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400259f0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140015f5b
cmp word [rdx], r13w
jne 0x140015f5b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140015f60
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140016085
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400160a6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140015f99
mov rdx, r9
mov word [rbx], cx
jmp 0x140015fc0
cmp r9, r8
jae 0x140015fd0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140015f7a
jmp 0x140016085
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001607a
cmp dword [rsp + 0x80], esi
je 0x14001607a
lea r8, [0x1400259f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140016052
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140016022
mov word [rbx], r13w
jmp 0x140016082
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001602f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140016082
cmp word [rsp + 0x70], r13w
jne 0x14001605f
cmp rbx, r14
je 0x14001601c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400153a0
cmp word [rsp + 0x70], r13w
je 0x140016085
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400259f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001607f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140016085
Function at 0x14001727c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400153a0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400153a0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400173cc
cmp rax, 0xffffffffffffffff
je 0x1400173cc
xor edi, edi
test rbp, rbp
jle 0x140017377
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000a7b8
mov rbx, rax
test rax, rax
jne 0x140017304
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14001736d
mov edx, 0x8000
mov ecx, r14d
call fcn.140007388
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14000fc10
cmp eax, 0xffffffff
je 0x14001734d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140017314
mov edx, r15d
mov ecx, r14d
call fcn.140007388
jmp 0x14001736d
cmp byte [rsi + 0x38], dil
je 0x140017364
cmp dword [rsi + 0x34], 5
jne 0x140017364
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14001736d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140009990
jmp 0x1400173e0
jns 0x1400173e0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400153a0
cmp rax, 0xffffffffffffffff
jne 0x140017398
cmp byte [rsi + 0x30], dil
je 0x1400173e0
mov edi, dword [rsi + 0x2c]
jmp 0x1400173e0
mov ecx, r14d
call fcn.14000e3cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400173e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400173e0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400173d9
mov eax, dword [rsi + 0x2c]
jmp 0x1400173de
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400153a0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400416e0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
sub rsp, 0xf8
mov r8, rdx
mov rdx, rcx
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0xa0], r8
mov eax, 0xffffffff
mov eax, eax
mov r9d, eax
lea rcx, [rsp + 0x58]
lea rax, [0x140071cf8]
mov qword [rsp + 0x20], rax
call fcn.140040d00
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.140040de0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x70]
call fcn.140040e00
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rdx
mov rdx, qword [rsp + 0x88]
mov eax, 1
xor ecx, ecx
cmp rdx, 0
cmove rax, rcx
cmp rax, 0
jne 0x14004178e
mov dword [rsp + 0x3c], 0
jmp 0x14004180b
mov rdx, qword [rsp + 0x88]
mov qword [rsp + 0x28], rdx
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0xa8], rdx
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xe8], rdx
mov qword [rsp + 0xf0], rax
mov r8d, eax
xor eax, eax
mov ecx, eax
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0xb8], eax
shr eax, 0x1e
cmp eax, 3
je 0x140041817
jmp 0x14004174d
mov eax, dword [rsp + 0x3c]
add rsp, 0xf8
ret
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xd8], rcx
mov qword [rsp + 0xe0], rax
mov edx, eax
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
mov byte [rsp + 0xbf], al
cmp al, 0
jne 0x14004174d
mov ecx, dword [rsp + 0x38]
xor ecx, 0x80000000
mov dword [rsp + 0xc0], ecx
call fcn.140040b90
mov ecx, eax
mov dword [rsp + 0xc4], ecx
call fcn.140041510
mov dword [rsp + 0x3c], eax
jmp 0x14004180b
Function at 0x1400487b0
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 0x140048850
jmp 0x14004883f
jae 0x14004891e
cmp r8, 0x201
jae 0x140048850
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x1400488b6
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14004888e
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14006b820
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 0x1400488df
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14004898a
mov r8d, r13d
cmp r12, r8
jne 0x140048830
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400489be
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14004883f
jmp 0x140048850
cmp r14, r8
jb 0x1400489d8
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14004aec0
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 0x140048973
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.14000f220
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 0x14004895e
jmp 0x140048973
lea rcx, [0x140072330]
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14006ca20
jmp 0x1400489ed
lea rax, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14006cd70
ud2
Function at 0x140049100
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
cmp byte [rcx], 0
je 0x140049115
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.140049130
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.140051c00

Function at 0x14004ea00
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.14006abf0
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, [0x140053ce0]
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.140053c00
mov r14, rdx
test rax, rax
jne 0x14004eb9c
test r14, r14
je 0x14004eb6c
cmp r14, 0x1000
ja 0x14004ec40
xor r13d, r13d
nop dword [rax + rax]
cmp r13, r14
ja 0x14004ec17
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 0x14004eb66
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r15
cmp dword [rbp + 0xff4], 1
jne 0x14004eb30
cmp dword [rbp + 0xff8], 0
jne 0x14004eb6c
mov eax, dword [rbp + 0xffc]
add r13, rax
cmp r13, r14
jne 0x14004ead0
jmp 0x14004ea7b
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 0x14004eb6c
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 0x14004ebdb
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 0x14004ebfb
mov r8, qword [rax + 0x10]
call fcn.14000f220
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp + 0xfe8]
call fcn.14000f220
jmp 0x14004eb6c
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
lea r8, str.std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r14
call fcn.14006cde0
jmp 0x14004ec69
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
lea r8, str.std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r14
call fcn.14006cd70
ud2
Function at 0x14004fba4
Capabilities:
Get number of processors

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rsi, rcx
cmp byte [rcx + 0x19], 0
je 0x14004fbce
mov byte [rbp + 0x2e], 3
jmp 0x14004fbf9
mov eax, dword [0x1400852b0]

Function at 0x140051c00
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x18]
call fcn.14005bb80
mov rax, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
mov rcx, rax
neg rcx
jo 0x140051c5b
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x30]
mov r8b, 1
call fcn.14005d170
mov rdi, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x40]
mov rax, rdi
neg rax
jno 0x140051c66
mov rax, rsi
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140051c92
test rdi, rdi
je 0x140051cbe
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14000f220
xor eax, eax
jmp 0x140051c5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x140051c5e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.14000f220
jmp 0x140051c5b
xor eax, eax
jmp 0x140051c5e
Function at 0x140052630
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 [0x140074198]
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 0x1400526bf
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0xc0000011
jne 0x1400526cc
xor edx, edx
xor eax, eax
jmp 0x1400526f6
cmp eax, 0x103
je 0x140052700
test eax, eax
js 0x1400526df
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x1400526f6
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.14004ab50
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.140043330
mov ecx, 7
int 0x29
ud2

Function at 0x140052750
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 [0x140074198]
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 0x1400527e6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x140052813
test eax, eax
js 0x1400527f2
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x140052809
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.14004ab50
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.140043330
mov ecx, 7
int 0x29
ud2
Function at 0x140052e00
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 0x140052e6c
mov word [rax + rdi*2], r14w
inc rdi
mov qword [rbp - 0x10], rdi
mov rdx, qword [rbx]
mov r14d, esi
test si, si
jne 0x140052f10
nop dword [rax + rax]
cmp rdx, r12
je 0x140052fcf
lea rcx, [rdx + 1]
mov qword [rbx], rcx
movzx r9d, byte [rdx]
movzx r14d, r9b
test r14b, r14b
jns 0x140052f3a
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 0x140052f30
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 0x140052f58
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 0x140052f3a
jmp 0x140052f68
mov word [rbx + 0x10], 0
xor esi, esi
cmp r14w, 0x22
je 0x140052f46
jmp 0x140052fa0
shl r8d, 6
or r8d, r10d
mov r14d, r8d
xor esi, esi
mov rdx, rcx
cmp r14w, 0x22
jne 0x140052fa0
xor r13b, 1
mov r14d, esi
test si, si
je 0x140052e80
jmp 0x140052f10
shl r8d, 0xc
or r14d, r8d
cmp r14d, 0xffff
jbe 0x140052f3a
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 0x140052f46
nop dword [rax]
movzx ecx, r14w
cmp ecx, 0x3b
jne 0x140052faf
test r13b, 1
je 0x140052fcb
cmp rdi, qword [rbp - 0x20]
jne 0x140052e60
lea rcx, [rbp - 0x20]
call fcn.140047a10
mov rax, qword [rbp - 0x18]
jmp 0x140052e60
mov byte [rbx + 0x18], 1
test rdi, rdi
setne al
or r15b, al
je 0x140053008
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x40]
mov r8, rdi
call fcn.14004aec0
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 0x140053022
jmp 0x140053034
movabs rax, 0x8000000000000000
mov rcx, qword [rbp - 8]
mov qword [rcx], rax
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x140053034
mov rcx, qword [rbp - 0x18]
add rdx, rdx
mov r8d, 2
call fcn.14000f220
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 0x140053c00
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, [0x140053ce0]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x140053c8f
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 0x140053c60
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 0x140053ca2
xor eax, eax
jmp 0x140053cd2
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 0x140053cc2
call fcn.14005b980
xor ecx, ecx
cmp al, 0xb
setne al
cmove rsi, rcx
jmp 0x140053cd2
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 0x140054170
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140054264
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
je 0x14005422a
sub r8, rdx
add rdx, qword [rbx + 8]
mov rax, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp r8, rcx
cmovae r8, rcx
mov dword [rbp - 0x28], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400541e5
mov eax, dword [rbp - 0x28]
mov ecx, 2
test rax, rax
jne 0x1400541fc
jmp 0x140054209
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140054209
cmp eax, 0x3e5
jne 0x14005421a
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x14005420d
mov byte [rsi + 1], 0
xor eax, eax
mov byte [rsi], al
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14005420f
test r8, r8
mov ecx, 0x10
mov eax, 1
cmove rax, rcx
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rbx
mov rdx, r8
mov r8, rax
call fcn.14006b820
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x1400541a1
mov qword [rbp - 0x28], 0
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.14006b793
int3