joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800019c0
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x520], rbx
mov rax, qword [0x180038010]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rax, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x50], rcx
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x180001a5d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
test eax, eax
jne 0x180001a83
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 0xf
mov byte [rsi], dil
xor r8d, r8d
lea rdx, [0x18002fca0]
mov rcx, rsi
call fcn.180002a90
jmp 0x180001bf9
lea rax, vtable.rt_utility::md5_checksum.0
mov qword [rsp + 0x60], rax
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov ebx, edi
mov dword [rbp - 0x54], ebx
mov r15d, edi
mov dword [rbp - 0x58], edi
mov dword [rbp - 0x50], 0x67452301
mov dword [rbp - 0x4c], 0xefcdab89
mov dword [rbp - 0x48], 0x98badcfe
mov dword [rbp - 0x44], 0x10325476
mov dword [rsp + 0x50], edi
test r14d, r14d
jle 0x180001be2
mov esi, 0x400
nop dword [rax]
mov r8d, r14d
cmp r14d, esi
cmova r8d, esi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x50]
lea rdx, [rbp - 0x40]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12d, dword [rsp + 0x50]
mov edi, r12d
mov r9d, r15d
shr r9d, 3
and r9d, 0x3f
lea ecx, [r15 + r12*8]
mov dword [rbp - 0x58], ecx
lea eax, [r12*8]
cmp ecx, eax
jae 0x180001b39
inc ebx
mov eax, edi
shr eax, 0x1d
add ebx, eax
mov dword [rbp - 0x54], ebx
mov ebx, 0x40
sub ebx, r9d
cmp edi, ebx
jb 0x180001ba7
mov r8d, ebx
mov eax, r9d
lea rcx, [rsp + 0x68]
add rcx, rax
lea rdx, [rbp - 0x40]
call fcn.180011170
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call fcn.180001c30
lea eax, [rbx + 0x3f]
cmp eax, edi
jae 0x180001b9d
nop dword [rax]
mov eax, ebx
lea rdx, [rbp - 0x40]
add rdx, rax
lea rcx, [rsp + 0x60]
call fcn.180001c30
add ebx, 0x40
lea eax, [rbx + 0x3f]
cmp eax, edi
jb 0x180001b80
xor r9d, r9d
mov r12d, dword [rsp + 0x50]
jmp 0x180001ba9
xor ebx, ebx
sub edi, ebx
mov r8d, edi
mov eax, ebx
lea rdx, [rbp - 0x40]
add rdx, rax
mov eax, r9d
lea rcx, [rsp + 0x68]
add rcx, rax
call fcn.180011170
sub r14d, r12d
test r14d, r14d
jle 0x180001bdd
mov ebx, dword [rbp - 0x54]
mov r15d, dword [rbp - 0x58]
xor edi, edi
jmp 0x180001af0
mov rsi, qword [rsp + 0x40]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.180002750
nop
mov rax, rsi
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.18000ed70
mov rbx, qword [rsp + 0x520]
add rsp, 0x4d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180002509
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test rdx, rdx
je 0x180002746
push rdi
push r15
sub rsp, 0x48
mov rax, qword [0x180038010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x70], rbx
lea r8, [rsp + 0x22]
mov qword [rsp + 0x78], rbp
mov r15, rdx
xor ebp, ebp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r12
mov rdi, rcx
mov qword [rsp + 0x30], r14
mov r9d, ebp
lea edx, [rbp + 2]
nop dword [rax + rax]
mov eax, r9d
lea r8, [r8 + 4]
inc r9d
lea rcx, [rdi + rax*4]
movzx eax, byte [rdi + rax*4 + 0x48]
mov byte [r8 - 6], al
movzx eax, byte [rcx + 0x49]
mov byte [r8 - 5], al
movzx eax, byte [rcx + 0x4a]
mov byte [r8 - 4], al
movzx eax, byte [rcx + 0x4b]
mov byte [r8 - 3], al
sub rdx, 1
jne 0x180002550
mov ecx, dword [rdi + 0x48]
mov eax, 0x78
mov edx, dword [rdi + 0x4c]
mov r9d, ecx
shr r9d, 3
mov r14d, 0x38
and r9d, 0x3f
sub eax, r9d
sub r14d, r9d
cmp r9d, 0x38
cmovae r14d, eax
lea ecx, [rcx + r14*8]
lea eax, [r14*8]
mov dword [rdi + 0x48], ecx
cmp ecx, eax
jae 0x1800025c4
inc edx
mov eax, r14d
lea r12, [0x180038a20]
shr eax, 0x1d
mov ebx, 0x40
add eax, edx
mov esi, ebx
sub esi, r9d
mov dword [rdi + 0x4c], eax
cmp r14d, esi
jb 0x18000262c
mov eax, r9d
lea rcx, [rdi + 8]
add rcx, rax
mov r8d, esi
mov rdx, r12
call fcn.180011170
lea rdx, [rdi + 8]
mov rcx, rdi
call fcn.180001c30
lea eax, [rsi + 0x3f]
cmp eax, r14d
jae 0x180002627
nop
mov edx, esi
mov rcx, rdi
add rdx, r12
call fcn.180001c30
add esi, ebx
lea eax, [rsi + 0x3f]
cmp eax, r14d
jb 0x180002610
mov r9d, ebp
jmp 0x18000262e
mov esi, ebp
mov eax, r9d
lea rcx, [rdi + 8]
sub r14d, esi
mov edx, esi
mov r8d, r14d
add rdx, r12
add rcx, rax
call fcn.180011170
mov eax, dword [rdi + 0x48]
mov ecx, eax
mov r14, qword [rsp + 0x30]
add eax, ebx
mov r12, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
shr ecx, 3
and ecx, 0x3f
mov dword [rdi + 0x48], eax
cmp eax, ebx
jae 0x18000266e
inc dword [rdi + 0x4c]
sub ebx, ecx
cmp ebx, 8
ja 0x1800026c1
mov eax, ecx
lea rdx, [rsp + 0x20]
lea rcx, [rdi + 8]
mov r8d, ebx
add rcx, rax
call fcn.180011170
lea rdx, [rdi + 8]
mov rcx, rdi
call fcn.180001c30
lea eax, [rbx + 0x3f]
cmp eax, 8
jae 0x1800026bd
nop
mov eax, ebx
lea rdx, [rsp + 0x20]
add rdx, rax
mov rcx, rdi
call fcn.180001c30
add ebx, 0x40
lea eax, [rbx + 0x3f]
cmp eax, 8
jb 0x1800026a0
mov ecx, ebp
jmp 0x1800026c3
mov ebx, ebp
mov eax, ebx
lea rdx, [rsp + 0x20]
add rdx, rax
mov r8d, 8
mov eax, ecx
sub r8d, ebx
lea rcx, [rdi + 8]
add rcx, rax
call fcn.180011170
mov rbx, qword [rsp + 0x70]
lea rdx, [r15 + 2]
add rdi, 0x50
mov r8d, 4
nop word [rax + rax]
movzx eax, byte [rdi + rbp*4]
lea rcx, [rdi + rbp*4]
mov byte [rdx - 2], al
lea rdx, [rdx + 4]
movzx eax, byte [rcx + 1]
lea ebp, [rbp + 1]
mov byte [rdx - 5], al
movzx eax, byte [rcx + 2]
mov byte [rdx - 4], al
movzx eax, byte [rcx + 3]
mov byte [rdx - 3], al
sub r8, 1
jne 0x180002700
mov rbp, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18000ed70
add rsp, 0x48
pop r15
pop rdi
ret
Function at 0x180002da0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180002e15
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x180002e15
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x180002e05
nop
cmp rbx, rcx
jae 0x180002e15
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x180002df0
cmp rbx, rcx
jae 0x180002e15
cmp word [rbx], 0
je 0x180002e15
mov rax, rbx
jmp 0x180002e17
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180003280
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x8a8]
sub rsp, 0x9a8
mov rax, qword [0x180038010]
xor rax, rsp
mov qword [rbp + 0x890], rax
lea rdi, [rbp + 0x8d8]
mov rbx, rcx
mov qword [rsp + 0x50], rdi
call fcn.180001910
xor esi, esi
mov qword [rsp + 0x28], rdi
mov r9, rbx
mov qword [rsp + 0x20], rsi
mov r8d, 0x7fffffff
lea rdx, [rbp + 0x90]
mov rcx, qword [rax]
call fcn.180016d80
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [rbp + 0x90]
mov qword [rsp + 0x58], rsi
lea rcx, [rsp + 0x58]
call fcn.180003cd0
mov rbx, qword [rsp + 0x58]
lea rcx, [rbp - 0x80]
xor edx, edx
mov r8d, 0x104
call fcn.1800115d0
mov r8d, 0x104
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [rsi + 0x5c]
lea rcx, [rbp - 0x80]
call fcn.180010dd4
mov byte [rax + 1], sil
lea rax, [rbp - 0x80]
dec rax
cmp byte [rax + 1], sil
lea rax, [rax + 1]
jne 0x180003352
mov ecx, dword [0x18002fe28]
movsd xmm0, qword [str.richrdv.log]
movsd qword [rax], xmm0
mov dword [rax + 8], ecx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x6a]
movzx edx, word [rsp + 0x68]
movzx eax, word [rsp + 0x6c]
movzx r10d, word [rsp + 0x66]
movzx r9d, word [rsp + 0x62]
movzx r8d, word [rsp + 0x60]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
lea rcx, [rbp + 0x490]
mov dword [rsp + 0x28], edx
lea rdx, str._d__.2d__.2d__.2d:_.2d:_.2d_____s__r_n
mov dword [rsp + 0x20], r10d
call fcn.180001920
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
lea rcx, [rbp - 0x80]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, 0xffffffffffffffff
mov rdi, rax
cmp rax, rbx
je 0x18000344c
lea r9d, [rbx + 3]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rax, [rbp + 0x490]
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], sil
jne 0x180003420
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rsi
lea rdx, [rbp + 0x490]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x180003468
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp + 0x890]
xor rcx, rsp
call fcn.18000ed70
add rsp, 0x9a8
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180003900
Capabilities:
Get networking parameters

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x2b0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x180038010]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rsi, rcx
mov qword [rsp + 0x20], rcx
call fcn.180001110
mov rcx, rax
test rax, rax
je 0x180003aaa
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x258
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.IPHLPAPI.DLL_GetNetworkParams]
test eax, eax
je 0x1800039c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._GetNetworkParams___failed_:_d_n
call fcn.180003280
lea rdi, [rbx - 0x18]
mov rcx, rdi
call fcn.1800014e0
add rax, 0x18
mov qword [rsi], rax
mov ebx, 0xffffffff
lock xadd dword [rdi + 0x10], ebx
sub ebx, 1
jg 0x180003a7e
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rinet_addr + 8]
jmp 0x180003a7e
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x20]
call fcn.180003f40
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
lea rdi, [rbx - 0x18]
mov ebx, 0xffffffff
cmp rcx, rdi
je 0x180003a33
cmp dword [rdi + 0x10], 0
jl 0x180003a24
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x180003a24
call fcn.1800014e0
mov rbp, rax
mov ecx, ebx
lock xadd dword [rdi + 0x10], ecx
sub ecx, 1
jg 0x180003a19
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rinet_addr + 8]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x180003a33
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.180001660
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180003a51
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x38]
lea rcx, [rdi - 0x18]
call fcn.1800014e0
add rax, 0x18
mov qword [rsi], rax
lock xadd dword [rdi - 8], ebx
sub ebx, 1
jg 0x180003a7e
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + 8]
mov rax, rsi
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.18000ed70
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.1800013d0
int3
Function at 0x180003c10
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x180038010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetServices_richdisk
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180003c90
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.UefiBootOrder
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180003ca0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18000ed70
add rsp, 0x58
ret
Function at 0x180008310
Capabilities:
Get uefi variable
Set uefi variable

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x70
mov rax, qword [0x180038010]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r14d, r14d
movzx ebp, cx
mov edi, r14d
call fcn.180003ac0
lea r9d, [r14 + 0x28]
lea r8, [rsp + 0x20]
lea rdx, str.8BE4DF61_93CA_11D2_AA0D_00E098032B8C
lea rcx, str.BootOrder
call qword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
mov esi, eax
test eax, eax
je 0x18000844c
shr esi, 1
mov ecx, r14d
mov qword [rsp + 0x80], rbx
lea ebx, [r14 + 1]
je 0x18000839d
lea rdx, [rsp + 0x20]
cmp word [rdx], bp
jne 0x18000838b
test ecx, ecx
cmove edi, ebx
inc ecx
add rdx, 2
cmp ecx, esi
jb 0x180008381
test edi, edi
jne 0x18000841d
lea ecx, [rsi + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rbx
mov rdx, rax
call fcn.180017e84
mov rdi, rax
mov word [rax], bp
test esi, esi
je 0x1800083ed
lea r8, [rsp + 0x20]
mov r10d, esi
movzx r9d, word [r8]
cmp r9w, bp
je 0x1800083e3
mov eax, ebx
inc ebx
mov word [rdi + rax*2], r9w
add r8, 2
sub r10, 1
jne 0x1800083d0
lea r9d, [rbx + rbx]
mov r8, rdi
lea rdx, str.8BE4DF61_93CA_11D2_AA0D_00E098032B8C
lea rcx, str.BootOrder
call qword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableW]
test eax, eax
jne 0x180008415
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rdi
call fcn.180013668
mov rbx, qword [rsp + 0x80]
mov eax, r14d
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18000ed70
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180008428
Function at 0x18000a0f0
Capabilities:
Get uefi variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1030
call fcn.180025e10
sub rsp, rax
mov rax, qword [0x180038010]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, edx
lea r8, [rsp + 0x20]
lea rdx, str.8BE4DF61_93CA_11D2_AA0D_00E098032B8C
mov r9d, 0x1000
call qword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
mov edi, eax
test eax, eax
je 0x18000a219
mov edx, 0x21
lea ecx, [rdx - 0x20]
call fcn.180017e84
mov rbx, rax
test rax, rax
je 0x18000a219
movzx ecx, byte [rsp + 0x22]
movzx edx, byte [rsp + 0x23]
shl edx, 8
or edx, ecx
mov word [rax], si
movzx ecx, byte [rsp + 0x21]
movzx eax, byte [rsp + 0x20]
shl edx, 8
or edx, ecx
movzx ecx, byte [rsp + 0x25]
shl edx, 8
or edx, eax
shl cx, 8
movzx eax, byte [rsp + 0x24]
or cx, ax
mov dword [rbx + 2], edx
movzx esi, cx
mov word [rbx + 6], si
cmp esi, edi
jg 0x18000a219
lea rcx, [rsp + 0x26]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x18000a1b0
lea edx, [rax*2 + 2]
test edx, edx
je 0x18000a219
movsxd rdi, edx
mov edx, 2
mov rcx, rdi
call fcn.180017e84
mov r8, rdi
mov qword [rbx + 8], rax
lea rdx, [rsp + 0x26]
mov rcx, rax
call fcn.180011170
mov rdx, rsi
mov ecx, 1
call fcn.180017e84
mov qword [rbx + 0x10], rax
test rax, rax
je 0x18000a219
lea rdx, [rsp + 0x26]
mov r8, rsi
add rdx, rdi
mov rcx, rax
call fcn.180011170
mov rax, rbx
jmp 0x18000a21b
xor eax, eax
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.18000ed70
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18000be90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10d, r8d
mov r9, rdx
test rdx, rdx
jne 0x18000bea6
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x180030a50]
not ecx
cmp r10d, 8
jb 0x18000bf98
mov r11, r10
shr r11, 3
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r10d, 0xfffffff8
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x18000bed0
test r10d, r10d
je 0x18000bfc0
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
add r10d, 0xffffffff
jne 0x18000bfa0
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret

Function at 0x18000c8b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [0x180038010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r10d, edx
mov rdi, r9
imul r10d, r8d
mov rsi, rdx
cmp byte [r9], 0
mov r11, rcx
je 0x18000c908
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
mov r8d, r10d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000c902
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x30]
jmp 0x18000c93e
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
sub ecx, edx
mov qword [rsp + 0x40], rbx
lea eax, [rdx + r10]
cmp eax, dword [r9 + 0x28]
cmovbe ecx, r10d
add rdx, qword [r9 + 0x20]
mov ebx, ecx
mov r8d, ecx
mov rcx, r11
call fcn.180011170
add dword [rdi + 0x2c], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
xor edx, edx
div rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18000ed70
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x18000c960
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
sub rsp, 0x48
mov rax, qword [0x180038010]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp byte [rcx], 0
mov r14, rdx
mov qword [rsp + 0x70], rbp
mov rbx, rcx
mov qword [rsp + 0x40], rdi
mov edi, 1
je 0x18000c9bf
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x34]
mov r8d, edi
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000c9b9
mov byte [rbx + 0x10], dil
mov ebp, dword [rsp + 0x34]
jmp 0x18000c9f6
mov qword [rsp + 0x78], rsi
mov esi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rsi + 1]
cmp eax, ecx
jbe 0x18000c9d5
mov edi, ecx
sub edi, esi
mov rdx, rsi
mov r8d, edi
add rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x30]
mov ebp, edi
call fcn.180011170
lea eax, [rsi + rdi]
mov rsi, qword [rsp + 0x78]
mov dword [rbx + 0x2c], eax
mov rdi, qword [rsp + 0x40]
cmp ebp, 1
mov rbp, qword [rsp + 0x70]
jne 0x18000ca24
movzx eax, byte [rsp + 0x30]
mov dword [r14], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18000ed70
add rsp, 0x48
pop r14
pop rbx
ret
cmp byte [rbx], 0
je 0x18000ca0d
cmp byte [rbx + 0x10], 0
je 0x18000ca0d
mov eax, 0xffffffff
jmp 0x18000ca0f
Function at 0x18000d750
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
je 0x18000d961
cmp dword [rcx + 0x1c], 0
je 0x18000d961
cmp qword [rcx + 0x80], 0
je 0x18000d77f
call fcn.18000dd00
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.18000d490
test eax, eax
je 0x18000d7a6
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.180017cc8
mov rbx, rax
test rax, rax
jne 0x18000d7cc
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.180017cc8
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rbx + 0x6c], ecx
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
test rax, rax
jne 0x18000d812
mov rcx, rbx
call fcn.180013668
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, dword [rdi + 0x38]
mov dword [rbx + 0x78], eax
mov dword [rbx + 0x74], ebp
mov eax, dword [rdi + 0x38]
mov dword [rbx + 0x90], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x94], eax
mov dword [rbx + 0x24], ebp
test ecx, ecx
je 0x18000d864
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.18000c250
test eax, eax
jne 0x18000d864
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 0x18000d88f
movzx eax, byte [rdi + 0x3d]
jmp 0x18000d893
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
movzx eax, byte [rbx + 0x98]
neg al
sbb ecx, ecx
and ecx, 0xc
mov dword [rbx + 0xa8], ecx
mov dword [rbx + 0x9c], 0x12345678
mov dword [rbx + 0xa0], 0x23456789
mov dword [rbx + 0xa4], 0x34567890
test rsi, rsi
je 0x18000d935
lea r8, [0x180030a50]
movzx eax, byte [rsi]
test al, al
je 0x18000d935
mov edx, dword [rbx + 0x9c]
xor rax, rdx
movzx ecx, al
shr edx, 8
mov eax, dword [r8 + rcx*4]
mov ecx, dword [rbx + 0xa4]
xor eax, edx
mov dword [rbx + 0x9c], eax
movzx eax, al
add eax, dword [rbx + 0xa0]
imul edx, eax, 0x8088405
movzx eax, cl
shr ecx, 8
inc edx
mov dword [rbx + 0xa0], edx
shr rdx, 0x18
xor rax, rdx
mov eax, dword [r8 + rax*4]
xor eax, ecx
mov dword [rbx + 0xa4], eax
add rsi, 1
jne 0x18000d8d7
mov ecx, dword [rdi + 0x7c]
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x10], ebp
add eax, 0x1e
mov rbp, qword [rsp + 0x20]
add ecx, eax
mov dword [rbx + 0x60], ecx
xor eax, eax
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret