joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401023e0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140144428]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x140102485
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14010243d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140102430
cmp rcx, 1
jb 0x1401024b6
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140102453
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140111cd4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140102420
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401028f0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.140106aa8
int3
Function at 0x1401025c0
Capabilities:
Set environment variable

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0xb0
mov rax, qword [0x140144428]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x14014c640]
mov rbp, r8
mov rsi, rdx
mov r14, rcx
test rax, rax
jne 0x140102610
lea rcx, [0x140123434]
call qword [sym.imp.python39.dll_PyImport_ImportModule]
mov qword [0x14014c640], rax
test rax, rax
je 0x14010284a
mov qword [rsp + 0xa8], rbx
lea rdx, str.environ
mov qword [rsp + 0xa0], rdi
mov rcx, rax
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x90], r15
call qword [sym.imp.python39.dll_PyObject_GetAttrString]
mov rcx, rsi
mov r15, rax
call qword [sym.imp.python39.dll_PyUnicode_FromString]
movzx edx, byte [rsi]
lea rbx, [rsp + 0x30]
xor ecx, ecx
mov r13, rax
mov word [rsp + 0x30], cx
lea edi, [rcx + 0x28]
test rbp, rbp
je 0x140102746
test dl, dl
je 0x1401026e2
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14010268d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140102680
cmp rcx, 1
jb 0x140102850
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1401026b0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140111cd4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140102670
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call qword [sym.imp.python39.dll_PyUnicode_FromWideChar]
mov rdx, r13
mov rcx, r15
mov r8, rax
mov rbx, rax
call qword [sym.imp.python39.dll_PyObject_SetItem]
test eax, eax
je 0x14010272d
mov ecx, 1
call qword [sym.imp.python39.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python39.dll_Py_Exit]
int3
sub qword [rbx], 1
jne 0x1401027e7
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1401027e7
test dl, dl
je 0x1401027c2
nop word [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14010276d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140102760
cmp rcx, 1
jb 0x140102844
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140102790
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140111cd4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140102750
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r15
call qword [sym.imp.python39.dll_PyObject_DelItem]
test eax, eax
je 0x1401027e7
mov rcx, r14
call fcn.14000aaa0
sub qword [r13], 1
jne 0x1401027f8
mov rax, qword [r13 + 8]
mov rcx, r13
call qword [rax + 0x30]
sub qword [r15], 1
jne 0x140102808
mov rax, qword [r15 + 8]
mov rcx, r15
call qword [rax + 0x30]
mov r13, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401028f0
add rsp, 0xb0
pop r14
pop rsi
pop rbp
ret
call fcn.140106aa8
int3
call fcn.140106aa8
int3
call fcn.140106aa8
int3
Function at 0x140103338
Capabilities:
Parse pe header

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

Function at 0x140108318
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140108183
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140108183
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140108183
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140108183
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140108183
cmp dword [rcx + 0x84], 0xe
jbe 0x140108183
cmp dword [rcx + 0xf8], 0
je 0x140108183
mov ecx, ebx
call fcn.140108234
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140108010
nop
cmp dword [rbp + 0x20], 0
je 0x1401081d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401081dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140108114
Function at 0x140119d80
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140119e07
mov rsi, rbx
cmp word [rax], bp
je 0x140119dc6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140119db0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140119dac
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140115300
mov rdi, rax
test rax, rax
je 0x140119df4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401036e0
mov rbp, rdi
xor ecx, ecx
call fcn.140115e48
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14011d97c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14011d992
mov al, 1
jmp 0x14011d9f2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14011d9a3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14011d9f0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14011a524
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14011d9f0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14011d9f0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14011d9f0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14011d9f2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x2fc4d0f80
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d2060
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d1982
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d1a1a
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d19fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d19f2
cmp qword [rbp - 0x10], 0
je 0x2fc4d19f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d19b8
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d1a1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1b20
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d1b48
mov eax, 0
jmp 0x2fc4d1b96
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d1b71
mov eax, 0
jmp 0x2fc4d1b96
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d1b91
mov eax, 0
jmp 0x2fc4d1b96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d1b9c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d1c1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1c11
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d1c11
mov rax, qword [rbp - 8]
jmp 0x2fc4d1c2f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d1be4
mov eax, 0
add rsp, 0x20
pop rbp
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, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
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, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
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, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
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, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
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, str._MEI_d
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, str.Error_creating_child_process__n
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, str.Security_descriptor_is_not_initialized__n
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