joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001fc60
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18001fcb0
lea r11, [0x1801006f0]
nop dword [rax]
cmp r9b, 0x23
jne 0x18001fc93
cmp byte [r8], r9b
jne 0x18001fc93
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x18001fc80
mov rcx, qword [0x1802ba7d0]
not eax
movsxd rdx, dword [rcx + 0x1a00]
mov r9, qword [rcx + 0x1a08]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x18001fd11
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18001fd09
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18001fd0c
mov rdx, r8
test rdx, rdx
jne 0x18001fce0
cmp r9, r10
je 0x18001fd20
cmp dword [r9], eax
jne 0x18001fd20
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret

Function at 0x180020b60
Capabilities:
Hash data with crc32

Disassembly:
movsxd rax, dword [rcx + 0xc0]
mov r9, r8
mov r8, qword [rcx + 0xc8]
mov r10, rdx
xor ecx, ecx
mov rdx, r9
sub rdx, r10
test r9, r9
mov r8d, dword [r8 + rax*4 - 4]
cmove rdx, rcx
mov rcx, r10
jmp fcn.180021640

Function at 0x180021200
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x18002121b
mov qword [r8], 0
call fcn.180021360
mov rbx, rax
test rax, rax
jne 0x180021231
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r15
call fcn.180062504
mov esi, eax
cmp eax, 0xffffffff
je 0x180021332
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.180061f48
test eax, eax
jne 0x180021332
mov rcx, rbx
call fcn.180062504
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180021332
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.180061f48
test eax, eax
jne 0x180021332
cmp rdi, 0xffffffffffffffff
je 0x180021332
mov rax, qword [0x1802ba7d0]
test rax, rax
je 0x1800212ae
inc dword [rax + 0x3bc]
mov rdx, qword [0x1802ba7e0]
lea rcx, [rdi + rbp]
call qword [0x1802b4300]
mov rsi, rax
test rax, rax
je 0x180021332
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.180061c10
cmp rax, rdi
je 0x18002130b
mov rcx, rbx
call fcn.180061528
mov rax, qword [0x1802ba7d0]
test rax, rax
je 0x1800212f9
dec dword [rax + 0x3bc]
mov rdx, qword [0x1802ba7e0]
mov rcx, rsi
call qword [0x1802b4308]
jmp 0x18002133a
test ebp, ebp
jle 0x18002131d
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call fcn.18007d1c0
mov rcx, rbx
call fcn.180061528
test r14, r14
je 0x18002132d
mov qword [r14], rdi
mov rax, rsi
jmp 0x18002133c
mov rcx, rbx
call fcn.180061528
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
Function at 0x180021640
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 0x18002169d
lea rbx, [0x1801006f0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180021684
cmp r10, 2
jb 0x180021684
cmp byte [r9], r8b
jne 0x180021684
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 0x180021660
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800216df
lea rbx, [0x1801006f0]
cmp r8b, 0x23
jne 0x1800216c3
cmp byte [r9], r8b
jne 0x1800216c3
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 0x1800216b0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180022560
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
xor eax, eax
lea r8, [0x180100c95]
mov dword [rsp + 0x2c], eax
lea r11, [0x1801006f0]
mov qword [rsp + 0x48], rax
mov r10d, 0xffffffff
lea rax, str.Window
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov edx, r10d
mov r9b, 0x57
nop
cmp r9b, 0x23
jne 0x1800225b3
cmp byte [r8], r9b
jne 0x1800225b3
cmp byte [r8 + 1], r9b
cmove edx, r10d
movzx ecx, dl
movzx eax, r9b
movzx r9d, byte [r8]
xor rcx, rax
shr edx, 8
inc r8
xor edx, dword [r11 + rcx*4]
test r9b, r9b
jne 0x1800225a0
mov ecx, dword [rbx + 0x2f14]
lea rax, [0x18002d1c0]
mov edi, dword [rbx + 0x2f10]
not edx
mov qword [rsp + 0x30], rax
lea rax, [0x18002d0f0]
mov qword [rsp + 0x38], rax
lea rax, [0x18002d270]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], edx
cmp edi, ecx
jne 0x1800226c3
inc edi
test ecx, ecx
je 0x18002261f
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x180022624
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x1800226c3
mov rax, qword [0x1802ba7d0]
mov qword [rsp + 0x60], rsi
test rax, rax
je 0x180022648
inc dword [rax + 0x3bc]
mov rdx, qword [0x1802ba7e0]
movsxd rax, edi
lea rcx, [rax + rax*2]
shl rcx, 4
call qword [0x1802b4300]
mov rdx, qword [rbx + 0x2f18]
mov rsi, rax
test rdx, rdx
je 0x1800226b1
movsxd rcx, dword [rbx + 0x2f10]
lea r8, [rcx + rcx*2]
mov rcx, rax
shl r8, 4
call fcn.18007cb20
mov rcx, qword [rbx + 0x2f18]
test rcx, rcx
je 0x1800226a4
mov rax, qword [0x1802ba7d0]
test rax, rax
je 0x1800226a4
dec dword [rax + 0x3bc]
mov rdx, qword [0x1802ba7e0]
call qword [0x1802b4308]
mov qword [rbx + 0x2f18], rsi
mov rsi, qword [rsp + 0x60]
mov dword [rbx + 0x2f14], edi
movsxd rax, dword [rbx + 0x2f10]
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x2f18]
add rcx, rcx
movups xmmword [rax + rcx*8], xmm0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + rcx*8 + 0x10], xmm1
movups xmmword [rax + rcx*8 + 0x20], xmm0
inc dword [rbx + 0x2f10]
mov byte [rbx], 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x180027d60
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rax, qword [0x1802ba7d0]
lea rdx, [0x1801006f0]
mov r8d, ecx
mov rsi, qword [rax + 0x1a18]
lea rbx, [rsi + 0xc0]
movsxd r9, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + r9*4 - 4]
not edi
movzx eax, r8b
mov r8d, dword [rsi + 0xc4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x31]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x32]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x33]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
shr edi, 8
xor rcx, rax
xor edi, dword [rdx + rcx*4]
not edi
cmp r9d, r8d
jne 0x180027e1f
lea ecx, [r9 + 1]
test r8d, r8d
je 0x180027e0b
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x180027e10
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.18002dbc0
movsxd rcx, dword [rbx]
mov rax, qword [rsi + 0xc8]
mov rsi, qword [rsp + 0x40]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180027ed0
Capabilities:
Hash data with crc32

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [0x1802ba7d0]
lea rdx, [0x1801006f0]
mov r8, rcx
mov rsi, qword [rax + 0x1a18]
lea rbx, [rsi + 0xc0]
movsxd r9, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + r9*4 - 4]
not edi
movzx eax, r8b
mov r8d, dword [rsi + 0xc4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 9]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xa]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xb]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xc]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xd]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xe]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xf]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
shr edi, 8
xor rcx, rax
xor edi, dword [rdx + rcx*4]
not edi
cmp r9d, r8d
jne 0x180027fd8
lea ecx, [r9 + 1]
test r8d, r8d
je 0x180027fc4
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x180027fc9
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.18002dbc0
movsxd rcx, dword [rbx]
mov rax, qword [rsi + 0xc8]
mov rsi, qword [rsp + 0x40]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180030ac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x180030c51
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x180030b30
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.180033f50
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.18002e3b0
mov dword [rbx + 0x80], 0
jmp 0x180030c3d
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.180034490
movzx edx, word [rbx + 0x4c]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rsi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rsi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], edi
movsd xmm0, qword [rsi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], edi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x4c], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18003dc30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1802b5380]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov rbx, rcx
call fcn.180020b90
movdqa xmm0, xmmword [0x180104f10]
xor r9d, r9d
movdqu xmmword [rsp + 0x38], xmm0
mov r8d, r9d
nop dword [rax + rax]
movsxd rdx, r8d
lea ecx, [r8 + 0x12]
inc r8d
xor byte [rsp + rdx + 0x38], cl
cmp r8d, 0xf
jb 0x18003dc70
lea rcx, [rsp + 0x38]
mov qword [rax + 0xd8], rcx
lea r8, [rsp + 0x20]
mov rax, qword [rbx]
lea rdx, [0x180104eb0]
mov rcx, rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x30], r9
call qword [rax]
test eax, eax
jne 0x18003dd07
mov rcx, qword [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [0x180104ec0]
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
jne 0x18003dd07
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, [0x180104ed0]
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
jne 0x18003dd07
mov rax, qword [rsp + 0x30]
mov qword [0x1802ba840], rax
mov qword [0x1802ba830], rbx
mov qword [0x1802ba838], rdi
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18003dd17
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x18003dd27
mov rax, qword [rcx]
call qword [rax + 0x10]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800553d0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x180054750
Capabilities:
Encode data using xor

Disassembly:
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x1802b5380]
xor rax, rsp
mov qword [rbp + 0x80], rax
cmp edx, 1
jne 0x180054930
mov r8d, 0x104
mov qword [rsp + 0x1a0], rbx
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
lea rax, [rsp + 0x70]
xorps xmm1, xmm1
mov r8, 0xffffffffffffffff
movups xmmword [rsp + 0x50], xmm0
movdqu xmmword [rsp + 0x60], xmm1
inc r8
cmp byte [rax + r8], 0
jne 0x1800547b3
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.180002d60
xor ebx, ebx
mov dword [rsp + 0x20], 0x8ea4b492
mov edx, ebx
mov dword [rsp + 0x24], 0xe3a9a6ab
mov dword [rsp + 0x28], 0xb5b7ab
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x20]
add rcx, rax
lea eax, [rdx - 0x3a]
inc edx
xor byte [rcx], al
cmp edx, 0xb
jb 0x1800547f0
xor r8d, r8d
mov byte [rsp + 0x2b], bl
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.180054650
cmp rax, 0xffffffffffffffff
je 0x1800548ef
movdqa xmm0, xmmword [0x1801055d0]
xor eax, eax
movdqu xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x4a], al
mov edx, ebx
mov dword [rsp + 0x40], 0xb2b6be9a
mov dword [rsp + 0x44], 0xb8b6b995
mov word [rsp + 0x48], 0xabbd
nop dword [rax]
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x30]
add rcx, rax
lea eax, [rdx - 0x3a]
inc edx
xor byte [rcx], al
cmp edx, 0x1a
jb 0x180054860
mov byte [rsp + 0x4a], bl
mov dword [rsp + 0x20], 0xa5acb388
mov dword [rsp + 0x24], 0xa1a8e5a6
mov word [rsp + 0x28], 0xa2
nop dword [rax]
nop word [rax + rax]
movsxd rax, ebx
lea rcx, [rsp + 0x20]
add rcx, rax
lea eax, [rbx - 0x3a]
inc ebx
xor byte [rcx], al
cmp ebx, 9
jb 0x1800548a0
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x29], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
lea rcx, [0x1800530e0]
mov eax, dword [rax + 4]
inc eax
mov qword [0x1802ba900], rax
call fcn.180054490
mov rdx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x1a0]
cmp rdx, 0xf
jbe 0x180054930
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005492b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005494d
call fcn.180054f48
mov eax, 1
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1800553d0
add rsp, 0x190
pop rbp
ret
call fcn.18005c2fc
int3
Function at 0x180062320
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.180055430
sub rsp, rax
mov rax, qword [0x1802b5380]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18006eb68
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18006236f
mov rax, rbp
jmp 0x180062477
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 + 0x2bc360]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180072b84
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x2bc360]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180062473
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 0x180062473
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180072b84
test rax, rax
js 0x180062473
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180062473
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180062465
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180062465
cmp byte [rcx], 0xd
jne 0x18006244b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18006245a
cmp byte [rcx + 1], 0xa
jne 0x18006245a
inc rcx
jmp 0x18006245a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2b5720]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18006242d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180062477
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800553d0
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 0x180071dbc
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, [0x1802bc360]
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 0x180071e13
cmp word [rdx], r13w
jne 0x180071e13
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180071e18
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180071f3d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180071f5e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180071e51
mov rdx, r9
mov word [rbx], cx
jmp 0x180071e78
cmp r9, r8
jae 0x180071e88
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 0x180071e32
jmp 0x180071f3d
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 0x180071f32
cmp dword [rsp + 0x80], esi
je 0x180071f32
lea r8, [0x1802bc360]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180071f0a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180071eda
mov word [rbx], r13w
jmp 0x180071f3a
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 0x180071ee7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180071f3a
cmp word [rsp + 0x70], r13w
jne 0x180071f17
cmp rbx, r14
je 0x180071ed4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180072b8c
cmp word [rsp + 0x70], r13w
je 0x180071f3d
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, [0x1802bc360]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180071f37
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180071f3d
Function at 0x180072d28
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180072d3e
mov al, 1
jmp 0x180072d9e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180072d4f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180072d9c
mov ecx, dword [rcx + 0x18]
nop
call fcn.180078770
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180072d9c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180072d9c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180072d9c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180072d9e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18007588c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800758bc
xor eax, eax
jmp 0x18007597f
mov rbp, rbx
cmp word [rax], si
je 0x1800758e1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800758c8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800758c4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800757ac
movsxd r14, eax
test eax, eax
jne 0x18007591f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800758b5
mov rcx, r14
call fcn.18006d618
mov rdi, rax
test rax, rax
jne 0x180075938
xor ecx, ecx
call fcn.18006d5dc
jmp 0x180075914
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800757ac
test eax, eax
jne 0x180075969
mov rcx, rdi
call fcn.18006d5dc
jmp 0x180075973
xor ecx, ecx
call fcn.18006d5dc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18007bb8c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180072b8c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180072b8c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18007bcdc
cmp rax, 0xffffffffffffffff
je 0x18007bcdc
xor edi, edi
test rbp, rbp
jle 0x18007bc87
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180070138
mov rbx, rax
test rax, rax
jne 0x18007bc14
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18007bc7d
mov edx, 0x8000
mov ecx, r14d
call fcn.18007ba10
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180071ab4
cmp eax, 0xffffffff
je 0x18007bc5d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18007bc24
mov edx, r15d
mov ecx, r14d
call fcn.18007ba10
jmp 0x18007bc7d
cmp byte [rsi + 0x38], dil
je 0x18007bc74
cmp dword [rsi + 0x34], 5
jne 0x18007bc74
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18007bc7d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18006d5dc
jmp 0x18007bcf0
jns 0x18007bcf0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180072b8c
cmp rax, 0xffffffffffffffff
jne 0x18007bca8
cmp byte [rsi + 0x30], dil
je 0x18007bcf0
mov edi, dword [rsi + 0x2c]
jmp 0x18007bcf0
mov ecx, r14d
call fcn.180078770
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18007bcf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18007bcf0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18007bce9
mov eax, dword [rsi + 0x2c]
jmp 0x18007bcee
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180072b8c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x18007c770
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18007c798
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18007c798
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret