joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140058f60
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14010b010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov rdx, qword [rcx + 8]
movzx ebp, r8w
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140058fe6
mov rcx, qword [rdi + 8]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rcx
mov edx, 2
xor ecx, ecx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], dx
movzx edx, bp
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400612f0
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret

Function at 0x140059010
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x14010b010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
mov dword [rsp + 0x20], r8d
mov r9, rdx
lea r8, str._s_failed_w_err_0x_08lx
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140058a40
mov rdx, qword [rdi + 8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x1400590b9
mov rcx, qword [rdi + 8]
lea rax, [rsp + 0x60]
mov r9d, 2
mov qword [rsp + 0x50], rcx
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ecx
lea edx, [r9 - 1]
mov word [rsp + 0x28], r9w
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400612f0
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
ret
Function at 0x14005b9b0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14010b010]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14005ba31
lea rbx, str.C:Userspaul1_leeDesktopAsusAppServiceAsusAppServiceAsusAppServiceUtility.cpp
mov rcx, rbx
lea edx, [rax + 0x5c]
call fcn.14008d398
test rax, rax
je 0x14005ba0a
lea edx, [rdi + 0x5c]
mov rcx, rbx
call fcn.14008d398
lea rbx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.OpenSCManager_failed___d___n
mov edx, 0x79
lea r8, str.GetServiceStatus
mov dword [rsp + 0x20], eax
mov rcx, rbx
call fcn.140015b90
jmp 0x14005baa3
mov r8d, 4
lea rdx, str.RetailDemo
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x14005bac4
lea rbx, str.C:Userspaul1_leeDesktopAsusAppServiceAsusAppServiceAsusAppServiceUtility.cpp
mov rcx, rbx
lea edx, [rax + 0x5c]
call fcn.14008d398
test rax, rax
je 0x14005ba75
lea edx, [rsi + 0x5c]
mov rcx, rbx
call fcn.14008d398
lea rbx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.OpenService_failed___d___n
mov edx, 0x80
lea r8, str.GetServiceStatus
mov dword [rsp + 0x20], eax
mov rcx, rbx
call fcn.140015b90
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400612f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x14005bb43
lea rbx, str.C:Userspaul1_leeDesktopAsusAppServiceAsusAppServiceAsusAppServiceUtility.cpp
mov rcx, rbx
lea edx, [rax + 0x5c]
call fcn.14008d398
test rax, rax
je 0x14005bb10
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d398
lea rbx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.QueryServiceStatusEx_failed___d___n
mov edx, 0x89
lea r8, str.GetServiceStatus
mov dword [rsp + 0x20], eax
mov rcx, rbx
call fcn.140015b90
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14005ba9a
mov ebx, dword [rsp + 0x3c]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp ebx, 4
jne 0x14005baa3
lea eax, [rbx - 3]
jmp 0x14005baa5
Function at 0x14005bf80
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14010b010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, qword [rsp + 0x90]
xor edi, edi
cmp qword [r8 + 0x18], 8
mov rsi, r9
mov rax, r8
jb 0x14005bfb8
mov rax, qword [r8]
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rdx, rax
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14005c03a
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14005bfff
mov rcx, qword [rbx]
cmp qword [rsi + 0x18], 8
jb 0x14005c009
mov rsi, qword [rsi]
mov eax, dword [rbx + 0x10]
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, 1
jmp 0x14005c07f
lea rbx, str.C:Userspaul1_leeDesktopAsusAppServiceAsusAppServiceAsusAppServiceUtility.cpp
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d398
test rax, rax
je 0x14005c064
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d398
lea rbx, [rax + 1]
lea r9, str.Set_FAIL
mov edx, 0x1a1
lea r8, str.RegWriteString
mov rcx, rbx
call fcn.140015b90
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14005c08f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400612f0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14005efe0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push r12
push r14
sub rsp, 0x68
mov rax, qword [0x14010b010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r12b, r12b
mov r14, r8
test r8, r8
je 0x14005f1fd
mov qword [rsp + 0x80], rbx
lea r8, [0x1400e4648]
mov qword [rsp + 0x60], rsi
mov rdx, r9
xor ecx, ecx
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
lea rbx, str.C:Userspaul1_leeDesktopAsusAppServiceAsusAppServiceAsusAppServiceVirtualDeviceInstaller.cpp
mov rsi, rax
test rax, rax
je 0x14005f13b
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x14005f0ff
mov rcx, rax
mov qword [rsp + 0x88], rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14005f0e9
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80000000
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 2
mov rcx, r14
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14005f0e4
mov rdx, rsi
mov dword [rsp + 0x40], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, eax
mov rdx, rbp
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12b, 1
mov r15, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x88]
jmp 0x14005f188
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d398
test rax, rax
je 0x14005f124
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d398
lea rdi, [rax + 1]
jmp 0x14005f127
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.LoadResource_failed_with_0x_x
mov edx, 0x11a
jmp 0x14005f175
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d398
test rax, rax
je 0x14005f160
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d398
lea rdi, [rax + 1]
jmp 0x14005f163
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.FindResource_failed_with_0x_x
mov edx, 0x11f
lea r8, str.ExtractFile
mov dword [rsp + 0x20], eax
mov rcx, rdi
call fcn.140015b90
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d398
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
test rax, rax
je 0x14005f1b5
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d398
lea rbx, [rax + 1]
test r12b, r12b
lea rcx, [0x1400dbe28]
lea rax, [0x1400dbe38]
mov edx, 0x122
cmovne rax, rcx
lea r9, str.ExtractFile_file___s___result___s
mov qword [rsp + 0x28], rax
lea r8, str.ExtractFile
mov rcx, rbx
mov qword [rsp + 0x20], r14
call fcn.140015b90
mov rbx, qword [rsp + 0x80]
movzx eax, r12b
jmp 0x14005f1ff
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400612f0
add rsp, 0x68
pop r14
pop r12
ret
Function at 0x1400603f0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x14010b010]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rsi, rdx
lea rcx, [rsp + 0x90]
xor edx, edx
mov r8d, 0x200
call fcn.14008d8a0
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], 0x100
lea rcx, [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor ebx, ebx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
mov edi, 1
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov edx, edi
mov qword [rsp + 0x20], rbx
lea r8d, [rdi + 3]
mov qword [rsp + 0x48], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x140060512
mov r9d, edi
mov dword [rsp + 0x20], 3
mov r8d, 0x10000000
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
mov r8, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov ecx, edi
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x140060512
mov rax, qword [rsp + 0x40]
lea r8d, [rdi + 3]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
cmovne edi, ebx
mov ebx, edi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140060522
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400612f0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140060550
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x14010b010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, rdx
mov qword [rbp - 9], rdx
xor r12d, r12d
mov dword [rbp - 0x49], r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r15d, eax
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi], r12
mov qword [rdi + 8], r12
lea ecx, [r12 + 0x20]
call fcn.1400615c0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rdi], rax
mov dword [rbp - 0x49], 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rsi
mov rbx, rsi
cmp rsi, 0xffffffffffffffff
je 0x140060710
mov dword [rbp - 1], 0x1c
lea rdx, [rbp - 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140060710
movabs r13, 0x7ffffffffffffff
nop dword [rax + rax]
cmp dword [rbp - 1], 0x10
jb 0x1400606f1
cmp dword [rbp + 0xb], r14d
jne 0x1400606f1
mov ecx, dword [rbp + 7]
cmp ecx, r15d
je 0x1400606f1
mov rbx, qword [rdi]
mov rax, qword [rbx + 8]
mov qword [rbp - 0x39], rax
mov dword [rbp - 0x31], r12d
mov rdx, rbx
cmp byte [rax + 0x19], 0
jne 0x140060696
nop dword [rax + rax]
mov qword [rbp - 0x39], rax
cmp dword [rax + 0x1c], ecx
jae 0x140060683
mov dword [rbp - 0x31], r12d
mov rax, qword [rax + 0x10]
jmp 0x140060690
mov dword [rbp - 0x31], 1
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140060670
cmp byte [rdx + 0x19], 0
jne 0x1400606a1
cmp ecx, dword [rdx + 0x1c]
jae 0x1400606f1
cmp qword [rdi + 8], r13
je 0x14006074f
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], r12
mov ecx, 0x20
call fcn.1400615c0
mov r8, rax
mov eax, dword [rbp + 7]
mov dword [r8 + 0x1c], eax
mov qword [r8], rbx
mov qword [r8 + 8], rbx
mov qword [r8 + 0x10], rbx
mov word [r8 + 0x18], 0
mov qword [rbp - 0x11], r12
movups xmm0, xmmword [rbp - 0x39]
movaps xmmword [rbp - 0x39], xmm0
lea rdx, [rbp - 0x39]
mov rcx, rdi
call fcn.1400145c0
mov dword [rbp - 1], 0x1c
mov rbx, rsi
lea rdx, [rbp - 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140060630
test rbx, rbx
je 0x14006071f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, rdi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400612f0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140012240
int3
Function at 0x14009fd4c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14009fd83
call fcn.1400935a8
mov dword [rax], 0x16
call fcn.140091d74
xor eax, eax
jmp 0x14009fe11
mov rdx, r9
mov rcx, r8
call fcn.14009fce8
mov rbx, rax
test rax, rax
je 0x14009fe0e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14009fc14]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14009fdfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14009351c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14009fde2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14009fdf1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400ae1b4
jmp 0x14009fe0e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14009fe0b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400b10a0
Capabilities:
Get file size

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

Function at 0x1400b271c
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.1400c05e0
sub rsp, rax
mov rax, qword [0x14010b010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400af6f8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400b276b
mov rax, rbp
jmp 0x1400b2873
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 + 0x110410]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400b2c04
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x110410]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400b286f
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 0x1400b286f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400b2c04
test rax, rax
js 0x1400b286f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400b286f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400b2861
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400b2861
cmp byte [rcx], 0xd
jne 0x1400b2847
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400b2856
cmp byte [rcx + 1], 0xa
jne 0x1400b2856
inc rcx
jmp 0x1400b2856
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x10b800]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400b2829
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400b2873
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400612f0
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 0x1400b4024
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, [0x140110410]
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 0x1400b407b
cmp word [rdx], r13w
jne 0x1400b407b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400b4080
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400b41a5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400b41c6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400b40b9
mov rdx, r9
mov word [rbx], cx
jmp 0x1400b40e0
cmp r9, r8
jae 0x1400b40f0
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 0x1400b409a
jmp 0x1400b41a5
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 0x1400b419a
cmp dword [rsp + 0x80], esi
je 0x1400b419a
lea r8, [0x140110410]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400b4172
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400b4142
mov word [rbx], r13w
jmp 0x1400b41a2
mov ecx, 0xd
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 0x1400b414f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400b41a2
cmp word [rsp + 0x70], r13w
jne 0x1400b417f
cmp rbx, r14
je 0x1400b413c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400b2c0c
cmp word [rsp + 0x70], r13w
je 0x1400b41a5
mov ecx, 0xd
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, [0x140110410]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400b419f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400b41a5
Function at 0x1400b6404
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 0x1400b648b
mov rsi, rbx
cmp word [rax], bp
je 0x1400b644a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400b6434
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400b6430
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400ae1f0
mov rdi, rax
test rax, rax
je 0x1400b6478
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14008dbb0
mov rbp, rdi
xor ecx, ecx
call fcn.1400ae1b4
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 0x1400b9590
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.1400ade54
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 0x1400b9631
cmp ebx, dword [rsp + 0x30]
je 0x1400b962a
test esi, esi
je 0x1400b962a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400b9605
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400b9612
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400b95ef
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400b9616
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400b9633
mov eax, 1
jmp 0x1400b9633
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400bfdfc
Capabilities:
Clear file content

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 r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400b2c0c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400b2c0c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400bff4c
cmp rax, 0xffffffffffffffff
je 0x1400bff4c
xor edi, edi
test rbp, rbp
jle 0x1400bfef7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400b1634
mov rbx, rax
test rax, rax
jne 0x1400bfe84
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400bfeed
mov edx, 0x8000
mov ecx, r14d
call fcn.1400a58e4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400b075c
cmp eax, 0xffffffff
je 0x1400bfecd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400bfe94
mov edx, r15d
mov ecx, r14d
call fcn.1400a58e4
jmp 0x1400bfeed
cmp byte [rsi + 0x38], dil
je 0x1400bfee4
cmp dword [rsi + 0x34], 5
jne 0x1400bfee4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400bfeed
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400ae1b4
jmp 0x1400bff60
jns 0x1400bff60
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400b2c0c
cmp rax, 0xffffffffffffffff
jne 0x1400bff18
cmp byte [rsi + 0x30], dil
je 0x1400bff60
mov edi, dword [rsi + 0x2c]
jmp 0x1400bff60
mov ecx, r14d
call fcn.1400b6eac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400bff60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400bff60
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400bff59
mov eax, dword [rsi + 0x2c]
jmp 0x1400bff5e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400b2c0c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret