joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004da4
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.SetDefaultDllDirectories
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004dd7
mov ecx, 0x800
call rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rsp + 0x30]
mov rbx, rax
call fcn.1400021b0
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000234c
mov ebx, eax
test eax, eax
js 0x140004e96
lea rdx, str.user
lea rcx, [rsp + 0x20]
call fcn.140001a44
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140002828
mov rdx, qword [rsp + 0x20]
test al, al
sete dil
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140004e46
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, str.unregister
lea rcx, [rsp + 0x28]
call fcn.140001a44
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140002828
mov rdx, qword [rsp + 0x28]
test al, al
sete bl
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140004e8a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov dl, bl
mov cl, dil
call fcn.140004ce0
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.1400022c8
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14000ac54
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000a9b8

Function at 0x1400bad3e
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xbea9bea8
stosb byte [rdi], al
adc ebp, ebp
test eax, 0xed13aabe
xor dword [rcx], edi
push rbx
jp 0x1400bad41
cmp al, 0x6b
xor dword [rcx + rax], edx
test al, 0x21
sbb byte [rsi], dl
test dword [rdi], esi
jge 0x1400badba
mov esp, 0xd7d832c4
cmp dword [rdx], edi
add edi, dword [rdx + 0x15d22562]
pop rdx
xchg esp, eax
sub edx, dword [rbx]
sbb byte [rdx - 2], 0x1f
lahf
adc dword [rax - 0x8ac05af], esp
test byte [rdi - 0x3bef3adf], cl
invalid
invalid
Function at 0x1400012dc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140003638], rbx
je 0x140001328
cmp rax, rbx
jne 0x14000131b
mov ebx, 1
mov esi, ebx
jmp 0x14000132d
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140001300
mov ebx, 1
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x140001343
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400013a8
mov eax, dword [0x140003640]
test eax, eax
jne 0x1400013a2
mov dword [0x140003640], ebx
lea r15, [0x1400022c0]
lea rdi, [0x1400022a8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140001394
test eax, eax
jne 0x140001398
cmp qword [rdi], 0
je 0x140001389
mov rax, qword [rdi]
mov rcx, qword [0x140002288]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000136a
test eax, eax
je 0x1400013a8
mov eax, 0xff
jmp 0x140001484
mov dword [0x140003044], ebx
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x1400013cf
lea rdx, [0x1400022a0]
lea rcx, [0x140002290]
call sub.msvcrt.dll__initterm
mov dword [0x140003640], 2
test esi, esi
jne 0x1400013dc
xor eax, eax
xchg qword [0x140003638], rax
cmp qword [0x140003648], 0
je 0x140001410
lea rcx, [0x140003648]
call fcn.140001650
test eax, eax
je 0x140001410
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140003648]
mov r9, qword [0x140002288]
call r9
mov r8, qword [0x140003058]
mov rdx, qword [0x140003050]
mov ecx, dword [0x140003048]
call fcn.14000119c
mov dword [0x140003040], eax
cmp dword [0x140003060], 0
jne 0x140001440
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003044], 0
jne 0x140001455
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003040]
jmp 0x140001484
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14013f000
add rsp, 0x28
jmp 0x1400012dc

Function at 0x140001550
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000159c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001594
cmp dword [rcx + 0x3c], edx
jl 0x140001594
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001594
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000159c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x180005cb8
Capabilities:
Parse pe header

Disassembly:
mov byte [rdi + 7], 0
mov al, 0x23
add al, 0x48
mov byte [rdi + 8], al
mov byte [rdi + 9], 0
mov al, 0x10
add al, 0x3c
mov byte [rdi + 0xa], al
mov byte [rdi + 0xb], 0
mov al, 0x36
add al, 0x2f
mov byte [rdi + 0xc], al
mov byte [rdi + 0xd], 0
mov al, 0x21
add al, 0x4d
mov byte [rdi + 0xe], al
mov byte [rdi + 0xf], 0
mov al, 0x3c
add al, 0x2b
mov byte [rdi + 0x10], al
mov byte [rdi + 0x11], 0
mov al, 0x51
add al, 0x23
mov byte [rdi + 0x12], al
mov byte [rdi + 0x13], 0
mov al, 0x38
add al, 0x30
mov byte [rdi + 0x14], al
mov byte [rdi + 0x15], 0
mov byte [rdi + 0x16], 0
mov byte [rdi + 0x17], 0
mov byte [rdi + 0x18], 0
mov byte [rdi + 0x19], 0
mov qword [rbp - 0xf8], rdi
add rdi, 0x64
mov al, 0x21
add al, 0x22
mov byte [rdi], al
mov byte [rdi + 1], 0
mov al, 0x19
add al, 0x4f
mov byte [rdi + 2], al
mov byte [rdi + 3], 0
add byte [rax - 0x77bdfbe1], dh
add al, 0xc6
add eax, 0x45cb000
or eax, 0xc6064788
invalid
invalid
add byte [rax - 0x77d2fbbf], dh
or r14b, r8b
or dword [r8], r8d
mov al, 0x61
add al, 8
mov byte [rdi + 0xa], al
mov byte [rdi + 0xb], 0
mov al, 0x12
add al, 0x5c
mov byte [rdi + 0xc], al
mov byte [rdi + 0xd], 0
mov al, 0x55
add al, 0x12
mov byte [rdi + 0xe], al
mov byte [rdi + 0xf], 0
mov al, 0x34
add al, 0x19
mov byte [rdi + 0x10], al
mov byte [rdi + 0x11], 0
mov al, 0x22
add al, 0x4d
mov byte [rdi + 0x12], al
mov byte [rdi + 0x13], 0
mov al, 0x30
add al, 0x34
mov byte [rdi + 0x14], al
mov byte [rdi + 0x15], 0
mov al, 0xb
add al, 0x5a
mov byte [rdi + 0x16], al
mov byte [rdi + 0x17], 0
mov byte [rdi + 0x18], 0
mov byte [rdi + 0x19], 0
mov byte [rdi + 0x1a], 0
mov byte [rdi + 0x1b], 0
mov qword [rbp - 0x100], rdi
add rdi, 0x64
mov al, 2
add al, 0x41
mov byte [rdi], al
Function at 0x180005dc8
Capabilities:
Parse pe header

Disassembly:
mov qword [rbp - 0x38], r12
sub r13, 0x10
mov qword [rbp - 0x68], r13
add r12, 0x10
mov qword [rbp - 0x70], r12
movabs rax, 0x5300450040
mov byte [rdi + 1], 0
mov al, 0x5c
add al, 0xc
mov byte [rdi + 2], al
mov byte [rdi + 3], 0
mov al, 0xb
add al, 0x56
mov byte [rdi + 4], al
mov byte [rdi + 5], 0
mov al, 0x2b
add al, 0x3e
mov byte [rdi + 6], al
mov byte [rdi + 7], 0
mov al, 0x1d
add al, 0x51
push rcx
mov byte [rdi + 8], al
mov byte [rdi + 9], 0
mov al, 0x56
add al, 0x13
mov byte [rdi + 0xa], al
push rax
xor rax, rax
inc rax
test rax, rax
je 0x18000655c
pop rax
push rcx
xor rcx, rcx
test rcx, rcx
jne 0x180005bf3
inc rcx
test rcx, rcx
je 0x180005b09
pop rcx
mov byte [rdi + 0xb], 0
mov al, 4
add al, 0x6a
mov byte [rdi + 0xc], al
mov byte [rdi + 0xd], 0
mov al, 0x4c
add al, 0x1b
mov byte [rdi + 0xe], al
mov byte [rdi + 0xf], 0
mov al, 0xe
add al, 0x3f
mov byte [rdi + 0x10], al
mov byte [rdi + 0x11], 0
mov al, 0x1b
add al, 0x54
mov byte [rdi + 0x12], al
mov byte [rdi + 0x13], 0
mov al, 0x39
add al, 0x2b
mov byte [rdi + 0x14], al
mov byte [rdi + 0x15], 0
mov al, 0x40
add al, 0x25
mov byte [rdi + 0x16], al
mov byte [rdi + 0x17], 0
mov al, 0x3e
add al, 5
mov byte [rdi + 0x18], al
mov byte [rdi + 0x19], 0
mov al, 0x1a
add al, 0x28
mov byte [rdi + 0x1a], al
mov byte [rdi + 0x1b], 0
mov al, 0x24
add al, 0x1f
mov byte [rdi + 0x1c], al
invalid
invalid
invalid
Function at 0x62dfc520
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x20
cmp dword [rcx + 0x244], 0x10
ja 0x62dfc5a0
mov rbx, rcx
mov ecx, dword [rcx + 0x238]
mov rsi, rdx
mov edi, r8d
call fcn.62dfcdb0
test eax, eax
mov r14d, eax
jne 0x62dfc5a6
mov eax, dword [rbx + 0x240]
test eax, eax
jne 0x62dfc591
movsxd rcx, dword [rbx + 0x244]
test ecx, ecx
jne 0x62dfc5c0
cmp qword [rbx + 0x248], 0
je 0x62dfc7b0
lea r13, [rbx + 0x228]
lea r12, [rbx + 0x1f8]
jmp 0x62dfc63a
cmp eax, 1
je 0x62dfc7c0
nop word [rax + rax]
mov r14d, 0x10
lea rsp, [rbp - 0x38]
mov eax, r14d
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, dword [rbx + 0x23c]
lea r13, [rbx + 0x228]
test eax, eax
jne 0x62dfc600
cmp ecx, 0xc
jne 0x62dfc600
mov rax, qword [rbx + 0x228]
mov qword [rbx + 0x208], rax
mov eax, dword [r13 + 8]
mov dword [rbx + 0x214], 0x1000000
mov dword [rbx + 0x210], eax
jmp 0x62dfc6a5
lea eax, [rcx - 1]
lea r12, [rbx + 0x1f8]
lea r8, [rbx + rax + 0x1f9]
mov rdx, r12
movzx eax, byte [rdx + 0x30]
xor byte [rdx], al
add rdx, 1
cmp rdx, r8
jne 0x62dfc615
shl rcx, 3
add qword [rbx + 0x248], rcx
mov rdx, r12
mov rcx, rbx
call fcn.62dfcd70
mov edx, 8
mov rcx, r13
call fcn.62d9c5a0
mov rax, qword [rbx + 0x248]
mov rdx, r12
bswap rax
mov qword [rbx + 0x230], rax
lea rax, [rbx + 0x208]
movzx ecx, byte [rdx + 0x30]
xor byte [rdx], cl
add rdx, 1
cmp rax, rdx
jne 0x62dfc662
mov rdx, r12
mov rcx, rbx
call fcn.62dfcd70
mov rdx, qword [rbx + 0x200]
mov rax, qword [rbx + 0x1f8]
mov rcx, r12
mov qword [rbx + 0x210], rdx
mov qword [rbx + 0x208], rax
mov edx, 0x10
call fcn.62d9c5a0
mov rdx, qword [rbx + 0x210]
mov rax, qword [rbx + 0x208]
mov rcx, r13
mov qword [rbx + 0x220], rdx
mov qword [rbx + 0x218], rax
mov edx, 0x10
call fcn.62d9c5a0
mov qword [rbx + 0x240], 1
mov qword [rbx + 0x248], 0
mov r13d, edi
and r13d, 0xfffffff0
je 0x62dfc7e0
lea r15, [rbx + 0x1f8]
xor r12d, r12d
nop dword [rax + rax]
mov eax, r12d
mov rdx, r15
mov rcx, rbx
mov rax, qword [rsi + rax]
xor qword [rbx + 0x1f8], rax
lea eax, [r12 + 8]
add r12d, 0x10
mov rax, qword [rsi + rax]
xor qword [rbx + 0x200], rax
call fcn.62dfcd70
sub qword [rbx + 0x248], 0xffffffffffffff80
cmp r12d, r13d
jb 0x62dfc700
mov eax, r12d
add rsi, rax
cmp edi, r12d
jbe 0x62dfc5a6
sub edi, 1
sub edi, r12d
lea r12, [rsi + rdi + 1]
lea rdi, [rbx + 0x1f8]
jmp 0x62dfc769
cmp rsi, r12
je 0x62dfc5a6
movsxd rdx, dword [rbx + 0x244]
add rsi, 1
movzx ecx, byte [rsi - 1]
lea eax, [rdx + 1]
mov dword [rbx + 0x244], eax
xor byte [rbx + rdx + 0x1f8], cl
cmp eax, 0x10
jne 0x62dfc760
mov rdx, rdi
mov rcx, rbx
call fcn.62dfcd70
mov dword [rbx + 0x244], 0
sub qword [rbx + 0x248], 0xffffffffffffff80
jmp 0x62dfc760
mov r14d, 1
jmp 0x62dfc5a6
mov eax, dword [rbx + 0x244]
cmp eax, 0xf
jg 0x62dfc5a0
xor r12d, r12d
test eax, eax
jne 0x62dfc740
jmp 0x62dfc6e4
xor r12d, r12d
jmp 0x62dfc740
Function at 0x62dfcc10
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
mov ebp, 0x10
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x240]
test eax, eax
jne 0x62dfcd51
cmp dword [rcx + 0x244], 0xf
mov rbx, rcx
ja 0x62dfcd51
mov ecx, dword [rcx + 0x238]
mov rsi, rdx
mov r12d, r8d
call fcn.62dfcdb0
test eax, eax
mov ebp, eax
jne 0x62dfcd51
mov eax, dword [rbx + 0x244]
lea edx, [rax + r12]
cmp edx, 0xc
jbe 0x62dfcc72
or dword [rbx + 0x23c], 1
xor edi, edi
test eax, eax
jne 0x62dfcccb
mov r13d, r12d
and r13d, 0xfffffff0
je 0x62dfcd62
lea r14, [rbx + 0x1f8]
nop dword [rax]
mov eax, edi
mov rdx, r14
mov rcx, rbx
mov rax, qword [rsi + rax]
xor qword [rbx + 0x1f8], rax
lea eax, [rdi + 8]
add edi, 0x10
mov rax, qword [rsi + rax]
xor qword [rbx + 0x200], rax
call fcn.62dfcd70
sub qword [rbx + 0x248], 0xffffffffffffff80
cmp edi, r13d
jb 0x62dfcc90
mov eax, edi
add rsi, rax
cmp r12d, edi
jbe 0x62dfcd51
sub r12d, 1
lea r13, [rbx + 0x1f8]
sub r12d, edi
lea rdi, [rbx + 0x208]
lea r12, [rsi + r12 + 1]
jmp 0x62dfccf5
cmp r12, rsi
je 0x62dfcd51
movsxd rdx, dword [rbx + 0x244]
add rsi, 1
lea ecx, [rdx + 1]
mov dword [rbx + 0x244], ecx
movzx eax, byte [rsi - 1]
cmp ecx, 0x10
mov byte [rbx + rdx + 0x228], al
jne 0x62dfccf0
mov rdx, r13
nop dword [rax]
movzx ecx, byte [rdx + 0x30]
xor byte [rdx], cl
add rdx, 1
cmp rdi, rdx
jne 0x62dfcd20
mov rdx, r13
mov rcx, rbx
call fcn.62dfcd70
sub qword [rbx + 0x248], 0xffffffffffffff80
cmp r12, rsi
mov dword [rbx + 0x244], 0
jne 0x62dfccf5
add rsp, 0x20
mov eax, ebp
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edi, eax
jmp 0x62dfcccb
Function at 0x63563058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.635631df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x63563089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x6356306f
add dl, dl
jne 0x63563096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x635630f6
xor eax, eax
add dl, dl
jne 0x635630a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x635631ad
add dl, dl
jne 0x635630b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x635630c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x635630d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x635630dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x635630ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x6356307e
mov eax, 1
add dl, dl
jne 0x63563106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x63563113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x635630fb
sub eax, ebx
mov ebx, 1
jne 0x6356314c
mov ecx, 1
add dl, dl
jne 0x6356312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x6356313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x63563123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6356307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x63563168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x63563175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x6356315d
cmp eax, 0x7d00
jae 0x6356319b
cmp eax, 0x500
jb 0x63563196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6356307e
cmp eax, 0x7f
ja 0x6356319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6356307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x635631d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x6356307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1800030e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x180003108
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp], rax
jae 0x180003165
xor edx, edx
mov rax, qword [rsp]
mov ecx, 8
div rcx
mov rax, rdx
shl rax, 3
movzx ecx, al
mov rax, qword [rsp + 0x30]
shr rax, cl
and rax, 0xff
movsx eax, al
mov rcx, qword [rsp]
mov rdx, qword [rsp + 0x20]
add rdx, rcx
mov rcx, rdx
movsx ecx, byte [rcx]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp]
mov rdx, qword [rsp + 0x20]
add rdx, rcx
mov rcx, rdx
mov byte [rcx], al
jmp 0x1800030fd
add rsp, 0x18
ret

Function at 0x1800035b0
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 0x1800035d2
xor eax, eax
jmp 0x180003775
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x1800035f7
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.180004220
jmp 0x180003775
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.180005450
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x18000368d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.180003780
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x60]
call fcn.180005610
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.180006000
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.180005570
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x180003765
mov rcx, qword [rsp + 0x60]
call fcn.180004f50
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x18000372d
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.180011e2c
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 0x18000372b
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x180003775
jmp 0x1800036b3
cmp qword [rsp + 0x20], 0
jbe 0x180003765
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.180011e2c
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 0x180014f70
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180014f86
mov al, 1
jmp 0x180014fe6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180014f97
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180014fe4
mov ecx, dword [rcx + 0x18]
nop
call fcn.18001dd28
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180014fe4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180014fe4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180014fe4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180014fe6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180019748
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.180009950
sub rsp, rax
mov rax, qword [0x180034040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180014e50
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180019797
mov rax, rbp
jmp 0x18001989f
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 + 0x7d9e20]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18001aac4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x7d9e20]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18001989b
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 0x18001989b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18001aac4
test rax, rax
js 0x18001989b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18001989b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18001988d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18001988d
cmp byte [rcx], 0xd
jne 0x180019873
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180019882
cmp byte [rcx + 1], 0xa
jne 0x180019882
inc rcx
jmp 0x180019882
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x34480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180019855
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18001989f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180008fa0
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 0x180019e64
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, [0x1807d9e20]
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 0x180019ebb
cmp word [rdx], r13w
jne 0x180019ebb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180019ec0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180019fe5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18001a006
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180019ef9
mov rdx, r9
mov word [rbx], cx
jmp 0x180019f20
cmp r9, r8
jae 0x180019f30
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 0x180019eda
jmp 0x180019fe5
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 0x180019fda
cmp dword [rsp + 0x80], esi
je 0x180019fda
lea r8, [0x1807d9e20]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180019fb2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180019f82
mov word [rbx], r13w
jmp 0x180019fe2
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 0x180019f8f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180019fe2
cmp word [rsp + 0x70], r13w
jne 0x180019fbf
cmp rbx, r14
je 0x180019f7c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18001aacc
cmp word [rsp + 0x70], r13w
je 0x180019fe5
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, [0x1807d9e20]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180019fdf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180019fe5