joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140055458
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400554a2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400554a2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400554a2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400554a2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400554a2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400554a4
xor al, al
add rsp, 0x28
ret
Function at 0x140333080
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x60
mov rax, qword [0x1404e9628]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
lea rcx, str.HWLOC_PCI_LOCALITY
call fcn.14034e2a0
mov rbx, rax
test rax, rax
je 0x140333184
xor edx, edx
mov qword [rsp + 0x78], rdi
mov rcx, rax
mov dword [rsi + 0x350], 1
call fcn.14035cd20
mov edi, eax
test eax, eax
js 0x140333174
lea rdx, [rsp + 0x20]
mov ecx, eax
call fcn.140353118
test eax, eax
jne 0x14033316b
mov eax, dword [rsp + 0x34]
cmp eax, 0x10000
jg 0x140333140
inc eax
movsxd rcx, eax
call fcn.14034e2b0
mov rbx, rax
test rax, rax
je 0x14033312f
mov r8d, dword [rsp + 0x34]
mov rdx, rax
mov ecx, edi
call fcn.14035a558
movsxd rcx, dword [rsp + 0x34]
cmp eax, ecx
jne 0x14033312f
mov byte [rcx + rbx], 0
mov rdx, rbx
mov rcx, rsi
call fcn.1403331a0
mov rcx, rbx
call fcn.14034de40
mov ecx, edi
call fcn.140359e1c
jmp 0x14033317f
call fcn.140322f60
cmp eax, 2
jge 0x14033316b
mov ecx, 2
call fcn.140349e14
mov r9d, dword [rsp + 0x34]
lea rdx, str.hwloc_pci:_Ignoring_HWLOC_PCI_LOCALITY_file___s_too_large___lu_bytes__n
mov rcx, rax
mov r8, rbx
call fcn.140004170
mov ecx, edi
call fcn.140359e1c
jmp 0x14033317f
mov rdx, rbx
mov rcx, rsi
call fcn.1403331a0
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140342600
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret

Function at 0x140353bb4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1403539e0
Function at 0x220ad6a60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.220ad7680
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x220ad6ad0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x220ae4074]
mov rbx, rcx
test esi, esi
jle 0x220ad6c00
mov rax, qword [0x220ae4078]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x220ad6b1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x220ad6ba5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x220ad6b00
mov rcx, rbx
call fcn.220ad7330
mov rdi, rax
test rax, rax
je 0x220ad6c22
mov rax, qword [0x220ae4078]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.220ad7470
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x220ae4078]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x220ad6c07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x220ad6b9e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x220ad6bb0
add dword [0x220ae4074], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x220ae4078]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x220ad6b9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.220ad6a60
nop dword [rax]
xor esi, esi
jmp 0x220ad6b28
mov rax, qword [0x220ae4078]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.220ad6a60
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.220ad6a60
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x220ad6fa0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x220ae40a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x220ae4080]
test rbx, rbx
je 0x220ad6ffc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x220ad6ff3
test rsi, rsi
je 0x220ad6ff3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x220ad6fd8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x220ad7330
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x220ae1270]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x220ad7350
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x220ad7358
ret
cmp word [r8 + 0x18], 0x20b
jne 0x220ad7350
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x220ad73ad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x220ad73a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x220ad7350
add rax, 0x28
cmp rax, r9
jne 0x220ad7390
xor eax, eax
ret

Function at 0x220ad73b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x220ae1270]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x220ad73cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x220ad73d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x220ad73cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x220ad7470
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x220ae1270]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x220ad748f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x220ad7498
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001120
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140001160
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140001160
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
movzx eax, byte [rsi]
test al, al
je 0x140001254
mov qword [rsp + 0x270], rdi
mov rcx, rsi
mov rdi, rsi
nop dword [rax]
cmp al, 0x2f
je 0x140001188
cmp al, 0x5c
jne 0x14000118b
mov rdi, rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x140001180
cmp rdi, rsi
je 0x1400011d6
sub rdi, rsi
lea rcx, [rsp + 0x130]
mov r8, rdi
mov rdx, rsi
call fcn.140023e00
cmp rdi, 0x104
jae 0x140001275
lea rdx, [rsp + 0x130]
mov byte [rsp + rdi + 0x130], 0
mov rcx, rbx
call fcn.140001120
mov byte [rsp + 0x20], 0
test rbx, rbx
je 0x1400011fe
lea rcx, [rsp + 0x20]
sub rcx, rbx
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400011f0
lea rcx, [rsp + 0x20]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140001206
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsi + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140001220
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000124c
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rdi, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000ce70
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rsi
ret
call fcn.14000cc48
int3
Function at 0x140001b40
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push r13
push r14
sub rsp, 0x50
cmp qword [rcx], 0
mov ebp, r9d
mov r13, rdx
mov r14, rcx
jne 0x140001d2c
cmp dword [rcx + 8], 0xffffffff
jne 0x140001d2c
mov qword [rsp + 0x70], rbx
lea rbx, [rcx + 0x150]
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp byte [rbx + rax + 1], 0
lea rax, [rax + 1]
jne 0x140001b90
movzx ecx, byte [rax + r14 + 0x14f]
cmp cl, 0x5c
je 0x140001bc5
cmp cl, 0x2f
je 0x140001bc5
dec rbx
cmp byte [rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x140001bb1
movzx eax, word [0x140026f30]
mov word [rbx], ax
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r15
cmp ebp, 1
jne 0x140001c22
mov r9d, ebp
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140001c33
mov eax, 0x2000000
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x78]
mov r15, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop r13
pop rbp
ret
lea eax, [rbp - 2]
cmp eax, 1
jbe 0x140001c33
mov ecx, 0x10000
mov eax, ecx
jmp 0x140001bfc
xor edi, edi
xor r12b, r12b
xor r15b, r15b
mov esi, edi
cmp ebp, 1
je 0x140001c8b
cmp ebp, 2
jne 0x140001ca9
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001c86
mov ecx, 0x200
mov eax, ecx
jmp 0x140001bfc
mov r15b, 1
jmp 0x140001c8e
mov rsi, r13
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne r12b
mov ecx, 0x30
call fcn.14000caf4
lea ecx, [rbp - 1]
mov rbx, rax
cmp ecx, 1
jbe 0x140001cdd
mov word [rax], 0x100
mov byte [rax + 0x18], dil
mov qword [rax + 0x20], r13
mov eax, dword [rsp + 0x80]
mov dword [rbx + 0x28], eax
mov dword [rbx + 0x2c], edi
mov dword [rbx + 0x14], edi
jmp 0x140001d0f
mov byte [rax], 1
mov byte [rax + 0x18], r15b
mov byte [rax + 1], r12b
mov qword [rax + 8], rsi
mov byte [rax + 0x10], dil
mov dword [rax + 0x14], edi
test r12b, r12b
je 0x140001d0f
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbx + 0x14], eax
mov rcx, rbx
call fcn.1400052b0
test rax, rax
mov qword [r14], rax
mov ecx, 0x200
cmove edi, ecx
mov eax, edi
jmp 0x140001bfc
mov eax, 0x1000000
add rsp, 0x50
pop r14
pop r13
pop rbp
ret
Function at 0x140004b50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov r10, r8
mov rdi, r9
imul r10d, edx
mov rsi, rdx
cmp byte [r9], 0
mov r11, rcx
je 0x140004baa
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, r10d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140004b96
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
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.140023e00
add dword [rdi + 0x2c], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140004bf0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x140004bfb
xor eax, eax
ret
lea r11, [0x140026790]
not ecx
cmp r8d, 8
jb 0x140004cd1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x140004c20
test r8d, r8d
je 0x140004cfd
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x140004ce0
not ecx
mov eax, ecx
ret
Function at 0x140005090
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 0x140005296
cmp dword [rcx + 0x1c], 0
je 0x140005296
cmp qword [rcx + 0x80], 0
je 0x1400050bf
call fcn.140004d10
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.140005980
test eax, eax
je 0x1400050e6
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.14001344c
mov rbx, rax
test rax, rax
jne 0x14000510c
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.14001344c
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 0x140005152
mov rcx, rbx
call fcn.140013438
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, dword [rdi + 0x40]
mov ecx, dword [rdi + 0x38]
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 + 0x64], ebp
mov dword [rbx + 0x74], ebp
mov dword [rbx + 0x90], ecx
mov dword [rbx + 0x24], ebp
test ecx, ecx
je 0x1400051a1
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.140003070
test eax, eax
jne 0x1400051a1
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
movzx ecx, 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 0x1400051cd
movzx eax, byte [rdi + 0x3d]
jmp 0x1400051d1
movzx eax, 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 0x14000526a
lea r8, [0x140026790]
nop
movzx eax, byte [rsi]
test al, al
je 0x14000526a
mov edx, dword [rbx + 0x9c]
xor rax, rdx
movzx ecx, al
shr edx, 8
xor edx, dword [r8 + rcx*4]
mov ecx, dword [rbx + 0xa4]
movzx eax, dl
add eax, dword [rbx + 0xa0]
mov dword [rbx + 0x9c], edx
imul edx, eax, 0x8088405
movzx eax, cl
shr ecx, 8
inc edx
mov dword [rbx + 0xa0], edx
shr rdx, 0x18
xor rax, rdx
xor ecx, dword [r8 + rax*4]
mov dword [rbx + 0xa4], ecx
add rsi, 1
jne 0x140005210
mov eax, dword [rsp + 0x58]
mov ecx, dword [rdi + 0x7c]
add eax, 0x1e
add ecx, eax
mov dword [rbx + 0x10], ebp
mov rbp, qword [rsp + 0x20]
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
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400063a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x30
cmp byte [rcx], 0
mov r14, rdx
mov qword [rsp + 0x58], rbp
mov rbx, rcx
mov qword [rsp + 0x68], rsi
mov esi, 1
je 0x1400063f4
lea rdi, [rcx + 0x10]
mov qword [rsp + 0x20], 0
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x60]
mov r8d, esi
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400063ee
mov byte [rdi], sil
mov ebp, dword [rsp + 0x60]
jmp 0x140006425
mov edi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rdi + 1]
cmp eax, ecx
jbe 0x140006405
mov esi, ecx
sub esi, edi
mov rdx, rdi
mov r8d, esi
add rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x50]
mov ebp, esi
call fcn.140023e00
lea eax, [rdi + rsi]
mov dword [rbx + 0x2c], eax
lea rdi, [rbx + 0x10]
mov rsi, qword [rsp + 0x68]
cmp ebp, 1
mov rbp, qword [rsp + 0x58]
jne 0x140006447
movzx eax, byte [rsp + 0x50]
mov dword [r14], eax
xor eax, eax
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret
cmp byte [rbx], 0
je 0x14000643c
cmp byte [rdi], 0
je 0x14000643c
mov eax, 0xffffffff
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret
Function at 0x1400082c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
movsxd rbp, dword [rdx + 0x1c]
xor edi, edi
mov r14, qword [rdx]
mov r15, rdx
mov r11, qword [rdx + 8]
mov rbx, rcx
mov dword [rcx + 0x192c], edi
mov esi, 0xffffffff
mov dword [rcx + 0x1930], 0x23d
mov r8d, edi
test ebp, ebp
jle 0x14000834d
mov edx, edi
nop
cmp word [r14 + rdx*4], di
je 0x14000833c
movsxd rcx, dword [rbx + 0x192c]
mov esi, r8d
lea eax, [rcx + 1]
mov dword [rbx + 0x192c], eax
mov dword [rbx + rcx*4 + 0x103c], r8d
mov byte [rbx + rdx + 0x1934], dil
jmp 0x140008342
mov word [r14 + rdx*4 + 2], di
inc r8d
inc rdx
cmp rdx, rbp
jl 0x140008310
mov r8d, dword [rbx + 0x192c]
mov r12d, 1
cmp r8d, 2
jge 0x1400083cd
movsxd r10, esi
cmp esi, 2
lea rdx, [r10 + 1]
mov rax, rdx
lea ecx, [rsi + 1]
cmovge rax, r10
cmovge rdx, rdi
mov r10, rax
mov r9d, ecx
cmovge ecx, edi
lea eax, [r8 + 1]
mov dword [rbx + 0x192c], eax
cmovge r9d, esi
movsxd rax, r8d
mov dword [rbx + rax*4 + 0x103c], ecx
mov word [r14 + rdx*4], r12w
mov byte [rdx + rbx + 0x1934], dil
dec dword [rbx + 0x1af70]
test r11, r11
je 0x1400083bd
movzx eax, word [r11 + rdx*4 + 2]
sub dword [rbx + 0x1af74], eax
mov r8d, dword [rbx + 0x192c]
mov esi, r9d
cmp r8d, 2
jl 0x140008363
mov dword [r15 + 0x24], esi
mov r8d, dword [rbx + 0x192c]
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov edi, eax
cmp eax, r12d
jl 0x140008410
nop word [rax + rax]
mov r8d, edi
mov rdx, r14
mov rcx, rbx
call fcn.14000acf0
dec edi
cmp edi, r12d
jge 0x1400083f0
mov r8d, dword [rbx + 0x192c]
nop dword [rax]
movsxd rdi, dword [rbx + 0x103c]
mov rdx, r14
movsxd rax, r8d
mov ecx, dword [rbx + rax*4 + 0x1038]
lea eax, [r8 - 1]
mov dword [rbx + 0x103c], ecx
mov r8d, r12d
mov rcx, rbx
mov dword [rbx + 0x192c], eax
call fcn.14000acf0
movsxd rdx, dword [rbx + 0x103c]
movsxd rcx, dword [rbx + 0x1930]
mov r8, rdx
movsxd r9, ebp
lea eax, [rcx - 1]
mov dword [rbx + 0x1930], eax
mov dword [rbx + rcx*4 + 0x1034], edi
movsxd rcx, dword [rbx + 0x1930]
lea eax, [rcx - 1]
mov dword [rbx + 0x1930], eax
mov dword [rbx + rcx*4 + 0x1034], edx
mov rcx, rbx
movzx eax, word [r14 + rdx*4]
add ax, word [r14 + rdi*4]
mov word [r14 + r9*4], ax
movzx edx, byte [rdi + rbx + 0x1934]
movzx eax, byte [r8 + rbx + 0x1934]
cmp dl, al
cmovb edx, eax
inc dl
mov byte [r9 + rbx + 0x1934], dl
mov rdx, r14
mov word [r14 + r8*4 + 2], bp
mov r8d, r12d
mov word [r14 + rdi*4 + 2], bp
mov dword [rbx + 0x103c], ebp
inc ebp
call fcn.14000acf0
mov r8d, dword [rbx + 0x192c]
cmp r8d, 2
jge 0x140008410
movsxd rcx, dword [rbx + 0x1930]
mov rdx, r15
lea eax, [rcx - 1]
mov dword [rbx + 0x1930], eax
mov eax, dword [rbx + 0x103c]
mov dword [rbx + rcx*4 + 0x1034], eax
mov rcx, rbx
call fcn.1400099f0
mov r8d, esi
mov rdx, r14
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
jmp fcn.140009c30
Function at 0x140008810
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x14000881b
xor eax, eax
ret
lea r11, [0x140027130]
not ecx
cmp r8, 8
jb 0x1400088ed
mov r10, r8
shr r10, 3
imul rax, r10, 0xfffffffffffffff8
add r8, rax
nop dword [rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x140008840
test r8, r8
je 0x14000891d
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r8, 1
jne 0x140008900
not ecx
mov eax, ecx
ret
Function at 0x14000b990
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbp, rdx
mov rcx, qword [rcx + 0xb8]
test rcx, rcx
je 0x14000ba09
mov eax, dword [rdi + 0xc4]
mov esi, dword [rdi + 0xc0]
cmp eax, esi
jae 0x14000ba59
sub esi, eax
lea rdx, [rcx + rax]
cmp esi, r8d
mov rcx, rbp
cmova esi, r8d
mov r8d, esi
call fcn.140023e00
mov ecx, dword [rdi + 0xa0]
mov rdx, rbp
add dword [rdi + 0xc4], esi
add dword [rdi + 0x9c], esi
mov r8d, esi
call fcn.140008810
mov dword [rdi + 0xa0], eax
mov eax, esi
jmp 0x14000ba5b
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x14000ba52
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000ba59
mov ebx, dword [rsp + 0x40]
mov rdx, rbp
add dword [rdi + 0x9c], ebx
mov r8d, ebx
mov ecx, dword [rdi + 0xa0]
call fcn.140008810
mov dword [rdi + 0xa0], eax
mov eax, ebx
jmp 0x14000ba5b
mov dword [rdi + 0x24], 0x1000000
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret