joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb8e656
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov dword [rbp + 0x18], edx
mov eax, dword [rbp + 0x10]
mov dword [rbp - 4], eax
cmp dword [rbp + 0x10], 0x7f
jg 0xb8e692
cmp dword [rbp + 0x10], 0x40
jle 0xb8e7d9
cmp dword [rbp + 0x10], 0x5a
jg 0xb8e7d9
mov eax, dword [rbp + 0x10]
add eax, 0x20
mov dword [rbp - 4], eax
jmp 0xb8e7d9
cmp dword [rbp + 0x10], 0xffff
jg 0xb8e7be
mov dword [rbp - 8], 0xa2
mov dword [rbp - 0xc], 0
mov dword [rbp - 0x10], 0xffffffff
jmp 0xb8e70f
mov edx, dword [rbp - 8]
mov eax, dword [rbp - 0xc]
add eax, edx
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [rbp - 0x14], eax
mov eax, dword [rbp - 0x14]
cdqe
lea rdx, [rax*4]
lea rax, [0x013e9780]
movzx eax, word [rdx + rax]
movzx eax, ax
mov edx, dword [rbp + 0x10]
sub edx, eax
mov eax, edx
mov dword [rbp - 0x18], eax
cmp dword [rbp - 0x18], 0
js 0xb8e706
mov eax, dword [rbp - 0x14]
mov dword [rbp - 0x10], eax
mov eax, dword [rbp - 0x14]
add eax, 1
mov dword [rbp - 0xc], eax
jmp 0xb8e70f
mov eax, dword [rbp - 0x14]
sub eax, 1
mov dword [rbp - 8], eax
mov eax, dword [rbp - 8]
cmp eax, dword [rbp - 0xc]
jge 0xb8e6b6
mov eax, dword [rbp - 0x10]
cdqe
lea rdx, [rax*4]
lea rax, [0x013e9780]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
movzx eax, word [rax]
movzx edx, ax
mov rax, qword [rbp - 0x20]
movzx eax, byte [rax + 3]
movzx eax, al
add eax, edx
cmp eax, dword [rbp + 0x10]
jle 0xb8e79f
mov rax, qword [rbp - 0x20]
movzx eax, byte [rax + 2]
movzx eax, al
and eax, 1
mov edx, eax
mov rax, qword [rbp - 0x20]
movzx eax, word [rax]
movzx eax, ax
xor eax, dword [rbp + 0x10]
and eax, edx
test eax, eax
jne 0xb8e79f
mov rax, qword [rbp - 0x20]
movzx eax, byte [rax + 2]
shr al, 1
movzx eax, al
cdqe
lea rdx, [rax + rax]
lea rax, [0x013e9a20]
movzx eax, word [rdx + rax]
movzx edx, ax
mov eax, dword [rbp + 0x10]
add eax, edx
and eax, 0xffff
mov dword [rbp - 4], eax
cmp dword [rbp + 0x18], 0
je 0xb8e7d9
cmp dword [rbp + 0x18], 2
sete al
movzx edx, al
mov eax, dword [rbp - 4]
mov ecx, eax
call fcn.00b8e44b
mov dword [rbp - 4], eax
jmp 0xb8e7d9
cmp dword [rbp + 0x10], 0x103ff
jle 0xb8e7d9
cmp dword [rbp + 0x10], 0x10427
jg 0xb8e7d9
mov eax, dword [rbp + 0x10]
add eax, 0x28
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
add rsp, 0x40
pop rbp
ret
Function at 0xb9578f
Capabilities:
Reference sql statements

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x18]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
lea r8, str.sqlite_stat1
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.00b6fa13
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0xb9582d
mov rax, qword [rbp + 0x18]
mov qword [rax + 0x48], 0x100000
cmp dword [rbp - 4], 1
je 0xb95823
mov eax, dword [rbp - 4]
jmp 0xb9591a
mov eax, 0
jmp 0xb9591a
mov rax, qword [rbp + 0x18]
mov rcx, qword [rax + 0x38]
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax + 0x30]
mov rax, qword [rbp - 0x18]
mov r8, rcx
mov rcx, rax
call fcn.00ac4291
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0xb95863
mov dword [rbp - 4], 7
jmp 0xb95917
lea rdx, [rbp - 0x28]
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0xffffffff
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.00b399cf
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0xb958c9
mov rax, qword [rbp - 0x28]
mov rcx, rax
call fcn.00af6935
cmp eax, 0x64
jne 0xb958b8
mov rax, qword [rbp - 0x28]
mov edx, 0
mov rcx, rax
call fcn.00af70c7
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
call fcn.00af5900
mov dword [rbp - 4], eax
jmp 0xb958d6
cmp dword [rbp - 4], 7
je 0xb958d6
mov dword [rbp - 4], 0
cmp dword [rbp - 4], 0
jne 0xb9590b
cmp qword [rbp - 0x10], 0
jne 0xb958f1
mov rax, qword [rbp + 0x18]
mov qword [rax + 0x48], 0x100000
jmp 0xb9590b
mov eax, 0x64
cmp qword [rbp - 0x10], 0x64
cmovge rax, qword [rbp - 0x10]
mov rdx, rax
mov rax, qword [rbp + 0x18]
mov qword [rax + 0x48], rdx
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.00ac0e07
mov eax, dword [rbp - 4]
sub rsp, 0xffffffffffffff80
pop rbp
ret
Function at 0xb95e7e
Capabilities:
Reference sql statements

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp + 0x28], r9
cmp dword [rbp + 0x20], 0
je 0xb95f53
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x18]
mov rax, qword [rax + 0x30]
mov rdx, rax
lea rcx, str.PRAGMA__Q.page_size
call fcn.00ac4291
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x14]
mov rax, qword [rbp - 0x10]
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.00b95de3
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0xb95f2c
mov eax, dword [rbp - 0x14]
lea edx, [rax - 0x40]
mov rax, qword [rbp + 0x18]
mov dword [rax + 0x20], edx
mov rax, qword [rbp + 0x18]
movzx eax, byte [rax + 0x27]
movzx eax, al
imul eax, eax, 0x33
lea edx, [rax + 4]
mov rax, qword [rbp + 0x18]
mov eax, dword [rax + 0x20]
cmp edx, eax
jge 0xb95ff7
mov rax, qword [rbp + 0x18]
movzx eax, byte [rax + 0x27]
movzx eax, al
imul eax, eax, 0x33
lea edx, [rax + 4]
mov rax, qword [rbp + 0x18]
mov dword [rax + 0x20], edx
jmp 0xb95ff7
mov rcx, qword [rbp + 0x10]
call fcn.00b6e1b3
mov rdx, rax
lea rcx, [0x013db090]
call fcn.00ac4291
mov rdx, rax
mov rax, qword [rbp + 0x28]
mov qword [rax], rdx
jmp 0xb95ff7
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax + 0x38]
mov rax, qword [rbp + 0x18]
mov rax, qword [rax + 0x30]
mov r8, rdx
mov rdx, rax
lea rcx, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.00ac4291
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x18]
lea rdx, [rax + 0x20]
mov rax, qword [rbp - 0x10]
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.00b95de3
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0xb95fc1
mov rcx, qword [rbp + 0x10]
call fcn.00b6e1b3
mov rdx, rax
lea rcx, [0x013db090]
call fcn.00ac4291
mov rdx, rax
mov rax, qword [rbp + 0x28]
mov qword [rax], rdx
jmp 0xb95ff7
mov rax, qword [rbp + 0x18]
mov eax, dword [rax + 0x20]
cmp eax, 0x1bf
jg 0xb95ff7
mov dword [rbp - 4], 0x10b
mov rax, qword [rbp + 0x18]
mov rax, qword [rax + 0x38]
mov rdx, rax
lea rcx, str.undersize_RTree_blobs_in___q_node_
call fcn.00ac4291
mov rdx, rax
mov rax, qword [rbp + 0x28]
mov qword [rax], rdx
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.00ac0e07
mov eax, dword [rbp - 4]
add rsp, 0x40
pop rbp
ret
Function at 0xb969d4
Capabilities:
Reference sql statements

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x40]
test eax, eax
jne 0xb96a39
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x20]
test rax, rax
jne 0xb96a39
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
mov r9, rdx
mov r8, rax
lea rdx, str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
mov rcx, qword [rbp + 0x10]
call fcn.00b96854
mov rdx, rax
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x20], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x40]
test eax, eax
jne 0xb96b2e
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x20]
mov rdx, qword [rbp + 0x18]
mov r8, rdx
mov edx, 1
mov rcx, rax
call fcn.00af7835
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x20]
mov rcx, rax
call fcn.00af6935
cmp eax, 0x64
jne 0xb96af1
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x20]
mov edx, 0
mov rcx, rax
call fcn.00af6fd7
mov dword [rbp - 0xc], eax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x20]
mov edx, 0
mov rcx, rax
call fcn.00af6f9b
mov qword [rbp - 0x18], rax
mov eax, dword [rbp - 0xc]
cdqe
mov rcx, rax
call fcn.00ac0cf5
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0xb96acf
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x40], 7
jmp 0xb96af1
mov eax, dword [rbp - 0xc]
movsxd rcx, eax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x20]
mov edx, dword [rbp - 0xc]
mov dword [rax], edx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x20]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.00b96819
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x40]
test eax, eax
jne 0xb96b2e
cmp qword [rbp - 8], 0
jne 0xb96b2e
mov rax, qword [rbp + 0x18]
mov r8, rax
lea rdx, str.Node__lld_missing_from_database
mov rcx, qword [rbp + 0x10]
call fcn.00b968f7
mov rax, qword [rbp - 8]
add rsp, 0x40
pop rbp
ret
Function at 0xb96b38
Capabilities:
Reference sql statements

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
lea rax, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov qword [rbp - 0x30], rax
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp + 0x18]
movsxd rdx, edx
add rdx, 4
mov rax, qword [rax + rdx*8 + 8]
test rax, rax
jne 0xb96bbf
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax + 8]
mov eax, dword [rbp + 0x18]
cdqe
mov rax, qword [rbp + rax*8 - 0x30]
mov r9, rcx
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.00b96854
mov rcx, rax
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp + 0x18]
movsxd rdx, edx
add rdx, 4
mov qword [rax + rdx*8 + 8], rcx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x40]
test eax, eax
jne 0xb96ccf
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp + 0x18]
movsxd rdx, edx
add rdx, 4
mov rax, qword [rax + rdx*8 + 8]
mov qword [rbp - 8], rax
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 8]
mov r8, rdx
mov edx, 1
mov rcx, rax
call fcn.00af7835
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.00af6935
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0x65
jne 0xb96c4d
cmp dword [rbp + 0x18], 0
je 0xb96c21
lea rax, str.__rowid
jmp 0xb96c28
lea rax, str.__parent
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8, rdx
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov rcx, qword [rbp + 0x10]
call fcn.00b968f7
jmp 0xb96cbd
cmp dword [rbp - 0xc], 0x64
jne 0xb96cbd
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
call fcn.00af70c7
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
cmp rax, qword [rbp + 0x28]
je 0xb96cbd
cmp dword [rbp + 0x18], 0
je 0xb96c81
lea rax, str.__rowid
jmp 0xb96c88
lea rax, str.__parent
mov r8, qword [rbp - 0x18]
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
mov qword [rsp + 0x30], rdx
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov r9, r8
mov r8, rcx
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov rcx, qword [rbp + 0x10]
call fcn.00b968f7
mov rax, qword [rbp - 8]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.00b96819
jmp 0xb96cd0
nop
add rsp, 0x70
pop rbp
ret

Function at 0xb97b90
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov qword [0x01425a88], rax
mov rax, qword [0x01425a88]
test rax, rax
jne 0xb97bf6
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x60
mov r9, rax
mov r8d, 0x3d
mov edx, 1
lea rcx, str.runtime:_failed_to_create_runtime_initialization_wait_event._n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
lea rcx, [0x01425a60]
mov rax, qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call rax
nop
add rsp, 0x20
pop rbp
ret
Function at 0xb97f6b
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x30], rcx
mov r8, qword [rbp - 0x30]
mov edx, 0
lea rcx, [0x00b97fd8]
mov rax, qword [sym.imp.msvcrt.dll__beginthread]
call rax
mov qword [rbp - 0x58], rax
cmp qword [rbp - 0x58], 0xffffffffffffffff
jne 0xb97fd0
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov ebx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x60
mov r8d, ebx
lea rdx, str.runtime:_failed_to_create_new_OS_thread___d__n
mov rcx, rax
call sub.msvcrt.dll_fprintf
call sub.msvcrt.dll_abort
nop
add rsp, 0x38
pop rbx
pop rbp
ret

Function at 0xb99ed0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x01426104]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0xb99fea
mov rax, qword [0x01426108]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0xb99f1e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0xb99fd0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0xb99f02
mov rcx, rbx
call fcn.00b9ab40
test rax, rax
mov r12, rax
je 0xb9a022
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x01426108]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.00b9ac60
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x01426108]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0xb9a005
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0xb99fc9
sub eax, 0x40
and eax, 0xffffffbf
je 0xb99fc9
mov r9, rbp
add r9, qword [0x01426108]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0xb99ff1
add dword [0x01426104], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebp, ebp
jmp 0xb99f2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00b99e60
mov rax, qword [0x01426108]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.00b99e60
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00b99e60
nop
nop word cs:[rax + rax]
Function at 0xb9a7a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x01426420]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x01426400]
test rbx, rbx
je 0xb9a7f4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0xb9a7eb
test rsi, rsi
je 0xb9a7eb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0xb9a7d0
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x01426420]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0xb9aa50
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0xb9aa91
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0xb9aa88
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0xb9aa93
add rax, 0x28
cmp rax, r9
jne 0xb9aa74
xor eax, eax
repz ret

Function at 0xb9ab40
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x013ea340]
cmp word [rbx], 0x5a4d
je 0xb9ab60
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.00b9aa10
test eax, eax
je 0xb9ab54
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.00b9aa50
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008808
mov rax, rdx
add rsp, 0x18
ret

Function at 0x180578a52
Capabilities:
Encode data using xor

Disassembly:
mov r11, qword [rdi + 8]
add rdi, 0xc
xor ecx, ecx
push 0x13236b4
test r11, r11
jmp 0x18056958b
mov r10d, 0x9406c731
pop r10
jmp 0x18057c03a
lea rsp, [rsp + 8]
je 0x1805691c3
mov ebx, 0x18dca18
push r10
movzx r10d, bx
jmp 0x18057543f
lea r10, [0x180582498]
mov ebx, 0xab94f78f
movzx ebx, byte [rax]
push 0xffffffffbb825b3c
sar dword [rsp + 1], 0x28
xor ebx, ecx
not byte [rsp + 4]
and ebx, 0xff
mov ebx, dword [r10 + rbx*4]
and qword [rsp], 0xffffffff8c9de897
shr ecx, 8
xor ecx, ebx
inc rax
xor ecx, 0x1d1a7e99
dec r11
lea rsp, [rsp + 8]
jne 0x180575446
jmp 0x1805691bb
mov eax, 0x2894feaf
mov qword [rsp + rax - 0x2894feaf], rax
mov eax, dword [rdi + rax*2 - 0x5129fd5e]
jmp 0x18058d68e
jmp 0x180578a4b
mov dword [rdi], eax
call fcn.180566670
mov rax, qword [rdi]
jmp 0x180588d77
not ecx
push 0x5e8021b2
push 0x71934eb0
mov dword [rdi], ecx
lea rsp, [rsp + 0x10]
jmp fcn.1805671ce
mov r11d, 0x87abad2c
jmp 0x18054f916
mov ecx, 0xbd30c1af
mov ecx, dword [rdi + 4]
add rdi, 4
push 0xffffffffc60cb124
add eax, ecx
jmp 0x1805784f5
Function at 0x412a60
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x412beb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00431900
xorps xmm15, xmm15
mov r14, qword [0x005aa870]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x412ac5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x412ad4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x412af3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x412b03
cmp rbx, 0x1000
jae 0x412acb
jmp 0x412b6d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x412b15
xor edx, edx
jmp 0x412b64
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00431900
xorps xmm15, xmm15
mov r14, qword [0x005aa870]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x412af9
jmp 0x412ae8
call fcn.0046d840
xorps xmm15, xmm15
mov r14, qword [0x005aa870]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.004360c0
lea rax, [0x004bdda4]
mov ebx, 0x18
nop dword [rax]
call fcn.00436940
mov rax, qword [rsp + 0x38]
call fcn.00436680
lea rax, [0x004be124]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00436940
mov rax, qword [rsp + 0x30]
call fcn.00436680
call fcn.00436300
call fcn.00436120
lea rax, [0x004c0049]
mov ebx, 0x21
call fcn.00464de0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046a120
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00412a60
Function at 0x412c20
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x412e46
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00431980
xorps xmm15, xmm15
mov r14, qword [0x005aa870]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x412c93
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x412ca2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x412cc5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x412cd5
cmp rbx, 0x1000
jae 0x412c99
nop
jmp 0x412d58
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x412ced
xor esi, esi
jmp 0x412d4a
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00431980
xorps xmm15, xmm15
mov r14, qword [0x005aa870]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x412ccb
jmp 0x412cb6
call fcn.0046d840
xorps xmm15, xmm15
mov r14, qword [0x005aa870]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x412de0
nop dword [rax + rax]
call fcn.004360c0
lea rax, [0x004be13d]
mov ebx, 0x19
call fcn.00436940
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.00436680
lea rax, [0x004be124]
mov ebx, 0x19
call fcn.00436940
mov eax, dword [rsp + 0x34]
call fcn.00436680
nop
call fcn.00436300
call fcn.00436120
lea rax, [0x004bb401]
mov ebx, 0xd
call fcn.00464de0
nop dword [rax + rax]
cmp eax, 0x5af
je 0x412d80
call fcn.004360c0
lea rax, [0x004be13d]
mov ebx, 0x19
call fcn.00436940
mov rax, qword [rsp + 0x38]
call fcn.00436680
lea rax, [0x004be124]
mov ebx, 0x19
call fcn.00436940
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.00436680
call fcn.00436300
call fcn.00436120
lea rax, [0x004bf8cb]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.00464de0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046a120
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00412c20