joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140058d74
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.14003f728
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140058dfe
cmp byte [rbp - 0x21], r15b
je 0x140058df9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140058e34
call fcn.14004b8e0
test eax, eax
jne 0x140058e20
cmp byte [rbp - 0x21], r15b
je 0x140058e18
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140058e34
cmp byte [rbp - 0x21], r15b
je 0x140058e31
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.140045654
test eax, eax
jne 0x140058ed4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003f728
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140058e73
cmp byte [rbp - 0x21], r15b
je 0x140058ea8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140058ea8
call fcn.14004b8e0
test eax, eax
jne 0x140058e94
cmp byte [rbp - 0x21], r15b
je 0x140058e8d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140058ea8
cmp byte [rbp - 0x21], r15b
je 0x140058ea5
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.140045654
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140058ed4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140058ed7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140058ee5
mov rcx, rdi
call fcn.14004afb4
cmp byte [rbp + 0x3f], r15b
je 0x140058ef4
mov rcx, qword [rbp + 0x27]
call fcn.14004afb4
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 0x140059a44
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.14004d4d8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14004d4d8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140059b94
cmp rax, 0xffffffffffffffff
je 0x140059b94
xor edi, edi
test rbp, rbp
jle 0x140059b3f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14004b5a0
mov rbx, rax
test rax, rax
jne 0x140059acc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140059b35
mov edx, 0x8000
mov ecx, r14d
call fcn.140046f5c
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.14004acac
cmp eax, 0xffffffff
je 0x140059b15
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140059adc
mov edx, r15d
mov ecx, r14d
call fcn.140046f5c
jmp 0x140059b35
cmp byte [rsi + 0x38], dil
je 0x140059b2c
cmp dword [rsi + 0x34], 5
jne 0x140059b2c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140059b35
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004afb4
jmp 0x140059ba8
jns 0x140059ba8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14004d4d8
cmp rax, 0xffffffffffffffff
jne 0x140059b60
cmp byte [rsi + 0x30], dil
je 0x140059ba8
mov edi, dword [rsi + 0x2c]
jmp 0x140059ba8
mov ecx, r14d
call fcn.140052a30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140059ba8
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 0x140059ba8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140059ba1
mov eax, dword [rsi + 0x2c]
jmp 0x140059ba6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14004d4d8
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 0x14005a420
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005a448
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005a448
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800013f0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
dec edx
mov rbx, rcx
jne 0x180001430
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov qword [0x1800047e8], rbx
call fcn.1800012f0
xor r11d, r11d
lea r8, section..text
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r11d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x180001880
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, ecx
mov esi, 5
imul rdi, rdi, 0x38
add rdi, qword [0x180006810]
test byte [rdi + 0x20], 1
mov rbx, qword [rdi]
je 0x1800018b2
sub rbx, rsi
mov esi, 7
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800018d4
mov eax, 0xa
jmp 0x180001921
mov byte [rbx], 0xe9
mov eax, dword [rdi + 8]
sub eax, ebx
sub eax, 5
mov dword [rbx + 1], eax
test byte [rdi + 0x20], 1
je 0x1800018f0
mov rax, qword [rdi]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rdi + 0x20], 6
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800020b0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r13
push r14
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rsi, qword [rbp - 0x58]
mov r13, qword [rbp - 0x50]
cmp rdi, 0x40000000
jbe 0x1800020fe
lea rax, [rdi - 0x40000000]
cmp rsi, rax
cmovb rsi, rax
mov rbx, qword [0x180006808]
lea rax, [rdi + 0x40000000]
cmp r13, rax
cmova r13, rax
sub r13, 0xfff
test rbx, rbx
je 0x180002139
cmp rbx, rsi
jb 0x180002134
cmp rbx, r13
jae 0x180002134
cmp qword [rbx + 8], 0
jne 0x180002291
mov rbx, qword [rbx]
jmp 0x18000211a
mov r12, rdi
cmp rdi, rsi
jb 0x1800021b7
mov r14d, dword [rbp - 0x38]
xor edx, edx
mov rax, r12
div r14
sub r12, rdx
jmp 0x18000217c
lea rdx, [rbp - 0x30]
mov r8d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180002184
cmp dword [rbp - 0x10], 0x10000
je 0x180002187
mov r12, qword [rbp - 0x28]
cmp r12, r14
jb 0x180002184
sub r12, r14
cmp r12, rsi
jae 0x180002152
xor r12d, r12d
test r12, r12
je 0x1800021b7
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180002251
cmp r12, rsi
jae 0x180002141
test rbx, rbx
jmp 0x180002244
mov r12d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
div r12
mov eax, r12d
mov esi, r12d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r13
ja 0x18000221d
lea rdx, [rbp - 0x30]
mov r8d, 0x30
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000221d
cmp dword [rbp - 0x10], 0x10000
je 0x18000221f
xor edx, edx
lea edi, [r12 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div rsi
sub rdi, rdx
cmp rdi, r13
jbe 0x1800021df
xor edi, edi
test rdi, rdi
je 0x180002291
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180002251
cmp rdi, r13
jbe 0x1800021bf
jmp 0x180002291
and qword [rbx + 8], 0
and dword [rbx + 0x10], 0
lea rcx, [rbx + 0x40]
mov rdx, rcx
sub rdx, rbx
mov rax, qword [rbx + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rbx + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x180002264
mov rax, qword [0x180006808]
mov qword [0x180006808], rbx
mov qword [rbx], rax
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret
Function at 0x180002a67
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x1800029ba
rol rcx, 0x10
test cx, 0xffff
jne 0x1800029b6
repz ret
ror rcx, 0x10
jmp 0x1800029c0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800042d0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800043c8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180002a45
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800042d0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180002a67
mov rax, qword [rsp + 0x88]
mov qword [0x1800043c8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180004368], rax
mov rax, qword [0x1800043c8]
mov qword [0x180004240], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180004350], rax
mov dword [0x180004230], 0xc0000409
mov dword [0x180004234], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180004008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800042c8], eax
mov ecx, 1
call fcn.180002b0c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180003138]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800042c8], 0
jne 0x180002aee
mov ecx, 1
call fcn.180002b0c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14012b1f4
Capabilities:
Terminate process

Disassembly:
jmp 0x14037c780
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14012b276
Capabilities:
Parse pe header

Disassembly:
jmp 0x14037dad0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14037daf0
xor al, al
jmp 0x14037db71
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14037db03
xor al, al
jmp 0x14037db71
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14037db2d
xor al, al
jmp 0x14037db71
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14037db41
xor al, al
jmp 0x14037db71
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14037db53
xor al, al
jmp 0x14037db71
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14037db6f
xor al, al
jmp 0x14037db71
mov al, 1
add rsp, 0x38
ret
Function at 0x140006630
Capabilities:
Create directory
Query environment variable

Disassembly:
push rdi
mov eax, 0x4030
call fcn.14000b280
sub rsp, rax
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400080b0
mov rdi, rax
test rax, rax
jne 0x140006679
lea rcx, [0x14002ea10]
call fcn.140002000
xor eax, eax
jmp 0x140006788
mov r8d, 0x1000
mov qword [rsp + 0x4048], rbx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DlL_ExpandEnvironmentStringsW]
mov rcx, rdi
mov ebx, eax
call fcn.140015748
test ebx, ebx
jne 0x1400066b6
lea rcx, [0x14002ea50]
call fcn.140002000
xor eax, eax
jmp 0x140006780
lea rcx, [rsp + 0x20]
call fcn.140007d30
test eax, eax
je 0x1400066d0
lea rcx, [rsp + 0x20]
call fcn.140018238
jmp 0x1400066e2
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.140016b48
mov rbx, rax
test rax, rax
jne 0x1400066fd
lea rcx, [0x14002eaa0]
call fcn.140002000
xor eax, eax
jmp 0x140006780
xor edx, edx
lea rcx, [rsp + 0x2020]
mov r8d, 0x2000
call fcn.14002b640
mov edx, 0x5c
mov rcx, rbx
call fcn.14000c1a8
mov rdi, rax
test rax, rax
je 0x140006772
nop word [rax + rax]
mov r8, rdi
lea rcx, [rsp + 0x2020]
sub r8, rbx
mov rdx, rbx
sar r8, 1
inc r8
call fcn.1400182bc
xor edx, edx
lea rcx, [rsp + 0x2020]
call qword [sym.imp.KERNEL32.DlL_CreateDirectoryW]
mov edx, 0x5c
lea rcx, [rdi + 2]
call fcn.14000c1a8
mov rdi, rax
test rax, rax
jne 0x140006730
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.DlL_CreateDirectoryW]
mov rax, rbx
mov rbx, qword [rsp + 0x4048]
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000b2e0
add rsp, 0x4030
pop rdi
ret
Function at 0x140006b60
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x2050
call fcn.14000b280
sub rsp, rax
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x2040], rax
xor edi, edi
mov rbp, rdx
mov r15, rcx
mov esi, edi
test rdx, rdx
je 0x140006bed
lea rcx, [0x14002eae4]
call fcn.140006d70
mov rcx, rbp
mov rsi, rax
call fcn.140006630
mov r14, rax
test rax, rax
je 0x140006cbf
mov rdx, rax
lea rcx, [0x14002eae8]
call fcn.140018680
mov rcx, r14
mov ebx, eax
call fcn.140015748
test ebx, ebx
je 0x140006bed
lea rcx, [0x14002eaf0]
call fcn.140002000
xor eax, eax
jmp 0x140006d48
lea rdx, [rsp + 0x40]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.DlL_GetTempPathW]
call sub.KERNEL32.DlL_GetCurrentProcessId
mov r9d, eax
lea r8, [0x14002eb28]
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140007770
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140019338
mov rcx, rax
mov rbx, rax
call fcn.140007e90
test eax, eax
je 0x140006cc6
mov rcx, rbx
call fcn.140015748
inc edi
cmp edi, 5
jl 0x140006c20
test rbp, rbp
je 0x140006cbf
xor r8d, r8d
lea rdx, [0x14002eae4]
xor ecx, ecx
call fcn.1400080b0
test rsi, rsi
je 0x140006ca9
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.1400080b0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140018680
mov rcx, rdi
call fcn.140015748
mov rcx, rbx
call fcn.140015748
mov rcx, rsi
call fcn.140015748
xor eax, eax
jmp 0x140006d48
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DlL_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.140015748
xor eax, eax
jmp 0x140006d48
mov r8d, 0x1000
mov rdx, rbx
mov rcx, r15
call fcn.1400081c0
mov rcx, rbx
call fcn.140015748
test rbp, rbp
je 0x140006d43
xor r8d, r8d
lea rdx, [0x14002eae4]
xor ecx, ecx
call fcn.1400080b0
test rsi, rsi
je 0x140006d2d
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.1400080b0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140018680
mov rcx, rdi
call fcn.140015748
mov rcx, rbx
call fcn.140015748
mov rcx, rsi
jmp 0x140006d3e
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DlL_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.140015748
mov eax, 1
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.14000b2e0
mov rbx, qword [rsp + 0x2090]
add rsp, 0x2050
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006d70
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4038
call fcn.14000b280
sub rsp, rax
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400080b0
mov r8d, 0x2000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.DlL_GetEnvironmentVariableW]
test eax, eax
je 0x140006e06
mov r8d, 0x2000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DlL_ExpandEnvironmentStringsW]
xor r8d, r8d
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.1400081c0
test rax, rax
je 0x140006e06
cmp byte [rax], 0
je 0x140006e06
mov rcx, rax
call fcn.14001b22c
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000b2e0
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000b2e0
add rsp, 0x4038
ret

Function at 0x140007250
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400080b0
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DlL_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.140015748
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140007290
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2110
call fcn.14000b280
sub rsp, rax
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x2100], rax
mov rdx, rcx
xor edi, edi
lea rcx, [rsp + 0x100]
mov dword [rsp + 0x50], edi
mov r8d, 0x1000
call fcn.1400080b0
mov ebx, 1
lea rcx, [0x140006610]
mov edx, ebx
call qword [sym.imp.KERNEL32.DlL_SetConsoleCtrlHandler]
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], ebx
call qword [sym.imp.KERNEL32.DlL_GetStartupInfoW]
xorps xmm0, xmm0
mov qword [rsp + 0x98], rdi
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xcc], 0x101
mov word [rsp + 0xd0], bx
call fcn.140015ac0
mov rcx, rax
call fcn.14001b2a4
mov ecx, eax
call fcn.140018ec4
cmp rax, 0xffffffffffffffff
mov ecx, ebx
cmove rax, rdi
mov qword [rsp + 0xe0], rax
call fcn.140015ac0
mov rcx, rax
call fcn.14001b2a4
mov ecx, eax
call fcn.140018ec4
cmp rax, 0xffffffffffffffff
lea ecx, [rdi + 2]
cmove rax, rdi
mov qword [rsp + 0xe8], rax
call fcn.140015ac0
mov rcx, rax
call fcn.14001b2a4
mov ecx, eax
call fcn.140018ec4
cmp rax, 0xffffffffffffffff
cmove rax, rdi
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.DlL_GetCommandLineW]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rsp + 0x100]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.DlL_CreateProcessW]
test eax, eax
je 0x140007410
mov rcx, qword [rsp + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.DlL_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DlL_GetExitCodeProcess]
mov eax, dword [rsp + 0x50]
jmp 0x140007428
lea rdx, [0x14002ebd0]
lea rcx, [0x14002ebf0]
call fcn.140002060
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.14000b2e0
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret
Function at 0x1400074c0
Capabilities:
Read file on windows

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
mov rsi, r8
mov ecx, 0x2000
mov r14, rdx
xor r13d, r13d
call fcn.14001575c
mov r15, rax
test rax, rax
je 0x1400075d3
xor edx, edx
lea r8d, [r13 + 2]
mov rcx, r12
call fcn.1400102a4
test eax, eax
js 0x1400075d3
mov rcx, r12
mov qword [rsp + 0x50], rbx
call fcn.140019904
mov rbx, rax
cmp rax, rsi
jb 0x1400075ce
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rdi
nop dword [rax]
cmp rbx, 0x2000
lea rbp, [rbx - 0x2000]
cmovb rbp, r13
sub rbx, rbp
cmp rbx, rsi
jb 0x1400075c4
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
call fcn.1400102a4
test eax, eax
js 0x1400075c4
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.14000ff6c
cmp rax, rbx
jne 0x1400075c4
sub rbx, rsi
add rbx, 1
je 0x1400075ab
lea rdi, [r15 - 1]
add rdi, rbx
nop dword [rax]
nop dword [rax + rax]
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call fcn.14002b540
test eax, eax
je 0x1400075bd
dec rdi
sub rbx, 1
jne 0x140007590
lea rbx, [rsi - 1]
add rbx, rbp
test rbp, rbp
jne 0x140007530
jmp 0x1400075c4
lea r13, [rbp - 1]
add r13, rbx
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rcx, r15
call fcn.140015748
mov rax, r13
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret

Function at 0x140007e90
Capabilities:
Create directory

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140040fb0]
test rax, rax
jne 0x140007eb6
lea rcx, [0x14002eea0]
call fcn.140002000
mov eax, 0xffffffff
add rsp, 0x48
ret
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x18
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.DlL_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
dec eax
add rsp, 0x48
ret
Function at 0x14000bcec
Capabilities:
Parse pe header

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

Function at 0x140016474
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400335c0]
mov rbp, rcx
call fcn.1400201d0
xor edi, edi
test rax, rax
je 0x14001655a
mov ebx, edi
call fcn.140018218
mov r14d, dword [rax]
call fcn.140018218
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140016b48
mov rsi, rax
test rax, rax
je 0x1400164eb
call fcn.140018218
mov dword [rax], r14d
jmp 0x140016515
call fcn.140018218
cmp dword [rax], 0x22
jne 0x140016552
call fcn.140018218
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140016b48
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140016552
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140016519
cmp rax, 3
je 0x140016534
mov rcx, rsi
call fcn.1400163d0
test al, al
je 0x140016545
mov rcx, rbp
call qword [sym.imp.KERNEL32.DlL_GetDriveTypeW]
cmp eax, 1
jbe 0x140016545
mov dil, 1
mov rcx, rbx
call fcn.140015748
mov al, dil
jmp 0x14001655c
mov rcx, rbx
call fcn.140015748
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b2e0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400186b8
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.DlL_RemoveDirectoryW]
test eax, eax
jne 0x1400186d8
call qword [sym.imp.KERNEL32.DlL_GetLastError]
mov ecx, eax
call fcn.14001818c
or eax, 0xffffffff
jmp 0x1400186da
xor eax, eax
add rsp, 0x28
ret

Function at 0x140018f3c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.DlL_DeleteFileW]
test eax, eax
jne 0x140018f5c
call qword [sym.imp.KERNEL32.DlL_GetLastError]
mov ecx, eax
call fcn.14001818c
or eax, 0xffffffff
jmp 0x140018f5e
xor eax, eax
add rsp, 0x28
ret