joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400060e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x170
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rsi, rdx
lea r8, str.RT_BIN
mov edx, 0x65
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
jne 0x14000612e
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x258
jmp 0x14000623e
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000611e
mov rcx, rax
mov qword [rsp + 0x190], rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x140006161
mov eax, 0x260
jmp 0x140006236
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov rcx, rdi
call fcn.1400057a0
mov rdi, rax
test rax, rax
jne 0x140006188
mov eax, 0x1f5
jmp 0x140006236
mov rdx, rsi
mov qword [rsp + 0x180], rbp
mov rcx, rax
call fcn.140005950
lea r8, [rsp + 0x30]
or edx, 0xffffffff
mov rcx, rdi
call fcn.1400058f0
mov esi, dword [rsp + 0x30]
xor ebp, ebp
mov ebx, ebp
test esi, esi
jle 0x140006224
nop word [rax + rax]
mov dword [rsp + 0x30], ebp
mov byte [rsp + 0x34], bpl
mov dword [rsp + 0x158], ebp
cmp dword [rdi], 1
je 0x1400061e1
mov dword [0x140026bb0], 0x80000
jmp 0x1400061f7
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x30]
mov edx, ebx
call fcn.140004c80
mov dword [0x140026bb0], eax
cmp dword [rdi], 1
je 0x140006208
mov dword [0x140026bb0], 0x80000
jmp 0x14000621e
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x34]
mov edx, ebx
call fcn.1400053d0
mov dword [0x140026bb0], eax
inc ebx
cmp ebx, esi
jl 0x1400061c0
mov rcx, rdi
call fcn.140005a00
mov rbp, qword [rsp + 0x180]
xor eax, eax
mov rdi, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140006620
mov rbx, qword [rsp + 0x198]
add rsp, 0x170
pop rsi
ret

Function at 0x140006260
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbp, rdx
mov rsi, r8
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x6c]
call fcn.140009200
xor edi, edi
mov dword [rsp + 0x20], 0x70
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x50], 5
mov dword [rsp + 0x24], 0x40
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
cmovne rdi, qword [rsp + 0x88]
mov rax, rdi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140006620
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006e9c
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140006f2d
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140006f2d
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006f2d
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140006f11
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140006f0b
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140006f13
add rdx, 0x28
jmp 0x140006ef0
xor edx, edx
test rdx, rdx
jne 0x140006f1c
xor al, al
jmp 0x140006f33
test dword [rdx + 0x24], 0x80000000
je 0x140006f29
xor al, al
jmp 0x140006f33
mov al, 1
jmp 0x140006f33
xor al, al
jmp 0x140006f33
add rsp, 0x18
ret

Function at 0x14000cbd4
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14000c9a8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c9a8
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c9a8
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c9a8
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c9a8
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c9a8
cmp dword [rcx + 0xf8], esi
je 0x14000c9a8
mov ecx, r14d
call fcn.14000caf0
mov ecx, 2
call fcn.14000fa44
nop
cmp byte [0x1400262e8], 0
jne 0x14000ca72
mov r15d, 1
mov eax, r15d
xchg dword [0x1400262dc], eax
test ebx, ebx
jne 0x14000ca1b
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400262e0]
cmp rcx, rax
je 0x14000ca12
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14000a0cc]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400262f8]
jmp 0x14000ca27
cmp ebx, r15d
jne 0x14000ca2d
lea rcx, [0x140026310]
call fcn.14000d0e4
nop
test ebx, ebx
jne 0x14000ca44
lea rdx, [0x140018420]
lea rcx, [0x140018400]
call fcn.14000c868
lea rdx, [0x140018430]
lea rcx, [0x140018428]
call fcn.14000c868
movzx eax, byte [0x1400262e8]
test esi, esi
cmove eax, r15d
mov byte [0x1400262e8], al
jmp 0x14000ca72
mov ecx, 2
call fcn.14000fa98
test esi, esi
jne 0x14000ca89
mov ecx, r14d
call fcn.14000caa4
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000c938
Function at 0x14005fe6c
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x14005feb4
lea ebx, [rsi + 0xd]
jmp 0x14005ff1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xea
jne 0x14005ff1f
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.14003cffc
lea r8, [rbp + 0x30]
mov rdx, qword [rbp - 0x20]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x14005ff11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14005ff1f
mov rdx, qword [rbp - 0x20]
mov rcx, rdi
call fcn.1400033fc
mov ebx, esi
lea rcx, [rbp - 0x20]
call fcn.1400174fc
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x140060a48
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400bd0c0], eax
call fcn.140060cf8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400bd0c0], 0
jne case.default.0x140060a9e
mov ecx, 1
call fcn.140060cf8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
xchg edx, eax
invalid
pop rdi
push rbp
jno 0x140125e3c
sbb byte [rbx + 0x74], ch
xchg r10, rax
xchg esi, eax
movabs byte [0x1123e75fe159bb04], al
invalid
Function at 0x140008638
Capabilities:
Parse pe header

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

Function at 0x14000ecd8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000ee20
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 0x14000ee8f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ee8f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ee8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ee8f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ee8f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ee8f
cmp dword [rcx + 0xf8], 0
je 0x14000ee8f
mov ecx, ebx
call fcn.14000ed58
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.14000efb4
nop
cmp dword [rbp + 0x20], 0
je 0x14000eedd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000edec
int3

Function at 0x1400105b4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140032010]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14002e7e0]
mov rbp, rcx
call fcn.140016bcc
xor edi, edi
test rax, rax
je 0x14001069a
mov ebx, edi
call fcn.14001459c
mov r14d, dword [rax]
call fcn.14001459c
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140018e90
mov rsi, rax
test rax, rax
je 0x14001062b
call fcn.14001459c
mov dword [rax], r14d
jmp 0x140010655
call fcn.14001459c
cmp dword [rax], 0x22
jne 0x140010692
call fcn.14001459c
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140018e90
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140010692
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140010659
cmp rax, 3
je 0x140010674
mov rcx, rsi
call fcn.140010510
test al, al
je 0x140010685
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140010685
mov dil, 1
mov rcx, rbx
call fcn.140010c34
mov al, dil
jmp 0x14001069c
mov rcx, rbx
call fcn.140010c34
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140015e70
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140011320
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140011348
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140011348
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140018008
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 0x140018038
xor eax, eax
jmp 0x1400180fb
mov rbp, rbx
cmp word [rax], si
je 0x14001805d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140018044
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140018040
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.140017f28
movsxd r14, eax
test eax, eax
jne 0x14001809b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140018031
mov rcx, r14
call fcn.140014800
mov rdi, rax
test rax, rax
jne 0x1400180b4
xor ecx, ecx
call fcn.140013868
jmp 0x140018090
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.140017f28
test eax, eax
jne 0x1400180e5
mov rcx, rdi
call fcn.140013868
jmp 0x1400180ef
xor ecx, ecx
call fcn.140013868
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 0x140018118
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 0x14001819f
mov rsi, rbx
cmp word [rax], bp
je 0x14001815e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018148
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018144
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140014800
mov rdi, rax
test rax, rax
je 0x14001818c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140011630
mov rbp, rdi
xor ecx, ecx
call fcn.140013868
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 0x14001a370
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001a386
mov al, 1
jmp 0x14001a3e6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001a397
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001a3e4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140018a58
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001a3e4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001a3e4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001a3e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001a3e6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001fa84
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.1400101d4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001fb0e
cmp byte [rbp - 0x21], r15b
je 0x14001fb09
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001fb44
call fcn.140011de8
test eax, eax
jne 0x14001fb30
cmp byte [rbp - 0x21], r15b
je 0x14001fb28
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001fb44
cmp byte [rbp - 0x21], r15b
je 0x14001fb41
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.1400109c0
test eax, eax
jne 0x14001fbe4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400101d4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001fb83
cmp byte [rbp - 0x21], r15b
je 0x14001fbb8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001fbb8
call fcn.140011de8
test eax, eax
jne 0x14001fba4
cmp byte [rbp - 0x21], r15b
je 0x14001fb9d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001fbb8
cmp byte [rbp - 0x21], r15b
je 0x14001fbb5
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.1400109c0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001fbe4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001fbe7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001fbf5
mov rcx, rdi
call fcn.140013868
cmp byte [rbp + 0x3f], r15b
je 0x14001fc04
mov rcx, qword [rbp + 0x27]
call fcn.140013868
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 0x14001fc4c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140032010]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14001fc96
call fcn.1400145bc
mov dword [rax], 0xf
call fcn.14001459c
mov dword [rax], 0xd
call fcn.140013980
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140015e70
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14001fca1
lea eax, [rbx + 1]
jmp 0x14001fc83
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14001fc81
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14001fc83
Function at 0x140020d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x88]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
jmp 0x140020da7
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x20], eax
jae 0x140020e7a
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jb 0x140020dd5
jmp 0x140020e7a
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x20]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140020e16
jmp 0x140020d9d
mov edx, 0x811c9dc5
mov rcx, qword [rsp + 0x48]
call fcn.140056140
cmp eax, 0x491e0a9c
jne 0x140020e75
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov ecx, dword [rsp + 0x20]
add rax, qword [rsp + 0x70]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x24], ax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
movzx ecx, word [rsp + 0x24]
add rax, qword [rsp + 0x70]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
jmp 0x140020e7c
jmp 0x140020d9d
xor eax, eax
add rsp, 0x68
ret
Function at 0x140020e90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x88]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
jmp 0x140020ef7
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x20], eax
jae 0x140020fca
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jb 0x140020f25
jmp 0x140020fca
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x20]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140020f66
jmp 0x140020eed
mov edx, 0x811c9dc5
mov rcx, qword [rsp + 0x48]
call fcn.140056140
cmp eax, 0x8fe07322
jne 0x140020fc5
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov ecx, dword [rsp + 0x20]
add rax, qword [rsp + 0x70]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x24], ax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
movzx ecx, word [rsp + 0x24]
add rax, qword [rsp + 0x70]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
jmp 0x140020fcc
jmp 0x140020eed
xor eax, eax
add rsp, 0x68
ret
Function at 0x140020fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x88]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
jmp 0x140021047
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x20], eax
jae 0x14002111a
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jb 0x140021075
jmp 0x14002111a
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x20]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400210b6
jmp 0x14002103d
mov edx, 0x811c9dc5
mov rcx, qword [rsp + 0x48]
call fcn.140056140
cmp eax, 0x9a9264ad
jne 0x140021115
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov ecx, dword [rsp + 0x20]
add rax, qword [rsp + 0x70]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x24], ax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
movzx ecx, word [rsp + 0x24]
add rax, qword [rsp + 0x70]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
jmp 0x14002111c
jmp 0x14002103d
xor eax, eax
add rsp, 0x68
ret