joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180046830
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rsi, rdx
mov rbx, rcx
lea rdx, [rcx + 8]
mov r8d, 1
lea rcx, [rsp + 0x38]
call fcn.1800161d0
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
je 0x1800468bf
test rsi, rsi
je 0x1800468bf
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r11d, r11d
mov dword [rsp + 0x60], r11d
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx + rcx - 2]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x60]
mov rdx, rsi
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [rsp + 0x38]
call fcn.180016210
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1800469b0
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
sub rsp, 0x838
mov rax, qword [0x18009c160]
xor rax, rsp
mov qword [rsp + 0x820], rax
cmp dword [0x1800b0990], 0
je 0x180046a12
xor eax, eax
mov r8, rcx
lea r9, [r11 + 0x10]
mov word [rsp + 0x20], ax
lea rcx, [rsp + 0x20]
mov edx, 0x3ff
mov word [r11 - 0x1a], ax
call fcn.180019ec0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1800190b0
add rsp, 0x838
ret

Function at 0x180046db0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
jne 0x180046db9
xor eax, eax
jmp 0x180046e01
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x180046dc7
xor eax, eax
jmp 0x180046e01
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
je 0x180046dda
xor eax, eax
jmp 0x180046e01
cmp word [rax + 0x14], 0
jne 0x180046de5
xor eax, eax
jmp 0x180046e01
test edx, edx
je 0x180046df8
mov ecx, 0x8664
cmp word [rax + 4], cx
je 0x180046df8
xor eax, eax
jmp 0x180046e01
mov eax, 1
jmp 0x180046e01
repz ret
mov edx, 1
jmp 0x180046db0

Function at 0x180046e40
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
jne 0x180046db9
xor eax, eax
jmp 0x180046e01
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x180046dc7
xor eax, eax
jmp 0x180046e01
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
je 0x180046dda
xor eax, eax
jmp 0x180046e01
cmp word [rax + 0x14], 0
jne 0x180046de5
xor eax, eax
jmp 0x180046e01
test edx, edx
je 0x180046df8
mov ecx, 0x8664
cmp word [rax + 4], cx
je 0x180046df8
xor eax, eax
jmp 0x180046e01
mov eax, 1
jmp 0x180046e01
repz ret
mov edx, 1
jmp 0x180046db0
Function at 0x1800470f0
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2a0], rbx
mov rax, qword [0x18009c160]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r12, rdx
mov rbp, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.1800148c0
or r8d, 0xffffffff
xor edx, edx
mov rcx, r12
call fcn.1800148c0
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov edi, 1
xor r13d, r13d
mov ebx, r13d
test esi, edi
je 0x180047218
mov eax, dword [0x1800749d4]
mov dword [rsp + 0x38], eax
movzx eax, word [0x1800749d8]
mov word [rsp + 0x3c], ax
xor eax, eax
mov word [rsp + 0x3e], ax
add word [rsp + 0x38], bx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.1800143f0
nop
lea r8, [rsp + 0x28]
mov edx, dword [rbp + 8]
mov rcx, rbp
call fcn.180014ad0
mov r11, qword [0x18006ca58]
mov qword [rsp + 0x20], r11
mov word [rsp + 0x40], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.18001ab30
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov word [rsp + 0x246], r13w
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.1800136a0
lea r8, [rsp + 0x20]
mov edx, dword [r12 + 8]
mov rcx, r12
call fcn.180014ad0
nop
lea rcx, [rsp + 0x20]
call fcn.180013520
nop
lea rcx, [rsp + 0x28]
call fcn.180013520
inc ebx
add edi, edi
cmp ebx, 0x1a
jb 0x180047154
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800190b0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180047260
Capabilities:
Get disk information

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rdi, rdx
mov rsi, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.1800148c0
or r8d, 0xffffffff
xor edx, edx
mov rcx, rdi
call fcn.1800148c0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov ecx, dword [0x1800b0a78]
test ecx, ecx
je 0x180047311
cmp eax, ecx
jne 0x180047311
mov eax, dword [0x1800b0a7c]
test eax, eax
je 0x180047311
cmp ebx, eax
jb 0x180047311
add eax, 0x493e0
cmp eax, ebx
jb 0x180047311
inc dword [0x1800b0a80]
mov r8d, 1
lea rdx, [0x1800b0b88]
lea rcx, [rsp + 0x28]
call fcn.1800161d0
nop
lea rdx, [0x1800b0b58]
mov rcx, rsi
call fcn.180014a30
lea rdx, [0x1800b0b70]
mov rcx, rdi
call fcn.180014a30
nop
jmp 0x18004738d
mov dword [0x1800b0a80], 0
mov rdx, rdi
mov rcx, rsi
call fcn.1800470f0
mov r8d, 1
lea rdx, [0x1800b0b88]
lea rcx, [rsp + 0x28]
call fcn.1800161d0
nop
mov dword [0x1800b0a78], ebp
mov dword [0x1800b0a7c], ebx
or r8d, 0xffffffff
xor edx, edx
lea rcx, [0x1800b0b58]
call fcn.1800148c0
mov rdx, rsi
lea rcx, [0x1800b0b58]
call fcn.180014a30
or r8d, 0xffffffff
xor edx, edx
lea rcx, [0x1800b0b70]
call fcn.1800148c0
mov rdx, rdi
lea rcx, [0x1800b0b70]
call fcn.180014a30
nop
lea rcx, [rsp + 0x28]
call fcn.180016210
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180048250
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rbx, rcx
xor r13d, r13d
mov ebp, r13d
cmp dword [rcx + 0x30], ebp
je 0x18004827e
call fcn.180018a40
mov rbp, rax
mov edx, 0xc0000000
mov eax, 0x80000000
cmp dword [rbx + 0x28], r13d
cmovne edx, eax
mov dword [rsp + 0x90], r13d
mov esi, r13d
mov rcx, qword [rbx + 0x38]
cmp dword [rcx - 8], r13d
je 0x180048302
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r9, rbp
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1800482e5
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp qword [rbx + 8], 0xffffffffffffffff
je 0x180048459
cmp dword [rsp + 0x90], r13d
jne 0x180048302
test esi, esi
je 0x180048459
mov r14d, 4
mov r12d, r14d
mov eax, 2
cmp dword [rbx + 0x28], r13d
cmovne r12d, eax
lea rdx, [rbx + 0x40]
lea rcx, [rsp + 0x98]
call fcn.180014330
nop
cmp dword [rbx + 0x2c], 0
je 0x180048368
mov rax, qword [rbx + 0x40]
cmp dword [rax - 8], 0
je 0x180048368
call fcn.18002fa90
test eax, eax
je 0x180048368
lea rdx, str.Global_
lea rcx, [rsp + 0x98]
call fcn.1800136a0
lea rdx, [rbx + 0x40]
lea rcx, [rsp + 0x98]
call fcn.180013860
mov rax, qword [rsp + 0x98]
cmp dword [rax - 8], 0
cmove rax, r13
mov qword [rsp + 0x28], rax
mov eax, dword [rbx + 0x20]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, r12d
mov rdx, rbp
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x18004844c
mov edx, 6
cmp dword [rbx + 0x28], 0
cmovne edx, r14d
mov ecx, dword [rbx + 0x20]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rbx + 0x24]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x18004844a
cmp dword [rbx + 0x20], 0
jne 0x180048436
cmp qword [rbx + 8], 0xffffffffffffffff
je 0x180048436
mov dword [rsp + 0xa0], esi
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0xa4], eax
mov eax, dword [rbx + 0x24]
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0xac], r13d
mov rcx, qword [rsp + 0xa0]
sub rcx, qword [rsp + 0xa8]
mov qword [rsp + 0xa0], rcx
shr rcx, 0x20
mov edx, dword [rsp + 0xa0]
or r8d, 0xffffffff
test ecx, ecx
cmovg edx, r8d
mov dword [rbx + 0x20], edx
lea rcx, [rsp + 0x98]
call fcn.180013520
mov eax, 1
jmp 0x18004845c
jmp 0x18004844c
lea rcx, [rsp + 0x98]
call fcn.180013520
mov eax, r13d
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18004a120
Capabilities:
Encode data using base64

Disassembly:
mov eax, 8
call fcn.180066c60
sub rsp, rax
xor r11d, r11d
mov r9, rcx
test r8d, r8d
jle 0x18004a22d
mov qword [rsp], rbx
lea r10, [rdx + 1]
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop dword [rax + rax]
movzx ecx, byte [r10 - 1]
cmp r8d, 3
jl 0x18004a1af
movzx eax, byte [r10]
shl ecx, 8
or ecx, eax
movzx eax, byte [r10 + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
mov edx, ecx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9], al
mov eax, ecx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + 1], al
mov eax, ecx
shr rax, 6
and eax, 0x3f
and edx, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + 2], al
movzx eax, byte [rdx + rbx]
mov byte [r9 + 3], al
jmp 0x18004a204
shl ecx, 0x10
cmp r8d, 2
jne 0x18004a1c1
movzx eax, byte [r10]
shl eax, 8
or ecx, eax
mov rax, rcx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + 1], al
cmp r8d, 1
jne 0x18004a1f0
lea eax, [r8 + 0x3c]
jmp 0x18004a1fb
shr rcx, 6
and ecx, 0x3f
movzx eax, byte [rcx + rbx]
mov byte [r9 + 2], al
mov byte [r9 + 3], 0x3d
sub r8d, 3
add r9, 4
add r11d, 4
add r10, 3
test r8d, r8d
jg 0x18004a150
mov rbx, qword [rsp]
mov byte [r9], 0
mov eax, r11d
add rsp, 8
ret
mov byte [rcx], r11b
mov eax, r11d
add rsp, 8
ret
Function at 0x18004a240
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0xb8
call fcn.180066c60
sub rsp, rax
mov rax, qword [0x18009c160]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14, qword [rsp + 0x110]
xor esi, esi
mov r13, r9
movsxd rdi, r8d
mov r12, rdx
mov rbp, rcx
mov eax, esi
test r9, r9
je 0x18004a28e
lea eax, [rsi + 1]
mov qword [rcx], r9
jmp 0x18004a291
mov r13, qword [rcx]
mov qword [rsp + 0xb0], rbx
test rdx, rdx
je 0x18004a361
mov rcx, r13
call fcn.180050070
mov ebx, eax
cmp eax, 0x80
jle 0x18004a2cb
lea r8, str.j____int_sizeof_ctx__key_
lea rcx, str..cryptohmachmac.c
mov edx, 0x54
call fcn.18004af10
cmp ebx, edi
jge 0x18004a303
lea rcx, [rbp + 8]
mov r8, r14
mov rdx, r13
call fcn.180049b20
lea rcx, [rbp + 8]
mov r8, rdi
mov rdx, r12
call fcn.180049c00
lea r12, [rbp + 0x68]
lea rdx, [rbp + 0x6c]
lea rcx, [rbp + 8]
mov r8, r12
call fcn.180049c20
jmp 0x18004a33e
test edi, edi
js 0x18004a30f
cmp edi, 0x80
jle 0x18004a327
lea r8, str.len_0__len__int_sizeof_ctx__key_
lea rcx, str..cryptohmachmac.c
mov edx, 0x5e
call fcn.18004af10
lea rcx, [rbp + 0x6c]
mov r8, rdi
mov rdx, r12
call fcn.18001a450
lea r12, [rbp + 0x68]
mov dword [r12], edi
mov ecx, dword [r12]
cmp ecx, 0x80
je 0x18004a369
mov r8d, 0x80
xor edx, edx
sub r8d, ecx
lea rcx, [rcx + rbp + 0x6c]
call fcn.18001ab30
jmp 0x18004a369
test eax, eax
je 0x18004a41d
lea rax, [rsp + 0x20]
mov rdi, rbp
mov rdx, rsi
sub rdi, rax
nop word [rax + rax]
lea rcx, [rsp + rdx + 0x20]
add rdx, 2
movzx eax, byte [rdi + rcx + 0x6c]
xor al, 0x36
mov byte [rcx], al
movzx eax, byte [rdi + rcx + 0x6d]
xor al, 0x36
mov byte [rcx + 1], al
cmp rdx, 0x80
jl 0x18004a380
lea rcx, [rbp + 0x28]
mov r8, r14
mov rdx, r13
call fcn.180049b20
mov rcx, r13
call fcn.180050070
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x28]
movsxd r8, eax
call fcn.180049c00
nop dword [rax]
lea rdx, [rsp + rsi + 0x20]
add rsi, 2
movzx eax, byte [rdi + rdx + 0x6c]
xor al, 0x5c
mov byte [rdx], al
movzx eax, byte [rdi + rdx + 0x6d]
xor al, 0x5c
mov byte [rdx + 1], al
cmp rsi, 0x80
jl 0x18004a3d0
lea rcx, [rbp + 0x48]
mov r8, r14
mov rdx, r13
call fcn.180049b20
mov rcx, r13
call fcn.180050070
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x48]
movsxd r8, eax
call fcn.180049c00
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 8]
call fcn.180049dc0
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1800190b0
add rsp, 0xb8
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18004f180
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov eax, 0x20
call fcn.180066c60
sub rsp, rax
mov rbx, r8
call fcn.18004eb90
test eax, eax
js 0x18004f3be
mov eax, dword [rbx + 0xf0]
xor r10d, r10d
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x18004f209
lea rdx, [rbx + r9*4 + 8]
lea r8, [rbx + 8]
nop dword [rax + rax]
mov eax, dword [rdx - 8]
mov ecx, dword [r8 - 8]
add r10, 4
mov dword [r8 - 8], eax
mov eax, dword [rdx - 4]
mov dword [rdx - 8], ecx
mov ecx, dword [r8 - 4]
mov dword [r8 - 4], eax
mov eax, dword [rdx]
mov dword [rdx - 4], ecx
mov ecx, dword [r8]
mov dword [r8], eax
mov eax, dword [rdx + 4]
mov dword [rdx], ecx
mov ecx, dword [r8 + 4]
mov dword [r8 + 4], eax
sub r9, 4
mov dword [rdx + 4], ecx
sub rdx, 0x10
add r8, 0x10
cmp r10, r9
jl 0x18004f1c0
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x18004f3bc
mov qword [rsp + 0x30], rdi
lea r10, [rbx + 2]
lea rdi, [0x180000000]
nop dword [rax]
mov r8d, dword [r10 + 0xe]
add r10, 0x10
inc r11d
mov eax, r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x76ae0]
movzx eax, byte [r10 - 1]
movzx ecx, byte [rdi + rax*4 + 0x76ae0]
mov r9d, dword [rdi + rdx*4 + 0x776e0]
movzx eax, r8b
xor r9d, dword [rdi + rcx*4 + 0x77ee0]
movzx ecx, byte [rdi + rax*4 + 0x76ae0]
movzx eax, byte [r10]
xor r9d, dword [rdi + rcx*4 + 0x782e0]
movzx ecx, byte [rdi + rax*4 + 0x76ae0]
xor r9d, dword [rdi + rcx*4 + 0x77ae0]
mov dword [r10 - 2], r9d
mov r9d, dword [r10 + 2]
mov eax, r9d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x76ae0]
movzx eax, byte [r10 + 3]
movzx ecx, byte [rdi + rax*4 + 0x76ae0]
mov r8d, dword [rdi + rdx*4 + 0x776e0]
movzx eax, byte [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0x77ee0]
movzx ecx, byte [rdi + rax*4 + 0x76ae0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x77ae0]
movzx ecx, byte [rdi + rax*4 + 0x76ae0]
mov r9d, dword [r10 + 6]
xor r8d, dword [rdi + rcx*4 + 0x782e0]
mov eax, r9d
mov dword [r10 + 2], r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x76ae0]
movzx eax, byte [r10 + 7]
movzx ecx, byte [rdi + rax*4 + 0x76ae0]
mov r8d, dword [rdi + rdx*4 + 0x776e0]
movzx eax, byte [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0x77ee0]
movzx ecx, byte [rdi + rax*4 + 0x76ae0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x77ae0]
movzx ecx, byte [rdi + rax*4 + 0x76ae0]
movzx eax, byte [r10 + 0xb]
xor r8d, dword [rdi + rcx*4 + 0x782e0]
mov r9d, dword [r10 + 0xa]
mov dword [r10 + 6], r8d
movzx edx, byte [rdi + rax*4 + 0x76ae0]
movzx eax, byte [r10 + 0xc]
movzx ecx, byte [rdi + rax*4 + 0x76ae0]
mov r8d, dword [rdi + rdx*4 + 0x77ee0]
mov eax, r9d
xor r8d, dword [rdi + rcx*4 + 0x77ae0]
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x76ae0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x776e0]
movzx ecx, byte [rdi + rax*4 + 0x76ae0]
xor r8d, dword [rdi + rcx*4 + 0x782e0]
mov dword [r10 + 0xa], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x18004f230
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180050150
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
mov eax, 0x50
call fcn.180066c60
sub rsp, rax
mov rax, qword [0x18009c160]
xor rax, rsp
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x60]
mov r15, qword [rbp + 0x68]
mov rsi, rcx
movzx r10d, byte [rax]
mov ebx, dword [r15]
lea rdi, [rax + 1]
movzx ecx, byte [rdi + 6]
mov qword [rbp - 0x18], rax
movzx eax, byte [rdi]
shl eax, 8
mov r14, rdx
movzx edx, byte [rdi + 3]
or r10d, eax
movzx eax, byte [rdi + 1]
shl ecx, 8
shl eax, 0x10
mov r12d, r8d
lea r8, [rdi + 5]
or r10d, eax
movzx eax, byte [rdi + 2]
xor r13d, r13d
shl eax, 0x18
mov qword [rbp - 0x28], r9
mov qword [rbp - 0x20], r15
or r10d, eax
movzx eax, byte [rdi + 4]
shl eax, 8
mov dword [rbp - 0x30], r10d
mov byte [rbp - 0x10], r10b
or edx, eax
movzx eax, byte [r8]
or ecx, eax
mov eax, r10d
shr eax, 8
shl ecx, 0x10
mov byte [rbp - 0xf], al
or edx, ecx
mov eax, r10d
shr eax, 0x10
mov dword [rbp - 0x2c], edx
mov byte [rbp - 0xc], dl
mov byte [rbp - 0xe], al
mov eax, r10d
shr eax, 0x18
mov byte [rbp - 0xd], al
mov eax, edx
shr eax, 8
mov byte [rbp - 0xb], al
mov eax, edx
shr eax, 0x10
mov byte [rbp - 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [rbp - 9], al
test r12d, r12d
je 0x18005030c
mov r15, qword [rbp - 0x28]
sub r14, rsi
movzx r8d, dl
movzx r9d, r10b
dec r12d
test ebx, ebx
jne 0x1800502a8
lea r8d, [rbx + 1]
lea rcx, [rbp - 0x30]
mov rdx, r15
call fcn.18004bc60
mov r10d, dword [rbp - 0x30]
mov edx, dword [rbp - 0x2c]
movzx r9d, byte [rbp - 0x30]
movzx r8d, byte [rbp - 0x2c]
mov eax, r10d
shr eax, 8
mov byte [rbp - 0x10], r9b
mov byte [rbp - 0xc], r8b
mov byte [rbp - 0xf], al
mov eax, r10d
shr eax, 0x10
mov byte [rbp - 0xe], al
mov eax, r10d
shr eax, 0x18
mov byte [rbp - 0xd], al
mov eax, edx
shr eax, 8
mov byte [rbp - 0xb], al
mov eax, edx
shr eax, 0x10
mov byte [rbp - 0xa], al
mov eax, edx
shr eax, 0x18
inc r13d
mov byte [rbp - 9], al
movsxd rax, ebx
inc rsi
movzx ecx, byte [rbp + rax - 0x10]
xor cl, byte [rsi - 1]
inc ebx
mov byte [r14 + rsi - 1], cl
and ebx, 7
test r12d, r12d
jne 0x180050242
mov r15, qword [rbp - 0x20]
test r13d, r13d
je 0x18005030c
mov rax, qword [rbp - 0x18]
mov byte [rax], r9b
mov eax, r10d
shr eax, 8
mov byte [rdi], al
mov eax, r10d
shr r10d, 0x18
shr eax, 0x10
mov byte [rdi + 1], al
mov byte [rdi + 2], r10b
mov byte [rdi + 3], r8b
mov eax, edx
shr eax, 8
mov byte [rdi + 4], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [rdi + 5], al
mov byte [rdi + 6], dl
mov dword [r15], ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800190b0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18005ff40
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x18009c160]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp dword [0x1800b14b0], 0
mov ebx, ecx
jne 0x18005ffc3
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x110
mov dword [0x1800b14b0], 1
call fcn.18001ab30
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x18005ffb3
cmp dword [rsp + 0x24], 5
jb 0x18005ffb3
mov rax, qword [str.GlobalOCULAR_]
mov qword [0x1800b14a8], rax
jmp 0x18005ffca
mov rax, qword [str.OCULAR_]
mov qword [0x1800b14a8], rax
jmp 0x18005ffca
mov rax, qword [0x1800b14a8]
test ebx, ebx
cmovne rax, qword [str.OCULAR_]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800190b0
add rsp, 0x150
pop rbx
ret
Function at 0x180062160
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov rsi, qword [rcx + 8]
mov ebx, r9d
mov r12d, r8d
mov r13, rdx
mov rdi, rcx
test rsi, rsi
je 0x1800622cb
cmp qword [rcx + 0x10], 0
je 0x1800622cb
mov edx, ebx
call fcn.1800620a0
test eax, eax
je 0x1800622d3
mov rcx, qword [rdi + 0x10]
xor eax, eax
mov qword [rsp + 0x88], rbp
xor ebp, ebp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r11, qword [rdi + 0x10]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x80]
mov r8d, r12d
mov rdx, r13
mov rcx, rsi
mov qword [rsp + 0x50], r11
mov dword [rsp + 0x80], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12d, eax
test eax, eax
je 0x180062224
cmp dword [rsp + 0x80], ebp
je 0x180062224
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [rsp + 0x80]
jmp 0x18006224b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test r12d, r12d
jne 0x180062269
test eax, eax
je 0x180062269
cmp eax, 0x3e5
je 0x180062269
cmp eax, 0x217
je 0x180062269
mov eax, 0xf0000001
mov dword [rdi + 0x24], eax
xor eax, eax
mov rbp, qword [rsp + 0x88]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
mov rcx, qword [rsp + 0x50]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
mov ebx, eax
test eax, eax
je 0x18006229a
call qword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, 0xf0000001
mov ecx, 0xf0000003
cmp ebx, 0x102
cmove eax, ecx
jmp 0x180062246
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
xor r9d, r9d
mov dword [rsp + 0x30], ebp
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov rcx, qword [rdi + 0x10]
mov ebx, eax
mov dword [rdi + 0x24], ebp
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test ebx, ebx
cmovne ebp, dword [rsp + 0x30]
mov eax, ebp
jmp 0x18006224b
mov eax, 0xf0000001
mov dword [rcx + 0x24], eax
xor eax, eax
jmp 0x180062253
Function at 0x1800622e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov rsi, qword [rcx + 8]
mov ebx, r9d
mov r12d, r8d
mov r13, rdx
mov rdi, rcx
test rsi, rsi
je 0x18006244b
cmp qword [rcx + 0x18], 0
je 0x18006244b
mov edx, ebx
call fcn.1800620a0
test eax, eax
je 0x180062453
mov rcx, qword [rdi + 0x18]
xor eax, eax
mov qword [rsp + 0x88], rbp
xor ebp, ebp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r11, qword [rdi + 0x18]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x80]
mov r8d, r12d
mov rdx, r13
mov rcx, rsi
mov qword [rsp + 0x50], r11
mov dword [rsp + 0x80], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r12d, eax
test eax, eax
je 0x1800623a4
cmp dword [rsp + 0x80], ebp
jbe 0x1800623a4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [rsp + 0x80]
jmp 0x1800623cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test r12d, r12d
jne 0x1800623e9
test eax, eax
je 0x1800623e9
cmp eax, 0x3e5
je 0x1800623e9
cmp eax, 0x217
je 0x1800623e9
mov eax, 0xf0000001
mov dword [rdi + 0x24], eax
xor eax, eax
mov rbp, qword [rsp + 0x88]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
mov rcx, qword [rsp + 0x50]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
mov ebx, eax
test eax, eax
je 0x18006241a
call qword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, 0xf0000001
mov ecx, 0xf0000003
cmp ebx, 0x102
cmove eax, ecx
jmp 0x1800623c6
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
xor r9d, r9d
mov dword [rsp + 0x30], ebp
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov rcx, qword [rdi + 0x18]
mov ebx, eax
mov dword [rdi + 0x24], ebp
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test ebx, ebx
cmovne ebp, dword [rsp + 0x30]
mov eax, ebp
jmp 0x1800623cb
mov eax, 0xf0000001
mov dword [rcx + 0x24], eax
xor eax, eax
jmp 0x1800623d3

Function at 0x180062720
Capabilities:
Write file on windows

Disassembly:
cmp dword [rcx + 0x1c], 6
mov rax, rcx
je 0x18006272d
or eax, 0xffffffff
ret
test r8d, r8d
jg 0x180062735
xor eax, eax
ret
mov r9d, dword [rax + 8]
add rcx, 0x70
jmp fcn.1800622e0

Function at 0x180062750
Capabilities:
Read file on windows

Disassembly:
cmp dword [rcx + 0x1c], 6
mov rax, rcx
je 0x18006275d
or eax, 0xffffffff
ret
test r8d, r8d
jne 0x180062765
xor eax, eax
ret
mov r9d, dword [rax + 0xc]
add rcx, 0x70
jmp fcn.180062160