joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010330
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
sub rsp, 0x58
mov qword [r11 - 0x20], 0xfffffffffffffffe
lea rax, [r11 + 0x18]
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x38], rax
mov r9, rdx
mov r8, rcx
mov edx, 3
lea rcx, [r11 - 0x28]
call fcn.140011bf0
nop
lea rcx, [0x1401e6610]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x140010397
cmp eax, 0xffffffff
je 0x1400103a6
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400103a6
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
nop
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
nop
test eax, eax
je 0x1400103bd
mov ecx, 7
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
mov rcx, rax
mov edx, 0x40000015
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
int3
Function at 0x140010d50
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0xa8
mov qword [rbp + 0x2f], 0xfffffffffffffffe
mov ebx, ecx
lea r8, [rbp + 0x77]
mov qword [rbp + 0x37], r8
lea rcx, [rbp - 0x31]
call fcn.1400221b0
nop
mov edx, ebx
lea rcx, [rbp - 0x29]
call fcn.140043190
nop
mov byte [rbp - 0x39], 0x29
mov dword [rbp - 0x21], 2
lea rcx, [0x1401af32c]
mov qword [rbp - 0x19], rcx
lea rcx, [rbp - 0x21]
mov qword [rbp - 0x11], rcx
mov qword [rbp - 9], rax
lea rax, [rbp - 0x11]
mov qword [rbp - 1], rax
lea rax, [rbp - 0x39]
mov qword [rbp + 7], rax
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x31]
call fcn.14000f9c0
nop
mov rcx, qword [rbp - 0x29]
mov eax, dword [rcx]
or ebx, 0xffffffff
test eax, eax
je 0x140010df5
cmp eax, ebx
je 0x140010e03
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140010e03
mov rcx, qword [rbp - 0x29]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
mov qword [rbp + 0xf], 2
xor eax, eax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rax
lea r8, [rbp - 0x31]
lea rdx, [rbp + 0xf]
lea ecx, [rax + 2]
call fcn.140011ce0
mov ecx, dword [0x1410d4fc4]
mov rax, qword gs:[0x58]
mov edx, 8
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x1410d02ec], eax
jle 0x140010e7f
lea rcx, [0x1410d02ec]
call fcn.14015c350
cmp dword [0x1410d02ec], 0xffffffff
jne 0x140010e7f
lea rcx, [0x1401aefd8]
call fcn.1400100b0
mov dword [0x1410d02e8], eax
lea rcx, [0x1410d02ec]
call fcn.14015c2f0
cmp dword [0x1410d02e8], 0
je 0x140010ec0
mov eax, ebx
lock xadd dword [0x1410d02e8], eax
cmp eax, 1
jne 0x140010ec0
lea ecx, [rax + 0x16]
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140010eab
mov ecx, 7
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x40000015
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
mov rcx, qword [rbp - 0x31]
mov eax, dword [rcx]
test eax, eax
je 0x140010edc
cmp eax, 0xffffffff
je 0x140010eea
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x140010eea
mov rcx, qword [rbp - 0x31]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
add rsp, 0xa8
pop rbx
pop rbp
ret
Function at 0x140010f00
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0xa8
mov qword [rbp + 0x2f], 0xfffffffffffffffe
or ebx, 0xffffffff
mov edx, ebx
lea rcx, [rbp - 0x29]
call fcn.140043190
nop
lea r8, [rbp + 0x6f]
mov qword [rbp + 0x37], r8
mov rdx, qword [rbp + 0x67]
lea rcx, [rbp - 0x31]
call fcn.1400221b0
nop
mov byte [rbp - 0x39], 0x29
mov dword [rbp - 0x21], 2
lea rax, [0x1401af32c]
mov qword [rbp - 0x19], rax
lea rax, [rbp - 0x21]
mov qword [rbp - 0x11], rax
lea rax, [rbp - 0x29]
mov qword [rbp - 9], rax
lea rax, [rbp - 0x11]
mov qword [rbp - 1], rax
lea rax, [rbp - 0x39]
mov qword [rbp + 7], rax
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x31]
call fcn.14000f9c0
mov qword [rbp + 0xf], 2
xor eax, eax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rax
lea r8, [rbp - 0x31]
lea rdx, [rbp + 0xf]
lea ecx, [rbx + 3]
call fcn.140011ce0
mov ecx, dword [0x1410d4fc4]
mov rax, qword gs:[0x58]
mov edx, 8
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x1410d02ec], eax
jle 0x14001100d
lea rcx, [0x1410d02ec]
call fcn.14015c350
cmp dword [0x1410d02ec], ebx
jne 0x14001100d
lea rcx, [0x1401aefd8]
call fcn.1400100b0
mov dword [0x1410d02e8], eax
lea rcx, [0x1410d02ec]
call fcn.14015c2f0
cmp dword [0x1410d02e8], 0
je 0x14001104e
mov eax, ebx
lock xadd dword [0x1410d02e8], eax
cmp eax, 1
jne 0x14001104e
lea ecx, [rax + 0x16]
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140011039
mov ecx, 7
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x40000015
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
mov rcx, qword [rbp - 0x31]
mov eax, dword [rcx]
test eax, eax
je 0x14001106c
cmp eax, 0xffffffff
je 0x14001107b
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14001107b
mov rcx, qword [rbp - 0x31]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
nop
mov rcx, qword [rbp - 0x29]
mov eax, dword [rcx]
test eax, eax
je 0x140011097
cmp eax, 0xffffffff
je 0x1400110a5
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1400110a5
mov rcx, qword [rbp - 0x29]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
add rsp, 0xa8
pop rbx
pop rbp
ret
Function at 0x140013380
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
sub rsp, 0x58
mov qword [r11 - 0x20], 0xfffffffffffffffe
lea rax, [r11 + 0x18]
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x38], rax
mov r9, rdx
mov r8, rcx
mov edx, 1
lea rcx, [r11 - 0x28]
call fcn.140011bf0
nop
mov ecx, dword [0x1410d4fc4]
mov rax, qword gs:[0x58]
mov edx, 8
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x1410d02f4], eax
jle 0x140013412
lea rcx, [0x1410d02f4]
call fcn.14015c350
cmp dword [0x1410d02f4], 0xffffffff
jne 0x140013412
lea rcx, [0x1401aeff0]
call fcn.1400100b0
mov dword [0x1410d02f0], eax
lea rcx, [0x1410d02f4]
call fcn.14015c2f0
or edx, 0xffffffff
cmp dword [0x1410d02f0], 0
je 0x140013456
mov eax, edx
lock xadd dword [0x1410d02f0], eax
cmp eax, 1
jne 0x140013456
lea ecx, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140013441
mov ecx, 7
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x40000015
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x140013474
cmp eax, 0xffffffff
je 0x140013482
lock xadd dword [rcx], edx
cmp edx, 1
jne 0x140013482
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
add rsp, 0x58
ret

Function at 0x1400135c0
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov rsi, rcx
mov dword [rsp + 0x60], 0x7ffe
lea rdx, [0x1410d0340]
lea rcx, [rsp + 0x28]
call fcn.14003a000
nop
xor ebp, ebp
cmp dword [rsi], 0x7ffe
jg 0x14001360f
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14001368d
mov ecx, 0xfffe
call fcn.14015cb34
mov rdi, rax
mov ebx, ebp
mov rcx, qword [rsi]
test ecx, ecx
jle 0x140013684
nop word [rax + rax]
sub ecx, ebx
mov dword [rsp + 0x68], ecx
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x68]
cmp ecx, 0x7ffe
cmovle r8, rax
movsxd rcx, ebx
mov rax, qword [rsi + 8]
lea rdx, [rax + rcx*2]
movsxd r14, dword [r8]
test rdx, rdx
je 0x140013669
lea r8, [r14 + r14]
mov rcx, rdi
call fcn.14017c7d0
mov word [rdi + r14*2], bp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add ebx, 0x7ffe
mov rcx, qword [rsi]
cmp ebx, ecx
jl 0x140013630
mov rcx, rdi
call fcn.14015c170
nop
cmp byte [rsp + 0x30], 0
je 0x1400136af
mov rcx, qword [rsp + 0x28]
mov eax, 1
lock cmpxchg qword [rcx], rbp
je 0x1400136af
mov rcx, qword [rsp + 0x28]
call fcn.140043fd0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140031200
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0xc0
mov rax, qword [0x1410cc870]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor eax, eax
lea rdx, [0x1401e6f60]
mov dword [rsp + 0x40], eax
mov rdi, rcx
mov qword [rsp + 0x38], rax
mov r9d, 0x20119
lea rax, [rsp + 0x38]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400312d3
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1401e6fa0]
lea rax, [rsp + 0x60]
mov qword [rsp + 0xd8], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x4a
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
sete bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
mov rbx, qword [rsp + 0xd8]
je 0x1400312d3
mov edx, dword [rsp + 0x30]
lea rax, [rsp + 0x60]
dec edx
mov qword [rsp + 0x50], rax
shr rdx, 1
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rdx
mov rdx, rdi
call fcn.140031ba0
jmp 0x1400312dd
lea rax, [0x1401e6610]
mov qword [rdi], rax
mov rax, rdi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14015c110
add rsp, 0xc0
pop rdi
ret
Function at 0x14004d630
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
movzx edi, cl
cmp dword [0x1410ca140], 0xffffffff
jne 0x14004d686
lea rbx, [0x1410d04e8]
mov rcx, rbx
call fcn.140043ad0
or rbx, 1
cmp dword [0x1410ca140], 0xffffffff
jne 0x14004d675
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1410ca140], eax
test bl, 1
je 0x14004d686
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.140043f80
mov ecx, dword [0x1410ca140]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x14004d78f
test dil, dil
je 0x14004d78f
lea ecx, [rax + 0x78]
call fcn.14015c134
mov qword [rsp + 0x78], rax
lea edx, [rsi + 1]
mov rcx, rax
call fcn.14004e990
mov rsi, rax
mov qword [rsp + 0x88], rax
mov rdx, rax
mov ecx, dword [0x1410ca140]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov ecx, 0x10
call fcn.14015c134
mov qword [rsp + 0x78], rax
mov rdx, rsi
mov rcx, rax
call fcn.14004e870
nop
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsi + 0x38], rax
mov rcx, rsi
call fcn.14004eee0
mov byte [rsi + 0x72], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rsi + 0x40], rax
mov rax, qword [0x1410d0378]
test rax, rax
jne 0x14004d73a
mov rax, qword [rsi + 0x38]
mov qword [0x1410d0378], rax
jmp 0x14004d78f
mov qword [rsp + 0x78], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
xor eax, eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x78]
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rsi + 0x38]
mov rcx, qword [rsp + 0x78]
call fcn.14004df80
mov rax, rsi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x14004df80
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, rdx
mov rdi, rcx
lea rbx, [0x1410d04e0]
mov rcx, rbx
call fcn.140043ad0
or rbx, 1
mov qword [rsp + 0x60], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x1410d04c8]
jne 0x14004dfd3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14004e119
mov rax, qword [0x1410ca148]
mov edx, dword [rax + 8]
btr edx, 0x1f
movsxd r8, dword [rax + 4]
lea ecx, [r8 + 1]
cmp dword [rax], 1
ja 0x14004dffc
cmp edx, ecx
jb 0x14004dffe
mov rcx, qword [rax + 0x10]
lea rdx, [rcx + r8*8]
jmp 0x14004e029
cmp edx, ecx
sbb r8d, r8d
and r8d, 8
cmp ecx, edx
cmova edx, ecx
lea rcx, [0x1410ca148]
call fcn.14004e210
mov rax, qword [0x1410ca148]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea rdx, [rcx + rdx*8]
mov qword [rdx + rax], rdi
mov rax, qword [0x1410ca148]
inc dword [rax + 4]
mov rax, qword [0x1410ca150]
mov edx, dword [rax + 8]
btr edx, 0x1f
movsxd r8, dword [rax + 4]
lea ecx, [r8 + 1]
cmp dword [rax], 1
ja 0x14004e060
cmp edx, ecx
jb 0x14004e062
mov rcx, qword [rax + 0x10]
lea rdx, [rcx + r8*8]
jmp 0x14004e08d
cmp edx, ecx
sbb r8d, r8d
and r8d, 8
cmp ecx, edx
cmova edx, ecx
lea rcx, [0x1410ca150]
call fcn.14004e140
mov rax, qword [0x1410ca150]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea rdx, [rcx + rdx*8]
mov qword [rdx + rax], rsi
mov rax, qword [0x1410ca150]
inc dword [rax + 4]
cmp dword [0x1410d04c8], 0
jne 0x14004e10b
cmp qword [0x1410d04d0], 0
jne 0x14004e0d8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1410d04d0], rax
lea rdx, [0x1410d04d0]
lea rcx, [0x1410ca148]
call fcn.14004d9a0
lea rax, [0x1410d04c8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14004da90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14004e119
mov rcx, qword [0x1410d04d0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
test bl, 1
je 0x14004e12a
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.140043f80
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14004f280
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 8]
mov rsi, rcx
lea rbx, [rdi + 0x58]
test rbx, rbx
je 0x14004e6bb
mov rcx, rbx
call fcn.140043ad0
or rbx, 1
cmp byte [rdi + 0x64], 0
je 0x14004e6e9
cmp byte [rdi + 0x88], 0
jne 0x14004e6d3
mov byte [rdi + 0x89], 1
jmp 0x14004e6e9
mov rcx, qword [rdi + 0x78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor edx, edx
mov rcx, rsi
call fcn.14004d7c0
test bl, 1
je 0x14004e6fa
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.140043f80
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test edx, edx
jne 0x14004f2da
cmp r8d, 5
ja case.default.0x14004f2a3
movsxd rax, r8d
lea r8, [0x140000000]
mov edx, dword [r8 + rax*4 + 0x4f310]
add rdx, r8
jmp rdx
movzx edx, byte [rsp + 0x10]
jmp fcn.14004f3e0
movzx edx, byte [rsp + 0x10]
jmp fcn.14004f100
mov rax, qword [r9 + 8]
mov edx, dword [rax]
jmp fcn.14004e2e0
mov edx, 7
jmp fcn.14004e2e0
jmp 0x14004e690
xor edx, edx
jmp fcn.14004f030
cmp edx, 0xa
jne case.default.0x14004f2a3
mov rax, qword [r9 + 8]
mov rcx, qword [r9]
mov rdx, qword [rax]
lea rax, [fcn.14004f3e0]
cmp rdx, rax
jne 0x14004f2fc
mov dword [rcx], 0
ret
lea rax, [fcn.14004f100]
cmp rdx, rax
jne case.default.0x14004f2a3
mov dword [rcx], 1
ret
Function at 0x14005d6e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
cmp dword [rbx + 0xa4], 1
je 0x14005d712
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0xa4], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400830d0
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x18]
mov rax, qword [rcx + 0x78]
test rax, rax
jne 0x140083204
cmp dword [rcx + 0xa0], 0xffffffff
jne 0x1400831ff
cmp qword [rcx + 0x80], 0xffffffffffffffff
je 0x140083268
mov rdi, r8
mov qword [r11 + 0x20], r8
xor r12d, r12d
mov ebx, r12d
lea r13, [0x140239ec8]
nop word [rax + rax]
lea rax, [rsp + 0xa8]
cmp rdi, 0x2000000
cmovge rax, r13
lea rdx, [rbx + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x90]
mov r8d, dword [rax]
mov rcx, qword [rsi + 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140083198
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x1400831fa
add rbx, rax
sub rdi, rax
mov qword [rsp + 0xa8], rdi
cmp rbx, rbp
jge 0x1400831fa
jmp 0x140083140
test rbx, rbx
jne 0x1400831fa
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140043190
nop
mov r8, rax
lea edx, [rbx + 1]
mov rcx, r15
call fcn.14005b880
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x1400831e3
cmp eax, 0xffffffff
je 0x140083268
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140083268
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
or rax, 0xffffffffffffffff
jmp 0x14008327c
mov rax, rbx
jmp 0x14008327c
test rax, rax
je 0x14008326e
call fcn.140082e20
test al, al
je 0x14008326e
mov rcx, qword [rsi + 0x78]
call fcn.140187e18
test eax, eax
je 0x14008326e
or edx, 0xffffffff
lea rcx, [rsp + 0x38]
call fcn.140043330
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.14005b880
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x14008325a
cmp eax, 0xffffffff
je 0x140083268
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140083268
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
or rax, 0xffffffffffffffff
jmp 0x14008327c
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.14005d730
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005d730
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rbp, r8
mov r12, rdx
mov rsi, rcx
mov r13, qword [rcx + 0x18]
test r8, r8
js 0x14005d89a
xor ebx, ebx
cmp qword [rcx + 0x78], rbx
je 0x14005d808
mov r15b, 1
nop dword [rax]
nop word [rax + rax]
mov r8, rbp
sub r8, rbx
lea rcx, [rbx + r12]
mov r9, qword [rsi + 0x78]
mov edx, 1
call fcn.1401881a8
mov rdi, rax
mov rcx, qword [rsi + 0x78]
call fcn.140187e18
test eax, eax
setne r14b
test r15b, r15b
je 0x14005d7d6
test r14b, r14b
je 0x14005d7d6
test rdi, rdi
jne 0x14005d7d6
mov rcx, qword [rsi + 0x78]
call fcn.140184330
mov rdx, rax
xor r8d, r8d
mov rcx, qword [rsi + 0x78]
call fcn.14017fdf8
xor r15b, r15b
jmp 0x14005d7d9
add rbx, rdi
test r14b, r14b
jne 0x14005d8f6
test rdi, rdi
jne 0x14005d7f6
call fcn.14017f798
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x14005d7fe
xor ecx, ecx
cmp rbx, rbp
setl cl
test ecx, ecx
jne 0x14005d780
jmp 0x14005d850
cmp dword [rcx + 0xa0], 0xffffffff
je 0x14005d859
mov rax, rbp
sub rax, rbx
mov r8d, 0x7fffffff
cmp rax, r8
cmovb r8d, eax
lea rdx, [rbx + r12]
mov ecx, dword [rsi + 0xa0]
call fcn.140188974
movsxd rcx, eax
test eax, eax
jle 0x14005d842
add rbx, rcx
cmp rbx, rbp
jl 0x14005d811
cmp ecx, 0xffffffff
setne al
test al, al
jne 0x14005d8f6
test rbx, rbx
jne 0x14005d8f6
or rbx, 0xffffffffffffffff
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.140043330
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r13
call fcn.14005b880
nop
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x14005d8e7
cmp eax, ebx
je 0x14005d8f6
mov edx, ebx
lock xadd dword [rcx], edx
cmp edx, 1
jne 0x14005d8f6
mov rcx, qword [rsp + 0x70]
jmp 0x14005d8e7
mov edx, 0x16
lea rcx, [rsp + 0x80]
call fcn.140043330
nop
mov r8, rax
mov edx, 1
mov rcx, r13
call fcn.14005b880
nop
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx]
or rbx, 0xffffffffffffffff
test eax, eax
je 0x14005d8e7
cmp eax, ebx
je 0x14005d8f6
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14005d8f6
mov rcx, qword [rsp + 0x80]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.14002cfa0
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005e1d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
and dword [rbx + 0x40], 0xfdffffff
cmp dword [rbx + 0xa4], 2
je 0x14005e209
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0xa4], 2
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140083490
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x18]
cmp qword [rcx + 0x78], 0
jne 0x1400835b9
cmp dword [rcx + 0xa0], 0xffffffff
jne 0x1400835b9
cmp qword [rcx + 0x80], 0xffffffffffffffff
je 0x1400835ae
mov rdi, r8
mov qword [rax + 0x20], r8
xor r12d, r12d
mov ebx, r12d
mov qword [rax - 0x40], 0x2000000
nop word [rax + rax]
lea rax, [rsp + 0x98]
lea rcx, [rsp + 0x38]
cmp rdi, 0x2000000
cmovge rax, rcx
lea rdx, [rbx + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x80]
mov r8d, dword [rax]
mov rcx, qword [rsi + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14008355d
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x1400835b4
add rbx, rax
sub rdi, rax
mov qword [rsp + 0x98], rdi
cmp rbx, rbp
jge 0x1400835b4
jmp 0x140083500
test rbx, rbx
jne 0x1400835b4
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140043190
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r15
call fcn.14005b880
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x1400835a0
cmp eax, 0xffffffff
je 0x1400835ae
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400835ae
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
or rax, 0xffffffffffffffff
jmp 0x1400835be
mov rax, rbx
jmp 0x1400835be
call fcn.14005e230
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14005e230
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbp
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
mov r14, qword [rcx + 0x18]
test r8, r8
js 0x14005e363
xor ebx, ebx
test r8, r8
je 0x14005e35a
cmp qword [rcx + 0x78], rbx
je 0x14005e2bd
nop dword [rax]
nop word [rax + rax]
mov r8, rdi
sub r8, rbx
lea rcx, [rbx + rbp]
mov r9, qword [rsi + 0x78]
mov edx, 1
call fcn.14017f65c
add rbx, rax
test rax, rax
jne 0x14005e2af
call fcn.14017f798
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x14005e2b7
xor ecx, ecx
cmp rbx, rdi
setl cl
test ecx, ecx
jne 0x14005e280
jmp 0x14005e300
cmp dword [rcx + 0xa0], 0xffffffff
je 0x14005e305
nop word [rax + rax]
mov rax, rdi
sub rax, rbx
mov r8d, 0x7fffffff
cmp rax, r8
cmovb r8d, eax
lea rdx, [rbx + rbp]
mov ecx, dword [rsi + 0xa0]
call fcn.140189494
test eax, eax
jle 0x14005e300
cdqe
add rbx, rax
cmp rbx, rdi
jl 0x14005e2d0
test rbx, rbx
jne 0x14005e35a
or rbx, 0xffffffffffffffff
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140043330
mov rdi, rax
call fcn.14017f798
mov edx, 2
mov ecx, 4
cmp dword [rax], 0x1c
cmove edx, ecx
mov r8, rdi
mov rcx, r14
call fcn.14005b880
nop
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x14005e3a7
cmp eax, ebx
je 0x14005e3b6
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14005e3b6
mov rcx, qword [rsp + 0x50]
jmp 0x14005e3a7
and dword [rsi + 0x40], 0xffdfffff
jmp 0x14005e3b6
mov edx, 0x16
lea rcx, [rsp + 0x60]
call fcn.140043330
nop
mov r8, rax
mov edx, 2
mov rcx, r14
call fcn.14005b880
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
or rbx, 0xffffffffffffffff
test eax, eax
je 0x14005e3a7
cmp eax, ebx
je 0x14005e3b6
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14005e3b6
mov rcx, qword [rsp + 0x60]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.14002cfa0
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret