joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800617f8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18006187c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180065940]
cmp byte [rcx + rax], 0
je 0x18006187c
dec r8
sub rdx, 1
jne 0x180061862
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x140001990
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rbx, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
je 0x140064774
lea edi, [rsi + 0xd]
jmp 0x14006482f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xea
jne 0x14006482f
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
mov r8, qword [rbp - 0x18]
mov rcx, r8
mov rdi, qword [rbp - 0x20]
sub rcx, rdi
sar rcx, 1
cmp rdx, rcx
jae 0x1400647b4
lea rax, [rdi + rdx*2]
mov qword [rbp - 0x18], rax
jmp 0x1400647f5
jbe 0x1400647f5
mov rax, qword [rbp - 0x10]
sub rax, rdi
sar rax, 1
cmp rdx, rax
jbe 0x1400647d8
lea r8, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call fcn.140040de4
mov rdi, qword [rbp - 0x20]
jmp 0x1400647f5
sub rdx, rcx
je 0x1400647f1
movzx eax, si
mov rdi, r8
mov rcx, rdx
rep stosw word [rdi], ax
lea r8, [r8 + rdx*2]
mov rdi, qword [rbp - 0x20]
mov qword [rbp - 0x18], r8
lea r8, [rbp + 0x30]
mov rdx, rdi
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
jne 0x140064821
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x14006482f
mov rdx, qword [rbp - 0x20]
mov rcx, rbx
call fcn.1400038e4
mov edi, esi
lea rcx, [rbp - 0x20]
call fcn.14001e814
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x140065290
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400b1340], eax
call fcn.140065730
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400b1340], 0
jne case.default.0x1400652e6
mov ecx, 1
call fcn.140065730
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
push rdi
sal byte [rcx], 0x89
push rdx
invalid
jp 0x14011b717
mov esi, 0x2558299f
xchg edx, eax
cmpsd dword [rsi], dword [rdi]
pop rax
invalid
Function at 0x401465
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x0040cb50]
mov dword [rax], 1
mov rax, qword [0x0040cb60]
mov dword [rax], 1
mov rax, qword [0x0040cb70]
mov dword [rax], 1
mov rax, qword [0x0040cb40]
mov dword [rax], 1
mov rax, qword [0x0040ca00]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x4014c3
mov eax, 0
jmp 0x401570
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 0x4014ef
mov eax, 0
jmp 0x401570
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x401515
cmp eax, 0x20b
je 0x40153c
jmp 0x40156b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x401528
mov eax, 0
jmp 0x401570
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x401570
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x401557
mov eax, 0
jmp 0x401570
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x401570
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x401840
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rdx
mov r8d, edx
lea r9, [rsp + 0x3c]
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [0x004200e0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4018a0
mov eax, dword [rsp + 0x3c]
cmp rax, rbx
je 0x401891
mov r8d, 0xeb
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.read_size__size
call qword [sym.imp.msvcrt.dll__assert]
nop
add rsp, 0x40
pop rbx
ret
mov r8d, 0xea
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.bool_res
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x40186d
Function at 0x4018f0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x88
mov rcx, qword [0x004110a0]
test rcx, rcx
je 0x40193a
call qword [sym.imp.KERNEL32.dll_GetProcessId]
xor ecx, ecx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
test eax, eax
je 0x4019c0
mov rcx, qword [0x004110a0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x004110a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x0041e0c0], 0
jne 0x401950
add rsp, 0x88
ret
lea rax, [0x0040c0e8]
lea rdx, [0x0041e0e0]
mov qword [rsp + 0x40], 0
movq xmm1, rax
movq xmm0, rdx
mov edx, 0x414
mov dword [rsp + 0x48], 3
punpcklqdq xmm0, xmm1
mov word [rsp + 0x60], dx
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], rax
movaps xmmword [rsp + 0x50], xmm0
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop
add rsp, 0x88
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x400
xor edx, edx
mov qword [rsp + 0x30], 0
mov r8d, eax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Failed_to_send_CTRL_C_to_child_process.
call sub.msvcrt.dll_puts
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_puts
jmp 0x40191b
Function at 0x401d50
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0xc38
xor r9d, r9d
mov word [rcx], r9w
movzx eax, word [rdx]
mov rbx, rcx
mov rsi, r8
test ax, ax
je 0x401e48
lea rdi, [rdx + 2]
xor edx, edx
jmp 0x401da0
test rdx, rdx
je 0x401e28
mov word [rdx], ax
add rdx, 2
movzx eax, word [rdi]
add rdi, 2
test ax, ax
je 0x401e48
cmp ax, 0x25
jne 0x401d80
test rdx, rdx
je 0x401e60
xor ecx, ecx
lea r12, [rsp + 0x430]
mov word [rdx], cx
lea rdx, str.TEMP
mov rcx, r12
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x401f18
lea rdx, str.PROGRAM
mov rcx, r12
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x401f28
lea rdx, [0x0040c186]
mov rcx, r12
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x401ee0
lea rdx, str.TIME
mov rcx, r12
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x401e80
xor eax, eax
add rsp, 0xc38
pop rbx
pop rsi
pop rdi
pop r12
ret
test rsi, rsi
je 0x401e14
mov word [rbx], ax
movzx eax, word [rdi]
sub rsi, 1
add rbx, 2
add rdi, 2
test ax, ax
jne 0x401da0
xor eax, eax
mov word [rbx], ax
mov eax, 1
add rsp, 0xc38
pop rbx
pop rsi
pop rdi
pop r12
ret
xor r8d, r8d
lea rdx, [rsp + 0x430]
mov word [rsp + 0x430], r8w
jmp 0x401d90
lea rcx, [rsp + 0x28]
lea r12, [rsp + 0x30]
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9, qword [rsp + 0x28]
mov rcx, r12
lea r8, str._lld
mov edx, 0x400
call fcn.004017c0
mov r8, rsi
mov rdx, r12
mov rcx, rbx
call fcn.00401c50
jmp 0x401ed0
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x401ec8
xor edx, edx
jmp 0x401d90
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r12, [rsp + 0x30]
mov edx, pe_nt_image_headers64
lea r8, [0x0040c18e]
mov rcx, r12
mov r9d, eax
call fcn.004017c0
mov r8, rsi
mov rdx, r12
mov rcx, rbx
call fcn.00401c50
jmp 0x401ed0
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x401ed0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp word [rbx], 0
mov rdx, rsi
mov rcx, qword [rax]
mov rax, rbx
je 0x401f5e
nop dword [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x401f50
movzx r8d, word [rcx]
test r8w, r8w
je 0x401f93
test rdx, rdx
jne 0x401f79
jmp 0x401f9d
test rdx, rdx
je 0x4098ea
add rcx, 2
mov word [rax], r8w
add rax, 2
sub rdx, 1
movzx r8d, word [rcx]
test r8w, r8w
jne 0x401f70
xor edx, edx
mov word [rax], dx
jmp 0x401ed0
jmp 0x4098ea

Function at 0x4023a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
lea rax, [rbp - 0x28]
mov qword [rbp - 0x58], rax
mov ecx, 2
call fcn.00409590
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 0x58]
mov ecx, 2
call fcn.00409590
mov r8, rbx
mov rdx, qword [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x402fa6
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x004201c8]
test eax, eax
je 0x403034
lea rcx, [0x004201a0]
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x004201d0]
mov qword [rbp - 8], rax
jmp 0x40301b
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 0x40300f
cmp qword [rbp - 0x10], 0
je 0x40300f
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 0x402fd5
lea rcx, [0x004201a0]
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x403035
nop
add rsp, 0x30
pop rbp
ret

Function at 0x403140
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 0x403168
mov eax, 0
jmp 0x4031b6
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 0x403191
mov eax, 0
jmp 0x4031b6
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 0x4031b1
mov eax, 0
jmp 0x4031b6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x4031bc
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 0x40323a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x403231
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 0x403231
mov rax, qword [rbp - 8]
jmp 0x40324f
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 0x403204
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000ba40
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14000b520
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14000ba7f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140048308]
jmp 0x14000ba89
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140025360
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400319a0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140004b50
lea rcx, [rsp + 0x40]
call fcn.140031960
movzx eax, al
test eax, eax
jne 0x1400319e8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140031890
mov rax, qword [rsp + 0x70]
jmp 0x140031bb9
lea rcx, [rsp + 0x40]
call fcn.140004be0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140031910
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140004be0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.140031760
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140031a8e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140031890
mov rax, qword [rsp + 0x80]
jmp 0x140031bb9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140020ca0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140004b50
lea rcx, [rsp + 0x48]
call fcn.140004b90
movzx eax, al
test eax, eax
jne 0x140031af5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400057a0
lea rcx, [rsp + 0x40]
call fcn.140031890
mov rax, qword [rsp + 0x88]
jmp 0x140031bb9
lea rcx, [rsp + 0x48]
call fcn.140004be0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140004be0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.140031760
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140031b8b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400057a0
lea rcx, [rsp + 0x40]
call fcn.140031890
mov rax, qword [rsp + 0xa0]
jmp 0x140031bb9
lea rcx, [rsp + 0x48]
call fcn.140004bb0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400057a0
lea rcx, [rsp + 0x40]
call fcn.140031890
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x140038b50
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.140029460
lea rcx, [rsp + 0xb8]
call fcn.140029460
lea rcx, [rsp + 0x88]
call fcn.140029460
call fcn.140024eb0
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.140029410
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140038bf2
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.1400294c0
lea rcx, [rsp + 0xb8]
call fcn.1400294c0
lea rcx, [rsp + 0xe8]
call fcn.1400294c0
mov eax, dword [rsp + 0x54]
jmp 0x140038d98
call fcn.140024eb0
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.140029410
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x140038c52
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.1400294c0
lea rcx, [rsp + 0xb8]
call fcn.1400294c0
lea rcx, [rsp + 0xe8]
call fcn.1400294c0
mov eax, dword [rsp + 0x5c]
jmp 0x140038d98
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x140038cd8
call fcn.140024eb0
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.140029410
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x140038cc6
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.1400294c0
lea rcx, [rsp + 0xb8]
call fcn.1400294c0
lea rcx, [rsp + 0xe8]
call fcn.1400294c0
mov eax, dword [rsp + 0x64]
jmp 0x140038d98
lea rcx, [rsp + 0x88]
call fcn.140025060
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.140025060
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.140025060
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.1400294c0
lea rcx, [rsp + 0xb8]
call fcn.1400294c0
lea rcx, [rsp + 0xe8]
call fcn.1400294c0
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret
Function at 0x14003f190
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.140029460
lea rcx, [rsp + 0x48]
call fcn.140029460
call fcn.140024eb0
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.140029410
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14003f1ff
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400294c0
lea rcx, [rsp + 0x78]
call fcn.1400294c0
mov eax, dword [rsp + 0x24]
jmp 0x14003f290
call fcn.140024eb0
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.140029410
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14003f246
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400294c0
lea rcx, [rsp + 0x78]
call fcn.1400294c0
mov eax, dword [rsp + 0x2c]
jmp 0x14003f290
lea rcx, [rsp + 0x48]
call fcn.140025060
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.140025060
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400294c0
lea rcx, [rsp + 0x78]
call fcn.1400294c0
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140043600
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140046ad0
sub rsp, rax
mov rax, qword [0x14005e020]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14005fec0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400437f2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140043746
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140043746
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14004372b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1400436c8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400437b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140043811
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1400437ed
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140043811
jmp 0x14004369e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140001a70
add rsp, 0x1498
pop rdi
pop rsi
ret