joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001b10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140008104]
mov rbx, rcx
test esi, esi
jle 0x140001c40
mov rax, qword [0x140008108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001b5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001be5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001b40
mov rcx, rbx
call fcn.140002560
mov rdi, rax
test rax, rax
je 0x140001c62
mov rax, qword [0x140008108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400026a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140008108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001bde
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001bf0
add dword [0x140008104], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140008108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001bde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001aa0
nop dword [rax]
xor esi, esi
jmp 0x140001b68
mov rax, qword [0x140008108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001aa0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001aa0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400021d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140008140]
test rbx, rbx
je 0x14000222c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002223
test rsi, rsi
je 0x140002223
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002208
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002560
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002580
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002588
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002580
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400025dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400025d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002580
add rax, 0x28
cmp rax, r9
jne 0x1400025c0
xor eax, eax
ret

Function at 0x1400025e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400025ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002608
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400025ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400026a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400026bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400026c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14001121c
Capabilities:
Terminate process

Disassembly:
jmp 0x140013730
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400112ad
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014a70
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014a90
xor al, al
jmp 0x140014b11
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014aa3
xor al, al
jmp 0x140014b11
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014acd
xor al, al
jmp 0x140014b11
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014ae1
xor al, al
jmp 0x140014b11
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014af3
xor al, al
jmp 0x140014b11
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014b0f
xor al, al
jmp 0x140014b11
mov al, 1
add rsp, 0x38
ret
Function at 0x180009b00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x1802bb7b8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x68], 0
je 0x180009b3d
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180009b44
mov al, 1
jmp 0x180009cb8
mov dword [rsp + 0x40], 0xffffffff
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xc0]
call qword [rax + 0x18]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], 0xffffffff
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jne 0x180009b86
mov dword [rsp + 0x38], 1
jmp 0x180009b8e
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x180009ba7
xor al, al
jmp 0x180009cb8
mov qword [rsp + 0x68], 0x20
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x98]
mov rcx, qword [rsp + 0xc0]
add rcx, 0x74
mov rdx, qword [rsp + 0x58]
mov rdx, qword [rdx]
mov qword [rsp + 0x60], rdx
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], r8
mov r9, rax
lea r8, [rsp + 0x78]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
call qword [rax + 0x40]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x180009c26
cmp dword [rsp + 0x34], 1
je 0x180009c32
cmp dword [rsp + 0x34], 3
je 0x180009ca6
jmp 0x180009cb6
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jbe 0x180009c7d
mov rax, qword [rsp + 0xc0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
lea rcx, [rsp + 0x78]
call fcn.180054bfc
cmp qword [rsp + 0x50], rax
je 0x180009c7d
xor al, al
jmp 0x180009cb8
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180009c97
mov dword [rsp + 0x3c], 1
jmp 0x180009c9f
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
jmp 0x180009cb8
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x180009cb8
xor al, al
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.18004e560
add rsp, 0xb8
ret
Function at 0x18000d4e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x18000d51a
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.18000d670
jmp 0x18000d663
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x40]
cmp qword [rax], 0
je 0x18000d544
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
jmp 0x18000d54c
mov dword [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x70], 0
jle 0x18000d60c
cmp qword [rsp + 0x28], 0
jle 0x18000d60c
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x70], rax
jge 0x18000d584
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
rep movsb byte [rdi], byte [rsi]
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 + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x58]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x40]
movsxd rcx, dword [rsp + 0x28]
add rcx, qword [rax]
mov rax, rcx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
cmp qword [rsp + 0x70], 0
jle 0x18000d653
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x18000d653
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x70]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.180054bfc
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x18000ddc0
Capabilities:
Print debug messages

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x168
mov rax, qword [0x1802bb7b8]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov dword [rsp + 0x48], 0xc0000001
cmp qword [0x1800dd010], 0xffffffffffffffff
je 0x18000df2c
mov dword [rsp + 0x150], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x150]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x198]
mov r8, qword [rsp + 0x190]
mov edx, dword [rsp + 0x188]
mov rcx, qword [0x1800dd010]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x18000de6c
mov dword [rsp + 0x48], 0
jmp 0x18000df27
lea rax, [rsp + 0x4c]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x60]
lea rcx, [0x180070480]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x66
rep movsb byte [rdi], byte [rsi]
mov eax, 2
imul rax, rax, 0x32
movzx eax, word [rsp + rax + 0x60]
test eax, eax
je 0x18000deb2
mov dword [rsp + 0x50], 1
jmp 0x18000deba
mov dword [rsp + 0x50], 0
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x18000df11
mov dword [rsp + 0x40], 0
jmp 0x18000ded7
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x33
jge 0x18000df11
movsxd rax, dword [rsp + 0x40]
movzx eax, word [rsp + rax*2 + 0x60]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x40]
cdq
mov ecx, 0x35
idiv ecx
mov eax, edx
add eax, 0x31
mov ecx, dword [rsp + 0x58]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x40]
mov word [rsp + rcx*2 + 0x60], ax
jmp 0x18000decd
lea rax, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [rsp + 0x48], 0xc0000001
jmp 0x18000dff6
lea rax, [rsp + 0x4d]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0xd0]
lea rcx, [0x1800704f0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x74
rep movsb byte [rdi], byte [rsi]
mov eax, 2
imul rax, rax, 0x39
movzx eax, word [rsp + rax + 0xd0]
test eax, eax
je 0x18000df78
mov dword [rsp + 0x54], 1
jmp 0x18000df80
mov dword [rsp + 0x54], 0
movzx eax, byte [rsp + 0x54]
test eax, eax
je 0x18000dfdd
mov dword [rsp + 0x44], 0
jmp 0x18000df9d
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x3a
jge 0x18000dfdd
movsxd rax, dword [rsp + 0x44]
movzx eax, word [rsp + rax*2 + 0xd0]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x44]
cdq
mov ecx, 0x35
idiv ecx
mov eax, edx
add eax, 0x31
mov ecx, dword [rsp + 0x5c]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x44]
mov word [rsp + rcx*2 + 0xd0], ax
jmp 0x18000df93
lea rax, [rsp + 0xd0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [rsp + 0x48], 0xc00000c0
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.18004e560
add rsp, 0x168
pop rdi
pop rsi
ret
Function at 0x18002eee0
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0xd98
mov rax, qword [0x1802bb7b8]
xor rax, rsp
mov qword [rsp + 0xd80], rax
mov dword [rsp + 0x270], 0
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0xdb8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x18002f022
lea rax, [rsp + 0x131]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0xa20]
lea rcx, [0x1800c42a0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x82
rep movsb byte [rdi], byte [rsi]
mov eax, 2
imul rax, rax, 0x40
movzx eax, word [rsp + rax + 0xa20]
test eax, eax
je 0x18002ef81
mov dword [rsp + 0x19c], 1
jmp 0x18002ef8c
mov dword [rsp + 0x19c], 0
movzx eax, byte [rsp + 0x19c]
test eax, eax
je 0x18002f007
mov dword [rsp + 0xe0], 0
jmp 0x18002efb5
mov eax, dword [rsp + 0xe0]
inc eax
mov dword [rsp + 0xe0], eax
cmp dword [rsp + 0xe0], 0x41
jge 0x18002f007
movsxd rax, dword [rsp + 0xe0]
movzx eax, word [rsp + rax*2 + 0xa20]
mov dword [rsp + 0x250], eax
mov eax, dword [rsp + 0xe0]
cdq
mov ecx, 0x3a
idiv ecx
mov eax, edx
add eax, 0x31
mov ecx, dword [rsp + 0x250]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0xe0]
mov word [rsp + rcx*2 + 0xa20], ax
jmp 0x18002efa5
lea rax, [rsp + 0xa20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 1
jmp 0x180031a6c
jmp 0x18095bdcf
mov rcx, qword [rsp + 0xd80]
xor rcx, rsp
call fcn.18004e560
add rsp, 0xd98
pop rdi
pop rsi
ret
Function at 0x180047040
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov qword [rsp], rax
jmp 0x180047082
mov rax, qword [rsp]
add rax, 0x28
mov qword [rsp], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
cmp qword [rsp], rax
jae 0x1800470f0
mov rax, qword [rsp]
mov eax, dword [rax + 0xc]
cmp qword [rsp + 0x20], rax
jb 0x1800470ee
mov rax, qword [rsp]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp]
add eax, dword [rcx + 8]
mov eax, eax
cmp qword [rsp + 0x20], rax
jae 0x1800470ee
mov rax, qword [rsp]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x20]
sub rdx, rcx
mov rcx, rdx
add rax, rcx
jmp 0x1800470f2
jmp 0x180047076
xor eax, eax
add rsp, 0x18
ret
Function at 0x180061018
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x180060eb8
call fcn.180057920
mov dword [rax], 0x16
call fcn.1800531e4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180060ea0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x180060ea0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x180060eea
lock or dword [rax + 0x14], 0x10
jmp 0x180060ea0
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x180060f07
mov rcx, qword [rbp + 0x10]
call fcn.180061fc4
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800603b8
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.18006173c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x180060f5e
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x180060ea0
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x180060fca
mov rcx, qword [rbp + 0x10]
call fcn.1800603b8
cmp eax, 0xffffffff
je 0x180060fb1
mov rcx, qword [rbp + 0x10]
call fcn.1800603b8
cmp eax, 0xfffffffe
je 0x180060fb1
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800603b8
movsxd rdi, eax
lea rsi, [0x1802c10a0]
mov rcx, rbx
sar rdi, 6
call fcn.1800603b8
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x180060fb8
lea rax, [0x1802bbb60]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180060fca
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x180061000
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x180060ffc
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x180060ffc
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x180060ea3
jmp 0x180060e70
Function at 0x140009260
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 0x140009282
xor eax, eax
jmp 0x140009425
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x1400092a7
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140009430
jmp 0x140009425
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.140005940
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x14000933d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140002a10
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x60]
call fcn.140007630
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.140006dc0
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.140007540
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x140009415
mov rcx, qword [rsp + 0x60]
call fcn.1400062d0
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x1400093dd
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.14001292c
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 0x1400093db
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x140009425
jmp 0x140009363
cmp qword [rsp + 0x20], 0
jbe 0x140009415
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.14001292c
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 0x14000b7e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b82a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b82a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b82a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b82a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b82a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000b82c
xor al, al
add rsp, 0x28
ret

Function at 0x1400157f4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400155f0
Function at 0x14001ada4
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.14000b330
sub rsp, rax
mov rax, qword [0x140038080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140019710
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001adf3
mov rax, rbp
jmp 0x14001aefb
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3a500]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001bec4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3a500]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001aef7
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 0x14001aef7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001bec4
test rax, rax
js 0x14001aef7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001aef7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001aee9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001aee9
cmp byte [rcx], 0xd
jne 0x14001aecf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001aede
cmp byte [rcx + 1], 0xa
jne 0x14001aede
inc rcx
jmp 0x14001aede
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x384b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001aeb1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001aefb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000b300
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 0x14001b11c
Capabilities:
Get file size

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