joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d120
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 0x47d15f
jb 0x47d174
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 0x47d1e0
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 0x47d2b4
jb 0x47d313
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.0047d0c0
aeskeygenassist xmm1, xmm0, 1
call fcn.0047d0e0
aeskeygenassist xmm1, xmm2, 2
call fcn.0047d0c0
aeskeygenassist xmm1, xmm0, 2
call fcn.0047d0e0
aeskeygenassist xmm1, xmm2, 4
call fcn.0047d0c0
aeskeygenassist xmm1, xmm0, 4
call fcn.0047d0e0
aeskeygenassist xmm1, xmm2, 8
call fcn.0047d0c0
aeskeygenassist xmm1, xmm0, 8
call fcn.0047d0e0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.0047d0c0
aeskeygenassist xmm1, xmm0, 0x10
call fcn.0047d0e0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.0047d0c0
aeskeygenassist xmm1, xmm0, 0x20
call fcn.0047d0e0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.0047d0c0
jmp 0x47d381
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.0047d020
aeskeygenassist xmm1, xmm2, 2
call fcn.0047d080
aeskeygenassist xmm1, xmm2, 4
call fcn.0047d020
aeskeygenassist xmm1, xmm2, 8
call fcn.0047d080
aeskeygenassist xmm1, xmm2, 0x10
call fcn.0047d020
aeskeygenassist xmm1, xmm2, 0x20
call fcn.0047d080
aeskeygenassist xmm1, xmm2, 0x40
call fcn.0047d020
aeskeygenassist xmm1, xmm2, 0x80
call fcn.0047d080
jmp 0x47d381
aeskeygenassist xmm1, xmm0, 1
call fcn.0047cfe0
aeskeygenassist xmm1, xmm0, 2
call fcn.0047cfe0
aeskeygenassist xmm1, xmm0, 4
call fcn.0047cfe0
aeskeygenassist xmm1, xmm0, 8
call fcn.0047cfe0
aeskeygenassist xmm1, xmm0, 0x10
call fcn.0047cfe0
aeskeygenassist xmm1, xmm0, 0x20
call fcn.0047cfe0
aeskeygenassist xmm1, xmm0, 0x40
call fcn.0047cfe0
aeskeygenassist xmm1, xmm0, 0x80
call fcn.0047cfe0
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.0047cfe0
aeskeygenassist xmm1, xmm0, 0x36
call fcn.0047cfe0
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 0x47d38e
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
pop rbp
ret
Function at 0x482dc0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x482e8a
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 fcn.00403300
xorps xmm15, xmm15
mov r14, qword [0x00699cb8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x482e6f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004af720]
xor ebx, ebx
mov rcx, rdx
call fcn.0044bae0
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 fcn.004833a0
inc rbx
cmp rcx, rbx
jae 0x482e5e
mov edi, 1
lea rsi, [0x004af720]
call fcn.0044bbc0
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, [0x004f1648]
lea rsi, [0x004f0ec0]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00464780
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00482dc0

Function at 0x49b2c0
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x49b9ff
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x49b2ed
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x49b571
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x49b59d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x004f2c80]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004af620]
lea rbx, [0x004f1560]
call fcn.00436520
inc rax
cmp rax, r8
jge 0x49b5c2
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x49b5f7
lea rdi, [0x004af6a0]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x49b2e3
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x49b5db
jmp 0x49b5b0
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.00464780
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.0049b2c0

Function at 0x49bba0
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 0x49bbb7
inc rax
cmp rax, 4
jge 0x49bbcf
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x49bbb4
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x49bbe0
inc rax
cmp rax, 4
jge 0x49bbee
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x49bc17
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 0x49bbfb
jmp 0x49bbdd
Function at 0x140026010
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140026088
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140026088
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140026088
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14002607c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14002609a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14002606a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14002608a

Function at 0x140027518
Capabilities:
Parse pe header

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

Function at 0x140030538
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003029c

Function at 0x141a9ee2c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x141a9ee36
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x141a9ee5f
pop rbp
sub rbp, 0x33
sub rbp, 0x1a9ee2c
sub rsp, 0x20
jmp 0x141a9ee7e
mov rax, 0x1a9ee2c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xfffffffffa0af277
xor byte [rax], dl
inc rax
dec rcx
jne 0x141a9ee9d
jmp 0x141a9eeb4
invalid
Function at 0x10007510
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x10015150], rbx
je 0x10007566
cmp rax, rbx
jne 0x10007559
mov edi, 1
jmp 0x10007566
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10007540
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x1000757b
lea ecx, [rax + 0x1e]
call sub.MSVCR80.dll__amsg_exit
jmp 0x100075ba
mov eax, dword [0x10015148]
test eax, eax
jne 0x100075b0
mov dword [0x10015148], 1
lea rdx, [0x100014d0]
lea rcx, [0x100014b8]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x100075ba
mov eax, 0xff
jmp 0x10007714
mov dword [0x10014314], 1
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x100075e2
lea rdx, [0x100014b0]
lea rcx, [0x10001470]
call sub.MSVCR80.dll__initterm
mov dword [0x10015148], 2
test edi, edi
jne 0x100075ef
xor eax, eax
xchg qword [0x10015150], rax
cmp qword [0x10015168], 0
je 0x10007618
lea rcx, [0x10015168]
call fcn.10007b90
test eax, eax
je 0x10007618
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x10015168]
mov rax, qword [sym.imp.MSVCR80.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
nop
nop
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x100076aa
test cl, cl
je 0x10007640
test edi, edi
jne 0x100076aa
movzx eax, byte [rbx]
test al, al
je 0x10007656
cmp al, 0x20
ja 0x10007656
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007640
test byte [rsp + 0x6c], 1
je 0x10007665
movzx r9d, word [rsp + 0x70]
jmp 0x1000766b
mov r9d, 0xa
mov r8, rbx
xor edx, edx
lea rcx, [0x10000000]
call fcn.10005300
mov dword [0x10014310], eax
cmp dword [0x100142f4], 0
jne 0x10007693
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x10014314], 0
jne 0x100076a8
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x10014310]
jmp 0x1000770d
cmp cl, 0x22
jne 0x100076bc
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.MSVCR80.dll__ismbblead]
test eax, eax
je 0x100076d2
add rbx, 1
mov qword [rsp + 0x28], rbx
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007630
jmp 0x10007714
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.10197000
add rsp, 0x28
jmp 0x10007510
Function at 0x14231b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14231b1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14231b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14231b06f
add dl, dl
jne 0x14231b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14231b0f6
xor eax, eax
add dl, dl
jne 0x14231b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14231b1ad
add dl, dl
jne 0x14231b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14231b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14231b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14231b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14231b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14231b07e
mov eax, 1
add dl, dl
jne 0x14231b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14231b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14231b0fb
sub eax, ebx
mov ebx, 1
jne 0x14231b14c
mov ecx, 1
add dl, dl
jne 0x14231b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14231b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14231b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14231b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14231b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14231b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14231b15d
cmp eax, 0x7d00
jae 0x14231b19b
cmp eax, 0x500
jb 0x14231b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14231b07e
cmp eax, 0x7f
ja 0x14231b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14231b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14231b1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14231b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400113f2
Capabilities:
Terminate process

Disassembly:
jmp 0x14002b300
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001147e
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x140013420
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x20]
lea rcx, [0x14004c0cb]
call fcn.140011726
mov edx, dword [rbp + 0xf8]
mov rcx, qword [rbp + 0xf0]
call fcn.140011500
mov rax, qword [rbp + 0x100]
cmp qword [rax], 0xffffffffffffffff
jne 0x140013475
mov byte [rbp + 0xc0], 1
jmp 0x14001347c
mov byte [rbp + 0xc0], 0
movzx eax, byte [rbp + 0xc0]
test eax, eax
je 0x140013493
mov dword [rbp + 0xc4], 1
jmp 0x14001349d
mov dword [rbp + 0xc4], 0
cmp dword [rbp + 0xc4], 0
je 0x1400134ae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400134e8
xor r9d, r9d
mov rax, qword [rbp + 0xf0]
mov r8d, dword [rax]
mov rax, qword [rbp + 0xf0]
mov rdx, qword [rax + 8]
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x108]
mov dword [rcx], eax
mov rax, qword [rbp + 0x108]
mov eax, dword [rax]
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret
Function at 0x140011500
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x14001da90
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x140
lea rbp, [rsp + 0x30]
lea rcx, [0x14004c1bf]
call fcn.140011726
mov eax, dword [rbp + 0x138]
mov qword [rbp + 8], rax
lea rax, [rbp + 0xe8]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rax, [rbp + 0xe8]
mov rdi, qword [rbp + 0x130]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rbp + 0x130]
mov eax, dword [rax]
add eax, dword [rbp + 0x138]
mov rcx, qword [rbp + 0x130]
mov dword [rcx], eax
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, qword [rbp + 0x130]
mov qword [rcx + 8], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax + 8], 0
jne 0x14001db3b
mov byte [rbp + 0x104], 1
jmp 0x14001db42
mov byte [rbp + 0x104], 0
movzx eax, byte [rbp + 0x104]
test eax, eax
je 0x14001db59
mov dword [rbp + 0x108], 1
jmp 0x14001db63
mov dword [rbp + 0x108], 0
cmp dword [rbp + 0x108], 0
je 0x14001dbc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xc0000017
mov dword [rbp + 0x104], eax
mov ecx, dword [0x140041014]
add ecx, 0xc
mov dword [rbp + 0x108], ecx
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov ecx, dword [rbp + 0x104]
mov dword [rsp + 0x20], ecx
mov ecx, dword [rbp + 0x108]
mov r9d, ecx
lea r8, str.void___cdecl_bwsalloc_struct_BUFFER__unsigned_long_
lea rdx, str.____function__S_failed_on_line__u_with_error_0x_08X_n
mov rcx, rax
call fcn.1400115e1
jmp 0x14001dbd5
mov rax, qword [rbp + 0x130]
mov rdi, qword [rax + 8]
xor eax, eax
mov rcx, qword [rbp + 8]
rep stosb byte [rdi], al
lea rsp, [rbp + 0x110]
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001150a
Capabilities:
Parse pe header

Disassembly:
jmp 0x14002d710
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14002d730
xor al, al
jmp 0x14002d7b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14002d743
xor al, al
jmp 0x14002d7b1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14002d76d
xor al, al
jmp 0x14002d7b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14002d781
xor al, al
jmp 0x14002d7b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14002d793
xor al, al
jmp 0x14002d7b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002d7af
xor al, al
jmp 0x14002d7b1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011749
Capabilities:
Generate random numbers via winapi

Disassembly:
jmp 0x14001dd70
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x148]
mov rax, qword [0x140041040]
xor rax, rbp
mov qword [rbp + 0xe0], rax
lea rcx, [0x14004c1bf]
call fcn.140011726
mov qword [rbp + 8], 0
mov dword [rsp + 0x20], 0
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14001de35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0xd4], eax
mov ecx, dword [0x14004100c]
add ecx, 2
mov dword [rbp + 0xd8], ecx
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov ecx, dword [rbp + 0xd4]
mov dword [rsp + 0x20], ecx
mov ecx, dword [rbp + 0xd8]
mov r9d, ecx
lea r8, str.void___cdecl_csprng_unsigned_char__unsigned_long_
lea rdx, str.____function__S_failed_on_line__u_with_error_0x_08X_n
mov rcx, rax
call fcn.1400115e1
mov r8, qword [rbp + 0x110]
mov edx, dword [rbp + 0x118]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x14001de9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0xd4], eax
mov ecx, dword [0x14004100c]
add ecx, 4
mov dword [rbp + 0xd8], ecx
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov ecx, dword [rbp + 0xd4]
mov dword [rsp + 0x20], ecx
mov ecx, dword [rbp + 0xd8]
mov r9d, ecx
lea r8, str.void___cdecl_csprng_unsigned_char__unsigned_long_
lea rdx, str.____function__S_failed_on_line__u_with_error_0x_08X_n
mov rcx, rax
call fcn.1400115e1
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea rcx, [rbp - 0x30]
lea rdx, [0x140035d40]
call fcn.14001161d
mov rcx, qword [rbp + 0xe0]
xor rcx, rbp
call fcn.14001133e
lea rsp, [rbp + 0xf8]
pop rdi
pop rbp
ret

Function at 0x140011780
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x140013530
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x20]
lea rcx, [0x14004c0cb]
call fcn.140011726
mov rax, qword [rbp + 0x100]
mov dword [rax], 0
mov rax, qword [rbp + 0xf8]
cmp qword [rax], 0xffffffffffffffff
jne 0x14001357c
mov byte [rbp + 0xc0], 1
jmp 0x140013583
mov byte [rbp + 0xc0], 0
movzx eax, byte [rbp + 0xc0]
test eax, eax
je 0x14001359a
mov dword [rbp + 0xc4], 1
jmp 0x1400135a4
mov dword [rbp + 0xc4], 0
cmp dword [rbp + 0xc4], 0
je 0x1400135b5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400135ef
xor r9d, r9d
mov rax, qword [rbp + 0xf0]
mov r8d, dword [rax]
mov rax, qword [rbp + 0xf0]
mov rdx, qword [rax + 8]
mov rax, qword [rbp + 0xf8]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [rbp + 0x100]
mov dword [rcx], eax
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret
Function at 0x18000c160
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18000c229
cmp byte [rcx + 0x71], 0
je 0x18000c229
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18000c21c
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18000c1d8
sub eax, 1
je 0x18000c1dc
cmp eax, 2
jne 0x18000c21c
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x18000c20a
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x18000c21c
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x18000cf60
Capabilities:
Manipulate console buffer

Disassembly:
push rdi
sub rsp, 0x50
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdi, rax
lea rdx, [rsp + 0x30]
xor eax, eax
mov rcx, rdi
mov dword [rsp + 0x60], eax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x18000cfc2
movsx ecx, word [rsp + 0x30]
lea rax, [rsp + 0x68]
movsx r8d, word [rsp + 0x32]
mov dl, 0x20
mov r9d, dword [rsp + 0x60]
imul r8d, ecx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
mov edx, dword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
add rsp, 0x50
pop rdi
ret