joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180376b00
Capabilities:
Hash data using tiger

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1805d7e8c]
call fcn.18025a230
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rax]
xor rax, rcx
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
shr rax, 0
movzx eax, al
lea rcx, [0x1804de070]
lea rdx, [0x1804de070]
mov r8, qword [rsp + 0x20]
shr r8, 0x10
movzx r8d, r8b
mov rdx, qword [rdx + r8*8 + 0x800]
mov rax, qword [rcx + rax*8]
xor rax, rdx
lea rcx, [0x1804de070]
mov rdx, qword [rsp + 0x20]
shr rdx, 0x20
movzx edx, dl
xor rax, qword [rcx + rdx*8 + 0x1000]
lea rcx, [0x1804de070]
mov rdx, qword [rsp + 0x20]
shr rdx, 0x30
movzx edx, dl
xor rax, qword [rcx + rdx*8 + 0x1800]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
lea rax, [0x1804de070]
mov rcx, qword [rsp + 0x20]
shr rcx, 8
movzx ecx, cl
lea rdx, [0x1804de070]
mov r8, qword [rsp + 0x20]
shr r8, 0x18
movzx r8d, r8b
mov rdx, qword [rdx + r8*8 + 0x1000]
mov rax, qword [rax + rcx*8 + 0x1800]
xor rax, rdx
lea rcx, [0x1804de070]
mov rdx, qword [rsp + 0x20]
shr rdx, 0x28
movzx edx, dl
xor rax, qword [rcx + rdx*8 + 0x800]
mov rcx, qword [rsp + 0x20]
shr rcx, 0x38
movzx ecx, cl
lea rdx, [0x1804de070]
xor rax, qword [rdx + rcx*8]
mov rcx, qword [rsp + 0x48]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 5
je 0x180376c74
cmp dword [rsp + 0x28], 7
je 0x180376c8c
cmp dword [rsp + 0x28], 9
je 0x180376ca4
jmp 0x180376cba
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x20]
lea rax, [rax + rcx*4]
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
jmp 0x180376cba
mov rax, qword [rsp + 0x20]
shl rax, 3
sub rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
jmp 0x180376cba
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x20]
lea rax, [rax + rcx*8]
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
add rsp, 0x30
pop rdi
ret
Function at 0x180385b60
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x30]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
lea rcx, [0x1805d871b]
call fcn.18025a230
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x20], 0xf0000020
mov r9d, 1
lea r8, [0x18056a710]
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180385bee
mov dword [rsp + 0x20], 0xf0000028
mov r9d, 1
lea r8, [0x18056a740]
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180385bee
xor eax, eax
jmp 0x180385c2b
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp eax, 1
jne 0x180385c1c
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rsp + 0x68]
jmp 0x180385c2b
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804efae0]
call fcn.18025a000
mov rax, rdi
add rsp, 0x50
pop rdi
ret
Function at 0x18038b1b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rcx, [0x1805d8b56]
call fcn.18025a230
cmp dword [rsp + 0x60], 0
je 0x18038b39a
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x68]
mov ecx, dword [rcx + 4]
cmp dword [rax + 8], ecx
jne 0x18038b338
mov rax, qword [rsp + 0x68]
cmp dword [rax + 0xc], 0
jne 0x18038b260
mov dword [rsp + 0x20], 0
jmp 0x18038b215
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x10]
cmp dword [rsp + 0x20], eax
jge 0x18038b25e
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
movzx eax, byte [rcx + rax + 0x14]
inc eax
and eax, 0xff
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx + 0x14], al
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
movzx eax, byte [rcx + rax + 0x14]
test eax, eax
je 0x18038b25c
jmp 0x18038b25e
jmp 0x18038b20b
jmp 0x18038b2c3
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 4]
dec eax
mov dword [rsp + 0x20], eax
jmp 0x18038b27a
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x10]
cmp dword [rsp + 0x20], eax
jl 0x18038b2c3
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
movzx eax, byte [rcx + rax + 0x14]
inc eax
and eax, 0xff
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx + 0x14], al
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
movzx eax, byte [rcx + rax + 0x14]
test eax, eax
je 0x18038b2c1
jmp 0x18038b2c3
jmp 0x18038b270
mov rax, qword [rsp + 0x68]
add rax, 0x138
mov rcx, qword [rsp + 0x68]
add rcx, 0xa4
mov rdx, qword [rsp + 0x68]
add rdx, 0x14
mov qword [rsp + 0x28], rdx
mov r8, qword [rsp + 0x68]
movsxd r8, dword [r8]
imul r8, r8, 0xc0
mov qword [rsp + 0x30], r8
lea r9, [0x180587280]
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x28]
mov rcx, rax
mov rax, qword [rsp + 0x30]
call qword [r9 + rax + 0x28]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x18038b32c
mov eax, dword [rsp + 0x24]
jmp 0x18038b39c
mov rax, qword [rsp + 0x68]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x68]
movsxd rcx, dword [rcx + 8]
mov rdx, qword [rsp + 0x68]
movzx ecx, byte [rdx + rcx + 0xa4]
xor eax, ecx
mov rcx, qword [rsp + 0x58]
mov byte [rcx], al
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 8]
inc eax
mov rcx, qword [rsp + 0x68]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x60]
dec eax
mov dword [rsp + 0x60], eax
jmp 0x18038b1d5
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x18039d180
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x20]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
mov rax, qword [0x180563540]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rcx, [0x1805d9991]
call fcn.18025a230
mov dword [rsp + 0x20], 0
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x18039d3de
mov dword [rsp + 0x38], 0x1c
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x18039d3d3
mov dword [rsp + 0x20], 1
mov eax, dword [rsp + 0x38]
cmp rax, 0x10
jb 0x18039d35c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x44], eax
jne 0x18039d35c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x40], eax
je 0x18039d35c
mov rax, qword [rsp + 0x90]
cmp qword [rax], 0
jne 0x18039d2a4
mov rax, qword [rsp + 0x90]
mov dword [rax + 8], 0x80
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 8]
shl rax, 2
mov r8, rax
xor edx, edx
mov rcx, qword [0x18058a7a8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
mov rax, qword [rsp + 0x90]
cmp qword [rax], 0
jne 0x18039d29f
mov dword [rsp + 0x20], 0
jmp 0x18039d37b
jmp 0x18039d327
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x90]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0xc], ecx
jb 0x18039d327
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 8]
shl eax, 1
mov rcx, qword [rsp + 0x90]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 8]
shl rax, 2
mov r9, rax
mov rax, qword [rsp + 0x90]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x18058a7a8]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x18039d317
mov dword [rsp + 0x20], 0
jmp 0x18039d37b
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx]
mov edx, dword [rsp + 0x40]
mov dword [rcx + rax*4], edx
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0xc]
inc eax
mov rcx, qword [rsp + 0x90]
mov dword [rcx + 0xc], eax
mov dword [rsp + 0x38], 0x1c
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18039d20d
cmp dword [rsp + 0x20], 0
je 0x18039d395
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18039d395
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0
jne 0x18039d3d3
mov rax, qword [rsp + 0x90]
cmp qword [rax], 0
je 0x18039d3d3
mov rax, qword [rsp + 0x90]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x18058a7a8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsp + 0x90]
mov qword [rax], 0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1804f3ea0]
call fcn.18025a000
mov eax, edi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18025a470
add rsp, 0x80
pop rdi
ret
Function at 0x18039d420
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1805d9991]
call fcn.18025a230
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.18039d180
test eax, eax
jne 0x18039d486
mov dword [rsp + 0x20], 9
jmp 0x18039d508
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x18039d508
mov dword [rsp + 0x24], 0
jmp 0x18039d4a5
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x24], eax
jae 0x18039d508
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18039d506
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.18039cf50
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18039d49b
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

Function at 0x18039d520
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1805d9991]
call fcn.18025a230
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x18039d5bc
mov dword [rsp + 0x20], 0
jmp 0x18039d555
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x18039d5a5
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18039d5a3
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18039d54b
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x18058a7a8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x30
pop rdi
ret
Function at 0x18039d5d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
lea rcx, [0x1805d9991]
call fcn.18025a230
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x18058a7e0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18039d662
mov rax, qword [rsp + 0x50]
sub rax, 5
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18039d68b
mov eax, 0xa
jmp 0x18039d7c5
cmp dword [rsp + 0x88], 0
je 0x18039d6f9
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x50]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18039d6f7
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0xf9
jmp 0x18039d745
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18039d729
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.1803ccbf0
jmp 0x18039d745
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.1803ccbf0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804f3f00]
call fcn.18025a000
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x18039ed50
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1805d9ae5]
call fcn.18025a230
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x18039edb6
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x18039edb6
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x18039edb6
xor eax, eax
jmp 0x18039ee02
mov dword [rsp + 0x20], 1
jmp 0x18039edca
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x20], eax
jae 0x18039edfd
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x18039edfb
xor eax, eax
jmp 0x18039ee02
jmp 0x18039edc0
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x1803a26f0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1805d9ba5]
call fcn.18025a230
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x50]
mov eax, dword [rax]
xor eax, ecx
and eax, 0xff
cdqe
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx]
shr ecx, 8
mov rdx, qword [rsp + 0x48]
mov eax, dword [rdx + rax*4]
xor eax, ecx
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
and eax, 0xff
mov rcx, qword [rsp + 0x40]
add eax, dword [rcx + 4]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x40]
imul eax, dword [rax + 4], 0x8088405
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
shr eax, 0x18
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x20]
mov eax, dword [rax + 8]
xor eax, ecx
and eax, 0xff
cdqe
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 8]
shr ecx, 8
mov rdx, qword [rsp + 0x48]
mov eax, dword [rdx + rax*4]
xor eax, ecx
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 8], eax
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1803adc20
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
lea rcx, [0x1805d9bf0]
call fcn.18025a230
mov rax, qword [rsp + 0x30]
lea rcx, [0x1804f57a0]
mov qword [rax + 0x60], rcx
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x70], 9
mov rax, qword [rsp + 0x30]
lea rcx, [0x1804f5fa0]
mov qword [rax + 0x68], rcx
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x74], 5
add rsp, 0x20
pop rdi
ret
Function at 0x1803b5f50
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
lea rcx, [0x1805d9c2c]
call fcn.18025a230
lea rax, [0x1804f62f0]
add rsp, 0x20
pop rdi
ret

Function at 0x1803b60c0
Capabilities:
Encrypt data using rc4 prga
Hash data with crc32

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x30
lea rcx, [0x1805d9c2c]
call fcn.18025a230
mov dword [rsp + 0x20], 0
jmp 0x1803b60e9
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 4
jge 0x1803b6113
mov eax, dword [rsp + 0x40]
shr eax, 8
mov ecx, dword [rsp + 0x40]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1804f62f0]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 0x40], eax
jmp 0x1803b60df
mov eax, dword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1803b6130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x30
lea rcx, [0x1805d9c2c]
call fcn.18025a230
mov dword [rsp + 0x20], 0
jmp 0x1803b6159
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 4
jge 0x1803b6186
mov eax, dword [rsp + 0x40]
shl eax, 8
mov ecx, dword [rsp + 0x40]
shr ecx, 0x18
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1804f66f0]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 0x40], eax
jmp 0x1803b614f
mov eax, dword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1803cb500
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x30]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
lea rcx, [0x1805da4c5]
call fcn.18025a230
cmp qword [0x18058a7c8], 0
jne 0x1803cb5a3
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x20], 0xf0000020
mov r9d, 1
lea r8, [0x180575c90]
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1803cb597
mov dword [rsp + 0x20], 0xf0000028
mov r9d, 1
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1803cb597
mov eax, 0xffffffff
jmp 0x1803cb5d4
mov rax, qword [rsp + 0x38]
mov qword [0x18058a7c8], rax
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x68]
mov rcx, qword [0x18058a7c8]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp eax, 1
jne 0x1803cb5c8
mov dword [rsp + 0x44], 0
jmp 0x1803cb5d0
mov dword [rsp + 0x44], 0xffffffff
mov eax, dword [rsp + 0x44]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804fc6b0]
call fcn.18025a000
mov rax, rdi
add rsp, 0x50
pop rdi
ret
Function at 0x1400016c0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14006c650]
xor rax, rsp
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140001704
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenProcessToken:_d_n
mov edx, eax
call fcn.1400349d8
lea r8, [rsp + 0x3c]
lea rdx, [0x14005ff98]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x140001730
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.LookupPrivilegeValue:_d_n
mov edx, eax
call fcn.1400349d8
mov rcx, qword [rsp + 0x30]
xor eax, eax
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140001779
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.AdjustTokenPrivilege:_d_n
mov edx, eax
call fcn.1400349d8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14000179c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CloseHandle:_d_n
mov edx, eax
call fcn.1400349d8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140033e20
add rsp, 0x58
ret
Function at 0x140035ab8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140035920
Function at 0x140002e10
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140002e6d
lea rbx, [0x14005f320]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002e54
cmp r10, 2
jb 0x140002e54
cmp byte [r9], r8b
jne 0x140002e54
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140002e30
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002eaf
lea rbx, [0x14005f320]
cmp r8b, 0x23
jne 0x140002e93
cmp byte [r9], r8b
jne 0x140002e93
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002e80
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002ff0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000300a
mov qword [r8], 0
lea rdx, [0x14005ed7c]
call fcn.140002ec0
mov rbx, rax
test rax, rax
jne 0x14000302a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140003101
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003101
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140003101
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003101
cmp rdi, 0xffffffffffffffff
je 0x140003101
mov rax, qword [0x1400a2400]
test rax, rax
je 0x14000309e
inc dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140003101
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x1400030ee
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400a2400]
test rax, rax
je 0x1400030e3
dec dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000310a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1400030fc
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000310c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret