joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466300
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbp
mov rbp, rsp
pushfq
cld
sub rsp, 0xe0
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
movups xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm7
movups xmmword [rsp + 0x60], xmm8
movups xmmword [rsp + 0x70], xmm9
movups xmmword [rsp + 0x80], xmm10
movups xmmword [rsp + 0x90], xmm11
movups xmmword [rsp + 0xa0], xmm12
movups xmmword [rsp + 0xb0], xmm13
movups xmmword [rsp + 0xc0], xmm14
movups xmmword [rsp + 0xd0], xmm15
xorps xmm15, xmm15
xor r14, r14
mov rax, qword [0x005bffb8]
mov rax, qword gs:[rax]
cmp rax, 0
je 0x46639b
mov r14, qword [rax]
sub rsp, 0x10
mov rax, rcx
mov rbx, rdx
call sym.runtime.sigtrampgo
add rsp, 0x10
mov rdi, qword [rsp]
mov rsi, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
movups xmm6, xmmword [rsp + 0x40]
movups xmm7, xmmword [rsp + 0x50]
movups xmm8, xmmword [rsp + 0x60]
movups xmm9, xmmword [rsp + 0x70]
movups xmm10, xmmword [rsp + 0x80]
movups xmm11, xmmword [rsp + 0x90]
movups xmm12, xmmword [rsp + 0xa0]
movups xmm13, xmmword [rsp + 0xb0]
movups xmm14, xmmword [rsp + 0xc0]
movups xmm15, xmmword [rsp + 0xd0]
add rsp, 0xe0
popfq
pop rbp
ret

Function at 0x4665c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x28
pushfq
cld
sub rsp, 0xe0
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
movups xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm7
movups xmmword [rsp + 0x60], xmm8
movups xmmword [rsp + 0x70], xmm9
movups xmmword [rsp + 0x80], xmm10
movups xmmword [rsp + 0x90], xmm11
movups xmmword [rsp + 0xa0], xmm12
movups xmmword [rsp + 0xb0], xmm13
movups xmmword [rsp + 0xc0], xmm14
movups xmmword [rsp + 0xd0], xmm15
mov rax, qword [0x005bffb8]
mov rax, qword gs:[rax]
cmp rax, 0
jne 0x466657
int 3
mov r14, qword [rax]
sub rsp, 0x28
mov qword [rsp], rcx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], r8
mov qword [rsp + 0x18], r9
call sym.runtime.sehhandler.abi0
mov eax, dword [rsp + 0x20]
add rsp, 0x28
mov rdi, qword [rsp]
mov rsi, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
movups xmm6, xmmword [rsp + 0x40]
movups xmm7, xmmword [rsp + 0x50]
movups xmm8, xmmword [rsp + 0x60]
movups xmm9, xmmword [rsp + 0x70]
movups xmm10, xmmword [rsp + 0x80]
movups xmm11, xmmword [rsp + 0x90]
movups xmm12, xmmword [rsp + 0xa0]
movups xmm13, xmmword [rsp + 0xb0]
movups xmm14, xmmword [rsp + 0xc0]
movups xmm15, xmmword [rsp + 0xd0]
add rsp, 0xe0
popfq
add rsp, 0x28
pop rbp
ret
Function at 0x466a20
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x466a54
mov rcx, 0x28
jmp 0x466a5f
shl rcx, 3
add rcx, 0x1480
mov qword [0x005bffb8], rcx
pop rbp
ret

Function at 0x46f920
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x46f9ea
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x005bffb8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x46f9cf
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x0048c060]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x46f9be
mov edi, 1
lea rsi, [0x0048c060]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004c35b8]
lea rsi, [0x004c31d0]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString

Function at 0x477d40
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47847f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x477d6d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x477ff1
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x47801d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x004c4500]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x0048bf60]
lea rbx, [0x004c3508]
call sym.runtime.gopanic
inc rax
cmp rax, r8
jge 0x478042
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x478077
lea rdi, [0x0048bfe0]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x477d63
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x47805b
jmp 0x478030
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.internal_bisect.Hash
Function at 0x478620
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x478637
inc rax
cmp rax, 4
jge 0x47864f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x478634
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x478660
inc rax
cmp rax, 4
jge 0x47866e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x478697
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x47867b
jmp 0x47865d
Function at 0x4827a0
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rbx]
add rax, 0x10
pxor xmm0, xmm1
sub rcx, 0xc
je 0x4827df
jb 0x4827f4
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x20]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x30]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x40]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x50]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x60]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x70]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x80]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x90]
aesdeclast xmm0, xmm1
movups xmmword [rdx], xmm0
ret
Function at 0x482860
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x482934
jb 0x482993
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call sym._expand_key_256a
aeskeygenassist xmm1, xmm0, 1
call sym._expand_key_256b
aeskeygenassist xmm1, xmm2, 2
call sym._expand_key_256a
aeskeygenassist xmm1, xmm0, 2
call sym._expand_key_256b
aeskeygenassist xmm1, xmm2, 4
call sym._expand_key_256a
aeskeygenassist xmm1, xmm0, 4
call sym._expand_key_256b
aeskeygenassist xmm1, xmm2, 8
call sym._expand_key_256a
aeskeygenassist xmm1, xmm0, 8
call sym._expand_key_256b
aeskeygenassist xmm1, xmm2, 0x10
call sym._expand_key_256a
aeskeygenassist xmm1, xmm0, 0x10
call sym._expand_key_256b
aeskeygenassist xmm1, xmm2, 0x20
call sym._expand_key_256a
aeskeygenassist xmm1, xmm0, 0x20
call sym._expand_key_256b
aeskeygenassist xmm1, xmm2, 0x40
call sym._expand_key_256a
jmp 0x482a01
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call sym._expand_key_192a
aeskeygenassist xmm1, xmm2, 2
call sym._expand_key_192b
aeskeygenassist xmm1, xmm2, 4
call sym._expand_key_192a
aeskeygenassist xmm1, xmm2, 8
call sym._expand_key_192b
aeskeygenassist xmm1, xmm2, 0x10
call sym._expand_key_192a
aeskeygenassist xmm1, xmm2, 0x20
call sym._expand_key_192b
aeskeygenassist xmm1, xmm2, 0x40
call sym._expand_key_192a
aeskeygenassist xmm1, xmm2, 0x80
call sym._expand_key_192b
jmp 0x482a01
aeskeygenassist xmm1, xmm0, 1
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 2
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 4
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 8
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 0x10
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 0x20
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 0x40
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 0x80
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 0x1b
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 0x36
call sym._expand_key_128
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x482a0e
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
pop rbp
ret
Function at 0x1400015b0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
mov r8d, 0xb0
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call sub.msvcrt.dll_memcpy
mov dword [rbp - 4], 4
jmp 0x14000179f
mov eax, dword [rbp - 4]
sub eax, 1
shl eax, 2
mov dword [rbp - 8], eax
mov edx, dword [rbp - 8]
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
mov byte [rbp - 0x10], al
mov eax, dword [rbp - 8]
add eax, 1
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
mov byte [rbp - 0xf], al
mov eax, dword [rbp - 8]
add eax, 2
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
mov byte [rbp - 0xe], al
mov eax, dword [rbp - 8]
add eax, 3
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
mov byte [rbp - 0xd], al
mov eax, dword [rbp - 4]
and eax, 3
test eax, eax
jne 0x1400016e8
movzx eax, byte [rbp - 0x10]
movzx eax, al
mov dword [rbp - 8], eax
movzx eax, byte [rbp - 0xf]
mov byte [rbp - 0x10], al
movzx eax, byte [rbp - 0xe]
mov byte [rbp - 0xf], al
movzx eax, byte [rbp - 0xd]
mov byte [rbp - 0xe], al
mov eax, dword [rbp - 8]
mov byte [rbp - 0xd], al
movzx eax, byte [rbp - 0x10]
movzx eax, al
cdqe
lea rdx, str.cw
movzx eax, byte [rax + rdx]
mov byte [rbp - 0x10], al
movzx eax, byte [rbp - 0xf]
movzx eax, al
cdqe
lea rdx, str.cw
movzx eax, byte [rax + rdx]
mov byte [rbp - 0xf], al
movzx eax, byte [rbp - 0xe]
movzx eax, al
cdqe
lea rdx, str.cw
movzx eax, byte [rax + rdx]
mov byte [rbp - 0xe], al
movzx eax, byte [rbp - 0xd]
movzx eax, al
cdqe
lea rdx, str.cw
movzx eax, byte [rax + rdx]
mov byte [rbp - 0xd], al
movzx edx, byte [rbp - 0x10]
mov eax, dword [rbp - 4]
shr eax, 2
mov ecx, eax
lea rax, [0x140504200]
movzx eax, byte [rcx + rax]
xor eax, edx
mov byte [rbp - 0x10], al
mov eax, dword [rbp - 4]
shl eax, 2
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 4]
sub eax, 4
shl eax, 2
mov dword [rbp - 8], eax
mov edx, dword [rbp - 8]
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx ecx, byte [rax]
movzx edx, byte [rbp - 0x10]
mov r8d, dword [rbp - 0xc]
mov rax, qword [rbp + 0x10]
add rax, r8
xor edx, ecx
mov byte [rax], dl
mov eax, dword [rbp - 8]
add eax, 1
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx ecx, byte [rax]
movzx edx, byte [rbp - 0xf]
mov eax, dword [rbp - 0xc]
add eax, 1
mov r8d, eax
mov rax, qword [rbp + 0x10]
add rax, r8
xor edx, ecx
mov byte [rax], dl
mov eax, dword [rbp - 8]
add eax, 2
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx ecx, byte [rax]
movzx edx, byte [rbp - 0xe]
mov eax, dword [rbp - 0xc]
add eax, 2
mov r8d, eax
mov rax, qword [rbp + 0x10]
add rax, r8
xor edx, ecx
mov byte [rax], dl
mov eax, dword [rbp - 8]
add eax, 3
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx ecx, byte [rax]
movzx edx, byte [rbp - 0xd]
mov eax, dword [rbp - 0xc]
add eax, 3
mov r8d, eax
mov rax, qword [rbp + 0x10]
add rax, r8
xor edx, ecx
mov byte [rax], dl
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0x2b
jbe 0x1400015e2
nop
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14000184c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov eax, ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov byte [rbp + 0x10], al
mov byte [rbp - 1], 0
jmp 0x1400018e5
mov byte [rbp - 2], 0
jmp 0x1400018db
movzx eax, byte [rbp - 1]
movzx edx, byte [rbp - 2]
mov rcx, qword [rbp + 0x18]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
movzx r8d, byte [rax]
movzx eax, byte [rbp + 0x10]
lea edx, [rax*4]
movzx eax, byte [rbp - 1]
add eax, edx
lea edx, [rax*4]
movzx eax, byte [rbp - 2]
add eax, edx
movsxd rdx, eax
mov rax, qword [rbp + 0x20]
add rax, rdx
movzx edx, byte [rax]
movzx eax, byte [rbp - 1]
movzx ecx, byte [rbp - 2]
xor edx, r8d
mov r8, qword [rbp + 0x18]
movsxd rcx, ecx
cdqe
shl rax, 2
add rax, r8
add rax, rcx
mov byte [rax], dl
add byte [rbp - 2], 1
cmp byte [rbp - 2], 3
jbe 0x14000186d
add byte [rbp - 1], 1
cmp byte [rbp - 1], 3
jbe 0x140001867
nop
nop
add rsp, 0x10
pop rbp
ret

Function at 0x1400018f7
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov byte [rbp - 1], 0
jmp 0x14000196a
mov byte [rbp - 2], 0
jmp 0x140001960
movzx eax, byte [rbp - 2]
movzx edx, byte [rbp - 1]
mov rcx, qword [rbp + 0x10]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
movzx ecx, byte [rbp - 2]
movzx r8d, byte [rbp - 1]
cdqe
lea rdx, str.cw
movzx edx, byte [rax + rdx]
mov r9, qword [rbp + 0x10]
movsxd r8, r8d
movsxd rax, ecx
shl rax, 2
add rax, r9
add rax, r8
mov byte [rax], dl
add byte [rbp - 2], 1
cmp byte [rbp - 2], 3
jbe 0x14000190f
add byte [rbp - 1], 1
cmp byte [rbp - 1], 3
jbe 0x140001909
nop
nop
add rsp, 0x10
pop rbp
ret

Function at 0x140002423
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov byte [rbp - 1], 0
jmp 0x140002496
mov byte [rbp - 2], 0
jmp 0x14000248c
movzx eax, byte [rbp - 2]
movzx edx, byte [rbp - 1]
mov rcx, qword [rbp + 0x10]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
movzx ecx, byte [rbp - 2]
movzx r8d, byte [rbp - 1]
cdqe
lea rdx, [0x140504100]
movzx edx, byte [rax + rdx]
mov r9, qword [rbp + 0x10]
movsxd r8, r8d
movsxd rax, ecx
shl rax, 2
add rax, r9
add rax, r8
mov byte [rax], dl
add byte [rbp - 2], 1
cmp byte [rbp - 2], 3
jbe 0x14000243b
add byte [rbp - 1], 1
cmp byte [rbp - 1], 3
jbe 0x140002435
nop
nop
add rsp, 0x10
pop rbp
ret

Function at 0x1400026b7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov byte [rbp - 1], 0
jmp 0x1400026fd
movzx edx, byte [rbp - 1]
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx ecx, byte [rax]
movzx edx, byte [rbp - 1]
mov rax, qword [rbp + 0x18]
add rax, rdx
movzx edx, byte [rax]
movzx r8d, byte [rbp - 1]
mov rax, qword [rbp + 0x10]
add rax, r8
xor edx, ecx
mov byte [rax], dl
add byte [rbp - 1], 1
cmp byte [rbp - 1], 0xf
jbe 0x1400026cd
nop
nop
add rsp, 0x10
pop rbp
ret
Function at 0x140002a40
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [0x140002b52]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x10]
add rax, 4
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [0x140002c07]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x18], rax
call fcn.140002865
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x20]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, dword [0x140507030]
cmp eax, 0x2a
je 0x140002ae9
mov eax, dword [0x140507034]
cmp eax, 0x2a
jne 0x140002af0
mov eax, 1
jmp 0x140002b4c
mov rax, qword [rbp - 0x18]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
call fcn.140002865
mov dword [rbp - 8], eax
mov eax, dword [0x140507030]
cmp eax, 0x2a
je 0x140002b23
mov eax, dword [0x140507034]
cmp eax, 0x2a
jne 0x140002b2a
mov eax, 1
jmp 0x140002b4c
mov eax, dword [rbp - 8]
sub eax, dword [rbp - 4]
cmp eax, 0x2a
jg 0x140002b40
mov eax, dword [rbp - 8]
sub eax, dword [rbp - 4]
cmp eax, 0x25
jg 0x140002b47
mov eax, 1
jmp 0x140002b4c
mov eax, 0
add rsp, 0x50
pop rbp
ret
Function at 0x140002d54
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
mov rdx, rax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
movzx eax, word [rax + 0x14]
movzx eax, ax
add rax, rdx
add rax, 0x18
mov qword [rbp - 0x10], rax
mov dword [rbp - 4], 0
jmp 0x140002f30
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x10]
test eax, eax
jne 0x140002e5c
mov rax, qword [rbp + 0x20]
mov eax, dword [rax + 0x38]
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 0
jle 0x140002f26
mov rax, qword [rbp + 0x28]
mov r10, qword [rax + 0x28]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax + 0x50]
mov eax, dword [rbp - 0x24]
cdqe
mov rcx, qword [rbp - 0x10]
mov ecx, dword [rcx + 0xc]
mov r8d, ecx
mov rcx, qword [rbp - 0x18]
add rcx, r8
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8d, 0x1000
mov rdx, rax
call r10
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x140002e1c
mov eax, 0
jmp 0x140002f4c
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov edx, eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 8], edx
mov eax, dword [rbp - 0x24]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
jmp 0x140002f26
mov rax, qword [rbp - 0x10]
mov edx, dword [rax + 0x14]
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x10]
add eax, edx
mov edx, eax
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.140002d1a
test eax, eax
jne 0x140002e88
mov eax, 0
jmp 0x140002f4c
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x28]
mov rdx, qword [rbp + 0x28]
mov rdx, qword [rdx + 0x50]
mov rcx, qword [rbp - 0x10]
mov ecx, dword [rcx + 0x10]
mov r10d, ecx
mov rcx, qword [rbp - 0x10]
mov ecx, dword [rcx + 0xc]
mov r8d, ecx
mov rcx, qword [rbp - 0x18]
add rcx, r8
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8d, 0x1000
mov rdx, r10
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x140002edb
mov eax, 0
jmp 0x140002f4c
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x10]
mov ecx, eax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x14]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rdx, rax
mov rax, qword [rbp - 0x20]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp - 0x20]
mov edx, eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 8], edx
jmp 0x140002f27
nop
add dword [rbp - 4], 1
add qword [rbp - 0x10], 0x28
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 4], eax
jl 0x140002da7
mov eax, 1
add rsp, 0x60
pop rbp
ret
Function at 0x140005060
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.140005f50
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.140005f50
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 0x1400050d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1405070c4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140005280
mov rax, qword [0x1405070c8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000511c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400051a7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140005100
mov rcx, r12
call fcn.140005b80
mov rbp, rax
test rax, rax
je 0x1400052dd
mov rax, qword [0x1405070c8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140005cb0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1405070c8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400052c2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400051a0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140005230
add dword [0x1405070c4], 1
cmp ebx, 8
jae 0x1400051d8
test bl, 4
jne 0x140005290
test ebx, ebx
je 0x1400051c9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400052b0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1400051c9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14000520a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
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 rdi, qword [0x1405070c8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400051a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140005060
xor edi, edi
jmp 0x140005127
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400051c9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400051c9
mov rax, qword [0x1405070c8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140005060
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140005060
nop
nop dword [rax]