joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013610
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x14003f010]
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140013666
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.1400289bc
cmp rax, 0x105
jb 0x14001367d
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002cd00
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.140028e84
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call fcn.14003dbc0
test eax, eax
je 0x140013666
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400136ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140013666
lea rdx, str.UpdateLogs
mov rcx, rdi
call fcn.14003dbc0
test eax, eax
je 0x140013666
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400136ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140013666
mov esi, 1
jmp 0x140013666
Function at 0x1400137e0
Capabilities:
Query service status

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov ebp, ecx
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ecx, ecx
xor edx, edx
mov r8d, 5
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x1400138d8
mov rsi, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x1400138fe
mov rdi, rax
lea rbx, [rsp + 0x2c]
mov dword [rbx + 4], 0xcf
imul ebp, ebp, 0x3e8
xor r14d, r14d
lea r15, [rsp + 0x28]
mov r12, qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x20], r15
mov rcx, rdi
xor edx, edx
mov r8, rbx
mov r9d, 0x24
call r12
test eax, eax
je 0x14001388d
cmp dword [rsp + 0x30], 1
jne 0x1400138be
jmp 0x14001393f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jle 0x1400138aa
lea ecx, [rax - 0x425]
cmp ecx, 2
jb 0x1400138be
jmp 0x140013990
cmp eax, 0x79
jle 0x140013946
cmp eax, 0x41c
jne 0x140013971
mov ecx, 0x32
call r13
add r14d, 0x32
cmp r14d, ebp
jb 0x140013867
mov ebx, dword [rsp + 0x30]
jmp 0x1400139ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x429
sete cl
xor ecx, 0xff
cmp eax, 5
mov ebx, 0xfd
cmovne ebx, ecx
jmp 0x1400139c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x140013928
cmp edi, 5
je 0x14001395c
cmp edi, 6
jne 0x14001396a
mov ebx, 0xec
jmp 0x1400139c1
cmp edi, 0x7b
je 0x140013963
cmp edi, 0x424
jne 0x14001396a
mov ebx, 0xee
jmp 0x1400139c1
mov ebx, 1
jmp 0x1400139ae
cmp eax, 5
je 0x140013982
cmp eax, 6
je 0x140013989
cmp eax, 0x57
jne 0x14001399e
mov ebx, 0xdc
jmp 0x1400139aa
mov ebx, 0xeb
jmp 0x1400139c1
mov ebx, 0xed
jmp 0x1400139c1
mov ebx, 0xef
jmp 0x1400139c1
cmp eax, 0x7a
je 0x1400139a5
cmp eax, 0x7c
jne 0x14001399e
mov ebx, 0xdd
jmp 0x1400139aa
mov ebx, 0xda
jmp 0x1400139aa
mov ebx, 0xd9
jmp 0x1400139aa
cmp eax, 0x45b
jne 0x14001399e
mov ebx, 0xde
jmp 0x1400139aa
mov ebx, 0xdf
jmp 0x1400139aa
mov ebx, 0xdb
mov dword [rsp + 0x30], ebx
mov r14, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call r14
mov rcx, rsi
call r14
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002cd00
mov eax, ebx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140015470
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdi, [0x140054a50]
mov rcx, rdi
call fcn.1400289bc
test rax, rax
je 0x1400156aa
mov rbx, rax
movzx eax, word [rdi + rax*2 - 2]
cmp eax, 0x5c
je 0x1400156a2
cmp eax, 0x2f
je 0x1400156a2
mov rax, rbx
add rax, 2
lea r14, [rbx + rbx + 4]
mov rcx, 0xffffffffffffffff
cmovns rcx, r14
call fcn.1400156f8
mov rdi, rax
xor r15d, r15d
mov rcx, rax
xor edx, edx
mov r8, r14
call fcn.14003cd40
lea r8, [rbx + 1]
lea rdx, [0x140054a50]
mov rcx, rdi
call fcn.140028e84
mov rcx, rdi
call fcn.140024b3c
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x38]
mov qword [rcx], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400156ae
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x8003
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400156e1
add ebx, ebx
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
mov r8d, ebx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400156e1
lea r9, [rsp + 0x2c]
mov dword [r9], 4
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x28]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400156e1
lea r14, [rsp + 0x28]
mov r15d, dword [r14]
mov rcx, r15
call fcn.1400156f8
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.14003cd40
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
mov edx, 2
mov r8, rbx
mov r9, r14
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400156e1
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001560d
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001561f
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rdi
call fcn.140015700
lea rdx, [0x140049f04]
mov r8d, 0x104
mov rcx, rsi
call fcn.140028e84
mov ebp, 1
cmp dword [rsp + 0x28], 0
je 0x14001567b
add rsi, 0x48
xor r14d, r14d
lea rdi, str._.2x
mov r15, qword [sym.imp.USER32.dll_wsprintfW]
movzx r8d, byte [rbx + r14]
mov rcx, rsi
mov rdx, rdi
call r15
add rsi, 4
inc r14
mov eax, dword [rsp + 0x28]
cmp r14, rax
jb 0x14001565d
mov rdi, rbx
mov rcx, rdi
call fcn.140015700
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002cd00
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
dec rbx
jmp 0x1400154c0
xor ebp, ebp
jmp 0x140015686
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1400156e1
mov dword [rsp + 0x20], 0xf0000008
lea rcx, [rsp + 0x38]
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140015540
xor ebp, ebp
jmp 0x14001567e
Function at 0x140015dd8
Capabilities:
Parse pe header

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

Function at 0x140016364
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400163dc
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400163dc
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400163dc
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400163d0
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400163ee
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400163be
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400163de

Function at 0x14001f5f8
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 0x14001f62f
call fcn.140020464
mov dword [rax], 0x16
call fcn.1400229a0
xor eax, eax
jmp 0x14001f6bd
mov rdx, r9
mov rcx, r8
call fcn.14001f6e0
mov rbx, rax
test rax, rax
je 0x14001f6ba
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14001f750]
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 0x14001f6a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400204a4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001f68e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14001f69d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14002b178
jmp 0x14001f6ba
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001f6b7
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 0x14001f824
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001f96c
Function at 0x14001f96c
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001f96c
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 0x14001f9db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001f9db
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001f9db
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001f9db
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001f9db
cmp dword [rcx + 0x84], 0xe
jbe 0x14001f9db
cmp dword [rcx + 0xf8], 0
je 0x14001f9db
mov ecx, ebx
call fcn.14001f8a4
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.14001fb00
nop
cmp dword [rbp + 0x20], 0
je 0x14001fa29
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001f938
int3

Function at 0x140020fe4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14004c240]
mov rbp, rcx
call fcn.140028ecc
xor edi, edi
test rax, rax
je 0x1400210ca
mov ebx, edi
call fcn.140020464
mov r14d, dword [rax]
call fcn.140020464
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14002f024
mov rsi, rax
test rax, rax
je 0x14002105b
call fcn.140020464
mov dword [rax], r14d
jmp 0x140021085
call fcn.140020464
cmp dword [rax], 0x22
jne 0x1400210c2
call fcn.140020464
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14002f024
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400210c2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140021089
cmp rax, 3
je 0x1400210a4
mov rcx, rsi
call fcn.140020f40
test al, al
je 0x1400210b5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400210b5
mov dil, 1
mov rcx, rbx
call fcn.1400271b4
mov al, dil
jmp 0x1400210cc
mov rcx, rbx
call fcn.1400271b4
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002cd00
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140021844
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.14002f5b0
sub rsp, rax
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002085c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140021893
mov rax, rbp
jmp 0x14002199b
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 + 0x53670]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002eb40
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x53670]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140021997
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 0x140021997
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002eb40
test rax, rax
js 0x140021997
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140021997
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140021989
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140021989
cmp byte [rcx], 0xd
jne 0x14002196f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002197e
cmp byte [rcx + 1], 0xa
jne 0x14002197e
inc rcx
jmp 0x14002197e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x52980]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140021951
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002199b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002cd00
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 0x140024820
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x14002485b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400204a4
call fcn.140020464
mov eax, dword [rax]
jmp 0x1400248d2
cmp rdi, qword [rbx + 0x18]
ja 0x140024867
mov qword [rbx + 0x20], rdi
jmp 0x1400248d0
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x14002487e
mov rcx, qword [rbx + 0x10]
call fcn.14002b178
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.14002b868
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x1400248d2
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x140024845
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400251f8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140025218
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400204a4
or eax, 0xffffffff
jmp 0x14002521a
xor eax, eax
add rsp, 0x28
ret

Function at 0x140025250
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140025270
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400204a4
or eax, 0xffffffff
jmp 0x140025272
xor eax, eax
add rsp, 0x28
ret

Function at 0x140028fe0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029008
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029008
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002fe38
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, [0x140053670]
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 0x14002fe8f
cmp word [rdx], r13w
jne 0x14002fe8f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002fe94
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002ffb9
mov r11d, ntohl
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002ffda
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002fecd
mov rdx, r9
mov word [rbx], cx
jmp 0x14002fef4
cmp r9, r8
jae 0x14002ff04
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 0x14002feae
jmp 0x14002ffb9
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 0x14002ffae
cmp dword [rsp + 0x80], esi
je 0x14002ffae
lea r8, [0x140053670]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002ff86
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002ff56
mov word [rbx], r13w
jmp 0x14002ffb6
mov ecx, ntohl
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 0x14002ff63
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002ffb6
cmp word [rsp + 0x70], r13w
jne 0x14002ff93
cmp rbx, r14
je 0x14002ff50
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002ea94
cmp word [rsp + 0x70], r13w
je 0x14002ffb9
mov ecx, ntohl
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, [0x140053670]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002ffb3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002ffb9
Function at 0x1400300d8
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140030108
xor eax, eax
jmp 0x1400301cb
mov rbp, rbx
cmp word [rax], si
je 0x14003012d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140030114
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140030110
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14002fff8
movsxd r14, eax
test eax, eax
jne 0x14003016b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140030101
mov rcx, r14
call fcn.14002b868
mov rdi, rax
test rax, rax
jne 0x140030184
xor ecx, ecx
call fcn.14002b178
jmp 0x140030160
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14002fff8
test eax, eax
jne 0x1400301b5
mov rcx, rdi
call fcn.14002b178
jmp 0x1400301bf
xor ecx, ecx
call fcn.14002b178
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400301e8
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 0x14003026f
mov rsi, rbx
cmp word [rax], bp
je 0x14003022e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140030218
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140030214
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002b868
mov rdi, rax
test rax, rax
je 0x14003025c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003d100
mov rbp, rdi
xor ecx, ecx
call fcn.14002b178
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 0x14003284c
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.14002ea94
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002ea94
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14003299c
cmp rax, 0xffffffffffffffff
je 0x14003299c
xor edi, edi
test rbp, rbp
jle 0x140032947
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002b6f8
mov rbx, rax
test rax, rax
jne 0x1400328d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14003293d
mov edx, 0x8000
mov ecx, r14d
call fcn.140024400
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.140031b84
cmp eax, 0xffffffff
je 0x14003291d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400328e4
mov edx, r15d
mov ecx, r14d
call fcn.140024400
jmp 0x14003293d
cmp byte [rsi + 0x38], dil
je 0x140032934
cmp dword [rsi + 0x34], 5
jne 0x140032934
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohl
cmp byte [rsi + 0x30], dil
je 0x14003293d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002b178
jmp 0x1400329b0
jns 0x1400329b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002ea94
cmp rax, 0xffffffffffffffff
jne 0x140032968
cmp byte [rsi + 0x30], dil
je 0x1400329b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400329b0
mov ecx, r14d
call fcn.1400223f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400329b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, ntohl
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohl
jmp 0x1400329b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400329a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400329ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002ea94
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