joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003e4b0
Capabilities:
Enumerate process modules

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x4a0
mov rax, qword [0x180084090]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov dword [rsp + 0x470], 0
mov dword [rsp + 0x30], 0
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 0x434
rep stosb byte [rdi], al
mov dword [rsp + 0x474], 0
jmp 0x18003e51c
mov eax, dword [rsp + 0x474]
add eax, 1
mov dword [rsp + 0x474], eax
mov eax, dword [rsp + 0x4c8]
cmp dword [rsp + 0x474], eax
jae 0x18003e659
mov dword [rsp + 0x478], 0
lea rdx, [rsp + 0x478]
mov rcx, qword [rsp + 0x4b8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x18003e567
cmp dword [rsp + 0x478], 0x103
je 0x18003e567
jmp 0x18003e659
mov qword [rsp + 0x480], 0
mov edx, dword [rsp + 0x4b0]
mov ecx, 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x480], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x488], eax
cmp qword [rsp + 0x480], 0xffffffffffffffff
je 0x18003e63b
cmp qword [rsp + 0x480], 0
je 0x18003e63b
mov dword [rsp + 0x30], 0x438
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x480]
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x18003e62d
mov rdx, qword [rsp + 0x4c0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x18003e617
mov rcx, qword [rsp + 0x4d8]
mov rax, qword [rsp + 0x58]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x4e0]
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov dword [rsp + 0x470], 1
jmp 0x18003e62d
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x480]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x18003e5d5
mov rcx, qword [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x470], 0
je 0x18003e647
jmp 0x18003e659
mov ecx, dword [rsp + 0x4d0]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18003e50b
mov eax, dword [rsp + 0x470]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.18004f770
add rsp, 0x4a0
pop rdi
ret
Function at 0x18003e750
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x60
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0x1c
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x18003e871
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x18003e866
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x3c], eax
jne 0x18003e84f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x38], eax
je 0x18003e84f
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x58], eax
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18003e84f
mov rcx, qword [rsp + 0x50]
call fcn.18003e680
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x28], 0
je 0x18003e846
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x28], eax
jb 0x18003e846
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x28], eax
ja 0x18003e846
mov rcx, qword [rsp + 0x88]
mov eax, dword [rsp + 0x58]
mov dword [rcx], eax
jmp 0x18003e866
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18003e7ba
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x28]
add rsp, 0x60
pop rdi
ret
Function at 0x180042030
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using des

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov r9d, dword [rcx]
mov r8d, dword [rcx + 4]
mov rbx, rcx
mov eax, r9d
mov rdi, rdx
mov esi, 8
shr eax, 4
lea rbp, [0x180000000]
xor eax, r8d
and eax, 0xf0f0f0f
xor r8d, eax
shl eax, 4
xor r9d, eax
mov eax, r9d
shr eax, 0x10
xor eax, r8d
movzx ecx, ax
xor r8d, ecx
shl ecx, 0x10
xor r9d, ecx
mov eax, r8d
shr eax, 2
xor eax, r9d
and eax, 0x33333333
xor r9d, eax
shl eax, 2
xor r8d, eax
mov r10d, r8d
shr r10d, 8
xor r10d, r9d
and r10d, 0xff00ff
xor r9d, r10d
shl r10d, 8
xor r10d, r8d
rol r10d, 1
mov r11d, r10d
xor r11d, r9d
and r11d, 0xaaaaaaaa
xor r10d, r11d
xor r11d, r9d
rol r11d, 1
nop word [rax + rax]
mov eax, r10d
add rdi, 0x10
ror eax, 4
xor eax, dword [rdi - 0x10]
mov edx, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
shr rcx, 0x18
and ecx, 0x3f
mov r9d, dword [rbp + rcx*4 + 0x85720]
or r9d, dword [rbp + rax*4 + 0x85920]
mov rax, rdx
and edx, 0x3f
shr rax, 8
and eax, 0x3f
or r9d, dword [rbp + rax*4 + 0x85b20]
mov eax, dword [rdi - 0xc]
or r9d, dword [rbp + rdx*4 + 0x85d20]
xor eax, r10d
mov r8d, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
shr rcx, 0x18
and ecx, 0x3f
mov edx, dword [rbp + rcx*4 + 0x85820]
or edx, dword [rbp + rax*4 + 0x85a20]
mov rax, r8
and r8d, 0x3f
shr rax, 8
and eax, 0x3f
or edx, dword [rbp + rax*4 + 0x85c20]
or edx, dword [rbp + r8*4 + 0x85e20]
or edx, r9d
xor r11d, edx
mov eax, r11d
ror eax, 4
xor eax, dword [rdi - 8]
mov edx, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
shr rcx, 0x18
and ecx, 0x3f
mov r9d, dword [rbp + rcx*4 + 0x85720]
or r9d, dword [rbp + rax*4 + 0x85920]
mov rax, rdx
and edx, 0x3f
shr rax, 8
and eax, 0x3f
or r9d, dword [rbp + rax*4 + 0x85b20]
mov eax, dword [rdi - 4]
or r9d, dword [rbp + rdx*4 + 0x85d20]
xor eax, r11d
mov r8d, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
shr rcx, 0x18
and ecx, 0x3f
mov edx, dword [rbp + rcx*4 + 0x85820]
or edx, dword [rbp + rax*4 + 0x85a20]
mov rax, r8
and r8d, 0x3f
shr rax, 8
and eax, 0x3f
or edx, dword [rbp + rax*4 + 0x85c20]
or edx, dword [rbp + r8*4 + 0x85e20]
or edx, r9d
xor r10d, edx
sub rsi, 1
jne 0x1800420e0
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ror r10d, 1
mov edx, r10d
xor edx, r11d
and edx, 0xaaaaaaaa
xor r10d, edx
xor edx, r11d
ror edx, 1
mov eax, edx
shr eax, 8
xor eax, r10d
and eax, 0xff00ff
xor r10d, eax
shl eax, 8
xor edx, eax
mov eax, edx
shr eax, 2
xor eax, r10d
and eax, 0x33333333
xor r10d, eax
shl eax, 2
xor edx, eax
mov eax, r10d
shr eax, 0x10
xor eax, edx
movzx ecx, ax
xor edx, ecx
shl ecx, 0x10
xor r10d, ecx
mov ecx, r10d
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov eax, ecx
xor ecx, edx
shl eax, 4
xor eax, r10d
mov dword [rbx], eax
mov dword [rbx + 4], ecx
mov rbx, qword [rsp + 8]
ret
Function at 0x1800439f0
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x180043ade
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x20
movsxd r10, dword [rcx + 0x3d0]
mov rsi, rdx
xor edx, edx
mov rax, r9
mov r12, r9
mov rdi, r8
div r10
mov rbx, rcx
test rdx, rdx
jne 0x180043ad1
mov qword [rsp + 0x48], r13
xor r13d, r13d
test rax, rax
je 0x180043acc
mov qword [rsp + 0x40], rbp
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.1800431d0
cmp byte [rbx + 8], 0
mov r11, rdi
je 0x180043a86
xor ecx, ecx
cmp dword [rbx + 0x3d0], ecx
jle 0x180043a86
lea rdx, [rbx + 0x3f8]
sub rdx, rdi
nop dword [rax + rax]
movzx eax, byte [rdx + r11]
inc ecx
inc r11
xor byte [r11 - 1], al
cmp ecx, dword [rbx + 0x3d0]
jl 0x180043a70
movsxd r8, dword [rbx + 0x3d0]
lea rcx, [rbx + 0x3f8]
mov rdx, rsi
call fcn.1800534b0
movsxd rcx, dword [rbx + 0x3d0]
movsxd r11, dword [rbx + 0x3d0]
xor edx, edx
mov rax, r12
inc r13d
div rcx
movsxd rcx, r13d
add rsi, r11
add rdi, r11
cmp rcx, rax
jb 0x180043a40
mov rbp, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
repz ret
Function at 0x180043f00
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor ebp, ebp
sub r9d, 1
mov ebx, r8d
mov esi, edx
mov rdi, rcx
je 0x180043f4d
sub r9d, 1
je 0x180043f45
mov r12d, ebp
cmp r9d, 1
je 0x180043f3d
lea r13d, [rbp + 0x3e]
jmp 0x180043f59
mov r13d, 0xa
jmp 0x180043f59
mov r12d, 0x24
jmp 0x180043f53
mov r12d, 0xa
mov r13d, 0x1a
test ebx, ebx
je 0x180043f82
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call fcn.18005058c
add eax, dword [rsp + 0x40]
mov ecx, eax
call fcn.180050574
call fcn.18005058c
cdq
idiv ebx
add edx, esi
mov rbx, rbp
movsxd rsi, edx
test edx, edx
jle 0x180043fdd
nop dword [rax]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call fcn.18005058c
add eax, dword [rsp + 0x40]
mov ecx, eax
call fcn.180050574
call fcn.18005058c
cdq
idiv r13d
add edx, r12d
cmp edx, 0xa
jge 0x180043fc2
add dx, 0x30
jmp 0x180043fd1
cmp edx, 0x24
jge 0x180043fcd
add dx, 0x37
jmp 0x180043fd1
add dx, 0x3d
mov word [rdi + rbx*2], dx
inc rbx
cmp rbx, rsi
jl 0x180043f90
mov rbx, qword [rsp + 0x48]
mov word [rdi + rsi*2], bp
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x180044120
Capabilities:
Hash data with md5

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x110
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x180084090]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rbx, r8
xor eax, eax
mov qword [r11 - 0x78], rax
mov qword [r11 - 0x70], rax
mov qword [r11 - 0x68], rax
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x50], rax
mov word [r11 - 0x48], ax
mov byte [r11 - 0x80], al
xor edi, edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x30], 0x67452301
mov dword [rsp + 0x34], 0xefcdab89
mov dword [rsp + 0x38], 0x98badcfe
mov dword [rsp + 0x3c], 0x10325476
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.180045470
cmp byte [rsp + 0x98], dil
jne 0x1800441be
lea rcx, [rsp + 0x30]
call fcn.180045580
mov edx, edi
cmp edx, 0x10
jae 0x1800441da
mov ecx, edx
movzx eax, byte [rsp + rcx + 0x88]
mov byte [rsp + rcx + 0xa0], al
inc edx
jmp 0x1800441c0
xor eax, eax
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], rax
cmp edi, 0x10
jge 0x180044233
movsxd rax, edi
movzx r8d, byte [rsp + rax + 0xa0]
lea eax, [rdi + rdi]
movsxd rcx, eax
lea rcx, [rsp + rcx + 0xd8]
lea rdx, str._.2x
call fcn.1800505b8
inc edi
jmp 0x180044204
lea rcx, [rsp + 0xd8]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rbx], al
inc rcx
inc rbx
test al, al
jne 0x180044240
mov eax, 1
jmp 0x180044258
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.18004f770
mov rbx, qword [rsp + 0x138]
add rsp, 0x110
pop rdi
ret
Function at 0x180044960
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x50
lea rax, [rsp + 0x30]
mov edi, r9d
mov r13, r8
mov rbx, rdx
mov r12d, ecx
test rax, rax
je 0x1800449a1
xor r9d, r9d
lea r8, [rsp + 0x38]
lea rcx, str.D:_D_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GA___AU__A_OICI_GA___BA_
lea edx, [r9 + 1]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
xor r9d, r9d
lea rdx, [rsp + 0x30]
or rcx, 0xffffffffffffffff
lea r8d, [r9 + 4]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x180044a41
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 6]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x180044a41
mov r8, r12
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x70], rbp
call fcn.180051e50
mov qword [rbx], rsi
mov dword [rbx + 8], r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbx + 0xc], eax
test r13, r13
je 0x180044a2c
test edi, edi
je 0x180044a2c
lea rdx, [r12 - 0x10]
lea rcx, [rbx + 0x10]
mov r9, rdi
mov r8, r13
call fcn.18004f95c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rbp, qword [rsp + 0x70]
mov eax, 1
jmp 0x180044a43
xor eax, eax
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r13
pop r12
pop rdi
ret
Function at 0x18004cd20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r11d, r8d
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x18004cd39
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rdi
not r9d
lea rdi, [0x18006cc00]
cmp r11d, 8
jb 0x18004ce32
mov qword [rsp + 0x10], rbx
mov rbx, r11
shr rbx, 3
nop dword [rax]
movzx ecx, byte [r10]
mov eax, r9d
shr r9d, 8
xor rcx, rax
add r10, 8
add r11d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r10 - 7]
mov edx, dword [rdi + rax*4]
xor edx, r9d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 6]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 5]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 4]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 3]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 2]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 1]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov r9d, dword [rdi + rax*4]
xor r9d, edx
sub rbx, 1
jne 0x18004cd60
mov rbx, qword [rsp + 0x10]
test r11d, r11d
je 0x18004ce60
nop word [rax + rax]
movzx ecx, byte [r10]
mov eax, r9d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
add r11d, 0xffffffff
jne 0x18004ce40
mov rdi, qword [rsp]
not r9d
mov eax, r9d
add rsp, 8
ret

Function at 0x18004d690
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, r9
mov rbp, rdx
mov r10, rcx
imul esi, edx
cmp byte [r9], 0
je 0x18004d6e0
mov rdx, rcx
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, esi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18004d6da
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
jmp 0x18004d711
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
mov qword [rsp + 0x40], rbx
lea eax, [rdx + rsi]
cmp eax, ecx
jbe 0x18004d6f8
sub ecx, edx
mov esi, ecx
add rdx, qword [r9 + 0x20]
mov r8d, esi
mov rcx, r10
call fcn.1800534b0
add dword [rdi + 0x2c], esi
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x58]
xor edx, edx
div rbp
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18004d730
Capabilities:
Read file on windows

Disassembly:
push rbx
push r12
sub rsp, 0x38
cmp byte [rcx], 0
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x30], rdi
mov edi, 1
mov r12, rdx
mov rbx, rcx
je 0x18004d780
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18004d77a
mov byte [rbx + 0x10], dil
mov esi, dword [rsp + 0x60]
jmp 0x18004d7ba
mov qword [rsp + 0x58], rbp
mov ebp, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rbp + 1]
cmp eax, ecx
jbe 0x18004d796
mov edi, ecx
sub edi, ebp
mov rdx, rbp
lea rcx, [rsp + 0x50]
mov r8d, edi
add rdx, qword [rbx + 0x20]
mov esi, edi
call fcn.1800534b0
lea r11d, [rbp + rdi]
mov rbp, qword [rsp + 0x58]
mov dword [rbx + 0x2c], r11d
mov rdi, qword [rsp + 0x30]
cmp esi, 1
mov rsi, qword [rsp + 0x68]
jne 0x18004d7dc
movzx eax, byte [rsp + 0x50]
mov dword [r12], eax
xor eax, eax
add rsp, 0x38
pop r12
pop rbx
ret
cmp byte [rbx], 0
je 0x18004d7d2
cmp byte [rbx + 0x10], 0
je 0x18004d7d2
or eax, 0xffffffff
add rsp, 0x38
pop r12
pop rbx
ret
Function at 0x18004d8c0
Capabilities:
Read file on windows

Disassembly:
push rsi
push r15
sub rsp, 0x68
cmp byte [rcx], 0
mov rsi, rcx
je 0x18004d8f8
cmp byte [rcx + 1], 0
je 0x18004d8ed
mov rcx, qword [rcx + 8]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x18004d8fe
or eax, 0xffffffff
add rsp, 0x68
pop r15
pop rsi
ret
mov eax, dword [rcx + 0x28]
mov dword [rcx + 0x2c], eax
cmp byte [rsi], 0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r13
je 0x18004d950
cmp byte [rsi + 1], 0
je 0x18004d943
mov rcx, qword [rsi + 8]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r12d, eax
sub r12d, dword [rsi + 0x14]
mov dword [rsp + 0x80], r12d
jmp 0x18004d95c
xor r12d, r12d
mov dword [rsp + 0x80], r12d
jmp 0x18004d95c
mov r12d, dword [rsi + 0x2c]
mov dword [rsp + 0x80], r12d
mov ebp, 0xffff
mov r13d, 0x404
cmp r12d, ebp
mov rcx, r13
cmovb ebp, r12d
mov dword [rsp + 0x98], ebp
call fcn.18004f7d0
mov rdi, rax
test rax, rax
jne 0x18004d98d
or eax, 0xffffffff
jmp 0x18004dae2
mov qword [rsp + 0x60], rbx
mov ebx, 4
or r15d, 0xffffffff
cmp ebp, ebx
jbe 0x18004dad2
mov qword [rsp + 0x38], r14
nop dword [rax + rax]
lea eax, [rbx + 0x400]
mov r14d, r12d
cmp eax, ebp
mov ebx, eax
cmova ebx, ebp
sub r14d, ebx
sub r12d, r14d
cmp r12d, r13d
cmova r12d, r13d
cmp byte [rsi], 0
je 0x18004d9f5
cmp byte [rsi + 1], 0
je 0x18004dacd
mov eax, dword [rsi + 0x14]
mov rcx, qword [rsi + 8]
xor r9d, r9d
lea edx, [r14 + rax]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x18004d9f9
mov dword [rsi + 0x2c], r14d
cmp byte [rsi], 0
mov ebp, r12d
mov r13d, r12d
je 0x18004da3b
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x88]
mov r8d, ebp
mov rdx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18004da2d
mov byte [rsi + 0x10], 1
mov eax, dword [rsp + 0x88]
xor edx, edx
div rbp
jmp 0x18004da6d
mov ecx, dword [rsi + 0x2c]
mov edx, dword [rsi + 0x28]
lea eax, [rcx + r12]
cmp eax, edx
jbe 0x18004da4f
mov r13d, edx
sub r13d, ecx
mov rdx, rcx
mov r8d, r13d
mov rcx, rdi
add rdx, qword [rsi + 0x20]
call fcn.1800534b0
add dword [rsi + 0x2c], r13d
xor edx, edx
mov eax, r13d
div rbp
cmp rax, 1
jne 0x18004dacd
lea ecx, [r12 - 3]
movsxd rax, ecx
test ecx, ecx
js 0x18004daab
nop
dec rax
dec ecx
cmp byte [rax + rdi], 0x50
jne 0x18004daa0
cmp byte [rax + rdi + 1], 0x4b
jne 0x18004daa0
cmp byte [rax + rdi + 2], 5
jne 0x18004daa0
cmp byte [rax + rdi + 3], 6
je 0x18004daa7
test rax, rax
jns 0x18004da80
jmp 0x18004daab
lea r15d, [rcx + r14]
test r15d, r15d
jne 0x18004dacd
mov ebp, dword [rsp + 0x98]
mov r12d, dword [rsp + 0x80]
mov r13d, 0x404
cmp ebx, ebp
jb 0x18004d9b0
mov r14, qword [rsp + 0x38]
mov rcx, rdi
call fcn.18004f790
mov rbx, qword [rsp + 0x60]
mov eax, r15d
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov r13, qword [rsp + 0x40]
add rsp, 0x68
pop r15
pop rsi
ret
Function at 0x18004e710
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
jne 0x18004e72e
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
cmp dword [rcx + 0x1c], 0
je 0x18004e722
cmp qword [rcx + 0x80], 0
je 0x18004e743
call fcn.18004ecd0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.18004e420
test eax, eax
je 0x18004e76a
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.18004f7d0
mov rbx, rax
test rax, rax
jne 0x18004e790
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call fcn.18004f7d0
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
mov dword [rbx + 0x6c], ecx
test rax, rax
jne 0x18004e7d6
mov rcx, rbx
call fcn.18004f790
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov dword [rbx + 0x64], ebp
mov eax, dword [rdi + 0x40]
mov ecx, ebp
cmp dword [rdi + 0x38], ecx
mov dword [rbx + 0x78], eax
mov dword [rbx + 0x74], ebp
mov eax, dword [rdi + 0x38]
sete cl
mov dword [rbx + 0x90], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x24], ebp
mov dword [rbx + 0x94], eax
test ecx, ecx
jne 0x18004e82d
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.18004d120
test eax, eax
jne 0x18004e82d
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
mov dword [rbx + 0x7c], eax
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
movzx eax, byte [rdi + 0x34]
and al, 1
mov byte [rbx + 0x98], al
mov eax, dword [rdi + 0x34]
shr eax, 3
test al, 1
je 0x18004e85e
movzx eax, byte [rdi + 0x3d]
mov byte [rbx + 0xac], al
jmp 0x18004e868
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
movzx eax, byte [rbx + 0x98]
mov dword [rbx + 0x9c], 0x12345678
mov dword [rbx + 0xa0], 0x23456789
neg al
mov dword [rbx + 0xa4], 0x34567890
sbb ecx, ecx
and ecx, 0xc
mov dword [rbx + 0xa8], ecx
test rsi, rsi
je 0x18004e90a
lea r8, [0x18006cc00]
movzx eax, byte [rsi]
test al, al
je 0x18004e90a
mov edx, dword [rbx + 0x9c]
mov rcx, rdx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [r8 + rax*4]
xor ecx, edx
mov edx, dword [rbx + 0xa4]
movzx eax, cl
mov dword [rbx + 0x9c], ecx
movzx ecx, dl
add eax, dword [rbx + 0xa0]
shr edx, 8
imul eax, eax, 0x8088405
inc eax
mov dword [rbx + 0xa0], eax
movzx eax, byte [rbx + 0xa3]
xor rcx, rax
mov eax, dword [r8 + rcx*4]
xor eax, edx
add rsi, 1
mov dword [rbx + 0xa4], eax
jne 0x18004e8a6
mov ecx, dword [rdi + 0x7c]
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x10], ebp
mov rbp, qword [rsp + 0x20]
lea ecx, [rcx + rax + 0x1e]
xor eax, eax
mov dword [rbx + 0x60], ecx
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret