joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000fab0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.140010d80
nop
lea rax, [0x140010e00]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.140002cb0
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x14000fb3f
lea rcx, [rsp + 0x30]
call fcn.14000e640
jmp 0x14000fb57
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rcx, [rsp + 0x30]
call fcn.1400105e0
add rsp, 0x58
ret

Function at 0x140012608
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140012642
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140012647
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140012690
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140015650]
cmp byte [rcx + rax], 0
je 0x140012690
dec r8
sub rdx, 1
jne 0x140012676
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14001391c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140013966
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140013966
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140013966
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140013966
cmp dword [rcx + 0x84], 0xe
jbe 0x140013966
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140013968
xor al, al
add rsp, 0x28
ret
Function at 0x14003e500
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003e528
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003e528
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x141803970
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141803af7
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1418039a1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141803987
add dl, dl
jne 0x1418039ae
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141803a0e
xor eax, eax
add dl, dl
jne 0x1418039bd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141803ac5
add dl, dl
jne 0x1418039ce
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418039db
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418039e8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418039f5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141803a02
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141803996
mov eax, 1
add dl, dl
jne 0x141803a1e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141803a2b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141803a13
sub eax, ebx
mov ebx, 1
jne 0x141803a64
mov ecx, 1
add dl, dl
jne 0x141803a46
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141803a53
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141803a3b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141803996
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141803a80
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141803a8d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141803a75
cmp eax, 0x7d00
jae 0x141803ab3
cmp eax, 0x500
jb 0x141803aae
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141803996
cmp eax, 0x7f
ja 0x141803ab6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141803996
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141803aea
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141803996
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001090
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov rbp, rcx
lea rcx, str.D___Vtfst__Qvcmjd__fo_ebu
xor edx, edx
xor ebx, ebx
call fcn.1401a0f60
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
lea rdx, [0x14020b630]
repne scasb al, byte [rdi]
not rcx
lea r12, [rcx - 1]
lea rcx, str.D___Vtfst__Qvcmjd__fo_ebu
call fcn.140148718
lea rdx, [0x14020b634]
lea rcx, str.D___Vtfst__Qvcmjd__ef_ebu
mov rdi, rax
call fcn.140148718
mov rcx, rdi
mov rsi, rax
call fcn.140148724
test eax, eax
jne 0x140001155
nop
mov edx, 1
lea rcx, [rsp + 0x48]
mov r9, rdi
mov r8d, edx
call fcn.140148a54
mov rcx, rdi
call fcn.140148724
test eax, eax
jne 0x140001149
mov eax, ebx
mov r9, rsi
cdq
idiv r12d
movsxd rax, edx
mov edx, 1
movzx ecx, byte [rax + rbp]
mov r8d, edx
xor byte [rsp + 0x48], cl
lea rcx, [rsp + 0x48]
call fcn.140148c00
inc ebx
mov rcx, rdi
call fcn.140148724
test eax, eax
je 0x140001100
mov rcx, rdi
call fcn.140148d0c
mov rcx, rsi
call fcn.140148d0c
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x140001180
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x140248c60]
xor rax, rsp
mov qword [rsp + 0x150], rax
call fcn.140007ad0
mov rbx, rax
test rax, rax
je 0x1400011bc
mov rcx, rax
call fcn.140007c30
test eax, eax
je 0x1400011c3
mov rcx, rbx
call fcn.140007ce0
xor eax, eax
jmp 0x140001332
mov qword [rsp + 0x170], rbp
xor ebp, ebp
mov qword [rsp + 0x178], rsi
mov esi, ebp
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x148], ebp
mov byte [rsp + 0x24], sil
cmp dword [rbx], 1
mov qword [rsp + 0x180], rdi
je 0x14000120d
mov rcx, rbx
mov dword [0x140255f24], 0x80000
call fcn.140007ce0
xor eax, eax
jmp 0x14000131a
mov rdi, qword [rbx + 8]
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0xffffffff
jg 0x140001221
mov eax, 0x10000
jmp 0x14000126b
cmp dword [rdi + 8], 0xffffffff
je 0x14000122c
call fcn.140006dc0
mov rax, qword [rdi]
mov dword [rdi + 8], 0xffffffff
mov esi, dword [rax + 8]
mov byte [rsp + 0x24], bpl
mov qword [rsp + 0x128], rbp
mov qword [rsp + 0x130], rbp
mov qword [rsp + 0x138], rbp
mov qword [rsp + 0x140], rbp
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x148], ebp
mov eax, ebp
mov dword [0x140255f24], eax
test eax, eax
je 0x140001284
mov rcx, rbx
call fcn.140007ce0
xor eax, eax
jmp 0x14000131a
mov edi, ebp
test esi, esi
jle 0x140001300
nop word [rax + rax]
mov dword [rsp + 0x20], ebp
mov byte [rsp + 0x24], bpl
mov dword [rsp + 0x148], ebp
cmp dword [rbx], 1
je 0x1400012b1
mov dword [0x140255f24], 0x80000
jmp 0x1400012d3
cmp edi, 0xffffffff
jl 0x1400012c8
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x20]
mov edx, edi
call fcn.140006fd0
jmp 0x1400012cd
mov eax, 0x10000
mov dword [0x140255f24], eax
cmp dword [rbx], 1
je 0x1400012e4
mov dword [0x140255f24], 0x80000
jmp 0x1400012fa
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x24]
mov edx, edi
call fcn.140007700
mov dword [0x140255f24], eax
inc edi
cmp edi, esi
jl 0x140001290
mov rcx, rbx
call fcn.140007ce0
lea rcx, str.D___Vtfst__Qvcmjd__ef_ebu
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov rsi, qword [rsp + 0x178]
mov rbp, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140147f90
add rsp, 0x160
pop rbx
ret
Function at 0x140002700
Capabilities:
Reference http user-agent string

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140248c60]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x38], 0x10
lea r8, [rcx + 0x20]
mov rbx, rcx
jb 0x140002726
mov r8, qword [r8]
mov rcx, qword [rcx + 8]
mov edx, 0x2712
call fcn.140162fa0
lea rdx, str.Mozilla_5.0__Macintosh__Intel_Mac_OS_X_10.6__rv:2.0.1__Gecko_20100101_Firefox_4.0.1
lea rcx, [rsp + 0x20]
mov r8d, 0x53
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x20], 0
call fcn.140001ba0
cmp qword [rsp + 0x38], 0x10
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x20]
mov edx, 0x2722
cmovae r8, qword [rsp + 0x20]
call fcn.140162fa0
mov rcx, qword [rbx + 8]
mov edx, 0x44
lea r8d, [rdx - 0x3f]
call fcn.140162fa0
mov rcx, qword [rbx + 8]
mov edx, 0x34
lea r8d, [rdx - 0x33]
call fcn.140162fa0
mov rcx, qword [rbx + 8]
mov edx, 0x63
lea r8d, [rdx - 0x62]
call fcn.140162fa0
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea edx, [r8 + 0x2f]
call fcn.140162fa0
mov rcx, qword [rbx + 8]
lea r8, [0x140002920]
mov edx, 0x4e2b
call fcn.140162fa0
mov rcx, qword [rbx + 8]
mov r8, rbx
mov edx, 0x2711
call fcn.140162fa0
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea edx, [r8 + 0x40]
call fcn.140162fa0
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea edx, [r8 + 0x51]
call fcn.140162fa0
cmp qword [rsp + 0x38], 0x10
jb 0x14000281f
mov rcx, qword [rsp + 0x20]
call fcn.140007fac
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140147f90
add rsp, 0x50
pop rbx
ret

Function at 0x140002a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
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
jne 0x140002a93
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140002ad6
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140002ad1
cmp rbx, r11
jae 0x140002ad6
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140002ac0
cmp rbx, r11
jb 0x140002ada
xor eax, eax
jmp 0x140002ae6
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004fa0
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 0x140004fb9
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rdi
not r9d
lea rdi, [0x14020cef0]
cmp r11d, 8
jb 0x1400050b1
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 0x140004fe0
mov rbx, qword [rsp + 0x10]
test r11d, r11d
je 0x1400050df
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 0x1400050c0
mov rdi, qword [rsp]
not r9d
mov eax, r9d
add rsp, 8
ret

Function at 0x140005960
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 0x1400059b0
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 0x1400059aa
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
jmp 0x1400059e1
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
mov qword [rsp + 0x40], rbx
lea eax, [rdx + rsi]
cmp eax, ecx
jbe 0x1400059c8
sub ecx, edx
mov esi, ecx
add rdx, qword [r9 + 0x20]
mov r8d, esi
mov rcx, r10
call fcn.1401482b0
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 0x140005a00
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 0x140005a50
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 0x140005a4a
mov byte [rbx + 0x10], dil
mov esi, dword [rsp + 0x60]
jmp 0x140005a8a
mov qword [rsp + 0x58], rbp
mov ebp, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rbp + 1]
cmp eax, ecx
jbe 0x140005a66
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.1401482b0
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 0x140005aac
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 0x140005aa2
cmp byte [rbx + 0x10], 0
je 0x140005aa2
or eax, 0xffffffff
add rsp, 0x38
pop r12
pop rbx
ret
Function at 0x140005b90
Capabilities:
Read file on windows

Disassembly:
push rsi
push r15
sub rsp, 0x68
cmp byte [rcx], 0
mov rsi, rcx
je 0x140005bc8
cmp byte [rcx + 1], 0
je 0x140005bbd
mov rcx, qword [rcx + 8]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x140005bce
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 0x140005c10
cmp byte [rsi + 1], 0
je 0x140005c0b
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 0x140005c14
xor r12d, r12d
jmp 0x140005c14
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 fcn.140149654
mov rdi, rax
test rax, rax
jne 0x140005c4d
or eax, 0xffffffff
jmp 0x140005da2
mov qword [rsp + 0x60], rbx
mov ebx, 4
or r15d, 0xffffffff
cmp ebp, ebx
jbe 0x140005d92
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 0x140005cb5
cmp byte [rsi + 1], 0
je 0x140005d8d
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 0x140005cb9
mov dword [rsi + 0x2c], r14d
cmp byte [rsi], 0
mov ebp, r12d
mov r13d, r12d
je 0x140005cf6
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 0x140005ced
mov byte [rsi + 0x10], 1
mov eax, dword [rsp + 0x88]
jmp 0x140005d23
mov ecx, dword [rsi + 0x2c]
mov edx, dword [rsi + 0x28]
lea eax, [rcx + r12]
cmp eax, edx
jbe 0x140005d0a
mov r13d, edx
sub r13d, ecx
mov rdx, rcx
mov r8d, r13d
mov rcx, rdi
add rdx, qword [rsi + 0x20]
call fcn.1401482b0
add dword [rsi + 0x2c], r13d
mov eax, r13d
xor edx, edx
div rbp
cmp rax, 1
jne 0x140005d8d
lea ecx, [r12 - 3]
movsxd rax, ecx
test ecx, ecx
js 0x140005d6b
nop word [rax + rax]
dec rax
dec ecx
cmp byte [rax + rdi], 0x50
jne 0x140005d60
cmp byte [rax + rdi + 1], 0x4b
jne 0x140005d60
cmp byte [rax + rdi + 2], 5
jne 0x140005d60
cmp byte [rax + rdi + 3], 6
je 0x140005d67
test rax, rax
jns 0x140005d40
jmp 0x140005d6b
lea r15d, [rcx + r14]
test r15d, r15d
jne 0x140005d8d
mov ebp, dword [rsp + 0x98]
mov r12d, dword [rsp + 0x80]
mov r13d, 0x404
cmp ebx, ebp
jb 0x140005c70
mov r14, qword [rsp + 0x38]
mov rcx, rdi
call fcn.140149bf4
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 0x140006820
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 0x14000683e
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
cmp dword [rcx + 0x1c], 0
je 0x140006832
cmp qword [rcx + 0x80], 0
je 0x140006853
call fcn.140006dc0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.140006550
test eax, eax
je 0x14000687a
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.140149654
mov rbx, rax
test rax, rax
jne 0x1400068a0
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.140149654
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 0x1400068e6
mov rcx, rbx
call fcn.140149bf4
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 0x14000693d
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.140005330
test eax, eax
jne 0x14000693d
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 0x140006968
movzx eax, byte [rdi + 0x3d]
jmp 0x14000696c
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 0x140006a12
lea r8, [0x14020cef0]
movzx eax, byte [rsi]
test al, al
je 0x140006a12
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 0x1400069b0
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
Function at 0x140006f00
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
jne 0x140006fb8
cmp dword [rcx + 8], 0xffffffff
jne 0x140006fb8
lea rdx, [rcx + 0x150]
mov ecx, 0x104
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x150]
repne scasb al, byte [rdi]
not rcx
movzx eax, byte [rcx + rbx + 0x14e]
cmp al, 0x5c
je 0x140006f75
cmp al, 0x2f
je 0x140006f75
xor eax, eax
lea rdi, [rbx + 0x150]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x14020d5a0]
mov word [rdi - 1], ax
lea rcx, [rsp + 0x30]
call fcn.140005870
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
test rax, rax
jne 0x140006f98
mov eax, dword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rcx, rax
call fcn.140005dc0
xor ecx, ecx
mov edx, 0x200
test rax, rax
mov qword [rbx], rax
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov eax, 0x1000000
add rsp, 0x20
pop rbx
ret

Function at 0x1400075c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140248c60]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x140007600
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140007600
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
movzx eax, byte [rbx]
test al, al
je 0x1400076dc
mov qword [rsp + 0x270], rsi
mov rcx, rbx
mov rsi, rbx
nop dword [rax]
cmp al, 0x2f
je 0x140007628
cmp al, 0x5c
jne 0x14000762b
mov rsi, rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x140007620
cmp rsi, rbx
je 0x140007669
sub rsi, rbx
lea rcx, [rsp + 0x130]
mov rdx, rbx
mov r8, rsi
call fcn.1401482b0
lea rdx, [rsp + 0x130]
mov rcx, rdi
mov byte [rsp + rsi + 0x130], 0
call fcn.1400075c0
mov rsi, qword [rsp + 0x270]
mov byte [rsp + 0x20], 0
test rdi, rdi
je 0x14000769e
lea rcx, [rsp + 0x20]
sub rcx, rdi
nop word [rax + rax]
movzx eax, byte [rdi]
inc rdi
mov byte [rcx + rdi - 1], al
test al, al
jne 0x140007690
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rbx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x1400076b0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400076dc
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140147f90
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rdi
ret