joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140053184
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 0x1400531b4
xor eax, eax
jmp 0x140053277
mov rbp, rbx
cmp word [rax], si
je 0x1400531d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400531c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400531bc
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.140050e70
movsxd r14, eax
test eax, eax
jne 0x140053217
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400531ad
mov rcx, r14
call fcn.14004a950
mov rdi, rax
test rax, rax
jne 0x140053230
xor ecx, ecx
call fcn.14004a4cc
jmp 0x14005320c
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.140050e70
test eax, eax
jne 0x140053261
mov rcx, rdi
call fcn.14004a4cc
jmp 0x14005326b
xor ecx, ecx
call fcn.14004a4cc
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 0x140053294
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14005331b
mov rsi, rbx
cmp word [rax], bp
je 0x1400532da
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400532c4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400532c0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004a950
mov rdi, rax
test rax, rax
je 0x140053308
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14005ce60
mov rbp, rdi
xor ecx, ecx
call fcn.14004a4cc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400568e4
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.140048f30
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 0x140056985
cmp ebx, dword [rsp + 0x30]
je 0x14005697e
test esi, esi
je 0x14005697e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140056959
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140056966
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140056943
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14005696a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140056987
mov eax, 1
jmp 0x140056987
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005b11c
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.140039820
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14005b1a6
cmp byte [rbp - 0x21], r15b
je 0x14005b1a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14005b1dc
call fcn.14004ad08
test eax, eax
jne 0x14005b1c8
cmp byte [rbp - 0x21], r15b
je 0x14005b1c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14005b1dc
cmp byte [rbp - 0x21], r15b
je 0x14005b1d9
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.1400396a4
test eax, eax
jne 0x14005b27c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140039820
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14005b21b
cmp byte [rbp - 0x21], r15b
je 0x14005b250
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14005b250
call fcn.14004ad08
test eax, eax
jne 0x14005b23c
cmp byte [rbp - 0x21], r15b
je 0x14005b235
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14005b250
cmp byte [rbp - 0x21], r15b
je 0x14005b24d
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.1400396a4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14005b27c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14005b27f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14005b28d
mov rcx, rdi
call fcn.14004a4cc
cmp byte [rbp + 0x3f], r15b
je 0x14005b29c
mov rcx, qword [rbp + 0x27]
call fcn.14004a4cc
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 0x14005c0a4
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.14004d930
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14004d930
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14005c1f4
cmp rax, 0xffffffffffffffff
je 0x14005c1f4
xor edi, edi
test rbp, rbp
jle 0x14005c19f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14004c3d8
mov rbx, rax
test rax, rax
jne 0x14005c12c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14005c195
mov edx, 0x8000
mov ecx, r14d
call fcn.140046ca4
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.14004a1c4
cmp eax, 0xffffffff
je 0x14005c175
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14005c13c
mov edx, r15d
mov ecx, r14d
call fcn.140046ca4
jmp 0x14005c195
cmp byte [rsi + 0x38], dil
je 0x14005c18c
cmp dword [rsi + 0x34], 5
jne 0x14005c18c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14005c195
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004a4cc
jmp 0x14005c208
jns 0x14005c208
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14004d930
cmp rax, 0xffffffffffffffff
jne 0x14005c1c0
cmp byte [rsi + 0x30], dil
je 0x14005c208
mov edi, dword [rsi + 0x2c]
jmp 0x14005c208
mov ecx, r14d
call fcn.140054390
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14005c208
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 0x14005c208
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14005c201
mov eax, dword [rsi + 0x2c]
jmp 0x14005c206
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14004d930
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 0x14005ca10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005ca38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005ca38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002a9f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14002d010]
jne 0x14000212a
rol rcx, 0x10
test cx, 0xffff
jne 0x140002126
repz ret
ror rcx, 0x10
jmp 0x1400029f8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14002e6f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14002e7e8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140002a7d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14002e6f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140002a9f
mov rax, qword [rsp + 0x88]
mov qword [0x14002e7e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14002e788], rax
mov rax, qword [0x14002e7e8]
mov qword [0x14002e660], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14002e770], rax
mov dword [0x14002e650], 0xc0000409
mov dword [0x14002e654], 1
mov rax, qword [0x14002d010]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14002d018]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14002e6e8], eax
mov ecx, 1
call fcn.14000562c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400260e0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14002e6e8], 0
jne 0x140002b26
mov ecx, 1
call fcn.14000562c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140004070
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.1400068b8
nop
cmp dword [0x14002ec20], 1
je 0x14000401c
mov dword [0x14002ec1c], 1
mov byte [0x14002ec18], r12b
test ebx, ebx
jne 0x140004008
mov rcx, qword [0x14002f7f0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140003ff5
mov rcx, qword [0x14002f7e8]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140003f94
call fcn.14000513c
cmp qword [rdi], rax
jne 0x140003f94
jmp 0x140003f7a
cmp rdi, rsi
jb 0x140003ff5
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14000513c
mov qword [rdi], rax
call rbx
mov rcx, qword [0x14002f7f0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x14002f7e8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140003fd3
cmp r13, rax
je 0x140003ff3
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140003f7a
lea rdx, [0x140025778]
lea rcx, [0x140025668]
call fcn.140003d34
lea rdx, [0x140025998]
lea rcx, [0x140025888]
call fcn.140003d34
nop
test r12d, r12d
je 0x14000402b
mov ecx, 8
call fcn.140006798
test r12d, r12d
jne 0x140004056
mov dword [0x14002ec20], 1
lea ecx, [r12 + 8]
call fcn.140006798
mov ecx, r15d
call fcn.140003cc8
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140003ee4

Function at 0x14000407c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140003ee4
Function at 0x140007678
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14000513c
xor ebx, ebx
mov rdi, rax
cmp qword [0x14002f318], rbx
jne 0x14000777e
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140007853
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140007853
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14002f318], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14002f320], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14002f328], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14002f338], rax
test rax, rax
je 0x140007775
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14002f330], rax
jmp 0x140007785
mov rax, qword [0x14002f330]
jmp 0x14000778c
mov rax, qword [0x14002f330]
mov r11, qword [0x14002f338]
cmp rax, rdi
je 0x1400077f4
cmp r11, rdi
je 0x1400077f4
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14002f338]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1400077f4
test rax, rax
je 0x1400077f4
call rsi
test rax, rax
je 0x1400077ee
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400077ee
test byte [rsp + 0x38], 1
jne 0x1400077f4
bts ebp, 0x15
jmp 0x140007832
mov rcx, qword [0x14002f320]
cmp rcx, rdi
je 0x140007832
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140007832
call rax
mov rbx, rax
test rax, rax
je 0x140007832
mov rcx, qword [0x14002f328]
cmp rcx, rdi
je 0x140007832
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140007832
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14002f318]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140007853
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140007855
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14000a880
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14000a925
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000a8dd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000a8d0
cmp rcx, 1
jb 0x14000a956
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000a8f3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400107f0
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a8c0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000be40
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.1400104b4
int3

Function at 0x14000a9e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000aa25
xor al, al
jmp 0x14000aa72
cmp word [rbx], 0
je 0x14000aa3d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000aa30
cmp word [rsp + 0x30], 0
je 0x14000aa6b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000aa93
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000aa50
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000be40
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.1400104b4
int3
Function at 0x14000b330
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001fe30
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x140031dd4]
lea rsi, [0x140034e10]
mov rdi, rcx
test r11d, r11d
jne 0x14000b3a9
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000aaa0
test al, al
je 0x14000b489
lea rcx, [rsp + 0x20]
call fcn.140014abc
movsxd r11, dword [0x140031dd4]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x140031dd4], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000b3e4
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000b3d4
add rax, 2
test ecx, ecx
jne 0x14000b3c0
test edx, edx
je 0x14000b407
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000b3b4
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000b3f0
cmp rax, 2
jne 0x14000b40b
cmp word [rdi + 2], 0x3a
jne 0x14000b40b
mov al, 1
jmp 0x14000b468
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000b436
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000b45d
mov bl, 1
cmp dword [0x140031dd4], 0x400
jge 0x14000b45d
mov rcx, rdi
call fcn.140014abc
movsxd rdx, dword [0x140031dd4]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x140031dd4], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000be40
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000b1d0
int3

Function at 0x14000b5b0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140031dd8]
test rcx, rcx
je 0x14000b5f0
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b5de
mov rcx, qword [0x140031dd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140031dd8]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x28
ret
Function at 0x14000c734
Capabilities:
Parse pe header

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

Function at 0x1400104a8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140010313
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010313
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010313
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010313
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010313
cmp dword [rcx + 0x84], 0xe
jbe 0x140010313
cmp dword [rcx + 0xf8], 0
je 0x140010313
mov ecx, ebx
call fcn.1400103c4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400101a0
nop
cmp dword [rbp + 0x20], 0
je 0x140010361
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001036c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400102a4
Function at 0x1400198b8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001993f
mov rsi, rbx
cmp word [rax], bp
je 0x1400198fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400198e8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400198e4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400170e8
mov rdi, rax
test rax, rax
je 0x14001992c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400204d0
mov rbp, rdi
xor ecx, ecx
call fcn.1400161f8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001baac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001bac2
mov al, 1
jmp 0x14001bb22
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001bad3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001bb20
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019c00
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001bb20
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001bb20
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001bb20
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001bb22
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001fd40
Capabilities:
Parse pe header

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