joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x4474e2
sub rsp, 0x68
mov qword [rsp + 0x60], rbp
lea rbp, [rsp + 0x60]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0x14]
mov qword [rsp], rax
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 8], rdx
mov dword [rsp + 0x10], ecx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x18], rcx
mov rbx, qword [rsp + 0x88]
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 1
call fcn.00446a00
mov eax, dword [rsp + 0x30]
test eax, 7
jne 0x447402
mov dword [rsp + 0x90], eax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 8], rcx
call fcn.00446fc0
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x10]
mov qword [rsp + 0x58], rcx
mov rdx, qword [rsp + 0x70]
mov rbx, qword [rdx]
mov qword [rsp + 0x48], rbx
movsxd rdx, dword [rdx + 0x14]
mov qword [rsp + 0x40], rdx
call fcn.0042e3a0
lea rax, [0x00706c4e]
mov qword [rsp], rax
mov qword [rsp + 8], 0x10
call fcn.0042ed40
mov rax, qword [rsp + 0x58]
mov qword [rsp], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 8], rax
call fcn.0042ed40
call fcn.0042e600
mov rax, qword [rsp + 0x48]
mov qword [rsp], rax
call fcn.0042ebe0
call fcn.0042e600
mov rax, qword [rsp + 0x80]
mov qword [rsp], rax
call fcn.0042ebe0
call fcn.0042e600
mov rax, qword [rsp + 0x40]
mov qword [rsp], rax
call fcn.0042ebe0
call fcn.0042e600
mov eax, dword [rsp + 0x3c]
movsxd rcx, eax
mov qword [rsp], rcx
call fcn.0042eb70
call fcn.0042e650
call fcn.0042e430
mov eax, dword [rsp + 0x3c]
jmp 0x4473f1
call fcn.00454ef0
jmp fcn.00447380

Function at 0x447d30
Capabilities:
Access peb ldr_data

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x20], rbp
lea rbp, [rsp + 0x20]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
nop
inc dword [rax + 0x244]
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov rcx, qword [rax + 0x30]
nop
nop
mov rdx, rax
mov qword [rcx + 0x138], rax
nop
mov rax, qword [rdx + 0x30]
mov qword [rdx + 0xd8], rax
mov dword [rsp], 0
lea rax, fcn.004377d0
mov qword [rsp + 8], rax
call fcn.0042c690
test eax, eax
jne 0x447e53
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x18], rax
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x2d0], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x2d8], rcx
lea rcx, [rsp + 0x40]
nop
mov qword [rax + 0x2e0], rcx
mov rcx, qword [0x00aafb20]
mov qword [rsp], rcx
lea rcx, [rax + 0x2d0]
mov qword [rsp + 8], rcx
call fcn.00403f30
mov rax, qword [rsp + 0x18]
mov rcx, qword [rax + 0x2e8]
mov rdx, qword [rax + 0x2f0]
mov rax, qword [rax + 0x2f8]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rax
nop
call fcn.0042cf70
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
nop
call fcn.0042cf70
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x44df00
Capabilities:
Access peb ldr_data

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x44dfe0
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x18], xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [0x00454730]
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00454da0
mov rax, qword [rsp + 8]
mov qword [rsp + 0x88], rax
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
call fcn.00454ef0
jmp fcn.0044df00
Function at 0x4908b0
Capabilities:
Encode data using base64

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x4909c0
sub rsp, 0x30
mov qword [rsp + 0x28], rbp
lea rbp, [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + 8]
lea rbx, [rdx + 0x2e]
neg rbx
imul rbx, rbx, 0x1c
movabs rax, 0x5816058160581606
mov rsi, rdx
imul rbx
sar rbx, 0x3f
sar rdx, 5
sub rdx, rbx
lea rbx, [rdx + 0x15c]
sar rbx, 0x3f
shr rbx, 0x3d
lea rdx, [rbx + rdx]
lea rdx, [rdx + 0x15c]
sar rdx, 3
jmp 0x49092a
mov rdx, rax
cmp rdx, 0x57
jae 0x4909b9
lea rax, [rdx + rdx*2]
lea rbx, [0x009bb8c0]
mov rdi, qword [rbx + rax*8 + 8]
lea r8, [rsi + rdi]
lea r8, [r8 + 0x40]
cmp r8, 0xffffffffffffffc4
jge 0x490958
lea rax, [rdx + 1]
jmp 0x490927
cmp r8, 0xffffffffffffffe0
jle 0x490964
lea rax, [rdx - 1]
jmp 0x490927
mov qword [rsp + 0x20], rdx
mov rdx, rax
shl rax, 3
mov rdx, qword [rbx + rdx*8]
movzx eax, byte [rbx + rax + 0x10]
mov qword [rsp], rcx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rdi
mov byte [rsp + 0x18], al
call fcn.00490830
mov rax, qword [rsp + 0x20]
mov rcx, rax
shl rax, 3
add rax, 0xfffffffffffffea4
neg rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
mov rbp, qword [rsp + 0x28]
add rsp, 0x30
ret
call fcn.0042c350
ud2
call fcn.00454ef0
jmp fcn.004908b0
Function at 0x645110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x64523b
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
xor edi, edi
xor r8d, r8d
jmp 0x645160
add rdi, 2
lea r8d, [r9 + 1]
cmp rdi, rax
jge 0x6451d8
lea r9, [rdi + 1]
cmp r9, rax
jae 0x645234
mov r9d, dword [rcx + rdi*4 + 4]
cmp rdi, rax
jae 0x645234
mov r10d, dword [rcx + rdi*4]
dec r10d
cmp r8d, r10d
jg 0x645158
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x3c], r9d
mov qword [rsp], rbx
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x1c], r10d
call fcn.00644b40
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x40]
mov r9d, dword [rsp + 0x3c]
jmp 0x645158
cmp r8d, 0x10ffff
jle 0x645203
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], rdx
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
mov qword [rsp], rbx
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x1c], 0x10ffff
call fcn.00644b40
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
jmp 0x6451e1
call fcn.0042c350
ud2
call fcn.00454ef0
jmp fcn.00645110
Function at 0x645250
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x6454b6
sub rsp, 0x78
mov qword [rsp + 0x70], rbp
lea rbp, [rsp + 0x70]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
test rdx, rdx
jle 0x645499
mov qword [rsp + 0x58], rdx
mov rbx, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x90]
xor r8d, r8d
jmp 0x64531d
mov dword [rsp + 0x3c], r9d
mov qword [rsp], rsi
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov dword [rsp + 0x18], r9d
mov dword [rsp + 0x1c], r9d
call fcn.00644b40
mov eax, dword [rsp + 0x3c]
mov r10d, dword [rsp + 0x4c]
lea r9d, [r10 + rax]
mov rsi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
mov r11d, dword [rsp + 0x48]
cmp r9d, r11d
jle 0x6452b2
inc r8
cmp r8, rdx
jge 0x64534b
add rcx, 6
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x50], r8
movzx r9d, word [rcx]
movzx r10d, word [rcx + 4]
movzx r11d, word [rcx + 2]
cmp r10d, 1
je 0x645451
mov dword [rsp + 0x4c], r10d
mov dword [rsp + 0x48], r11d
jmp 0x64530c
mov rcx, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
test rax, rax
jle 0x6453ef
mov qword [rsp + 0x58], rax
xor edx, edx
jmp 0x6453c8
mov dword [rsp + 0x38], r8d
mov qword [rsp], rsi
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x1c], r8d
call fcn.00644b40
mov eax, dword [rsp + 0x38]
mov r9d, dword [rsp + 0x44]
lea r8d, [r9 + rax]
mov rsi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
mov r10d, dword [rsp + 0x40]
cmp r8d, r10d
jle 0x645365
inc rdx
cmp rdx, rax
jge 0x6453ef
add rcx, 0xc
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x50], rdx
mov r8d, dword [rcx]
mov r9d, dword [rcx + 8]
mov r10d, dword [rcx + 4]
cmp r9d, 1
je 0x645411
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x40], r10d
jmp 0x6453b7
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0xb0], rdi
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov qword [rsp], rsi
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x1c], r10d
call fcn.00644b40
mov rsi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
jmp 0x6453bc
mov qword [rsp], rsi
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov dword [rsp + 0x18], r9d
mov dword [rsp + 0x1c], r11d
call fcn.00644b40
mov rsi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
jmp 0x645311
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
jmp 0x64534b
call fcn.00454ef0
jmp fcn.00645250
Function at 0x45e200
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
cmp word [0x00400000], 0x5a4d
je 0x45e221
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x45e242
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x45e280
cmp ecx, 0x20b
je 0x45e25e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
cmp dword [rax + 0x84], 0xe
ja 0x45e26f
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
cmp dword [rax + 0x74], 0xe
ja 0x45e28e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x60], ebx
mov ecx, 1
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x00483dc8], 0xffffffffffffffff
mov qword [0x00483dd0], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x00481da4]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x00481da0]
mov dword [rcx], eax
call fcn.0045d2e0
cmp dword [0x004817b0], 0
jne 0x45e2f7
lea rcx, [fcn.0045d2e0]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x00460498]
lea rcx, [0x00460490]
call fcn.005d7000
mov r11d, dword [0x00481d9c]
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x00481d98]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x00460488]
lea rcx, [0x00460430]
call sub.msvcrt.dll__initterm
mov r11, qword [rsp + 0x38]
mov rax, qword [sym.imp.msvcrt.dll___initenv]
mov qword [rax], r11
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.0045ae04
mov edi, eax
mov dword [rsp + 0x34], eax
test ebx, ebx
jne 0x45e383
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x45e3a4
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret
Function at 0x140001560
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
xor r8d, r8d
cmp r8, rdx
jae 0x14000159c
mov r9b, byte [rcx + r8]
test r9b, r9b
jne 0x14000157b
inc r8
jmp 0x140001568
lea r10d, [r9 - 0x20]
cmp r9b, 0x61
movzx r9d, r9b
movzx r10d, r10b
cmovb r10d, r9d
imul r9d, eax, 0x21
movzx eax, r10b
add eax, r9d
jmp 0x140001576
ret
Function at 0x140008e88
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rdi
push rbx
not ecx
lea rax, [0x1400b21c4]
mov r9d, 0xff
cmp r8, 0x40
jb 0x140008fc3
mov r11, r8
shr r11, 4
xor r10d, r10d
cmp r10, 0x40
je 0x140008fb8
sub r11, 1
jb 0x140008fea
movzx esi, byte [rdx + r10 + 0xe]
mov esi, dword [rax + rsi*4 + 0x400]
movzx edi, byte [rdx + r10 + 0xf]
xor esi, dword [rax + rdi*4]
movzx edi, byte [rdx + r10 + 0xd]
xor esi, dword [rax + rdi*4 + 0x800]
movzx edi, byte [rdx + r10 + 0xc]
xor esi, dword [rax + rdi*4 + 0xc00]
movzx edi, byte [rdx + r10 + 0xb]
xor esi, dword [rax + rdi*4 + 0x1000]
movzx edi, byte [rdx + r10 + 0xa]
xor esi, dword [rax + rdi*4 + 0x1400]
movzx edi, byte [rdx + r10 + 9]
xor esi, dword [rax + rdi*4 + 0x1800]
movzx edi, byte [rdx + r10 + 8]
xor esi, dword [rax + rdi*4 + 0x1c00]
movzx edi, byte [rdx + r10 + 7]
xor esi, dword [rax + rdi*4 + 0x2000]
movzx edi, byte [rdx + r10 + 6]
xor esi, dword [rax + rdi*4 + 0x2400]
movzx edi, byte [rdx + r10 + 5]
xor esi, dword [rax + rdi*4 + 0x2800]
movzx edi, byte [rdx + r10 + 4]
xor esi, dword [rax + rdi*4 + 0x2c00]
mov edi, ecx
shr edi, 0x18
movzx ebx, byte [rdx + r10 + 3]
xor ebx, edi
xor esi, dword [rax + rbx*4 + 0x3000]
mov edi, ecx
shr edi, 0x10
and edi, r9d
movzx ebx, byte [rdx + r10 + 2]
xor ebx, edi
xor esi, dword [rax + rbx*4 + 0x3400]
mov edi, ecx
shr edi, 8
and edi, r9d
movzx ebx, byte [rdx + r10 + 1]
xor ebx, edi
xor esi, dword [rax + rbx*4 + 0x3800]
and ecx, r9d
movzx edi, byte [rdx + r10]
xor edi, ecx
xor esi, dword [rax + rdi*4 + 0x3c00]
add r10, 0x10
mov ecx, esi
jmp 0x140008eae
sub r8, r10
add rdx, r10
jmp 0x140008e9a
xor r9d, r9d
cmp r8, r9
je 0x140008fe2
mov r10b, byte [rdx + r9]
xor r10b, cl
movzx r10d, r10b
shr ecx, 8
xor ecx, dword [rax + r10*4]
inc r9
jmp 0x140008fc6
not ecx
mov eax, ecx
pop rbx
pop rdi
pop rsi
ret
ud2
Function at 0x1400099dd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
sub rsp, 0x58
cmp byte [rcx + 0x79], 0
je 0x1400099f0
xor esi, esi
jmp 0x140009bb9
mov rdi, rcx
mov rsi, qword [rcx + 0x48]
test byte [rcx], 1
je 0x140009a2b
lea rdx, [rdi + 8]
mov r9, qword [rdi + 0x50]
cmp qword [rdi + 0x38], 0xffffffffffffffff
mov rax, qword [rdi + 0x58]
mov rcx, qword [rdi + 0x60]
je 0x140009b20
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 0
jmp 0x140009b2f
cmp byte [rdi + 0x1a], 0
jne 0x140009b47
mov rax, qword [rdi + 0x50]
mov rcx, qword [rdi + 8]
mov dl, byte [rdi + 0x18]
mov r8d, edx
xor r8b, 1
mov byte [rdi + 0x18], r8b
test rcx, rcx
je 0x140009a66
cmp rax, rcx
jbe 0x140009a60
cmp byte [rsi + rcx], 0xbf
jg 0x140009a66
jmp 0x140009bc3
jne 0x140009bc3
cmp rcx, rax
je 0x140009b3e
movzx r9d, byte [rsi + rcx]
test r9b, r9b
js 0x140009a7e
mov r8d, r9d
jmp 0x140009ada
mov r8d, r9d
and r8d, 0x1f
movzx r11d, byte [rsi + rcx + 1]
and r11d, 0x3f
cmp r9b, 0xdf
jbe 0x140009aca
movzx r10d, byte [rsi + rcx + 2]
shl r11d, 6
and r10d, 0x3f
or r10d, r11d
cmp r9b, 0xf0
jb 0x140009ad3
movzx r9d, byte [rsi + rcx + 3]
and r8d, 7
shl r8d, 0x12
shl r10d, 6
and r9d, 0x3f
or r9d, r10d
or r8d, r9d
jmp 0x140009ada
shl r8d, 6
or r8d, r11d
jmp 0x140009ada
shl r8d, 0xc
or r8d, r10d
test dl, 1
jne 0x140009b4b
cmp r8d, 0x110000
je 0x140009b43
mov edx, 1
cmp r8d, 0x80
jb 0x140009b14
mov edx, 2
cmp r8d, 0x800
jb 0x140009b14
cmp r8d, 0x10000
mov edx, 4
sbb rdx, 0
add rcx, rdx
mov qword [rdi + 8], rcx
jmp 0x140009a3d
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 1
lea rcx, [rsp + 0x40]
mov r8, rsi
call fcn.14005d99e
jmp 0x140009b62
test dl, 1
jne 0x140009b4e
mov byte [rdi + 0x1a], 1
xor eax, eax
jmp 0x140009b5d
mov rax, rcx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov eax, 1
mov qword [rsp + 0x40], rax
test byte [rsp + 0x40], 1
je 0x140009b83
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x68]
sub rdx, rcx
add rsi, rcx
mov qword [rdi + 0x68], rax
jmp 0x140009bb9
cmp byte [rdi + 0x79], 0
jne 0x1400099e9
mov byte [rdi + 0x79], 1
cmp byte [rdi + 0x78], 1
jne 0x140009ba1
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
jmp 0x140009bb2
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
cmp rdx, rsi
je 0x1400099e9
sub rdx, rsi
add rsi, qword [rdi + 0x48]
mov rax, rsi
add rsp, 0x58
pop rdi
pop rsi
ret
ud2
Function at 0x140017681
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call fcn.140016f32
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
cmp eax, 1
je 0x1400176b5
cmp eax, 2
jne 0x1400176c2
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x140084da0
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x140085140
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x1400a1dd8
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
lea rsp, [rsp - 0xb8]
movaps xmmword [rsp + 0x10], xmm6
movaps xmmword [rsp + 0x20], xmm7
movaps xmmword [rsp + 0x30], xmm8
movaps xmmword [rsp + 0x40], xmm9
movaps xmmword [rsp + 0x50], xmm10
movaps xmmword [rsp + 0x60], xmm11
movaps xmmword [rsp + 0x70], xmm12
movaps xmmword [rsp + 0x80], xmm13
movaps xmmword [rsp + 0x90], xmm14
movaps xmmword [rsp + 0xa0], xmm15
movdqu xmm0, xmmword [rdi]
call fcn.140085000
call fcn.140084680
movdqu xmmword [rsi], xmm0
movaps xmm6, xmmword [rsp + 0x10]
movaps xmm7, xmmword [rsp + 0x20]
movaps xmm8, xmmword [rsp + 0x30]
movaps xmm9, xmmword [rsp + 0x40]
movaps xmm10, xmmword [rsp + 0x50]
movaps xmm11, xmmword [rsp + 0x60]
movaps xmm12, xmmword [rsp + 0x70]
movaps xmm13, xmmword [rsp + 0x80]
movaps xmm14, xmmword [rsp + 0x90]
movaps xmm15, xmmword [rsp + 0xa0]
lea rsp, [rsp + 0xb8]
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
ret
movups xmm2, xmmword [rcx]
mov eax, dword [r8 + 0xf0]
movups xmm0, xmmword [r8]
movups xmm1, xmmword [r8 + 0x10]
lea r8, [r8 + 0x20]
xorps xmm2, xmm0
aesenc xmm2, xmm1
dec eax
movups xmm1, xmmword [r8]
lea r8, [r8 + 0x10]
jne 0x14008515a
aesenclast xmm2, xmm1
pxor xmm0, xmm0
pxor xmm1, xmm1
movups xmmword [rdx], xmm2
pxor xmm2, xmm2
ret
push rbx
push rsi
push rdi
sub rsp, 0x430
mov rax, qword [0x140126080]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rsi, rdx
mov rbx, rcx
mov rdx, r8
lea rcx, [rsp + 0x60]
mov rdi, r8
call fcn.1400a0ecc
mov r8d, 1
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.1400a1a30
mov edx, dword [rdi + 0xf0]
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1400a0e00
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rsi
call fcn.1400a0f5c
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1400aa9d0
add rsp, 0x430
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001c86d
Capabilities:
Hash data using sha512

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1d0
mov rbx, r9
mov r14, r8
mov rsi, rcx
movups xmm0, xmmword [0x1400d3538]
lea rdi, [rsp + 0x20]
movups xmmword [rdi + 0x38], xmm0
movups xmm0, xmmword [0x1400d3528]
movups xmmword [rdi + 0x28], xmm0
movups xmm0, xmmword [0x1400d3518]
movups xmmword [rdi + 0x18], xmm0
movups xmm0, xmmword [0x1400d3508]
movups xmmword [rdi + 8], xmm0
lea rax, [0x1400d34d8]
xorps xmm0, xmm0
movups xmmword [rdi + 0x50], xmm0
movups xmmword [rdi + 0x60], xmm0
movups xmmword [rdi + 0x70], xmm0
movups xmmword [rdi + 0x80], xmm0
movups xmmword [rdi + 0x90], xmm0
movups xmmword [rdi + 0xa0], xmm0
movups xmmword [rdi + 0xb0], xmm0
movups xmmword [rdi + 0xc0], xmm0
mov qword [rdi], rax
and qword [rdi + 0x48], 0
mov r15, qword [rsp + 0x220]
and qword [rdi + 0xd0], 0
mov r8d, 0x20
mov rcx, rdi
call fcn.14001ad66
mov r8d, 0x20
mov rcx, rdi
mov rdx, r14
call fcn.14001ad66
mov rcx, rdi
mov rdx, rbx
mov r8, r15
call fcn.14001ad66
lea rbx, [rsp + 0xf8]
mov r8d, 0xd8
mov rcx, rbx
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rsi
mov rdx, rbx
call fcn.14001aea4
nop
add rsp, 0x1d0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140023a53
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp

Function at 0x140056dce
Capabilities:
Write file on windows

Disassembly:
mov r9, rcx
mov ecx, 0xfffffff4
hlt
invalid
invalid
invalid
jmp fcn.140056e23
Function at 0x140056e23
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
test r8, r8
je 0x140056e65
mov rbx, r9
mov r15, r8
mov r14, rdx
call qword [sym.imp.kernel32.dll_GetStdHandle]
mov esi, 1
test rax, rax
je 0x140056e6e
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140056e7d
call fcn.140056ae1
mov rdx, rax
jmp 0x140057069
xor edx, edx
xor esi, esi
jmp 0x140057069
movabs rdx, 0x600000002
jmp 0x140057069
lea rdx, [rsp + 0x78]
and dword [rdx], 0
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetConsoleMode]
test eax, eax
je 0x140056ee1
movzx eax, byte [rbx + 4]
test rax, rax
je 0x140056f55
cmp al, 4
jae 0x14005703c
mov cl, byte [r14]
mov edx, ecx
and dl, 0xc0
neg dl
jno 0x140056fb9
mov byte [rbx + rax], cl
mov al, byte [rbx + 4]
inc al
mov byte [rbx + 4], al
movzx ecx, byte [rbx]
lea rdx, [0x1400d95f0]
movzx r14d, byte [rcx + rdx]
cmp r14b, al
jbe 0x140056ff0
mov edx, 1
jmp 0x140056e67
movups xmm0, xmmword [0x1400da3f8]
lea rax, [rsp + 0x50]
movaps xmmword [rax], xmm0
mov ecx, 0xffffffff
cmp r15, rcx
cmovb rcx, r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
add byte [0x14005702b], bh
add dword [rax], eax
invalid
mov r8d, 0x1000
mov byte [rbx + 4], 0
mov rsi, rax
jmp 0x140057069
cmp al, 5
jae 0x14005703c
movzx r8d, al
lea rsi, [rsp + 0x78]
mov rcx, rsi
mov rdx, rbx
call fcn.140005cab
mov byte [rbx + 4], 0
test byte [rsi], 1
jne 0x14005705d
cmp qword [rsp + 0x88], r14
jne 0x14005703c
mov rdx, qword [rsp + 0x80]
mov rcx, rdi
mov r8, r14
call fcn.1400570cc
test rax, rax
jne 0x140056feb
cmp r14, rdx
je 0x140056eda
ud2
mov esi, 1
lea rdx, str.Windows_stdio_in_console_mode_does_not_support_writing_non_UTF_8_byte_sequences
mov rax, rsi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret