joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800026b0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x180002714
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x180002702
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800026fb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x1800026cf
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x1803511a8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180002724
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x1803511d0]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x18000275a
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x40]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180002790
mov eax, 0xa
jmp 0x18000281f
test esi, esi
je 0x1800027b2
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800027d3
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800027d3
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800027cd
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800027d3
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, sil
shl sil, 2
add al, al
xor al, byte [rbx + 0x20]
and al, 2
xor al, byte [rbx + 0x20]
xor sil, al
and sil, 4
xor sil, al
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x180002d0c
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x180002d23
cmp r8b, 0x90
je 0x180002d23
cmp r8b, 0xcc
jne 0x180002d45
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x180002d41
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x180002d45
add edx, r10d
cmp edx, r9d
jb 0x180002d31
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x1800030ac
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x1800030f6
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x1803511c0]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
jmp 0x18000312f
cmp rbx, r14
jb 0x18000312c
cmp rbx, r12
jae 0x18000312c
cmp qword [rbx + 8], rsi
jne 0x180003291
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180003118
mov r15, rdi
cmp rdi, r14
jb 0x18000324b
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
jmp 0x18000317b
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800031b5
cmp dword [rbp - 0x10], 0x10000
je 0x180003185
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x1800031b5
sub r15, r13
cmp r15, r14
jae 0x180003151
jmp 0x1800031b5
test r15, r15
je 0x1800031b5
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180003256
cmp r15, r14
jae 0x180003140
test rbx, rbx
jmp 0x180003249
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x180003291
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180003291
cmp dword [rbp - 0x10], 0x10000
je 0x180003224
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jbe 0x1800031e1
jmp 0x180003291
test rdi, rdi
je 0x180003291
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180003256
cmp rdi, r12
jbe 0x1800031bd
jmp 0x180003291
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x180003262
mov rax, qword [0x1803511c0]
mov qword [rbx], rax
mov qword [0x1803511c0], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180027a00
Capabilities:
Hash data using fnv

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x1803651ca]
call fcn.180115994
movsx eax, byte [rbp + 0xe8]
mov ecx, dword [rbp + 0xe0]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x180029150
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x1802f9d40]
xor rax, rbp
mov qword [rbp + 0x188], rax
lea rcx, [0x18036519d]
call fcn.180115994
cmp qword [rbp + 0x1c0], 0
jg 0x1800291b4
xor eax, eax
jmp 0x180029390
mov rax, qword [rbp + 0x1b0]
cmp qword [rax + 0x68], 0
je 0x1800291e1
mov r8, qword [rbp + 0x1c0]
mov rdx, qword [rbp + 0x1b8]
mov rcx, qword [rbp + 0x1b0]
call fcn.1800293c0
jmp 0x180029390
mov rax, qword [rbp + 0x1c0]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x1c0]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x1b0]
call fcn.180017440
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jbe 0x18002927a
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 8]
call fcn.180008e30
mov rax, qword [rax]
mov qword [rbp + 0x68], rax
mov rcx, qword [rbp + 0x1b0]
call fcn.180020010
mov r8, qword [rbp + 0x68]
mov rdx, rax
mov rcx, qword [rbp + 0x1b8]
call fcn.18001be50
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x1b8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1b8], rax
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov edx, dword [rbp + 0x68]
mov rcx, qword [rbp + 0x1b0]
call fcn.18001fd30
mov rax, qword [rbp + 0x1b0]
cmp qword [rax + 0x80], 0
je 0x180029382
mov rcx, qword [rbp + 0x1b0]
call fcn.180019040
mov qword [rbp + 0x88], 0xfff
cmp qword [rbp + 8], 0xfff
jbe 0x18002932e
mov rax, qword [rbp + 0x1b0]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rbp + 0x1b8]
call fcn.18011e7f0
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x1b8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1b8], rax
mov rax, qword [rbp + 0xa8]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
cmp qword [rbp + 0xa8], 0xfff
je 0x180029329
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x28]
sub rcx, rax
mov rax, rcx
jmp 0x180029390
jmp 0x1800292a6
cmp qword [rbp + 8], 0
jbe 0x180029382
mov rax, qword [rbp + 0x1b0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 8]
mov edx, 1
mov rcx, qword [rbp + 0x1b8]
call fcn.18011e7f0
mov qword [rbp + 0x178], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x180], rax
mov rax, qword [rbp + 0x178]
mov rcx, qword [rbp + 0x180]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x28]
sub rcx, rax
mov rax, rcx
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x18018cc40]
call fcn.180115838
mov rax, rdi
mov rcx, qword [rbp + 0x188]
xor rcx, rbp
call fcn.180115a60
lea rsp, [rbp + 0x198]
pop rdi
pop rbp
ret
Function at 0x18003a8e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x180365285]
call fcn.180115994
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call fcn.18011e7f0
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x18003ad00
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x20]
lea rcx, [0x180365285]
call fcn.180115994
mov eax, dword [rbp + 0x160]
not eax
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x28], rax
lea rax, [0x18018e660]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x158]
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x158]
dec rax
mov qword [rbp + 0x158], rax
cmp qword [rbp + 0x118], 0
je 0x18003ad7f
mov dword [rbp + 0x120], 1
jmp 0x18003ad89
mov dword [rbp + 0x120], 0
cmp dword [rbp + 0x120], 0
je 0x18003add2
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
mov rdx, qword [rbp + 0x28]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 0x114], eax
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
mov eax, dword [rbp + 0x114]
mov dword [rbp + 4], eax
jmp 0x18003ad4a
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret
Function at 0x18003adf0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x20]
lea rcx, [0x180365285]
call fcn.180115994
mov eax, dword [rbp + 0x1a0]
not eax
mov dword [rbp + 0x1a0], eax
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x190]
mov qword [rbp + 0x28], rax
lea rax, [0x18018e660]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x198], 0
je 0x18003af35
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x198]
dec rax
mov qword [rbp + 0x198], rax
cmp qword [rbp + 0x158], 0
je 0x18003ae89
mov dword [rbp + 0x160], 1
jmp 0x18003ae93
mov dword [rbp + 0x160], 0
cmp dword [rbp + 0x160], 0
je 0x18003af30
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax]
mov byte [rbp + 0x154], al
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
movzx eax, byte [rbp + 0x154]
mov byte [rbp + 0x64], al
movzx eax, byte [rbp + 0x64]
cmp eax, 0x23
jne 0x18003af0a
cmp qword [rbp + 0x198], 2
jb 0x18003af0a
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x18003af0a
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x18003af0a
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
movzx edx, byte [rbp + 0x64]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
jmp 0x18003ae54
jmp 0x18003afcf
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax]
mov byte [rbp + 0x154], al
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
movzx eax, byte [rbp + 0x154]
mov byte [rbp + 0x84], al
movzx eax, byte [rbp + 0x84]
test eax, eax
je 0x18003afcf
movzx eax, byte [rbp + 0x84]
cmp eax, 0x23
jne 0x18003afa6
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x18003afa6
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x18003afa6
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
movzx edx, byte [rbp + 0x84]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
jmp 0x18003af35
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x18006edc0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1802f9d40]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x1803654a5]
call fcn.180115994
call fcn.1800393c0
mov qword [rbp + 8], rax
lea rdx, [rbp + 0x28]
mov rcx, qword [0x180301eb8]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp + 0x2c]
mov ecx, dword [rbp + 0x34]
sub ecx, eax
mov eax, ecx
cvtsi2ss xmm0, eax
mov eax, dword [rbp + 0x28]
mov ecx, dword [rbp + 0x30]
sub ecx, eax
mov eax, ecx
cvtsi2ss xmm1, eax
movaps xmm2, xmm0
lea rcx, [rbp + 0x154]
call fcn.18000b190
mov rax, qword [rax]
mov rcx, qword [rbp + 8]
mov qword [rcx + 8], rax
lea rcx, [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [0x180301ec0]
mov rcx, qword [rbp + 0x58]
sub rcx, rax
mov rax, rcx
cvtsi2ss xmm0, rax
cvtsi2ss xmm1, qword [0x180301ec8]
divss xmm0, xmm1
mov rax, qword [rbp + 8]
movss dword [rax + 0x10], xmm0
mov rax, qword [rbp + 0x58]
mov qword [0x180301ec0], rax
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x18006eeaf
mov dword [rbp + 0x164], 1
jmp 0x18006eeb9
mov dword [rbp + 0x164], 0
mov rax, qword [rbp + 8]
movzx ecx, byte [rbp + 0x164]
mov byte [rax + 0x140], cl
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x18006eeeb
mov dword [rbp + 0x164], 1
jmp 0x18006eef5
mov dword [rbp + 0x164], 0
mov rax, qword [rbp + 8]
movzx ecx, byte [rbp + 0x164]
mov byte [rax + 0x141], cl
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x18006ef27
mov dword [rbp + 0x164], 1
jmp 0x18006ef31
mov dword [rbp + 0x164], 0
mov rax, qword [rbp + 8]
movzx ecx, byte [rbp + 0x164]
mov byte [rax + 0x142], cl
mov rax, qword [rbp + 8]
mov byte [rax + 0x143], 0
call fcn.18006f110
mov rax, qword [rbp + 8]
movzx eax, byte [rax + 0xc0]
test eax, eax
je 0x18006ef6d
mov dword [rbp + 0x164], 0xffffffff
jmp 0x18006ef78
call fcn.180039480
mov dword [rbp + 0x164], eax
mov eax, dword [rbp + 0x164]
mov dword [rbp + 0x74], eax
mov eax, dword [rbp + 0x74]
cmp dword [0x1802f5ab0], eax
je 0x18006ef9a
mov eax, dword [rbp + 0x74]
mov dword [0x1802f5ab0], eax
call fcn.18006efd0
lea rcx, [rbp - 0x20]
lea rdx, [0x18019b700]
call fcn.180115838
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.180115a60
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret

Function at 0x18010f9d0
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x180365af3]
call fcn.180115994
cmp qword [0x18034f530], 0
je 0x18010f9fe
mov rax, qword [0x18034f530]
jmp 0x18010fa1c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
mov edx, eax
lea rcx, [0x180108090]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [0x18034f530]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x1801129f0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
mov rax, qword [0x1802f9d40]
xor rax, rbp
mov qword [rbp + 0x418], rax
lea rcx, [0x180365da1]
call fcn.180115994
mov dword [rbp + 4], 0
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
je 0x180112a9c
mov dword [rbp + 0x50], 0x238
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x180112a9c
mov rdx, qword [rbp + 0x440]
lea rcx, [rbp + 0x7c]
call fcn.18012da30
test eax, eax
jne 0x180112a8b
mov eax, dword [rbp + 0x58]
mov dword [rbp + 4], eax
jmp 0x180112a9c
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x180112a6f
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x1801b33d0]
call fcn.180115838
mov eax, edi
mov rcx, qword [rbp + 0x418]
xor rcx, rbp
call fcn.180115a60
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret

Function at 0x1801223d4
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.180116000
sub rsp, rax
mov rax, qword [0x1802f9d40]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1801332b0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180122423
mov rax, rbp
jmp 0x18012252b
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 + 0x350c00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1801354cc
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x350c00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180122527
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 0x180122527
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1801354cc
test rax, rax
js 0x180122527
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180122527
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180122519
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180122519
cmp byte [rcx], 0xd
jne 0x1801224ff
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18012250e
cmp byte [rcx + 1], 0xa
jne 0x18012250e
inc rcx
jmp 0x18012250e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2fa190]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1801224e1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18012252b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180115a60
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 0x180134724
Capabilities:
Get file size

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

Function at 0x18013486c
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, [0x180350c00]
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 0x1801348c3
cmp word [rdx], r13w
jne 0x1801348c3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1801348c8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1801349ed
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180134a0e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180134901
mov rdx, r9
mov word [rbx], cx
jmp 0x180134928
cmp r9, r8
jae 0x180134938
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 0x1801348e2
jmp 0x1801349ed
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 0x1801349e2
cmp dword [rsp + 0x80], esi
je 0x1801349e2
lea r8, [0x180350c00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1801349ba
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18013498a
mov word [rbx], r13w
jmp 0x1801349ea
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 0x180134997
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1801349ea
cmp word [rsp + 0x70], r13w
jne 0x1801349c7
cmp rbx, r14
je 0x180134984
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1801354d4
cmp word [rsp + 0x70], r13w
je 0x1801349ed
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, [0x180350c00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1801349e7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1801349ed