joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002da30
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14002da52
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14002dacc
mov rdi, r14
mov rcx, rbx
call fcn.140013f40
test rax, rax
jle 0x14002daa4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14008d8a0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14002dabc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14002dac4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14002da66
sub r14, rdi
jmp 0x14002dbb9
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14002dae3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002dae5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14002db1a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14008d8a0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14002dbb6
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x14002db55
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x14002db91
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400a3a94
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x14002dbcf
cmp rbp, rax
ja 0x14002db61
mov r8, rdi
test rdi, rdi
je 0x14002dbb6
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400a3a94
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x14002dbb9
Function at 0x140058c50
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14010a010]
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 0x140058cd6
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.140060fe0
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret

Function at 0x140058d00
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x14010a010]
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.140058730
mov rdx, qword [rdi + 8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140058da9
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.140060fe0
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
ret
Function at 0x14005b690
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14010a010]
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 0x14005b711
lea rbx, str.C:Userspaul1_leeDesktopAsusAppServiceAsusAppServiceAsusAppServiceUtility.cpp
mov rcx, rbx
lea edx, [rax + 0x5c]
call fcn.14008d088
test rax, rax
je 0x14005b6ea
lea edx, [rdi + 0x5c]
mov rcx, rbx
call fcn.14008d088
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.140015a30
jmp 0x14005b783
mov r8d, 4
lea rdx, str.RetailDemo
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x14005b7a4
lea rbx, str.C:Userspaul1_leeDesktopAsusAppServiceAsusAppServiceAsusAppServiceUtility.cpp
mov rcx, rbx
lea edx, [rax + 0x5c]
call fcn.14008d088
test rax, rax
je 0x14005b755
lea edx, [rsi + 0x5c]
mov rcx, rbx
call fcn.14008d088
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.140015a30
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140060fe0
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 0x14005b823
lea rbx, str.C:Userspaul1_leeDesktopAsusAppServiceAsusAppServiceAsusAppServiceUtility.cpp
mov rcx, rbx
lea edx, [rax + 0x5c]
call fcn.14008d088
test rax, rax
je 0x14005b7f0
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d088
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.140015a30
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14005b77a
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 0x14005b783
lea eax, [rbx - 3]
jmp 0x14005b785
Function at 0x14005bc60
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14010a010]
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 0x14005bc98
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 0x14005bd1a
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14005bcdf
mov rcx, qword [rbx]
cmp qword [rsi + 0x18], 8
jb 0x14005bce9
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 0x14005bd5f
lea rbx, str.C:Userspaul1_leeDesktopAsusAppServiceAsusAppServiceAsusAppServiceUtility.cpp
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d088
test rax, rax
je 0x14005bd44
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d088
lea rbx, [rax + 1]
lea r9, str.Set_FAIL
mov edx, 0x1a1
lea r8, str.RegWriteString
mov rcx, rbx
call fcn.140015a30
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14005bd6f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140060fe0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14005ecd0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push r12
push r14
sub rsp, 0x68
mov rax, qword [0x14010a010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r12b, r12b
mov r14, r8
test r8, r8
je 0x14005eeed
mov qword [rsp + 0x80], rbx
lea r8, [0x1400e3608]
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 0x14005ee2b
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x14005edef
mov rcx, rax
mov qword [rsp + 0x88], rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14005edd9
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 0x14005edd4
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 0x14005ee78
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d088
test rax, rax
je 0x14005ee14
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d088
lea rdi, [rax + 1]
jmp 0x14005ee17
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.LoadResource_failed_with_0x_x
mov edx, 0x11a
jmp 0x14005ee65
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d088
test rax, rax
je 0x14005ee50
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d088
lea rdi, [rax + 1]
jmp 0x14005ee53
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.140015a30
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d088
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
test rax, rax
je 0x14005eea5
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d088
lea rbx, [rax + 1]
test r12b, r12b
lea rcx, [0x1400dade8]
lea rax, [0x1400dadf8]
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.140015a30
mov rbx, qword [rsp + 0x80]
movzx eax, r12b
jmp 0x14005eeef
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140060fe0
add rsp, 0x68
pop r14
pop r12
ret
Function at 0x1400600e0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x14010a010]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rsi, rdx
lea rcx, [rsp + 0x90]
xor edx, edx
mov r8d, 0x200
call fcn.14008d590
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 0x140060202
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 0x140060202
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 0x140060212
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140060fe0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140060240
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 [0x14010a010]
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.1400612b0
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 0x140060400
mov dword [rbp - 1], 0x1c
lea rdx, [rbp - 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140060400
movabs r13, 0x7ffffffffffffff
nop dword [rax + rax]
cmp dword [rbp - 1], 0x10
jb 0x1400603e1
cmp dword [rbp + 0xb], r14d
jne 0x1400603e1
mov ecx, dword [rbp + 7]
cmp ecx, r15d
je 0x1400603e1
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 0x140060386
nop dword [rax + rax]
mov qword [rbp - 0x39], rax
cmp dword [rax + 0x1c], ecx
jae 0x140060373
mov dword [rbp - 0x31], r12d
mov rax, qword [rax + 0x10]
jmp 0x140060380
mov dword [rbp - 0x31], 1
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140060360
cmp byte [rdx + 0x19], 0
jne 0x140060391
cmp ecx, dword [rdx + 0x1c]
jae 0x1400603e1
cmp qword [rdi + 8], r13
je 0x14006043f
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], r12
mov ecx, 0x20
call fcn.1400612b0
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.140014460
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 0x140060320
test rbx, rbx
je 0x14006040f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, rdi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140060fe0
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.1400120e0
int3
Function at 0x14009fa3c
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 0x14009fa73
call fcn.140093298
mov dword [rax], 0x16
call fcn.140091a64
xor eax, eax
jmp 0x14009fb01
mov rdx, r9
mov rcx, r8
call fcn.14009f9d8
mov rbx, rax
test rax, rax
je 0x14009fafe
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14009f904]
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 0x14009faeb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14009320c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14009fad2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14009fae1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400adea4
jmp 0x14009fafe
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14009fafb
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 0x1400b0d90
Capabilities:
Get file size

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

Function at 0x1400b240c
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.1400c02d0
sub rsp, rax
mov rax, qword [0x14010a010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400af3e8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400b245b
mov rax, rbp
jmp 0x1400b2563
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 + 0x10f410]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400b28f4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x10f410]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400b255f
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 0x1400b255f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400b28f4
test rax, rax
js 0x1400b255f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400b255f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400b2551
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400b2551
cmp byte [rcx], 0xd
jne 0x1400b2537
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400b2546
cmp byte [rcx + 1], 0xa
jne 0x1400b2546
inc rcx
jmp 0x1400b2546
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x10a800]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400b2519
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400b2563
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140060fe0
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 0x1400b3d14
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, [0x14010f410]
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 0x1400b3d6b
cmp word [rdx], r13w
jne 0x1400b3d6b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400b3d70
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400b3e95
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400b3eb6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400b3da9
mov rdx, r9
mov word [rbx], cx
jmp 0x1400b3dd0
cmp r9, r8
jae 0x1400b3de0
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 0x1400b3d8a
jmp 0x1400b3e95
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 0x1400b3e8a
cmp dword [rsp + 0x80], esi
je 0x1400b3e8a
lea r8, [0x14010f410]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400b3e62
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400b3e32
mov word [rbx], r13w
jmp 0x1400b3e92
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 0x1400b3e3f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400b3e92
cmp word [rsp + 0x70], r13w
jne 0x1400b3e6f
cmp rbx, r14
je 0x1400b3e2c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400b28fc
cmp word [rsp + 0x70], r13w
je 0x1400b3e95
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, [0x14010f410]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400b3e8f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400b3e95
Function at 0x1400b60f4
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 0x1400b617b
mov rsi, rbx
cmp word [rax], bp
je 0x1400b613a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400b6124
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400b6120
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400adee0
mov rdi, rax
test rax, rax
je 0x1400b6168
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14008d8a0
mov rbp, rdi
xor ecx, ecx
call fcn.1400adea4
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