joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c8dc
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 0x14001c90c
xor eax, eax
jmp 0x14001c9cf
mov rbp, rbx
cmp word [rax], si
je 0x14001c931
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001c918
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001c914
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.14001aeb4
movsxd r14, eax
test eax, eax
jne 0x14001c96f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001c905
mov rcx, r14
call fcn.140018f48
mov rdi, rax
test rax, rax
jne 0x14001c988
xor ecx, ecx
call fcn.1400167c4
jmp 0x14001c964
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.14001aeb4
test eax, eax
jne 0x14001c9b9
mov rcx, rdi
call fcn.1400167c4
jmp 0x14001c9c3
xor ecx, ecx
call fcn.1400167c4
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 0x14001f450
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140016464
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14001f4f1
cmp ebx, dword [rsp + 0x30]
je 0x14001f4ea
test esi, esi
je 0x14001f4ea
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001f4c5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001f4d2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001f4af
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001f4d6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001f4f3
mov eax, 1
jmp 0x14001f4f3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001fc24
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, [0x14007d9a0]
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 0x14001fc7b
cmp word [rdx], r13w
jne 0x14001fc7b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001fc80
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001fda5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001fdc6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001fcb9
mov rdx, r9
mov word [rbx], cx
jmp 0x14001fce0
cmp r9, r8
jae 0x14001fcf0
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 0x14001fc9a
jmp 0x14001fda5
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 0x14001fd9a
cmp dword [rsp + 0x80], esi
je 0x14001fd9a
lea r8, [0x14007d9a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001fd72
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001fd42
mov word [rbx], r13w
jmp 0x14001fda2
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 0x14001fd4f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001fda2
cmp word [rsp + 0x70], r13w
jne 0x14001fd7f
cmp rbx, r14
je 0x14001fd3c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140018ea4
cmp word [rsp + 0x70], r13w
je 0x14001fda5
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, [0x14007d9a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001fd9f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001fda5
Function at 0x140022784
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.140018ea4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140018ea4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400228d4
cmp rax, 0xffffffffffffffff
je 0x1400228d4
xor edi, edi
test rbp, rbp
jle 0x14002287f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140017abc
mov rbx, rax
test rax, rax
jne 0x14002280c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140022875
mov edx, 0x8000
mov ecx, r14d
call fcn.1400129b4
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.140015de4
cmp eax, 0xffffffff
je 0x140022855
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002281c
mov edx, r15d
mov ecx, r14d
call fcn.1400129b4
jmp 0x140022875
cmp byte [rsi + 0x38], dil
je 0x14002286c
cmp dword [rsi + 0x34], 5
jne 0x14002286c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140022875
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400167c4
jmp 0x1400228e8
jns 0x1400228e8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140018ea4
cmp rax, 0xffffffffffffffff
jne 0x1400228a0
cmp byte [rsi + 0x30], dil
je 0x1400228e8
mov edi, dword [rsi + 0x2c]
jmp 0x1400228e8
mov ecx, r14d
call fcn.14001cefc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400228e8
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 0x1400228e8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400228e1
mov eax, dword [rsi + 0x2c]
jmp 0x1400228e6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140018ea4
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 0x140023370
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140023398
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140023398
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fc4d2260
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d2c62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f5108]
test eax, eax
je 0x2fc4d2cfa
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f5110]
mov qword [rbp - 8], rax
jmp 0x2fc4d2cde
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 0x2fc4d2cd2
cmp qword [rbp - 0x10], 0
je 0x2fc4d2cd2
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 0x2fc4d2c98
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d2cfb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d2e00
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 0x2fc4d2e28
mov eax, 0
jmp 0x2fc4d2e76
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 0x2fc4d2e51
mov eax, 0
jmp 0x2fc4d2e76
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 0x2fc4d2e71
mov eax, 0
jmp 0x2fc4d2e76
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d2e7c
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 0x2fc4d2efa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d2ef1
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 0x2fc4d2ef1
mov rax, qword [rbp - 8]
jmp 0x2fc4d2f0f
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 0x2fc4d2ec4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x180024200
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180024228
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180024228
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x18002a830
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
test edx, edx
je 0x18002a84d
mov eax, 1
cmp edx, eax
jne 0x18002a8a2
mov qword [0x180075668], rcx
add rsp, 0x28
ret
cmp qword [0x180060a70], 0
je 0x18002a89d
cmp qword [0x180060a78], 8
mov qword [rsp + 0x20], rbx
lea rbx, [0x180060a60]
mov rcx, rbx
cmovae rcx, qword [0x180060a60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [0x180060a78], 8
cmovae rbx, qword [0x180060a60]
xor eax, eax
mov qword [0x180060a70], rax
mov word [rbx], ax
mov rbx, qword [rsp + 0x20]
mov eax, 1
add rsp, 0x28
ret
Function at 0x140006710
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14008b040]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.140002aa0
mov rcx, rax
test rax, rax
je 0x1400068b0
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
call fcn.140006330
call fcn.140002aa0
mov rcx, rax
test rax, rax
je 0x1400068bb
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea r9, str.processlasso.log
mov r8, qword [rsp + 0x30]
lea rdx, str._s_s
lea rcx, [rsp + 0x38]
call fcn.14000e1f0
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400067b2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rdx, [rbx - 0x18]
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400067d0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
xor esi, esi
call fcn.140002aa0
mov rcx, rax
test rax, rax
je 0x1400068bb
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], esi
lea r9, str.processlasso.log
mov r8, qword [rsp + 0x30]
lea rdx, str._s_s._u
lea rcx, [rsp + 0x40]
call fcn.14000e1f0
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000685d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14000685d
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000684c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
inc esi
call fcn.140002aa0
mov rcx, rax
test rax, rax
je 0x1400068bb
jmp 0x1400067e3
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140006877
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140006893
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400454d0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov ecx, 0x80004005
call fcn.140002830
nop
mov ecx, 0x80004005
call fcn.140002830
int3
Function at 0x140012ac0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1ff0]
mov eax, 0x20f0
call fcn.140046160
sub rsp, rax
mov rax, qword [0x14008b040]
xor rax, rsp
mov qword [rbp + 0x1fe0], rax
mov rsi, r8
mov r14d, dword [rbp + 0x2048]
mov dword [rsp + 0x28], r14d
xor r15d, r15d
mov qword [rsp + 0x20], r15
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdi, rax
cmp eax, 0x20
ja 0x140012ce4
call fcn.140002aa0
mov rcx, rax
test rax, rax
je 0x140012d0d
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
xor edx, edx
mov r8d, 0x1ffe
lea rcx, [rbp - 0x1e]
call fcn.14006cda0
mov word [rbp - 0x20], r15w
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 1]
xor r8d, r8d
lea rdx, str.https_shellopencommand
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140012cc8
mov dword [rsp + 0x38], 0x2000
mov dword [rsp + 0x3c], 1
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140012bce
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140012cc8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.__1_
lea rcx, [rbp - 0x20]
call fcn.1400475dc
test rax, rax
jne 0x140012bfe
lea rdx, [0x14007cc1c]
lea rcx, [rbp - 0x20]
call fcn.1400475dc
test rax, rax
je 0x140012c02
mov word [rax], r15w
mov r9, rsi
lea r8, [rbp - 0x20]
lea rdx, str._s___s_
lea rcx, [rsp + 0x40]
call fcn.14000e1f0
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm0
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov r8d, 3
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140013730
mov edx, r14d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WinExec]
test eax, eax
je 0x140012c8a
sub eax, 2
je 0x140012c8a
sub eax, 1
je 0x140012c8a
cmp eax, 8
je 0x140012c8a
mov edi, 0x22
jmp 0x140012cb3
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r15
mov r9, rsi
lea r8, str.iexplore.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdi, rax
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x140012cc8
call fcn.1400515e4
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140012ce4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rax, rdi
mov rcx, qword [rbp + 0x1fe0]
xor rcx, rsp
call fcn.1400454d0
mov rbx, qword [rsp + 0x2120]
add rsp, 0x20f0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002830
int3
Function at 0x180001a00
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001a28
xor eax, eax
lea r8, [sym.hello_world.dll_MessageBoxThread]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140009000
Capabilities:
Acquire debug privileges

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
call fcn.14000bc00
mov qword [rsp + 0x50], rax
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov rdi, rax
mov ecx, 8
mov edx, 0x20
call fcn.14000f3e0
lea r8, [rsp + 0x50]
mov rcx, rdi
mov edx, eax
call qword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
jne 0x140009065
call fcn.14000f790
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], edx
mov qword [rsp + 0x38], 1
test rax, rax
je 0x140009065
lea rcx, [rsp + 0x40]
call fcn.14000f400
lea rcx, [rsp + 0x58]
call fcn.14000f3f0
mov dword [rsp + 0x58], 1
lea rdi, [rsp + 0x5c]
mov dword [rsp + 0x64], 2
lea rcx, str.SeDebugPrivilege
call fcn.14000fce0
xor ecx, ecx
mov rdx, rax
mov r8, rdi
call qword [sym.imp.advapi32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1400090c8
call fcn.14000f790
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], edx
mov qword [rsp + 0x38], 1
test rax, rax
je 0x1400090c8
lea rcx, [rsp + 0x40]
call fcn.14000f400
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x14000910d
mov ecx, eax
call fcn.14000fd00
mov ecx, eax
call fcn.14000f7b0
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], edx
mov qword [rsp + 0x38], 1
test rax, rax
je 0x140009101
lea rcx, [rsp + 0x40]
call fcn.14000f400
lea rax, [0x14008385b]
jmp 0x14000919f
mov rdi, qword [rsp + 0x50]
xor ecx, ecx
call fcn.14000f3d0
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea r8, [rsp + 0x58]
mov rcx, rdi
mov r9d, 0x10
call qword [sym.imp.advapi32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14000915f
call fcn.14000f790
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], edx
mov qword [rsp + 0x38], 1
test rax, rax
je 0x14000915f
lea rcx, [rsp + 0x40]
call fcn.14000f400
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x1400091b4
mov ecx, eax
call fcn.14000fd00
mov ecx, eax
call fcn.14000f7b0
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], edx
mov qword [rsp + 0x38], 1
test rax, rax
je 0x140009198
lea rcx, [rsp + 0x40]
call fcn.14000f400
lea rax, str.Could_not_AdjustTokenPrivilegesCould_not_LookupPrivilegeValueWError_when_calling_HeapFreeCould_not_get_process_heapCould_not_connect_to_device_Could_not_cast_table_informationCould_not_find_address_for_handleCould_not_find_handleInformationTable
mov qword [rsi], rax
mov qword [rsi + 8], 0x1f
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x1400091e9
call fcn.14000f790
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], edx
mov qword [rsp + 0x38], 1
test rax, rax
je 0x1400091e9
lea rcx, [rsp + 0x40]
call fcn.14000f400
mov byte [rsi + 8], 1
mov qword [rsi], 0
jmp 0x1400091aa
Function at 0x140066780
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140066810
jmp 0x1400667ff
jae 0x1400668d0
cmp r8, 0x201
jae 0x140066810
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140066868
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14006683f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400813f0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140066891
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140066938
mov r8d, r14d
cmp r15, r8
jne 0x1400667f0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14006695b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400667ff
jmp 0x140066810
cmp rsi, r8
jb 0x140066975
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14006a360
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140066921
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140005a30
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140066909
jmp 0x140066921
lea rcx, str.internal_error:_entered_unreachable_code_rustc_79e9716c980570bfd1f666e3b16ac583f0168962library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400821a0
jmp 0x14006698a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400825f0
ud2
Function at 0x14006f6e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14008f298]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14006f724
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14006f78a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14006f7c1
test eax, eax
js 0x14006f79b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14006f7b4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14006a010
mov rcx, rax
call fcn.140064510
mov ecx, 7
int 0x29
ud2