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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd rbx, ecx
mov rdi, rdx
mov rcx, 0xffffffffffffffff
mov eax, 8
lea r15d, [rbx + 2]
movsxd r8, r15d
mul r8
cmovo rax, rcx
mov rcx, rax
call fcn.14000f9c0
lea rsi, str.MozillaMaintenance
mov r14, rax
mov rdx, rbx
mov qword [rax], rsi
lea rax, str.software_update
mov qword [r14 + 8], rax
test ebx, ebx
jle 0x14000ab83
mov rcx, r14
sub rcx, rdi
mov rax, qword [rdi]
mov qword [rcx + rdi + 0x10], rax
lea rdi, [rdi + 8]
sub rdx, 1
jne 0x14000ab71
mov ebx, 5
mov edx, ebx
call fcn.14000ac88
cmp eax, 1
je 0x14000ab9f
lea ebx, [rax + 0x4e20]
jmp 0x14000ac2e
mov r8d, ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x14000abbb
mov ebx, 0x4269
jmp 0x14000ac2e
mov r8d, 0x10
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x14000abe5
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 0x426a
jmp 0x14000ac2e
xor esi, esi
mov r8, r14
mov edx, r15d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14000ac1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x64
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x64
cmp esi, 0x1388
jb 0x14000abe7
jmp 0x14000ac1c
xor ebx, ebx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call fcn.14000fca4
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14000ae94
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14003c008]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
call fcn.140010e20
or rax, 0xffffffffffffffff
xor ebx, ebx
inc rax
cmp word [rdi + rax*2], bx
jne 0x14000aed6
mov r8d, 0x104
cmp rax, r8
jbe 0x14000aeee
xor eax, eax
jmp 0x14000af1e
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140013fb8
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
mov eax, 1
sete bl
mov dword [rsi], ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000f700
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000af44
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x10]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000b07b
mov rcx, qword [rbp - 0x10]
lea rax, [rbp - 0x20]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x28]
lea edx, [r9 + 0xe]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, 1
test eax, eax
je 0x14000afab
cmp dword [rbp + 0x28], 3
jne 0x14000afab
mov dil, bl
jmp 0x14000afae
xor dil, dil
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
je 0x14000b07b
lea rax, [rbp - 0x18]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b07b
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rdx, str.ConsentPromptBehaviorAdmin
lea rax, [rbp + 0x30]
mov dword [rbp + 0x28], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000b05b
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rdx, str.PromptOnSecureDesktop
lea rax, [rbp + 0x38]
mov dword [rbp + 0x28], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000b05b
mov edi, ebx
jmp 0x14000b05d
xor edi, edi
cmp dword [rbp + 0x30], 0
jne 0x14000b069
cmp dword [rbp + 0x38], 0
je 0x14000b06b
xor ebx, ebx
mov rcx, qword [rbp - 0x18]
mov dword [rsi], ebx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x14000b07d
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000b08c
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push r12
push r14
push r15
sub rsp, 0x30
cmp qword [rcx], 0
mov r12, r9
mov r14, r8
mov r15, rdx
mov rbx, rcx
jne 0x14000b14e
lea rsi, [rcx + 8]
xor r8d, r8d
mov r9, rsi
lea rdx, [0x140037f70]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp byte [rsp + 0x70], 0
lea rbp, [rbx + 0x210]
mov r9, r15
lea r8, str._s__s
cmovne r14, r12
mov edx, 0x104
mov rcx, rbp
mov qword [rsp + 0x20], r14
call fcn.1400024cc
dec eax
cmp eax, 0x102
ja 0x14000b14e
cmp byte [rsp + 0x70], 0
je 0x14000b123
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp byte [rsp + 0x70], 0
lea rax, [0x140037f78]
lea rdx, [0x140037f7c]
mov rcx, rsi
cmovne rdx, rax
call fcn.1400132c0
mov rcx, rbp
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x14000b168
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x14000b1b0
call fcn.140012d04
and qword [rbx], 0
lea rdi, [rbx + 0x210]
mov rcx, rdi
xor edx, edx
call fcn.140014000
lea rcx, [rbx + 8]
test eax, eax
jne 0x14000b1a7
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000b1b0
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b3a0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x20
mov r9, qword [rcx]
mov ebx, 1
mov r14, rcx
mov r8d, ebx
lea rcx, [rbp + 0x40]
lea edi, [rbx + 3]
mov edx, edi
call fcn.1400135f0
cmp rax, rbx
je 0x14000b3d7
or eax, 0xffffffff
jmp 0x14000b4a4
mov eax, dword [rbp + 0x40]
cmp eax, dword [str.MAR1]
jne 0x14000b3cf
mov r9, qword [r14]
lea rcx, [rbp + 0x38]
mov r8, rbx
mov rdx, rdi
call fcn.1400135f0
cmp rax, rbx
jne 0x14000b3cf
mov ecx, dword [rbp + 0x38]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov rcx, qword [r14]
xor r8d, r8d
mov edx, eax
mov dword [rbp + 0x38], eax
call fcn.140018c78
test eax, eax
jne 0x14000b3cf
mov r9, qword [r14]
lea rcx, [rbp + 0x30]
mov r8, rbx
mov rdx, rdi
call fcn.1400135f0
cmp rax, rbx
jne 0x14000b3cf
mov ecx, dword [rbp + 0x30]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov ecx, eax
mov dword [rbp + 0x30], eax
call fcn.140013358
mov rdi, rax
test rax, rax
je 0x14000b3cf
mov edx, dword [rbp + 0x30]
mov r8, rbx
mov r9, qword [r14]
mov rcx, rax
call fcn.1400135f0
cmp rax, rbx
je 0x14000b46b
mov rcx, rdi
call fcn.140013324
jmp 0x14000b3cf
mov esi, dword [rbp + 0x30]
mov rbx, rdi
mov qword [rbp + 0x48], rbx
add rsi, rdi
cmp rbx, rsi
jae 0x14000b494
mov r8, rsi
lea rdx, [rbp + 0x48]
mov rcx, r14
call fcn.14000b278
mov rbx, qword [rbp + 0x48]
test eax, eax
je 0x14000b478
mov rcx, rdi
call fcn.140013324
sub rbx, rsi
neg rbx
sbb eax, eax
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000b578
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov rsi, r9
mov rbx, rcx
test r9, r9
jne 0x14000b5a8
or eax, 0xffffffff
jmp 0x14000b742
xor r8d, r8d
lea r15d, [r8 + 4]
mov edx, r15d
call fcn.140018c78
test eax, eax
jne 0x14000b5a0
lea r14d, [r15 - 3]
mov r9, rbx
mov r8d, r14d
lea rcx, [rbp - 0x10]
mov edx, r15d
call fcn.1400135f0
cmp rax, r14
jne 0x14000b5a0
mov ecx, dword [rbp - 0x10]
call qword [sym.imp.WSOCK32.dll_ntohl]
xor r8d, r8d
mov rcx, rbx
mov edx, eax
mov dword [rbp - 0x10], eax
call fcn.140018c78
test eax, eax
jne 0x14000b5a0
mov r8d, r14d
mov edx, r15d
mov rcx, rbx
call fcn.140018c78
test eax, eax
jne 0x14000b5a0
mov r9, rbx
lea rcx, [rbp + 0x38]
mov r8d, r14d
mov edx, r15d
call fcn.1400135f0
cmp rax, r14
jne 0x14000b5a0
mov ecx, dword [rbp + 0x38]
call qword [sym.imp.WSOCK32.dll_ntohl]
xor r8d, r8d
lea edx, [r15 + 0xc]
mov rcx, rbx
mov dword [rbp + 0x38], eax
call fcn.140018c70
test eax, eax
jne 0x14000b5a0
mov r9, rbx
lea rcx, [rbp + 0x40]
mov r8d, r14d
mov edx, r15d
call fcn.1400135f0
cmp rax, r14
jne 0x14000b5a0
mov ecx, dword [rbp + 0x40]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov dword [rbp + 0x40], eax
cmp eax, 8
ja 0x14000b5a0
xor edi, edi
test eax, eax
je 0x14000b6cf
mov r8d, r14d
mov edx, r15d
mov rcx, rbx
call fcn.140018c78
test eax, eax
jne 0x14000b5a0
mov r9, rbx
lea rcx, [rbp - 0xc]
mov r8, r14
mov rdx, r15
call fcn.1400135f0
cmp rax, r14
jne 0x14000b5a0
mov ecx, dword [rbp - 0xc]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov r8d, r14d
mov rcx, rbx
mov edx, eax
mov dword [rbp - 0xc], eax
call fcn.140018c78
test eax, eax
jne 0x14000b5a0
add edi, r14d
cmp edi, dword [rbp + 0x40]
jb 0x14000b675
mov rcx, rbx
call fcn.140019a0c
movsxd rcx, eax
mov eax, dword [rbp + 0x38]
cmp rcx, rax
jne 0x14000b6e7
and dword [rsi], 0
jmp 0x14000b740
mov rdi, qword [rbp + 0x58]
test rdi, rdi
je 0x14000b72a
mov r9, rbx
mov dword [rsi], r14d
mov r8, r14
mov rdx, r15
mov rcx, rdi
call fcn.1400135f0
cmp rax, r14
jne 0x14000b5a0
mov ecx, dword [rdi]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov dword [rdi], eax
mov rdi, qword [rbp + 0x50]
test rdi, rdi
je 0x14000b740
mov rcx, rbx
call fcn.140019a0c
jmp 0x14000b73e
mov rdi, qword [rbp + 0x50]
test rdi, rdi
je 0x14000b740
mov rcx, rbx
call fcn.140019a0c
add eax, r15d
mov dword [rdi], eax
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000b754
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x14003c008]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x39]
lea r8d, [rdx + 0x61]
call fcn.140010e20
mov rcx, qword [rsi]
lea rax, [rbp - 0x51]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x49]
lea rax, [rbp - 0x4d]
mov qword [rsp + 0x20], rax
call fcn.14000b578
test eax, eax
jne 0x14000b82a
xor edi, edi
cmp dword [rbp - 0x51], edi
jbe 0x14000b82a
lea r15d, [rax + 1]
mov r9, qword [rsi]
lea rcx, [rbp - 0x59]
mov r8, r15
mov edx, 4
call fcn.1400135f0
cmp rax, r15
jne 0x14000b82a
mov ecx, dword [rbp - 0x59]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov r9, qword [rsi]
lea rcx, [rbp - 0x55]
sub eax, 8
mov r8, r15
mov edx, 4
mov dword [rbp - 0x59], eax
call fcn.1400135f0
cmp rax, r15
jne 0x14000b82a
mov ecx, dword [rbp - 0x55]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov dword [rbp - 0x55], eax
cmp eax, r15d
je 0x14000b851
mov edx, dword [rbp - 0x59]
mov r8d, r15d
mov rcx, qword [rsi]
call fcn.140018c78
test eax, eax
jne 0x14000b82a
add edi, r15d
cmp edi, dword [rbp - 0x51]
jb 0x14000b7be
or eax, 0xffffffff
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14000f700
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
cmp dword [rbp - 0x59], 0x60
ja 0x14000b82a
mov edx, dword [rbp - 0x59]
lea rcx, [rbp - 0x39]
mov r9, qword [rsi]
mov r8, r15
call fcn.1400135f0
cmp rax, r15
jne 0x14000b82a
lea rax, [rbp - 0x39]
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rax + rdx], 0
jne 0x14000b876
lea rax, [rbp - 0x39]
mov qword [rbx], rax
lea r8, [rbp - 0x39]
lea eax, [rdx + 1]
movsxd rcx, eax
add r8, rcx
cmp edx, 0x40
jl 0x14000b89e
and qword [rbx], 0
jmp 0x14000b82a
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x14000b8a2
mov qword [rbx + 8], r8
cmp eax, 0x20
jl 0x14000b8c3
and qword [rbx], 0
and qword [rbx + 8], 0
jmp 0x14000b82a
lea rcx, [rbp - 0x39]
call fcn.14001c3d0
mov rcx, qword [rbx + 8]
mov qword [rbx], rax
call fcn.14001c3d0
mov qword [rbx + 8], rax
xor eax, eax
jmp 0x14000b82d

Function at 0x14000b93c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [rdx + 0xc]
mov rsi, r9
mov rdi, rcx
cmp r8d, ebx
jne 0x14000b95d
xor eax, eax
jmp 0x14000b996
jle 0x14000b964
or eax, 0xffffffff
jmp 0x14000b996
mov edx, dword [rdx + 8]
sub ebx, r8d
cmp ebx, dword [rsp + 0x50]
mov rcx, qword [rcx]
cmovg ebx, dword [rsp + 0x50]
add edx, r8d
xor r8d, r8d
call fcn.140018c78
test eax, eax
jne 0x14000b95f
mov r9, qword [rdi]
lea edx, [rax + 1]
movsxd r8, ebx
mov rcx, rsi
call fcn.1400135f0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000fb50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000fbe1
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x14000fbe1
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fbe1
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14000fbc5
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000fbbf
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14000fbc7
add rdx, 0x28
jmp 0x14000fba4
xor edx, edx
test rdx, rdx
jne 0x14000fbd0
xor al, al
jmp 0x14000fbe7
test dword [rdx + 0x24], 0x80000000
je 0x14000fbdd
xor al, al
jmp 0x14000fbe7
mov al, 1
jmp 0x14000fbe7
xor al, al
jmp 0x14000fbe7
add rsp, 0x18
ret

Function at 0x1400147a0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400147c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140018e54
or eax, 0xffffffff
jmp 0x1400147c2
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400147c8
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400147e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140018e54
or eax, 0xffffffff
jmp 0x1400147ea
xor eax, eax
add rsp, 0x28
ret
Function at 0x14001ad44
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14001ab18
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001ab18
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001ab18
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001ab18
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001ab18
cmp dword [rcx + 0x84], 0xe
jbe 0x14001ab18
cmp dword [rcx + 0xf8], esi
je 0x14001ab18
mov ecx, r14d
call fcn.14001ac60
mov ecx, 2
call fcn.14001fc68
nop
cmp byte [0x14003d578], 0
jne 0x14001abe2
mov r15d, 1
mov eax, r15d
xchg dword [0x14003d56c], eax
test ebx, ebx
jne 0x14001ab8b
mov rdi, qword [0x14003c008]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14003d570]
cmp rcx, rax
je 0x14001ab82
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14000fd7c]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14003d808]
jmp 0x14001ab97
cmp ebx, r15d
jne 0x14001ab9d
lea rcx, [0x14003d820]
call fcn.14001c128
nop
test ebx, ebx
jne 0x14001abb4
lea rdx, [0x14002b628]
lea rcx, [0x14002b608]
call fcn.14001b944
lea rdx, [0x14002b638]
lea rcx, [0x14002b630]
call fcn.14001b944
movzx eax, byte [0x14003d578]
test esi, esi
cmove eax, r15d
mov byte [0x14003d578], al
jmp 0x14001abe2
mov ecx, 2
call fcn.14001fcbc
test esi, esi
jne 0x14001abf9
mov ecx, r14d
call fcn.14001ac14
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14001aaa8
Function at 0x14001f484
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14001f324
call fcn.140018ec4
mov dword [rax], 0x16
call fcn.14001d310
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001f30c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14001f30c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14001f356
lock or dword [rax + 0x14], 0x10
jmp 0x14001f30c
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14001f373
mov rcx, qword [rbp + 0x10]
call fcn.140023238
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14001c448
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14001ed5c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14001f3ca
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14001f30c
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14001f436
mov rcx, qword [rbp + 0x10]
call fcn.14001c448
cmp eax, 0xffffffff
je 0x14001f41d
mov rcx, qword [rbp + 0x10]
call fcn.14001c448
cmp eax, 0xfffffffe
je 0x14001f41d
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14001c448
movsxd rdi, eax
lea rsi, [0x14003d860]
mov rcx, rbx
sar rdi, 6
call fcn.14001c448
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14001f424
lea rax, [0x14003c430]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001f436
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14001f46c
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14001f468
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14001f468
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14001f30f
jmp 0x14001f2dc
Function at 0x403f90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00406d60]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x403ffd
mov rcx, r8
call fcn.00403e70
test eax, eax
je 0x403ffd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x403ffd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403ff4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403fff
add rax, 0x28
cmp rax, r9
jne 0x403fe0
xor eax, eax
add rsp, 0x28
ret

Function at 0x404490
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
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 fcn.00404350
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00404350
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x1408f8028
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1408f81af
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1408f8059
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408f803f
add dl, dl
jne 0x1408f8066
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408f80c6
xor eax, eax
add dl, dl
jne 0x1408f8075
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408f817d
add dl, dl
jne 0x1408f8086
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408f8093
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408f80a0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408f80ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408f80ba
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408f804e
mov eax, 1
add dl, dl
jne 0x1408f80d6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408f80e3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408f80cb
sub eax, ebx
mov ebx, 1
jne 0x1408f811c
mov ecx, 1
add dl, dl
jne 0x1408f80fe
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408f810b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408f80f3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408f804e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408f8138
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408f8145
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408f812d
cmp eax, 0x7d00
jae 0x1408f816b
cmp eax, 0x500
jb 0x1408f8166
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408f804e
cmp eax, 0x7f
ja 0x1408f816e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408f804e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408f81a2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1408f804e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20