joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400025cb
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x1400025ec
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp fcn.14001cf80

Function at 0x140005489
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [fcn.14001d540]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp fcn.14001cf80
push r13
push r12
sub rsp, 0x38
cmp qword [0x14002b0f0], 0
jne 0x1400054e8
add rsp, 0x38
pop r12
pop r13
jmp 0x140005489
lea r13, [rsp + 0x20]
mov rdx, rcx
mov rcx, r13
call fcn.140005415
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x14002b0f0]
test r12, r12
je 0x14000551b
test byte [r12 + 7], 0x40
jne 0x14000551b
mov rcx, r12
call fcn.1400036d2
lea rcx, [0x14001e300]
call fcn.1400180f0
cmp byte [rax], 0
je 0x140005555
mov byte [rax], 0
lea rcx, [0x14001e200]
call fcn.1400180f0
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop r12
pop r13
jmp fcn.140003c66
add rsp, 0x38
pop r12
pop r13
ret

Function at 0x1400054cc
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [fcn.14001d540]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp fcn.14001cf80
push r13
push r12
sub rsp, 0x38
cmp qword [0x14002b0f0], 0
jne 0x1400054e8
add rsp, 0x38
pop r12
pop r13
jmp 0x140005489
lea r13, [rsp + 0x20]
mov rdx, rcx
mov rcx, r13
call fcn.140005415
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x14002b0f0]
test r12, r12
je 0x14000551b
test byte [r12 + 7], 0x40
jne 0x14000551b
mov rcx, r12
call fcn.1400036d2
lea rcx, [0x14001e300]
call fcn.1400180f0
cmp byte [rax], 0
je 0x140005555
mov byte [rax], 0
lea rcx, [0x14001e200]
call fcn.1400180f0
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop r12
pop r13
jmp fcn.140003c66
add rsp, 0x38
pop r12
pop r13
ret
Function at 0x140005bbd
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
xor r12d, r12d
lea rbp, [0x14001e300]
mov rsi, rcx
mov rbx, rdx
lea rdi, [rsp + 0x20]
lea rcx, [0x14002b0c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp r12, rbx
jl 0x140005c41
mov rbx, qword [fcn.14001d540]
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x14001f2bb]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
call fcn.14001cf80
lea rcx, [0x14002b0c0]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r12, r12
jns 0x140005c5e
lea rdx, [rbx - 1]
mov rcx, r12
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.140004ee3
mov r13, r12
mov ecx, 1
call qword [fcn.14001d540]
shl r13, 4
xor r8d, r8d
mov rdx, rdi
add r13, rsi
mov rcx, rax
movups xmm0, xmmword [r13]
movups xmmword [rsp + 0x20], xmm0
call fcn.140005a9b
mov rcx, rbp
call fcn.1400180f0
cmp byte [rax], 0
jne 0x140005cb3
add r12, 1
jno 0x140005beb
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.1400037ea
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140017200
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14002bb34]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1400173b0
mov rax, qword [0x14002bb38]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14001724c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400172d7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140017230
mov rcx, r12
call fcn.140017cb0
mov rbp, rax
test rax, rax
je 0x14001740d
mov rax, qword [0x14002bb38]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140017de0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14002bb38]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400173f2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400172d0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140017360
add dword [0x14002bb34], 1
cmp ebx, 8
jae 0x140017308
test bl, 4
jne 0x1400173c0
test ebx, ebx
je 0x1400172f9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400173e0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1400172f9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14001733a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x14002bb38]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400172d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140017190
xor edi, edi
jmp 0x140017257
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400172f9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400172f9
mov rax, qword [0x14002bb38]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140017190
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140017190
nop
nop dword [rax]
Function at 0x140017920
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14002bba0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002bb80]
test rbx, rbx
je 0x140017974
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14001796b
test r12, r12
je 0x14001796b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140017950
lea rcx, [0x14002bba0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140017cb0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140025c70]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140017d29
mov rcx, r10
call fcn.140017b80
test eax, eax
je 0x140017d29
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140017d26
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x140017d1d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140017d29
add r8, 0x28
cmp r8, r9
jne 0x140017d08
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140018090
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor ecx, ecx
xor r9d, r9d
mov r8d, 0xffff
mov dword [0x14002bc20], 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x14002bc28], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x1400180e0
lea rdx, [0x140017fa0]
mov dword [0x14002bc18], eax
call fcn.14001d780
test eax, eax
jne 0x1400180e8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400180d7
call sub.msvcrt.dll_abort
nop
nop
Function at 0x1400180f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, qword [0x140025be0]
mov r11d, dword [r13]
mov r12, rcx
test r11d, r11d
jne 0x140018130
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140018198
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x1400181b0
mov r13d, dword [0x14002bc18]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
mov r14d, eax
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r14d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r13, r13
je 0x140018228
mov rbx, qword [r13]
cmp rbx, rsi
jb 0x140018270
sub rsi, 1
mov rax, qword [r13 + rsi*8 + 8]
test rax, rax
jne 0x140018119
mov rcx, r12
call fcn.140017ff0
mov qword [r13 + rsi*8 + 8], rax
jmp 0x140018119
call fcn.140017ff0
mov qword [r12 + 0x10], rax
jmp 0x140018119
mov r10d, dword [r13]
test r10d, r10d
je 0x1400182d2
mov r9d, dword [0x14001e5f0]
test r9d, r9d
je 0x140018300
lock add dword [0x14002bc20], 1
jne 0x140018334
mov rsi, qword [r12 + 0x10]
test rsi, rsi
je 0x1400182e0
mov eax, dword [r13]
test eax, eax
je 0x140018139
mov eax, 0xffffffff
lock xadd dword [0x14002bc20], eax
sub eax, 1
js 0x140018139
mov rcx, qword [0x14002bc28]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x140018139
lea rcx, [rsi + 0x21]
mov edx, 8
lea rbx, [rsi + 0x20]
call sub.msvcrt.dll_calloc
mov r13, rax
test rax, rax
je 0x14001835b
mov qword [rax], rbx
mov ecx, dword [0x14002bc18]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140018177
call rdi
jmp 0x140018177
lea r14, [rbx + rbx]
lea rax, [rsi + 0x20]
mov rcx, r13
cmp rsi, r14
cmova r14, rax
lea rdx, [r14*8 + 8]
call sub.msvcrt.dll_realloc
mov r13, rax
test rax, rax
je 0x14001835b
mov qword [rax], r14
sub r14, rbx
lea rcx, [rax + rbx*8 + 8]
xor edx, edx
lea r8, [r14*8]
call sub.msvcrt.dll_memset
jmp 0x140018249
call fcn.140018090
mov dword [0x14001e5f0], 1
mov edx, dword [r13]
test edx, edx
jne 0x1400181cd
mov rsi, qword [r12 + 0x10]
test rsi, rsi
jne 0x140018139
mov rax, qword [0x14002bc10]
lea rsi, [rax + 1]
mov qword [0x14002bc10], rsi
mov qword [r12 + 0x10], rsi
jmp 0x1400181e9
lock add dword [0x14001e5f4], 1
je 0x1400182b7
mov r8d, dword [0x14001e5f0]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x14001e5f0]
test r8d, r8d
jne 0x1400182c6
nop dword [rax]
xor ecx, ecx
call rsi
mov ecx, dword [rbx]
test ecx, ecx
je 0x140018328
jmp 0x1400182c6
mov rcx, qword [0x14002bc28]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400181db
lock sub dword [0x14002bc20], 1
jmp 0x1400181db
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
nop dword [rax]
cmp qword [rcx], rdx
jae 0x140018380
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14001838a
mov qword [rcx + 8], r8
test r9, r9
je 0x140018394
cmp qword [rcx], rdx
je 0x140018398
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x262a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0262a1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x262a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x262a06f
add dl, dl
jne 0x262a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x262a0f6
xor eax, eax
add dl, dl
jne 0x262a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x262a1ad
add dl, dl
jne 0x262a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x262a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x262a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x262a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x262a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x262a07e
mov eax, 1
add dl, dl
jne 0x262a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x262a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x262a0fb
sub eax, ebx
mov ebx, 1
jne 0x262a14c
mov ecx, 1
add dl, dl
jne 0x262a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x262a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x262a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x262a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x262a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x262a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x262a15d
cmp eax, 0x7d00
jae 0x262a19b
cmp eax, 0x500
jb 0x262a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x262a07e
cmp eax, 0x7f
ja 0x262a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x262a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x262a1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x262a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140194880
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x54], 0
mov edx, 0x68
lea rcx, [rsp + 0xa0]
call fcn.140194e00
mov edx, 0x18
lea rcx, [rsp + 0x68]
call fcn.140194e00
mov dword [rsp + 0xa0], 0x68
mov rcx, qword [rsp + 0x120]
call fcn.140199d00
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14019494e
xor eax, eax
jmp 0x140194b53
mov dx, 0x5c
mov rcx, qword [rsp + 0x58]
call fcn.140194dd0
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x14019497c
xor eax, eax
mov rcx, qword [rsp + 0x80]
mov word [rcx], ax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x14
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x120]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1401949da
jmp 0x140194ac5
mov rdx, qword [0x1401b0b20]
mov ecx, dword [0x1401b0b10]
call fcn.1401956c0
mov dword [rsp + 0x48], 2
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x88]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x128]
call fcn.1401956e2
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140194a50
jmp 0x140194ac5
mov rcx, qword [rsp + 0x130]
call fcn.140194120
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x140194a6c
jmp 0x140194ac5
mov r9d, dword [rsp + 0x54]
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.140194480
test eax, eax
jne 0x140194a90
jmp 0x140194ac5
mov rdx, qword [0x1401b0b80]
mov ecx, dword [0x1401b0b70]
call fcn.1401956c0
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.1401956e2
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140194abd
jmp 0x140194ac5
mov dword [rsp + 0x60], 1
cmp qword [rsp + 0x58], 0
je 0x140194ad7
mov rcx, qword [rsp + 0x58]
call fcn.140199eb0
cmp qword [rsp + 0x68], 0
je 0x140194afb
cmp qword [rsp + 0x68], 0xffffffffffffffff
je 0x140194afb
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], 0
cmp qword [rsp + 0x70], 0
je 0x140194b1f
cmp qword [rsp + 0x70], 0xffffffffffffffff
je 0x140194b1f
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x128], 0
je 0x140194b4f
cmp qword [rsp + 0x128], 0xffffffffffffffff
je 0x140194b4f
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x128], 0
mov eax, dword [rsp + 0x60]
add rsp, 0x110
pop rdi
ret
Function at 0x140194b70
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0xca8
mov rax, qword [0x1401b0040]
xor rax, rsp
mov qword [rsp + 0xc90], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x260]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x470]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
lea rax, [rsp + 0x880]
lea rcx, str.C:Windows_system32cmd.exe
mov rdi, rax
mov rsi, rcx
mov ecx, 0x38
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x8b8]
mov rdi, rax
xor eax, eax
mov ecx, 0x3d8
rep stosb byte [rdi], al
lea rdx, [0x1401b0ae0]
mov ecx, 0xaeb2560
call fcn.140194e90
test eax, eax
je 0x140194ce5
lea rdx, [0x1401b0af8]
mov ecx, 0x7d1aa4fe
call fcn.140194e90
test eax, eax
je 0x140194ce5
lea rdx, [0x1401b0b10]
mov ecx, 0xcb5ef918
call fcn.140194e90
test eax, eax
je 0x140194ce5
lea rdx, [0x1401b0b28]
mov ecx, 0xdcdd1c32
call fcn.140194e90
test eax, eax
je 0x140194ce5
lea rdx, [0x1401b0b40]
mov ecx, 0x4898763e
call fcn.140194e90
test eax, eax
je 0x140194ce5
lea rdx, [0x1401b0b58]
mov ecx, 0xc1189c40
call fcn.140194e90
test eax, eax
je 0x140194ce5
lea rdx, [0x1401b0b70]
mov ecx, 0x2f7cb09e
call fcn.140194e90
test eax, eax
je 0x140194ce5
lea rdx, [0x1401b0b88]
mov ecx, 0x3b042567
call fcn.140194e90
test eax, eax
je 0x140194ce5
lea rdx, [0x1401b0ba0]
mov ecx, 0x7f13a087
call fcn.140194e90
test eax, eax
jne 0x140194cef
mov eax, 1
jmp 0x140194dac
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140194d0d
mov eax, 1
jmp 0x140194dac
lea r9, [rsp + 0x260]
xor r8d, r8d
lea rdx, [0x1401a6378]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x140194d35
mov eax, 1
jmp 0x140194dac
lea r8, [rsp + 0x260]
lea rdx, str.___s
lea rcx, [rsp + 0x470]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140001100
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x470]
call fcn.140194170
test eax, eax
jne 0x140194d88
mov eax, 1
jmp 0x140194dac
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x880]
call fcn.140194880
test eax, eax
jne 0x140194daa
mov eax, 1
jmp 0x140194dac
xor eax, eax
mov rcx, qword [rsp + 0xc90]
xor rcx, rsp
call fcn.140195800
add rsp, 0xca8
pop rdi
pop rsi
ret
Function at 0x140195540
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword gs:[0x60]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x10], 0
jne 0x140195561
xor eax, eax
jmp 0x1401956b3
mov rax, qword [rsp + 0x10]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
sub rax, 0x10
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x30]
mov qword [rsp], rax
cmp qword [rsp], 0
jne 0x140195595
xor eax, eax
jmp 0x1401956b3
mov rax, qword [rsp]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1401955b4
xor eax, eax
jmp 0x1401956b3
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x4550
je 0x1401955e0
xor eax, eax
jmp 0x1401956b3
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0
jne 0x140195613
xor eax, eax
jmp 0x1401956b3
mov rax, qword [rsp]
mov qword [0x1401b0bd8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x18]
mov dword [0x1401b0bd0], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [0x1401b0bc0], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [0x1401b0bb8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [0x1401b0bc8], rax
cmp qword [0x1401b0bd8], 0
je 0x1401956a8
cmp dword [0x1401b0bd0], 0
je 0x1401956a8
cmp qword [0x1401b0bc0], 0
je 0x1401956a8
cmp qword [0x1401b0bb8], 0
je 0x1401956a8
cmp qword [0x1401b0bc8], 0
jne 0x1401956ae
xor eax, eax
jmp 0x1401956b3
mov eax, 1
add rsp, 0x38
ret

Function at 0x1401961e8
Capabilities:
Parse pe header

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

Function at 0x14019abe0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14019a9dc
Function at 0x14019dcf4
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 0x14019dd24
xor eax, eax
jmp 0x14019dde7
mov rbp, rbx
cmp word [rax], si
je 0x14019dd49
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14019dd30
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14019dd2c
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.14019dc14
movsxd r14, eax
test eax, eax
jne 0x14019dd87
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14019dd1d
mov rcx, r14
call fcn.14019ebd0
mov rdi, rax
test rax, rax
jne 0x14019dda0
xor ecx, ecx
call fcn.14019ba30
jmp 0x14019dd7c
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.14019dc14
test eax, eax
jne 0x14019ddd1
mov rcx, rdi
call fcn.14019ba30
jmp 0x14019dddb
xor ecx, ecx
call fcn.14019ba30
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