joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140023310
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, r8d
mov r8d, edx
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x14002333e
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14002f4bc
Capabilities:
Parse pe header

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

Function at 0x14002fd50
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x90], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x90]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0xa8], rax
mov rdi, rax
test rax, rax
jne 0x14002fd96
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x90]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x60], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x48], r14
cmovo rax, r15
mov rcx, rax
call fcn.14002ff08
mov r14, rax
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x14002fe8f
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x58], r12
mov r12, r14
mov qword [rsp + 0x50], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.14002ff08
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x90]
inc r14d
cmp r14d, eax
jne 0x14002fe00
mov r14, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xa8]
mov r13, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x90]
mov rdx, r14
call fcn.140018550
mov esi, eax
cmp dword [rsp + 0x90], ebx
je 0x14002fedc
mov rdi, r14
nop dword [rax + rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002fedc
call fcn.14002e7fc
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x90]
jne 0x14002fec0
mov rcx, r14
call fcn.14002e7fc
mov r14, qword [rsp + 0x48]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
jmp 0x14002fd50
Function at 0x14002ff00
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x90], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x90]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0xa8], rax
mov rdi, rax
test rax, rax
jne 0x14002fd96
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x90]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x60], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x48], r14
cmovo rax, r15
mov rcx, rax
call fcn.14002ff08
mov r14, rax
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x14002fe8f
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x58], r12
mov r12, r14
mov qword [rsp + 0x50], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.14002ff08
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x90]
inc r14d
cmp r14d, eax
jne 0x14002fe00
mov r14, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xa8]
mov r13, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x90]
mov rdx, r14
call fcn.140018550
mov esi, eax
cmp dword [rsp + 0x90], ebx
je 0x14002fedc
mov rdi, r14
nop dword [rax + rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002fedc
call fcn.14002e7fc
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x90]
jne 0x14002fec0
mov rcx, r14
call fcn.14002e7fc
mov r14, qword [rsp + 0x48]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
jmp 0x14002fd50
Function at 0x140003710
Capabilities:
Get mac address on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x28
mov rsi, rcx
mov dword [rsp + 0x48], 0x2c0
mov ecx, 0x2c0
call fcn.140010524
mov rbp, rax
test rax, rax
jne 0x140003754
mov ecx, 2
call fcn.14000f9e0
mov rcx, rax
lea rdx, str.Error_allocating_memory_needed_to_call_GetAdaptersInfo_n
call fcn.140001060
add rsp, 0x28
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x48]
mov rcx, rbp
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x140003780
mov rcx, rbp
call fcn.14000fe48
mov ecx, dword [rsp + 0x48]
call fcn.140010524
mov rbp, rax
test rax, rax
je 0x140003734
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x50], rdi
mov rcx, rbp
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x140003924
lea rdx, str._nNetwork_adapter_information:_n
mov rcx, rsi
call fcn.140001010
mov rdi, rbp
test rbp, rbp
je 0x14000392c
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x20], r14
lea r14, [0x14002c7d0]
nop word [rax + rax]
lea r8, [rdi + 0xc]
mov rcx, rsi
lea rdx, str.__Adapter_Name:__S_n
call fcn.140001010
lea r8, [rdi + 0x110]
mov rcx, rsi
lea rdx, str.__Description:__S_n
call fcn.140001010
mov r8d, dword [rdi + 0x1a4]
lea rdx, str.__Type:__u_n
mov rcx, rsi
call fcn.140001010
cmp dword [rdi + 0x1a8], 0
lea r8, [0x14002c7d8]
lea rdx, str.__DHCP_Enabled:__s_n
mov rcx, rsi
cmovne r8, r14
call fcn.140001010
lea r8, [rdi + 0x1c0]
mov rcx, rsi
lea rdx, str.__IP_Address:__S_n
call fcn.140001010
lea r8, [rdi + 0x1d0]
mov rcx, rsi
lea rdx, str.__Subnet_Mask:__S_n
call fcn.140001010
lea r8, [rdi + 0x1f0]
mov rcx, rsi
lea rdx, str.__Gateway_Address:__S_n
call fcn.140001010
lea rdx, str.__MAC_Address:
mov rcx, rsi
call fcn.140001010
xor ebx, ebx
cmp dword [rdi + 0x194], ebx
jbe 0x1400038cd
nop dword [rax + rax]
movzx r8d, byte [rbx + rdi + 0x198]
lea rdx, str._02X
mov rcx, rsi
call fcn.140001010
mov eax, dword [rdi + 0x194]
dec eax
cmp ebx, eax
jae 0x1400038c3
lea rdx, [0x14002c8b4]
mov rcx, rsi
call fcn.140001010
inc ebx
cmp ebx, dword [rdi + 0x194]
jb 0x140003890
lea rdx, [0x14002c8b8]
mov rcx, rsi
call fcn.140001010
mov rbx, qword [rdi + 0x1b8]
test rbx, rbx
je 0x14000390e
nop dword [rax + rax]
lea r8, [rbx + 8]
mov rcx, rsi
lea rdx, str.____Additional_IP_Address:__S_n
call fcn.140001010
mov rax, qword [rbx]
mov rbx, rax
test rax, rax
jne 0x1400038f0
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1400037d0
mov r14, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
mov rcx, rbp
call fcn.14000fe48
mov rdi, qword [rsp + 0x50]
add rsp, 0x28
pop rsi
pop rbp
ret
Function at 0x140006c54
Capabilities:
Parse pe header

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

Function at 0x1400112b4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400110e0

Function at 0x140020b80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140020ba8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140020ba8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140175960
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.14017a620
sub rsp, rax
mov rax, qword [0x1401b9b80]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x140175a22
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.1401893d0
cmp rax, 1
jne 0x140175a7e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x1401759ff
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x1401759f3
cmp rcx, 1
jb 0x140175a7e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1401759c0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140175a53
lea rcx, [rsp + 0x80]
call fcn.14018a4a0
jmp 0x140175a55
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14017a350
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14017db10
int3
Function at 0x140179e70
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x1401b9b80]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x140179f21
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.1401893d0
cmp rax, 1
jne 0x140179f57
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x140179efd
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x140179ef0
cmp rcx, 1
jb 0x140179f57
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140179ec0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14017a350
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14017db10
int3

Function at 0x14017a1d0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1401b9b80]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x14017a27f
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.1401893d0
cmp rax, 1
jne 0x14017a2b5
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14017a25c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14017a250
cmp rcx, 1
jb 0x14017a2b5
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14017a220
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14017a350
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14017db10
int3

Function at 0x14017adb8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14017ae02
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14017ae02
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14017ae02
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14017ae02
cmp dword [rcx + 0x84], 0xe
jbe 0x14017ae02
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14017ae04
xor al, al
add rsp, 0x28
ret
Function at 0x14017f168
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 0x14017f1d7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14017f1d7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14017f1d7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14017f1d7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14017f1d7
cmp dword [rcx + 0x84], 0xe
jbe 0x14017f1d7
cmp dword [rcx + 0xf8], 0
je 0x14017f1d7
mov ecx, ebx
call fcn.14017f27c
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.14017f070
nop
cmp dword [rbp + 0x20], 0
jne 0x14017f238
call fcn.14018b33c
cmp eax, 1
jne 0x14017f228
xor dl, dl
jmp 0x14017f232
call fcn.14018b308
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14017f243
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14017f24c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14017f168

Function at 0x14017f350
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 0x14017f1d7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14017f1d7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14017f1d7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14017f1d7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14017f1d7
cmp dword [rcx + 0x84], 0xe
jbe 0x14017f1d7
cmp dword [rcx + 0xf8], 0
je 0x14017f1d7
mov ecx, ebx
call fcn.14017f27c
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.14017f070
nop
cmp dword [rbp + 0x20], 0
jne 0x14017f238
call fcn.14018b33c
cmp eax, 1
jne 0x14017f228
xor dl, dl
jmp 0x14017f232
call fcn.14018b308
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14017f243
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14017f24c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14017f168
Function at 0x14018f4a8
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 0x14018f52f
mov rsi, rbx
cmp word [rax], bp
je 0x14018f4ee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14018f4d8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14018f4d4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14018a990
mov rdi, rax
test rax, rax
je 0x14018f51c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140195100
mov rbp, rdi
xor ecx, ecx
call fcn.14018b3f0
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 0x14019190c
Capabilities:
Get file size

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

Function at 0x140194ec0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140194ee8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140194ee8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800024d8
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r9, rcx
mov eax, 0x5a4d
lea rdx, [0x180000000]
cmp word [0x180000000], ax
je 0x1800024ff
xor eax, eax
mov r8d, dword [0x18000003c]
jmp 0x180002521
movsxd r8, dword [0x18000003c]
xor eax, eax
cmp dword [r8 + rdx], 0x4550
jne 0x180002521
mov r10d, 0x20b
cmp word [r8 + rdx + 0x18], r10w
sete al
test eax, eax
je 0x180002583
sub r9, rdx
movsxd r10, r8d
add r10, rdx
xor edx, edx
movzx eax, word [r10 + 0x14]
lea rcx, [r10 + 0x18]
add rcx, rax
mov qword [rsp + 8], rcx
mov dword [rsp], edx
movzx eax, word [r10 + 6]
cmp edx, eax
jae 0x180002569
mov r8d, dword [rcx + 0xc]
cmp r9, r8
jb 0x180002561
mov eax, dword [rcx + 8]
add eax, r8d
cmp r9, rax
jb 0x18000256b
inc edx
add rcx, 0x28
jmp 0x18000253c
xor ecx, ecx
test rcx, rcx
jne 0x180002574
xor eax, eax
jmp 0x180002583
mov eax, dword [rcx + 0x24]
shr eax, 0x1f
not eax
and eax, 1
jmp 0x180002583
add rsp, 0x18
ret
Function at 0x180002630
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x180002662
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002662
nop word cs:[rax + rax]
jmp 0x180002660
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x180002738
mov rsi, r10
test r8b, r8b
je 0x180002750
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x1800026d0
test r9b, r9b
je 0x180002760
sub rsi, rcx
je 0x180002734
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180002730
test ebp, ebp
jne 0x180002730
add rbx, 1
cmp rsi, rbx
jne 0x1800026f0
jmp 0x180002734
test ebp, ebp
jne 0x1800026bc
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002750
jmp 0x180002760
Function at 0x180002900
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x180002932
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002932
nop word cs:[rax + rax]
jmp 0x180002930
mov rax, qword gs:[0x60]
mov r9, qword [rax + 0x18]
add r9, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl dl
or dl, al
lea r11, [rcx - 1]
xor eax, eax
mov r10, r9
mov r10, qword [r10]
cmp r10, r9
je 0x180002a3a
mov rsi, r11
test r8b, r8b
je 0x180002a30
nop word cs:[rax + rax]
nop dword [rax]
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x1800029b0
sub rsi, rcx
je 0x180002a32
mov r14, qword [r10 + 0x60]
mov r12, rcx
nop word cs:[rax + rax]
test dl, dl
je 0x1800029d0
movzx r13d, word [r14]
lea r15d, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp r15w, 0x1a
cmovae ebp, r13d
movsx ebx, byte [r12]
lea r15d, [rbx - 0x41]
lea edi, [rbx + 0x20]
cmp r15b, 0x1a
cmovae edi, ebx
sub ebp, edi
test r13d, r13d
je 0x180002a20
test ebp, ebp
jne 0x180002a20
add r14, 2
add r12, 1
add rsi, 0xffffffffffffffff
jne 0x1800029d0
jmp 0x180002a36
test ebp, ebp
jne 0x18000298a
jmp 0x180002a36
jmp 0x180002a30
test dl, dl
je 0x180002a50
mov rax, qword [r10 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002a50
Function at 0x1400051f0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400a7040]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edi, edi
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], edi
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
mov rbx, rcx
mov qword [rsp + 0x28], rdi
lea rcx, [0x140095f58]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
mov dword [rsp + 0x40], edi
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x1400052e0
mov r8d, dword [rsp + 0x40]
movsd xmm0, qword [str.0000_0000]
movzx eax, word [0x140095f68]
movsd qword [rsp + 0x48], xmm0
mov word [rsp + 0x50], ax
test r8d, r8d
je 0x1400052b0
mov edx, 8
lea r9d, [rdi + 0x37]
test rdx, rdx
js 0x1400052b0
mov ecx, r8d
mov eax, 0x30
and ecx, 0xf
cmp ecx, 0xa
cmovae eax, r9d
shr r8d, 4
add al, cl
lea rcx, [rdx - 1]
mov byte [rsp + rdx + 0x48], al
mov rax, rdx
cmp rax, 5
mov edx, 3
cmovne rdx, rcx
test r8d, r8d
jne 0x140005276
mov qword [rbx], rdi
lea rax, [rsp + 0x48]
mov qword [rbx + 0x10], rdi
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], select
mov byte [rbx], dil
nop
inc r8
cmp byte [rax + r8], dil
jne 0x1400052d0
lea rdx, [rsp + 0x48]
jmp 0x1400052ff
mov qword [rbx], rdi
lea rdx, str.0000_0000
mov qword [rbx + 0x10], rdi
mov r8d, 9
mov qword [rbx + 0x18], select
mov byte [rbx], dil
mov rcx, rbx
call fcn.1400022d0
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140050f50
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret