joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000e140
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
sub rsp, 0x3d0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x3a0], rbx
mov qword [rbp + 0x3a8], rsi
mov qword [rbp + 0x3b0], rdi
mov rbx, rcx
mov esi, r8d
mov qword [rbp + 0x3b8], r14
mov r14, rdx
lea rcx, [rbp + 0x61]
xor edx, edx
mov r8d, 0x103
mov edi, r9d
mov word [rbp + 0x1a], 0x5446
mov word [rbp + 0x20], 0x5c
mov word [rbp + 0x1d], 0x5241
mov word [rbp + 0x18], 0x4f53
mov byte [rbp + 0x1f], 0x45
mov byte [rbp + 0x1c], 0x57
mov dword [rbp + 4], 0x73257325
mov byte [rbp + 8], 0
mov byte [rbp + 0x60], 0
call fcn.18000f330
lea rcx, [rbp + 0x38]
call fcn.18000c290
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x18000e1cc
mov rdx, qword [rax]
test rdx, rdx
jne 0x18000e1d5
xor eax, eax
jmp 0x18000e232
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x18000e1e0
inc eax
cmp eax, 0x3fffffff
jle 0x18000e1f7
xor eax, eax
jmp 0x18000e232
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x18000e213
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.180011530
sub rsp, rcx
mov r9d, 3
lea rcx, [rsp + 0x40]
call fcn.18000bfc0
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x18]
lea r9, [rbp + 4]
lea rcx, [rbp + 0x60]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.180010868
cmp qword [rbp + 0x50], 8
jb 0x18000e266
mov rcx, qword [rbp + 0x38]
call fcn.180010130
lea rax, [rbp + 0x28]
lea rdx, [rbp + 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call fcn.18000b080
test eax, eax
jne 0x18000e35b
lea rcx, [rbp + 0x281]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x280], al
call fcn.18000f330
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x30]
lea rdx, [rbp + 0xc]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x280]
xor r8d, r8d
mov dword [rbp + 0xe], 0x736c61
mov word [rbp + 0xc], 0x7668
mov qword [rsp + 0x20], rax
call fcn.18000b138
test eax, eax
jne 0x18000e352
cmp dword [rbp + 0x30], eax
jbe 0x18000e352
lea rcx, [rbp + 0x171]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x170], al
call fcn.18000f330
lea r9, [rbp]
lea rcx, [rbp + 0x170]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov word [rbp], 0x6425
mov byte [rbp + 2], 0
mov qword [rsp + 0x20], rbx
call fcn.180010868
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0x280]
call fcn.18000b3a8
test rax, rax
je 0x18000e352
mov rcx, qword [rbp + 0x28]
call fcn.18000aff8
mov eax, 1
jmp 0x18000e38b
mov rcx, qword [rbp + 0x28]
call fcn.18000aff8
mov eax, dword [rbp + 0x3d0]
mov r9d, edi
mov r8d, esi
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x3c8]
mov rdx, r14
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x3c0]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call qword [0x180072290]
mov rbx, qword [rbp + 0x3a0]
mov rsi, qword [rbp + 0x3a8]
mov rdi, qword [rbp + 0x3b0]
mov r14, qword [rbp + 0x3b8]
lea rsp, [rbp + 0x390]
pop rbp
ret
Function at 0x18000e3b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov rsi, r9
mov r14, r8
mov r15d, edx
mov r12, rcx
xor ebx, ebx
call fcn.18000a898
mov rdi, rax
test rax, rax
je 0x18000a95b
lea rdx, [rbp - 0x10]
mov rcx, rax
mov word [rbp - 4], 0x7845
mov byte [rbp - 2], bl
mov dword [rbp - 9], 0x6f6f4874
mov dword [rbp - 0xd], 0x78654e6c
mov word [rbp - 0xf], 0x6c61
mov byte [rbp - 5], 0x6b
mov byte [rbp - 0x10], 0x43
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000a952
mov r9, rsi
mov r8, r14
mov edx, r15d
mov rcx, r12
call rax
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
mov r9, r8
mov r8, rdx
mov edx, ecx
xor ecx, ecx
jmp 0x18000a8d0
Function at 0x140017008
Capabilities:
Identify system language via api

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp - 8], 0
mov eax, dword [rbp + 0x10]
cdqe
mov rcx, rax
call fcn.14011b730
call fcn.14011b320
mov qword [rbp - 0x20], 0
call fcn.14011b4a0
call fcn.14011b4a0
call sub.KERNEL32.dll_GetUserDefaultLangID
mov qword [rbp - 0x10], rax
call fcn.14011b3b0
mov edx, eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.140119580
call fcn.14011b3b0
mov edx, eax
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.14011b570
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.140118dc0
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 3
jne 0x1400170ba
call fcn.14011b4a0
lea rax, [0x140931100]
mov rcx, rax
call fcn.14011b500
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14011b500
call fcn.14011b3b0
mov edx, eax
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.14011b570
jmp 0x1400170bb
nop
call fcn.14011b4a0
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14011b500
call fcn.14011b470
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14011b710
mov rax, qword [rbp - 8]
add rsp, 0x40
pop rbp
ret
Function at 0x140030a6c
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp - 8], 0
mov eax, dword [rbp + 0x18]
cdqe
mov rcx, rax
call fcn.14011b730
call fcn.14011b320
mov rax, qword [rbp + 0x10]
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.14011b770
mov qword [rbp - 0x70], 0
mov qword [rbp - 0x78], 0
mov qword [rbp - 0x10], 0
call fcn.14011b4a0
call fcn.14011b4a0
call fcn.14011b3b0
mov edx, eax
mov ecx, 0x3e8
call fcn.140118e10
call fcn.14011b3b0
mov edx, eax
lea rax, [rbp - 0x70]
mov rcx, rax
call fcn.14011b570
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x18], rax
lea rax, str.WINDIR
mov rdx, qword [rbp - 0x18]
mov r8d, 0x3e8
mov rcx, rax
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x78]
lea rdx, [0x140958840]
mov rcx, rax
call fcn.14011b600
call fcn.14011b4a0
call fcn.14011b4a0
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.14011b500
lea rax, str.System32
mov rcx, rax
call fcn.14011b500
call fcn.14011b6b0
call fcn.14011b4a0
lea rax, str.__c
mov rcx, rax
call fcn.14011b500
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14011b500
call fcn.14011b6b0
call fcn.14011b4a0
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.14011b500
lea rax, str.System32cmd.exe
mov rcx, rax
call fcn.14011b500
call fcn.14011b470
mov qword [rbp - 0x28], rax
call fcn.14011b470
mov qword [rbp - 0x30], rax
call fcn.14011b470
mov qword [rbp - 0x38], rax
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x28]
mov r9d, SafeArrayGetLBound
mov r8, rcx
mov rcx, rax
call fcn.1400c2598
mov qword [rbp - 0x40], rax
call fcn.14011b400
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140030cc4
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.1400c2ba4
mov qword [rbp - 0x48], rax
cmp qword [rbp - 0x48], 0
je 0x140030cb1
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.1400c2c00
mov qword [rbp - 0x50], rax
cmp qword [rbp - 0x50], 0
je 0x140030cab
call fcn.14011b4a0
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.14011b500
call fcn.14011b4a0
call fcn.14011b4a0
call fcn.14011b4a0
call fcn.14011b4a0
call fcn.14011b3b0
mov edx, eax
mov rax, qword [rbp - 0x10]
mov r8d, edx
mov edx, SafeArrayPutElement
mov rcx, rax
call fcn.1400c2d4c
call fcn.14011b470
mov qword [rbp - 0x58], rax
call fcn.14011b3b0
mov edx, eax
mov rax, qword [rbp - 0x58]
mov rcx, rax
call fcn.1400146c3
mov qword [rbp - 0x60], rax
call fcn.14011b3b0
lea rax, [0x14094c5f0]
mov rcx, rax
call fcn.14011b500
call fcn.14011b3b0
mov edx, eax
lea rax, [rbp - 0x78]
mov rcx, rax
call fcn.14011b570
jmp 0x140030be9
nop
jmp 0x140030be9
nop
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.1400c2cdc
mov qword [rbp - 0x68], rax
jmp 0x140030cc5
nop
call fcn.14011b4a0
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.14011b500
call fcn.14011b470
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14011b710
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.14011b710
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.14011b710
mov rax, qword [rbp - 8]
add rsp, 0xa0
pop rbp
ret
Function at 0x1400351da
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp - 8], 0
call fcn.14011b320
mov qword [rbp - 0x58], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
lea rax, str.Kernel32
mov rcx, rax
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rbp - 0x20], rax
lea rdx, [0x14094aa60]
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x18], rax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
call sub.KERNEL32.dll_CreateRemoteThread
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140035296
mov qword [rbp - 8], 0
jmp 0x1400352e3
nop
mov rax, qword [rbp - 0x10]
mov rdx, 0xffffffffffffffff
mov rcx, rax
call sub.KERNEL32.dll_WaitForSingleObject
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x40], rax
mov rdx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.KERNEL32.dll_GetExitCodeThread
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.KERNEL32.dll_CloseHandle
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp - 8]
add rsp, 0xa0
pop rbp
ret
Function at 0x1400360bb
Capabilities:
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov qword [rbp - 8], 0
call fcn.14011b320
mov rdx, qword [rbp + 0x18]
lea rax, [rbp + 0x18]
mov rcx, rax
call fcn.14011b770
mov rdx, qword [rbp + 0x20]
lea rax, [rbp + 0x20]
mov rcx, rax
call fcn.14011b770
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x40]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x38]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x18]
mov rcx, rax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x18]
mov qword [rsp + 0x40], rdx
mov rdx, qword [rbp - 0x10]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0xf003f
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rcx
mov rcx, rax
call sub.ADVAPI32.dll_RegCreateKeyExW
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x1400361c8
mov rax, qword [rbp + 0x20]
mov r10, rax
mov rax, qword [rbp - 0x40]
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0
mov rdx, r10
mov rcx, rax
call sub.ADVAPI32.dll_RegSetValueExW
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sub.ADVAPI32.dll_RegCloseKey
mov qword [rbp - 0x30], rax
jmp 0x1400361c9
nop
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.14011b710
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.14011b710
mov rax, qword [rbp - 8]
add rsp, 0x90
pop rbp
ret
Function at 0x140075730
Capabilities:
Parse pe header

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

Function at 0x14007a098
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 0x14007a107
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007a107
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007a107
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007a107
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007a107
cmp dword [rcx + 0x84], 0xe
jbe 0x14007a107
cmp dword [rcx + 0xf8], 0
je 0x14007a107
mov ecx, ebx
call fcn.14007a20c
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.140079ecc
nop
cmp dword [rbp + 0x20], 0
je 0x14007a155
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14007a160
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14007a098

Function at 0x14007a2f8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14007a098
Function at 0x140085e8c
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.14007c13c
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 0x140085f2d
cmp ebx, dword [rsp + 0x30]
je 0x140085f26
test esi, esi
je 0x140085f26
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140085f01
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140085f0e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140085eeb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140085f12
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140085f2f
mov eax, 1
jmp 0x140085f2f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400871c4
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 0x1400871f4
xor eax, eax
jmp 0x1400872b7
mov rbp, rbx
cmp word [rax], si
je 0x140087219
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140087200
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400871fc
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.1400874bc
movsxd r14, eax
test eax, eax
jne 0x140087257
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400871ed
mov rcx, r14
call fcn.14007cbc0
mov rdi, rax
test rax, rax
jne 0x140087270
xor ecx, ecx
call fcn.14007aef0
jmp 0x14008724c
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.1400874bc
test eax, eax
jne 0x1400872a1
mov rcx, rdi
call fcn.14007aef0
jmp 0x1400872ab
xor ecx, ecx
call fcn.14007aef0
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 0x1400872d4
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 0x14008735b
mov rsi, rbx
cmp word [rax], bp
je 0x14008731a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140087304
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140087300
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14007cbc0
mov rdi, rax
test rax, rax
je 0x140087348
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400955d0
mov rbp, rdi
xor ecx, ecx
call fcn.14007aef0
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 0x14008f518
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.1400800e4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14008f5a2
cmp byte [rbp - 0x21], r15b
je 0x14008f59d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14008f5d8
call fcn.14007de60
test eax, eax
jne 0x14008f5c4
cmp byte [rbp - 0x21], r15b
je 0x14008f5bc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14008f5d8
cmp byte [rbp - 0x21], r15b
je 0x14008f5d5
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.140081184
test eax, eax
jne 0x14008f678
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400800e4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14008f617
cmp byte [rbp - 0x21], r15b
je 0x14008f64c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14008f64c
call fcn.14007de60
test eax, eax
jne 0x14008f638
cmp byte [rbp - 0x21], r15b
je 0x14008f631
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14008f64c
cmp byte [rbp - 0x21], r15b
je 0x14008f649
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.140081184
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14008f678
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14008f67b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14008f689
mov rcx, rdi
call fcn.14007aef0
cmp byte [rbp + 0x3f], r15b
je 0x14008f698
mov rcx, qword [rbp + 0x27]
call fcn.14007aef0
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 0x140091c30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140959820]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140091c87
cmp word [rdx], r13w
jne 0x140091c87
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140091c8c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140091db1
mov r11d, SafeArrayGetElemsize
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140091dd2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140091cc5
mov rdx, r9
mov word [rbx], cx
jmp 0x140091cec
cmp r9, r8
jae 0x140091cfc
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140091ca6
jmp 0x140091db1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140091da6
cmp dword [rsp + 0x80], esi
je 0x140091da6
lea r8, [0x140959820]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140091d7e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140091d4e
mov word [rbx], r13w
jmp 0x140091dae
mov ecx, SafeArrayGetElemsize
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140091d5b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140091dae
cmp word [rsp + 0x70], r13w
jne 0x140091d8b
cmp rbx, r14
je 0x140091d48
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400931cc
cmp word [rsp + 0x70], r13w
je 0x140091db1
mov ecx, SafeArrayGetElemsize
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140959820]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140091dab
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140091db1