joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014970
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1400720d0]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rcx
mov qword [rsp + 0x70], rdx
xor ecx, ecx
xor r8d, r8d
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], ecx
mov edi, dword [rsi + 8]
mov qword [rsp + 0x58], rcx
or edi, 0x2001f
mov qword [rsp + 0x60], rcx
mov r9d, edi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140014ac7
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400149f3
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
and edi, 0x300
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], edi
test ebx, ebx
jne 0x140014ac7
xor edi, edi
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x140014a9f
nop word [rax + rax]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.140014970
mov ebx, eax
test eax, eax
jne 0x140014ac7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x140014a50
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140014ab4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov rdx, qword [rsp + 0x70]
mov rcx, rsi
mov dword [rsp + 0x50], edi
call fcn.140013410
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140014ad7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140029210
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x140014c50
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14001343e
mov r8, rdx
mov rdx, qword [rdi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140014c50
cmp byte [0x140073f98], 0
mov qword [rsp + 0x30], rbx
jne 0x140013491
lea rcx, str.Advapi32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x140013481
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rbx, rax
mov qword [0x140073f90], rax
mov byte [0x140073f98], 1
jmp 0x140013498
mov rbx, qword [0x140073f90]
mov byte [0x140073f98], 1
jmp 0x140013498
mov rbx, qword [0x140073f90]
test rbx, rbx
je 0x1400134c8
mov rcx, rbx
call qword [fcn.14000cbb0]
mov r8d, dword [rdi + 8]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rsi
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp rax
mov rcx, qword [rdi]
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x140014cc7
lea rcx, str.Advapi32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x140014cdb
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140014cdb
mov rcx, rax
call qword [fcn.14000cbb0]
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rsi
mov rcx, rbp
call rdi
jmp 0x140014ce0
cmp dword [rcx + 8], 0
je 0x140014cdb
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyW]
jmp 0x140014ce0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140014fd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1400720d0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14001505e
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14001505e
call fcn.140012d70
mov ebx, eax
jmp 0x140015186
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14001507f
call fcn.140012d70
jmp 0x140015175
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400150a2
call fcn.140012d70
jmp 0x140015175
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1400150c4
mov ebx, 0x8007000e
jmp 0x140015177
mov ecx, eax
test eax, eax
je 0x1400150fc
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400150f2
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1400150fc
lea rcx, [rsp + 0x70]
call fcn.140012c60
jmp 0x140015106
mov ecx, 0x80070216
call fcn.140012fa0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140015119
cmp qword [rsp + 0x70], 0
jne 0x140015128
mov ebx, 0x8007000e
jmp 0x140015177
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
test eax, eax
jne 0x140015152
call fcn.140012d70
jmp 0x140015175
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140014de0
mov ebx, eax
test rdi, rdi
je 0x140015186
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14001519d
lea rcx, [rsp + 0x70]
call fcn.140013530
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140029210
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140015a10
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x140015a50
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x140015a68
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x140015a74
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x140015a70
mov rcx, qword [rcx]
mov rdx, r10
mov dword [rsp + 0x28], r8d
xor r8d, r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
add rsp, 0x38
ret
Function at 0x140022540
Capabilities:
Create service

Disassembly:
push rdi
sub rsp, 0xa90
mov rax, qword [0x1400720d0]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.140022810
test eax, eax
je 0x140022571
mov eax, 1
jmp 0x140022725
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
test eax, eax
je 0x140022757
cmp eax, 0x104
je 0x140022757
lea ecx, [rax + 1]
mov r8d, 0x22
mov word [rsp + 0x70], r8w
mov word [rsp + rcx*2 + 0x70], r8w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x14002279d
mov qword [rsp + 0xaa8], rbx
xor edx, edx
mov qword [rsp + 0xab0], rsi
mov r8d, 0xf003f
xor esi, esi
mov word [rsp + rcx + 0x70], si
xor ecx, ecx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140022658
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.140021150
test eax, eax
jne 0x140022713
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14003097c
test eax, eax
je 0x140022713
cmp eax, 0xc
je 0x140022771
cmp eax, 0x16
je 0x140022766
cmp eax, 0x22
je 0x140022766
cmp eax, 0x50
je 0x140022713
jmp 0x14002275b
mov qword [rsp + 0x60], rsi
lea rax, str.RPCSS
mov qword [rsp + 0x58], rsi
lea rdx, [rdi + 0x68]
mov qword [rsp + 0x50], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov r8, rdx
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
test rax, rax
jne 0x14002273e
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.140021150
test eax, eax
jne 0x140022713
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14003097c
test eax, eax
je 0x140022713
cmp eax, 0xc
je 0x140022792
cmp eax, 0x16
je 0x140022787
cmp eax, 0x22
je 0x140022787
cmp eax, 0x50
jne 0x14002277c
xor eax, eax
mov rbx, qword [rsp + 0xaa8]
mov rsi, qword [rsp + 0xab0]
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.140029210
add rsp, 0xa90
pop rdi
ret
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, 1
jmp 0x140022715
xor eax, eax
jmp 0x140022725
mov ecx, 0x80004005
call fcn.140012fa0
int3
mov ecx, 0x80070057
call fcn.140012fa0
int3
mov ecx, 0x8007000e
call fcn.140012fa0
int3
mov ecx, 0x80004005
call fcn.140012fa0
int3
mov ecx, 0x80070057
call fcn.140012fa0
int3
mov ecx, 0x8007000e
call fcn.140012fa0
int3
call fcn.1400294c4
int3
Function at 0x1400249f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorLength]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], 0
lea rdx, str.LaunchPermission
mov rcx, rdi
mov esi, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
cmp eax, 2
jne 0x140024a73
mov dword [rsp + 0x28], esi
lea r9d, [rax + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.LaunchPermission
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExA]
test eax, eax
je 0x140024a73
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140025350
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x140025378
add rsp, 0x30
pop rbx
ret
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140022890]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x1400253b9
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x50], rdi
mov rax, rdi
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
Function at 0x14003a380
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 rbx, rcx
test rcx, rcx
jne 0x14003a0a6
call fcn.14002d61c
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.14002d3b8
jmp 0x14003a1f1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14003a1f1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14003a1f1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14003a0d5
lock or dword [rcx + 0x14], 0x10
jmp 0x14003a1f1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14003a0e9
call fcn.14003a720
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x14003a0f9
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x14003a0fc
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.140039c98
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.140044268
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14003a1df
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14003a18d
mov rcx, rbx
call fcn.140039c98
cmp eax, 0xffffffff
je 0x14003a178
mov rcx, rbx
call fcn.140039c98
cmp eax, 0xfffffffe
je 0x14003a178
mov rcx, rbx
call fcn.140039c98
movsxd rdi, eax
lea r14, [0x140075530]
mov rcx, rbx
sar rdi, 6
call fcn.140039c98
mov rcx, qword [r14 + rdi*8]
and eax, 0x3f
shl rax, 6
lea rdx, [rax + rcx]
jmp 0x14003a17f
lea rdx, [0x140072490]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14003a18d
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14003a1b1
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14003a1b1
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14003a1b1
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x14003a1cf
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14003a1da
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x14003a1f6
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x14003a070
Function at 0x14000df64
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 0x14000df92
xor eax, eax
jmp 0x14000e078
cmp qword [rcx + 0x68], 0
je 0x14000dfa3
call fcn.14000e094
jmp 0x14000e078
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000dfba
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000dfbc
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000dfee
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400330c0
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 0x14000e072
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000e025
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 0x14000e04e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001d4a0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000e072
cmp rsi, rbx
ja 0x14000e02c
test rsi, rsi
je 0x14000e072
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001d4a0
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 0x140010b7c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010bc6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010bc6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010bc6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010bc6
cmp dword [rcx + 0x84], 0xe
jbe 0x140010bc6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140010bc8
xor al, al
add rsp, 0x28
ret
Function at 0x14001c414
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 0x14001c44b
call fcn.14001c5fc
mov dword [rax], 0x16
call fcn.1400188fc
xor eax, eax
jmp 0x14001c4d9
mov rdx, r9
mov rcx, r8
call fcn.14001c3b0
mov rbx, rax
test rax, rax
je 0x14001c4d6
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14001c2dc]
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 0x14001c4c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001c570
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001c4aa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14001c4b9
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400228b4
jmp 0x14001c4d6
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001c4d3
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 0x14001f504
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 0x14001f573
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001f573
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001f573
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001f573
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001f573
cmp dword [rcx + 0x84], 0xe
jbe 0x14001f573
cmp dword [rcx + 0xf8], 0
je 0x14001f573
mov ecx, ebx
call fcn.14001f624
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.14001f400
nop
cmp dword [rbp + 0x20], 0
je 0x14001f5c1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001f5cc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001f504

Function at 0x14001f708
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001f504
Function at 0x140027a9c
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.140010720
sub rsp, rax
mov rax, qword [0x1400470c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400254d8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140027aeb
mov rax, rbp
jmp 0x140027bf3
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 + 0x49aa0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140028bbc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x49aa0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140027bef
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 0x140027bef
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140028bbc
test rax, rax
js 0x140027bef
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140027bef
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140027be1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140027be1
cmp byte [rcx], 0xd
jne 0x140027bc7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140027bd6
cmp byte [rcx + 1], 0xa
jne 0x140027bd6
inc rcx
jmp 0x140027bd6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x47500]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140027ba9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140027bf3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000fdf0
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 0x140027e14
Capabilities:
Get file size

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