joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a520
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], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x14001a5c0
jmp 0x14001a5af
jae 0x14001a680
cmp r8, 0x201
jae 0x14001a5c0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14001a618
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14001a5ef
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140030f00
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
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 0x14001a641
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001a6e8
mov r8d, r14d
cmp r15, r8
jne 0x14001a5a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001a715
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14001a5af
jmp 0x14001a5c0
cmp rsi, r8
jb 0x14001a72f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14001c590
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 rbx, rbx
je 0x14001a6d1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140009f10
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 + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x14001a6b9
jmp 0x14001a6d1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140031990
jmp 0x14001a744
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140031de0
ud2
Function at 0x140020b10
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 [0x140037848]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140020b54
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 0x140020bba
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140020bf1
test eax, eax
js 0x140020bcb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140020be4
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.14001c2d0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140018710
mov ecx, 7
int 0x29
ud2
Function at 0x14002f110
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14002f18a
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 0x14002f180
cmp r11, r10
ja 0x14002f221
cmp r10, rdx
ja 0x14002f233
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14002f182
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14002f160
jmp 0x14002f1f7
ja 0x14002f18a
mov r11, r10
cmp rax, r8
jne 0x14002f132
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14002f1fb
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 0x14002f1d0
mov r8, r10
sub ecx, r9d
jns 0x14002f1ee
jmp 0x14002f1fd
cmp r10, rdx
je 0x14002f209
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002f1fd
xor al, 1
cmp r8, rdx
jne 0x14002f1b0
jmp 0x14002f1fd
xor eax, eax
jmp 0x14002f1fd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14003972b]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140031990
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140031e60
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140031de0
int3

Function at 0x140030968
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400309b2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400309b2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400309b2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400309b2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400309b2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400309b4
xor al, al
add rsp, 0x28
ret
Function at 0x140004140
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], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x1400041e0
jmp 0x1400041cf
jae 0x1400042a0
cmp r8, 0x201
jae 0x1400041e0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140004238
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14000420f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140028f60
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
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 0x140004261
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004308
mov r8d, r14d
cmp r15, r8
jne 0x1400041c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140004335
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400041cf
jmp 0x1400041e0
cmp rsi, r8
jb 0x14000434f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140006290
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 rbx, rbx
je 0x1400042f1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.1400019c0
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 + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x1400042d9
jmp 0x1400042f1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140029970
jmp 0x140004364
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140029dc0
ud2
Function at 0x14000aa60
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 [0x14002d220]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000aaa4
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 0x14000ab0a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000ab41
test eax, eax
js 0x14000ab1b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000ab34
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.140005fd0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140002440
mov ecx, 7
int 0x29
ud2
Function at 0x140018780
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400187fa
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 0x1400187f0
cmp r11, r10
ja 0x140018891
cmp r10, rdx
ja 0x1400188a3
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400187f2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400187d0
jmp 0x140018867
ja 0x1400187fa
mov r11, r10
cmp rax, r8
jne 0x1400187a2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001886b
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 0x140018840
mov r8, r10
sub ecx, r9d
jns 0x14001885e
jmp 0x14001886d
cmp r10, rdx
je 0x140018879
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001886d
xor al, 1
cmp r8, rdx
jne 0x140018820
jmp 0x14001886d
xor eax, eax
jmp 0x14001886d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14002f12b]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140029970
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140029e40
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140029dc0
int3

Function at 0x140019e68
Capabilities:
Parse pe header

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

Function at 0x14001e738
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001e534
Function at 0x14002181c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14002184c
xor eax, eax
jmp 0x14002190f
mov rbp, rbx
cmp word [rax], si
je 0x140021871
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140021858
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140021854
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14002173c
movsxd r14, eax
test eax, eax
jne 0x1400218af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140021845
mov rcx, r14
call fcn.1400226f8
mov rdi, rax
test rax, rax
jne 0x1400218c8
xor ecx, ecx
call fcn.14001fd9c
jmp 0x1400218a4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14002173c
test eax, eax
jne 0x1400218f9
mov rcx, rdi
call fcn.14001fd9c
jmp 0x140021903
xor ecx, ecx
call fcn.14001fd9c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140024e00
Capabilities:
Set environment variable

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 - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14002080c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140024e8a
cmp byte [rbp - 0x21], r15b
je 0x140024e85
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140024ec0
call fcn.140022f08
test eax, eax
jne 0x140024eac
cmp byte [rbp - 0x21], r15b
je 0x140024ea4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140024ec0
cmp byte [rbp - 0x21], r15b
je 0x140024ebd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001fdec
test eax, eax
jne 0x140024f60
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002080c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140024eff
cmp byte [rbp - 0x21], r15b
je 0x140024f34
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140024f34
call fcn.140022f08
test eax, eax
jne 0x140024f20
cmp byte [rbp - 0x21], r15b
je 0x140024f19
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140024f34
cmp byte [rbp - 0x21], r15b
je 0x140024f31
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001fdec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140024f60
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140024f63
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140024f71
mov rcx, rdi
call fcn.14001fd9c
cmp byte [rbp + 0x3f], r15b
je 0x140024f80
mov rcx, qword [rbp + 0x27]
call fcn.14001fd9c
lea r11, [rsp + 0xa0]
mov eax, ebx
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 0x140027e60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140027e88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140027e88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002934c
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.14001c944
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c944
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002949c
cmp rax, 0xffffffffffffffff
je 0x14002949c
xor edi, edi
test rbp, rbp
jle 0x140029447
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f258
mov rbx, rax
test rax, rax
jne 0x1400293d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002943d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a278
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.14001d620
cmp eax, 0xffffffff
je 0x14002941d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400293e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a278
jmp 0x14002943d
cmp byte [rsi + 0x38], dil
je 0x140029434
cmp dword [rsi + 0x34], 5
jne 0x140029434
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002943d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b00c
jmp 0x1400294b0
jns 0x1400294b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c944
cmp rax, 0xffffffffffffffff
jne 0x140029468
cmp byte [rsi + 0x30], dil
je 0x1400294b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400294b0
mov ecx, r14d
call fcn.140018730
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400294b0
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 0x1400294b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400294a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400294ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c944
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 0x140001ef4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001f3e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001f3e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001f3e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001f3e
cmp dword [rcx + 0x84], 0xe
jbe 0x140001f3e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001f40
xor al, al
add rsp, 0x28
ret
Function at 0x140010038
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401f05f0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
cmp qword [0x1401f28f0], rbx
je 0x14001005f
xor al, al
jmp 0x1400100eb
mov ecx, gethostbyname
call fcn.140098304
test rax, rax
je 0x140010081
xor edx, edx
mov rcx, rax
call fcn.14000f078
mov qword [0x1401f28f0], rax
jmp 0x140010088
mov qword [0x1401f28f0], rbx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rbx
mov word [rsp + 0x20], bx
mov rdx, rax
cmp word [rax], bx
je 0x1400100b9
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bx
jne 0x1400100ad
mov rbx, rax
lea rcx, [rsp + 0x20]
mov r8, rbx
call fcn.140005d28
mov rcx, qword [0x1401f28f0]
lea rdx, [rsp + 0x20]
call fcn.140010498
cmp qword [rsp + 0x38], 8
jb 0x1400100e9
mov rcx, qword [rsp + 0x20]
call fcn.14006bd10
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400991d0
add rsp, 0x50
pop rbx
ret

Function at 0x140010498
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1401f05f0]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov rax, rdx
mov rdi, rcx
mov dword [rbp - 0x30], ebx
lea edx, [rbx + 3]
lea r8, [rbp - 0x28]
mov rcx, rax
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], rbx
mov word [rbp - 0x28], bx
call fcn.140022768
cmp qword [rbp - 0x18], rbx
je 0x14001051d
cmp qword [rbp - 0x10], 8
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x30]
cmovae rcx, qword [rbp - 0x28]
mov dword [rbp - 0x30], ebx
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [rbp - 0x30]
mov rcx, rdi
mov r8, rax
mov rbx, rax
call fcn.140010238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rbp - 0x10], 8
jb 0x14001052d
mov rcx, qword [rbp - 0x28]
call fcn.14006bd10
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400991d0
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x140013ca0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1401f05f0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebx, ebx
cmp qword [rcx + 0x18], 8
mov rdi, rdx
mov dword [rsp + 0x30], ebx
mov rsi, rcx
jb 0x140013cd3
mov rbp, qword [rcx]
jmp 0x140013cd6
mov rbp, rcx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140013d01
test al, 0x10
je 0x140013cef
mov al, 1
jmp 0x140013da1
test rdi, rdi
je 0x140013cfa
mov dword [rdi], 0xfffffff7
xor al, al
jmp 0x140013da1
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.140013158
cmp qword [rsi + 0x18], 8
mov rax, qword [rsi + 0x10]
jb 0x140013d1e
mov r9, qword [rsi]
jmp 0x140013d21
mov r9, rsi
mov r8, qword [rsp + 0x48]
lea rcx, [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.14000600c
test eax, eax
jne 0x140013d48
test rdi, rdi
je 0x140013d95
mov dword [rdi], 0xfffffffc
jmp 0x140013d95
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.140013ca0
test al, al
je 0x140013d95
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140013d93
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x140013d83
mov rcx, rsi
call fcn.140013dc0
test al, al
jne 0x140013d93
test rdi, rdi
je 0x140013d95
mov ecx, ebp
call fcn.14002655c
mov dword [rdi], eax
jmp 0x140013d95
mov bl, 1
lea rcx, [rsp + 0x38]
call fcn.140012d68
mov al, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400991d0
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x140013dc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x140013dce
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140013de1
shr eax, 4
and eax, 1
jmp 0x140013de3
xor al, al
add rsp, 0x28
ret