joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011fd0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000db28
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001205a
cmp byte [rbp - 0x21], r15b
je 0x140012055
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140012090
call fcn.14000c148
test eax, eax
jne 0x14001207c
cmp byte [rbp - 0x21], r15b
je 0x140012074
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140012090
cmp byte [rbp - 0x21], r15b
je 0x14001208d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000d108
test eax, eax
jne 0x140012130
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000db28
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400120cf
cmp byte [rbp - 0x21], r15b
je 0x140012104
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012104
call fcn.14000c148
test eax, eax
jne 0x1400120f0
cmp byte [rbp - 0x21], r15b
je 0x1400120e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012104
cmp byte [rbp - 0x21], r15b
je 0x140012101
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000d108
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140012130
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140012133
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140012141
mov rcx, rdi
call fcn.14000b7c8
cmp byte [rbp + 0x3f], r15b
je 0x140012150
mov rcx, qword [rbp + 0x27]
call fcn.14000b7c8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140013dc0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140013de8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140013de8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000aeb0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000aec0]
mov dword [rax], 1
mov rax, qword [0x14000aed0]
mov dword [rax], 1
mov rax, qword [0x14000ae30]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000aea0]
mov dword [0x14000d00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14000af80]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000af60]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000ae10]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400016b4
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, [0x14000a0f7]
mov rcx, rax
call sym.system
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140001977
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x140], rcx
lea rax, [rbp + 0x10]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rdx, [rbp - 0x60]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x60], 0x70
lea rax, str.runas
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x10]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp + 0x140]
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x30], 1
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
jne 0x140001a0d
lea rax, str.elevation
mov rcx, rax
call sym.handleError
nop
add rsp, 0x1a8
pop rdi
pop rbp
ret
Function at 0x140001a18
Capabilities:
Modify service
Start service

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov r8d, 0xf003f
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001a58
lea rax, str.SCM_access
mov rcx, rax
call sym.handleError
jmp 0x140001bc6
mov rax, qword [rbp - 8]
mov r8d, 0xf01ff
lea rdx, str.dot3svc
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_OpenServiceA]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001aa4
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call rax
lea rax, str.service_access
mov rcx, rax
call sym.handleError
jmp 0x140001bc6
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8d, 2
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
call rax
test eax, eax
jne 0x140001b19
lea rax, str.service_configuration
mov rcx, rax
call sym.handleError
jmp 0x140001b97
mov rax, qword [rbp - 0x10]
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_StartServiceA]
call rax
test eax, eax
jne 0x140001b57
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x420
je 0x140001b57
lea rax, str.service_start
mov rcx, rax
call sym.handleError
lea r8, str.e_0m
lea rax, str.e_92m
mov rdx, rax
lea rax, str._n_sSettings_applied_successfully._s_n
mov rcx, rax
call sym.printf
lea r8, str.e_0m
lea rax, str.e_96m
mov rdx, rax
lea rax, str._sNote:_Your_network_connection_will_now_authenticate_automatically_on_startup._s_n
mov rcx, rax
call sym.printf
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call rax
mov ecx, 0x7d0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
nop
add rsp, 0x70
pop rbp
ret
Function at 0x140001bcc
Capabilities:
Modify service
Stop service

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov r8d, 0xf003f
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001c0f
lea rax, str.SCM_access
mov rcx, rax
call sym.handleError
jmp 0x140001d7e
mov rax, qword [rbp - 8]
mov r8d, 0xf01ff
lea rdx, str.dot3svc
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_OpenServiceA]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001c5b
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call rax
lea rax, str.service_access
mov rcx, rax
call sym.handleError
jmp 0x140001d7e
lea rdx, [rbp - 0x30]
mov rax, qword [rbp - 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_ControlService]
call rax
test eax, eax
jne 0x140001c9a
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x426
je 0x140001c9a
lea rax, str.service_stop
mov rcx, rax
call sym.handleError
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8d, 3
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
call rax
test eax, eax
jne 0x140001d0f
lea rax, str.service_configuration
mov rcx, rax
call sym.handleError
jmp 0x140001d4f
lea r8, str.e_0m
lea rax, str.e_93m
mov rdx, rax
lea rax, str._n_sSettings_reverted_successfully._s_n
mov rcx, rax
call sym.printf
lea r8, str.e_0m
lea rax, str.e_96m
mov rdx, rax
lea rax, str._sNote:_You_will_need_to_manually_authenticate_your_network_connection._s_n
mov rcx, rax
call sym.printf
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call rax
mov ecx, 0x7d0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
nop
add rsp, 0x90
pop rbp
ret
Function at 0x140001d87
Capabilities:
Query service configuration
Query service status

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov r8d, 1
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001dd8
lea r8, str.e_0m
lea rax, str.e_91m
mov rdx, rax
lea rax, str._sUnable_to_query_service_status._s_n
mov rcx, rax
call sym.printf
jmp 0x140001f4d
mov rax, qword [rbp - 0x10]
mov r8d, 5
lea rdx, str.dot3svc
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_OpenServiceA]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x140001e35
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call rax
lea r8, str.e_0m
lea rax, str.e_91m
mov rdx, rax
lea rax, str._sUnable_to_access_service_information._s_n
mov rcx, rax
call sym.printf
jmp 0x140001f4d
mov qword [rbp - 8], 0
lea rax, [rbp - 0x40]
mov rcx, qword [rbp - 0x18]
mov rdx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
call rax
test eax, eax
je 0x140001eab
lea rdx, [rbp - 0x44]
mov rax, qword [rbp - 0x18]
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
call rax
test eax, eax
je 0x140001eab
mov eax, dword [rbp - 0x44]
mov eax, eax
mov rcx, rax
call sym.malloc
mov qword [rbp - 8], rax
mov r8d, dword [rbp - 0x44]
lea rcx, [rbp - 0x44]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x18]
mov r9, rcx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
call rax
lea rax, str.Service_Name:_dot3svc_n
mov rcx, rax
call sym.printf
mov eax, dword [rbp - 0x3c]
cmp eax, 4
jne 0x140001ecb
lea rax, str.e_92mRunninge_0m
jmp 0x140001ed2
lea rax, str.e_93mStoppede_0m
mov rdx, rax
lea rax, str.Status:__s_n
mov rcx, rax
call sym.printf
cmp qword [rbp - 8], 0
je 0x140001f00
mov rax, qword [rbp - 8]
mov eax, dword [rax + 4]
cmp eax, 2
jne 0x140001f00
lea rax, str.e_92mAutomatice_0m
jmp 0x140001f07
lea rax, str.e_93mManuale_0m
mov rdx, rax
lea rax, str.Startup_Type:__s_n
mov rcx, rax
call sym.printf
cmp qword [rbp - 8], 0
je 0x140001f2c
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.free
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call rax
nop
add rsp, 0x70
pop rbp
ret

Function at 0x140002310
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140002380
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d094]
test esi, esi
mov rbx, rcx
jle 0x1400024b0
mov rax, qword [0x14000d098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400023cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002455
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400023b0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x1400024d2
mov rax, qword [0x14000d098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400024b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000244e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002460
add dword [0x14000d094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14000d098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000244e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400023d8
mov rax, qword [0x14000d098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002a40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x140002a9c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002a93
test rsi, rsi
je 0x140002a93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002a78
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002cb0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002cc8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002cd0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002ce0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x140002d2d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x140002d24
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002d2f
add rax, 0x28
cmp rax, r9
jne 0x140002d10
xor eax, eax
ret

Function at 0x140002d30
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002dc0
mov rdx, qword [0x14000ae30]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002dae
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002dae
cmp word [rax + 0x18], 0x20b
jne 0x140002dae
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002dc0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002d99
add rbx, 0x28
cmp rbx, rdi
je 0x140002dc0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002d90
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002dd0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000ae30]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002df0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002df8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002df0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002e4d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140002e44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002df0
add rax, 0x28
cmp rax, r9
jne 0x140002e30
xor eax, eax
ret

Function at 0x140002e50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000ae30]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002e6f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002e78
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002e6f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002e90
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000ae30]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002eb0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002eb8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002eb0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002f00
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002ef7
test rcx, rcx
je 0x140002eb0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002ee8
xor eax, eax
ret
Function at 0x140002f10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000ae30]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002f2f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002f38
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002f50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000ae30]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002f70
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002f78
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002f70
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140002f70
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140002fc4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002fd0
add rdx, 0x28
cmp r9, rdx
jne 0x140002fb0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002fe0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000ae30]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003002
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003010
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003002
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003002
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140003002
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x140003065
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140003078
add rdx, 0x28
cmp rdx, r10
jne 0x140003050
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140003087
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140003097
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000306e
test ecx, ecx
jg 0x140003080
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400186c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400186e8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14001870e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140018710
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140018769
test ecx, ecx
jle 0x140018749
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140018769
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140018769
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140018790
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400187b2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400187c8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400187e4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400187e6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140018822
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400188be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001885d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14001889e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400188be
cmp rbx, rax
ja 0x140018870
test rbx, rbx
je 0x1400188be
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret