joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029970
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1400299a0
test ecx, ecx
jne 0x1400299f0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400299ac
test ecx, ecx
jne 0x1400299f0
mov rcx, rdi
call fcn.140029850
movzx eax, al
test bpl, bpl
jne 0x1400299f7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x1400299e3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140029b68]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x1400299e3.2
xor eax, eax
test bpl, bpl
je 0x1400299bc
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140029b49
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140029a2a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140029aa9
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140029a70
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140029a8b
inc rax
dec rdi
cmp rax, 1
jne 0x140029a50
jmp 0x140029aa9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140029a8b
cmp ebx, 0x5c
je 0x140029a8b
inc rax
dec rdi
cmp rax, 1
jne 0x140029a70
jmp 0x140029aa9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140029b57
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140029ad3
mov al, 9
cmp rdx, 2
je 0x140029ad7
cmp rdx, 1
jne 0x140029ae7
cmp byte [r8], 0x2e
jne 0x140029ae7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140029ae7
mov al, 0xa
jmp 0x140029ae7
cmp byte [r8], 0x2e
jne 0x140029ae7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x1400299e3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x1400299e3.2
mov ecx, 2
jmp case.0x1400299e3.2
lea r8, [0x1413c0710]
call fcn.140053540
ud2
lea r8, [0x1413c0728]
call fcn.140053540
ud2
Function at 0x14002e850
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1413c1590]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14002e8bc
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14002e8cb
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14002e903
cmp eax, 0x103
je 0x14002e90d
test eax, eax
js 0x14002e8e8
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14002e903
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1413c15f0]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140024090
mov rcx, rax
call fcn.140024200
mov ecx, 7
int 0x29
ud2

Function at 0x14002fcf0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140026e30
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x14002fda7
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.14002e970
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x14002fda7
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14002fd79
test rsi, rsi
je 0x14002fda5
mov rcx, qword [0x1413d2bb8]
xor esi, esi
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14002fda7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14002fda0
mov rcx, qword [0x1413d2bb8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, rbx
jmp 0x14002fda7
xor esi, esi
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003b180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.140026e30
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x14003b1f6
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.14003b360
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x14003b204
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003b224
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x14003b215
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.140027040
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x14003b215
mov rcx, qword [0x1413d2bb8]
xor edx, edx
mov r8, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
Function at 0x14003d1b0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1413d2ad0]
mov rcx, qword [0x1413d2bb8]
test rcx, rcx
jne 0x14003d1fc
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14003d2ca
mov rcx, rax
mov qword [0x1413d2bb8], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14003d2ca
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14003d700]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14003d2bc
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x18]
je 0x14003d295
cmp qword [rax + 0x10], 0x11
jae 0x14003d27e
mov r8, qword [rbp - 0x20]
jmp 0x14003d286
mov r8, qword [rbp - 0x20]
mov r8, qword [r8 - 8]
mov rcx, qword [0x1413d2bb8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1413d2bb8]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1400533b0
ud2
Function at 0x14003dbd0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.1400450c0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov r14, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140045940
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r15, [rbp + 0xfe8]
mov qword [rbp + 0xfc8], r15
lea r12, [0x1400337b0]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xfb0]
mov rcx, r14
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x14003ddbe
mov r13, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], r14
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfe8], 0
je 0x14003dc97
cmp dword [rbp + 0xfec], 0
jne 0x14003ddd3
mov ebx, dword [rbp + 0xff0]
test rbx, rbx
je 0x14003ddd3
cmp ebx, 0x1000
ja 0x14003de17
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x14003de03
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov r8d, ebx
sub r8d, r14d
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call rdi
test eax, eax
je 0x14003ddc6
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfe8], 0
je 0x14003dd40
cmp dword [rbp + 0xfec], 0
jne 0x14003ddcc
mov eax, dword [rbp + 0xff0]
add r14, rax
cmp r14, rbx
jne 0x14003dce0
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov r14, qword [rbp + 0xfe0]
mov rcx, r14
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x14003dc97
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14003ddd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, [0x1413c18d8]
mov rcx, r14
mov rdx, rbx
call fcn.140053840
jmp 0x14003de2b
lea r8, [0x1413c18d8]
mov edx, 0x1000
mov rcx, rbx
call fcn.1400535c0
ud2
Function at 0x14003deb0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14003deef
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14002ae40]
mov qword [rbp - 0x28], rax
lea rax, [0x1413c1a50]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, [0x1413c1a88]
lea rcx, [rbp - 0x60]
call fcn.140053480
ud2

Function at 0x14003fd80
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14003fe8f
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14003fdb8
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14003fe52
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14003fe71
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003fe0e
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14003fe2b
jmp 0x14003fe20
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14003fe26
cmp eax, 0x6d
jne 0x14003fe42
mov byte [rsi + 1], 0
jmp 0x14003fe36
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14003fe38
mov r8d, 0x10
mov rcx, rbx
call fcn.1400532f0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14003fdc5
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1400532f0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x14003fdc5
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140054750
ud2

Function at 0x1400496cc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400494c8
Function at 0x2f8aad660
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.2f8aae250
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.2f8aae250
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 0x2f8aad6d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x2f8ab6044]
mov r12, rcx
test ebx, ebx
jle 0x2f8aad800
mov rax, qword [0x2f8ab6048]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x2f8aad71b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x2f8aad7a5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x2f8aad700
mov rcx, r12
call fcn.2f8aadf30
mov rsi, rax
test rax, rax
je 0x2f8aad822
mov rax, qword [0x2f8ab6048]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.2f8aae060
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2f8ab6048]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2f8aad807
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2f8aad79e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2f8aad7b0
add dword [0x2f8ab6044], 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 [0x2f8ab6048]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2f8aad79e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2f8aad660
nop dword [rax]
xor ebx, ebx
jmp 0x2f8aad728
mov rax, qword [0x2f8ab6048]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.2f8aad660
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.2f8aad660
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2f8aadb80
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x2f8ab6080]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2f8ab6060]
test rbx, rbx
je 0x2f8aadbdc
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x2f8aadbd3
test r12, r12
je 0x2f8aadbd3
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2f8aadbb8
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x2f8aadf30
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2f8ab02a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2f8aadf50
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2f8aadf58
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2f8aadf50
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x2f8aadfa5
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 0x2f8aadf9c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2f8aadf50
add rax, 0x28
cmp rax, r9
jne 0x2f8aadf88
xor eax, eax
ret

Function at 0x2f8aadfb0
Capabilities:
Parse pe header

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

Function at 0x2f8aae060
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2f8ab02a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x2f8aae080
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x2f8aae088
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140001fd4
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rdx, rcx
mov eax, 0x5a4d
mov rcx, qword [rcx + 0x10]
cmp word [rcx], ax
jne 0x1400020bb
movsxd rax, dword [rcx + 0x3c]
xor r8d, r8d
add rcx, rax
mov eax, 0x4550
cmp dword [rcx], eax
cmove r8, rcx
mov qword [rdx + 0x18], r8
cmp dword [r8], eax
jne 0x140002059
mov eax, 0x10b
cmp word [r8 + 0x18], ax
jne 0x140002026
mov byte [rdx + 0x20], 0
mov rax, qword [r8 + 0x30]
jmp 0x14000203a
mov eax, 0x20b
cmp word [r8 + 0x18], ax
jne 0x14000208a
mov byte [rdx + 0x20], 1
mov eax, dword [r8 + 0x34]
mov qword [rdx + 0x28], rax
mov eax, dword [r8 + 0x50]
mov dword [rdx + 0x30], eax
mov eax, dword [r8 + 0x54]
mov dword [rdx + 0x34], eax
mov eax, dword [r8 + 0x28]
mov dword [rdx + 0x38], eax
add rsp, 0x40
pop rbp
ret
and dword [rbp - 4], 0
lea rdx, [0x140068a88]
xor eax, eax
mov dword [rbp - 8], 0xc000a000
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x10], rax
lea rax, [0x14005b4d8]
mov qword [rbp - 0x20], rax
call fcn.140056130
int3
and dword [rbp - 4], 0
lea rdx, [0x140068a88]
xor eax, eax
mov dword [rbp - 8], 0xc000007b
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x10], rax
lea rax, [0x14005b4d8]
mov qword [rbp - 0x20], rax
call fcn.140056130
int3
and dword [rbp - 4], 0
lea rdx, [0x140068a88]
xor eax, eax
mov dword [rbp - 8], 0xc000012f
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x10], rax
lea rax, [0x14005b4d8]
mov qword [rbp - 0x20], rax
call fcn.140056130
int3
Function at 0x140006168
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbp, rdx
mov r8, rdx
mov rdx, rcx
mov rbx, rcx
xor ecx, ecx
call fcn.140006120
mov dil, 1
lea rsi, [rbx + 2]
mov r12d, 4
lea r13, str.cw
mov rdx, rbx
mov r8, r12
mov rcx, rdx
mov r9, r12
movzx eax, byte [rcx]
mov al, byte [rax + r13]
mov byte [rcx], al
add rcx, r12
sub r9, 1
jne 0x1400061b7
inc rdx
sub r8, 1
jne 0x1400061b1
mov al, byte [rbx + 5]
mov r14, rsi
mov cl, byte [rbx + 1]
mov r15, r12
mov byte [rbx + 1], al
mov al, byte [rbx + 9]
mov byte [rbx + 5], al
mov al, byte [rbx + 0xd]
mov byte [rbx + 9], al
mov al, byte [rbx + 0xa]
mov byte [rbx + 0xd], cl
mov cl, byte [rsi]
mov byte [rsi], al
mov al, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
mov cl, byte [rbx + 6]
mov byte [rbx + 6], al
mov al, byte [rbx + 0xf]
mov byte [rbx + 0xe], cl
mov cl, byte [rbx + 3]
mov byte [rbx + 3], al
mov al, byte [rbx + 0xb]
mov byte [rbx + 0xf], al
mov al, byte [rbx + 7]
mov byte [rbx + 0xb], al
mov byte [rbx + 7], cl
mov r11b, byte [r14 - 2]
mov r8b, byte [r14 - 1]
mov dl, r11b
mov r9b, byte [r14 + 1]
xor dl, r8b
xor r9b, byte [r14]
mov al, dl
shr al, 7
add dl, dl
movzx eax, al
mov r10b, r9b
imul ecx, eax, 0x1b
xor r10b, r11b
xor r10b, r8b
xor cl, dl
mov dl, r8b
xor dl, byte [r14]
xor cl, r11b
xor r11b, byte [r14 + 1]
xor cl, r10b
mov byte [r14 - 2], cl
mov al, dl
shr al, 7
add dl, dl
movzx eax, al
imul ecx, eax, 0x1b
mov al, r9b
shr al, 7
add r9b, r9b
movzx eax, al
xor cl, dl
xor cl, r8b
xor cl, r10b
mov byte [r14 - 1], cl
imul ecx, eax, 0x1b
mov al, r11b
shr al, 7
add r11b, r11b
movzx eax, al
xor cl, r9b
xor cl, byte [r14]
xor cl, r10b
mov byte [r14], cl
imul ecx, eax, 0x1b
xor cl, r11b
xor cl, byte [r14 + 1]
xor cl, r10b
mov byte [r14 + 1], cl
add r14, r12
sub r15, 1
jne 0x14000621e
mov r8, rbp
mov rdx, rbx
mov cl, dil
call fcn.140006120
inc dil
cmp dil, 0xa
jb 0x1400061ab
mov rdx, rbx
mov r8, r12
mov rcx, rdx
mov r9, r12
movzx eax, byte [rcx]
mov al, byte [rax + r13]
mov byte [rcx], al
add rcx, r12
sub r9, 1
jne 0x1400062e4
inc rdx
sub r8, 1
jne 0x1400062de
mov dl, byte [rbx + 6]
mov r8, rbp
mov al, byte [rbx + 5]
mov cl, byte [rbx + 1]
mov byte [rbx + 1], al
mov al, byte [rbx + 9]
mov byte [rbx + 5], al
mov al, byte [rbx + 0xd]
mov byte [rbx + 9], al
mov al, byte [rbx + 0xa]
mov byte [rbx + 0xd], cl
mov cl, byte [rsi]
mov byte [rsi], al
mov al, byte [rbx + 0xe]
mov byte [rbx + 6], al
mov al, byte [rbx + 0xf]
mov byte [rbx + 0xe], dl
mov dl, byte [rbx + 3]
mov byte [rbx + 3], al
mov al, byte [rbx + 0xb]
mov byte [rbx + 0xf], al
mov al, byte [rbx + 7]
mov byte [rbx + 7], dl
mov rdx, rbx
mov byte [rbx + 0xa], cl
mov cl, 0xa
mov byte [rbx + 0xb], al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.140006120
Function at 0x140007fc0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor esi, esi
xor r14d, r14d
xor r12d, r12d
mov r13d, edx
mov r8, rcx
mov ebx, 0xc0000225
test rcx, rcx
je 0x140008119
test r9, r9
je 0x140008119
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008112
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140008112
mov ecx, 0x10b
cmp word [rax + 0x18], cx
je 0x140008047
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x140008112
mov ecx, 0x88
jmp 0x14000804c
mov ecx, 0x78
mov r11d, dword [rcx + rax]
test r11d, r11d
je 0x14000810b
mov r15d, dword [rcx + rax + 4]
test r15d, r15d
je 0x14000810b
lea r9, [r8 + r11]
cmp dword [r9 + 0x1c], esi
je 0x140008078
mov esi, dword [r9 + 0x1c]
add rsi, r8
cmp dword [r9 + 0x24], r12d
je 0x140008085
mov r14d, dword [r9 + 0x24]
add r14, r8
cmp dword [r9 + 0x20], r12d
je 0x140008092
mov r12d, dword [r9 + 0x20]
add r12, r8
test r13d, r13d
je 0x14000809d
mov edi, dword [r9 + 0x18]
jmp 0x1400080a1
mov edi, dword [r9 + 0x14]
xor r10d, r10d
test edi, edi
je 0x140008107
test r13d, r13d
je 0x1400080cd
mov ecx, dword [r12 + r10*4]
add rcx, r8
call fcn.1400026d8
xor eax, 0x75ede3db
cmp r13d, eax
jne 0x1400080d6
movzx eax, word [r14 + r10*2]
mov ecx, dword [rsi + rax*4]
jmp 0x1400080e4
mov ecx, dword [r9 + 0x10]
add ecx, r10d
je 0x1400080e0
inc r10d
cmp r10d, edi
jae 0x140008107
jmp 0x1400080a8
mov ecx, dword [rsi + r10*4]
cmp ecx, r11d
jb 0x1400080f8
lea eax, [r15 + r11]
cmp ecx, eax
jae 0x1400080f8
mov ebx, 0xc000036f
jmp 0x140008107
mov eax, ecx
mov rcx, qword [rsp + 0x68]
add rax, r8
xor ebx, ebx
mov qword [rcx], rax
mov eax, ebx
jmp 0x14000811e
mov eax, 0xc000047c
jmp 0x14000811e
mov eax, 0xc000007b
jmp 0x14000811e
mov eax, 0xc000000d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret