joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bf0cc
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140192630]
xor rax, rsp
mov qword [rbp - 0x10], rax
cmp dword [r8 + 0xa0], 0xffffffff
mov rdi, r9
mov r14, qword [rbp + 0x60]
mov rsi, r8
mov r15d, edx
mov r12, rcx
je 0x1400bf118
and qword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call fcn.1400bef38
lea rbx, [rsi + 0x40]
mov rcx, rbx
lea rdx, [rbp - 0x40]
call fcn.140095be8
mov eax, dword [rbp - 0x40]
bswap eax
mov dword [rbp - 0x28], eax
mov eax, dword [rbp - 0x3c]
bswap eax
mov dword [rbp - 0x24], eax
mov eax, dword [rbp - 0x38]
bswap eax
mov dword [rbp - 0x20], eax
mov eax, dword [rbp - 0x34]
bswap eax
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x30]
bswap eax
mov dword [rbp - 0x18], eax
test rdi, rdi
je 0x1400bf18b
cmp byte [r14], 0
je 0x1400bf18b
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rbx + 0x20], xmm0
movups xmm1, xmmword [rdi + 0x30]
movups xmmword [rbx + 0x30], xmm1
movups xmm0, xmmword [rdi + 0x40]
movups xmmword [rbx + 0x40], xmm0
movups xmm1, xmmword [rdi + 0x50]
movups xmmword [rbx + 0x50], xmm1
jmp 0x1400bf1c6
mov rax, rsi
mov ecx, 4
movdqu xmm0, xmmword [rax]
pxor xmm0, xmmword [0x140159ae0]
movdqu xmmword [rax], xmm0
lea rax, [rax + 0x10]
sub rcx, 1
jne 0x1400bf193
mov rcx, rbx
call fcn.140095d04
mov r8d, 0x40
mov rdx, rsi
mov rcx, rbx
call fcn.140095d2c
test rdi, rdi
je 0x1400bf203
cmp byte [r14], 0
jne 0x1400bf203
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rdi + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rdi + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rdi + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rdi + 0x50], xmm1
mov byte [r14], 1
mov r8d, 0x14
lea rdx, [rbp - 0x28]
mov rcx, rbx
call fcn.140095d2c
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.140095be8
mov eax, dword [rbp - 0x40]
bswap eax
mov dword [rbp - 0x28], eax
mov eax, dword [rbp - 0x3c]
bswap eax
mov dword [rbp - 0x24], eax
mov eax, dword [rbp - 0x38]
bswap eax
mov dword [rbp - 0x20], eax
mov eax, dword [rbp - 0x34]
bswap eax
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x30]
bswap eax
mov dword [rbp - 0x18], eax
test r15d, r15d
je 0x1400bf25d
mov r8, r15
lea rdx, [rbp - 0x28]
mov rcx, r12
call fcn.140120d20
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140101680
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400c2578
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x48]
sub rsp, 0x140
mov rax, qword [0x140192630]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rax, qword [rcx]
mov rsi, rcx
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [fcn.140016c20]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call rbx
mov rax, qword [rsi]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140016c20]
mov r8d, 0x40
lea rdx, [rsp + 0x20]
mov rcx, rsi
call rbx
cmp eax, 0x40
jne 0x1400c2688
cmp byte [rsp + 0x20], 0x4d
jne 0x1400c2688
cmp byte [rsp + 0x21], 0x5a
jne 0x1400c2688
mov rax, qword [rsi]
mov ebx, dword [rsp + 0x5c]
mov rdi, qword [rax + 0x20]
mov rcx, rdi
call qword [fcn.140016c20]
xor r8d, r8d
mov edx, ebx
mov rcx, rsi
call rdi
mov rax, qword [rsi]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140016c20]
mov edi, 0x108
lea rdx, [rsp + 0x20]
mov r8d, edi
mov rcx, rsi
call rbx
cmp eax, edi
jne 0x1400c2688
cmp byte [rsp + 0x20], 0x50
jne 0x1400c2688
cmp byte [rsp + 0x21], 0x45
jne 0x1400c2688
cmp byte [rsp + 0x22], 0
jne 0x1400c2688
cmp byte [rsp + 0x23], 0
jne 0x1400c2688
cmp byte [rsp + 0x38], 0xb
jne 0x1400c2688
cmp byte [rsp + 0x39], 1
jne 0x1400c2676
cmp dword [rbp - 0x6c], 4
jbe 0x1400c2688
mov eax, dword [rbp - 0x48]
jmp 0x1400c268a
cmp byte [rsp + 0x39], 2
jne 0x1400c2688
cmp dword [rbp - 0x5c], 4
jbe 0x1400c2688
mov eax, dword [rbp - 0x38]
jmp 0x1400c268a
xor eax, eax
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140101680
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400c3244
Capabilities:
Hide graphical window

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
and qword [rax + 0x20], 0
mov rbp, rcx
and qword [rax + 0x10], 0
mov r14, r8
mov rax, qword [rdx]
mov rdi, rdx
mov rbx, qword [rax + 0x90]
mov rcx, rbx
call qword [fcn.140016c20]
lea rdx, [rsp + 0x78]
mov rcx, rdi
call rbx
mov esi, eax
test eax, eax
js 0x1400c3346
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x1400c333d
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140016c20]
lea r8, [rsp + 0x68]
mov rcx, rdi
lea rdx, [0x14015e610]
call rbx
mov esi, eax
test eax, eax
js 0x1400c331e
mov rdi, qword [rsp + 0x68]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call qword [fcn.140016c20]
mov rcx, rdi
call rbx
mov esi, eax
test eax, eax
js 0x1400c3304
mov rdi, qword [rsp + 0x68]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x28]
mov rcx, rbx
call qword [fcn.140016c20]
mov rdx, r14
mov rcx, rdi
call rbx
mov esi, eax
mov rdi, qword [rsp + 0x68]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140016c20]
mov rcx, rdi
call rbx
mov rdi, qword [rsp + 0x78]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140016c20]
mov rcx, rdi
call rbx
mov rdi, qword [rsp + 0x78]
test esi, esi
js 0x1400c3346
test rdi, rdi
jne 0x1400c33b7
cmp qword [rbp + 0x10], 0
je 0x1400c33b7
cmp qword [rbp + 0x40], 0
jne 0x1400c33b7
mov rdx, qword [rbp + 0x38]
test rdx, rdx
je 0x1400c33b7
mov rcx, rbp
call fcn.1400c3ce0
mov rbx, rax
test rax, rax
je 0x1400c33b7
mov rcx, qword [rbp + 8]
xor r9d, r9d
mov dword [rsp + 0x30], 0x204
xor r8d, r8d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea edx, [r9 + 1]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rbp + 0x10]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbp + 0x10]
mov rdx, rbx
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbx
call fcn.140127084
mov rbx, qword [rsp + 0x60]
not esi
mov rbp, qword [rsp + 0x70]
shr esi, 0x1f
mov al, sil
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400c44b0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
mov eax, 0x2040
call fcn.140101610
sub rsp, rax
mov rax, qword [0x140192630]
xor rax, rsp
mov qword [rsp + 0x2030], rax
xor ebx, ebx
mov rdi, rdx
cmp dword [rdx + 0x10], 6
mov rbp, rcx
mov esi, 5
mov r14d, 0x400c
jb 0x1400c4542
mov rax, qword [rdx]
cmp word [rax + 0x78], r14w
jne 0x1400c4542
mov rax, qword [rax + 0x80]
mov rcx, qword [rax + 8]
cmp word [rcx], 0x5c
je 0x1400c4530
cmp word [rcx], 0x2f
je 0x1400c4530
mov r8d, esi
lea rdx, str.file:
call fcn.14009a02c
test eax, eax
jne 0x1400c4542
mov rax, qword [rdi]
or edx, 0xffffffff
mov rcx, qword [rax + 8]
mov word [rcx], dx
jmp 0x1400c4727
cmp dword [rbp + 0x4c], ebx
je 0x1400c4727
cmp byte [rbp + 0x49], bl
je 0x1400c4727
cmp dword [rdi + 0x10], 6
jb 0x1400c4727
mov rax, qword [rdi]
cmp word [rax + 0x78], r14w
jne 0x1400c4727
mov rax, qword [rax + 8]
or edx, 0xffffffff
mov word [rax], dx
cmp dword [rbp + 0x4c], 2
mov rax, qword [rdi]
mov rcx, qword [rax + 0x80]
mov rdi, qword [rcx + 8]
jne 0x1400c4591
call fcn.1400c2ea8
mov esi, eax
lea r15, str.open
mov edx, esi
lea rbp, [0x1401423c8]
mov r14d, 1
test esi, esi
je 0x1400c46da
sub edx, r14d
je 0x1400c46ab
sub edx, r14d
je 0x1400c4686
cmp edx, 2
jne 0x1400c46fc
mov dword [rsp + 0x28], 0x800
lea r9, [rsp + 0x30]
mov r8, rbp
mov qword [rsp + 0x20], rbp
lea rdx, str.http_shellopencommand
mov rcx, 0xffffffff80000000
call fcn.1400a8710
lea edx, [r14 + 0x21]
cmp word [rsp + 0x30], dx
jne 0x1400c470c
lea rcx, [rsp + 0x32]
call fcn.140120ac0
mov rsi, rax
test rax, rax
je 0x1400c470c
lea rcx, [rsp + 0x30]
call fcn.1400810ec
mov rcx, rax
lea r8d, [r14 + 8]
lea rdx, str.opera.exe
call fcn.14009a02c
test eax, eax
jne 0x1400c470c
mov r9, rdi
mov word [rsi + 2], bx
lea r8, str._newwindow__s
mov edx, 0x800
lea rcx, [rsp + 0x1030]
call fcn.140002910
lea r8, [rsp + 0x30]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x1030]
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rbx, rax
jmp 0x1400c4706
mov r9, rdi
lea r8, str.__new_window__s
mov edx, 0x800
lea rcx, [rsp + 0x1030]
call fcn.140002910
lea r8, str.chrome.exe
jmp 0x1400c4661
mov r9, rdi
lea r8, str._new_window__s
mov edx, 0x800
lea rcx, [rsp + 0x1030]
call fcn.140002910
mov dword [rsp + 0x28], r14d
lea r8, str.firefox.exe
mov qword [rsp + 0x20], rbp
jmp 0x1400c466b
mov dword [rsp + 0x28], r14d
lea r8, str.iexplore.exe
mov r9, rdi
mov qword [rsp + 0x20], rbp
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rbx, rax
lea eax, [rsi - 3]
test eax, 0xfffffffd
je 0x1400c470c
cmp rbx, 0x20
ja 0x1400c4727
mov dword [rsp + 0x28], r14d
xor r9d, r9d
mov r8, rdi
mov qword [rsp + 0x20], rbp
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.140101680
lea r11, [rsp + 0x2040]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400c55fc
Capabilities:
Get disk information
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x4360]
mov eax, 0x4460
call fcn.140101610
sub rsp, rax
mov rax, qword [0x140192630]
xor rax, rsp
mov qword [rbp + 0x4350], rax
mov rax, rdx
mov rdi, rcx
mov r14d, 0x800
lea rdx, [rbp + 0xf50]
mov r8d, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7fe
ja 0x1400c5830
mov r9d, r14d
lea r8, [rbp + 0xf50]
lea rdx, [rbp + 0xf50]
lea rcx, [0x1401c6f50]
call fcn.140045074
lea rcx, [rbp + 0xf50]
call fcn.1400810ec
mov edx, 0x3a
mov rcx, rax
call fcn.140120ac0
xor esi, esi
test rax, rax
je 0x1400c56d8
cmp byte [0x1401f7992], sil
jne 0x1400c56d8
lea ecx, [rsi + 0x65]
call fcn.140090e20
mov ecx, 0x528
mov rbx, rax
call fcn.140090e20
mov rdx, rax
lea r9d, [rsi + 0x31]
mov r8, rbx
mov rcx, rdi
call fcn.1400d19e0
cmp eax, 1
jne 0x1400c582c
mov byte [0x1401f7992], al
mov r8, r14
lea rdx, [rbp + 0xf50]
lea rcx, [rsp + 0x50]
call fcn.140096ef0
lea rcx, [rsp + 0x50]
call fcn.140081140
lea rcx, [rsp + 0x50]
call fcn.1400810ec
mov ebx, 0xa00
cmp word [rax], si
je 0x1400c5796
jmp 0x1400c5784
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140012a28
test al, al
jne 0x1400c5796
mov ecx, 0x14e
call fcn.140090e20
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, str.__s__n_s
mov rdx, rbx
lea rcx, [rbp + 0x2f50]
call fcn.140002910
mov ecx, 0x65
call fcn.140090e20
mov r8, rax
lea rdx, [rbp + 0x2f50]
mov r9d, 0x34
mov rcx, rdi
call fcn.1400d19e0
cmp eax, 6
jne 0x1400c582c
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.14006ffa8
lea rcx, [rsp + 0x50]
call fcn.140070448
test al, al
je 0x1400c5710
mov r8, r14
lea rdx, [rbp + 0x1f50]
lea rcx, [rbp + 0xf50]
call fcn.140080520
mov dword [rsp + 0x38], esi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
lea rcx, [rbp + 0x1f50]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x1400c5830
test dword [rsp + 0x40], 0x80000
je 0x1400c5830
mov ecx, 0x65e
call fcn.140090e20
mov r8, rax
lea r9, [rbp + 0x1f50]
mov rdx, rbx
lea rcx, [rbp + 0x2f50]
call fcn.140002910
mov ecx, 0x65
call fcn.140090e20
mov r8, rax
lea rdx, [rbp + 0x2f50]
mov r9d, 0x30
mov rcx, rdi
call fcn.1400d19e0
xor al, al
jmp 0x1400c5832
mov al, 1
mov rcx, qword [rbp + 0x4350]
xor rcx, rsp
call fcn.140101680
lea r11, [rsp + 0x4460]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400cf69c
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x1400cf73c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rdx, [0x1401ac1ce]
lea rcx, str.Rar_CM
mov r8d, 0x800
xor ebp, ebp
call fcn.1400d0414
mov rsi, rax
test rax, rax
je 0x1400cf728
or r8, 0xffffffffffffffff
mov rdi, r8
inc rdi
cmp word [rbx + rdi*2], bp
jne 0x1400cf6e6
inc r8
cmp word [rbx + r8*2], bp
jne 0x1400cf6ef
mov r9, rsi
mov edx, 2
mov rcx, rbx
call fcn.140128494
mov rcx, rsi
call fcn.1401280c8
mov eax, dword [0x1401ad1d0]
test rdi, rdi
mov ecx, 3
cmovne eax, ecx
mov dword [0x1401ad1d0], eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400d0104
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x1040
call fcn.140101610
sub rsp, rax
mov rax, qword [0x140192630]
xor rax, rsp
mov qword [rsp + 0x1030], rax
xor ebp, ebp
mov sil, r8b
cmp word [0x14019cc68], bp
mov rdi, rdx
mov rbx, rcx
je 0x1400d014b
lea rdx, [0x14019cc68]
jmp 0x1400d01e4
lea r9, [0x1401423c8]
mov dword [rsp + 0x20], edi
mov r8, rbx
lea rdx, str.TempFolder
lea rcx, [0x140142cc8]
call fcn.1400a8858
mov r8d, 0x800
mov word [rsp + 0x30], bp
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
movzx ecx, word [rbx]
test cx, cx
je 0x1400d01ae
dec eax
cmp eax, 0x7fe
ja 0x1400d01a6
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140096ef0
movzx ecx, word [rbx]
test cx, cx
jne 0x1400d01b8
test sil, sil
je 0x1400d01c6
test cx, cx
je 0x1400d01ec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400d01ec
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400d01da
cmp word [rbx], bp
jne 0x1400d01ec
lea rdx, str._rartemp
mov rcx, rbx
mov r8, rdi
call fcn.140096ef0
mov rdx, rdi
mov rcx, rbx
call fcn.14007f710
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140101680
mov rbx, qword [rsp + 0x1070]
add rsp, 0x1040
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400d021c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor r8d, r8d
lea rdx, str.NoDrives
lea rcx, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
mov ebx, eax
call fcn.1400a86cc
not eax
and eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1400d04f0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov eax, 0x2030
call fcn.140101610
sub rsp, rax
mov rax, qword [0x140192630]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov rdi, rdx
mov rsi, r8
mov rdx, rcx
mov r8d, 0x7ff
lea rcx, [rsp + 0x1020]
mov bl, r9b
call fcn.140096ef0
xor ebp, ebp
test bl, bl
je 0x1400d0594
cmp byte [0x1401c4560], bpl
jne 0x1400d0550
cmp byte [0x1401c44ab], bpl
mov eax, ebp
je 0x1400d0555
mov eax, 1
test al, al
lea rcx, [rsp + 0x1020]
mov r9d, ebp
setne r9b
add r9d, 0x61
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bp
jne 0x1400d056e
lea rcx, [rsp + 0x1020]
mov edx, 2
lea rcx, [rcx + rax*2]
lea r8, [0x14015b4c8]
call fcn.140002910
mov ebx, 0x800
lea rcx, [rsp + 0x20]
mov edx, ebx
xor r8d, r8d
call fcn.1400d0104
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.14007f710
mov r8d, ebx
lea rdx, [rsp + 0x1020]
lea rcx, [rsp + 0x20]
call fcn.140096ec8
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.14007091c
test rax, rax
je 0x1400d05ff
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400d05ff
mov r8, rsi
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140096ef0
mov al, 1
jmp 0x1400d0624
mov ecx, 0x1f7
call fcn.140090e20
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1400d63e4
lea rcx, [0x1401d5778]
call fcn.140069ec0
xor al, al
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.140101680
mov rbx, qword [rsp + 0x2068]
add rsp, 0x2030
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400d0648
Capabilities:
Capture screenshot

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, 0x80
mov rbx, rcx
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
mov r12, rax
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov r15, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rcx, r15
mov r14, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea r8, [rsp + 0x60]
mov edx, 0x20
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.GDI32.dll_GetObjectW]
mov r8d, dword [rsp + 0x68]
mov rcx, r15
mov edx, dword [rsp + 0x64]
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rbx
mov rcx, r14
mov rsi, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdx, rsi
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [rsp + 0x68]
mov rbx, rax
mov r9d, dword [rsp + 0x64]
mov ecx, r9d
mov dword [rsp + 0x50], 0xcc0020
neg ecx
mov dword [rsp + 0x48], edx
mov dword [rsp + 0x40], ecx
mov rcx, rbp
and dword [rsp + 0x38], 0
lea r8d, [r9 - 1]
mov dword [rsp + 0x30], r8d
xor r8d, r8d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], edx
xor edx, edx
call qword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [rsp + 0x68]
xor r8d, r8d
mov r9d, dword [rsp + 0x64]
xor edx, edx
mov dword [rsp + 0x40], 0xcc0020
mov rcx, r14
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.GDI32.dll_BitBlt]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, rbp
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r15
mov rcx, r12
call qword [sym.imp.USER32.dll_ReleaseDC]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret

Function at 0x1400d0ad4
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov edx, 1
lea rcx, str.Shutdown
call fcn.14000e638
test eax, eax
je 0x1400d0b28
cmp byte [0x1401d5782], 0
jne 0x1400d0b28
cmp byte [0x1401b46e8], 0
jne 0x1400d0b28
lea rdx, [rsp + 0x38]
mov byte [rsp + 0x38], 1
lea rcx, [0x1400cfec0]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp byte [rsp + 0x38], 0
je 0x1400d0b28
mov ecx, ebx
call fcn.1400979cc
add rsp, 0x20
pop rbx
ret

Function at 0x1400d15b8
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov rax, rdx
mov rdx, rcx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x1400d15d4
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1050
call fcn.140101610
sub rsp, rax
mov rax, qword [0x140192630]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
call fcn.1400809e8
test al, al
je 0x1400d1672
movzx r9d, word [rsi]
lea r8, str.___c:__
mov edx, 0xa
lea rcx, [rsp + 0x20]
call fcn.140002910
mov r8d, 0x800
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7fe
ja 0x1400d165c
cmp word [rsp + 0x40], 0x25
je 0x1400d165c
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140096ef0
jmp 0x1400d1672
movzx r9d, word [rsi]
lea r8, str._c:_
mov rdx, rdi
mov rcx, rbx
call fcn.140002910
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140101680
add rsp, 0x1050
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400d178c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rdx, rcx
lea r8, [0x140158570]
mov rcx, qword [0x1401d5590]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400d17be
xor eax, eax
jmp 0x1400d18d7
mov rcx, qword [0x1401d5590]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x1400d17b7
mov rcx, qword [0x1401d5590]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400d17b7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400d17b7
and qword [rsp + 0x50], 0
mov edx, edi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbp, rax
test rax, rax
je 0x1400d18d2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400d18c9
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call fcn.140120d20
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1400d18c0
mov rcx, qword [rsp + 0x48]
xor edx, edx
call fcn.1400d152c
mov rdi, qword [rsp + 0x48]
mov rsi, rax
mov rdx, qword [rdi]
mov rbx, qword [rdx + 0x10]
mov rcx, rbx
call qword [fcn.140016c20]
mov rcx, rdi
call rbx
test rsi, rsi
je 0x1400d18c0
mov ecx, dword [rsi + 0x10]
and dword [rsi + 0x10], 0
test ecx, ecx
jne 0x1400d18a7
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x50]
mov r8d, 0xffffff
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x1400d18a7
mov dword [rsi + 0x10], eax
mov rax, qword [rsi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140016c20]
mov edx, 1
mov rcx, rsi
call rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400d1f40
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x1400d1f54
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140192630]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
call fcn.1400809e8
test al, al
je 0x1400d1f9d
movzx r9d, word [rbx]
lea r8, [0x14015b748]
mov edx, 0xa
lea rcx, [rsp + 0x20]
call fcn.140002910
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140101680
add rsp, 0x40
pop rbx
ret

Function at 0x1400d1fb0
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x1400d1fed
mov ecx, 0x627
call fcn.140090e20
mov rcx, rax
mov rdx, rdi
call fcn.1400d63e4
lea rcx, [0x1401d5778]
call fcn.140069ec0
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret