joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ae0e0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400ae17f
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400ae17f
mov r8d, dword [rax + rcx + 0xd8]
test r8d, r8d
je 0x1400ae172
mov rdi, qword [r8 + rcx + 0x58]
test rdi, rdi
je 0x1400ae172
sub rcx, rdx
movabs rsi, 0x2b992ddfa232
add rdi, rcx
cmp qword [rdi], rsi
jne 0x1400ae17f
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
movabs rax, 0x2b992ddfa233
xor rcx, rbx
mov rbx, qword [rsp + 0x30]
xor rcx, rsi
cmp rcx, rsi
cmove rcx, rax
mov al, 1
mov qword [rdi], rcx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rdi
ret

Function at 0x1400ae7a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400ae8a1
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x1400ae8a1
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r8
mov ecx, dword [rax + rdx + 0xb0]
test ecx, ecx
jne 0x1400ae805
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x1400ae8ac
lea rbx, [rdx + rcx]
mov ebp, dword [rax + rdx + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x30]
cmp rbx, rbp
jae 0x1400ae88f
nop dword [rax]
mov edx, dword [rbx + 4]
test edx, edx
je 0x1400ae88f
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x40], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x48], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x50], eax
cmp rcx, r8
je 0x1400ae868
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x50]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x30], rcx
jmp 0x1400ae884
lea r8, [rsp + 0x40]
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.14009c8c0
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x1400ae820
mov rax, qword [rsp + 0x28]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x1400ae8ac
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400ae8d0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov r13, rdx
mov rdx, rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [r13], ax
jne 0x1400aeafc
movsxd rax, dword [r13 + 0x3c]
cmp dword [rax + r13], 0x4550
jne 0x1400aeafc
mov ecx, dword [rax + r13 + 0x90]
test ecx, ecx
jne 0x1400ae940
mov qword [rdx], r8
mov qword [rdx + 8], r8
mov qword [rdx + 0x10], r8
jmp 0x1400aeb07
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x49], xmm0
mov rbx, r8
mov qword [rbp - 0x39], rbx
lea r12, [rcx + r13]
mov r14, qword [rbp - 0x41]
cmp dword [r12 + 0x10], 0
je 0x1400aeaeb
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r8
mov qword [rbp + recv], 0xf
mov byte [rbp - 9], 0
movdqu xmmword [rbp + 0x17], xmm0
mov r15, r8
mov qword [rbp + 0x27], r8
mov edx, dword [r12 + 0xc]
add rdx, r13
movups xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], r8
mov qword [rbp - 0x19], r8
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1400ae9a1
lea rcx, [rbp - 0x31]
call fcn.140008b20
movups xmm0, xmmword [rbp - 0x31]
movups xmmword [rbp - 9], xmm0
movups xmm1, xmmword [rbp - 0x21]
movups xmmword [rbp + 7], xmm1
mov esi, dword [r12 + 0x10]
add rsi, r13
mov edi, dword [r12]
add rdi, r13
mov rax, qword [rdi]
test rax, rax
je 0x1400aea93
mov rbx, qword [rbp + 0x1f]
nop dword [rax]
nop word [rax + rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], 0
mov qword [rbp - 0x19], recv
mov byte [rbp - 0x31], 0
lea rdx, [r13 + 2]
add rdx, rax
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x1400aea20
lea rcx, [rbp - 0x31]
call fcn.140058ce0
mov qword [rbp - 0x11], rsi
cmp rbx, r15
je 0x1400aea5a
lea rdx, [rbp - 0x31]
mov rcx, rbx
call fcn.14008e2c0
mov rax, qword [rbp - 0x11]
mov qword [rbx + 0x20], rax
add rbx, 0x28
mov qword [rbp + 0x1f], rbx
jmp 0x1400aea72
lea r8, [rbp - 0x31]
mov rdx, rbx
lea rcx, [rbp + 0x17]
call fcn.1400aed70
mov r15, qword [rbp + 0x27]
mov rbx, qword [rbp + 0x1f]
add rdi, 8
add rsi, 8
lea rcx, [rbp - 0x31]
call fcn.140008910
mov rax, qword [rdi]
test rax, rax
jne 0x1400ae9f0
mov rbx, qword [rbp - 0x39]
lea r8, [rbp - 9]
mov rdx, r14
cmp r14, rbx
je 0x1400aeaae
call fcn.1400af0e0
add r14, 0x38
mov qword [rbp - 0x41], r14
jmp 0x1400aeabf
lea rcx, [rbp - 0x49]
call fcn.1400aeb30
mov r14, qword [rbp - 0x41]
mov rbx, qword [rbp - 0x39]
add r12, 0x14
lea rcx, [rbp + 0x17]
call fcn.1400ae650
lea rcx, [rbp - 9]
call fcn.140008910
cmp dword [r12 + 0x10], 0
mov r8d, 0
jne 0x1400ae963
mov rdx, qword [rbp + 0x67]
mov rax, qword [rbp - 0x49]
mov qword [rdx], rax
mov qword [rdx + 8], r14
mov qword [rdx + 0x10], rbx
jmp 0x1400aeb07
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdx
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400af320
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rbx, rcx
lea rcx, [rbp - 0x49]
call fcn.1400a8320
nop
movabs rdi, 0x7ffffffffffffffe
mov rax, rdi
mov rcx, qword [rbp - 0x39]
sub rax, rcx
cmp rax, 0x22
jb 0x1400af57f
lea rax, [rbp - 0x49]
cmp qword [rbp - 0x31], 7
cmova rax, qword [rbp - 0x49]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x22
lea r9, [0x140176fb0]
lea rcx, [rbp + 0x17]
call fcn.1400ac630
nop
mov rcx, qword [rbx + 0x10]
mov rax, rdi
sub rax, rcx
cmp rax, 4
jb 0x1400af585
cmp qword [rbx + 0x18], 7
jbe 0x1400af3af
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 4
lea r9, [0x140177010]
lea rcx, [rbp - 0x29]
call fcn.1400ac630
nop
lea rdx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 7
cmova rdx, qword [rbp + 0x17]
lea r8, [rbp + 0x77]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1400af439
mov eax, dword [rbp - 0x19]
add eax, eax
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 7
cmova rcx, qword [rbp - 0x29]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 2
lea r8, str.ImagePath
xor edx, edx
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp + 0x77]
test eax, eax
je 0x1400af46e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
lea rcx, [rbp - 0x29]
call fcn.1400900b0
nop
lea rcx, [rbp + 0x17]
call fcn.1400900b0
nop
lea rcx, [rbp - 0x49]
call fcn.1400900b0
movzx eax, bl
mov rbx, qword [rsp + 0xf0]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
mov dword [rsp + 0x28], 4
lea rax, [0x14017cce8]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Type
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp + 0x77]
test eax, eax
jne 0x1400af433
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x140177020]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x1400af439
lea rdx, str.RtlAdjustPrivilege
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.NtLoadDriver
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
lea r9, [rbp + 0x6f]
xor r8d, r8d
mov dl, 1
lea ecx, [r8 + 0xa]
call rbx
test eax, eax
js 0x1400af439
mov rcx, qword [rbp - 0x39]
sub rdi, rcx
cmp rdi, 0x34
jb 0x1400af579
lea rax, [rbp - 0x49]
cmp qword [rbp - 0x31], 7
cmova rax, qword [rbp - 0x49]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x34
lea r9, [0x140177080]
lea rcx, [rbp - 9]
call fcn.1400ac630
nop
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rdx, qword [rbp - 9]
lea rcx, [rbp + 0x37]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp + 0x37]
call rsi
mov ebx, eax
cmp eax, 0xc000010e
jne 0x1400af565
mov bl, 1
jmp 0x1400af56b
shr ebx, 0x1f
xor bl, 1
lea rcx, [rbp - 9]
call fcn.1400900b0
jmp 0x1400af43b
call fcn.140008110
nop
call fcn.140008110
nop
call fcn.140008110
int3
Function at 0x1400af590
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rbx, rcx
lea rcx, [0x140177068]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x1400af71a
mov rcx, qword [rbx + 0x10]
movabs rdi, 0x7ffffffffffffffe
mov rax, rdi
sub rax, rcx
cmp rax, 0x34
jb 0x1400af735
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400af5e9
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x34
lea r9, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x70]
call fcn.1400ac630
nop
lea rdx, [rsp + 0x70]
cmp qword [rsp + 0x88], 7
cmova rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbx + 0x10]
sub rdi, rax
cmp rdi, 0x22
jb 0x1400af72f
cmp qword [rbx + 0x18], 7
jbe 0x1400af648
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0x22
lea r9, str.SYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x50]
call fcn.1400ac630
nop
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rdx, qword [rsp + 0x50]
lea r8, [rsp + 0xa8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1400af69f
cmp eax, 2
sete bl
jmp 0x1400af702
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x40]
call rax
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
test eax, eax
je 0x1400af6ea
cmp qword [rsp + 0x68], 7
cmova rdx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
xor bl, bl
jmp 0x1400af702
cmp qword [rsp + 0x68], 7
cmova rdx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
jne 0x1400af6e6
mov bl, 1
lea rcx, [rsp + 0x50]
call fcn.1400900b0
nop
lea rcx, [rsp + 0x70]
call fcn.1400900b0
movzx eax, bl
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140008110
nop
call fcn.140008110
int3
Function at 0x1400af740
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x40
xor edx, edx
lea r9, [rsp + 0x68]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x68], r14d
mov ebx, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400af7bf
test rbx, rbx
je 0x1400af787
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x68]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x68]
mov rdx, rax
mov ecx, reloc.WS2_32.dll_inet_addr
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400af771
test eax, eax
jns 0x1400af7e4
test rbx, rbx
je 0x1400af7e9
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
add rsp, 0x40
pop r14
pop rsi
pop rbx
ret
test rbx, rbx
jne 0x1400af7f4
xor eax, eax
add rsp, 0x40
pop r14
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x70], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x1400af8c3
nop word [rax + rax]
mov eax, edi
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x20], xmm0
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rdx, 0x30
mov qword [rsp + 0x30], r14
add rdx, rcx
mov qword [rsp + 0x38], r14
add rdx, rbx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r14b
jne 0x1400af845
lea rcx, [rsp + 0x20]
call fcn.140008b20
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x1400af865
mov rdx, qword [rsi]
cmp qword [rsp + 0x38], 0xf
lea rcx, [rsp + 0x20]
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400af8e9
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1400af8b9
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400af8b4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400af932
call fcn.14011888c
inc edi
cmp edi, dword [rbx]
jb 0x1400af810
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1400af93e
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400af939
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400af939
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011888c
mov rax, rdi
jmp 0x1400af8d6
Function at 0x1400c0e30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.1400afee0
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x1400c0e86
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x1400c0edd
mov ebp, 0x4b0000
jmp 0x1400c0eeb
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.1400b2320
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x1400c0f01
mov eax, r12d
jmp 0x1400c0f0a
mov edx, edi
mov ecx, ebp
call fcn.1400b2320
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x1400c0f26
shl esi, 0x10
mov ecx, esi
jmp 0x1400c1015
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x1400c0f84
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.1400afee0
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x1400c0f74
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.1400b21f0
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.1400afee0
add ebx, eax
jmp 0x1400c101e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x1400c0f91
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x1400c0fd0
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.1400afee0
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x1400c0fd5
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.1400b21f0
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.1400afee0
add ebx, eax
jmp 0x1400c101e
cmp eax, r12d
jge 0x1400c100e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.1400afee0
sub ebp, eax
sub r15d, esi
je 0x1400c100e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.1400b21f0
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.1400afee0
add ebx, eax
jmp 0x1400c101e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.1400afee0
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.1400afee0
Function at 0x14010d0c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x140197040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x14010d25c
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x14010d25c
cmp r10d, r14d
jne 0x14010d160
sub rbx, 0x10
jmp 0x14010d2a4
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x14010d1d2
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x14010d194
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x14010d19c
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x14010d1bb
movzx edx, r11b
mov rcx, rsi
call fcn.14010e270
test al, al
jne 0x14010d2b5
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.14010e8e0
test al, al
jne 0x14010d2b5
mov edx, dword [rsi + 0x64]
lea r9, [0x14010ec40]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x14010d1fe
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.14010cf40
jmp 0x14010d252
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.14010cf40
test dil, dil
je 0x14010d24a
cmp byte [rsi + 0x6a], 0
jne 0x14010d24a
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x14010d2b5
sub rbx, 0x10
jmp 0x14010d2a4
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x14010d2b9
mov ebp, dword [rbx]
jmp 0x14010d120
mov al, 1
jmp 0x14010d2c2
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140119340
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x140113610
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14011362c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140113680
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401137a5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1401137a5
test rax, rax
je 0x1401137a5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1401137a5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x14011371a
lea rax, [0x140113800]
jmp 0x140113773
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1401137a5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140113793
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x140113740
lea rax, [0x1401137d0]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1401137ba
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x140114500
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x14011450b
xor eax, eax
ret
lea r11, [0x14013b610]
not ecx
cmp r8d, 8
jb 0x1401145e1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x140114530
test r8d, r8d
je 0x14011460d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1401145f0
not ecx
mov eax, ecx
ret