joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400347c4
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x750]
sub rsp, 0x850
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x740], rax
mov rdi, rcx
mov rcx, qword [rbp + 0x790]
xor ebx, ebx
mov qword [rdi], r8
mov dword [rdi + 8], edx
mov qword [rdi + 0x10], rbx
cmp edx, 8
ja 0x14003499e
mov byte [rsp + 0x30], bl
test edx, edx
je 0x14003498e
sub edx, 2
je 0x140034979
dec edx
je 0x140034946
dec edx
je 0x140034934
dec edx
je 0x1400348ee
dec edx
je 0x1400348be
dec edx
je 0x1400348b1
dec edx
jne 0x14003499e
lea rcx, [0x140002f6c]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov r14d, eax
test eax, eax
je 0x1400348a8
mov ecx, eax
call fcn.140027d58
lea rcx, [0x140002f6c]
mov r8d, r14d
mov rdx, rax
mov rsi, rax
mov qword [rsp + 0x20], rax
mov byte [rax], bl
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x14003489e
cmp byte [rsi], bl
je 0x14003489e
mov rdx, rsi
call fcn.140034b58
add byte [rax - 0x75], cl
invalid
lea rcx, [rsp + 0x20]
call fcn.140027d90
mov qword [rdi + 0x10], rbx
jmp 0x14003499e
mov rdx, r9
call fcn.1400349d0
jmp 0x14003499a
lea rcx, [rsp + 0x30]
mov edx, 0x810
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x14003499e
cdqe
cmp rax, 0x810
ja 0x14003499e
lea rcx, [rsp + 0x30]
jmp 0x140034993
mov esi, 0x809
lea rcx, [rsp + 0x30]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x14003499e
cdqe
cmp rax, rsi
ja 0x14003499e
lea edx, [rsi + 7]
lea rcx, [rsp + 0x30]
call fcn.140027fbc
mov r8d, edx
lea rdx, [0x14000b998]
mov rcx, rax
call fcn.140027ebc
jmp 0x1400348e4
lea rcx, [rsp + 0x30]
mov edx, 0x810
adc byte [rax], cl
add byte [rax], al
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x1400348ce
test r9, r9
je 0x14003499e
lea rcx, [rsp + 0x30]
mov r8d, 0x810
mov rdx, r9
call fcn.140027e84
mov edx, 0x5c
mov rcx, rax
call qword [sym.imp.msvcrt.dll_strrchr]
test rax, rax
je 0x14003499e
mov byte [rax + 1], bl
jmp 0x1400348e4
call fcn.140034e84
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x14003499e
call fcn.140034c70
jmp 0x14003499a
test rcx, rcx
je 0x14003499e
xor edx, edx
call fcn.140034520
mov qword [rdi + 0x10], rax
mov rax, rdi
mov rcx, qword [rbp + 0x740]
xor rcx, rsp
call fcn.14003f730
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400349d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r10, rdx
xor ebx, ebx
mov qword [rsp + 0x48], rbx
test rdx, rdx
je 0x140034b2c
cmp byte [rdx], bl
je 0x140034b2c
mov edi, 0x154
mov r8d, edi
lea rdx, [0x14000b9a0]
lea rcx, [rsp + 0x50]
call fcn.140027e84
mov rcx, r10
call fcn.140027ff4
mov rdx, rax
mov r8d, edi
lea rcx, [rsp + 0x50]
call fcn.140027ebc
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 1]
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140034b2c
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140034b2c
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140002f6c]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140034b21
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x140034b21
call fcn.140027d58
mov rdi, rax
mov qword [rsp + 0x48], rax
mov byte [rax], bl
mov ecx, dword [rsp + 0x30]
mov dword [rsp + 0x40], ecx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140002f6c]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140034b07
cmp dword [rsp + 0x40], ebx
je 0x140034b07
mov eax, dword [rsp + 0x30]
dec eax
mov byte [rax + rdi], bl
mov rdx, rdi
call fcn.140034b58
mov rbx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x48]
call fcn.140027d90
mov rax, rbx
jmp 0x140034b2e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14003f730
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x140034b58
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x830
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x820], rax
xor ebp, ebp
xor r14d, r14d
mov rbx, rdx
test rdx, rdx
je 0x140034c3e
mov edx, 0x3b
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_strchr]
mov rsi, rax
test rax, rax
je 0x140034bac
mov byte [rax], 0
inc rsi
movsx ecx, byte [rbx]
call qword [sym.imp.msvcrt.dll_isspace]
test eax, eax
jne 0x140034bbe
cmp byte [rbx], 0x22
jne 0x140034bc3
inc rbx
jmp 0x140034bac
or rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x140034bc7
lea rdi, [rbx - 1]
add rdi, rax
jmp 0x140034bf1
movsx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll_isspace]
test eax, eax
jne 0x140034beb
cmp byte [rdi], 0x22
jne 0x140034bf6
mov byte [rdi], 0
dec rdi
cmp rdi, rbx
jae 0x140034bd9
cmp byte [rbx], 0
je 0x140034c32
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
xor edx, edx
lea rcx, [rsp + 0x20]
test eax, eax
jne 0x140034c1d
mov rcx, rbx
call fcn.140034520
test r14, r14
je 0x140034c2c
mov qword [r14], rax
jmp 0x140034c2f
mov rbp, rax
mov r14, rax
mov rbx, rsi
test rsi, rsi
jne 0x140034b90
mov rax, rbp
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.14003f730
lea r11, [rsp + 0x830]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140034c70
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

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 rbp
lea rbp, [rax - 0xf78]
mov eax, 0x1070
call fcn.140041280
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xf60], rax
xor ebx, ebx
lea rax, [rsp + 0x48]
lea rdx, [0x14000b9d8]
and qword [rsp + 0x48], rbx
lea r9d, [rbx + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000002
xor edi, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140034d09
xor eax, eax
mov rcx, qword [rbp + 0xf60]
xor rcx, rsp
call fcn.14003f730
lea r11, [rsp + 0x1070]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x44]
lea rdx, [0x14000ba18]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x750]
mov esi, 0x800
xor r9d, r9d
xor r8d, r8d
mov byte [rbp + 0xf50], bl
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x44], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140034d61
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x750]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x140034d63
xor eax, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x140034d84
lea rcx, [rsp + 0x50]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, eax
mov dword [rsp + 0x40], eax
cmp eax, esi
jb 0x140034d8e
xor eax, eax
cmp eax, esi
sbb ecx, ecx
and ecx, eax
mov dword [rsp + 0x40], ecx
mov eax, ecx
cmp rax, rsi
jae 0x140034e76
lea rcx, [rsp + 0x50]
mov edx, esi
mov byte [rsp + rax + 0x50], bl
call fcn.140027fbc
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], bl
jne 0x140034db2
lea r14, [rsp + 0x50]
lea rsi, [rbp + 0x750]
add r14, rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
and qword [rsp + 0x28], rbx
and qword [rsp + 0x20], rbx
sub esi, r14d
xor edx, edx
jmp 0x140034e3c
lea rdx, [0x14000ba18]
lea rcx, [rbp + 0x750]
inc edi
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
je 0x140034e1f
lea r9, [rbp + 0x750]
lea r8, [rsp + 0x50]
mov edx, 0xc
mov rcx, rbx
call fcn.1400345f4
mov rbx, rax
lea rax, [rsp + 0x40]
mov edx, edi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x44]
lea r8, [rbp + 0x750]
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], 0x801
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x140034de9
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
jmp 0x140034cdd
call fcn.14003f940
int3
Function at 0x140036d0c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x1c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rdi, r8
mov r10, rdx
xor ebx, ebx
mov qword [rsp + 0x40], rbx
and qword [rsp + 0x38], rbx
xor sil, sil
mov byte [rsp + 0x30], sil
mov r14d, 0x154
mov r8d, r14d
lea rdx, [0x14000b9a0]
lea rcx, [rsp + 0x50]
call fcn.140027e84
mov rcx, r10
call fcn.140027ff4
mov rdx, rax
mov r8d, r14d
lea rcx, [rsp + 0x50]
call fcn.140027ebc
lea r10, [rsp + 0x38]
mov qword [rsp + 0x20], r10
lea r9d, [rbx + 1]
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140036ebb
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140036ebb
and dword [rsp + 0x34], eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140002f6c]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140036ebb
cmp dword [rsp + 0x34], eax
je 0x140036ebb
xor r8d, r8d
xor edx, edx
lea rcx, [0x140002f6c]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x140036ebb
mov r14d, dword [rsp + 0x34]
add r14d, 4
add r14d, eax
mov ecx, r14d
call fcn.140027d58
mov rbx, rax
mov qword [rsp + 0x40], rax
mov byte [rax], sil
mov dword [rsp + 0x34], r14d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140002f6c]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140036ebb
cmp dword [rsp + 0x34], r14d
ja 0x140036ebb
cmp byte [rbx], al
je 0x140036ebb
lea eax, [r14 - 1]
mov byte [rax + rbx], sil
or rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x140036e6b
add rax, rbx
mov qword [rdi], rax
mov byte [rax], 0x3b
inc qword [rdi]
mov rdx, qword [rdi]
mov r8d, ebx
sub r8d, edx
add r8d, r14d
lea rcx, [0x140002f6c]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, ebx
sub ecx, dword [rdi]
add ecx, r14d
cmp eax, ecx
jb 0x140036eaa
and qword [rdi], 0
jmp 0x140036ebb
mov ecx, eax
mov rax, qword [rdi]
mov byte [rcx + rax], 0
mov sil, 1
mov byte [rsp + 0x30], sil
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140036ecb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test sil, sil
jne 0x140036ee4
test rbx, rbx
je 0x140036ee4
lea rcx, [rsp + 0x40]
call fcn.140027d90
mov rbx, qword [rsp + 0x40]
mov rax, rbx
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14003f730
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1c0
pop r14
pop rdi
pop rsi
ret
Function at 0x140037720
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
xor ebx, ebx
mov rdi, rdx
lea r9, [rbp + 0x20]
lea r8d, [rbx + 8]
lea rdx, [rbp + 0x38]
mov rcx, rdi
mov dword [rbp + 0x20], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003776b
cmp dword [rbp + 0x20], 8
je 0x14003777a
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp + 0x38]
mov qword [rbp - 0x10], rbx
bt eax, 0xf
jae 0x1400377b3
lea r9, [rbp + 0x20]
lea rdx, [rbp - 0x10]
mov r8d, 8
mov rcx, rdi
mov dword [rbp + 0x20], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003776b
cmp dword [rbp + 0x20], 8
jne 0x140037760
jmp 0x1400377ed
bt eax, 0xe
jae 0x1400377f1
lea r9, [rbp + 0x20]
lea rdx, [rbp + 0x30]
mov r8d, 4
mov rcx, rdi
mov dword [rbp + 0x20], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003776b
cmp dword [rbp + 0x20], 4
jne 0x140037760
mov eax, dword [rbp + 0x30]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x38]
mov rsi, rbx
mov qword [rbp + 0x20], rbx
test al, 8
je 0x140037818
lea rdx, [rbp + 0x20]
mov rcx, rdi
call fcn.140028080
test eax, eax
je 0x14003776b
mov rax, qword [rbp + 0x38]
mov rsi, qword [rbp + 0x20]
mov qword [rbp + 0x30], rbx
test al, 1
je 0x14003783c
test al, 0x20
je 0x14003783c
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.140028080
test eax, eax
je 0x140037870
mov rax, qword [rbp + 0x38]
mov rbx, qword [rbp + 0x30]
mov rcx, qword [rbp - 0x10]
movzx r9d, word [rbp + 0x3e]
movzx r8d, word [rbp + 0x3c]
mov dword [rsp + 0x38], 1
and eax, 0xffff3fff
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rcx
mov edx, eax
mov qword [rsp + 0x20], rsi
call fcn.140039974
mov rbx, rax
lea rcx, [rbp + 0x20]
call fcn.140027d90
mov rax, rbx
jmp 0x14003776d
Function at 0x140038244
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x30], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, r8
mov rbp, rdx
xor esi, esi
and dword [rsp + 0x30], esi
and qword [r11 - 0x48], rsi
lea r9, [r11 - 0x38]
lea r8d, [rsi + 0x14]
lea rdx, [r11 - 0x28]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140038379
cmp dword [rsp + 0x30], 0x14
je 0x1400382b1
lea ecx, [rsi + 0xd]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140038379
mov ecx, 0x40
call qword [sym.imp.MFC42.dll_CReBarCtrl::SetColorScheme]
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400382d9
xor edx, edx
lea r8d, [rdx + 0x40]
mov rcx, rax
call sub.msvcrt.dll_memset
jmp 0x1400382db
xor ebx, ebx
test rbx, rbx
jne 0x1400382f4
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, 0xc0000017
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rsp + 0x4c]
mov dword [rbx + 0x20], eax
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x30], eax
cmp dword [rsp + 0x48], 0
jbe 0x14003832d
mov rdx, rbp
call fcn.140037720
test rax, rax
je 0x140038368
test rsi, rsi
je 0x140038320
mov qword [rsi], rax
jmp 0x140038324
mov qword [rbx + 0x28], rax
mov rsi, rax
dec dword [rsp + 0x48]
jne 0x140038309
test rdi, rdi
je 0x140038368
mov rax, qword [rsp + 0x40]
cmp qword [rdi + 0x10], rax
je 0x140038347
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140038337
jmp 0x140038368
mov rax, qword [rdi + 8]
mov qword [rbx + 0x38], rax
test dword [rbx + 0x20], 0x4000
jne 0x140038363
mov qword [rax], rbx
mov rcx, qword [rbx + 0x38]
mov byte [rcx + 8], 1
mov rax, rbx
jmp 0x14003837b
mov rdx, rbx
call fcn.1400392dc
mov rcx, rbx
call qword [sym.imp.MFC42.dll_CListCtrl::SetColumnOrderArray]
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003f730
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140039aac
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [rdx + 0x38]
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rax + 0xa8]
test rcx, rcx
je 0x140039ad6
cmp byte [rcx], 0
jne 0x140039add
lea rcx, [0x1400013d8]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140039c40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0x7fff
cmp eax, 2
jne 0x140039b53
lea r9, [0x14000ca50]
xor r8d, r8d
mov rdx, rdi
call fcn.14003a27c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
bts dword [rbx + 0x64], 8
mov rax, qword [rdi + 0x38]
bts dword [rax + 0xc], 0x12
jmp 0x140039cb1
mov rcx, qword [rdi + 0x38]
mov rax, qword [rcx + 0xa8]
cmp qword [rcx + 0xa0], rax
jne 0x140039b7d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rsi, 0xffffffffffffffff
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rsi, 0xffffffffffffffff
je 0x140039c40
xor edx, edx
mov rcx, rsi
mov byte [rbx + 0x1c], 1
mov qword [rbx + 0x10], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbx + 0x18], eax
dec eax
cmp eax, 0xfffffffd
ja 0x140039c21
mov rcx, qword [rbx + 0x10]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x140039bf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [0x14000cae8]
mov rdx, rdi
mov r8d, eax
call fcn.14003a27c
mov rcx, rbx
call fcn.140039ccc
bts dword [rbx + 0x64], 0x12
jmp 0x140039cb1
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x28], rax
test rax, rax
je 0x140039bcb
mov eax, 1
jmp 0x140039cb3
lea r9, [0x14000caa8]
xor r8d, r8d
mov rdx, rdi
call fcn.14003a27c
mov rcx, rbx
call fcn.140039ccc
jmp 0x140039b40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x140039c58
bts dword [rbx + 0x64], 0x12
jmp 0x140039ca2
mov rax, qword [rdi + 0x38]
bts dword [rax + 0xc], 0x13
mov rax, qword [rbx + 0x88]
test rax, rax
je 0x140039c9d
cmp rax, rdi
je 0x140039c9d
mov rax, rdi
test byte [rax + 0x20], 8
jne 0x140039c97
test byte [rax + 0x20], 0x20
jne 0x140039c91
mov rax, qword [rax + 8]
test rax, rax
jne 0x140039c75
bts dword [rbx + 0x64], 9
jmp 0x140039ca2
or dword [rbx + 0x64], 1
jmp 0x140039ca2
or dword [rbx + 0x64], 2
jmp 0x140039ca2
bts dword [rbx + 0x64], 0x11
lea r9, [0x14000ca90]
mov rdx, rdi
call fcn.14003a27c
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14003aadc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x18], 0x40
mov r8, qword [rcx + 0x28]
mov rdi, rdx
mov rbx, rcx
jb 0x14003abf0
mov eax, 0x5a4d
cmp word [r8], ax
jne 0x14003abf0
mov ecx, dword [r8 + 0x3c]
mov eax, dword [rbx + 0x18]
movsxd rdx, ecx
sub rax, 0x108
add rdx, r8
cmp rcx, rax
ja 0x14003ab95
cmp dword [rdx], 0x4550
jne 0x14003ab95
lea r8, [rdx + 0x18]
mov eax, 0x20b
mov byte [rbx + 0x30], 0
cmp word [r8], ax
jne 0x14003ab72
or dword [rbx + 0x60], 2
mov rax, qword [rdi + 0x38]
bts dword [rax + 0xc], 0xd
mov byte [rbx + 0x30], 1
lea rcx, [rdx + 4]
mov qword [rbx + 0x40], r8
add rdx, 0x18
mov qword [rbx + 0x38], rcx
movzx ecx, word [rdx - 4]
mov eax, 1
add rdx, rcx
mov qword [rbx + 0x48], rdx
jmp 0x14003ac0f
mov eax, 0x10b
cmp word [r8], ax
je 0x14003ab4d
lea r9, [0x14000ccb8]
xor r8d, r8d
mov rdx, rdi
call fcn.14003a27c
or dword [rbx + 0x64], 0x10
jmp 0x14003ac0d
bts dword [rbx + 0x64], 8
mov rax, qword [rdi + 0x38]
bts dword [rax + 0xc], 0x12
mov ecx, dword [rbx + 0x18]
mov eax, dword [r8 + 0x3c]
sub rcx, 0x40
cmp rax, rcx
ja 0x14003abe7
mov eax, 0x454e
cmp word [rdx], ax
jne 0x14003abe7
mov al, byte [rdx + 0x36]
cmp al, 1
jne 0x14003abd8
lea r9, [0x14000cbd0]
xor r8d, r8d
mov rdx, rdi
call fcn.14003a27c
jmp 0x14003ac0d
sub al, 2
test al, 0xfd
jne 0x14003abe7
lea r9, [0x14000cc20]
jmp 0x14003abcb
lea r9, [0x14000cc70]
jmp 0x14003abcb
lea r9, [0x14000cb70]
xor r8d, r8d
call fcn.14003a27c
bts dword [rbx + 0x64], 8
mov rax, qword [rdi + 0x38]
bts dword [rax + 0xc], 0x12
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14003e594
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, qword [rdx]
lea rax, [rsp + 0x34]
mov rdi, rcx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x30]
mov esi, 0x104
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rax
xor ebx, ebx
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x30], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14003e65a
cmp dword [rsp + 0x30], 2
mov byte [rsp + 0x143], bl
lea rcx, [rsp + 0x40]
jne 0x14003e624
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x14003e65a
mov edx, ebx
sub rcx, rdi
lea rax, [rsi + 0x7ffffefa]
test rax, rax
je 0x14003e646
mov al, byte [rcx + rdi]
test al, al
je 0x14003e646
mov byte [rdi], al
inc rdi
dec rsi
jne 0x14003e629
test rsi, rsi
jne 0x14003e653
dec rdi
mov edx, 0x8007007a
test edx, edx
mov byte [rdi], bl
setns bl
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14003f730
mov rbx, qword [rsp + 0x190]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret

Function at 0x14003f78c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14003fb04
Capabilities:
Print debug messages

Disassembly:
jmp 0x14003fb10
push rbx
sub rsp, 0x540
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14003fb8d
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x14003fbad
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, [0x1400010b0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14003f730
add rsp, 0x540
pop rbx
ret