joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f890
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
xor esi, esi
mov rbx, rdx
mov qword [rbp + 0x30], rsi
mov rdi, rcx
mov qword [rbp - 8], rsi
mov dword [rbp - 0x10], esi
test rcx, rcx
je 0x14000f8db
xor r9d, r9d
lea rdx, [rbp - 0x10]
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x14000f8db
mov eax, 0xc00000f0
jmp 0x14000fa1d
mov qword [rsp + 0x40], rsi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rdx, rbx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000f91e
mov ebx, 0xc0000022
jmp 0x14000fa06
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov r14d, 4
mov dword [rbp + 0x20], 1
mov dword [rsp + 0x28], r14d
lea rdx, str.ErrorControl
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x14000f9f1
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], r14d
lea rdx, str.Type
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x14000f9f1
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], r14d
lea rdx, str.Start
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], 3
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x14000f9f1
test rdi, rdi
je 0x14000f9f1
movzx eax, word [rbp - 0x10]
lea r9d, [r14 - 2]
mov rcx, qword [rbp + 0x30]
lea rdx, str.ImagePath
add eax, r9d
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg ebx
mov ebx, 0xc0000022
sbb ecx, ecx
and ebx, ecx
test rdi, rdi
je 0x14000fa1b
cmp qword [rbp - 8], rsi
je 0x14000fa1b
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000fa34
Capabilities:
Install driver
Unload driver

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, 0x250
xor r14d, r14d
mov rbx, rdx
mov rsi, r9
mov bpl, r8b
mov rdx, rcx
test rcx, rcx
je 0x14000fb2a
test rbx, rbx
jne 0x14000fa77
mov eax, 0xc00000f0
jmp 0x14000fb2f
xor eax, eax
mov qword [rsp + 0x20], rdx
lea rdi, [rsp + 0x40]
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
mov edx, 0x104
lea r9, str.RegistryMachine
lea r8, str._wSSystemCurrentControlSetServices_wS
call fcn.140003278
test eax, eax
js 0x14000fb2a
lea rdx, [rsp + 0x64]
mov rcx, rbx
call fcn.14000f890
test eax, eax
js 0x14000fb2f
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test rsi, rsi
je 0x14000fade
xor edx, edx
lea rcx, [rsp + 0x30]
call rsi
test eax, eax
js 0x14000fb2f
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test bpl, bpl
je 0x14000fb1f
cmp eax, 0xc000010e
je 0x14000fb03
cmp eax, 0xc0000035
je 0x14000fb03
cmp eax, 0x40000000
jne 0x14000fb2f
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
test eax, eax
js 0x14000fb2f
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
jmp 0x14000fb2f
cmp eax, 0x40000000
cmove eax, r14d
jmp 0x14000fb2f
mov eax, 0xc00000ef
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x14000fb50
Capabilities:
Unload driver

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x660
mov rdx, rcx
lea rdi, [rsp + 0x40]
xor eax, eax
mov qword [rsp + 0x20], rdx
mov ecx, 0x20a
lea r9, str.RegistryMachine
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
mov edx, 0x104
lea r8, str._wSSystemCurrentControlSetServices_wS
call fcn.140003278
test eax, eax
jns 0x14000fb9b
mov eax, 0xc00000ef
jmp 0x14000fc09
lea rdx, [rsp + 0x64]
xor ecx, ecx
call fcn.14000f890
test eax, eax
js 0x14000fc09
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov ebx, eax
test eax, eax
js 0x14000fc07
xor eax, eax
lea rdi, [rsp + 0x250]
mov ecx, 0x410
lea r8, [rsp + 0x64]
rep stosb byte [rdi], al
lea rcx, [rsp + 0x250]
mov r9d, 0x104
mov edx, 0x208
call fcn.14000222c
lea rdx, [rsp + 0x250]
call fcn.14000f688
mov eax, ebx
mov rbx, qword [rsp + 0x670]
add rsp, 0x660
pop rdi
ret
Function at 0x14000feb0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x250
mov r12d, r9d
mov r13, r8
mov r15d, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, qword [rsp + 0x2a0]
mov r14, rax
xor eax, eax
mov ebp, eax
test rbx, rbx
je 0x14000fef7
mov dword [rbx], eax
lea rdi, [rsp + 0x40]
mov ecx, 0x20a
rep stosb byte [rdi], al
mov r9d, 0x104
xor edx, edx
jmp 0x14000ff4e
cmp dword [rsp + 0x2a0], r8d
je 0x14000ff6f
lea rcx, [rsp + 0x40]
mov rax, rsi
cmp rcx, rsi
je 0x14000ff92
test rsi, rsi
je 0x14000ff4a
lea rdx, [rsp + 0x40]
sub rdx, rsi
movzx ecx, word [rdx + rax]
movzx edi, word [rax]
lea rax, [rax + 2]
test cx, cx
je 0x14000ff46
cmp cx, di
je 0x14000ff31
cmp ecx, edi
je 0x14000ff92
inc ebp
mov edx, ebp
lea rax, [rsp + 0x2a0]
mov rcx, r14
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140002040
xor r8d, r8d
test eax, eax
jne 0x14000ff0d
xor eax, eax
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test r15d, r15d
je 0x14000ffc5
lea rax, [rsp + 0x2a0]
mov r9d, r12d
lea edx, [rbp + 1]
mov qword [rsp + 0x20], rax
mov r8, r13
mov rcx, r14
call fcn.140002040
test rbx, rbx
je 0x14000ff71
mov ecx, dword [rsp + 0x2a0]
mov dword [rbx], ecx
jmp 0x14000ff71
mov eax, 1
jmp 0x14000ff71
Function at 0x14001007c
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
and qword [rcx], 0
lea rdi, [rbp - 0x20]
and dword [rbp + 0x20], 0
mov r15, rcx
and qword [rdx], 0
xor eax, eax
mov word [rbp + 0x24], 0x500
mov ebx, 8
mov r14, rdx
mov edx, ebx
lea ecx, [rax + 0x18]
rep stosb byte [rdi], al
mov rax, qword gs:[0x30]
lea r8d, [rbx + 0x20]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
jne 0x1400100ee
mov edi, 0xc000009a
jmp 0x140010241
mov ecx, 1
call qword [sym.imp.ntdll.dll_RtlLengthRequiredSid]
mov ecx, 2
mov edi, eax
call qword [sym.imp.ntdll.dll_RtlLengthRequiredSid]
add eax, 0x18
mov edx, ebx
add edi, eax
mov rax, qword gs:[0x30]
mov r8d, edi
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
jne 0x140010139
mov edi, 0xc000009a
jmp 0x140010225
mov r8d, 2
mov edx, edi
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlCreateAcl]
mov edi, eax
test eax, eax
js 0x140010209
mov r8b, 1
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
mov edi, 0x10000000
lea r9, [rbp - 0x20]
mov r8d, edi
mov edx, 2
mov rcx, rbx
mov dword [rax], 0x12
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
mov r8b, 2
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
mov edx, 1
lea rcx, [rbp - 0x20]
mov dword [rax], 0x20
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
lea r9, [rbp - 0x20]
mov r8d, edi
mov edx, 2
mov rcx, rbx
mov dword [rax], 0x220
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
mov edi, eax
test eax, eax
js 0x140010209
xor r9d, r9d
mov r8, rbx
mov dl, 1
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
mov edi, eax
test eax, eax
jns 0x140010245
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ebx, ebx
xor esi, esi
mov qword [r15], rsi
mov eax, edi
mov qword [r14], rbx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x1400106ec
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], r9d
push rdi
push r14
push r15
sub rsp, 0x20
mov r15d, edx
mov rbp, rcx
xor ebx, ebx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov r14, rax
test rax, rax
je 0x1400107d2
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], ebx
mov rcx, rbp
call fcn.140001dd0
mov rsi, rax
test rax, rax
je 0x1400107d2
mov rcx, rax
call fcn.140001f60
test rax, rax
je 0x1400107c1
sub eax, esi
lea r8d, [r15 + 1]
shr r8d, 1
mov r9, rbp
mov dword [r14 + 0x28], eax
mov edx, ebx
je 0x14001077a
movzx eax, word [r9]
lea r9, [r9 + 2]
add edx, eax
mov ecx, edx
movzx edx, dx
shr ecx, 0x10
add edx, ecx
add r8d, 0xffffffff
jne 0x140010760
mov edi, edx
mov rcx, rbp
shr edi, 0x10
add di, dx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rcx, rax
test rax, rax
je 0x1400107af
movzx eax, word [rax + 0x58]
cmp di, ax
adc ax, bx
sub di, ax
movzx eax, word [rcx + 0x5a]
cmp di, ax
adc ax, bx
sub di, ax
jmp 0x1400107b2
movzx edi, bx
movzx eax, di
mov ebx, 1
add eax, r15d
mov dword [r14 + 0x58], eax
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1400108a0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x440
mov rbx, rcx
mov qword [rsp + 0x20], r9
xor eax, eax
lea rdi, [rsp + 0x30]
mov esi, edx
mov r9, r8
mov ecx, 0x410
lea r8, [0x14004d1e8]
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
mov edx, 0x208
call fcn.140003278
cmp dword [rsp + 0x470], 0
je 0x1400108fa
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14001090f
test rbx, rbx
je 0x14001090f
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400107f0
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140010924
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
xor r9d, r9d
mov qword [rax - 0x18], rbx
xor r8d, r8d
mov dword [rax - 0x20], 0x80
mov edx, 0x80000000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400109b3
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebx
mov r8d, 0x1000002
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x1400109aa
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea edx, [rbx + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140010d98
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x30
and dword [rbp + 0x10], 0
lea rax, [rbp + 0x20]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x18], 8
lea rdx, str.HARDWARERESOURCEMAPSystem_ResourcesPhysical_Memory
mov rcx, 0xffffffff80000002
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010e66
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
and qword [rsp + 0x20], rbx
lea rdx, str..Translated
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010e5c
cmp dword [rbp + 0x18], 8
jne 0x140010e5c
mov rax, qword gs:[0x30]
lea edx, [rbx + 8]
mov r8d, dword [rbp + 0x10]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x140010e5c
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str..Translated
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
Function at 0x140014994
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
mov r8, rcx
test rcx, rcx
jne 0x1400149b5
mov r8d, esi
jmp 0x1400149ca
cmp word [rcx], si
je 0x1400149c4
add r8, 2
cmp word [r8], si
jne 0x1400149ba
sub r8, rbx
sar r8, 1
mov rax, qword gs:[0x30]
lea r8, [r8*2 + 0x208]
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x140014a01
lea ecx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140014a20
mov r9d, 0x7ffe0030
mov qword [rsp + 0x20], rbx
lea r8, str._ws_system32drivers_ws.sys
mov edx, 0x208
mov rcx, rdi
call fcn.140003278
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400156dc
Capabilities:
Parse pe header

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

Function at 0x140017264
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140017292
xor eax, eax
jmp 0x140017378
cmp qword [rcx + 0x68], 0
je 0x1400172a3
call fcn.140017394
jmp 0x140017378
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400172ba
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400172bc
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400172ee
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14003eb70
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140017372
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140017325
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14001734e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140028ccc
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140017372
cmp rsi, rbx
ja 0x14001732c
test rsi, rsi
je 0x140017372
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140028ccc
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400255dc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400253d8
Function at 0x1400318f0
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 0x140031920
xor eax, eax
jmp 0x1400319e3
mov rbp, rbx
cmp word [rax], si
je 0x140031945
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003192c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140031928
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.140031810
movsxd r14, eax
test eax, eax
jne 0x140031983
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140031919
mov rcx, r14
call fcn.14002ca28
mov rdi, rax
test rax, rax
jne 0x14003199c
xor ecx, ecx
call fcn.14002bc34
jmp 0x140031978
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.140031810
test eax, eax
jne 0x1400319cd
mov rcx, rdi
call fcn.14002bc34
jmp 0x1400319d7
xor ecx, ecx
call fcn.14002bc34
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 0x140031a00
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 0x140031a87
mov rsi, rbx
cmp word [rax], bp
je 0x140031a46
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140031a30
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140031a2c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002ca28
mov rdi, rax
test rax, rax
je 0x140031a74
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003eb70
mov rbp, rdi
xor ecx, ecx
call fcn.14002bc34
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 0x1400352f4
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.14002e31c
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 0x140035395
cmp ebx, dword [rsp + 0x30]
je 0x14003538e
test esi, esi
je 0x14003538e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140035369
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140035376
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140035353
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14003537a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140035397
mov eax, 1
jmp 0x140035397
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140036aa0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14003df40
sub rsp, rax
mov rax, qword [0x140057040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002dc84
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140036aef
mov rax, rbp
jmp 0x140036bf7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x5a370]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140037d88
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5a370]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140036bf3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140036bf3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140037d88
test rax, rax
js 0x140036bf3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140036bf3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140036be5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140036be5
cmp byte [rcx], 0xd
jne 0x140036bcb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140036bda
cmp byte [rcx + 1], 0xa
jne 0x140036bda
inc rcx
jmp 0x140036bda
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x57b60]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140036bad
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140036bf7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003df10
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140036f14
Capabilities:
Get file size

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