joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7079a0
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x88], rdx
mov rcx, qword [rbp + 0x88]
call fcn.0040e9b0
nop
lea rcx, [0x00707c84]
mov rdx, qword [rbp + 0x88]
mov r8d, 1
call fcn.004104e0
cmp eax, 2
jne 0x707a0e
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x88]
call fcn.0040ee70
jmp 0x707be1
lea rcx, [0x00707c94]
mov rdx, qword [rbp + 0x88]
mov r8d, 2
call fcn.004104e0
mov ebx, eax
lea rcx, [0x00707c94]
mov rdx, qword [rbp + 0x88]
mov r8d, ebx
add r8d, 1
call fcn.004104e0
mov ebx, eax
xor rax, rax
cmp qword [rbp + 0x88], 0
je 0x707a5d
mov rax, qword [rbp + 0x88]
mov eax, dword [rax - 4]
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x88]
movsxd r8, ebx
mov r9d, eax
sub r9d, ebx
add r9d, 1
movsxd r9, r9d
call fcn.00410250
xor rax, rax
cmp qword [rbp + 0x88], 0
je 0x707a94
mov rax, qword [rbp + 0x88]
mov eax, dword [rax - 4]
lea rcx, [rbp + 0x88]
mov edx, ebx
mov r8d, eax
call fcn.004102b0
lea rcx, [rbp + 0x58]
mov edx, 0x104
call fcn.0040fe70
mov rcx, qword [rbp + 0x58]
call fcn.0040fbe0
lea rcx, [0x00707c98]
mov rdx, rax
mov r8d, 0x104
call sub.kernel32.dll_QueryDosDeviceW
test eax, eax
je 0x707b1c
mov rcx, qword [rbp + 0x58]
call fcn.0040fbe0
lea rcx, [rbp + 0x58]
mov rdx, rax
call fcn.0040fc80
mov rcx, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x58]
call fcn.00431690
test eax, eax
jne 0x707b1c
mov rcx, qword [rbp + 0x38]
lea rdx, [0x00707cac]
mov rax, qword [rbp + 0x38]
mov r8, qword [rax]
call fcn.00410040
jmp 0x707be1
mov bx, 0x61
lea rcx, [rbp + 0x58]
mov edx, 0x104
call fcn.0040fe70
lea rcx, [rbp + 0x48]
mov edx, ebx
call fcn.0040fc30
lea rcx, [rbp + 0x48]
lea rdx, [0x00707c84]
call fcn.0040ff50
mov rcx, qword [rbp + 0x48]
call fcn.0040fbe0
mov rsi, rax
mov rcx, qword [rbp + 0x58]
call fcn.0040fbe0
mov rcx, rsi
mov rdx, rax
mov r8d, 0x104
call sub.kernel32.dll_QueryDosDeviceW
test eax, eax
je 0x707bd1
mov rcx, qword [rbp + 0x58]
call fcn.0040fbe0
lea rcx, [rbp + 0x58]
mov rdx, rax
call fcn.0040fc80
mov rcx, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x58]
call fcn.00431690
test eax, eax
jne 0x707bd1
lea rcx, [rbp + 0x40]
mov edx, ebx
call fcn.0040fc30
mov rcx, qword [rbp + 0x38]
mov edx, 3
mov r8, qword [rbp + 0x40]
lea r9, [0x00707c84]
mov rax, qword [rbp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
call fcn.00410160
jmp 0x707be1
add bx, 1
cmp bx, 0x7b
jne 0x707b20
nop
nop
lea rcx, [rbp + 0x40]
mov edx, 2
call fcn.0040e900
lea rcx, [rbp + 0x58]
call fcn.0040e820
lea rcx, [rbp + 0x88]
call fcn.0040e820
mov rax, qword [rbp + 0x38]
lea rsp, [rbp + 0x60]
pop rbx
pop rsi
pop rbp
ret
Function at 0x70ab30
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x90
mov rbp, rsp
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], rbp
mov qword [rbp + 0xa0], rcx
nop
nop
lea rcx, [rbp + 0x50]
lea rdx, [0x0070ace4]
call fcn.00441890
lea rcx, [rbp + 0x48]
mov rax, qword [rbp + 0x50]
movzx rdx, word [rax]
call fcn.0040fc30
lea rcx, [rbp + 0x48]
lea rdx, [0x0070ad08]
call fcn.0040ff50
mov rcx, qword [rbp + 0x48]
call fcn.0040fbe0
mov rcx, rax
lea rdx, [rbp + 0x6c]
mov r8d, 0xc
lea r9, [rbp + 0x8c]
lea rax, [rbp + 0x88]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x84]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x70abf7
mov rcx, qword [rbp + 0xa0]
mov edx, dword [rbp + 0x8c]
mov r8d, 8
call fcn.00432750
jmp 0x70ac7f
lea rcx, [0x0070ad0e]
lea rdx, [rbp + 0x6c]
mov r8d, 0xc
lea r9, [rbp + 0x8c]
lea rax, [rbp + 0x88]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x84]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x70ac5d
mov rcx, qword [rbp + 0xa0]
mov edx, dword [rbp + 0x8c]
mov r8d, 8
call fcn.00432750
jmp 0x70ac7f
mov rcx, qword [rbp + 0xa0]
call fcn.0040e820
jmp 0x70ac7f
nop
lea rcx, [rbp + 0x48]
mov edx, 2
call fcn.0040e900
mov rax, qword [rbp + 0xa0]
lea rsp, [rbp + 0x90]
pop rbp
ret
Function at 0x71c6e0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x88
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x58], rbp
mov qword [rbp + 0xa0], rcx
mov rcx, qword [rbp + 0xa0]
call fcn.0040e9b0
nop
lea rcx, [rbp + 0x50]
call fcn.006ff540
lea rcx, [rbp + 0x48]
mov dl, 5
xor r8, r8
xor r9, r9
call fcn.006ffb40
lea rcx, [rbp + 0x70]
mov edx, 3
mov r8, qword [rbp + 0x50]
mov r9, qword [rbp + 0x48]
lea rax, [0x0071c954]
mov qword [rsp + 0x20], rax
call fcn.00410160
mov rcx, qword [rbp + 0x70]
mov dl, 1
call fcn.00433330
test al, al
jne 0x71c72c
mov rcx, qword [0x004dab88]
mov dl, 1
call fcn.0050aea0
mov qword [rbp + 0x78], rax
lea rcx, [rbp + 0x40]
lea rdx, [0x0071c96c]
mov r8, qword [rbp + 0xa0]
call fcn.00410040
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x40]
mov rax, qword [rbp + 0x78]
mov rax, qword [rax]
call qword [rax + 0x78]
mov rcx, qword [rbp + 0x78]
lea rdx, [0x0071c990]
mov rax, qword [rbp + 0x78]
mov rax, qword [rax]
call qword [rax + 0x78]
nop
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x70]
mov rax, qword [rbp + 0x78]
mov rbx, qword [rax]
call qword [rbx + pe_nt_image_headers64]
lea rcx, [rbp + 0x38]
call fcn.006ff540
mov rcx, qword [rbp + 0x38]
call fcn.00408870
call fcn.004087f0
mov rcx, qword [rbp + 0xa0]
call fcn.0071c1c0
cmp eax, 4
jne 0x71c844
mov rcx, qword [rbp + 0xa0]
call fcn.0071c3a0
mov dword [rbp + 0x6c], 0
jmp 0x71c82a
mov ecx, 0xa
call sub.kernel32.dll_Sleep_2
add dword [rbp + 0x6c], 1
mov rcx, qword [rbp + 0xa0]
call fcn.0071c1c0
cmp eax, 4
jne 0x71c844
cmp dword [rbp + 0x6c], 0x1f4
jl 0x71c81b
mov rcx, qword [rbp + 0xa0]
call fcn.0071c1c0
cmp eax, 4
je 0x71c88a
mov rcx, qword [rbp + 0x70]
call fcn.0040fbe0
xor rcx, rcx
xor rdx, rdx
mov r8, rax
xor r9, r9
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call sub.shell32.dll_ShellExecuteW
jmp 0x71c88a
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x78], 0
mov rcx, qword [rbp + 0x60]
call fcn.0040b570
nop
lea rcx, [rbp + 0x38]
mov edx, 4
call fcn.0040e900
lea rcx, [rbp + 0x70]
call fcn.0040e820
lea rcx, [rbp + 0xa0]
call fcn.0040e820
lea rsp, [rbp + 0x88]
pop rbx
pop rbp
ret
Function at 0x71c9c0
Capabilities:
Create process on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rcx, qword [rbx + 0x70]
call fcn.0071c1c0
test eax, eax
jg 0x71c9e0
mov rcx, rbx
call fcn.005248d0
jmp 0x71ca48
mov rcx, qword [rbx + 0x78]
mov dl, 1
call fcn.00433330
test al, al
jne 0x71ca48
cmp byte [rbx + 0x81], 0
je 0x71ca40
mov rcx, qword [rbx + 0x70]
call fcn.0071c6e0
xor rsi, rsi
jmp 0x71ca14
add esi, 1
mov ecx, 0xa
call fcn.005247d0
mov rcx, qword [rbx + 0x70]
call fcn.0071c1c0
test eax, eax
jle 0x71ca29
cmp esi, 0x1f4
jl 0x71ca06
mov rcx, qword [rbx + 0x70]
call fcn.0071c1c0
test eax, eax
jle 0x71ca48
mov rcx, rbx
call fcn.005248d0
jmp 0x71ca48
mov rcx, rbx
call fcn.005248d0
cmp byte [rbx + 0x19], 0
jne 0x71cafa
mov rcx, qword [rbx + 0x70]
call fcn.0071c1c0
cmp eax, 1
je 0x71ca92
mov rcx, qword [rbx + 0x70]
call fcn.0071c3a0
xor rsi, rsi
jmp 0x71ca7c
add esi, 1
mov ecx, 0xa
call fcn.005247d0
mov rcx, qword [rbx + 0x70]
call fcn.0071c1c0
cmp eax, 1
je 0x71ca92
cmp esi, 0x1f4
jl 0x71ca6e
mov rcx, qword [rbx + 0x78]
call fcn.0040fbe0
xor rcx, rcx
xor rdx, rdx
mov r8, rax
lea r9, [0x0071cb04]
mov qword [rsp + 0x20], 0
and al, 0x20
add byte [rax], al
add byte [rax], al
mov dword [rsp + 0x28], 0
call sub.shell32.dll_ShellExecuteW
cmp byte [rbx + 0x80], 0
je 0x71caf2
xor rsi, rsi
jmp 0x71cadd
add esi, 1
mov ecx, 0xa
call fcn.005247d0
mov rcx, qword [rbx + 0x70]
call fcn.0071c1c0
test eax, eax
jle 0x71caf2
cmp esi, 0x3e8
jl 0x71cacf
mov rcx, rbx
call fcn.005248d0
add rsp, 0x38
pop rbx
pop rsi
ret
Function at 0x721d10
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x98
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x58], rbp
mov qword [rbp + 0xb0], rcx
mov dword [rbp + 0xb8], edx
nop
nop
mov rcx, qword [0x004defa0]
mov dl, 1
mov r8, qword [0x00790d68]
lea r9, [0x00722010]
mov qword [rsp + 0x20], 0xa
call fcn.00512140
mov qword [rbp + 0x80], rax
jmp 0x721d97
mov rcx, qword [0x004dec00]
mov dl, 1
call fcn.0040b4b0
mov qword [rbp + 0x70], rax
mov rcx, qword [rbp + 0x80]
mov rdx, qword [rbp + 0x70]
mov rax, qword [rbp + 0x80]
mov rbx, qword [rax]
call qword [rbx + 0x48]
nop
mov rcx, qword [rbp + 0x70]
call fcn.006faa60
lea rcx, [rbp + 0x50]
call fcn.006ff540
lea rcx, [rbp + 0x48]
mov dl, 5
xor r8, r8
xor r9, r9
call fcn.006ffb40
lea rcx, [rbp + 0x68]
mov edx, 3
mov r8, qword [rbp + 0x50]
mov r9, qword [rbp + 0x48]
lea rax, [0x00722028]
mov qword [rsp + 0x20], rax
call fcn.00410160
mov rcx, qword [rbp + 0x70]
mov rdx, qword [rbp + 0x68]
call fcn.00511b90
mov rcx, qword [rbp + 0x68]
call fcn.0040fbe0
mov rbx, rax
lea rcx, [rbp + 0x40]
lea rdx, [0x00722040]
call fcn.006fe5e0
lea rcx, [rbp + 0x38]
mov edx, dword [rbp + 0xb8]
call fcn.004324c0
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x38]
call fcn.0040ff50
mov rcx, qword [rbp + 0x40]
call fcn.0040fbe0
xor rcx, rcx
xor rdx, rdx
mov r8, rbx
mov r9, rax
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call sub.shell32.dll_ShellExecuteW
mov rcx, qword [rbp + 0x68]
call fcn.00433970
mov ecx, 0x1f4
call fcn.005247d0
mov rcx, qword [rbp + 0x68]
mov dl, 1
call fcn.00433330
test al, al
jne 0x721e78
nop
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x88], rax
mov qword [rbp + 0x80], 0
mov rcx, qword [rbp + 0x88]
call fcn.0040b570
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x70], 0
mov rcx, qword [rbp + 0x78]
call fcn.0040b570
nop
lea rcx, [rbp + 0x38]
mov edx, 4
call fcn.0040e900
lea rcx, [rbp + 0x68]
call fcn.0040e820
lea rsp, [rbp + 0x98]
pop rbx
pop rbp
ret
Function at 0x723fd0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x128
mov rbp, rsp
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x78], rbp
mov qword [rbp + 0x140], rcx
mov qword [rbp + 0x148], rdx
mov qword [rbp + 0x150], r8
mov dword [rbp + 0x158], r9d
mov rcx, qword [rbp + 0x140]
call fcn.0040e9b0
mov rcx, qword [rbp + 0x148]
call fcn.0040e9b0
nop
mov dword [rbp + 0x94], 0
mov eax, dword [rbp + 0x158]
or eax, 0x400
mov dword [rbp + 0x11c], eax
lea rcx, [rbp + 0xb0]
mov edx, 0x68
xor r8, r8
call fcn.0040a330
mov dword [rbp + 0xb0], 0x68
mov rax, qword [rbp + 0x160]
mov qword [rbp + 0xc0], rax
lea rcx, [rbp + 0x98]
mov edx, 0x18
xor r8, r8
call fcn.0040a330
cmp qword [rbp + 0x148], 0
je 0x7240c5
lea rcx, [rbp + 0x140]
mov edx, 4
mov r8, qword [rbp + 0x140]
lea r9, [0x007242d8]
mov rax, qword [rbp + 0x148]
mov qword [rsp + 0x20], rax
lea rax, [0x007242ec]
mov qword [rsp + 0x28], rax
call fcn.00410160
nop
lea rcx, [rbp + 0x88]
mov rdx, qword [rbp + 0x150]
xor r8, r8
call qword [0x00796948]
test eax, eax
je 0x724224
mov rcx, qword [rbp + 0x140]
call fcn.0040fbe0
mov rbx, rax
lea rcx, [rbp + 0x70]
mov rdx, qword [rbp + 0x140]
call fcn.00433ab0
mov rcx, qword [rbp + 0x70]
call fcn.0040fbe0
mov rcx, qword [rbp + 0x150]
xor rdx, rdx
mov r8, rbx
xor r9, r9
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov r10d, dword [rbp + 0x11c]
mov dword [rsp + 0x30], r10d
mov r10, qword [rbp + 0x88]
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x98]
mov qword [rsp + 0x50], rax
call sub.advapi32.dll_CreateProcessAsUserW
test eax, eax
je 0x724224
mov eax, dword [rbp + 0xa8]
mov dword [rbp + 0x94], eax
jmp 0x724224
nop
lea rcx, [rbp + 0x68]
mov edx, 2
call fcn.0040e900
lea rcx, [rbp + 0x140]
mov edx, 2
call fcn.0040e900
mov eax, dword [rbp + 0x94]
lea rsp, [rbp + 0x128]
pop rbx
pop rbp
ret
Function at 0x1800043b0
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x1a0
mov r14, qword [rcx + 0x10]
mov rdi, rcx
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r14
cmp rax, 2
jb 0x18000460e
cmp qword [rdi + 0x18], 0xf
jbe 0x1800043fd
mov rdi, qword [rdi]
lea r15, [r14 + 2]
mov ebx, 0xf
lea rsi, [rsp + 0x20]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x30], xmm1
cmp r15, rbx
jbe 0x180004472
mov rbx, r15
or rbx, 0xf
cmp rbx, rcx
jbe 0x18000443c
mov rbx, rcx
movabs rcx, 0x8000000000000000
jmp 0x18000445e
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x180004455
xor esi, esi
jmp 0x18000446d
cmp rcx, 0x1000
jb 0x180004465
call fcn.1800145bc
jmp 0x18000446a
call fcn.180038da8
mov rsi, rax
mov qword [rsp + 0x20], rsi
mov r8, r14
mov qword [rsp + 0x30], r15
mov rdx, rdi
mov qword [rsp + 0x38], rbx
mov rcx, rsi
call fcn.180053460
mov word [rsi + r14], 0x2a5c
lea rcx, [rsp + 0x20]
mov byte [rsi + r15], 0
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x38], 0xf
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdx, qword [rsp + 0x38]
mov rdi, rax
cmp rdx, 0xf
jbe 0x1800044f2
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800044ed
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004602
call fcn.180038cbc
movdqa xmm0, xmmword [0x180061ac0]
mov byte [rsp + 0x20], 0
movdqu xmmword [rsp + 0x30], xmm0
cmp rdi, 0xffffffffffffffff
jne 0x180004512
xor eax, eax
jmp 0x1800045e5
xor ebx, ebx
test byte [rsp + 0x60], 0x10
je 0x1800045c4
and qword [rsp + 0x50], 0
lea rax, [rbp - 0x74]
and qword [rsp + 0x58], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x18000453b
lea rdx, [rbp - 0x74]
lea rcx, [rsp + 0x40]
call fcn.180009f8c
mov rdx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
cmp rdx, 0xf
cmova rax, rcx
cmp qword [rsp + 0x50], 1
jne 0x180004577
cmp byte [rax], 0x2e
je 0x180004595
cmp rdx, 0xf
lea rax, [rsp + 0x40]
cmova rax, rcx
cmp qword [rsp + 0x50], 2
jne 0x180004593
cmp word [rax], 0x2e2e
je 0x180004595
inc ebx
cmp rdx, 0xf
jbe 0x1800045c4
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800045bf
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004608
call fcn.180038cbc
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180004514
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.180040bdc
int3
call fcn.180040bdc
int3
call fcn.180001380
int3
Function at 0x1800158b4
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r9, qword [rcx]
mov ebx, 0x270
mov ecx, dword [r9]
cmp ecx, ebx
jne 0x18001591f
lea r8, [r9 + 8]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, r10d
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub rbx, 1
jne 0x1800158e2
mov ecx, dword [r9]
jmp 0x1800159f5
cmp ecx, 0x4e0
jb 0x1800159f5
lea rbx, [r9 + 0x9c4]
mov esi, 0xe3
mov edi, dword [rbx]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov eax, edi
mov r8, rbx
mov edx, eax
add rbx, 4
mov edi, dword [rbx]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rsi, 1
jne 0x180015945
lea rbx, [r9 + 0xd50]
mov esi, 0x18c
mov edi, dword [rbx]
mov eax, edi
mov r8, rbx
mov edx, eax
add rbx, 4
mov edi, dword [rbx]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rsi, 1
jne 0x18001598a
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret
Function at 0x180042200
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 0x18004226f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18004226f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18004226f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18004226f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18004226f
cmp dword [rcx + 0x84], 0xe
jbe 0x18004226f
cmp dword [rcx + 0xf8], 0
je 0x18004226f
mov ecx, ebx
call fcn.180042320
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.1800420fc
nop
cmp dword [rbp + 0x20], 0
je 0x1800422bd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800422c8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180042200

Function at 0x180043e1c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180043e32
mov al, 1
jmp 0x180043e92
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180043e43
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180043e90
mov ecx, dword [rcx + 0x18]
nop
call fcn.18004e1dc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180043e90
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180043e90
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180043e90
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180043e92
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180048864
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.180039870
sub rsp, rax
mov rax, qword [0x180074080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180043cfc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800488b3
mov rax, rbp
jmp 0x1800489bb
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xc2120]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180049be0
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xc2120]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800489b7
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 0x1800489b7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180049be0
test rax, rax
js 0x1800489b7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800489b7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800489a9
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800489a9
cmp byte [rcx], 0xd
jne 0x18004898f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18004899e
cmp byte [rcx + 1], 0xa
jne 0x18004899e
inc rcx
jmp 0x18004899e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x744b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180048971
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800489bb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180039570
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 0x180048f80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1800c2120]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180048fd7
cmp word [rdx], r13w
jne 0x180048fd7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180048fdc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180049101
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180049122
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180049015
mov rdx, r9
mov word [rbx], cx
jmp 0x18004903c
cmp r9, r8
jae 0x18004904c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180048ff6
jmp 0x180049101
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800490f6
cmp dword [rsp + 0x80], esi
je 0x1800490f6
lea r8, [0x1800c2120]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800490ce
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18004909e
mov word [rbx], r13w
jmp 0x1800490fe
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1800490ab
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800490fe
cmp word [rsp + 0x70], r13w
jne 0x1800490db
cmp rbx, r14
je 0x180049098
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180049be8
cmp word [rsp + 0x70], r13w
je 0x180049101
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1800c2120]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800490fb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180049101