joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012950
Capabilities:
Start service

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rbx, rdx
mov ebp, ecx
lea r15d, [rbp + 2]
movsxd rax, r15d
mov ecx, 8
mul rcx
mov rcx, 0xffffffffffffffff
cmovno rcx, rax
call fcn.140013644
mov rsi, rax
lea rax, str.MozillaMaintenance
mov qword [rsi], rax
lea rax, str.software_update
mov qword [rsi + 8], rax
test ebp, ebp
jle 0x1400129b3
lea rcx, [rsi + 0x10]
mov r8d, ebp
shl r8, 3
mov rdx, rbx
call fcn.140028530
lea rcx, str.MozillaMaintenance
mov edx, 5
call fcn.140012740
cmp eax, 1
jne 0x140012a48
xor ecx, ecx
xor edx, edx
mov r8d, 5
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x140012a52
mov rdi, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140012a59
mov rbx, rax
mov qword [rsp + 0x20], rdi
mov edi, 0xffffff9c
mov r12, qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
mov edx, r15d
mov r8, rsi
call r12
test eax, eax
jne 0x140012a69
call r13
mov ebp, eax
mov ecx, 0x64
call r14
add edi, 0x64
cmp edi, 0x1324
jb 0x140012a1e
jmp 0x140012a6b
mov ebp, eax
add ebp, 0x4e20
jmp 0x140012a83
mov ebp, 0x4269
jmp 0x140012a83
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, 0x426a
jmp 0x140012a83
xor ebp, ebp
mov rdi, qword [rsp + 0x20]
mov r14, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call r14
mov rcx, rdi
call r14
mov rcx, rsi
call fcn.1400138e8
mov eax, ebp
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140012aa0
Capabilities:
Get disk information

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140047010]
xor rax, rsp
mov qword [rsp + 0x238], rax
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
xor edx, edx
call fcn.140015c00
mov rcx, rdi
call fcn.140013730
cmp rax, 0x104
ja 0x140012b1d
lea rbx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rbx
mov rdx, rdi
call fcn.1400138f0
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [rsi], ecx
mov ebx, 1
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.1400246e0
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret
Function at 0x140012b40
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x140047010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
call fcn.1400115b0
test al, al
je 0x140012c2f
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
xor edi, edi
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140012c2f
mov rcx, qword [rsp + 0x38]
lea rbx, [rsp + 0x44]
mov dword [rbx], 4
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea rdx, str.ConsentPromptBehaviorAdmin
xor edi, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x140012bde
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140012c2f
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, str.PromptOnSecureDesktop
xor edi, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140012c2f
mov eax, dword [rsp + 0x34]
xor ecx, ecx
or eax, dword [rsp + 0x30]
sete cl
mov dword [rsi], ecx
mov edi, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400246e0
mov eax, edi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x14001fc88
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001fca8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001b494
or eax, 0xffffffff
jmp 0x14001fcaa
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001fce0
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14001fd00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001b494
or eax, 0xffffffff
jmp 0x14001fd02
xor eax, eax
add rsp, 0x28
ret
Function at 0x140035290
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x118
mov rdi, r9
mov r12, rcx
mov rax, qword [0x140047010]
xor rax, rsp
mov qword [rsp + 0x110], rax
lea rsi, [rsp + 0x78]
mov rcx, rsi
call fcn.140001090
mov rsi, qword [rsi]
test rsi, rsi
je 0x14003540b
lea r14, [rsp + 0x60]
mov dword [r14], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ebx, ebx
mov rcx, rax
xor edx, edx
mov r8, r14
call qword [sym.imp.KERNEL32.dll_IsProcessInJob]
test eax, eax
je 0x140035352
cmp dword [rsp + 0x60], 0
je 0x140035352
xor ebx, ebx
lea r15, [rsp + 0x80]
mov r8d, 0x90
mov rcx, r15
xor edx, edx
call fcn.140015c00
mov qword [rsp + 0x20], 0
xor ecx, ecx
mov edx, 9
mov r8, r15
mov r9d, 0x90
call qword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x140035352
mov eax, dword [rsp + 0x90]
bt eax, 0xd
jae 0x140035352
shl eax, 0xd
and eax, 0x1000000
mov ebx, eax
xorps xmm0, xmm0
lea rax, [rsp + 0x80]
movaps xmmword [rax], xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax + 0x50], xmm0
movaps xmmword [rax + 0x40], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x20], xmm0
xor ecx, ecx
mov qword [rax + 0x60], rcx
mov dword [rax], 0x68
lea rdx, str.winsta0Default
mov qword [rax + 0x10], rdx
mov qword [rsp + 0x70], rcx
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0
mov rcx, r12
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x140035417
mov rcx, qword [rsp + 0x60]
test rdi, rdi
je 0x14003540f
mov qword [rdi], rcx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.1400138e8
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1400246e0
mov eax, ebx
add rsp, 0x118
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x1400353e8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400353d5
xor r14d, r14d
lea rdi, [rsp + 0x58]
mov qword [rdi], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
xor edx, edx
mov r8d, eax
mov r9d, 0x400
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rax, qword [rdi]
test rax, rax
lea rdx, [0x14003fb28]
cmovne rdx, rax
call fcn.140035480
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400353e0
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400353e0
Function at 0x1400356a0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push rsi
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140047010]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x140035714
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140035746
lea rdx, [rsp + 0x54]
lea rsi, [0x14004acb0]
mov r8d, 0x105
mov rcx, rsi
call fcn.1400138f0
mov word [0x14004aeb8], 0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400246e0
mov rax, rsi
add rsp, 0x280
pop rsi
ret
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x1400356d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.14001b454
cmp esi, 2
je 0x140035756
mov dword [rax], 9
jmp 0x14003575c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x14003575c
call fcn.14001b454
mov dword [rax], 2
xor esi, esi
jmp 0x1400356f8
Function at 0x14005adc0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14005adcd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005addd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14005adc5
lea eax, [rcx + 1]
jmp 0x14005adeb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005adfe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14005ade4
sub eax, 3
jb 0x14005ae1e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005ae6d
sar eax, 1
movsxd rbp, eax
jb 0x14005ae54
jmp 0x14005ae2c
add ebx, ebx
jne 0x14005ae2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005ae54
inc ecx
add ebx, ebx
jne 0x14005ae3a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005ae54
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005ae4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005ae3c
add ecx, 2
jmp 0x14005ae59
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14005ad82
jmp 0x14005adcd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2b200
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14005aeb9
cmp rsi, rcx
jae 0x14005aec1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14005aea0
cmp al, 0x8f
ja 0x14005aea0
cmp byte [rsi - 2], 0xf
je 0x14005aea6
sub al, 0xe8
cmp al, 1
ja 0x14005ae8a
cmp rsi, rcx
jae 0x14005aec1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14005ae90
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005aec1
lodsb al, byte [rsi]
jmp 0x14005aea0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x58000]
mov eax, dword [rdi]
or eax, eax
je 0x14005af1e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x69fb0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14005aece
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14005af18
mov qword [rbx], rax
add rbx, 8
jmp 0x14005aeee
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14005af58
cmp al, 0xef
ja 0x14005af4a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14005af2a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14005af39
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14005afac
sub rsp, 0xffffffffffffff80
jmp 0x14000c320
Function at 0x1400111fe
Capabilities:
Terminate process

Disassembly:
jmp 0x140013110
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014450
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014470
xor al, al
jmp 0x1400144f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014483
xor al, al
jmp 0x1400144f1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400144ad
xor al, al
jmp 0x1400144f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400144c1
xor al, al
jmp 0x1400144f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400144d3
xor al, al
jmp 0x1400144f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400144ef
xor al, al
jmp 0x1400144f1
mov al, 1
add rsp, 0x38
ret
Function at 0x140012350
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113a2
movzx eax, al
test eax, eax
jne 0x140012370
mov ecx, 7
call fcn.140011320
nop
mov byte [rsp + 0x20], 0
call fcn.140011334
mov byte [rsp + 0x21], al
cmp dword [0x14001e878], 1
jne 0x140012394
mov ecx, 7
call fcn.140011320
nop
jmp 0x1400123ec
cmp dword [0x14001e878], 0
jne 0x1400123e7
mov dword [0x14001e878], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111a4
test eax, eax
je 0x1400123c8
mov eax, 0xff
jmp 0x1400124f1
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.14001132a
mov dword [0x14001e878], 2
jmp 0x1400123ec
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001130c
call fcn.1400112a8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012449
mov rcx, qword [rsp + 0x30]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x140012449
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140024020]
nop
call fcn.1400112da
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001247d
mov rcx, qword [rsp + 0x38]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x14001247d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011361
nop
call fcn.1400125a0
mov dword [rsp + 0x28], eax
call fcn.140011285
movzx eax, al
test eax, eax
jne 0x14001249c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400124ab
call fcn.14001136b
nop
xor edx, edx
mov cl, 1
call fcn.14001114a
mov eax, dword [rsp + 0x28]
jmp 0x1400124f1
add rsp, 0x68
ret
Function at 0x140002604
Capabilities:
Parse pe header

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

Function at 0x140005684
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 0x1400056f3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400056f3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400056f3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400056f3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400056f3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400056f3
cmp dword [rcx + 0xf8], 0
je 0x1400056f3
mov ecx, ebx
call fcn.1400057a4
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.140005580
nop
cmp dword [rbp + 0x20], 0
je 0x140005741
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000574c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005684

Function at 0x140005888
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 0x1400056f3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400056f3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400056f3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400056f3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400056f3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400056f3
cmp dword [rcx + 0xf8], 0
je 0x1400056f3
mov ecx, ebx
call fcn.1400057a4
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.140005580
nop
cmp dword [rbp + 0x20], 0
je 0x140005741
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000574c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005684
Function at 0x1400125ec
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, [0x14002b7d0]
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 0x140012643
cmp word [rdx], r13w
jne 0x140012643
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140012648
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001276d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001278e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140012681
mov rdx, r9
mov word [rbx], cx
jmp 0x1400126a8
cmp r9, r8
jae 0x1400126b8
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 0x140012662
jmp 0x14001276d
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 0x140012762
cmp dword [rsp + 0x80], esi
je 0x140012762
lea r8, [0x14002b7d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001273a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001270a
mov word [rbx], r13w
jmp 0x14001276a
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 0x140012717
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001276a
cmp word [rsp + 0x70], r13w
jne 0x140012747
cmp rbx, r14
je 0x140012704
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400180b0
cmp word [rsp + 0x70], r13w
je 0x14001276d
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, [0x14002b7d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140012767
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001276d
Function at 0x14001448c
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 0x140014513
mov rsi, rbx
cmp word [rax], bp
je 0x1400144d2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400144bc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400144b8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000e7f8
mov rdi, rax
test rax, rax
je 0x140014500
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001b830
mov rbp, rdi
xor ecx, ecx
call fcn.14000e7bc
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 0x140017aa8
Capabilities:
Get file size

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

Function at 0x14001a250
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.1400180b0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400180b0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14001a3a0
cmp rax, 0xffffffffffffffff
je 0x14001a3a0
xor edi, edi
test rbp, rbp
jle 0x14001a34b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400108b0
mov rbx, rax
test rax, rax
jne 0x14001a2d8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14001a341
mov edx, 0x8000
mov ecx, r14d
call fcn.14000d83c
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.140011b38
cmp eax, 0xffffffff
je 0x14001a321
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14001a2e8
mov edx, r15d
mov ecx, r14d
call fcn.14000d83c
jmp 0x14001a341
cmp byte [rsi + 0x38], dil
je 0x14001a338
cmp dword [rsi + 0x34], 5
jne 0x14001a338
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14001a341
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000e7bc
jmp 0x14001a3b4
jns 0x14001a3b4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400180b0
cmp rax, 0xffffffffffffffff
jne 0x14001a36c
cmp byte [rsi + 0x30], dil
je 0x14001a3b4
mov edi, dword [rsi + 0x2c]
jmp 0x14001a3b4
mov ecx, r14d
call fcn.140014e30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14001a3b4
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 0x14001a3b4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14001a3ad
mov eax, dword [rsi + 0x2c]
jmp 0x14001a3b2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400180b0
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 0x14001b0a0
Capabilities:
Parse pe header

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