joyce8/EMBER2024-capa huggingface dataset:
Function at 0x529560
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x52976b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x58], rax
add qword [rax + 0x58], rcx
mov rdx, qword [rax + 0x50]
test rdx, rdx
jle 0x529684
cmp rdx, 0x40
ja 0x52975d
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x60], rbx
lea rsi, [rdx - 0x40]
mov r8, rsi
neg rsi
sar r8, 0x3f
and r8, rdx
lea rdx, [rax + r8]
lea rdx, [rdx + 0x10]
cmp rcx, rsi
cmovl rsi, rcx
mov qword [rsp + 0x28], rsi
cmp rbx, rdx
je 0x5295f4
mov rax, rdx
mov rcx, rsi
call sym.runtime.memmove
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x70]
mov rdx, qword [rax + 0x50]
add rdx, rsi
mov qword [rax + 0x50], rdx
nop
cmp rdx, 0x40
jne 0x529660
mov qword [rsp], rax
lea rcx, [rax + 0x10]
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], 0x40
mov qword [rsp + 0x18], 0x40
call sym.crypto_md5.block.abi0
xorps xmm15, xmm15
mov r14, qword [0x006fffd0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x50], 0
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x70]
nop dword [rax]
cmp rcx, rsi
jb 0x529755
sub rdi, rsi
mov rdx, rdi
neg rdx
sar rdx, 0x3f
and rdx, rsi
mov r8, rcx
sub r8, rsi
add rbx, rdx
jmp 0x529687
mov r8, rcx
cmp r8, 0x40
jl 0x529705
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x40], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
and r8, 0xffffffffffffffc0
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x10], r8
mov qword [rsp + 0x18], rdi
call sym.crypto_md5.block.abi0
xorps xmm15, xmm15
mov r14, qword [0x006fffd0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
mov rdx, rax
sub rax, rcx
sar rax, 0x3f
mov r8, qword [rsp + 0x30]
and rax, r8
and rax, 0xffffffffffffffc0
mov rcx, qword [rsp + 0x40]
lea rbx, [rcx + rax]
sub r8, rdx
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
test r8, r8
je 0x529748
lea rdx, [rax + 0x10]
cmp r8, 0x40
mov esi, 0x40
cmovl rsi, r8
nop dword [rax + rax]
cmp rbx, rdx
je 0x529744
mov qword [rsp + 0x38], rsi
mov rax, rdx
mov rcx, rsi
call sym.runtime.memmove
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x38]
mov qword [rax + 0x50], rsi
mov rax, rcx
xor ebx, ebx
xor ecx, ecx
add rsp, 0x48
pop rbp
ret
mov rax, rsi
call sym.runtime.panicSliceB
mov rax, rdx
mov ecx, 0x40
call sym.runtime.panicSliceB
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
nop
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp sym.crypto_md5._digest_.Write
Function at 0x1800029a0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
test edx, edx
je 0x180002b0b
cmp edx, 1
je 0x1800029bb
mov eax, 1
add rsp, 0x28
ret
lea rcx, str.OpenGL32.dll
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
jne 0x1800029df
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rdx, [0x1800095c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1800095d0]
mov rcx, rbx
mov qword [0x18000c7c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.wglSwapBuffers
mov rcx, rbx
mov qword [0x18000c7a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1800095f0]
mov rcx, rbx
mov qword [0x18000c7b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.glScalef
mov rcx, rbx
mov qword [0x18000c7c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.glTranslatef
mov rcx, rbx
mov qword [0x18000c7a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18000c790], rax
call fcn.180005ea0
call fcn.180005100
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180005630
lea rdx, [0x1800028d0]
lea rcx, [0x18000c7c0]
call fcn.1800046e0
lea rdx, [0x180002930]
lea rcx, [0x18000c7a0]
call fcn.1800046e0
lea rdx, [0x1800024d0]
lea rcx, [0x18000c7c8]
call fcn.1800046e0
lea rdx, [0x180002440]
lea rcx, [0x18000c7b8]
call fcn.1800046e0
lea rdx, [0x180002750]
lea rcx, [0x18000c790]
call fcn.1800046e0
lea rdx, [0x180002820]
lea rcx, [0x18000c7a8]
call fcn.1800046e0
call fcn.180005180
mov rbx, qword [rsp + 0x20]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret
call fcn.180005100
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180005630
lea rdx, [0x1800028d0]
lea rcx, [0x18000c7c0]
call fcn.180004d60
lea rdx, [0x180002930]
lea rcx, [0x18000c7a0]
call fcn.180004d60
lea rdx, [0x1800024d0]
lea rcx, [0x18000c7c8]
call fcn.180004d60
lea rdx, [0x180002440]
lea rcx, [0x18000c7b8]
call fcn.180004d60
lea rdx, [0x180002750]
lea rcx, [0x18000c790]
call fcn.180004d60
lea rdx, [0x180002820]
lea rcx, [0x18000c7a8]
call fcn.180004d60
call fcn.180005180
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x180003060
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180003280
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180003167
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800030c4
mov rax, qword [0x18000c008]
cmp qword [rsp + 0x20], rax
ja 0x1800030c4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003086
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800030f3
jmp 0x180003167
cmp dword [rsp + 0x50], 0x10000
jne 0x18000314a
cmp qword [rsp + 0x48], 0x10000
jb 0x18000314a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180003138
mov rax, qword [rsp + 0x28]
jmp 0x180003169
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003162
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180003280
mov qword [rsp + 0x20], rax
jmp 0x180003086
xor eax, eax
add rsp, 0x68
ret

Function at 0x180003170
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1800032c0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180003273
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800031cb
mov rax, qword [0x18000c008]
cmp qword [rsp + 0x20], rax
ja 0x1800031cb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18000318d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800031fa
jmp 0x180003273
cmp dword [rsp + 0x50], 0x10000
jne 0x180003251
cmp qword [rsp + 0x48], 0x10000
jb 0x180003251
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000323f
mov rax, qword [rsp + 0x28]
jmp 0x180003275
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18000326e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800032c0
mov qword [rsp + 0x20], rax
jmp 0x18000318d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180003310
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800038a0
mov qword [rsp + 0x28], 0
cmp qword [0x18000c168], 0
jne 0x180003358
cmp qword [0x18000c160], 0
je 0x180003358
mov rax, qword [0x18000c160]
mov qword [0x18000c168], rax
cmp qword [0x18000c168], 0
je 0x1800033fe
mov rax, qword [0x18000c168]
cmp qword [rax + 0x10], 0
je 0x1800033fe
mov rax, qword [0x18000c168]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800033fe
mov rax, qword [0x18000c168]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800033fe
mov rax, qword [0x18000c168]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800033c4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800033cb
xor eax, eax
jmp 0x180003579
mov rax, qword [0x18000c168]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180003579
mov rax, qword [0x18000c160]
mov qword [0x18000c168], rax
jmp 0x180003420
mov rax, qword [0x18000c168]
mov rax, qword [rax + 8]
mov qword [0x18000c168], rax
cmp qword [0x18000c168], 0
je 0x18000346d
cmp qword [0x18000c168], 0
je 0x18000346b
mov rax, qword [0x18000c168]
cmp qword [rax + 0x10], 0
je 0x18000346b
mov rax, qword [0x18000c168]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000346b
mov rax, qword [0x18000c168]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000346b
jmp 0x18000339c
jmp 0x18000340e
mov rcx, qword [rsp + 0x60]
call fcn.180005800
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180003580
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180003577
mov rax, qword [rsp + 0x48]
mov qword [0x18000c168], rax
mov rax, qword [0x18000c168]
mov dword [rax], 0x52727464
mov rax, qword [0x18000c168]
mov qword [rax + 0x10], 0
mov rax, qword [0x18000c168]
mov rcx, qword [0x18000c160]
mov qword [rax + 8], rcx
mov rax, qword [0x18000c168]
mov qword [0x18000c160], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18000c168]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180003528
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180003562
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18000351e
mov rax, qword [0x18000c168]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18000339c
xor eax, eax
add rsp, 0x58
ret
Function at 0x1800059f0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memset
jmp 0x180005a38
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x180005a58
jmp 0x180005af5
cmp dword [rsp + 0x68], 0x1000
jne 0x180005a7d
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x180005a7d
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x180005a7f
jmp 0x180005a23
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180005ab5
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x180005ab5
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x180005aba
jmp 0x180005a23
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x180005a23
mov rax, qword [rsp + 0x20]
jmp 0x180005af7
xor eax, eax
add rsp, 0x88
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005460]
mov dword [rax], 1
mov rax, qword [0x140005470]
mov dword [rax], 1
mov rax, qword [0x140005480]
mov dword [rax], 1
mov rax, qword [0x140005420]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001e70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002b42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x140002bda
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x140002bbe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002bb2
cmp qword [rbp - 0x10], 0
je 0x140002bb2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002b78
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002bdb
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140008b30
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140039040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
mov dword [rsp + 0x20], 1
mov rsi, qword [rdx]
mov r12, qword [rdx + 8]
mov qword [rsp + 0x28], r12
cmp rsi, r12
je 0x140008d67
movabs rdx, 0x2aaaaaaaaaaaaaab
mov ebp, 0x5a4d
cmp qword [rsi], 5
jne 0x140008d5a
mov rcx, qword [rbx + 8]
sub rcx, qword [rbx]
mov rax, rdx
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x140008d67
mov edi, r13d
cmp qword [rsi + 0x18], rdi
jbe 0x140008d19
mov r12d, 0x4550
nop
mov r15d, edi
shl r15d, 0xc
mov r14, qword [rsi + 8]
add r14, r15
mov rcx, qword [0x14003af30]
mov rax, qword [rcx]
mov r9d, 2
lea r8, [rsp + 0x50]
mov rdx, r14
call qword [rax + 0x18]
test eax, eax
jne 0x140008c18
mov word [rsp + 0x50], r13w
jmp 0x140008d06
cmp word [rsp + 0x50], bp
jne 0x140008d06
mov rcx, qword [0x14003af30]
mov rax, qword [rcx]
lea rdx, [r14 + 0x3c]
mov r9d, 4
lea r8, [rsp + 0x58]
call qword [rax + 0x18]
test eax, eax
jne 0x140008c4c
mov eax, r13d
mov dword [rsp + 0x58], eax
jmp 0x140008c50
mov eax, dword [rsp + 0x58]
mov ebp, eax
add rbp, r14
mov rcx, qword [0x14003af30]
mov rax, qword [rcx]
mov r9d, 2
lea r8, [rsp + 0x54]
mov rdx, rbp
call qword [rax + 0x18]
test eax, eax
jne 0x140008c7f
mov word [rsp + 0x54], r13w
jmp 0x140008d01
cmp word [rsp + 0x54], r12w
jne 0x140008d01
mov rcx, qword [rsi + 0x10]
add rcx, r15
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsi + 8]
add rcx, r15
mov qword [rsp + 0x38], rcx
mov rcx, qword [0x14003af30]
mov rax, qword [rcx]
lea rdx, [rbp + 0x50]
mov r9d, 4
lea r8, [rsp + 0x5c]
call qword [rax + 0x18]
test eax, eax
jne 0x140008cc8
mov eax, r13d
mov dword [rsp + 0x5c], eax
jmp 0x140008ccc
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x40], eax
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140008cf4
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rsp + 0x40]
movsd qword [rdx + 0x10], xmm1
add qword [rbx + 8], 0x18
jmp 0x140008d01
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.140008e20
mov ebp, 0x5a4d
inc edi
mov eax, edi
cmp rax, qword [rsi + 0x18]
jb 0x140008be0
mov r12, qword [rsp + 0x28]
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
mov rcx, r9
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 4
movabs rdx, 0x2aaaaaaaaaaaaaab
jae 0x140008d5a
cmp r8, r9
je 0x140008d5a
mov qword [rbx + 8], r8
add rsi, 0x28
cmp rsi, r12
jne 0x140008ba0
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000ede0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000fbb4
Capabilities:
Parse pe header

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

Function at 0x140017fe0
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.140028460
sub rsp, rax
mov rax, qword [0x140039040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001c554
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001802f
mov rax, rbp
jmp 0x140018137
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 + 0x3a7e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001e9c8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3a7e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140018133
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 0x140018133
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001e9c8
test rax, rax
js 0x140018133
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140018133
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140018125
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140018125
cmp byte [rcx], 0xd
jne 0x14001810b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001811a
cmp byte [rcx + 1], 0xa
jne 0x14001811a
inc rcx
jmp 0x14001811a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x393a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400180ed
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140018137
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000ede0
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 0x140018b98
Capabilities:
Parse pe header

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

Function at 0x140018d9c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140018b98