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

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x140051018]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000446e
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000d570
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x68], rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x70], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov esi, eax
call fcn.140018824
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov r8d, esi
mov qword [rsp + 0x20], 0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400044be
cmp dword [rsp + 0x40], esi
je 0x1400044c8
mov rcx, rbx
call fcn.1400183e4
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000d570
add rsp, 0x50
pop rdi
ret
Function at 0x1400057f0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140051018]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rbx, [0x140052e30]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140005820
test rax, rax
jne 0x140005877
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14000e900
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x20]
mov edx, 0x104
mov rcx, rbx
call fcn.1400181b0
lea r8, str.wdigest.dll
mov edx, 0x104
mov rcx, rbx
call fcn.1400181b0
mov rax, rbx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000d570
add rsp, 0x240
pop rbx
ret
Function at 0x140007a40
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x230
mov rax, qword [0x140051018]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rax, 0xffffffffffffffff
lea rbx, [0x1400532a0]
mov rcx, rax
nop dword [rax]
inc rcx
cmp word [rbx + rcx*2], 0
jne 0x140007a70
test rcx, rcx
jne 0x140007afd
mov qword [rsp + 0x240], rdi
lea rdi, [0x1400534a0]
nop
inc rax
cmp word [rdi + rax*2], 0
jne 0x140007a90
test rax, rax
jne 0x140007abd
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str._ntoskrnl.exe
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x200
call fcn.14000e900
mov r8, rdi
lea rcx, [rsp + 0x20]
call fcn.14000b820
lea r9, [rsp + 0x20]
mov edx, 0x100
lea r8, str.ntoskrnl__s.exe
mov rcx, rbx
call fcn.140005790
mov rdi, qword [rsp + 0x240]
mov rax, rbx
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.14000d570
add rsp, 0x230
pop rbx
ret
Function at 0x140009110
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140051018]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rbx, [0x1400538c0]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140009140
test rax, rax
jne 0x140009197
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14000e900
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x20]
mov edx, 0x104
mov rcx, rbx
call fcn.1400181b0
lea r8, str.ci.dll
mov edx, 0x104
mov rcx, rbx
call fcn.1400181b0
mov rax, rbx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000d570
add rsp, 0x240
pop rbx
ret

Function at 0x1400097c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rdi, rcx
mov edx, 0x98
mov ecx, 1
call fcn.1400119fc
mov rbx, rax
test rax, rax
je 0x140009977
mov dword [rax], esi
lea rdx, [rdi + 0x3c]
xor esi, esi
mov qword [rax + 8], 0xffffffffffffffff
mov rcx, rax
mov dword [rax + 4], esi
mov dword [rax + 0x10], esi
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x28], rdi
call fcn.1400095f0
mov edx, eax
mov rcx, rbx
add rdx, qword [rbx + 0x20]
mov qword [rbx + 0x30], rdx
lea rax, [rdx + 0x18]
add rdx, 0x14
mov qword [rbx + 0x38], rax
add rax, 0x70
mov qword [rbx + 0x40], rax
call fcn.140009550
mov rdx, qword [rbx + 0x40]
movzx ecx, ax
add rcx, qword [rbx + 0x38]
mov qword [rbx + 0x48], rcx
mov rcx, rbx
call fcn.1400095f0
test eax, eax
jne 0x14000986c
mov qword [rbx + 0x50], rsi
mov qword [rbx + 0x58], rsi
mov qword [rbx + 0x68], rsi
mov qword [rbx + 0x70], rsi
jmp 0x1400098e3
mov edx, eax
mov rcx, rbx
call fcn.140009270
mov rcx, rbx
mov qword [rbx + 0x50], rax
lea rdx, [rax + 0x20]
call fcn.1400095f0
mov edx, eax
mov rcx, rbx
call fcn.140009270
mov rdx, qword [rbx + 0x50]
mov rcx, rbx
add rdx, 0x1c
mov qword [rbx + 0x58], rax
call fcn.1400095f0
mov edx, eax
mov rcx, rbx
call fcn.140009270
mov rdx, qword [rbx + 0x50]
mov rcx, rbx
add rdx, 0x24
mov qword [rbx + 0x68], rax
call fcn.1400095f0
mov edx, eax
mov rcx, rbx
call fcn.140009270
mov rdx, qword [rbx + 0x50]
mov rcx, rbx
add rdx, 0x18
mov qword [rbx + 0x70], rax
call fcn.1400095f0
mov dword [rbx + 0x60], eax
mov rdx, qword [rbx + 0x40]
mov rcx, rbx
add rdx, 0x30
mov qword [rbx + 0x80], rsi
call fcn.1400095f0
test eax, eax
je 0x14000995d
mov edx, eax
mov rcx, rbx
call fcn.140009270
mov rcx, rbx
mov qword [rbx + 0x88], rax
lea rdx, [rax + 0xc]
call fcn.1400095f0
cmp eax, 2
jne 0x14000995d
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
add rdx, 0x14
call fcn.1400095f0
mov edx, eax
mov rcx, rbx
call fcn.140009270
mov rdx, rax
mov qword [rbx + 0x90], rax
mov rcx, rbx
call fcn.1400095f0
cmp eax, 0x53445352
je 0x140009964
mov qword [rbx + 0x90], rsi
mov qword [rbx + 0x88], rsi
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 1
call fcn.1400119f0
int3
Function at 0x14000aae0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rbx
push r14
sub rsp, 0x88
mov rax, qword [0x140051018]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14d, edx
mov rbx, rcx
cmp edx, 3
jbe 0x14000ab20
mov r8, rcx
mov edx, 3
lea rcx, str.____Reached_maximun_number_of_attempts___i__to_uninstall_the_service__s_n
call fcn.140001010
xor eax, eax
jmp 0x14000acc2
mov qword [rsp + 0xb0], rbp
lea rdx, str.ServicesActive
mov qword [rsp + 0x80], rsi
xor ecx, ecx
xor esi, esi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], r15
mov r15d, esi
lea r8d, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x14000abae
lea r8d, [rsi + 0x20]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
je 0x14000ab8f
lea r8, [rsp + 0x40]
mov rcx, rax
lea edx, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbp
mov r15d, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r15d, r15d
je 0x14000abae
mov rdx, rbx
lea rcx, str.____s_service_stopped_n
call fcn.140001010
jmp 0x14000abf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x14000abcc
mov rdx, rbx
lea rcx, str.____s_service_not_running_n
call fcn.140001010
jmp 0x14000abf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x425
jne 0x14000ac7d
mov rdx, rbx
lea rcx, str.____s_service_cannot_accept_control_messages_at_this_time__waiting..._n
call fcn.140001010
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x14000ac91
mov r8d, 0x10004
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14000ac6c
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14000ac6c
cmp dword [rsp + 0x24], 1
mov rcx, rdi
je 0x14000ac5b
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000ac91
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x14000ac91
mov eax, esi
jmp 0x14000aca8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ERROR_ServiceUninstall___ServiceUninstall__0x_08x__n
call fcn.140001010
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [r14 + 1]
mov rcx, rbx
call fcn.14000aae0
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000d570
add rsp, 0x88
pop r14
pop rbx
ret
Function at 0x14000b820
Capabilities:
Get file version info

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140051018]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
lea rdx, [rsp + 0x3c]
mov rbp, rcx
mov dword [rsp + 0x3c], eax
mov rcx, r8
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
mov rsi, r8
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
je 0x14000b904
mov ecx, edi
mov qword [rsp + 0x78], rbx
mov edx, 1
call fcn.1400119fc
mov rbx, rax
test rax, rax
jne 0x14000b88b
lea rcx, str.____Couldnt_allocate_memory_to_retrieve_version_data
call fcn.1400184e0
jmp 0x14000b8ff
mov r9, rbx
mov r8d, edi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14000b8f7
lea r9, [rsp + 0x38]
mov rcx, rbx
lea r8, [rsp + 0x30]
lea rdx, [0x140037df8]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14000b8f7
cmp dword [rsp + 0x38], 0
je 0x14000b8f7
mov r9, qword [rsp + 0x30]
cmp dword [r9], 0xfeef04bd
jne 0x14000b8f7
mov r9d, dword [r9 + 0xc]
lea r8, str._ld__ld
movzx eax, r9w
mov edx, 0x100
shr r9d, 0x10
mov rcx, rbp
mov dword [rsp + 0x20], eax
call fcn.140005790
mov rcx, rbx
call fcn.1400183e4
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000d570
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000bfa0
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0xa0
mov rax, qword [0x140051018]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [r11 + 0x18], rbp
lea rax, str.Domain
mov qword [r11 - 0x10], r12
mov r12, rcx
mov qword [r11 - 0x18], r13
xor ecx, ecx
xor r13d, r13d
mov dword [rsp + 0x40], 1
mov qword [r11 - 0x60], rax
lea rax, str.Private
mov dword [rsp + 0x50], 2
mov qword [r11 - 0x50], rax
lea rax, str.Public
mov qword [r11 - 0x20], r14
lea edx, [r13 + 2]
mov qword [r11 - 0x28], r15
lea r15d, [r13 - 1]
mov dword [rsp + 0x60], 4
mov qword [r11 - 0x78], r13
mov dword [r11 - 0x6c], r13d
mov word [r11 - 0x70], r13w
mov qword [r11 - 0x40], rax
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov r14d, eax
mov eax, 0x80000000
lea ecx, [r14 + rax]
test eax, ecx
jne 0x14000c05f
cmp r14d, 0x80010106
je 0x14000c05f
lea rcx, str.____Error_while_initializing_COM__CoInitializeEx_failed:_0x_08lx__n
mov edx, r14d
mov ebp, r14d
call fcn.140001010
mov esi, 0x80004005
jmp 0x14000c14d
xor edx, edx
lea rax, [rsp + 0x30]
lea r9, [0x140044508]
mov qword [rsp + 0x20], rax
lea rcx, [0x140044538]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r14d, eax
mov ebp, eax
test eax, eax
jns 0x14000c0a4
lea rcx, str.____Error_while_initializing_the_INetFwPolicy2_interface__CoCreateInstance_for_INetFwPolicy2_failed:_0x_08lx__n
mov edx, eax
call fcn.140001010
mov esi, 0x80004005
jmp 0x14000c14d
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x3c]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov esi, eax
test eax, eax
jns 0x14000c0cd
mov edx, eax
lea rcx, str.____Could_not_determine_Firewall_status__failed_to_get_the_active_Firewall_profiles___get_CurrentProfileTypes_failed:_0x_08lx__n
call fcn.140001010
jmp 0x14000c14d
mov qword [rsp + 0xb8], rbx
lea rbx, [rsp + 0x48]
mov qword [rsp + 0xc8], rdi
mov edi, r13d
mov edx, dword [rbx - 8]
test dword [rsp + 0x3c], edx
je 0x14000c123
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov esi, eax
test eax, eax
js 0x14000c1ad
cmp word [rsp + 0x38], r13w
jne 0x14000c123
mov rdx, qword [rbx]
lea rcx, str.___The_Windows_Firewall_is_off_on_the__active___s_profile._n
call fcn.140001010
movzx r15d, r13w
inc edi
add rbx, 0x10
cmp edi, 3
jb 0x14000c0e5
mov eax, r13d
cmp r15w, 0xffff
sete al
mov dword [r12], eax
mov rbx, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x80]
mov r12, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xc0]
test rcx, rcx
je 0x14000c17a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x30], r13
mov r13, qword [rsp + 0x90]
test r14d, r14d
mov r14, qword [rsp + 0x88]
js 0x14000c195
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14000d570
add rsp, 0xa0
pop rsi
ret
mov edx, edi
lea rcx, str.____Could_not_determine_Firewall_status__failed_to_retrieve_FirewallEnabled_settings_for__s_profile___get_FirewallEnabled_failed:_0x_08lx__n
add rdx, rdx
mov r8d, eax
mov rdx, qword [rsp + rdx*8 + 0x48]
call fcn.140001010
jmp 0x14000c13d
Function at 0x14000c660
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x48
cmp dword [0x140053ae0], 0
jne 0x14000c7fc
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
call fcn.1400036c0
mov edx, 1
mov rcx, qword [rax + 0x30]
call fcn.1400097c0
xor edi, edi
lea r15, [0x140053ae0]
mov rsi, rax
mov r14d, edi
mov ebp, edi
cmp dword [rax + 0x60], edi
jbe 0x14000c780
mov qword [rsp + 0x50], rbx
nop dword [rax]
mov rax, qword [rsi + 0x58]
mov rbx, qword [rsi + 0x28]
mov ecx, ebp
mov r9d, dword [rax + rcx*4]
cmp dword [rsi], edi
je 0x14000c6d8
lea rdx, [rbx + r9]
jmp 0x14000c713
mov rax, qword [rsi + 0x30]
mov r8d, edi
mov r11, qword [rsi + 0x48]
movzx r10d, word [rax + 6]
test r10d, r10d
je 0x14000c710
lea rax, [r11 + 8]
mov edx, dword [rax + 4]
cmp edx, r9d
ja 0x14000c704
add edx, dword [rax]
cmp r9d, edx
jb 0x14000c806
inc r8d
add rax, 0x28
cmp r8d, r10d
jb 0x14000c6f1
mov rdx, rdi
cmp byte [rdx], 0x5a
jne 0x14000c770
cmp byte [rdx + 1], 0x77
jne 0x14000c770
mov r9d, edi
mov r8d, 0xe14b0d06
mov rax, rdx
nop word [rax + rax]
movzx eax, word [rax]
mov ecx, r8d
ror ecx, 8
inc r9d
add ecx, eax
mov eax, r9d
add rax, rdx
xor r8d, ecx
cmp byte [rax], dil
jne 0x14000c730
mov eax, r14d
lea rcx, [rax + rax*2]
lea rbx, [rcx*4]
mov rcx, rsi
mov dword [rbx + r15 + 4], r8d
call fcn.140009990
mov dword [rbx + r15 + 8], eax
inc r14d
inc ebp
cmp ebp, dword [rsi + 0x60]
jb 0x14000c6c0
mov rbx, qword [rsp + 0x50]
mov edx, r14d
lea r9, [0x14000c620]
mov r8d, 0xc
mov dword [0x140053ae0], r14d
lea rcx, [0x140053ae4]
call fcn.1400199f0
mov eax, dword [0x140053ae0]
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
test eax, eax
je 0x14000c7d7
nop dword [rax]
mov eax, edi
lea rdx, [rax + rax*2]
mov dword [r15 + rdx*4 + 0xc], edi
inc edi
mov eax, dword [0x140053ae0]
cmp edi, eax
jb 0x14000c7c0
mov edx, eax
lea r9, [0x14000c640]
mov r8d, 0xc
lea rcx, [0x140053ae4]
call fcn.1400199f0
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x48
ret
mov eax, r8d
lea rcx, [rax + rax*4]
lea rdx, [r11 + rcx*8]
test rdx, rdx
je 0x14000c710
sub r9d, dword [rdx + 0xc]
mov edx, dword [rdx + 0x14]
mov eax, r9d
add rax, rbx
add rdx, rax
jmp 0x14000c713
Function at 0x14000d490
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, dword [section..data]
call fcn.14000c830
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14000de44
Capabilities:
Parse pe header

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

Function at 0x1400119f0
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 0x14001185b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001185b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001185b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001185b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001185b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001185b
cmp dword [rcx + 0xf8], 0
je 0x14001185b
mov ecx, ebx
call fcn.14001190c
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.1400116e8
nop
cmp dword [rbp + 0x20], 0
je 0x1400118a9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400118b4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400117ec
Function at 0x140021978
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 0x1400219ff
mov rsi, rbx
cmp word [rax], bp
je 0x1400219be
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400219a8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400219a4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001c8b8
mov rdi, rax
test rax, rax
je 0x1400219ec
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000f7d0
mov rbp, rdi
xor ecx, ecx
call fcn.14001ba1c
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 0x140024cc8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140024cde
mov al, 1
jmp 0x140024d3e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140024cef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140024d3c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001fa00
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140024d3c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140024d3c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140024d3c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140024d3e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140026810
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, [0x140052970]
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 0x140026867
cmp word [rdx], r13w
jne 0x140026867
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002686c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140026991
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400269b2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400268a5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400268cc
cmp r9, r8
jae 0x1400268dc
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 0x140026886
jmp 0x140026991
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 0x140026986
cmp dword [rsp + 0x80], esi
je 0x140026986
lea r8, [0x140052970]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002695e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002692e
mov word [rbx], r13w
jmp 0x14002698e
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 0x14002693b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002698e
cmp word [rsp + 0x70], r13w
jne 0x14002696b
cmp rbx, r14
je 0x140026928
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140026730
cmp word [rsp + 0x70], r13w
je 0x140026991
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, [0x140052970]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002698b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140026991
Function at 0x14002847c
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.140026730
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140026730
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400285cc
cmp rax, 0xffffffffffffffff
je 0x1400285cc
xor edi, edi
test rbp, rbp
jle 0x140028577
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001b2cc
mov rbx, rax
test rax, rax
jne 0x140028504
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002856d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a840
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.140020438
cmp eax, 0xffffffff
je 0x14002854d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028514
mov edx, r15d
mov ecx, r14d
call fcn.14001a840
jmp 0x14002856d
cmp byte [rsi + 0x38], dil
je 0x140028564
cmp dword [rsi + 0x34], 5
jne 0x140028564
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002856d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001ba1c
jmp 0x1400285e0
jns 0x1400285e0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140026730
cmp rax, 0xffffffffffffffff
jne 0x140028598
cmp byte [rsi + 0x30], dil
je 0x1400285e0
mov edi, dword [rsi + 0x2c]
jmp 0x1400285e0
mov ecx, r14d
call fcn.14001fa00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400285e0
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 0x1400285e0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400285d9
mov eax, dword [rsi + 0x2c]
jmp 0x1400285de
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140026730
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 0x140029330
Capabilities:
Parse pe header

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