joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180033780
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x18005b0d0]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rbx, rdx
mov rdi, rcx
lea rdx, [0x180041f02]
mov rcx, rbx
call qword [sym.imp.mfc100.dll_Ordinal_1294]
xor eax, eax
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
xor esi, esi
xor r9d, r9d
mov dword [rbp - 0x80], Ordinal_26
mov dword [rbp - 0x70], 1
mov qword [rbp - 0x78], rsi
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x180033806
or eax, 0xffffffff
jmp 0x18003393f
xor edx, edx
lea rcx, [rbp - 0x60]
lea r8d, [rdx + 0x68]
call sub.MSVCR100.dll_memset
mov rax, qword [rsp + 0x60]
xor r9d, r9d
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov eax, dword [rbp - 0x24]
bts eax, 8
xor r8d, r8d
mov rdx, rdi
or eax, 1
xor ecx, ecx
mov dword [rbp - 0x60], 0x68
mov dword [rbp - 0x24], eax
lea rax, [rsp + 0x68]
mov word [rbp - 0x20], si
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], Ordinal_38
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x180033886
mov eax, 0xfffffffe
jmp 0x18003393f
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea rcx, [rbp + 0x11]
lea r8d, [rdx + 0x7f]
mov byte [rbp + 0x10], sil
call sub.MSVCR100.dll_memset
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x54]
lea rdx, [rbp + 0x10]
mov r8d, 0x7f
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18003391c
nop word [rax + rax]
mov eax, dword [rsp + 0x54]
lea rdx, [rbp + 0x10]
mov rcx, rbx
mov byte [rbp + rax + 0x10], sil
call qword [sym.imp.mfc100.dll_Ordinal_1461]
xor edx, edx
lea rcx, [rbp + 0x11]
lea r8d, [rdx + 0x7f]
mov byte [rbp + 0x10], sil
call sub.MSVCR100.dll_memset
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x54]
lea rdx, [rbp + 0x10]
mov r8d, 0x7f
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800338d0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], esi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x50]
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.18003c580
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x180033ea0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x18005b0d0]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor r9d, r9d
mov rbx, rcx
lea rdx, [rsp + 0x30]
lea r8d, [r9 + 0x1a]
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x30]
repne scasb al, byte [rdi]
mov rcx, qword [str.madVR_]
mov qword [rdi - 1], rcx
mov rcx, rbx
call qword [sym.imp.mfc100.dll_Ordinal_310]
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18003c580
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret
Function at 0x180033fb0
Capabilities:
Resume thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2c8
mov rax, qword [0x18005b0d0]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov eax, dword [str.mpegts]
mov r14d, dword [rcx + 0x14c]
mov edi, dword [rcx + 0x154]
mov ebx, dword [rsp + 0x330]
mov dword [rsp + 0x90], eax
movzx eax, word [0x18004b2b8]
mov word [rsp + 0x94], ax
movzx eax, byte [0x18004b2ba]
mov dword [rcx + 0x30], edx
mov byte [rsp + 0x96], al
xor eax, eax
mov dword [rcx + 0x34], r8d
mov qword [rsp + 0x97], rax
mov qword [rsp + 0x9f], rax
mov qword [rsp + 0xa7], rax
mov byte [rsp + 0xaf], al
mov dword [rcx + 0x38], r9d
lea rax, [sym.CACapture.dll_CA_SetEncodeH264Parament]
mov qword [rsp + 0x38], rax
lea rax, [sym.CACapture.dll_CA_SetEncodeH264Parament]
mov esi, r9d
mov qword [rsp + 0x30], rax
lea rax, [0x180033f30]
mov r12d, r8d
mov qword [rsp + 0x28], rax
mov ebp, edx
mov r13, rcx
mov dword [rcx + 0x3c], ebx
lea rax, [sym.CACapture.dll_CA_SetEncodeH264Parament]
lea r9, [0x18000f740]
lea r8, str.memfile
lea rdx, str.cfile:_s_I64d_I64d_I64d_I64d_I64d
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR100.dll_sprintf]
lea rax, [rsp + 0xb0]
movd xmm0, esi
imul ebx, ebx, 0x3e8
xor esi, esi
lea r15, [r13 + 0x168]
mov r9d, edi
cvtdq2ps xmm0, xmm0
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x90]
mov r8d, 0x2ee00
mov edx, r14d
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], ebx
lea rax, str.libx264
movss dword [rsp + 0x58], xmm0
movss xmm0, dword [r13 + 0x148]
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x38], rax
mov eax, dword [r13 + 0x144]
xor ecx, ecx
movss dword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], eax
mov eax, dword [r13 + 0x140]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ca_core.dll_Ordinal_20]
test eax, eax
jns 0x18003415b
mov r8, qword [r13 + 0x10]
lea rdx, str._s:_encore_InitCaptureVideo_failed___d_
lea ecx, [rsi + 2]
mov r9d, eax
call fcn.180035240
xor eax, eax
jmp 0x180034211
mov eax, dword [r13 + 0x150]
mov rcx, qword [r15]
mov dword [r13 + 0x534], esi
imul eax, r14d
add eax, eax
mov qword [r13 + 0x540], rsi
mov qword [r13 + 0x538], 1
mov qword [r13 + 0x550], rsi
mov qword [r13 + 0x558], rsi
mov dword [r13 + 0x588], eax
mov qword [r13 + 0x578], 0xffffffffffffffff
mov dword [r13 + 0x560], esi
mov qword [r13 + 0x564], rsi
mov qword [r13 + 0x580], rsi
call qword [sym.imp.ca_core.dll_Ordinal_18]
lea rcx, [0x180033f90]
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov qword [rsp + 0x28], rsi
mov dword [r13 + 0x598], eax
mov dword [r13 + 8], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.mfc100.dll_Ordinal_1831]
mov qword [r13 + 0x548], rax
mov dword [rax + 0x50], esi
mov rcx, qword [r13 + 0x548]
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.18003c580
add rsp, 0x2c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180034520
Capabilities:
Delete file
Get common file path

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x288
mov rax, qword [0x18005b0d0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov eax, dword [rcx + 0x120]
mov rbp, rcx
mov ecx, 0x1e
cmp eax, ecx
mov r15d, r8d
mov r14d, edx
cmovg eax, ecx
xor esi, esi
xor edi, edi
movsxd r13, eax
test eax, eax
jle 0x180034673
mov qword [r11 + 0x20], rbx
mov qword [r11 - 0x38], r12
nop word [rax + rax]
mov eax, dword [rbp + 0xf0]
lea rdx, [rsp + 0x160]
mov ecx, 0x104
lea ebx, [rsi + rax]
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea r9, [rsp + 0x50]
lea rdx, str.cahe
lea rcx, [rsp + 0x160]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov r12, qword [0x18005eea8]
lea r8, [0x18004b9c4]
mov rcx, r12
movzx edx, bx
mov qword [rsp + 0x40], 0
push rsi
call 0x180302819
test rax, rax
je 0x180034633
lea rcx, [rsp + 0x50]
mov r8, rax
mov rdx, r12
call fcn.18001b530
test eax, eax
je 0x180034633
lea rax, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov r9d, 1
xor edx, edx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ca_core.dll_Ordinal_22]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov r11, qword [rsp + 0x40]
jmp 0x180034636
xor r11d, r11d
mov qword [rbp + rdi*8], r11
test r11, r11
je 0x180034655
mov rcx, qword [r11 + 0x10]
mov rdx, qword [r11 + 8]
mov qword [r11 + 8], rcx
mov rcx, qword [rbp + rdi*8]
mov qword [rcx + 0x10], rdx
inc rdi
inc esi
cmp rdi, r13
jl 0x180034580
mov r12, qword [rsp + 0x280]
mov rbx, qword [rsp + 0x2d8]
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18003c580
add rsp, 0x288
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x180035170
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x90
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x18005b0d0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x40
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rcx, rbx
call qword [sym.imp.mfc100.dll_Ordinal_316]
mov dword [rsp + 0x20], 1
mov r9, qword [rsp + 0x50]
shr r9, 0x14
mov r8, qword [rsp + 0x48]
shr r8, 0x14
lea rdx, str.MEM:__I64dMb_free__I64dMB
mov rcx, rbx
call qword [sym.imp.mfc100.dll_Ordinal_4124]
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18003c580
add rsp, 0x90
pop rbx
ret
Function at 0x180035650
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc100.dll_Ordinal_300]
nop
mov dl, reloc.ca_core.dll_Ordinal_46
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc100.dll_Ordinal_11428]
mov ebx, eax
test eax, eax
jle 0x18003572f
lea r8d, [rax + 1]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc100.dll_Ordinal_7575]
nop
mov r8d, ebx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc100.dll_Ordinal_7190]
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc100.dll_Ordinal_1291]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc100.dll_Ordinal_889]
mov ebx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc100.dll_Ordinal_316]
nop
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, qword [rsp + 0x68]
lea rdx, str._s__d._s
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc100.dll_Ordinal_4124]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc100.dll_Ordinal_889]
inc ebx
cmp ebx, 0xa
jl 0x1800356d5
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
mov rcx, rdi
call qword [sym.imp.mfc100.dll_Ordinal_889]
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x180036480
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov qword [rsp + 0x30], rsi
xor esi, esi
mov rbx, rcx
mov dword [rcx + 0x6e0], esi
mov rcx, qword [rcx + 0x770]
test rcx, rcx
je 0x1800364fe
mov rcx, qword [rcx + 0x58]
xor edx, edx
mov edi, esi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1800364f7
nop dword [rax + rax]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 0x770]
inc edi
mov rcx, qword [rcx + 0x58]
xor edx, edx
cmp edi, 0x3e8
jg 0x1800364f1
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1800364c0
jmp 0x1800364f7
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [rbx + Ordinal_1906], rsi
lea rcx, [rbx + 0x80]
call fcn.18001ae10
mov rcx, qword [rbx + 0x788]
test rcx, rcx
je 0x180036523
call qword [sym.imp.SDL2.dll_SDL_DestroyTexture]
mov qword [rbx + 0x788], rsi
mov rcx, qword [rbx + 0x790]
test rcx, rcx
je 0x18003653c
call qword [sym.imp.SDL2.dll_SDL_DestroyRenderer]
mov qword [rbx + 0x790], rsi
mov rcx, qword [rbx + 0x780]
test rcx, rcx
je 0x180036555
call qword [sym.imp.SDL2.dll_SDL_DestroyWindow]
mov qword [rbx + 0x780], rsi
cmp dword [rbx + 0x78], 0
mov qword [rbx + 0x720], rsi
mov rsi, qword [rsp + 0x30]
je 0x1800365ae
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [rbx + 0x48], 0
je 0x180036582
mov rcx, qword [rbx + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.ca_core.dll_Ordinal_16]
cmp qword [rbx + 0x40], 0
je 0x180036593
mov rcx, qword [rbx + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.ca_core.dll_Ordinal_16]
cmp qword [rbx + 0x38], 0
je 0x1800365a4
mov rcx, qword [rbx + 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.ca_core.dll_Ordinal_16]
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1800389c0
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 0x1800389d9
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rdi
not r9d
lea rdi, [0x180044210]
cmp r11d, 8
jb 0x180038ad1
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
dec rbx
jne 0x180038a00
mov rbx, qword [rsp + 0x10]
test r11d, r11d
je 0x180038aff
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
dec r11d
jne 0x180038ae0
mov rdi, qword [rsp]
not r9d
mov eax, r9d
add rsp, 8
ret

Function at 0x1800393e0
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 0x180039430
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 0x18003942a
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
jmp 0x180039461
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
mov qword [rsp + 0x40], rbx
lea eax, [rdx + rsi]
cmp eax, ecx
jbe 0x180039448
sub ecx, edx
mov esi, ecx
add rdx, qword [r9 + 0x20]
mov r8d, esi
mov rcx, r10
call sub.MSVCR100.dll_memcpy
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 0x180039480
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 0x1800394d0
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 0x1800394ca
mov byte [rbx + 0x10], dil
mov esi, dword [rsp + 0x60]
jmp 0x18003950a
mov qword [rsp + 0x58], rbp
mov ebp, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rbp + 1]
cmp eax, ecx
jbe 0x1800394e6
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 sub.MSVCR100.dll_memcpy
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 0x18003952c
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 0x180039522
cmp byte [rbx + 0x10], 0
je 0x180039522
or eax, 0xffffffff
add rsp, 0x38
pop r12
pop rbx
ret
Function at 0x180039610
Capabilities:
Read file on windows

Disassembly:
push rsi
push r15
sub rsp, 0x68
cmp byte [rcx], 0
mov rsi, rcx
je 0x180039648
cmp byte [rcx + 1], 0
je 0x18003963d
mov rcx, qword [rcx + 8]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x18003964e
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 0x180039690
cmp byte [rsi + 1], 0
je 0x18003968b
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]
jmp 0x180039694
xor r12d, r12d
jmp 0x180039694
mov r12d, dword [rsi + 0x2c]
mov ebp, 0xffff
mov r13d, 0x404
mov dword [rsp + 0x80], r12d
cmp r12d, ebp
mov ecx, r13d
cmovb ebp, r12d
mov dword [rsp + 0x98], ebp
call qword [sym.imp.MSVCR100.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1800396ce
or eax, 0xffffffff
jmp 0x180039823
mov qword [rsp + 0x60], rbx
mov ebx, 4
or r15d, 0xffffffff
cmp ebp, ebx
jbe 0x180039812
mov qword [rsp + 0x38], r14
nop dword [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 0x180039735
cmp byte [rsi + 1], 0
je 0x18003980d
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 0x180039739
mov dword [rsi + 0x2c], r14d
cmp byte [rsi], 0
mov ebp, r12d
mov r13d, r12d
je 0x180039776
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 0x18003976d
mov byte [rsi + 0x10], 1
mov eax, dword [rsp + 0x88]
jmp 0x1800397a3
mov ecx, dword [rsi + 0x2c]
mov edx, dword [rsi + 0x28]
lea eax, [rcx + r12]
cmp eax, edx
jbe 0x18003978a
mov r13d, edx
sub r13d, ecx
mov rdx, rcx
mov r8d, r13d
mov rcx, rdi
add rdx, qword [rsi + 0x20]
call sub.MSVCR100.dll_memcpy
add dword [rsi + 0x2c], r13d
mov eax, r13d
xor edx, edx
div rbp
cmp rax, 1
jne 0x18003980d
lea ecx, [r12 - 3]
movsxd rax, ecx
test ecx, ecx
js 0x1800397eb
nop word [rax + rax]
dec rax
dec ecx
cmp byte [rax + rdi], 0x50
jne 0x1800397e0
cmp byte [rax + rdi + 1], 0x4b
jne 0x1800397e0
cmp byte [rax + rdi + 2], 5
jne 0x1800397e0
cmp byte [rax + rdi + 3], 6
je 0x1800397e7
test rax, rax
jns 0x1800397c0
jmp 0x1800397eb
lea r15d, [rcx + r14]
test r15d, r15d
jne 0x18003980d
mov ebp, dword [rsp + 0x98]
mov r12d, dword [rsp + 0x80]
mov r13d, 0x404
cmp ebx, ebp
jb 0x1800396f0
mov r14, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_free]
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 0x18003a2c0
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 0x18003a2de
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
cmp dword [rcx + 0x1c], 0
je 0x18003a2d2
cmp qword [rcx + 0x80], 0
je 0x18003a2f3
call fcn.18003a860
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.180039ff0
test eax, eax
je 0x18003a31a
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call qword [sym.imp.MSVCR100.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x18003a341
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 qword [sym.imp.MSVCR100.dll_malloc]
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 0x18003a389
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_free]
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 0x18003a3e0
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.180038db0
test eax, eax
jne 0x18003a3e0
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 0x18003a40b
movzx eax, byte [rdi + 0x3d]
jmp 0x18003a40f
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
movzx eax, byte [rbx + 0x98]
mov dword [rbx + 0x9c], 0x12345678
neg al
mov dword [rbx + 0xa0], 0x23456789
mov dword [rbx + 0xa4], 0x34567890
sbb ecx, ecx
and ecx, 0xc
mov dword [rbx + 0xa8], ecx
test rsi, rsi
je 0x18003a4b5
lea r8, [0x180044210]
movzx eax, byte [rsi]
test al, al
je 0x18003a4b5
mov edx, dword [rbx + 0x9c]
mov ecx, edx
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
inc rsi
mov dword [rbx + 0xa4], eax
jne 0x18003a453
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