joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009a300
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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.1400a4760
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.1400a4760
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14009a370
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400d8ac4]
mov rbx, rcx
test esi, esi
jle 0x14009a4a0
mov rax, qword [0x1400d8ac8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14009a3bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14009a445
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14009a3a0
mov rcx, rbx
call fcn.14009adc0
mov rdi, rax
test rax, rax
je 0x14009a4c2
mov rax, qword [0x1400d8ac8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14009af00
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400d8ac8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14009a4a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14009a43e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14009a450
add dword [0x1400d8ac4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400d8ac8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14009a43e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14009a300
nop dword [rax]
xor esi, esi
jmp 0x14009a3c8
mov rax, qword [0x1400d8ac8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14009a300
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14009a300
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14009aa30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400d8b20]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400d8b00]
test rbx, rbx
je 0x14009aa8c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14009aa83
test rsi, rsi
je 0x14009aa83
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14009aa68
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14009adc0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14009ae40
Capabilities:
Parse pe header

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

Function at 0x14009af00
Capabilities:
Parse pe header

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

Function at 0x14009b1d0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x1400d8ba0], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x1400d8ba8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14009b220
lea rdx, [0x14009b0e0]
mov ecx, eax
mov dword [0x1400d8b98], eax
call fcn.1400a4f10
test eax, eax
jne 0x14009b228
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14009b217
call sub.msvcrt.dll_abort
nop
nop
Function at 0x14009b230
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400cdb90]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x14009b268
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14009b2d0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x14009b2e0
mov esi, dword [0x1400d8b98]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x14009b350
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x14009b398
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x14009b257
mov rcx, rbx
call fcn.14009b130
mov qword [rsi + r12*8 + 8], rax
jmp 0x14009b257
call fcn.14009b130
mov qword [rbx + 0x10], rax
jmp 0x14009b257
mov r10d, dword [rsi]
test r10d, r10d
je 0x14009b3fa
mov r9d, dword [0x1400a6cb0]
test r9d, r9d
je 0x14009b428
lock add dword [0x1400d8ba0], 1
jne 0x14009b45c
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x14009b407
mov eax, dword [rsi]
test eax, eax
je 0x14009b271
lock sub dword [0x1400d8ba0], 1
js 0x14009b271
mov rcx, qword [0x1400d8ba8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x14009b271
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sub.msvcrt.dll_calloc
mov rsi, rax
test rax, rax
je 0x14009b483
mov qword [rax], rdi
mov ecx, dword [0x1400d8b98]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14009b2ab
call r13
jmp 0x14009b2ab
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov rsi, rax
test rax, rax
je 0x14009b483
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call fcn.1400a4dd8
jmp 0x14009b373
call fcn.14009b1d0
mov dword [0x1400a6cb0], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14009b2fc
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x14009b271
mov rax, qword [0x1400d8b90]
lea r12, [rax + 1]
mov qword [0x1400d8b90], r12
mov qword [rbx + 0x10], r12
jmp 0x14009b317
lock add dword [0x1400a6cb4], 1
je 0x14009b3e1
mov r8d, dword [0x1400a6cb0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x1400a6cb0]
test r8d, r8d
jne 0x14009b3f0
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x14009b450
jmp 0x14009b3f0
mov rcx, qword [0x1400d8ba8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14009b30a
lock sub dword [0x1400d8ba0], 1
jmp 0x14009b30a
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x14009b4a0
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14009b4aa
mov qword [rcx + 8], r8
test r9, r9
je 0x14009b4b4
cmp qword [rcx], rdx
je 0x14009b4b8
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x14000b140
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fdd8]
test rcx, rcx
je 0x14000b17b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b16e
mov rcx, qword [0x14002fdd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fdd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fde8], 0
je 0x14000b26e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140029940]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140030610]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b24f
test al, 0x10
je 0x14000b24f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b1f5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14004cdf0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14004cdfd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14004ce0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14004cdf5
lea eax, [rcx + 1]
jmp 0x14004ce1b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14004ce2e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14004ce14
sub eax, 3
jb 0x14004ce4e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14004ce9d
sar eax, 1
movsxd rbp, eax
jb 0x14004ce84
jmp 0x14004ce5c
add ebx, ebx
jne 0x14004ce5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14004ce84
inc ecx
add ebx, ebx
jne 0x14004ce6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14004ce84
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14004ce7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14004ce6c
add ecx, 2
jmp 0x14004ce89
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14004cdb2
jmp 0x14004cdfd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xce00
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14004ceed
cmp rsi, rcx
jae 0x14004cef5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14004ced4
cmp al, 0x8f
ja 0x14004ced4
cmp byte [rsi - 2], 0xf
je 0x14004ceda
sub al, 0xe8
cmp al, 1
ja 0x14004cebe
cmp rsi, rcx
jae 0x14004cef5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14004cec4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14004cef5
lodsb al, byte [rsi]
jmp 0x14004ced4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x49000]
mov eax, dword [rdi]
or eax, eax
je 0x14004cf52
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4d1e4]
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 0x14004cf02
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 0x14004cf4c
mov qword [rbx], rax
add rbx, 8
jmp 0x14004cf22
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 0x14004cf8c
cmp al, 0xef
ja 0x14004cf7e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14004cf5e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14004cf6d
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 + 0x227]
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 0x14004cfe0
sub rsp, 0xffffffffffffff80
jmp 0x14000c8a0
Function at 0x14000c580
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x450]
sub rsp, 0x550
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x590], rbx
mov rax, qword [0x140001178]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x68], 0x18
xor r15d, r15d
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], 1
xor r9d, r9d
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14000c61e
mov qword [rsi + 0x10], r15
mov ebx, 0xf
mov qword [rsi + 0x18], rbx
mov byte [rsi], r15b
xor r8d, r8d
lea rdx, [0x140001e58]
mov rcx, rsi
call fcn.14000b980
jmp 0x14000c79f
mov dword [rbp - 0x70], 0x68
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rbp - 0x68]
call fcn.140012ec0
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [rbp - 0x34], 0x101
mov word [rbp - 0x30], r15w
mov rax, qword [rsp + 0x60]
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], rax
lea rax, [rbp]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14000c5f7
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, r15
mov qword [rbp + 0x28], r15
mov ebx, 0xf
mov qword [rbp + 0x30], rbx
mov byte [rbp + 0x18], r14b
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x40]
call fcn.140012ec0
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
mov r8d, 0x400
lea rdx, [rbp + 0x40]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000c785
nop word [rax + rax]
mov edi, dword [rsp + 0x50]
mov rax, rbx
sub rax, r14
cmp rdi, rax
ja 0x14000c73d
lea rax, [r14 + rdi]
mov qword [rbp + 0x28], rax
lea rax, [rbp + 0x18]
cmp rbx, 0x10
cmovae rax, qword [rbp + 0x18]
lea rbx, [rax + r14]
mov r8d, edi
lea rdx, [rbp + 0x40]
mov rcx, rbx
call fcn.140012a50
mov byte [rbx + rdi], 0
jmp 0x14000c755
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x40]
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp + 0x18]
call fcn.14000a940
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
mov r8d, 0x400
lea rdx, [rbp + 0x40]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000c785
mov rbx, qword [rbp + 0x30]
mov r14, qword [rbp + 0x28]
jmp 0x14000c700
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rbp + 0x18]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp + 0x28]
movups xmmword [rsi + 0x10], xmm1
mov rax, rsi
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.140011700
mov rbx, qword [rsp + 0x590]
add rsp, 0x550
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000da90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, r8
mov qword [rsp + 0x30], 0
mov rdi, rdx
mov dword [rsp + 0x28], 2
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, ebx
mov rdx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000db08
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000e190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r8, qword [rcx]
movabs rax, 0xffffffff00000000
mov r11d, dword [rcx + 0x60]
mov r14, rcx
neg r11d
movzx ebx, word [r8 + 0x14]
mov r12, qword [r8 + 0x30]
add rbx, r8
and r12, rax
mov r10d, dword [rbx + 0x20]
mov r9d, dword [rbx + 0x28]
or r10, r12
and r11, r10
mov qword [rsp + 0x20], r10
mov qword [rsp + 0x28], r11
test r9d, r9d
jne 0x14000e1f6
mov eax, dword [rbx + 0x3c]
test al, 0x40
je 0x14000e1ee
mov r9d, dword [r8 + 0x20]
jmp 0x14000e1f6
test al, al
jns 0x14000e1f6
mov r9d, dword [r8 + 0x24]
mov edx, dword [rbx + 0x3c]
mov r13d, 1
mov r15d, r13d
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rdi
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x38], 0
cmp r13w, word [r8 + 6]
jae 0x14000e2e8
add rbx, 0x64
nop word [rax + rax]
mov edi, dword [r14 + 0x60]
mov ebp, dword [rbx - 0x1c]
neg edi
mov esi, dword [rbx - 0x14]
or rbp, r12
and rdi, rbp
test esi, esi
jne 0x14000e26a
mov eax, dword [rbx]
test al, 0x40
je 0x14000e262
mov esi, dword [r8 + 0x20]
jmp 0x14000e26a
test al, al
jns 0x14000e26a
mov esi, dword [r8 + 0x24]
cmp r11, rdi
je 0x14000e2ad
mov eax, r9d
add rax, r10
cmp rax, rdi
ja 0x14000e2ad
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.14000e0d0
test eax, eax
je 0x14000e383
mov edx, dword [rbx]
mov r10, rbp
mov r8, qword [r14]
mov r11, rdi
mov qword [rsp + 0x20], rbp
mov r9d, esi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x30], esi
jmp 0x14000e2cf
mov ecx, dword [rbx]
mov eax, ecx
and eax, edx
or edx, ecx
bt eax, 0x19
jb 0x14000e2bf
btr edx, 0x19
mov r9d, ebp
sub r9d, dword [rsp + 0x20]
add r9d, esi
mov dword [rsp + 0x30], r9d
movzx eax, word [r8 + 6]
inc r15d
add rbx, 0x28
mov dword [rsp + 0x34], edx
cmp r15d, eax
jl 0x14000e240
test r9d, r9d
je 0x14000e30c
bt edx, 0x19
jae 0x14000e332
cmp r10, r11
jne 0x14000e30c
mov edx, r9d
mov r8d, 0x4000
mov r9, qword [r14 + 0x50]
mov rcx, r10
call qword [r14 + 0x30]
mov eax, r13d
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
mov ecx, edx
mov eax, edx
shr rax, 0x1e
and eax, r13d
shr rcx, 0x1d
and ecx, r13d
lea rcx, [rax + rcx*2]
mov eax, edx
shr rax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x140001120]
mov eax, dword [rax + rcx*4]
mov r8d, eax
bts r8d, 9
mov rcx, r10
and edx, 0x4000000
mov edx, r9d
lea r9, [rsp + 0x70]
cmove r8d, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000e30c
xor eax, eax
jmp 0x14000e30f
Function at 0x140017cbc
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 0x140017a90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140017a90
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140017a90
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140017a90
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140017a90
cmp dword [rcx + 0x84], 0xe
jbe 0x140017a90
cmp dword [rcx + 0xf8], esi
je 0x140017a90
mov ecx, r14d
call fcn.140017bd8
mov ecx, 2
call fcn.14001c594
nop
cmp byte [0x140028790], 0
jne 0x140017b5a
mov r15d, 1
mov eax, r15d
xchg dword [0x140028784], eax
test ebx, ebx
jne 0x140017b03
mov rdi, qword [0x140001178]
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 [0x140028788]
cmp rcx, rax
je 0x140017afa
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140011a30]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400288c8]
jmp 0x140017b0f
cmp ebx, r15d
jne 0x140017b15
lea rcx, [0x1400288e0]
call fcn.140018d54
nop
test ebx, ebx
jne 0x140017b2c
lea rdx, [0x140001080]
lea rcx, [0x140001060]
call fcn.14001901c
lea rdx, [0x140001090]
lea rcx, [0x140001088]
call fcn.14001901c
movzx eax, byte [0x140028790]
test esi, esi
cmove eax, r15d
mov byte [0x140028790], al
jmp 0x140017b5a
mov ecx, 2
call fcn.14001c5e8
test esi, esi
jne 0x140017b71
mov ecx, r14d
call fcn.140017b8c
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 0x140017a20
Function at 0x1408d7058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408d71df
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 0x1408d7089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408d706f
add dl, dl
jne 0x1408d7096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408d70f6
xor eax, eax
add dl, dl
jne 0x1408d70a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408d71ad
add dl, dl
jne 0x1408d70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408d70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408d70d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408d70dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408d70ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408d707e
mov eax, 1
add dl, dl
jne 0x1408d7106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408d7113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408d70fb
sub eax, ebx
mov ebx, 1
jne 0x1408d714c
mov ecx, 1
add dl, dl
jne 0x1408d712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408d713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408d7123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408d707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408d7168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408d7175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408d715d
cmp eax, 0x7d00
jae 0x1408d719b
cmp eax, 0x500
jb 0x1408d7196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408d707e
cmp eax, 0x7f
ja 0x1408d719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408d707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408d71d2
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 0x1408d707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20