joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e2f4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r8d, dword [rsp + 0x78]
lea r9d, [rdx - 0x36]
mov edi, dword [rsp + 0x80]
lea ebp, [rdx - 0x1d1c]
mov esi, dword [rsp + 0x70]
mov r14d, r8d
mov r11d, edx
xor r14d, 0x1419
lea ebx, [r8 + 0x9ff]
add edi, 0xffffe8bc
lea eax, [rbx - 0xd2a]
xor r11d, 0xab4
xor esi, 0x2b5
mov r10, rcx
cmp r9d, eax
je 0x14000e37e
mov rax, qword [section..data]
lea rcx, [0x1404a5000]
sub r11d, 0x6e8
sub r9d, 0x37c
mov qword [rax + 0x90], rcx
lea eax, [r11 + 0xc5c]
cmp ebx, eax
je 0x14000e4cc
xor ebx, 0xed8
xor esi, 0x36
xor r15d, r15d
mov rax, qword [r10 + 0x90]
mov r8d, dword [r15 + rax]
add r15, 4
mov eax, dword [r10 + 0x138]
lea ecx, [rax - 0x10]
imul ecx, eax
mov dword [r10 + 0x138], ecx
mov rax, qword [section..data]
imul r8d, dword [rax + 0x34]
mov eax, dword [rax + 0xb4]
xor dword [r10 + 0x54], eax
movsxd rcx, dword [r10 + 0x74]
mov rax, qword [r10 + 0xd8]
mov edx, r8d
shr edx, 0x18
mov byte [rcx + rax], dl
mov edx, r8d
inc dword [r10 + 0x74]
mov eax, dword [r10 + 0xd0]
sub eax, 0x1218e
shr edx, 0x10
or dword [r10 + 0x70], eax
movsxd rcx, dword [r10 + 0x74]
mov rax, qword [0x1407920e8]
mov byte [rcx + rax], dl
mov edx, r8d
inc dword [r10 + 0x74]
mov eax, dword [0x140792148]
mov rcx, qword [section..data]
xor eax, 0x11
shr edx, 8
sub dword [rcx + 0x30], eax
mov eax, 0xa
sub eax, dword [r10 + 0x110]
sub eax, dword [r10 + 0x104]
add dword [0x1407920dc], eax
mov rax, qword [section..data]
movsxd rcx, dword [rax + 0x74]
mov rax, qword [rax + 0xd8]
mov byte [rcx + rax], dl
mov rax, qword [section..data]
inc dword [rax + 0x74]
movsxd rcx, dword [r10 + 0x74]
mov rax, qword [0x1407920e8]
mov byte [rcx + rax], r8b
inc dword [r10 + 0x74]
mov eax, dword [0x140792104]
mov ecx, dword [r10 + 0xd0]
add eax, 0xfffede72
add ecx, eax
mov dword [0x140792104], ecx
cmp r15, 0x2cf478
jl 0x14000e399
mov eax, dword [r10 + 0xc8]
cmp dword [r10 + 0x1c], eax
jbe 0x14000e4b4
mov dword [r10 + 0x34], 0x97115
jmp 0x14000e4cc
mov ecx, dword [r10 + 0xcc]
add ecx, 0x14d60
add ecx, dword [r10 + 0xc4]
add dword [r10 + 0x40], ecx
lea eax, [r11 + 0x359]
cmp r9d, eax
je 0x14000e4ff
xor edi, 0x10c0
lea r9d, [rsi - 0x246]
xor ebp, 0x1e18
lea edx, [rsi - 0x2a]
mov r8d, edi
mov dword [rsp + 0x20], ebp
mov rcx, r10
call fcn.14000bd54
jmp 0x14000e570
mov rax, qword [section..data]
mov ecx, dword [rax + 0x48]
xor ecx, dword [r10 + 0x20]
cmp dword [r10 + 0x3c], ecx
jbe 0x14000e570
mov r9d, dword [0x140792058]
mov eax, dword [0x1407920a8]
xor r9d, edi
mov ecx, dword [r10 + 0x110]
add r9d, 0x1f34
or ecx, dword [r10 + 0x104]
mov r8d, dword [r10 + 0xfc]
imul ecx, dword [r10 + 0x44]
xor r8d, r11d
imul eax, r14d
mov dword [rsp + 0x28], r9d
mov r9, r10
xor ebx, eax
mov eax, dword [0x140792070]
mov edx, ebx
or eax, edi
xor edx, edi
mov dword [rsp + 0x20], eax
and edx, dword [0x14079210c]
call fcn.140002070
mov rbp, qword [rsp + 0x58]
lea eax, [rbx + 0xc26]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140023dd5
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rbx, rcx
mov r12d, 0xffffffff
mov r13, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov rsi, qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test rdi, rdi
je 0x140023e4a
mov r14, rbx
cmp rdi, r12
mov r15d, 0xffffffff
cmovb r15, rdi
add rbx, r15
sub rdi, r15
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call r13
cmp eax, 0xbfffffff
jbe 0x140023dff
mov ebp, eax
mov rcx, r14
mov edx, r15d
call rsi
test al, al
jne 0x140023dff
add ebp, 0x80000000
mov eax, ebp
jmp 0x140023e4c
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400244d0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov esi, ecx
mov eax, 0x30
mov rax, qword gs:[eax]
mov rax, qword [rax + 0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x10
mov rdi, qword [rdi]
movzx edx, word [rdi + 0x58]
mov rcx, qword [rdi + 0x60]
call fcn.1400245c0
cmp eax, 0x1edab0ed
jne 0x1400244f8
mov r14, qword [rdi + 0x30]
movsxd rax, dword [r14 + 0x3c]
mov eax, dword [rax + r14 + 0x88]
test rax, rax
je 0x140024591
mov edi, dword [rax + r14 + 0x18]
mov ecx, dword [rax + r14 + 0x1c]
add rcx, r14
mov qword [rsp + 0x20], rcx
mov r12d, dword [rax + r14 + 0x20]
add r12, r14
mov r13d, dword [rax + r14 + 0x24]
add r13, r14
xor ebx, ebx
xor r15d, r15d
cmp r15, rdi
je 0x140024593
mov rbp, r15
mov ecx, dword [r12 + r15*4]
add rcx, r14
mov rdx, 0xffffffffffffffff
cmp byte [rcx + rdx + 1], 0
lea rdx, [rdx + 1]
jne 0x140024561
lea r15, [rbp + 1]
call fcn.1400245c0
cmp eax, esi
jne 0x14002454b
movzx ecx, word [r13 + rbp*2]
cmp rdi, rcx
jbe 0x1400245af
mov rax, qword [rsp + 0x20]
mov ebx, dword [rax + rcx*4]
add rbx, r14
jmp 0x140024593
xor ebx, ebx
movzx eax, word [rbx + 4]
add rbx, 0x12
mov rdx, rbx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.callsi_src_syscall_resolve.rs
mov rdx, rdi
call fcn.1400539a0
ud2

Function at 0x1400245c0
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
xor r8d, r8d
cmp r8, rdx
jae 0x1400245fc
mov r9b, byte [rcx + r8]
test r9b, r9b
jne 0x1400245db
inc r8
jmp 0x1400245c8
lea r10d, [r9 - 0x20]
cmp r9b, 0x61
movzx r9d, r9b
movzx r10d, r10b
cmovb r10d, r9d
imul r9d, eax, 0x21
movzx eax, r10b
add eax, r9d
jmp 0x1400245d6
ret
Function at 0x14002b470
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 + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x14002b500
jmp 0x14002b4ef
jae 0x14002b5c0
cmp r8, 0x201
jae 0x14002b500
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14002b558
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14002b52f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400529d0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14002b581
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14002b628
mov r8d, r14d
cmp r15, r8
jne 0x14002b4e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002b64b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14002b4ef
jmp 0x14002b500
cmp rsi, r8
jb 0x14002b665
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14002e340
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x14002b611
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140020350
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 + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x14002b5f9
jmp 0x14002b611
lea rcx, [0x14025e368]
lea r8, str.__f_
mov edx, 0x28
call fcn.140053900
jmp 0x14002b67a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140053d50
ud2
Function at 0x14002b7d0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.1400400b0
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x14002b956
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x14002b890
jmp 0x14002b87f
jae 0x14002b968
cmp r8, 0x201
jae 0x14002b890
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x14002b8e8
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x14002b8bf
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.1400529d0
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x14002b917
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14002ba3b
mov r8d, esi
cmp r12, r8
jne 0x14002b870
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002ba65
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14002b87f
jmp 0x14002b890
lea rcx, [rbp - 0x58]
call fcn.140025810
mov byte [rsi + 0x18], 2
jmp 0x14002b9fa
cmp r15, r8
jb 0x14002ba7f
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.14002e340
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x14002b9b9
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.140020350
cmp byte [rbp + 0x3d8], 2
jne 0x14002ba11
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.140025810
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x14002b9fa
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.140020350
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x14002b9e5
jmp 0x14002b9fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x14002b9a1
jmp 0x14002b9b9
lea rcx, [0x14025e368]
lea r8, str.__f_
mov edx, 0x28
call fcn.140053900
jmp 0x14002ba94
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140053d50
ud2
Function at 0x14002bbc0
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x14002bbd0
mov rcx, rdx
mov rdx, r8
jmp fcn.14002bbe0
mov rcx, rdx
mov rdx, r8
jmp fcn.140035860

Function at 0x140031f10
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.14004e850
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call fcn.14004f850
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x140039010]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.140038ad0
cmp qword [rbp + 0xfe8], 0
jne 0x1400320e7
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x1400320b3
cmp r12, 0x1000
ja 0x140032109
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x140032087
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140032030
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x14003208d
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x140032070
jbe 0x140031fe0
jmp 0x1400320f5
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x140031f95
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.140025810
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.140025810
jmp 0x1400320b3
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.140053dd0
jmp 0x14003211d
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.140053d50
ud2
Function at 0x140035860
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
push rax
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
lea ecx, [rsp + 0x20]
call fcn.1400400b0
mov rax, qword [rsp + 0x20]
and al, 0x20
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x140035917
add byte [rax], al
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
je 0x1400358bc
sub byte [rax - 0x77], cl
and al, 0x30
invalid
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.140037920
mov rdi, qword [rsp + 0x38]
jl 0x1400358d8
cmp byte [rax - 0x75], cl
je 0x1400358dd
test rdi, rdi
je 0x140035917
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
clc
add dword [rax], eax
test eax, eax
je 0x1400358eb
test rsi, rsi
je 0x1400358e7
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140020350
invalid
stosb byte [rdi], al
invalid
invalid
xor esi, esi
jmp 0x140035917
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
or ebx, 2
test rsi, rsi
je case.0x14002f558.383
invalid
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140020350
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
add esp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140036090
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140260368]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400360d4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x140036133
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140036142
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14003617a
cmp eax, 0x103
je 0x140036184
test eax, eax
js 0x14003615f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14003617a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14002df70
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140025e20
mov ecx, 7
int 0x29
ud2
Function at 0x1400361f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140260368]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140036234
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14003629a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400362d1
test eax, eax
js 0x1400362ab
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400362c4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14002df70
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140025e20
mov ecx, 7
int 0x29
ud2

Function at 0x1400380d0
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x28], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x24], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
mov r12, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x10], rax
nop

Function at 0x140038ad0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x78
sub esp, 0x78
Function at 0x1400394d0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140039625
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x140039508
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1400395e8
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140039607
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140039569
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x14003959b
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x14003959f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x1400395a3
cmp eax, 0x6d
jne 0x1400395ce
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x1400395a8
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1400395d4
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.140025810
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x1400395de
cmp rax, 1
je 0x140039552
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x14003955c
mov r8d, 0x10
mov rcx, rbx
call fcn.140052a90
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x140039515
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140052a90
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x140039515
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140052980
ud2
Function at 0x14003e3b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.1400400b0
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x40]

Function at 0x14003f320
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14003f363
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, case.0x14002bc4b.114
mov qword [rbp - 0x28], rax
lea rax, str.__b_
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140053850
ud2
Function at 0x14004d100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14004d17a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14004d170
cmp r11, r10
ja 0x14004d213
cmp r10, rdx
ja 0x14004d227
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14004d172
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14004d150
jmp 0x14004d1e7
ja 0x14004d17a
mov r11, r10
cmp rax, r8
jne 0x14004d122
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14004d1eb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14004d1c0
mov r8, r10
sub ecx, r9d
jns 0x14004d1de
jmp 0x14004d1ed
cmp r10, rdx
je 0x14004d1f9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14004d1ed
xor al, 1
cmp r8, rdx
jne 0x14004d1a0
jmp 0x14004d1ed
xor eax, eax
jmp 0x14004d1ed
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140053900
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140053dd0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140053d50
ud2

Function at 0x14004ed94
Capabilities:
Parse pe header

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