joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004be00
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov edi, ecx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea eax, [rdi - 7]
mov ebp, 5
cmp eax, 0xfffffffe
jae 0x14004be5a
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400300d0
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, r8
mov r15, rdx
mov r12, qword [rsp + 0x130]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
xor r13d, r13d
mov qword [rsp + 0xb0], r13
mov dword [rsp + 0x50], 0x68
cmp qword [r9 + 0x18], 8
jb 0x14004beaf
mov r9, qword [r9]
mov rcx, r9
call qword [sym.imp.mozglue.dll__wcsdup]
mov rsi, rax
mov rax, qword [r12 + 0x10]
cmp qword [r12 + 0x18], 8
jb 0x14004becc
mov r12, qword [r12]
mov rbx, qword [rsp + 0x138]
test rax, rax
cmove r12, rax
cmp qword [r14 + 0x18], 8
jb 0x14004bee5
mov r14, qword [r14]
mov r15, qword [r15]
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
mov rcx, r14
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, 5
test eax, eax
je 0x14004bfbb
cmp edi, 6
mov r12d, 0x1fffff
mov r13d, 0x101c01
cmove r13d, r12d
mov r14, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov rdx, r14
mov r8, r15
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14004bfd2
cmp edi, 6
mov ebp, 0x100c43
cmove ebp, r12d
mov rdi, qword [rbx + 8]
add rbx, 8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov rdx, rdi
mov r8, r15
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea ebp, [rcx + rcx*4]
test rsi, rsi
je 0x14004be34
mov rcx, rsi
call qword [sym.imp.mozglue.dll_free]
jmp 0x14004be34
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14004bfbb
Function at 0x14004bfe0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, r8
mov r8, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0x90]
mov edx, dword [rsp + 0x80]
mov r10, qword [rsp + 0x88]
mov qword [rsi], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r9
xor r14d, r14d
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x14004c078
mov rbx, rax
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x30], 3
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [rcx + rcx*4]
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x140052440
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14000cf60
test al, al
je 0x140052462
mov rcx, qword [rsi]
xor edx, edx
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x20
pop rsi
ret

Function at 0x140053da0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov eax, dword [0x140064d74]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140053e43
mov r14, qword [rsi + 0x10]
test r14, r14
je 0x140053e1f
mov r15, qword [rsi + 8]
shl r14, 4
add r14, r15
mov edi, dword [0x140064d70]
lea rbx, [rsp + 0x20]
mov r12, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [r15]
mov rcx, qword [r15 + 8]
mov rdx, rdi
mov r9, rbx
call r12
add r15, 0x10
cmp r15, r14
jne 0x140053e06
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400300d0
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x140064d74]
call fcn.14002ef64
cmp dword [0x140064d74], 0xffffffff
jne 0x140053de0
lea rdi, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x140064d70], eax
lea rcx, [0x140064d74]
call fcn.14002ef04
jmp 0x140053de0
Function at 0x140011366
Capabilities:
Terminate process

Disassembly:
jmp 0x140016b30
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001142e
Capabilities:
Get system information on windows

Disassembly:
jmp 0x140015170
push rbp
push rsi
push rdi
sub rsp, 0x280
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x68
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140023018]
xor rax, rbp
mov qword [rbp + 0x250], rax
lea rcx, [0x1400290f4]
call fcn.1400115e6
mov edx, 0x20
lea rcx, [rbp + 8]
call fcn.14001106e
mov byte [rbp + 0x234], 0xb8
mov byte [rbp + 0x235], 5
mov byte [rbp + 0x236], 0
mov byte [rbp + 0x237], 0
mov byte [rbp + 0x238], 0
mov byte [rbp + 0x239], 0xc3
lea rcx, [rbp + 0x1b4]
call fcn.1400112ee
mov qword [rbp + 0x248], rax
lea rcx, [rbp + 0x23a]
mov r8, rcx
lea rdx, [rbp + 0x234]
lea rcx, [rbp + 0x1d8]
call fcn.1400112a8
lea rcx, [rbp + 0x210]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rbp + 0x248]
mov r8, rax
lea rdx, [rbp + 0x210]
lea rcx, [rbp + 8]
call fcn.1400114ba
nop
lea rcx, [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp + 0x4c]
mov dword [rbp + 0x94], eax
mov eax, dword [rbp + 0x94]
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0xb8], rax
lea rcx, [rbp + 8]
call fcn.140011299
mov qword [rbp + 0x248], rax
lea rcx, [rbp + 8]
call fcn.14001100f
mov rcx, qword [rbp + 0x248]
mov r8, rcx
mov rdx, rax
mov rcx, qword [rbp + 0xb8]
call fcn.140011311
xor edx, edx
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x14001f2e0]
mov rcx, rax
call fcn.1400110be
nop
lea rcx, [rbp + 8]
call fcn.1400111ea
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ecd0]
call fcn.140011505
mov eax, edi
mov rcx, qword [rbp + 0x250]
xor rcx, rbp
call fcn.14001130c
lea rsp, [rbp + 0x260]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011442
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017e80
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017ea0
xor al, al
jmp 0x140017f21
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017eb3
xor al, al
jmp 0x140017f21
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140017edd
xor al, al
jmp 0x140017f21
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017ef1
xor al, al
jmp 0x140017f21
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017f03
xor al, al
jmp 0x140017f21
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140017f1f
xor al, al
jmp 0x140017f21
mov al, 1
add rsp, 0x38
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x1401bcfe0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1401bcfed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1401bcffd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1401bcfe5
lea eax, [rcx + 1]
jmp 0x1401bd00b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1401bd01e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1401bd004
sub eax, 3
jb 0x1401bd03e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1401bd08d
sar eax, 1
movsxd rbp, eax
jb 0x1401bd074
jmp 0x1401bd04c
add ebx, ebx
jne 0x1401bd04a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401bd074
inc ecx
add ebx, ebx
jne 0x1401bd05a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401bd074
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1401bd06d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1401bd05c
add ecx, 2
jmp 0x1401bd079
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1401bcfa2
jmp 0x1401bcfed
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x5000
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1401bd0d9
cmp rsi, rcx
jae 0x1401bd0e1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401bd0c0
cmp al, 0x8f
ja 0x1401bd0c0
cmp byte [rsi - 2], 0xf
je 0x1401bd0c6
sub al, 0xe8
cmp al, 1
ja 0x1401bd0aa
cmp rsi, rcx
jae 0x1401bd0e1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1401bd0b0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1401bd0e1
lodsb al, byte [rsi]
jmp 0x1401bd0c0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1b9000]
mov eax, dword [rdi]
or eax, eax
je 0x1401bd14a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1becac]
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 0x1401bd0ee
jns 0x1401bd123
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1401bd12d
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 0x1401bd144
mov qword [rbx], rax
add rbx, 8
jmp 0x1401bd10e
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 0x1401bd184
cmp al, 0xef
ja 0x1401bd176
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1401bd156
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1401bd165
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 + 0x23f]
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 0x1401bd1d8
sub rsp, 0xffffffffffffff80
jmp 0x1400051c0
Function at 0x140005c10
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov word [rcx], 0x14
lea rax, [rcx + 0x44]
mov dword [rcx + 4], 0x61707865
mov r11, rcx
mov dword [rcx + 8], 0x3320646e
mov dword [rcx + 0xc], 0x79622d32
mov dword [rcx + 0x10], 0x6b206574
movzx edx, byte [0x14001fa02]
movzx ecx, byte [0x14001fa01]
movzx r10d, byte [0x14001fa03]
shl r10d, 8
or r10d, edx
shl r10d, 8
or r10d, ecx
movzx ecx, byte [0x14001fa00]
shl r10d, 8
or r10d, ecx
mov dword [r11 + 0x14], r10d
movzx ecx, byte [0x14001fa06]
movzx edx, byte [0x14001fa07]
shl edx, 8
or edx, ecx
movzx ecx, byte [0x14001fa05]
shl edx, 8
or edx, ecx
movzx ecx, byte [0x14001fa04]
shl edx, 8
or edx, ecx
mov dword [r11 + 0x18], edx
movzx ecx, byte [0x14001fa0a]
movzx edx, byte [0x14001fa0b]
shl edx, 8
or edx, ecx
movzx ecx, byte [0x14001fa09]
shl edx, 8
or edx, ecx
movzx ecx, byte [0x14001fa08]
shl edx, 8
or edx, ecx
mov dword [r11 + 0x1c], edx
movzx ecx, byte [0x14001fa0e]
movzx edx, byte [0x14001fa0f]
shl edx, 8
or edx, ecx
movzx ecx, byte [0x14001fa0d]
shl edx, 8
or edx, ecx
movzx ecx, byte [0x14001fa0c]
shl edx, 8
or edx, ecx
mov dword [r11 + 0x20], edx
movzx ecx, byte [0x14001fa12]
movzx edx, byte [0x14001fa13]
shl edx, 8
or edx, ecx
movzx ecx, byte [0x14001fa11]
shl edx, 8
or edx, ecx
movzx ecx, byte [0x14001fa10]
shl edx, 8
or edx, ecx
mov dword [r11 + 0x24], edx
movzx ecx, byte [0x14001fa16]
movzx edx, byte [0x14001fa17]
shl edx, 8
or edx, ecx
movzx ecx, byte [0x14001fa15]
shl edx, 8
or edx, ecx
movzx ecx, byte [0x14001fa14]
shl edx, 8
or edx, ecx
mov dword [r11 + 0x28], edx
movzx ecx, byte [0x14001fa1a]
movzx edx, byte [0x14001fa1b]
shl edx, 8
or edx, ecx
movzx ecx, byte [0x14001fa19]
shl edx, 8
or edx, ecx
shl edx, 8
movzx ecx, byte [0x14001fa18]
or edx, ecx
mov dword [r11 + 0x2c], edx
movzx edx, byte [0x14001fa1f]
movzx ecx, byte [0x14001fa1e]
shl edx, 8
or edx, ecx
movzx ecx, byte [0x14001fa1d]
shl edx, 8
or edx, ecx
movzx ecx, byte [0x14001fa1c]
shl edx, 8
or edx, ecx
mov ecx, dword [r9]
mov dword [r11 + 0x30], edx
mov dword [r11 + 0x34], ecx
movzx edx, byte [r8 + 3]
movzx ecx, byte [r8 + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [r8 + 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [r8]
shl edx, 8
or edx, ecx
mov dword [r11 + 0x38], edx
movzx edx, byte [r8 + 7]
movzx ecx, byte [r8 + 6]
shl edx, 8
or edx, ecx
movzx ecx, byte [r8 + 5]
shl edx, 8
or edx, ecx
movzx ecx, byte [r8 + 4]
shl edx, 8
or edx, ecx
mov dword [r11 + 0x3c], edx
movzx edx, byte [r8 + 0xb]
movzx ecx, byte [r8 + 0xa]
shl edx, 8
or edx, ecx
movzx ecx, byte [r8 + 9]
shl edx, 8
or edx, ecx
movzx ecx, byte [r8 + 8]
shl edx, 8
or edx, ecx
mov dword [r11 + 0x40], edx
mov edx, 0x10
nop word [rax + rax]
mov ecx, dword [rax - 0x40]
mov dword [rax], ecx
lea rax, [rax + 4]
sub rdx, 1
jne 0x140005e40
ret
Function at 0x140005e50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test edx, edx
je 0x140005f45
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
movzx r12d, byte [rcx]
mov r15, r8
mov esi, edx
mov qword [rsp + 0x40], rbx
mov rdi, rcx
xor r14d, r14d
cmp byte [rdi + 1], 0
jne 0x140005ecf
mov rbx, r12
test r12b, r12b
je 0x140005eaf
dec rbx
shr rbx, 1
inc rbx
nop dword [rax]
lea rcx, [rdi + 4]
call fcn.140005f50
sub rbx, 1
jne 0x140005ea0
lea rax, [rdi + 4]
mov edx, 0x10
nop dword [rax + rax]
mov ecx, dword [rax + 0x40]
add dword [rax], ecx
lea rax, [rax + 4]
sub rdx, 1
jne 0x140005ec0
movzx eax, byte [rdi + 1]
cmp al, 0x40
je 0x140005efe
test esi, esi
je 0x140005efa
movzx eax, byte [rdi + 1]
dec esi
movzx ecx, byte [rax + rdi + 4]
xor byte [r14 + r15], cl
inc r14d
movzx eax, byte [rdi + 1]
inc al
mov byte [rdi + 1], al
cmp al, 0x40
jne 0x140005ed7
cmp al, 0x40
jne 0x140005f1f
mov byte [rdi + 1], 0
lea rcx, [rdi + 4]
inc dword [rdi + 0x74]
mov edx, 0x10
nop
mov eax, dword [rcx + 0x40]
mov dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x140005f10
test esi, esi
jne 0x140005e85
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14000b784
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000b5b0
Function at 0x1800030c0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18000311d
lea rbx, [0x180037c10]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180003104
cmp r10, 2
jb 0x180003104
cmp byte [r9], r8b
jne 0x180003104
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1800030e0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18000315f
lea rbx, [0x180037c10]
cmp r8b, 0x23
jne 0x180003143
cmp byte [r9], r8b
jne 0x180003143
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180003130
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180003340
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18000335a
mov qword [r8], 0
lea rdx, [0x180037a70]
call fcn.180003170
mov rbx, rax
test rax, rax
jne 0x18000337a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180003451
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180003451
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180003451
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180003451
cmp rdi, 0xffffffffffffffff
je 0x180003451
mov rax, qword [0x180045038]
test rax, rax
je 0x1800033ee
inc dword [rax + 0x3bc]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180003451
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x18000343e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180045038]
test rax, rax
je 0x180003433
dec dword [rax + 0x3bc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18000345a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18000344c
mov qword [r14], rdi
mov rax, rsi
jmp 0x18000345c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x180007540
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
xor eax, eax
lea r8, [0x1800379c5]
mov dword [rsp + 0x2c], eax
lea r11, [0x180037c10]
mov qword [rsp + 0x48], rax
mov r10d, 0xffffffff
lea rax, str.Window
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov edx, r10d
mov r9b, 0x57
nop
cmp r9b, 0x23
jne 0x180007593
cmp byte [r8], r9b
jne 0x180007593
cmp byte [r8 + 1], r9b
cmove edx, r10d
movzx ecx, dl
movzx eax, r9b
movzx r9d, byte [r8]
xor rcx, rax
shr edx, 8
inc r8
xor edx, dword [r11 + rcx*4]
test r9b, r9b
jne 0x180007580
mov ecx, dword [rbx + 0x2f14]
lea rax, [0x1800126d0]
mov edi, dword [rbx + 0x2f10]
not edx
mov qword [rsp + 0x30], rax
lea rax, [0x180012780]
mov qword [rsp + 0x38], rax
lea rax, [0x180012860]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], edx
cmp edi, ecx
jne 0x180007695
inc edi
test ecx, ecx
je 0x1800075ff
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x180007604
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x180007695
mov rax, qword [0x180045038]
mov qword [rsp + 0x60], rsi
test rax, rax
je 0x180007628
inc dword [rax + 0x3bc]
movsxd rax, edi
lea rcx, [rax + rax*2]
shl rcx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rbx + 0x2f18]
mov rsi, rax
test rdx, rdx
je 0x180007683
movsxd rcx, dword [rbx + 0x2f10]
lea r8, [rcx + rcx*2]
mov rcx, rax
shl r8, 4
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x2f18]
test rcx, rcx
je 0x18000767d
mov rax, qword [0x180045038]
test rax, rax
je 0x18000767d
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2f18], rsi
mov rsi, qword [rsp + 0x60]
mov dword [rbx + 0x2f14], edi
movsxd rax, dword [rbx + 0x2f10]
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x2f18]
add rcx, rcx
movups xmmword [rax + rcx*8], xmm0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + rcx*8 + 0x10], xmm1
movups xmmword [rax + rcx*8 + 0x20], xmm0
inc dword [rbx + 0x2f10]
mov byte [rbx], 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1800081a0
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x1800081f0
lea r11, [0x180037c10]
nop dword [rax]
cmp r9b, 0x23
jne 0x1800081d3
cmp byte [r8], r9b
jne 0x1800081d3
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1800081c0
mov rcx, qword [0x180045038]
not eax
movsxd rdx, dword [rcx + 0x1a00]
mov r9, qword [rcx + 0x1a08]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x180008251
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x180008249
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18000824c
mov rdx, r8
test rdx, rdx
jne 0x180008220
cmp r9, r10
je 0x180008260
cmp dword [r9], eax
jne 0x180008260
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x180011ec0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x180045038]
cmp byte [rbx + 0x2f30], 0
je 0x180011fac
cmp qword [rbx + 0x2f38], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x2f40]
je 0x180011f94
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x180011f3b
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180013a60
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.180003950
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x2f38]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x2f48]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x180045030]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.180003950
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret