joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a8290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x10
mov qword [rsp + 0x30], rbx
lea r13, [0x140000000]
mov qword [rsp + 0x38], rbp
mov rdi, rdx
mov qword [rsp + 0x40], rsi
mov rax, rcx
mov qword [rsp + 8], r14
xor r12d, r12d
mov qword [rsp], r15
test rdi, rdi
je 0x1400a82d0
cmp rax, rdi
jae 0x1400a8448
movzx r8d, byte [rax]
test r8b, r8b
je 0x1400a8448
xor ebx, ebx
mov ecx, r8d
shr rcx, 3
mov rdx, rdi
movsx r9, byte [rcx + r13 + 0x2fe0e0]
test r9d, r9d
sete bl
add ebx, r9d
test rdi, rdi
jne 0x1400a8306
movsxd rdx, ebx
add rdx, rax
xor esi, esi
lea rcx, [rax + 1]
cmp rax, rdx
cmovb esi, r8d
cmp rcx, rdx
jae 0x1400a831e
movzx r15d, byte [rcx]
jmp 0x1400a8321
xor r15b, r15b
lea rcx, [rax + 2]
cmp rcx, rdx
jae 0x1400a8330
movzx r14d, byte [rcx]
jmp 0x1400a8333
xor r14b, r14b
lea rcx, [rax + 3]
cmp rcx, rdx
jae 0x1400a8341
movzx ebp, byte [rcx]
jmp 0x1400a8344
xor bpl, bpl
lea r10, [r9*4]
movzx ecx, sil
mov r9d, dword [r10 + r13 + 0x2fe118]
and r9d, ecx
movzx r8d, r15b
shl r9d, 6
mov ecx, r8d
and ecx, 0x3f
movzx edx, r14b
or r9d, ecx
movzx r11d, bpl
shl r9d, 6
and r8d, 0xc0
mov ecx, edx
and edx, 0xc0
and ecx, 0x3f
or r9d, ecx
mov ecx, r11d
shr r11d, 2
and ecx, 0x3f
or r11d, edx
shl r9d, 6
shr r11d, 2
or r9d, ecx
mov ecx, dword [r10 + r13 + 0x2fe0c8]
or r11d, r8d
shr r9d, cl
shr r11d, 2
mov edx, r9d
cmp r9d, dword [r10 + r13 + 0x2fe0b0]
sbb ecx, ecx
and edx, 0xfffff800
and ecx, 0x40
xor r8d, r8d
or r11d, ecx
mov ecx, 0x80
cmp edx, 0xd800
cmove r8d, ecx
xor edx, edx
or r11d, r8d
mov ecx, 0x100
cmp r9d, 0xffff
cmova edx, ecx
mov ecx, dword [r10 + r13 + 0x2fe100]
or r11d, edx
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x1400a843a
xor edx, edx
test bpl, bpl
setne dl
xor ecx, ecx
test r14b, r14b
setne cl
add edx, ecx
xor ecx, ecx
test r15b, r15b
setne cl
add edx, ecx
xor ecx, ecx
test sil, sil
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
mov ebx, edx
movsxd rcx, ebx
add rax, rcx
inc r12d
jmp 0x1400a82c2
mov r15, qword [rsp]
mov eax, r12d
mov r14, qword [rsp + 8]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x10
pop r13
pop r12
pop rdi
ret
Function at 0x1400a8480
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x20], rsi
mov rsi, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp], rax
cmp rcx, rax
jae 0x1400a8697
mov qword [r11 + 0x18], rbp
lea rbp, [0x140000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
nop
test rsi, rsi
je 0x1400a84de
cmp r8, rsi
jae 0x1400a8674
movzx edx, byte [r8]
test dl, dl
je 0x1400a8674
xor ebx, ebx
mov eax, edx
shr rax, 3
mov rcx, rsi
movsx r9, byte [rax + rbp + 0x2fe0e0]
test r9d, r9d
sete bl
add ebx, r9d
test rsi, rsi
jne 0x1400a8512
movsxd rcx, ebx
add rcx, r8
xor r14d, r14d
lea rax, [r8 + 1]
cmp r8, rcx
cmovb r14d, edx
cmp rax, rcx
jae 0x1400a852b
movzx r13d, byte [rax]
jmp 0x1400a852e
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x1400a853d
movzx r12d, byte [rax]
jmp 0x1400a8540
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x1400a854f
movzx r15d, byte [rax]
jmp 0x1400a8552
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov ebp, dword [r10 + rbp + 0x2fe118]
and ebp, eax
movzx r9d, r13b
shl ebp, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or ebp, eax
movzx r11d, r15b
shl ebp, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or ebp, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl ebp, 6
or ebp, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x140000000]
mov ecx, dword [r10 + rax + 0x2fe0c8]
shr r11d, 2
shr ebp, cl
mov ecx, 0x100
cmp ebp, dword [r10 + rax + 0x2fe0b0]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, ebp
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp ebp, 0xffff
cmova eax, ecx
lea rcx, [0x140000000]
mov ecx, dword [r10 + rcx + 0x2fe100]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x1400a8656
test r15b, r15b
mov eax, r9d
mov ecx, r9d
mov ebp, 0xfffd
setne cl
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
mov eax, r9d
test r14b, r14b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
mov ebx, ecx
mov word [rdi], bp
add rdi, 2
movsxd rax, ebx
lea rbp, [0x140000000]
add r8, rax
cmp rdi, qword [rsp]
jb 0x1400a84d0
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov word [rdi], r9w
test rax, rax
je 0x1400a86ad
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1400a8bc0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400a8c1d
lea rbx, [0x1401079d0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400a8c04
cmp r10, 2
jb 0x1400a8c04
cmp byte [r9], r8b
jne 0x1400a8c04
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400a8be0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400a8c5f
lea rbx, [0x1401079d0]
cmp r8b, 0x23
jne 0x1400a8c43
cmp byte [r9], r8b
jne 0x1400a8c43
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400a8c30
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400abfb0
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov r10, rdx
mov eax, 0x5e6ea9af
mul r8d
mov ebx, r8d
xor r9d, r9d
shr edx, 0xb
mov esi, r8d
imul eax, edx, 0x15b0
mov ecx, 1
sub ebx, eax
test r8d, r8d
je 0x1400ac0fc
mov qword [rsp + 0x20], rdi
xor r11d, r11d
cmp ebx, 7
jbe 0x1400ac05e
mov edx, 7
nop word [rax + rax]
movzx eax, byte [r10]
add r11d, 8
add ecx, eax
add edx, 8
movzx eax, byte [r10 + 1]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 2]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 3]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 4]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 5]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 6]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 7]
add r9d, ecx
add ecx, eax
add r10, 8
add r9d, ecx
cmp edx, ebx
jb 0x1400ac000
xor edx, edx
xor r8d, r8d
cmp r11d, ebx
jae 0x1400ac0c4
mov eax, ebx
sub eax, r11d
cmp eax, 2
jb 0x1400ac0b1
mov eax, ebx
sub eax, r11d
sub eax, 2
shr eax, 1
inc eax
mov edi, eax
lea r11d, [r11 + rax*2]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r10]
add ecx, eax
movzx eax, byte [r10 + 1]
add edx, ecx
add r10, 2
add ecx, eax
add r8d, ecx
sub rdi, 1
jne 0x1400ac090
cmp r11d, ebx
jae 0x1400ac0bd
movzx eax, byte [r10]
add ecx, eax
add r9d, ecx
inc r10
lea eax, [r8 + rdx]
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul edx, edx, 0xffff000f
add r9d, edx
sub esi, ebx
mov ebx, 0x15b0
jne 0x1400abfe8
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
shl r9d, 0x10
lea eax, [rcx + r9]
pop rsi
ret
Function at 0x1400c5680
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x140363050]
test rax, rax
je 0x1400c569b
mov rbx, qword [rax + 0x90]
jmp 0x1400c569d
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1400c56c8
mov dword [rbx + 0x2c], eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400c7620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140363050]
mov rcx, qword [rax + 0x4dd8]
mov r10, qword [rax + 0x4038]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2a8]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x248], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2a8]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp fcn.1400b2b50

Function at 0x1400c7700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140363050]
mov rcx, qword [rax + 0x4dd8]
mov r9, qword [rax + 0x4038]
movups xmm0, xmmword [r9 + 0x248]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x248], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x232]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x2a8]
add rsp, 0x38
jmp fcn.1400b2b50
Function at 0x1800274f0
Capabilities:
Encode data using xor

Disassembly:
invalid
push rbx
jns 0x1800274b0
test dword [rax - 0x2e], edi
retf 0x22b2

Function at 0x18077e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.18077e1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x18077e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18077e06f
add dl, dl
jne 0x18077e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18077e0f6
xor eax, eax
add dl, dl
jne 0x18077e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18077e1ad
add dl, dl
jne 0x18077e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18077e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18077e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18077e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18077e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18077e07e
mov eax, 1
add dl, dl
jne 0x18077e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18077e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18077e0fb
sub eax, ebx
mov ebx, 1
jne 0x18077e14c
mov ecx, 1
add dl, dl
jne 0x18077e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18077e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18077e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18077e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18077e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18077e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18077e15d
cmp eax, 0x7d00
jae 0x18077e19b
cmp eax, 0x500
jb 0x18077e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18077e07e
cmp eax, 0x7f
ja 0x18077e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18077e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18077e1d2
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 0x18077e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1800019c0
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x2d8
mov rax, qword [rsp + 0x2f0]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x90], 0
mov eax, 5
mov word [rsp + 0x20], ax
mov dword [rsp + 0x88], 9
mov byte [rsp + 4], 0x78
lea rax, [rsp + 0x110]
lea rcx, str.IPhrHQizvwAMcgeDuKZXdTfkGyobCVUNpOtEnqxaSLBJYlFjs
mov rdi, rax
mov rsi, rcx
mov ecx, 0x32
rep movsb byte [rdi], byte [rsi]
mov eax, 3
mov word [rsp + 0x24], ax
mov qword [rsp + 0x98], 4
mov byte [rsp + 5], 0
mov rax, qword [rsp + 0x68]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180001ab5
xor eax, eax
jmp 0x180001dc5
mov rax, qword [rsp + 0x68]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x2f0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x18], rax
mov byte [rsp + 8], 0x45
mov eax, 6
mov word [rsp + 0x30], ax
mov eax, 8
mov word [rsp + 0x34], ax
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0x70], 0
lea rax, [rsp + 0x180]
lea rcx, str.lmwodxbprYtHDWjLNGBsehgyIvEMXUPQuRiSZOFTCVcfnKAka
mov rdi, rax
mov rsi, rcx
mov ecx, 0x32
rep movsb byte [rdi], byte [rsi]
mov byte [rsp + 9], 0
mov qword [rsp + 0xb8], 2
mov rax, qword [rsp + 0x18]
cmp dword [rax], 0x4550
je 0x180001b99
xor eax, eax
jmp 0x180001dc5
mov rax, qword [rsp + 0x18]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x18]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x60], rax
mov eax, 1
mov word [rsp + 0x40], ax
mov qword [rsp + 0xd0], 0
mov byte [rsp + 0xc], 0x4b
mov eax, 4
mov word [rsp + 0x44], ax
mov qword [rsp + 0xd8], 9
lea rax, [rsp + 0x1f0]
lea rcx, str.KOtYxLXRgGfwvZjzuCUVlkIoTciMaqBFhPANenprdJQmHEsSW
mov rdi, rax
mov rsi, rcx
mov ecx, 0x32
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x78], 0
mov byte [rsp + 0xd], 0
mov dword [rsp], 0
jmp 0x180001c1c
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jge 0x180001d64
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x300]
sub rax, rcx
movzx edx, byte [rcx]
cmp dl, byte [rcx + rax]
jne 0x180001c5f
inc rcx
test dl, dl
jne 0x180001c4c
xor eax, eax
jmp 0x180001c64
sbb eax, eax
or eax, 1
test eax, eax
jne 0x180001d5f
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x2f8]
mov rdx, qword [rsp + 0x60]
mov eax, dword [rdx + rax + 8]
mov dword [rcx], eax
lea rax, [rsp + 0x228]
lea rcx, str.FjZpyvwzCoqQhUcJKErmVBleTLRYbMIOnSxHADtdgakuiNWPf
mov rdi, rax
mov rsi, rcx
mov ecx, 0x32
rep movsb byte [rdi], byte [rsi]
mov byte [rsp + 0xe], 0x77
mov qword [rsp + 0xe0], 2
xor eax, eax
mov word [rsp + 0x48], ax
mov qword [rsp + 0xe8], 0
mov dword [rsp + 0x7c], 0
mov byte [rsp + 0xf], 0
mov eax, 4
mov word [rsp + 0x4c], ax
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x2f0]
add rcx, rax
mov rax, rcx
jmp 0x180001dc5
jmp 0x180001c14
xor eax, eax
jmp 0x180001dc5
add rsp, 0x2d8
pop rdi
pop rsi
ret
Function at 0x180004e20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x18003f040]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x80], 0
jg 0x180004e54
xor eax, eax
jmp 0x180005000
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x180004e7c
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.180005af0
jmp 0x180005000
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x70]
call fcn.180006d50
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x180004f18
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.180005020
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x70]
call fcn.180006f10
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.180007620
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call fcn.180006e70
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x180004ff0
mov rcx, qword [rsp + 0x70]
call fcn.180006830
mov qword [rsp + 0x38], 0xfff
cmp qword [rsp + 0x40], 0xfff
jbe 0x180004fb8
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.1800124dc
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x28], 0xfff
je 0x180004fb6
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x180005000
jmp 0x180004f3e
cmp qword [rsp + 0x40], 0
jbe 0x180004ff0
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.1800124dc
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180009e70
add rsp, 0x68
ret

Function at 0x180017c14
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180017c2a
mov al, 1
jmp 0x180017c8a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180017c3b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180017c88
mov ecx, dword [rcx + 0x18]
nop
call fcn.180021310
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180017c88
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180017c88
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180017c88
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180017c8a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180019338
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.18000a980
sub rsp, rax
mov rax, qword [0x18003f040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180017718
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180019387
mov rax, rbp
jmp 0x18001948f
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 + 0x413b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180018f74
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x413b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18001948b
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 0x18001948b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180018f74
test rax, rax
js 0x18001948b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18001948b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18001947d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18001947d
cmp byte [rcx], 0xd
jne 0x180019463
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180019472
cmp byte [rcx + 1], 0xa
jne 0x180019472
inc rcx
jmp 0x180019472
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3f480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180019445
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18001948f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180009e70
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 0x18001970c
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, [0x1800413b0]
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 0x180019763
cmp word [rdx], r13w
jne 0x180019763
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180019768
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18001988d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800198ae
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800197a1
mov rdx, r9
mov word [rbx], cx
jmp 0x1800197c8
cmp r9, r8
jae 0x1800197d8
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 0x180019782
jmp 0x18001988d
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 0x180019882
cmp dword [rsp + 0x80], esi
je 0x180019882
lea r8, [0x1800413b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18001985a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18001982a
mov word [rbx], r13w
jmp 0x18001988a
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 0x180019837
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18001988a
cmp word [rsp + 0x70], r13w
jne 0x180019867
cmp rbx, r14
je 0x180019824
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180018f7c
cmp word [rsp + 0x70], r13w
je 0x18001988d
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, [0x1800413b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180019887
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18001988d