joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004c654
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x14008c948]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edi, dword [rcx + 0x18]
mov ebp, 0x38
mov r14, qword [rcx + 0x18]
and edi, 0x3f
shl r14, 3
mov rsi, rdx
mov rbx, rcx
mov byte [rdi + rcx + 0x20], 0x80
inc edi
cmp edi, ebp
je 0x14004c6e2
jbe 0x14004c6cd
lea edx, [rbp + 8]
cmp edi, edx
jae 0x14004c6b7
sub edx, edi
mov ecx, edi
add rcx, 0x20
mov r8d, edx
add rcx, rbx
xor edx, edx
call fcn.14005f480
xor edi, edi
lea r8, [rbx + 0x20]
mov r9b, 1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14004b470
sub ebp, edi
mov ecx, edi
add rcx, 0x20
mov r8d, ebp
add rcx, rbx
xor edx, edx
call fcn.14005f480
mov rax, r14
lea r8, [rbx + 0x20]
shr rax, 0x20
lea rdx, [rsp + 0x20]
bswap eax
bswap r14d
mov r9b, 1
mov dword [rbx + 0x58], eax
mov rcx, rbx
mov dword [rbx + 0x5c], r14d
call fcn.14004b470
mov rdx, rbx
mov ecx, 5
sub rdx, rsi
mov eax, dword [rdx + rsi]
mov dword [rsi], eax
lea rsi, [rsi + 4]
sub rcx, 1
jne 0x14004c714
and qword [rbx + 0x18], rcx
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14005cdf0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14004c76c
Capabilities:
Hash data using sha1

Disassembly:
and qword [rcx + 0x18], 0
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x10], 0xc3d2e1f0
ret
Function at 0x14004c970
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r8d, dword [rcx + 0x20]
mov edi, 0x38
mov rsi, qword [rcx + 0x20]
and r8d, 0x3f
shl rsi, 3
mov r14, rdx
mov rbx, rcx
mov byte [r8 + rcx + 0x28], 0x80
inc r8d
cmp r8d, edi
je 0x14004c9f1
jbe 0x14004c9da
lea edx, [rdi + 8]
cmp r8d, edx
jae 0x14004c9cf
mov ecx, r8d
sub edx, r8d
add rcx, 0x28
mov r8d, edx
add rcx, rbx
xor edx, edx
call fcn.14005f480
mov rcx, rbx
call fcn.14004cb74
xor r8d, r8d
mov ecx, r8d
sub edi, r8d
add rcx, 0x28
mov r8d, edi
add rcx, rbx
xor edx, edx
call fcn.14005f480
mov rax, rsi
mov rcx, rbx
shr rax, 0x20
bswap eax
bswap esi
mov dword [rbx + 0x60], eax
mov dword [rbx + 0x64], esi
call fcn.14004cb74
mov eax, dword [rbx]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
bswap eax
mov dword [r14], eax
mov eax, dword [rbx + 4]
bswap eax
mov dword [r14 + 4], eax
mov eax, dword [rbx + 8]
bswap eax
mov dword [r14 + 8], eax
mov eax, dword [rbx + 0xc]
bswap eax
mov dword [r14 + 0xc], eax
mov eax, dword [rbx + 0x10]
bswap eax
mov dword [r14 + 0x10], eax
mov eax, dword [rbx + 0x14]
bswap eax
mov dword [r14 + 0x14], eax
mov eax, dword [rbx + 0x18]
bswap eax
mov dword [r14 + 0x18], eax
mov eax, dword [rbx + 0x1c]
bswap eax
mov dword [r14 + 0x1c], eax
and qword [rbx + 0x20], 0
mov dword [rbx], 0x6a09e667
mov dword [rbx + 4], 0xbb67ae85
mov dword [rbx + 8], 0x3c6ef372
mov dword [rbx + 0xc], 0xa54ff53a
mov dword [rbx + 0x10], 0x510e527f
mov dword [rbx + 0x14], 0x9b05688c
mov dword [rbx + 0x18], 0x1f83d9ab
mov dword [rbx + 0x1c], 0x5be0cd19
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r14
ret

Function at 0x14004caa4
Capabilities:
Hash data using sha256

Disassembly:
and qword [rcx + 0x20], 0
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
ret
Function at 0x14004cb74
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov rax, qword [0x14008c948]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor edi, edi
mov qword [rsp + 0x20], rcx
mov r9, rcx
lea r8, [rsp + 0x30]
mov ecx, edi
lea eax, [rcx*4]
inc ecx
mov eax, dword [rax + r9 + 0x28]
bswap eax
mov dword [r8], eax
lea r8, [r8 + 4]
cmp ecx, 0x10
jb 0x14004cbb6
lea r11, [rsp + 0x70]
mov ebx, 0x30
lea r10, [rsp + 0x68]
mov ecx, dword [r10 - 0x34]
mov r8d, ecx
mov edx, dword [r10]
mov eax, ecx
rol r8d, 0xe
lea r10, [r10 + 4]
shr ecx, 3
ror eax, 7
xor r8d, eax
mov eax, edx
xor r8d, ecx
rol eax, 0xd
mov ecx, edx
shr edx, 0xa
rol ecx, 0xf
xor ecx, eax
xor ecx, edx
add r8d, ecx
add r8d, dword [r10 - 0x3c]
add r8d, dword [r10 - 0x18]
mov dword [r11], r8d
lea r11, [r11 + 4]
sub rbx, 1
jne 0x14004cbe1
movups xmm0, xmmword [r9]
lea r12d, [rbx + 0x40]
movups xmm1, xmmword [r9 + 0x10]
movups xmmword [rsp], xmm0
mov ebx, dword [rsp + 8]
mov esi, dword [rsp + 4]
mov r11d, dword [rsp]
mov r9d, dword [rsp + 0xc]
movups xmmword [rsp + 0x10], xmm1
mov r13d, dword [rsp + 0x1c]
mov r14d, dword [rsp + 0x18]
mov r15d, dword [rsp + 0x14]
mov r10d, dword [rsp + 0x10]
mov eax, r10d
mov r8d, r10d
rol eax, 7
mov ecx, r10d
ror r8d, 0xb
not ecx
xor r8d, eax
and ecx, r14d
mov eax, r10d
mov edx, r11d
ror eax, 6
xor r8d, eax
ror edx, 0xd
mov eax, r15d
and eax, r10d
xor ecx, eax
lea rax, [0x1400798d0]
add r8d, ecx
mov ecx, esi
add r8d, dword [rdi + rax]
xor ecx, ebx
add r8d, dword [rsp + rdi + 0x30]
lea rdi, [rdi + 4]
add r8d, r13d
and ecx, r11d
mov eax, r11d
mov r13d, r14d
rol eax, 0xa
mov r14d, r15d
xor edx, eax
mov r15d, r10d
mov eax, r11d
lea r10d, [r9 + r8]
ror eax, 2
mov r9d, ebx
xor edx, eax
mov eax, esi
and eax, ebx
mov ebx, esi
xor ecx, eax
mov esi, r11d
add edx, ecx
lea r11d, [rdx + r8]
sub r12, 1
jne 0x14004cc65
mov dword [rsp + 0xc], r9d
lea rcx, [rsp]
mov r9, qword [rsp + 0x20]
lea edx, [r12 + 8]
sub rcx, r9
mov dword [rsp + 0x10], r10d
mov dword [rsp], r11d
mov dword [rsp + 8], ebx
mov dword [rsp + 4], esi
mov dword [rsp + 0x18], r14d
mov dword [rsp + 0x14], r15d
mov dword [rsp + 0x1c], r13d
mov eax, dword [rcx + r9]
add dword [r9], eax
lea r9, [r9 + 4]
sub rdx, 1
jne 0x14004cd26
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14005cdf0
lea r11, [rsp + 0x140]
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 0x14004d5ac
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x14008c948]
xor rax, rsp
mov qword [rsp + 0x78], rax
movzx ebx, word [0x1400a40e0]
xor r14d, r14d
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
test bx, bx
jne 0x14004d626
lea r9d, [r14 + 0xa]
mov ecx, 0x400
lea r8, [rsp + 0x20]
lea edx, [r14 + 0xf]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx ebx, word [0x1400a40e0]
test eax, eax
cmovg bx, word [rsp + 0x20]
mov word [0x1400a40e0], bx
test bx, bx
jne 0x14004d626
lea ebx, [r14 + 0x20]
mov word [0x1400a40e0], bx
mov r8d, 0x1e
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.14004d6f4
mov r9d, r14d
lea rax, [rsp + 0x38]
mov r8d, r14d
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x14004d648
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rcx, rax
cmp word [rsp + 0x38], r14w
je 0x14004d6c6
mov r10d, 3
sub r10d, ecx
lea r11d, [r8 + 1]
mov eax, r11d
cmp rax, rbp
jae 0x14004d6c6
test r9d, r9d
je 0x14004d6a9
lea ecx, [r10 + r9]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea eax, [rdx + rdx*2]
cmp ecx, eax
jne 0x14004d6a9
mov eax, r8d
mov r8d, r11d
mov word [rdi + rax*2], bx
mov eax, r9d
inc r9d
mov ecx, r8d
inc r8d
movzx eax, word [rsp + rax*2 + 0x38]
mov word [rdi + rcx*2], ax
cmp word [rsp + r9*2 + 0x38], r14w
jne 0x14004d67a
mov eax, r8d
mov word [rdi + rax*2], r14w
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005cdf0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14004e194
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14008c948]
xor rax, rsp
mov qword [rbp - 8], rax
and dword [rbp - 0x10], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
and dword [rsp + 0x48], 0
mov r9d, 0x220
and dword [rsp + 0x40], 0
mov r8d, 0x20
and dword [rsp + 0x38], 0
mov dl, 2
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov word [rbp - 0xc], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp - 0x20], eax
test eax, eax
je 0x14004e224
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp - 0x20], ecx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp - 0x20]
test eax, eax
setne al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14005cdf0
add rsp, 0x80
pop rbp
ret

Function at 0x14004e23c
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x1030
call fcn.14005cd90
sub rsp, rax
mov rax, qword [0x14008c948]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rcx
mov edx, 0x800
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14004e278
xor eax, eax
jmp 0x14004e29b
mov r9d, 0x800
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140037a5c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14005cdf0
add rsp, 0x1030
pop rbx
ret

Function at 0x14004e3b4
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14008c948]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14004e42d
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
and qword [rsp + 0x28], 0
lea r8, [rsp + 0x38]
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp ebx, 1
jne 0x14004e437
lea ecx, [rbx + 4]
jmp 0x14004e460
cmp ebx, 3
jne 0x14004e445
xor r8d, r8d
xor edx, edx
xor ecx, ecx
jmp 0x14004e451
cmp ebx, 2
jne 0x14004e458
xor r8d, r8d
mov cl, 1
xor edx, edx
call sub.POWRPROF.dll_SetSuspendState
jmp 0x14004e46b
cmp ebx, 4
jne 0x14004e46b
lea ecx, [rbx + 2]
mov edx, 0x80000000
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14005cdf0
add rsp, 0x50
pop rbx
ret
Function at 0x14004e7e4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx], edi
jbe 0x14004e886
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14004e990]
and dword [rsp + 0x20], 0
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x14004e85c
lea rdx, str.CreateThread_failed
lea rcx, [0x14009cb78]
call fcn.14001e0a8
lea rcx, [0x14009cb78]
call fcn.14001e3ec
lea edx, [rsi + 2]
lea rcx, [0x14009cb78]
call fcn.14001e07c
mov qword [rbx + rdi*8 + 8], rsi
inc dword [rbx + 0x208]
mov edx, dword [0x1400a8110]
test edx, edx
je 0x14004e87c
mov rcx, qword [rbx + rdi*8 + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc edi
cmp edi, dword [rbx]
jb 0x14004e800
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14005dbdc
Capabilities:
Parse pe header

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

Function at 0x140065f48
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 0x140065d1c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140065d1c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140065d1c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140065d1c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140065d1c
cmp dword [rcx + 0x84], 0xe
jbe 0x140065d1c
cmp dword [rcx + 0xf8], esi
je 0x140065d1c
mov ecx, r14d
call fcn.140065e64
mov ecx, 2
call fcn.140069e38
nop
cmp byte [0x1400a8b20], 0
jne 0x140065de6
mov r15d, 1
mov eax, r15d
xchg dword [0x1400a8b10], eax
test ebx, ebx
jne 0x140065d8f
mov rdi, qword [0x14008c948]
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 [0x1400a8b18]
cmp rcx, rax
je 0x140065d86
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140020820]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400a8c88]
jmp 0x140065d9b
cmp ebx, r15d
jne 0x140065da1
lea rcx, [0x1400a8ca0]
call fcn.1400679d0
nop
test ebx, ebx
jne 0x140065db8
lea rdx, [0x1400746a0]
lea rcx, [0x140074680]
call fcn.140067cd0
lea rdx, [0x1400746b0]
lea rcx, [0x1400746a8]
call fcn.140067cd0
movzx eax, byte [0x1400a8b20]
test esi, esi
cmove eax, r15d
mov byte [0x1400a8b20], al
jmp 0x140065de6
mov ecx, 2
call fcn.140069e98
test esi, esi
jne 0x140065dfd
mov ecx, r14d
call fcn.140065e18
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 0x140065cac
Function at 0x140018660
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x140018804
cmp r9, 4
jb 0x1400186aa
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x140018690
xor r11d, r11d
test r9, r9
je 0x140018804
cmp r9, 8
jb 0x1400187dd
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x1400186dc
cmp rdx, r8
jae 0x1400187dd
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x1400186f1
cmp rdx, r10
jae 0x1400187dd
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x140018797
mov rdi, r9
mov qword [rsp + 0x18], rsi
and edi, 0x3f
mov rsi, r9
sub rsi, rdi
mov rdx, r10
lea rax, [r8 + 0x10]
sub rdx, r8
mov rbx, rcx
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x140018730
mov rsi, qword [rsp + 0x18]
cmp rdi, 8
jb 0x1400187cf
mov rdx, r9
and rdx, 0xfffffffffffffff8
mov rbx, r10
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax + rdi - 8], xmm1
cmp r11, rdx
jb 0x1400187b0
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x140018804
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x1400187f0
add rsp, 8
ret
Function at 0x14001f574
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14001f5a2
xor eax, eax
jmp 0x14001f688
cmp qword [rcx + 0x68], 0
je 0x14001f5b3
call fcn.14001d9e0
jmp 0x14001f688
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001f5ca
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001f5cc
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001f5fe
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14004a1f0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14001f682
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14001f635
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14001f65e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140035b18
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14001f682
cmp rsi, rbx
ja 0x14001f63c
test rsi, rsi
je 0x14001f682
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140035b18
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400211cc
Capabilities:
Parse pe header

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

Function at 0x140038754
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140038550
Function at 0x14003ffa8
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.140020bb0
sub rsp, rax
mov rax, qword [0x14006b180]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14003d8a8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003fff7
mov rax, rbp
jmp 0x1400400ff
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 + 0x6fdb0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400410c8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x6fdb0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400400fb
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 0x1400400fb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400410c8
test rax, rax
js 0x1400400fb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400400fb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400400ed
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400400ed
cmp byte [rcx], 0xd
jne 0x1400400d3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400400e2
cmp byte [rcx + 1], 0xa
jne 0x1400400e2
inc rcx
jmp 0x1400400e2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x6b5d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400400b5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400400ff
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400202c0
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 0x140040320
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140040336
mov al, 1
jmp 0x140040396
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140040347
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140040394
mov ecx, dword [rcx + 0x18]
nop
call fcn.140043894
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140040394
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140040394
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140040394
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140040396
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140040468
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14006fdb0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400404bf
cmp word [rdx], r13w
jne 0x1400404bf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400404c4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400405e9
mov r11d, SafeArrayDestroy
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004060a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400404fd
mov rdx, r9
mov word [rbx], cx
jmp 0x140040524
cmp r9, r8
jae 0x140040534
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400404de
jmp 0x1400405e9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400405de
cmp dword [rsp + 0x80], esi
je 0x1400405de
lea r8, [0x14006fdb0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400405b6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140040586
mov word [rbx], r13w
jmp 0x1400405e6
mov ecx, SafeArrayDestroy
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140040593
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400405e6
cmp word [rsp + 0x70], r13w
jne 0x1400405c3
cmp rbx, r14
je 0x140040580
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400410d0
cmp word [rsp + 0x70], r13w
je 0x1400405e9
mov ecx, SafeArrayDestroy
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14006fdb0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400405e3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400405e9