joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140088d48
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 0x140088d78
xor eax, eax
jmp 0x140088e3b
mov rbp, rbx
cmp word [rax], si
je 0x140088d9d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140088d84
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140088d80
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.140087494
movsxd r14, eax
test eax, eax
jne 0x140088ddb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140088d71
mov rcx, r14
call fcn.14008525c
mov rdi, rax
test rax, rax
jne 0x140088df4
xor ecx, ecx
call fcn.1400828b4
jmp 0x140088dd0
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.140087494
test eax, eax
jne 0x140088e25
mov rcx, rdi
call fcn.1400828b4
jmp 0x140088e2f
xor ecx, ecx
call fcn.1400828b4
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 0x14008bb68
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140082554
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14008bc09
cmp ebx, dword [rsp + 0x30]
je 0x14008bc02
test esi, esi
je 0x14008bc02
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14008bbdd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14008bbea
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14008bbc7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14008bbee
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14008bc0b
mov eax, 1
jmp 0x14008bc0b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14008d2a4
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, [0x140499ef0]
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 0x14008d2fb
cmp word [rdx], r13w
jne 0x14008d2fb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14008d300
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14008d425
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14008d446
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14008d339
mov rdx, r9
mov word [rbx], cx
jmp 0x14008d360
cmp r9, r8
jae 0x14008d370
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 0x14008d31a
jmp 0x14008d425
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 0x14008d41a
cmp dword [rsp + 0x80], esi
je 0x14008d41a
lea r8, [0x140499ef0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14008d3f2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14008d3c2
mov word [rbx], r13w
jmp 0x14008d422
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 0x14008d3cf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14008d422
cmp word [rsp + 0x70], r13w
jne 0x14008d3ff
cmp rbx, r14
je 0x14008d3bc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14008cfdc
cmp word [rsp + 0x70], r13w
je 0x14008d425
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, [0x140499ef0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14008d41f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14008d425
Function at 0x14008f118
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.14008cfdc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14008cfdc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14008f268
cmp rax, 0xffffffffffffffff
je 0x14008f268
xor edi, edi
test rbp, rbp
jle 0x14008f213
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400852bc
mov rbx, rax
test rax, rax
jne 0x14008f1a0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14008f209
mov edx, 0x8000
mov ecx, r14d
call fcn.1400805d4
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.140084260
cmp eax, 0xffffffff
je 0x14008f1e9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14008f1b0
mov edx, r15d
mov ecx, r14d
call fcn.1400805d4
jmp 0x14008f209
cmp byte [rsi + 0x38], dil
je 0x14008f200
cmp dword [rsi + 0x34], 5
jne 0x14008f200
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14008f209
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400828b4
jmp 0x14008f27c
jns 0x14008f27c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14008cfdc
cmp rax, 0xffffffffffffffff
jne 0x14008f234
cmp byte [rsi + 0x30], dil
je 0x14008f27c
mov edi, dword [rsi + 0x2c]
jmp 0x14008f27c
mov ecx, r14d
call fcn.140089614
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14008f27c
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 0x14008f27c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14008f275
mov eax, dword [rsi + 0x2c]
jmp 0x14008f27a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14008cfdc
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 0x1400024e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140022080]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor r14d, r14d
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
xor r8d, r8d
xor edx, edx
lea rcx, str.DOTNET_RUNTIME_ID
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
je 0x140002579
mov eax, 2
mul rdi
mov rbx, 0xffffffffffffffff
cmovb rax, rbx
mov rcx, rax
call fcn.14001184c
mov rbp, rax
mov r8d, edi
mov rdx, rax
lea rcx, str.DOTNET_RUNTIME_ID
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140002620
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x1400025a8
test eax, eax
jle 0x140002592
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rdx, str.DOTNET_RUNTIME_ID
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.140001d10
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r14
mov r8d, 7
lea rdx, str.win_x64
mov rcx, rsi
call fcn.1400037a0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14000268a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002610
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002610
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001180c
jmp 0x14000268a
inc rbx
cmp word [rbp + rbx*2], 0
jne 0x140002620
mov rax, qword [rsp + 0x48]
cmp rbx, rax
ja 0x140002661
lea rdi, [rsp + 0x30]
cmp rax, 7
cmova rdi, qword [rsp + 0x30]
mov qword [rsp + 0x40], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.140015cc0
mov word [rbx + rdi], r14w
jmp 0x140002671
mov r9, rbp
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140003960
mov rcx, rbp
call fcn.14001180c
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x10], xmm1
mov rax, rsi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400117b0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400026b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140022080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rdx
mov r14, rcx
lea r15, [rdx + 0x10]
xor r12d, r12d
mov qword [r15], r12
mov rax, rdx
cmp qword [rdx + 0x18], 7
jbe 0x1400026f2
mov rax, qword [rdx]
mov word [rax], r12w
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], r12
mov word [rsp + 0x20], r12w
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x140002757
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x140002875
test eax, eax
jle 0x140002740
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
mov rdx, r14
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.140001d10
jmp 0x140002875
mov eax, 2
mul rdi
mov rbx, 0xffffffffffffffff
cmovb rax, rbx
mov rcx, rax
call fcn.14001184c
mov rbp, rax
mov r8d, edi
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140002723
nop dword [rax + rax]
inc rbx
cmp word [rbp + rbx*2], 0
jne 0x140002790
mov rax, qword [rsp + 0x38]
cmp rbx, rax
ja 0x1400027d1
lea rdi, [rsp + 0x20]
cmp rax, 7
cmova rdi, qword [rsp + 0x20]
mov qword [rsp + 0x30], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.140015cc0
mov word [rbx + rdi], r12w
jmp 0x1400027e1
mov r9, rbp
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140003960
mov rcx, rbp
call fcn.14001180c
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140007a10
test al, al
je 0x140002855
lea rax, [rsp + 0x20]
cmp rsi, rax
je 0x140002851
lea r9, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova r9, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsi + 0x18]
cmp rbx, rax
ja 0x140002846
cmp rax, 7
jbe 0x14000282b
mov rsi, qword [rsi]
mov qword [r15], rbx
lea r8, [rbx + rbx]
mov rdx, r9
mov rcx, rsi
call fcn.140015cc0
mov word [rsi + rbx*2], r12w
mov bl, 1
jmp 0x140002877
mov rdx, rbx
mov rcx, rsi
call fcn.140003960
mov bl, 1
jmp 0x140002877
lea r8, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova r8, qword [rsp + 0x20]
mov rdx, r14
lea rcx, str.Did_not_find___s__directory___s_
call fcn.140001980
xor bl, bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x1400028bc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400028b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400028b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001180c
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400117b0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400072e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140022080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], bp
movzx eax, byte [str.d38cc827_e34f_4453_9df4_1e796e9f1d07]
cmp al, 0x65
jne 0x140007381
mov qword [rsp + 0x30], rbp
mov word [rsp + 0x20], bp
xor r8d, r8d
xor edx, edx
lea rcx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x1400073dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x140007381
test eax, eax
jle 0x14000736b
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rdx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.140001d10
mov rdx, r14
mov ecx, 7
call fcn.140007500
movzx ebx, al
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x1400074d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400074d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400074d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov eax, 2
mul rdi
mov rbx, 0xffffffffffffffff
cmovb rax, rbx
mov rcx, rax
call fcn.14001184c
mov rsi, rax
mov r8d, edi
mov rdx, rax
lea rcx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140007352
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140007416
mov rax, qword [rsp + 0x38]
cmp rbx, rax
ja 0x140007455
lea rdi, [rsp + 0x20]
cmp rax, 7
cmova rdi, qword [rsp + 0x20]
mov qword [rsp + 0x30], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140015cc0
mov word [rbx + rdi], bp
jmp 0x140007465
mov r9, rsi
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140003960
mov rcx, rsi
call fcn.14001180c
lea rax, [rsp + 0x20]
cmp r14, rax
je 0x1400074cb
lea r9, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova r9, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
mov rax, qword [r14 + 0x18]
cmp rbx, rax
ja 0x1400074c0
mov rdi, r14
cmp rax, 7
jbe 0x1400074a2
mov rdi, qword [r14]
mov qword [r14 + 0x10], rbx
lea r8, [rbx + rbx]
mov rdx, r9
mov rcx, rdi
call fcn.140015cc0
mov word [rdi + rbx*2], bp
mov bl, 1
jmp 0x140007391
mov rdx, rbx
mov rcx, r14
call fcn.140003960
mov bl, 1
jmp 0x140007391
call fcn.14001180c
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400117b0
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14000bac0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
mov r8, rcx
mov dword [rsp + 0x28], 1
xor ecx, ecx
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, str.open
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
add rsp, 0x38
ret

Function at 0x14001243c
Capabilities:
Parse pe header

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

Function at 0x140015b90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015bb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015bb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003520
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
mov rax, qword gs:[0x30]
xor r9d, r9d
mov ebx, ecx
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov rdx, qword [rax + 0x10]
mov rax, qword [rdx]
mov rdi, qword [rax + 0x30]
movsxd rax, dword [rdi + 0x3c]
mov edx, dword [rax + rdi + 0x88]
add rdx, rdi
mov r13d, dword [rdx + 0x1c]
mov esi, dword [rdx + 0x20]
mov r11d, dword [rdx + 0x24]
mov r12d, dword [rdx + 0x14]
mov r14d, dword [rdx + 0x18]
add r13, rdi
add rsi, rdi
add r11, rdi
test r12, r12
je 0x1400035f2
mov qword [rsp + 0x20], rbp
nop word [rax + rax]
mov eax, dword [r13 + r9*4]
test eax, eax
je 0x1400035de
xor r8d, r8d
mov ebp, eax
test r14d, r14d
je 0x1400035de
movzx eax, word [r11 + r8*2]
cmp rax, r9
jne 0x1400035d6
mov edx, dword [rsi + r8*4]
xor ecx, ecx
add rdx, rdi
movzx eax, byte [rdx]
test al, al
je 0x1400035d2
nop dword [rax]
ror ecx, 7
movsx eax, al
inc rdx
add ecx, eax
movzx eax, byte [rdx]
test al, al
jne 0x1400035c0
cmp ebx, ecx
je 0x1400035e8
inc r8
cmp r8, r14
jb 0x1400035a3
inc r9
cmp r9, r12
jb 0x140003590
jmp 0x1400035ed
movzx eax, byte [rdi + rbp + 4]
mov rbp, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r14
pop r13
pop r12
ret
Function at 0x140003700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xa8]
sub rsp, 0x1a0
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rbp - 0x78], 7
xor edi, edi
mov qword [rbp - 0x80], rdi
mov word [rsp + 0x70], di
lea r8d, [rdi + 0x18]
lea rdx, str.C:UsersPublicDesktop_
lea rcx, [rsp + 0x70]
call fcn.140006e40
nop
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x60], di
lea r8d, [rdi + 2]
lea rdx, [0x140030b44]
lea rcx, [rbp - 0x60]
call fcn.140006e40
nop
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], rdi
mov word [rbp - 0x38], di
lea r8d, [rdi + 4]
lea rdx, [0x140030b50]
lea rcx, [rbp - 0x38]
call fcn.140006e40
nop
mov qword [rbp + 8], 7
mov qword [rbp], rdi
mov word [rbp - 0x10], di
lea r8d, [rdi + 2]
lea rdx, [0x140030b5c]
lea rcx, [rbp - 0x10]
call fcn.140006e40
nop
mov qword [rbp + 0x30], 7
mov qword [rbp + 0x28], rdi
mov word [rbp + 0x18], di
lea r8d, [rdi + 4]
lea rdx, [0x140030b68]
lea rcx, [rbp + 0x18]
call fcn.140006e40
nop
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], rdi
mov word [rbp + 0x40], di
lea r8d, [rdi + 2]
lea rdx, [0x140030b74]
lea rcx, [rbp + 0x40]
call fcn.140006e40
nop
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rdi
mov word [rsp + 0x20], di
lea r8d, [rdi + 4]
lea rdx, str..lnk
lea rcx, [rsp + 0x20]
call fcn.140006e40
nop
mov ebx, edi
nop
movsxd rax, ebx
lea rcx, [rax + rax*4]
lea r8, [rbp + rcx*8 - 0x60]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x70]
call fcn.140007810
nop
lea r8, [rsp + 0x20]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400078d0
nop
cmp qword [rbp + 0x88], 8
jb 0x140003871
mov rcx, qword [rbp + 0x70]
call fcn.14000b340
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400038fa
cmp qword [rsp + 0x60], 8
jb 0x14000389f
mov rcx, qword [rsp + 0x48]
call fcn.14000b340
inc ebx
cmp ebx, 5
jb 0x140003830
cmp qword [rsp + 0x38], 8
jb 0x1400038b8
mov rcx, qword [rsp + 0x20]
call fcn.14000b340
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rdi
mov word [rsp + 0x20], di
lea r9, [fcn.140004ad0]
mov edx, 0x28
lea r8d, [rdx - 0x23]
lea rcx, [rbp - 0x60]
call fcn.14000c18c
nop
cmp qword [rbp - 0x78], 8
jb 0x1400038f6
mov rcx, qword [rsp + 0x70]
call fcn.14000b340
xor al, al
jmp 0x140003971
cmp qword [rsp + 0x60], 8
jb 0x14000390c
mov rcx, qword [rsp + 0x48]
call fcn.14000b340
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x48], di
cmp qword [rsp + 0x38], 8
jb 0x140003931
mov rcx, qword [rsp + 0x20]
call fcn.14000b340
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rdi
mov word [rsp + 0x20], di
lea r9, [fcn.140004ad0]
mov edx, 0x28
lea r8d, [rdx - 0x23]
lea rcx, [rbp - 0x60]
call fcn.14000c18c
nop
cmp qword [rbp - 0x78], 8
jb 0x14000396f
mov rcx, qword [rsp + 0x70]
call fcn.14000b340
mov al, 1
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140006510
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, rcx
cmp qword [rcx + 0x80], 0
je 0x140006749
cmp byte [rcx + 0x89], 0
je 0x140006749
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000671d
mov edx, 0xf
mov qword [rbp - 0x10], rdx
mov byte [rbp - 0x28], 0
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], 8
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
xor r12d, r12d
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
nop word [rax + rax]
lea rdx, [rbp - 0x28]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x28]
cmovae r8, r10
mov rcx, qword [rdi + 0x80]
mov r10, qword [rcx]
mov rax, qword [rbp - 0x18]
lea r9, [rdx + rax]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x8c]
call qword [r10 + 0x30]
test eax, eax
je 0x1400065e8
dec eax
jne 0x1400066e7
jmp 0x1400065ef
mov byte [rdi + 0x89], r12b
lea rax, [rbp - 0x28]
mov r10, qword [rbp - 0x28]
mov r9, qword [rbp - 0x10]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp + 0x20]
sub rbx, rax
je 0x14000663d
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x98]
mov r8, rbx
mov edx, 1
call fcn.14000cd08
cmp rbx, rax
jne 0x14000670d
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
cmp byte [rdi + 0x89], r12b
je 0x14000673b
test rbx, rbx
jne 0x1400065a0
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x18]
sub rax, r8
cmp rax, 8
jbe 0x14000672e
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x140006721
cmp r9, rbx
jae 0x140006691
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140002070
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
jmp 0x1400066ae
test rbx, rbx
jne 0x1400066b7
mov qword [rbp - 0x18], r12
lea rax, [rbp - 0x28]
cmp r9, 0x10
cmovae rax, r10
mov byte [rax], r12b
jmp 0x14000658b
test rbx, rbx
je 0x1400065a0
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov rax, qword [rbp - 0x18]
xor edx, edx
mov qword [rcx + rax], rdx
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax + rbx], dl
jmp 0x14000658b
sub eax, 2
je 0x140006700
cmp qword [rbp - 0x10], 0x10
jb 0x14000671d
mov rcx, qword [rbp - 0x28]
call fcn.14000b340
xor al, al
jmp 0x14000674b
cmp qword [rbp - 0x10], 0x10
jb 0x140006749
mov rcx, qword [rbp - 0x28]
jmp 0x140006744
cmp qword [rbp - 0x10], 0x10
jb 0x14000671d
mov rcx, qword [rbp - 0x28]
call fcn.14000b340
xor al, al
jmp 0x14000674b
lea rcx, str.string_too_long
call fcn.1400087c0
int3
lea rcx, str.string_too_long
call fcn.1400087c0
nop
cmp r9, 0x10
jb 0x140006749
mov rcx, r10
call fcn.14000b340
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret

Function at 0x140008611
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [section..data]
syscall
ret

Function at 0x1400118b0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140011720