joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140189550
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.1401897a0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x14018966a
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1401895b4
mov rax, qword [0x140194008]
cmp qword [rsp + 0x20], rax
ja 0x1401895b4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x140189576
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1401895e5
jmp 0x14018966a
cmp dword [rsp + 0x50], 0x10000
jne 0x14018964d
cmp qword [rsp + 0x48], 0x10000
jb 0x14018964d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14018962b
mov rax, qword [rsp + 0x28]
jmp 0x14018966c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x14018963b
xor eax, eax
jmp 0x14018966c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140189665
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1401897a0
mov qword [rsp + 0x20], rax
jmp 0x140189576
xor eax, eax
add rsp, 0x68
ret

Function at 0x140189680
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1401897e0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x140189796
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1401896db
mov rax, qword [0x140194008]
cmp qword [rsp + 0x20], rax
ja 0x1401896db
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x14018969d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x14018970c
jmp 0x140189796
cmp dword [rsp + 0x50], 0x10000
jne 0x140189774
cmp qword [rsp + 0x48], 0x10000
jb 0x140189774
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140189752
mov rax, qword [rsp + 0x28]
jmp 0x140189798
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x140189762
xor eax, eax
jmp 0x140189798
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140189791
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1401897e0
mov qword [rsp + 0x20], rax
jmp 0x14018969d
xor eax, eax
add rsp, 0x68
ret
Function at 0x140189830
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140189dc0
mov qword [rsp + 0x28], 0
cmp qword [0x140194b58], 0
jne 0x140189878
cmp qword [0x140194b50], 0
je 0x140189878
mov rax, qword [0x140194b50]
mov qword [0x140194b58], rax
cmp qword [0x140194b58], 0
je 0x14018991e
mov rax, qword [0x140194b58]
cmp qword [rax + 0x10], 0
je 0x14018991e
mov rax, qword [0x140194b58]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14018991e
mov rax, qword [0x140194b58]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14018991e
mov rax, qword [0x140194b58]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1401898e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1401898eb
xor eax, eax
jmp 0x140189a95
mov rax, qword [0x140194b58]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x140189a95
mov rax, qword [0x140194b50]
mov qword [0x140194b58], rax
jmp 0x140189940
mov rax, qword [0x140194b58]
mov rax, qword [rax + 8]
mov qword [0x140194b58], rax
cmp qword [0x140194b58], 0
je 0x14018998d
cmp qword [0x140194b58], 0
je 0x14018998b
mov rax, qword [0x140194b58]
cmp qword [rax + 0x10], 0
je 0x14018998b
mov rax, qword [0x140194b58]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14018998b
mov rax, qword [0x140194b58]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14018998b
jmp 0x1401898bc
jmp 0x14018992e
mov rax, qword [rsp + 0x60]
and rax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140189aa0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140189a93
mov rax, qword [rsp + 0x48]
mov qword [0x140194b58], rax
mov rax, qword [0x140194b58]
mov dword [rax], 0x52727464
mov rax, qword [0x140194b58]
mov qword [rax + 0x10], 0
mov rax, qword [0x140194b58]
mov rcx, qword [0x140194b50]
mov qword [rax + 8], rcx
mov rax, qword [0x140194b58]
mov qword [0x140194b50], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x140194b58]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x140189a44
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x140189a7e
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x140189a3a
mov rax, qword [0x140194b58]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1401898bc
xor eax, eax
add rsp, 0x58
ret
Function at 0x14018a7b0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14018a7f7
xor al, al
jmp 0x14018a899
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x14018a821
xor al, al
jmp 0x14018a899
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x14018a891
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x14018a891
mov al, 1
jmp 0x14018a899
jmp 0x14018a897
xor al, al
add rsp, 0x78
ret

Function at 0x14018aba0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140194b50]
mov qword [rsp + 0x28], rax
jmp 0x14018abc0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14018abef
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x14018abed
call sub.KERNEL32.dll_GetLastError
jmp 0x14018abf1
jmp 0x14018abb2
xor eax, eax
add rsp, 0x38
ret
Function at 0x14018b2b0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x140194b68], eax
je 0x14018b2cb
mov eax, 0x10dd
jmp 0x14018b3f0
mov rax, qword [0x140194b80]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14018b375
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x14018b340
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x14018b340
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.140189f00
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.14018cee0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x14018b2d7
mov qword [0x140194b80], 0
call fcn.14018a960
mov rax, qword [0x140194b78]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14018b3d9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.14018cee0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x14018b391
mov qword [0x140194b78], 0
mov dword [0x140194b68], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x14018b920
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x140194b6c], 0
je 0x14018b93d
mov eax, dword [0x140194b6c]
jmp 0x14018ba03
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x14018b950
xor eax, eax
jmp 0x14018ba03
mov ecx, 0x10
call fcn.14018cea4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14018b9be
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x14018b9a3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.14018cee0
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x140194b6c], eax
mov qword [0x140194b70], 0
mov eax, dword [rsp + 0x20]
jmp 0x14018ba03
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x14018b9d8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x14018b979
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x140194b78]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x140194b78], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x14018da84
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14018dace
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14018dace
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14018dace
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14018dace
cmp dword [rcx + 0x84], 0xe
jbe 0x14018dace
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14018dad0
xor al, al
add rsp, 0x28
ret
Function at 0x180011470
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov rcx, qword [rcx]
mov edx, dword [rsp + 0x10]
mov dword [rax + rcx], edx
mov rax, qword [rsp + 8]
mov dword [rax + 8], 1
jmp 0x1800114b1
mov rax, qword [rsp + 8]
mov eax, dword [rax + 8]
inc eax
mov rcx, qword [rsp + 8]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 8]
cmp dword [rax + 8], 0x270
jge 0x180011548
mov rax, qword [rsp + 8]
mov eax, dword [rax + 8]
dec eax
cdqe
mov rcx, qword [rsp + 8]
mov rcx, qword [rcx]
mov rdx, qword [rsp + 8]
mov edx, dword [rdx + 8]
dec edx
movsxd rdx, edx
mov r8, qword [rsp + 8]
mov r8, qword [r8]
mov edx, dword [r8 + rdx*4]
shr edx, 0x1e
mov eax, dword [rcx + rax*4]
xor eax, edx
imul eax, eax, 0x6c078965
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 8]
mov rcx, qword [rsp + 8]
movsxd rcx, dword [rcx + 8]
mov rdx, qword [rsp + 8]
mov rdx, qword [rdx]
mov dword [rdx + rcx*4], eax
mov rax, qword [rsp + 8]
movsxd rax, dword [rax + 8]
mov rcx, qword [rsp + 8]
mov rcx, qword [rcx]
mov rdx, qword [rsp + 8]
movsxd rdx, dword [rdx + 8]
mov r8, qword [rsp + 8]
mov r8, qword [r8]
mov eax, dword [rcx + rax*4]
mov dword [r8 + rdx*4], eax
jmp 0x18001149f
mov rax, qword [rsp + 8]
mov ecx, dword [rsp + 0x10]
mov dword [rax + 0x1c], ecx
mov rax, qword [rsp + 8]
mov byte [rax + 0x20], 0
mov rax, qword [rsp + 8]
mov byte [rax + 0x21], 1
ret

Function at 0x180012c60
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x2c], eax
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x180012c9d
movzx edx, byte [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.180012d40
movzx eax, al
mov dword [rsp + 0x28], eax
jmp 0x180012cdc
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 8]
mov eax, dword [rax]
test eax, eax
jne 0x180012ccc
movzx edx, byte [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.180012d40
movzx eax, al
test eax, eax
je 0x180012ccc
mov dword [rsp + 0x24], 1
jmp 0x180012cd4
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x28], eax
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180012cf2
mov al, 1
jmp 0x180012d34
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x180012d07
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x2c]
cmp eax, dword [rsp + 0x48]
jb 0x180012d1e
cmp dword [rsp + 0x48], 0xffffffff
jne 0x180012d32
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 2]
movzx eax, ax
test eax, eax
je 0x180012c7c
xor al, al
add rsp, 0x38
ret
Function at 0x18001dc90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afc0], 0
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x6afb8], 0
jne 0x18001dcde
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afc0], 1
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afb8], 0x10000
mov eax, 4
imul rax, rax, 0x7fff
mov rcx, qword [rsp + 0x40]
mov dword [rcx + rax + 0x4afb8], 0
mov rax, qword [rsp + 0x40]
add rax, 0x4afb8
mov rdi, rax
xor eax, eax
mov ecx, 0x1fffc
rep stosb byte [rdi], al
movsxd rax, dword [rsp + 0x48]
lea rcx, [0x1800581f0]
movzx eax, word [rcx + rax*8 + 2]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afe0], eax
movsxd rax, dword [rsp + 0x48]
lea rcx, [0x1800581f0]
movzx eax, word [rcx + rax*8]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afe4], eax
movsxd rax, dword [rsp + 0x48]
lea rcx, [0x1800581f0]
movzx eax, word [rcx + rax*8 + 4]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afe8], eax
movsxd rax, dword [rsp + 0x48]
lea rcx, [0x1800581f0]
movzx eax, word [rcx + rax*8 + 6]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afdc], eax
cmp dword [rsp + 0x48], 2
jg 0x18001dd9c
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
or eax, 4
mov rcx, qword [rsp + 0x50]
mov word [rcx], ax
jmp 0x18001ddb6
cmp dword [rsp + 0x48], 8
jl 0x18001ddb6
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
or eax, 2
mov rcx, qword [rsp + 0x50]
mov word [rcx], ax
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afcc], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afbc], 0
mov dword [rsp + 0x20], 0x8000
mov eax, dword [rsp + 0x20]
shl eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
add rax, 0x1afb8
mov r8d, dword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afd8], eax
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x6afd8], 0
je 0x18001de2d
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x6afd8], 0xffffffff
jne 0x18001de50
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afd4], 1
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afd8], 0
jmp 0x18001ded7
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afd4], 0
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x6afd8], 0x106
jae 0x18001de7a
mov rcx, qword [rsp + 0x40]
call fcn.18001e2b0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afc4], 0
mov dword [rsp + 0x20], 0
jmp 0x18001de9d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 2
jae 0x18001ded7
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x6afc4]
shl eax, 5
mov ecx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 0x1afb8]
xor eax, ecx
and eax, 0x7fff
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afc4], eax
jmp 0x18001de93
add rsp, 0x30
pop rdi
ret
Function at 0x180020540
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 0
movsx ecx, byte [rsp + 0x10]
mov rdx, qword [rsp + 8]
mov eax, dword [rdx + rax]
xor eax, ecx
and eax, 0xff
cdqe
lea rcx, [0x180057df0]
mov edx, 4
imul rdx, rdx, 0
mov r8, qword [rsp + 8]
mov edx, dword [r8 + rdx]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 8]
mov ecx, dword [rdx + rcx]
and ecx, 0xff
mov rdx, qword [rsp + 8]
add ecx, dword [rdx + rax]
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
imul eax, dword [rcx + rax], 0x8088405
inc eax
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 2
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
mov ecx, dword [rdx + rcx]
shr ecx, 0x18
mov rdx, qword [rsp + 8]
mov eax, dword [rdx + rax]
xor eax, ecx
and eax, 0xff
mov eax, eax
lea rcx, [0x180057df0]
mov edx, 4
imul rdx, rdx, 2
mov r8, qword [rsp + 8]
mov edx, dword [r8 + rdx]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
ret
Function at 0x180021270
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x180060010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0x41]
test eax, eax
je 0x1800213e4
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x50], 0
je 0x180021303
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0xa0]
cmp dword [rax + 0x58], ecx
jae 0x180021303
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.180036784
mov rax, qword [rsp + 0x90]
mov qword [rax + 0x50], 0
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x50], 0
jne 0x18002134c
mov eax, dword [rsp + 0xa0]
shl eax, 1
mov eax, eax
mov ecx, eax
call fcn.180036a90
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x50], rcx
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0xa0]
mov dword [rax + 0x58], ecx
mov eax, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x90]
mov rdi, qword [rcx + 0x50]
mov rsi, qword [rsp + 0x98]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x30], 0
jmp 0x18002137f
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x30], eax
jae 0x1800213d3
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x50]
mov rdx, qword [rsp + 0x90]
add rdx, 0x44
mov qword [rsp + 0x50], rdx
movzx edx, byte [rcx + rax]
mov rax, qword [rsp + 0x50]
mov rcx, rax
call fcn.1800206a0
mov ecx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x90]
mov rdx, qword [rdx + 0x50]
mov byte [rdx + rcx], al
jmp 0x180021375
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x30], 0
je 0x18002147e
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x38]
add eax, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x90]
cmp eax, dword [rcx + 0x3c]
jb 0x18002142c
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x24], 0x30000
xor eax, eax
jmp 0x1800214d1
mov eax, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x90]
mov ecx, dword [rcx + 0x38]
mov rdx, qword [rsp + 0x90]
add rcx, qword [rdx + 0x30]
mov rdi, rcx
mov rsi, qword [rsp + 0x38]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x38]
add eax, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x90]
mov dword [rcx + 0x38], eax
mov eax, dword [rsp + 0xa0]
jmp 0x1800214d1
mov rax, qword [rsp + 0x90]
cmp qword [rax + 8], 0
je 0x1800214c0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x58]
jmp 0x1800214d1
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x24], 0x1000000
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180036760
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x180021d80
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x180060010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0xb8], 0
je 0x180021e9a
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0xc0]
cmp dword [rax + 0xc4], ecx
jb 0x180021dd6
xor eax, eax
jmp 0x180021f40
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0xc4]
mov eax, dword [rax + 0xc0]
sub eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x30], eax
jbe 0x180021e0a
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0xc4]
mov rdx, qword [rsp + 0x70]
add rcx, qword [rdx + 0xb8]
mov rdi, qword [rsp + 0x78]
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0xc4]
add eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0xc4], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x9c]
add eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x9c], eax
mov eax, dword [rsp + 0x30]
mov r8d, eax
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0xa0]
call fcn.1800202c0
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0xa0], eax
mov eax, dword [rsp + 0x30]
jmp 0x180021f40
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0xa8], 0
je 0x180021f32
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0xa8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x180021ee9
xor eax, eax
jmp 0x180021f40
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x9c]
add eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x9c], eax
mov eax, dword [rsp + 0x38]
mov r8d, eax
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0xa0]
call fcn.1800202c0
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0xa0], eax
mov eax, dword [rsp + 0x38]
jmp 0x180021f40
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x24], 0x1000000
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180036760
add rsp, 0x58
pop rdi
pop rsi
ret