joyce8/EMBER2024-capa huggingface dataset:
Function at 0x60001270
Capabilities:
Access peb ldr_data

Disassembly:
push r14
push r15
sub rsp, 0x28
mov rax, qword [rcx]
mov r15, rcx
mov r14, qword [rcx + 8]
cmp dword [rax + 0x94], 0
jbe 0x6000143d
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov esi, dword [rax + 0x90]
mov qword [rsp + 0x58], rdi
add rsi, r14
mov qword [rsp + 0x20], r12
mov r12, 0xffffffffffffffff
nop dword [rax + rax]
mov rcx, qword [0x60180c20]
test rcx, rcx
jne 0x600012f2
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rax, qword [rax + 0x10]
mov rcx, qword [rax]
mov rax, qword [rcx]
mov rcx, qword [rax + 0x30]
mov qword [0x60180c20], rcx
lea rdx, [0x60018840]
call fcn.60001910
mov edx, 0x14
mov rcx, rsi
call rax
test eax, eax
jne 0x60001436
mov eax, dword [rsi + 0xc]
test eax, eax
je 0x60001436
lea rbx, [r14 + rax]
mov rax, qword [0x60180c10]
test rax, rax
jne 0x60001370
mov rcx, qword [0x60180c20]
test rcx, rcx
jne 0x6000135d
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rax, qword [rax + 0x10]
mov rdx, qword [rax]
mov rax, qword [rdx]
mov rcx, qword [rax + 0x30]
mov qword [0x60180c20], rcx
lea rdx, [0x600187e0]
call fcn.60001910
mov qword [0x60180c10], rax
mov rcx, rbx
call rax
mov rbp, rax
test rax, rax
je 0x60001412
movsxd rcx, dword [r15 + 0x20]
mov eax, 8
inc rcx
mul rcx
mov rcx, qword [r15 + 0x10]
cmovo rax, r12
mov rdx, rax
call fcn.60005750
mov qword [r15 + 0x10], rax
mov rcx, rax
test rax, rax
je 0x60001412
movsxd rax, dword [r15 + 0x20]
mov qword [rcx + rax*8], rbp
inc dword [r15 + 0x20]
mov ecx, dword [rsi]
test ecx, ecx
je 0x600013c3
mov eax, dword [rsi + 0x10]
jmp 0x600013c8
mov ecx, dword [rsi + 0x10]
mov eax, ecx
mov edi, eax
mov ebx, ecx
add rdi, r14
add rbx, r14
mov rax, qword [rbx]
test rax, rax
je 0x60001409
jns 0x600013e1
movzx edx, ax
jmp 0x600013e8
lea rdx, [r14 + 2]
add rdx, rax
mov rcx, rbp
call fcn.60001910
mov qword [rdi], rax
test rax, rax
je 0x60001412
mov rax, qword [rbx + 8]
add rbx, 8
add rdi, 8
test rax, rax
jne 0x600013da
add rsi, 0x14
jmp 0x600012c0
xor eax, eax
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r12, qword [rsp + 0x20]
add rsp, 0x28
pop r15
pop r14
ret
mov eax, 1
jmp 0x60001414
mov eax, 1
add rsp, 0x28
pop r15
pop r14
ret
Function at 0x60001910
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push r12
sub rsp, 0x70
mov r12, qword [reloc.KERNEL32.dll_GetProcAddress]
mov rax, rdx
test r12, r12
jne 0x60001a7c
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r14
mov r14, qword [0x60180c20]
mov qword [rsp + 0x38], r15
test r14, r14
jne 0x60001979
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rax, qword [rax + 0x10]
mov rcx, qword [rax]
mov rax, qword [rcx]
mov r14, qword [rax + 0x30]
mov qword [0x60180c20], r14
movsxd rax, dword [r14 + 0x3c]
xor r12d, r12d
mov ebp, r12d
mov ecx, dword [rax + r14 + 0x88]
add rcx, r14
mov eax, dword [rcx + 0x14]
mov r13d, dword [rcx + 0x1c]
mov edx, dword [rcx + 0x20]
add r13, r14
mov r15d, dword [rcx + 0x18]
add rdx, r14
mov ecx, dword [rcx + 0x24]
add rcx, r14
mov dword [rsp + 0x90], eax
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
test eax, eax
je 0x60001a51
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rdi
mov eax, dword [r13]
mov dword [rsp + 0x98], eax
test eax, eax
je 0x60001a26
mov edi, r12d
test r15d, r15d
je 0x60001a26
mov rsi, rdx
mov rbx, rcx
nop dword [rax]
movzx eax, word [rbx]
cmp eax, ebp
jne 0x60001a0d
movsxd rcx, dword [rsi]
lea rdx, [0x600187d0]
add rcx, r14
call fcn.6000fe10
test eax, eax
je 0x60001a37
inc edi
add rbx, 2
add rsi, 4
cmp edi, r15d
jb 0x600019f0
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
inc ebp
add r13, 4
cmp ebp, dword [rsp + 0x90]
jb 0x600019d0
jmp 0x60001a42
movsxd r12, dword [rsp + 0x98]
add r12, r14
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
mov r15, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x60]
mov qword [reloc.KERNEL32.dll_GetProcAddress], r12
mov rdx, rax
mov rax, r12
add rsp, 0x70
pop r12
jmp rax

Function at 0x60006474
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x60006264
Function at 0x18000653c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180006561
xor eax, eax
jmp 0x18000665e
cmp qword [rcx + 0x68], 0
je 0x180006572
call fcn.180006d2c
jmp 0x18000665e
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x180006589
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18000658b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800065c0
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.18021af70
mov rax, qword [rsi + 0x50]
sub rbp, rbx
add r14, rbx
mov r8, rbp
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x180006658
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x1800065fb
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
mov rbx, r8
cmp r8, r15
jbe 0x180006633
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.180221a6c
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x18000666f
cmp rbp, r15
ja 0x180006609
mov r8, rbx
test rbx, rbx
je 0x180006658
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.180221a6c
mov r8, rbx
sub r8, rax
sub rdi, r8
mov rax, rdi
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
sub rdi, rbp
jmp 0x18000665b

Function at 0x18000aa70
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1802e8850]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x11c
call fcn.18021b720
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 6
je 0x18000aabc
cmp dword [rsp + 0x24], 0xa
jne 0x18000aaca
cmp byte [rsp + 0x13a], 3
jne 0x18000aaca
mov al, 1
jmp 0x18000aacc
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180218af0
add rsp, 0x158
ret
Function at 0x180015b68
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1802e8850]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x20], rcx
mov qword [r11 - 0x38], rdx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
mov qword [r11 - 0x20], rax
lea edx, [rax + 0xb]
lea rcx, [r11 - 0x30]
call fcn.180016e88
nop
mov rbx, qword [rsp + 0x28]
mov dword [rbx], 0x5b54504b
mov dword [rbx + 4], 0x58464a5e
mov word [rbx + 8], 0x5057
mov byte [rbx + 0xa], 0x51
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rax
mov rdx, qword [rdi + 8]
sub rdx, qword [rdi]
mov rcx, rsi
call fcn.180016e88
mov r11, qword [rsp + 0x30]
sub r11, rbx
xor r10d, r10d
mov rax, qword [rdi + 8]
cmp rax, qword [rdi]
je 0x180015c2f
xor r9d, r9d
mov r8, qword [rdi]
mov eax, r10d
cdq
idiv r11d
movsxd rax, edx
mov rcx, qword [rsi]
mov al, byte [rax + rbx]
xor al, byte [r9 + r8]
mov byte [r9 + rcx], al
inc r10d
inc r9
mov rcx, qword [rdi + 8]
sub rcx, qword [rdi]
movsxd rax, r10d
cmp rax, rcx
jb 0x180015bff
mov rdx, qword [rsp + 0x38]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x180015c58
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180015cc4
mov rcx, rbx
call fcn.1800994c8
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x180015ca4
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x180015c91
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180015cca
mov rcx, r8
call fcn.1800994c8
and qword [rdi], 0
and qword [rdi + 8], 0
and qword [rdi + 0x10], 0
mov rax, rsi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180218af0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
call fcn.180220b68
nop
call fcn.180220b68
int3
Function at 0x180090d98
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r9d, ecx
test rdx, rdx
jne 0x180090da9
xor eax, eax
jmp 0x180090e15
lea rbx, [0x1802b1ab0]
not r9d
cmp r8d, 8
jb 0x180090ded
mov r10d, r8d
shr r10, 3
mov r11d, 8
movzx ecx, byte [rdx]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc rdx
xor r9d, dword [rbx + rax*4]
sub r11, 1
jne 0x180090dc6
add r8d, 0xfffffff8
sub r10, 1
jne 0x180090dc0
test r8d, r8d
je 0x180090e0f
movzx ecx, byte [rdx]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc rdx
xor r9d, dword [rbx + rax*4]
add r8d, 0xffffffff
jne 0x180090df2
not r9d
mov eax, r9d
mov rbx, qword [rsp + 8]
ret

Function at 0x1800915b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1802e8850]
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 0x180091606
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rdx, rcx
mov r8d, r10d
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180091600
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x30]
jmp 0x180091632
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
sub ecx, edx
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.18021af70
add dword [rdi + 0x2c], ebx
mov eax, ebx
xor edx, edx
div rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180218af0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x180091ff0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x1800921cb
cmp dword [rcx + 0x1c], 0
je 0x1800921cb
cmp qword [rcx + 0x80], 0
je 0x180092020
call fcn.180092510
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.180091e2c
test eax, eax
je 0x180092045
mov eax, 0xffffff99
jmp 0x1800921d0
mov ecx, 0xb0
call fcn.18022a34c
mov rbx, rax
test rax, rax
jne 0x180092061
mov eax, 0xffffff98
jmp 0x1800921d0
mov ecx, 0x4000
call fcn.18022a34c
mov ecx, dword [rsp + 0x40]
and dword [rbx + 0x70], 0
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rbx + 0x6c], ecx
mov qword [rbx], rax
test rax, rax
jne 0x18009208f
mov rcx, rbx
call fcn.180221648
jmp 0x180092057
mov eax, dword [rdi + 0x40]
mov ecx, dword [rdi + 0x38]
and dword [rbx + 0x64], 0
and dword [rbx + 0x74], 0
and dword [rbx + 0x24], 0
mov dword [rbx + 0x78], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x94], eax
mov dword [rbx + 0x90], ecx
test ecx, ecx
je 0x1800920e4
and qword [rbx + 0x38], 0
lea rcx, [rbx + 8]
and qword [rbx + 0x40], 0
and qword [rbx + 0x48], 0
call fcn.180091000
test eax, eax
jne 0x1800920e4
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
mov cl, byte [rdi + 0x34]
mov dword [rbx + 0x7c], eax
and cl, 1
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
mov eax, dword [rdi + 0x34]
shr eax, 3
mov byte [rbx + 0x98], cl
test al, 1
je 0x18009210e
mov al, byte [rdi + 0x3d]
jmp 0x180092111
mov al, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
neg cl
mov dword [rbx + 0x9c], 0x12345678
sbb eax, eax
mov dword [rbx + 0xa0], 0x23456789
and eax, 0xc
mov dword [rbx + 0xa4], 0x34567890
mov dword [rbx + 0xa8], eax
test rsi, rsi
je 0x1800921ad
lea r8, [0x1802b1ab0]
cmp byte [rsi], 0
je 0x1800921ad
mov edx, dword [rbx + 0x9c]
movsx rax, byte [rsi]
xor rax, rdx
shr edx, 8
movzx ecx, al
xor edx, dword [r8 + rcx*4]
movzx eax, dl
add eax, dword [rbx + 0xa0]
imul ecx, eax, 0x8088405
mov dword [rbx + 0x9c], edx
mov edx, dword [rbx + 0xa4]
inc ecx
mov dword [rbx + 0xa0], ecx
movzx eax, byte [rbx + 0xa3]
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [r8 + rcx*4]
mov dword [rbx + 0xa4], edx
add rsi, 1
jne 0x18009214e
mov eax, dword [rsp + 0x58]
mov ecx, dword [rdi + 0x7c]
add eax, 0x1e
and dword [rbx + 0x10], 0
add ecx, eax
mov dword [rbx + 0x60], ecx
xor eax, eax
mov qword [rdi + 0x80], rbx
jmp 0x1800921d0
mov eax, 0xffffff9a
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x180092b00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x50
mov rbx, r9
mov rdi, rcx
mov ebp, 0x458
mov ecx, ebp
call fcn.180098c70
mov rsi, rax
mov qword [rsp + 0x40], rax
xor r12d, r12d
test rax, rax
je 0x180092b8d
mov r8d, ebp
xor edx, edx
mov rcx, rax
call fcn.18021b720
mov qword [rsi], r12
or dword [rsi + 8], 0xffffffff
or dword [rsi + 0x23c], 0xffffffff
mov qword [rsi + 0x240], r12
mov qword [rsi + 0x248], r12
test rbx, rbx
je 0x180092b90
mov rcx, rbx
call fcn.180221200
lea rcx, [rax + 1]
call fcn.180098cc0
mov qword [rsi + 0x240], rax
mov rdx, rbx
mov rcx, rax
call fcn.18022a5b0
jmp 0x180092b90
mov rsi, r12
cmp qword [rsi], r12
jne 0x180092cab
cmp dword [rsi + 8], 0xffffffff
jne 0x180092cab
lea rbx, [rsi + 0x250]
mov rdx, rbx
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rcx, rbx
call fcn.18021fa08
movzx ecx, word [rsi + rax*2 + 0x24e]
cmp cx, 0x5c
je 0x180092bdf
mov edx, 0x2f
cmp cx, dx
je 0x180092bdf
mov dword [rsi + rax*2 + 0x250], edx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x180092c9f
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
cmp eax, 0xffffffff
setne bl
mov ecx, 0x30
call fcn.180098c70
mov r14, rax
mov byte [rax], 1
mov byte [rax + 0x18], 1
mov byte [rax + 1], bl
mov qword [rax + 8], rbp
mov byte [rax + 0x10], r12b
mov dword [rax + 0x14], r12d
cmp edi, 0xffffffff
je 0x180092c72
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [r14 + 0x14], eax
mov rcx, r14
call fcn.180091930
mov qword [rsi], rax
test rax, rax
je 0x180092c9f
mov dword [0x1802f65f0], r12d
mov ecx, 0x10
call fcn.180098c70
mov dword [rax], 1
mov qword [rax + 8], rsi
jmp 0x180092cf3
mov eax, 0x200
mov ebp, 0x458
jmp 0x180092cb0
mov eax, 0x1000000
mov dword [0x1802f65f0], eax
mov rcx, qword [rsi + 0x240]
test rcx, rcx
je 0x180092cc7
call fcn.180098cb8
mov qword [rsi + 0x240], r12
mov rcx, qword [rsi + 0x248]
test rcx, rcx
je 0x180092cdf
call fcn.180098cb8
mov qword [rsi + 0x248], r12
mov rdx, rbp
mov rcx, rsi
call fcn.1800994c8
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
Function at 0x18009321c
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x88
mov rax, qword [0x1802e8850]
xor rax, rsp
mov qword [rbp + 7], rax
mov r12, qword [rbp + 0x7f]
mov r15, rdx
lea rdx, [rbp - 0x31]
mov r13, r9
mov r14, r8
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x18009326b
mov eax, 0x200
jmp 0x180093460
mov r8d, dword [rbp - 0x31]
mov eax, r8d
mov r9d, r8d
and r9d, 1
mov ecx, r9d
or ecx, 2
and al, 2
mov eax, r8d
cmove ecx, r9d
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov ecx, r8d
mov eax, edx
or eax, 0x10
and ecx, 0x10
cmove eax, edx
mov edx, eax
or edx, 0x20
and r8b, 0x20
cmove edx, eax
mov eax, ecx
neg eax
mov eax, 0xc0000000
sbb ebx, ebx
and ebx, eax
add ebx, 0x81000000
or ebx, edx
test r9d, r9d
jne 0x1800932d4
neg ecx
sbb ebx, ebx
and ebx, eax
add ebx, 0x81800000
or ebx, edx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0x28
jbe 0x1800933ab
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x39]
mov r8d, 2
lea rdx, [rbp - 0x41]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x24]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x39]
mov r8d, 4
lea rdx, [rbp - 0x3d]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [rbp - 0x41], ax
jne 0x1800933ab
mov edx, dword [rbp - 0x3d]
lea eax, [rdx + 0x34]
cmp esi, eax
jbe 0x1800933ab
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x39]
mov r8d, 4
lea rdx, [rbp - 0x35]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rbp - 0x35]
cmp eax, 0x5a4d
je 0x1800933a7
add eax, 0xffffbab4
cmp eax, 4
ja 0x1800933ab
mov ecx, 0x15
bt ecx, eax
jae 0x1800933ab
bts ebx, 0x16
test r15, r15
je 0x1800933b3
mov dword [r15], ebx
test r14, r14
je 0x1800933bb
mov dword [r14], esi
mov rcx, qword [rbp - 0x1d]
test r13, r13
je 0x18009343b
mov r8, qword [rbp - 0x25]
movabs r10, 0xfe624e212ac18000
add r8, r10
movabs r9, 0xd6bf94d5e57a42bd
mov rax, r9
imul r8
add rdx, r8
lea r8, [rcx + r10]
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, r9
mov dword [r13], edx
imul r8
mov rax, r9
add rdx, r8
sar rdx, 0x17
mov r8, rdx
shr r8, 0x3f
add rdx, r8
mov r8, qword [rbp - 0x2d]
mov dword [r13 + 4], edx
add r8, r10
imul r8
add rdx, r8
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov dword [r13 + 8], edx
test r12, r12
je 0x18009345e
lea r8, [rbp - 0x3d]
lea rdx, [rbp - 0x41]
call fcn.1800930e8
movzx ecx, word [rbp - 0x41]
movzx eax, word [rbp - 0x3d]
shl ecx, 0x10
or ecx, eax
mov dword [r12], ecx
xor eax, eax
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.180218af0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180095f5c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x180095f70
xor eax, eax
jmp 0x180095fe1
lea rbx, [0x1802b3280]
not r9d
cmp r8, 8
jb 0x180095fb8
mov rdx, r8
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r8, rax
mov r11d, 8
movzx ecx, byte [r10]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc r10
xor r9d, dword [rbx + rax*4]
sub r11, 1
jne 0x180095f94
sub rdx, 1
jne 0x180095f8e
test r8, r8
je 0x180095fdb
movzx ecx, byte [r10]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc r10
xor r9d, dword [rbx + rax*4]
sub r8, 1
jne 0x180095fbd
not r9d
mov eax, r9d
mov rbx, qword [rsp + 8]
ret

Function at 0x18009606c
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1802e8850]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp byte [rcx + 0x41], 0
mov rsi, rdx
mov edi, r8d
mov rbx, rcx
je 0x18009616a
mov rcx, qword [rcx + 0x50]
mov rax, rcx
test rcx, rcx
je 0x1800960b7
cmp dword [rbx + 0x58], edi
jae 0x1800960b7
call fcn.180098cb8
and qword [rbx + 0x50], 0
jmp 0x1800960bc
test rax, rax
jne 0x1800960cb
lea ecx, [rdi + rdi]
call fcn.180098cc0
mov qword [rbx + 0x50], rax
mov dword [rbx + 0x58], edi
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbp, rdi
call fcn.18021af70
test edi, edi
je 0x180096166
xor r11d, r11d
lea rsi, [0x1802b3280]
mov rax, qword [rbx + 0x50]
mov r8d, dword [rbx + 0x4c]
mov edx, dword [rbx + 0x44]
mov r9d, r8d
mov ecx, edx
and r9d, 0xfffd
movsx r10, byte [r11 + rax]
or r9d, 2
xor rcx, r10
shr edx, 8
movzx eax, cl
xor edx, dword [rsi + rax*4]
movzx eax, dl
add eax, dword [rbx + 0x48]
imul ecx, eax, 0x8088405
mov dword [rbx + 0x44], edx
inc ecx
mov dword [rbx + 0x48], ecx
movzx eax, byte [rbx + 0x4b]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [rsi + rcx*4]
mov ecx, r9d
xor ecx, 1
mov dword [rbx + 0x4c], r8d
mov rax, qword [rbx + 0x50]
imul ecx, r9d
shr ecx, 8
xor cl, r10b
mov byte [r11 + rax], cl
inc r11
sub rbp, 1
jne 0x1800960ee
mov rsi, qword [rbx + 0x50]
cmp qword [rbx + 0x30], 0
je 0x18009619b
mov ecx, dword [rbx + 0x38]
lea eax, [rcx + rdi]
cmp eax, dword [rbx + 0x3c]
jb 0x180096185
mov dword [rbx + 0x24], 0x30000
jmp 0x1800961c8
add rcx, qword [rbx + 0x30]
mov r8, rdi
mov rdx, rsi
call fcn.18021af70
add dword [rbx + 0x38], edi
mov eax, edi
jmp 0x1800961ca
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1800961c1
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x30]
jmp 0x1800961ca
mov dword [rbx + 0x24], 0x1000000
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180218af0
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x18009635c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1802e8850]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rcx
mov rbp, rdx
mov rcx, qword [rcx + 0xa8]
test rcx, rcx
je 0x1800963dc
mov eax, dword [rdi + 0xb4]
mov esi, dword [rdi + 0xb0]
cmp eax, esi
jae 0x180096429
sub esi, eax
lea rdx, [rcx + rax]
cmp esi, r8d
mov rcx, rbp
cmova esi, r8d
mov r8d, esi
call fcn.18021af70
mov ecx, dword [rdi + 0x90]
mov rdx, rbp
add dword [rdi + 0xb4], esi
add dword [rdi + 0x8c], esi
mov r8d, esi
call fcn.180095f5c
mov dword [rdi + 0x90], eax
mov eax, esi
jmp 0x18009642b
mov rcx, qword [rdi + 0x98]
test rcx, rcx
je 0x180096422
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180096429
mov ebx, dword [rsp + 0x30]
mov rdx, rbp
add dword [rdi + 0x8c], ebx
mov r8d, ebx
mov ecx, dword [rdi + 0x90]
call fcn.180095f5c
mov dword [rdi + 0x90], eax
mov eax, ebx
jmp 0x18009642b
mov dword [rdi + 0x24], 0x1000000
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180218af0
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret