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

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afc0], 0
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x6afb8], 0
jne 0x18001e60e
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afc0], 1
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afb8], 0x10000
mov eax, 4
imul rax, rax, 0x7fff
mov rcx, qword [rsp + 0x40]
mov dword [rcx + rax + 0x4afb8], 0
mov rax, qword [rsp + 0x40]
add rax, 0x4afb8
mov rdi, rax
xor eax, eax
mov ecx, 0x1fffc
rep stosb byte [rdi], al
movsxd rax, dword [rsp + 0x48]
lea rcx, [0x18005af50]
movzx eax, word [rcx + rax*8 + 2]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afe0], eax
movsxd rax, dword [rsp + 0x48]
lea rcx, [0x18005af50]
movzx eax, word [rcx + rax*8]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afe4], eax
movsxd rax, dword [rsp + 0x48]
lea rcx, [0x18005af50]
movzx eax, word [rcx + rax*8 + 4]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afe8], eax
movsxd rax, dword [rsp + 0x48]
lea rcx, [0x18005af50]
movzx eax, word [rcx + rax*8 + 6]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afdc], eax
cmp dword [rsp + 0x48], 2
jg 0x18001e6cc
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
or eax, 4
mov rcx, qword [rsp + 0x50]
mov word [rcx], ax
jmp 0x18001e6e6
cmp dword [rsp + 0x48], 8
jl 0x18001e6e6
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
or eax, 2
mov rcx, qword [rsp + 0x50]
mov word [rcx], ax
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afcc], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afbc], 0
mov dword [rsp + 0x20], 0x8000
mov eax, dword [rsp + 0x20]
shl eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
add rax, 0x1afb8
mov r8d, dword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afd8], eax
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x6afd8], 0
je 0x18001e75d
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x6afd8], 0xffffffff
jne 0x18001e780
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afd4], 1
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afd8], 0
jmp 0x18001e807
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afd4], 0
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x6afd8], 0x106
jae 0x18001e7aa
mov rcx, qword [rsp + 0x40]
call fcn.18001ebe0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afc4], 0
mov dword [rsp + 0x20], 0
jmp 0x18001e7cd
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 2
jae 0x18001e807
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x6afc4]
shl eax, 5
mov ecx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 0x1afb8]
xor eax, ecx
and eax, 0x7fff
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afc4], eax
jmp 0x18001e7c3
add rsp, 0x30
pop rdi
ret
Function at 0x180020e70
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 0
movsx ecx, byte [rsp + 0x10]
mov rdx, qword [rsp + 8]
mov eax, dword [rdx + rax]
xor eax, ecx
and eax, 0xff
cdqe
lea rcx, [0x18005ab50]
mov edx, 4
imul rdx, rdx, 0
mov r8, qword [rsp + 8]
mov edx, dword [r8 + rdx]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 8]
mov ecx, dword [rdx + rcx]
and ecx, 0xff
mov rdx, qword [rsp + 8]
add ecx, dword [rdx + rax]
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
imul eax, dword [rcx + rax], 0x8088405
inc eax
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 2
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
mov ecx, dword [rdx + rcx]
shr ecx, 0x18
mov rdx, qword [rsp + 8]
mov eax, dword [rdx + rax]
xor eax, ecx
and eax, 0xff
mov eax, eax
lea rcx, [0x18005ab50]
mov edx, 4
imul rdx, rdx, 2
mov r8, qword [rsp + 8]
mov edx, dword [r8 + rdx]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
ret
Function at 0x180021ba0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x180065010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0x41]
test eax, eax
je 0x180021d14
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x50], 0
je 0x180021c33
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0xa0]
cmp dword [rax + 0x58], ecx
jae 0x180021c33
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1800399a4
mov rax, qword [rsp + 0x90]
mov qword [rax + 0x50], 0
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x50], 0
jne 0x180021c7c
mov eax, dword [rsp + 0xa0]
shl eax, 1
mov eax, eax
mov ecx, eax
call fcn.180039c84
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x50], rcx
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0xa0]
mov dword [rax + 0x58], ecx
mov eax, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x90]
mov rdi, qword [rcx + 0x50]
mov rsi, qword [rsp + 0x98]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x30], 0
jmp 0x180021caf
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x30], eax
jae 0x180021d03
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x50]
mov rdx, qword [rsp + 0x90]
add rdx, 0x44
mov qword [rsp + 0x50], rdx
movzx edx, byte [rcx + rax]
mov rax, qword [rsp + 0x50]
mov rcx, rax
call fcn.180020fd0
mov ecx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x90]
mov rdx, qword [rdx + 0x50]
mov byte [rdx + rcx], al
jmp 0x180021ca5
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x30], 0
je 0x180021dae
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x38]
add eax, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x90]
cmp eax, dword [rcx + 0x3c]
jb 0x180021d5c
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x24], 0x30000
xor eax, eax
jmp 0x180021e01
mov eax, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x90]
mov ecx, dword [rcx + 0x38]
mov rdx, qword [rsp + 0x90]
add rcx, qword [rdx + 0x30]
mov rdi, rcx
mov rsi, qword [rsp + 0x38]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x38]
add eax, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x90]
mov dword [rcx + 0x38], eax
mov eax, dword [rsp + 0xa0]
jmp 0x180021e01
mov rax, qword [rsp + 0x90]
cmp qword [rax + 8], 0
je 0x180021df0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x58]
jmp 0x180021e01
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x24], 0x1000000
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180039980
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x1800226b0
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x180065010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0xb8], 0
je 0x1800227ca
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0xc0]
cmp dword [rax + 0xc4], ecx
jb 0x180022706
xor eax, eax
jmp 0x180022870
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0xc4]
mov eax, dword [rax + 0xc0]
sub eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x30], eax
jbe 0x18002273a
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0xc4]
mov rdx, qword [rsp + 0x70]
add rcx, qword [rdx + 0xb8]
mov rdi, qword [rsp + 0x78]
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0xc4]
add eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0xc4], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x9c]
add eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x9c], eax
mov eax, dword [rsp + 0x30]
mov r8d, eax
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0xa0]
call fcn.180020bf0
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0xa0], eax
mov eax, dword [rsp + 0x30]
jmp 0x180022870
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0xa8], 0
je 0x180022862
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0xa8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x180022819
xor eax, eax
jmp 0x180022870
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x9c]
add eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x9c], eax
mov eax, dword [rsp + 0x38]
mov r8d, eax
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0xa0]
call fcn.180020bf0
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0xa0], eax
mov eax, dword [rsp + 0x38]
jmp 0x180022870
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x24], 0x1000000
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180039980
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x180023fb0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x180065010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov eax, 8
imul rax, rax, 0
lea rcx, [0x180065aa8]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x60], 0x48
mov byte [rsp + 0x61], 0xb8
mov byte [rsp + 0x62], 0x37
mov byte [rsp + 0x63], 0xea
mov byte [rsp + 0x64], 0xdf
mov byte [rsp + 0x65], 0xa
mov byte [rsp + 0x66], 0x9e
mov byte [rsp + 0x67], 0xa7
mov byte [rsp + 0x68], 0xa6
mov byte [rsp + 0x69], 0x9a
mov byte [rsp + 0x70], 0x48
mov byte [rsp + 0x71], 0xb8
mov byte [rsp + 0x72], 0xbd
mov byte [rsp + 0x73], 0xa3
mov byte [rsp + 0x74], 0x2f
mov byte [rsp + 0x75], 0x2e
mov byte [rsp + 0x76], 0xab
mov byte [rsp + 0x77], 0x81
mov byte [rsp + 0x78], 0xb9
mov byte [rsp + 0x79], 0xd8
movabs rax, 0x9699d6266568ab96
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x20], 0
mov r8d, 0xa
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call fcn.18004fce0
test eax, eax
je 0x1800240b1
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
jmp 0x180024089
mov r8d, 0xa
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.18004fce0
test eax, eax
je 0x1800240d9
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1800240b1
mov rax, qword [rsp + 0x28]
add rax, 0x11
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x50], 0x40
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x30]
lea r9, [rsp + 0x54]
mov r8d, dword [rsp + 0x50]
mov edx, eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
jmp 0x180024147
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x40], rax
je 0x180024189
mov eax, dword [rsp + 0x20]
movzx eax, byte [rsp + rax + 0x80]
mov rcx, qword [rsp + 0x40]
movzx ecx, byte [rcx]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x40]
mov byte [rcx], al
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 7
mov dword [rsp + 0x20], eax
jmp 0x18002413a
mov eax, dword [rsp + 0x30]
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x54]
mov edx, eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180039980
add rsp, 0x98
ret
Function at 0x2fc4d1230
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d1c32
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d1cca
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d1cae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d1ca2
cmp qword [rbp - 0x10], 0
je 0x2fc4d1ca2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d1c68
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d1ccb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1dd0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d1df8
mov eax, 0
jmp 0x2fc4d1e46
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d1e21
mov eax, 0
jmp 0x2fc4d1e46
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d1e41
mov eax, 0
jmp 0x2fc4d1e46
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d1e4c
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 0x2fc4d1eca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1ec1
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 0x2fc4d1ec1
mov rax, qword [rbp - 8]
jmp 0x2fc4d1edf
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 0x2fc4d1e94
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400034d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov r15d, edx
lea r14d, [rdx - 1]
mov rdi, rcx
xor r12d, r12d
nop word [rax + rax]
mov esi, r12d
mov ebp, r12d
test r14d, r14d
je 0x1400036c6
nop
movzx ecx, byte [rdi + 8]
add cl, 0xff
shl esi, cl
add esi, esi
nop dword [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x140003584
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x140003540
mov ecx, dword [r10]
jmp 0x140003667
cmp ecx, 0x4e0
jb 0x140003667
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400035a0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400035f0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r12d
mov dword [r10], r12d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
mov edx, dword [rdi + 0x10]
cmp eax, edx
ja 0x140003520
movzx ecx, byte [rdi + 8]
or esi, eax
add cl, 0xff
shl ebp, cl
add ebp, ebp
or ebp, edx
cmp ebp, r14d
jb 0x140003510
xor edx, edx
mov eax, ebp
div r15d
xor edx, edx
mov ecx, eax
mov eax, esi
div r15d
cmp eax, ecx
jb 0x1400036ea
xor edx, edx
mov eax, ebp
div r15d
cmp edx, r14d
jne 0x140003500
mov rbx, qword [rsp + 0x20]
mov eax, esi
mov rbp, qword [rsp + 0x28]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
div r15d
mov eax, edx
pop r15
pop r14
pop r12
ret
Function at 0x140003b20
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x90
xorps xmm0, xmm0
mov rbx, rcx
movups xmmword [rax - 0x78], xmm0
mov dword [rax - 0x78], 0x70
xor ecx, ecx
mov dword [rax - 0x74], 0x40
cmp qword [rbx + 0x18], 0x10
mov qword [rax - 0x70], rcx
movups xmmword [rax - 0x68], xmm0
movups xmmword [rax - 0x58], xmm0
movups xmmword [rax - 0x48], xmm0
movups xmmword [rax - 0x38], xmm0
movups xmmword [rax - 0x28], xmm0
movups xmmword [rax - 0x18], xmm0
lea rax, str.runas
mov qword [rsp + 0x30], rax
mov rax, rbx
jb 0x140003b7a
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
test dl, dl
lea rax, [0x1400df138]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
mov eax, 5
cmovne eax, ecx
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x50], eax
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov rcx, rbx
test eax, eax
je 0x140003bc8
call fcn.140003340
mov eax, 1
add rsp, 0x90
pop rbx
ret
call fcn.140003340
xor eax, eax
add rsp, 0x90
pop rbx
ret
Function at 0x140003f00
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x90
xor eax, eax
xorps xmm0, xmm0
mov dword [rsp + 0x54], eax
xor r14d, r14d
cmp qword [rcx + 0x18], 0x10
movzx ebp, r8b
movups xmmword [rsp + 0x60], xmm0
mov rbx, rdx
mov rdi, rcx
movups xmmword [rsp + 0x70], xmm0
mov qword [r11 - 0x18], rax
lea rax, str.runas
mov dword [rsp + 0x20], 0x70
mov dword [rsp + 0x24], 0x40
mov qword [r11 - 0x68], rax
mov rax, rcx
mov qword [r11 - 0x70], r14
jb 0x140003f6c
mov rax, qword [rcx]
cmp qword [rdx + 0x18], 0x10
mov qword [rsp + 0x38], rax
mov rax, rbx
jb 0x140003f7e
mov rax, qword [rdx]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x20]
lea rax, [0x1400df138]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x48], rax
movzx eax, r9b
xor eax, 1
mov qword [rsp + 0x88], r14
mov dword [rsp + 0x50], eax
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esi, eax
test eax, eax
je 0x140003fde
test bpl, bpl
je 0x140003fd0
mov rcx, qword [rsp + 0x88]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140004014
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14000400f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004088
mov rcx, r8
call fcn.140093e7c
mov qword [rdi + 0x10], r14
mov byte [rdi], r14b
mov qword [rdi + 0x18], 0xf
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140004059
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140004054
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004088
mov rcx, r8
call fcn.140093e7c
lea r11, [rsp + 0x90]
mov qword [rbx + 0x10], r14
mov byte [rbx], r14b
mov eax, esi
mov qword [rbx + 0x18], 0xf
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x140004090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 0x10
jb 0x14000409e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400040b3
shr eax, 4
and al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret