joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d380c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d388a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d3881
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d3881
mov rax, qword [rbp - 8]
jmp 0x2fc4d389f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d3854
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002fe0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x1400c20f4], 0
lea rdi, [0x1400c20f0]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x1400030b8
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x140003010
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x1400030ee
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x1400030d0
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x14000312f
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140003113
cmp byte [r8], r9b
jne 0x140003113
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x140003100
not eax
pop rdi
ret
Function at 0x140019110
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push rbp
push r12
push r14
sub rsp, 0xb0
xor eax, eax
movsxd r12, r9d
mov dword [rsp + 0xe8], eax
mov r14, rdx
mov qword [rsp + 0x60], r12
mov rbp, rcx
test r9d, r9d
jle 0x14001935e
mov qword [r11 + 8], rbx
lea rbx, [r8 + 0x20]
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 - 0x20], r13
xor r13d, r13d
mov qword [r11 - 0x28], r15
movaps xmmword [r11 - 0x38], xmm6
movaps xmmword [r11 - 0x48], xmm7
xorps xmm7, xmm7
movaps xmmword [r11 - 0x58], xmm8
mov r11d, 0x100
movss xmm8, dword [0x1400b1d50]
nop dword [rax + rax]
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x1400191cc
movsxd r10, dword [r14 + 0x24]
mov r9, qword [r14 + 8]
movsx ecx, r11w
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, r11w
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
movd xmm0, eax
jmp 0x1400191eb
movsxd rdx, dword [r14 + 0x1c]
xorps xmm6, xmm8
mov rax, qword [r14 + 8]
movzx ecx, byte [rdx + rax + 0x12]
movzx eax, byte [rdx + rax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
movzx eax, byte [rbp + 0x20]
xor edi, edi
cvtdq2ps xmm0, xmm0
mov byte [rbx], al
movzx eax, byte [rbp + 0x24]
mov byte [rbx + 1], al
divss xmm6, xmm0
cmp dword [rbx - 0x10], edi
jle 0x140019306
mov r15, qword [rsp + 0xf0]
mov rax, r13
mov r12d, dword [rsp + 0xe8]
add r15, 6
shl rax, 4
xor esi, esi
add r15, rax
nop word [rax + rax]
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x140019240
mov edx, dword [rbx - 0x1c]
add edx, edi
jmp 0x140019243
mov edx, dword [rax + rsi]
mov rcx, r14
call fcn.140014430
mov edx, eax
xorps xmm3, xmm3
mov eax, dword [rbp + 0x24]
xorps xmm2, xmm2
mov rcx, r14
cvtsi2ss xmm3, rax
mov eax, dword [rbp + 0x20]
cvtsi2ss xmm2, rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
mulss xmm3, xmm6
mulss xmm2, xmm6
movss dword [rsp + 0x20], xmm7
call fcn.140016d80
movzx eax, word [rbp + 0x20]
inc r12d
sub ax, word [rsp + 0x50]
inc r13
dec ax
inc edi
add ax, word [rbp + 0x1c]
add rsi, 4
add ax, word [rsp + 0x54]
mov word [r15 - 2], ax
movzx eax, word [rbp + 0x24]
sub ax, word [rsp + 0x58]
dec ax
add ax, word [rbp + 0x1c]
add ax, word [rsp + 0x5c]
mov word [r15], ax
add r15, 0x10
cmp edi, dword [rbx - 0x10]
jl 0x140019230
mov dword [rsp + 0xe8], r12d
mov r11d, 0x100
mov r12, qword [rsp + 0x60]
add rbx, 0x28
sub r12, 1
mov qword [rsp + 0x60], r12
jne 0x140019180
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov r13, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
mov eax, dword [rsp + 0xe8]
add rsp, 0xb0
pop r14
pop r12
pop rbp
ret
Function at 0x140023000
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400c1080]
xor rax, rsp
mov qword [rsp + 0x58], rax
movzx ebp, r8b
mov rdi, rdx
mov qword [rsp + 0x28], rdx
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rax
xor r8d, r8d
lea rdx, [0x1400ad786]
mov rcx, rdi
call fcn.140034b20
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x140023148
lea rax, [rsp + 0x38]
mov rbx, 0xffffffffffffffff
mov rsi, rbx
inc rsi
cmp byte [rax + rsi], 0
jne 0x140023092
mov rax, qword [rdi + 0x18]
cmp rsi, rax
ja 0x1400230cb
mov r14, rdi
cmp rax, 0xf
jbe 0x1400230b0
mov r14, qword [rdi]
mov qword [rdi + 0x10], rsi
mov r8, rsi
lea rdx, [rsp + 0x38]
mov rcx, r14
call sub.VCRUNTIME140.dll_memmove
mov byte [r14 + rsi], 0
jmp 0x1400230db
lea r9, [rsp + 0x38]
mov rdx, rsi
mov rcx, rdi
call fcn.140035070
test bpl, bpl
je 0x140023148
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x140023148
lea rax, [rsp + 0x48]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140023100
mov rax, qword [rdi + 0x18]
cmp rbx, rax
ja 0x140023138
mov rsi, rdi
cmp rax, 0xf
jbe 0x14002311e
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rbx
mov r8, rbx
lea rdx, [rsp + 0x48]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], 0
jmp 0x140023148
lea r9, [rsp + 0x48]
mov rdx, rbx
mov rcx, rdi
call fcn.140035070
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14009ab70
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140025c20
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x1400c1080]
xor rax, rsp
mov qword [rsp + 0x2a8], rax
mov qword [rsp + 0x38], rsp
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140025db5
lea rdx, [0x1400b1360]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140025db5
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x140025db5
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140025db5
mov byte [rsp + 0x30], 0
xor esi, esi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x2a0], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x34], eax
mov r8d, dword [rsp + 0x68]
cmp eax, r8d
jne 0x140025cf0
lea rdx, [0x140025d7a]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140025d1b
lea rdx, [0x140025d7a]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
mov qword [rsp + 0x20], rsi
mov r9d, 4
lea r8, [rsp + 0x2a0]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140025d4f
lea rdx, [0x140025d7a]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
mov eax, dword [rbx]
cmp dword [rsp + 0x2a0], eax
je 0x140025d71
mov byte [rsp + 0x30], 1
lea rdx, [0x140025d9e]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140025d9e
xor esi, esi
mov rbx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x34]
jmp 0x140025cd5
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140025dae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x30]
jmp 0x140025db7
xor al, al
mov rcx, qword [rsp + 0x2a8]
xor rcx, rsp
call fcn.14009ab70
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140027070
Capabilities:
Get system firmware table

Disassembly:
push rsi
sub rsp, 0x20
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x44534454
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov esi, eax
test eax, eax
jne 0x140027095
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov rdi, rsi
cmp rsi, 0x1000
jb 0x1400270d4
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x140027196
call fcn.14009b2d4
test rax, rax
je 0x14002718f
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1400270df
mov rcx, rdi
call fcn.14009b2d4
mov rbx, rax
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov r9d, esi
mov r8, rbx
xor edx, edx
mov ecx, 0x44534454
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
test eax, eax
je 0x140027142
xor ecx, ecx
lea rax, str.TESTSIGN
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rax + rdx], cl
jne 0x140027113
cmp rdi, rdx
je 0x140027142
movabs rdx, 0x4e47495354534554
nop word [rax + rax]
cmp qword [rbx + rcx], rdx
je 0x14002718a
inc rcx
lea rax, [rsi - 8]
cmp rcx, rax
jb 0x140027130
xor sil, sil
test rbx, rbx
je 0x140027176
cmp rdi, 0x1000
jb 0x14002716b
mov rcx, qword [rbx - 8]
add rdi, 0x27
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14002718f
mov rbx, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.14009afc0
mov rbx, qword [rsp + 0x30]
movzx eax, sil
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov sil, 1
jmp 0x140027145
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140021f30
int3
Function at 0x14002b490
Capabilities:
Access peb ldr_data
Hash data using fnv
Resolve function by fnv-1a hash
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400c61a0]
test rax, rax
jne 0x14002b680
xor r10d, r10d
mov dword [rsp + 0x28], r10d
mov eax, 0xfaba0065
mov dword [rsp + 0x24], eax
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x18]
mov r11, qword [rcx + 0x10]
mov qword [rsp + 0x48], r11
mov r15, r11
mov qword [rsp + 0x50], r11
mov rcx, r11
nop dword [rax + rax]
movups xmm0, xmmword [rcx + 0x58]
movups xmmword [rsp + 0x58], xmm0
movd ecx, xmm0
sub cx, 8
mov word [rsp + 0x58], cx
test r10d, r10d
je 0x14002b546
mov rdx, qword [rsp + 0x60]
movzx ecx, cx
shr rcx, 1
lea r9, [rdx + rcx*2]
mov r8d, 0x811c9dc5
mov qword [rsp + 0x38], rdx
cmp rdx, r9
je 0x14002b53d
movsx ecx, byte [rdx]
xor ecx, r8d
imul r8d, ecx, 0x1000193
add rdx, 2
jmp 0x14002b520
cmp r8d, r10d
jne 0x14002b659
mov rbx, qword [r11 + 0x30]
mov qword [rsp + 0x68], rbx
movsxd rcx, dword [rbx + 0x3c]
mov r14, qword [rcx + rbx + 0x88]
mov qword [rsp + 0xa8], r14
mov r9d, r14d
add r9, rbx
mov qword [rsp + 0x70], r9
shr r14, 0x20
mov dword [rsp + 0x78], r14d
cmp r9, rbx
je 0x14002b659
mov edi, dword [r9 + 0x18]
mov dword [rsp + 0x20], edi
nop dword [rax + rax]
mov ecx, edi
dec edi
mov dword [rsp + 0x20], edi
test ecx, ecx
je 0x14002b659
mov edx, dword [r9 + 0x20]
add rdx, rbx
mov r8d, dword [rdx + rdi*4]
add r8, rbx
mov qword [rsp + 0x40], r8
mov edx, 0x811c9dc5
nop dword [rax + rax]
movsx ecx, byte [r8]
inc r8
mov qword [rsp + 0x40], r8
test cl, cl
jne 0x14002b64c
cmp edx, eax
jne 0x14002b647
mov ecx, dword [r9 + 0x1c]
add rcx, rbx
mov eax, dword [r9 + 0x24]
add rax, rbx
movzx eax, word [rax + rdi*2]
mov edx, dword [rcx + rax*4]
add rdx, rbx
cmp rdx, r9
jbe 0x14002b676
lea rax, [r9 + r14]
cmp rdx, rax
jae 0x14002b676
mov r10d, 0x811c9dc5
mov dword [rsp + 0xa0], r10d
mov eax, r10d
mov dword [rsp + 0xa4], eax
mov qword [rsp + 0x30], rdx
cmp byte [rdx], 0x2e
je 0x14002b625
inc rdx
jmp 0x14002b616
inc rdx
mov qword [rsp + 0x30], rdx
cmp byte [rdx], 0
je 0x14002b634
jmp 0x14002b625
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], r10d
mov r11, r15
mov qword [rsp + 0x48], r15
jmp 0x14002b659
jmp 0x14002b590
xor ecx, edx
imul edx, ecx, 0x1000193
jmp 0x14002b5c0
mov r11, qword [r11]
mov rcx, r11
mov qword [rsp + 0x48], r11
cmp r11, r15
je 0x14002b674
cmp qword [r11 + 0x30], 0
jne 0x14002b4f0
xor edx, edx
mov qword [0x1400c61a0], rdx
mov rax, rdx
mov ecx, 0x13333337
call rax
jmp 0x14002b68b
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14002bde0
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Get process filename
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rcx, qword [0x1400c6138]
test rcx, rcx
jne 0x14002bf80
mov rax, qword gs:[0x60]
mov r11d, 0x694a8c81
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
xor ebp, ebp
mov qword [rsp + 0x58], rsi
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x28], r14
mov r15, qword [rcx + 0x10]
mov rbx, r15
nop
movups xmm0, xmmword [rbx + 0x58]
movd eax, xmm0
sub ax, 8
test ebp, ebp
je 0x14002be7c
psrldq xmm0, 8
mov edx, 0x811c9dc5
movq rcx, xmm0
movzx eax, ax
shr rax, 1
lea r8, [rcx + rax*2]
cmp rcx, r8
je 0x14002be74
nop
movsx eax, byte [rcx]
add rcx, 2
xor eax, edx
imul edx, eax, 0x1000193
cmp rcx, r8
jne 0x14002be60
cmp edx, ebp
jne 0x14002bf43
mov r9, qword [rbx + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov rcx, qword [rax + r9 + 0x88]
mov r14, rcx
mov r10d, ecx
shr r14, 0x20
add r10, r9
cmp r10, r9
je 0x14002bf43
mov r8d, dword [r10 + 0x18]
test r8d, r8d
je 0x14002bf43
mov esi, dword [r10 + 0x20]
nop dword [rax]
nop word [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [rsi + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x14002bef7
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x14002bee0
cmp edx, r11d
je 0x14002bf03
test r8d, r8d
jne 0x14002bec0
jmp 0x14002bf43
mov ecx, dword [r10 + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r9
mov ecx, dword [rcx + rdx*4]
add rcx, r9
cmp rcx, r10
jbe 0x14002bf5b
lea rax, [r14 + r10]
cmp rcx, rax
jae 0x14002bf5b
mov ebp, 0x811c9dc5
mov rbx, r15
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x44], ebp
mov r11, qword [rsp + 0x40]
shr r11, 0x20
mov rax, qword [rbx]
mov rbx, rax
cmp rax, r15
je 0x14002bf59
cmp qword [rax + 0x30], 0
jne 0x14002be30
xor ecx, ecx
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov qword [0x1400c6138], rcx
add rsp, 0x38
jmp rcx
Function at 0x14002bf90
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address
Get process filename
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rcx, qword [0x1400c6130]
mov eax, dword [0x1400c61e8]
mov dword [0x1400c61c8], eax
test rcx, rcx
jne 0x14002c140
mov rax, qword gs:[0x60]
mov r11d, 0xf4d8b55
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
xor ebp, ebp
mov qword [rsp + 0x58], rsi
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x28], r14
mov r15, qword [rcx + 0x10]
mov rbx, r15
nop word [rax + rax]
movups xmm0, xmmword [rbx + 0x58]
movd eax, xmm0
sub ax, 8
test ebp, ebp
je 0x14002c03c
psrldq xmm0, 8
mov edx, 0x811c9dc5
movq rcx, xmm0
movzx eax, ax
shr rax, 1
lea r8, [rcx + rax*2]
cmp rcx, r8
je 0x14002c034
nop
movsx eax, byte [rcx]
add rcx, 2
xor eax, edx
imul edx, eax, 0x1000193
cmp rcx, r8
jne 0x14002c020
cmp edx, ebp
jne 0x14002c103
mov r9, qword [rbx + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov rcx, qword [rax + r9 + 0x88]
mov r14, rcx
mov r10d, ecx
shr r14, 0x20
add r10, r9
cmp r10, r9
je 0x14002c103
mov r8d, dword [r10 + 0x18]
test r8d, r8d
je 0x14002c103
mov esi, dword [r10 + 0x20]
nop dword [rax]
nop word [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [rsi + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x14002c0b7
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x14002c0a0
cmp edx, r11d
je 0x14002c0c3
test r8d, r8d
jne 0x14002c080
jmp 0x14002c103
mov ecx, dword [r10 + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r9
mov ecx, dword [rcx + rdx*4]
add rcx, r9
cmp rcx, r10
jbe 0x14002c11b
lea rax, [r14 + r10]
cmp rcx, rax
jae 0x14002c11b
mov ebp, 0x811c9dc5
mov rbx, r15
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x44], ebp
mov r11, qword [rsp + 0x40]
shr r11, 0x20
mov rax, qword [rbx]
mov rbx, rax
cmp rax, r15
je 0x14002c119
cmp qword [rax + 0x30], 0
jne 0x14002bff0
xor ecx, ecx
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov qword [0x1400c6130], rcx
call rcx
mov ecx, dword [0x1400c61c8]
mov dword [0x1400c61e8], eax
test ecx, ecx
je 0x14002c160
sub eax, ecx
cmp eax, 0x1770
jbe 0x14002c160
call fcn.140025ad0
xor eax, eax
add rsp, 0x38
ret
Function at 0x140032d00
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140032d28
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140032d4e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140032d50
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140032da9
test ecx, ecx
jle 0x140032d89
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140032da9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140032da9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140032dd0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140032df2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140032e08
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140032e24
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140032e26
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140032e62
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140032efe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140032e9d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140032ede
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140032efe
cmp rbx, rax
ja 0x140032eb0
test rbx, rbx
je 0x140032efe
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret