joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004fb08
Capabilities:
Set thread local storage value

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 r13
push r14
sub rsp, 0x20
mov esi, 1
mov r14, r8
mov rdi, rdx
cmp dword [rdx + 0x10], esi
mov r12, rcx
mov ebp, esi
jle 0x14004fb95
lea ebx, [rsi + 7]
lea r13d, [rsi + 0xf]
test r14, r14
je 0x14004fb61
mov rax, qword [r12 + 0x10]
cmp qword [rax + r13 + 8], r14
je 0x14004fb61
mov rax, qword [rdi + 0x18]
cmp qword [rbx + rax], 0
je 0x14004fb81
xor esi, esi
jmp 0x14004fb81
mov rax, qword [rdi + 0x18]
mov rcx, qword [rbx + rax]
test rcx, rcx
je 0x14004fb78
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rdi + 0x18]
and qword [rbx + rax], 0
add ebp, 1
add r13, 0x10
add rbx, 8
cmp ebp, dword [rdi + 0x10]
jl 0x14004fb41
test esi, esi
je 0x14004fbdc
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r12 + 0x18]
mov rdx, rdi
call fcn.14004f5a4
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r11, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r11]
mov ecx, dword [r12]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret

Function at 0x140051328
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rsi, r8
mov rbp, rdx
cmp r8, rbx
mov rdi, rcx
jne 0x14005137b
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8d, [rbx + 1]
mov r9, rbp
add eax, eax
mov rdx, rdi
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
cmp eax, ebx
sete bl
mov eax, ebx
jmp 0x1400513df
mov rdx, rcx
lea r8, [rsp + 0x50]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, ebx
jne 0x1400513dd
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
jne 0x1400513dd
cmp edi, ebx
jne 0x1400513dd
mov eax, 1
jmp 0x1400513df
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140051500
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x250
mov rax, qword [0x1401216d8]
xor rax, rsp
mov qword [rsp + 0x240], rax
call fcn.140093ed0
test rax, rax
mov rdi, rax
je 0x1400515c2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, 1
movsxd rcx, eax
lea rax, [rdi + rcx*2]
jmp 0x1400515b3
and word [rax], 0
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1400515b8
mov rcx, qword [rsp + 0x20]
lea r8, [rsp + 0x30]
mov r9d, 0x105
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov rcx, qword [rsp + 0x20]
xor ebx, ebx
test eax, eax
cmove ebx, ebp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400515b8
mov rdx, rdi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dx, VarDateFromDisp
mov rcx, rdi
call fcn.140090740
test rax, rax
jne 0x14005154c
mov rcx, rdi
call fcn.1400937d0
mov eax, ebp
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140090480
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140055824
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [rdx]
and qword [rsp + 0x38], 0
xor esi, esi
lea r8d, [rsi + 1]
mov rbx, rdx
mov edx, 0x104
sub r8d, dword [rax - 8]
mov eax, dword [rax - 0xc]
mov rdi, rcx
sub eax, edx
or r8d, eax
jge 0x140055860
mov rcx, rbx
call fcn.140004650
mov rbp, qword [rbx]
and dword [rsp + 0x70], esi
lea r8, [rsp + 0x38]
lea rdx, str.CLSID
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x68], 0x208
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14005591c
mov rcx, qword [rsp + 0x38]
and qword [rsp + 0x30], rsi
lea r8, [rsp + 0x30]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140055911
mov rcx, qword [rsp + 0x30]
and qword [rsp + 0x78], rsi
lea r8, [rsp + 0x78]
lea rdx, str.InProcServer32
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140055906
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400debf8]
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x78]
test eax, eax
sete sil
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140055928
xor eax, eax
jmp 0x140055931
call fcn.140093820
test eax, eax
js 0x140055956
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140055956
mov dword [rcx - 0x10], eax
mov rcx, qword [rbx]
mov rbx, qword [rsp + 0x60]
movsxd rdx, eax
mov eax, esi
and word [rcx + rdx*2], 0
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070057
call fcn.140001610
int3
Function at 0x1400568e0
Capabilities:
Get file system object information

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x338
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1401216d8]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov ebp, r9d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
and qword [rsp + 0x38], 0
and word [r8], 0
test rcx, rcx
jne 0x14005692a
xor eax, eax
jmp 0x140056aa0
mov dword [rsp + 0x20], 0x800
mov r9d, 0x2b8
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x140056a9e
bt dword [rsp + 0x6c], 0x10
jae 0x140056a9e
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e94a8]
xor r8d, r8d
lea rdx, [0x1400e9498]
lea rcx, [rsp + 0x30]
call fcn.14005685c
test eax, eax
js 0x140056a9a
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140056a9a
and qword [rsp + 0x40], 0
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [0x1400f7190]
call qword [rax]
test eax, eax
js 0x140056a8b
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140011950
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140056a6a
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
test eax, eax
js 0x140056a59
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov r8d, 2
mov rdx, qword [rdi + 0x40]
call qword [rax + 0x98]
test eax, eax
js 0x140056a59
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140056a52
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x140056aa0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140056a6a
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140056a8b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
jmp 0x140056aa0
xor eax, eax
jmp 0x140056aa0
xor eax, eax
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.140090480
add rsp, 0x338
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140079160
Capabilities:
Get file attributes
Get file size

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x38
mov rbx, rdx
mov rdi, rcx
mov r8d, 0x230
mov rcx, rbx
xor edx, edx
call fcn.140091a50
mov r8, qword [rdi + 0x18]
lea rcx, [rbx + 0x22]
or r9, 0xffffffffffffffff
mov edx, 0x104
call fcn.140092330
xor esi, esi
cmp eax, esi
je 0x1400791c1
cmp eax, 0xc
je 0x1400791bb
cmp eax, 0x16
je 0x1400791b5
cmp eax, 0x22
je 0x1400791b5
cmp eax, 0x50
je 0x1400791c1
call fcn.140036eec
int3
call fcn.140036eec
int3
call fcn.140036ea4
int3
mov rcx, qword [rdi + 8]
cmp rcx, qword [0x1400e94b8]
je 0x14007931f
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, esi
jne 0x1400791f2
xor eax, eax
jmp 0x140079324
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, 0xffffffff
mov r11d, eax
cmp r11, rbp
mov qword [rbx + 0x18], r11
je 0x1400791eb
mov rcx, qword [rdi + 0x18]
cmp dword [rcx - 0x10], esi
jne 0x14007921e
mov byte [rbx + 0x20], sil
jmp 0x14007922f
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
movzx ecx, al
cmp eax, ebp
cmove ecx, esi
mov byte [rbx + 0x20], cl
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
cmp eax, esi
je 0x140079272
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp eax, esi
je 0x140079272
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x78]
or r8d, 0xffffffff
call fcn.14004c6d0
mov rcx, qword [rax]
mov qword [rbx], rcx
jmp 0x140079275
mov qword [rbx], rsi
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
cmp eax, esi
je 0x1400792b9
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp eax, esi
je 0x1400792b9
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x78]
or r8d, 0xffffffff
call fcn.14004c6d0
mov rax, qword [rax]
mov qword [rbx + 0x10], rax
jmp 0x1400792bd
mov qword [rbx + 0x10], rsi
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
cmp eax, esi
je 0x140079301
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp eax, esi
je 0x140079301
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x78]
or r8d, 0xffffffff
call fcn.14004c6d0
mov rax, qword [rax]
mov qword [rbx + 8], rax
jmp 0x140079305
mov qword [rbx + 8], rsi
cmp qword [rbx], rsi
jne 0x140079311
mov rax, qword [rbx + 8]
mov qword [rbx], rax
cmp qword [rbx + 0x10], rsi
jne 0x14007931f
mov rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
mov eax, 1
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140094190
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
sub rsp, 0x30
xor ebx, ebx
test r8, r8
mov rbp, r9
mov rsi, r8
mov r12d, edx
mov r13, rcx
jne 0x1400941dc
call fcn.140093890
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.14009b530
xor eax, eax
jmp 0x140094282
mov qword [rsp + 0x50], rdi
call fcn.140097f80
mov edx, 0x2d8
mov ecx, 1
call fcn.14009b1d0
test rax, rax
mov rdi, rax
je 0x140094268
call fcn.140098210
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.140097ff0
mov rcx, qword [rsp + 0x78]
mov eax, dword [rsp + 0x70]
test rcx, rcx
lea r8, [rsp + 0x60]
mov rdx, r12
cmovne r8, rcx
mov r9, rdi
mov rcx, r13
mov qword [rsp + 0x28], r8
lea r8, [0x1400940f0]
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], rbp
mov qword [rdi + 8], 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x14009427d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.1400937d0
test ebx, ebx
je 0x14009427b
mov ecx, ebx
call fcn.1400938f0
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rsi
ret
Function at 0x140096690
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0xb0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0xb0], rbx
mov qword [rbp + 0xb8], rsi
mov qword [rbp + 0xc0], rdi
mov rax, qword [0x1401216d8]
xor rax, rbp
mov qword [rbp + 0x70], rax
mov eax, dword [rsp]
xor ebx, ebx
mov dword [rbp], ebx
sub rsp, 0x10
lea r13, [rsp + 0x30]
mov eax, dword [r13]
lea r8d, [rbx + 0x30]
lea rdx, [rbp + 0x10]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400967fc
mov r14, qword [rbp + 0x18]
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x44]
lea rcx, [rbp]
call fcn.1400932e0
test eax, eax
je 0x14009672a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14009b3a0
mov ecx, dword [rbp]
cmp ecx, 2
jne 0x140096772
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14009676f
lea rdx, str.SetThreadStackGuarantee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14009676f
lea rcx, [rbp + 4]
mov dword [rbp + 4], ebx
call rax
cmp eax, 1
jne 0x14009676f
mov eax, dword [rbp + 4]
test eax, eax
cmovne ebx, eax
mov ecx, dword [rbp]
mov r15d, 1
lea r8d, [rdi - 1]
lea edx, [rbx + rdi - 1]
cmp ecx, r15d
mov eax, r8d
mov esi, 0x104
not eax
cmove esi, r15d
and edx, eax
je 0x140096797
add edx, edi
lea eax, [rdi + rdi]
mov ebx, r8d
cmp edx, eax
not rbx
cmovb edx, eax
and rbx, r13
mov eax, reloc.OLEAUT32.dll_SafeArrayGetElemsize
mov r12d, edx
sub rbx, r12
cmp ecx, r15d
cmove edi, eax
mov eax, edi
add rax, r14
cmp rbx, rax
jb 0x1400967fc
mov r9d, 4
mov r8d, 0x1000
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1400967fc
lea r9, [rbp + 8]
mov r8d, esi
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400967fc
mov eax, r15d
jmp 0x1400967fe
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rbp
call fcn.140090480
mov rbx, qword [rbp + 0xb0]
mov rsi, qword [rbp + 0xb8]
mov rdi, qword [rbp + 0xc0]
lea rsp, [rbp + 0x80]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400968e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14009691e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140096900
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140096b05
mov ecx, 3
call fcn.1400ab5a0
cmp eax, 1
je 0x140096abc
mov ecx, 3
call fcn.1400ab5a0
test eax, eax
jne 0x140096955
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
je 0x140096abc
cmp edi, 0xfc
je 0x140096b05
mov qword [rsp + 0x50], rbp
lea rbp, [0x14041c890]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.1400ab4f0
test eax, eax
je 0x140096999
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14009b3a0
lea rdx, [0x14041c8a9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14041c9ad], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1400969e9
lea r8, str._program_name_unknown_
lea rcx, [0x14041c8a9]
mov edx, 0x2fb
call fcn.1400ab4f0
test eax, eax
je 0x1400969e9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14009b3a0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14041c8a9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140096a38
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14041cba4]
lea r9d, [rax + 3]
lea r8, [0x1400f28f4]
sub rdx, rcx
call fcn.1400ab3d0
test eax, eax
je 0x140096a38
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14009b3a0
lea r8, [0x1400f28f0]
mov edx, 0x314
mov rcx, rbp
call fcn.1400ab310
test eax, eax
je 0x140096a64
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14009b3a0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.1400ab310
test eax, eax
je 0x140096a94
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14009b3a0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.1400ab0b0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140096b05
cmp rax, 0xffffffffffffffff
je 0x140096b05
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140096b50
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.1400ab5a0
cmp eax, 1
je 0x140096b82
mov ecx, 3
call fcn.1400ab5a0
test eax, eax
jne 0x140096c36
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
jne 0x140096c36
mov qword [rsp + 0x48], rbx
lea rbx, reloc.OLEAUT32.dll_SysReAllocString
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x140096bae
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140096b98
jmp 0x140096c22
cmp edi, 0x17
jae 0x140096c22
mov ecx, 3
call fcn.1400ab5a0
cmp eax, 1
je 0x140096bd9
mov ecx, 3
call fcn.1400ab5a0
test eax, eax
jne 0x140096c22
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
jne 0x140096c22
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140096c22
cmp rax, 0xffffffffffffffff
je 0x140096c22
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.1400968e0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x1400974c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x14041cdbc]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x14009751c
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1400974fc
mov dword [0x14041cdbc], 1
jmp 0x14009752f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140097516
mov dword [0x14041cdbc], 2
jmp 0x140097599
mov eax, dword [0x14041cdbc]
cmp eax, 1
jne 0x140097590
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14009756a
cmp word [rdi], bp
mov rax, rdi
je 0x140097549
add rax, 2
cmp word [rax], bp
jne 0x140097537
add rax, 2
cmp word [rax], bp
jne 0x140097537
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.14009b160
test rax, rax
mov rbx, rax
jne 0x140097571
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x14009768b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.140091b50
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x14009768b
cmp eax, 2
je 0x140097599
test eax, eax
jne 0x14009756a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x14009756a
cmp byte [rax], bpl
mov rbx, rax
je 0x1400975e8
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14009756a
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x1400975b0
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.14009b1d0
test rax, rax
mov r12, rax
jne 0x14009760d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14009768b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x140097675
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14009769e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x140097620
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.1400937d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x140097686