joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028dd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x78], rsi
movzx ebx, cl
call fcn.140029680
mov ecx, dword [0x141946010]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x140028ef8
test bl, bl
je 0x140028ef8
lea ecx, [rax + 0x70]
call fcn.140103524
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140028e33
lea edx, [rsi + 1]
mov rcx, rax
call fcn.14002a310
mov rsi, rax
jmp 0x140028e35
xor esi, esi
mov qword [rsp + 0x68], rsi
mov rdx, rsi
mov ecx, dword [0x141946010]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov ecx, 0x10
call fcn.140103524
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140028e6a
mov rdx, rsi
mov rcx, rax
call fcn.14002a1f0
nop
mov qword [rsi + 0x30], rax
mov rcx, rsi
call fcn.14002a870
mov byte [rsi + 0x6a], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rsi + 0x38], rax
cmp qword [0x14194b980], 0
jne 0x140028e9d
mov rax, qword [rsi + 0x30]
mov qword [0x14194b980], rax
jmp 0x140028ef8
mov qword [rsp + 0x68], 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
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rsp + 0x68]
call fcn.140029740
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x140029680
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
cmp dword [0x141946010], 0xffffffff
jne 0x14002972e
mov ecx, dword [0x14194ef20]
mov rax, qword gs:[0x58]
mov r8d, 8
mov rdx, qword [rax + rcx*8]
lea rbx, [0x14194b950]
mov eax, dword [r8 + rdx]
cmp dword [0x14194b958], eax
jle 0x140029700
lea rcx, [0x14194b958]
call fcn.140103d8c
cmp dword [0x14194b958], 0xffffffff
jne 0x140029700
xor edx, edx
mov rcx, rbx
call fcn.140073040
lea rcx, [0x140133d20]
call fcn.14010382c
nop
lea rcx, [0x14194b958]
call fcn.140103d2c
mov rcx, rbx
call fcn.140073600
or rbx, 1
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x141946010], eax
test bl, 1
je 0x14002972e
and rbx, 0xfffffffffffffffe
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.140073ac0
add rsp, 0x30
pop rbx
ret
Function at 0x140029740
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, [0x14194b948]
mov rcx, rbx
call fcn.140073600
or rbx, 1
mov qword [rsp + 0x60], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x14194b930]
jne 0x140029793
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400298d3
mov rax, qword [0x141946018]
mov r8d, dword [rax + 8]
btr r8d, 0x1f
movsxd rdx, dword [rax + 4]
lea ecx, [rdx + 1]
cmp dword [rax], 1
ja 0x1400297b6
cmp r8d, ecx
jb 0x1400297b9
jmp 0x1400297de
cmp r8d, ecx
sbb r9d, r9d
and r9d, 8
cmp ecx, r8d
cmova r8d, ecx
lea rcx, [0x141946018]
call fcn.140029a90
mov rax, qword [0x141946018]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea rdx, [rcx + rdx*8]
mov qword [rdx + rax], rdi
mov rax, qword [0x141946018]
inc dword [rax + 4]
mov rax, qword [0x141946020]
mov r8d, dword [rax + 8]
btr r8d, 0x1f
movsxd rdx, dword [rax + 4]
lea ecx, [rdx + 1]
cmp dword [rax], 1
ja 0x140029817
cmp r8d, ecx
jb 0x14002981a
jmp 0x14002983f
cmp r8d, ecx
sbb r9d, r9d
and r9d, 8
cmp ecx, r8d
cmova r8d, ecx
lea rcx, [0x141946020]
call fcn.140029900
mov rax, qword [0x141946020]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea rdx, [rcx + rdx*8]
mov qword [rdx + rax], rsi
mov rax, qword [0x141946020]
inc dword [rax + 4]
cmp dword [0x14194b930], 0
jne 0x1400298c5
cmp qword [0x14194b938], 0
jne 0x140029892
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14194b938], rax
lea rdx, [0x14194b938]
lea rcx, [0x141946018]
call fcn.140029100
lea rax, [0x14194b930]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140029200]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400298d3
mov rcx, qword [0x14194b938]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
test bl, 1
je 0x1400298e4
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.140073ac0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140042c80
Capabilities:
Check os version

Disassembly:
mov r11, rsp
sub rsp, 0x168
mov eax, dword [0x14194b964]
test eax, eax
jne 0x140042e28
mov qword [r11 + 8], rbx
lea rcx, [rsp + 0x54]
mov qword [r11 - 8], rdi
mov ebx, 0x10
xor edi, edi
mov dword [0x14194b964], ebx
xor edx, edx
mov qword [rsp + 0x48], rdi
mov r8d, 0x100
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x40], 0x114
call fcn.140106b10
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x44], 6
jne 0x140042d04
mov eax, dword [rsp + 0x48]
cmp eax, 2
jne 0x140042d08
lea rcx, [rsp + 0x40]
call fcn.140041fe0
test al, al
jne 0x140042d04
lea rcx, [rsp + 0x40]
call fcn.140041e70
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
test ecx, ecx
je 0x140042e0b
cmp ecx, 1
je 0x140042df4
mov rcx, qword [rsp + 0x40]
shr rcx, 0x20
cmp ecx, 5
jb 0x140042e10
jne 0x140042d61
test eax, eax
jne 0x140042d3d
lea ebx, [rax + 0x20]
jmp 0x140042e10
cmp ecx, 5
jne 0x140042d61
cmp eax, 1
jne 0x140042d4f
lea ebx, [rcx + 0x2b]
jmp 0x140042e10
cmp ecx, 5
jne 0x140042d61
cmp eax, 2
jne 0x140042d61
lea ebx, [rcx + 0x3b]
jmp 0x140042e10
cmp ecx, 6
jne 0x140042da8
test eax, eax
jne 0x140042d72
lea ebx, [rcx + 0x7a]
jmp 0x140042e10
cmp ecx, 6
jne 0x140042da8
cmp eax, 1
jne 0x140042d86
mov ebx, 0x90
jmp 0x140042e10
cmp ecx, 6
jne 0x140042da8
cmp eax, 2
jne 0x140042d97
mov ebx, 0xa0
jmp 0x140042e10
cmp ecx, 6
jne 0x140042da8
cmp eax, 3
jne 0x140042da8
mov ebx, 0xb0
jmp 0x140042e10
cmp ecx, 0xa
jne 0x140042db8
test eax, eax
jne 0x140042db8
mov ebx, 0xc0
jmp 0x140042e10
lea rdx, [0x14028f110]
mov qword [rsp + 0x20], 2
mov qword [rsp + 0x38], rdx
xorps xmm0, xmm0
mov r8d, ecx
lea rdx, [0x140169538]
mov r9d, eax
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x28], xmm0
call fcn.140028ba0
mov ebx, 0xf0
jmp 0x140042e10
cmp eax, 0x5a
jne 0x140042dfe
lea ebx, [rax - 0x56]
jmp 0x140042e10
cmp eax, 0xa
mov ebx, edi
sete bl
add ebx, 2
jmp 0x140042e10
mov ebx, 1
mov rdi, qword [rsp + 0x160]
mov eax, ebx
mov dword [0x14194b964], ebx
mov rbx, qword [rsp + 0x170]
add rsp, 0x168
ret
Function at 0x140046290
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rsi, rcx
mov rdi, qword [rcx + 8]
lea rbx, [rdi + 0x70]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x14002a01f
mov rcx, rbx
call fcn.140073600
or rbx, 1
mov qword [rsp + 0x40], rbx
cmp byte [rdi + 0x7c], 0
je 0x14002a051
cmp byte [rdi + 0xa0], 0
jne 0x14002a037
mov byte [rdi + 0xa1], 1
jmp 0x14002a051
xor edx, edx
mov rcx, qword [rdi + 0x90]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor edx, edx
mov rcx, rsi
call fcn.140028f30
nop
test bl, 1
je 0x14002a062
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.140073ac0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor edx, edx
jmp fcn.14002a9d0
test edx, edx
jne 0x1400462f9
cmp r8d, 5
ja case.default.0x1400462b3
movsxd rax, r8d
lea r8, [0x140000000]
mov edx, dword [r8 + rax*4 + 0x4632c]
add rdx, r8
jmp rdx
xor r9d, r9d
lea rdx, [0x140169df0]
xor r8d, r8d
jmp fcn.14001e2a0
xor r9d, r9d
lea rdx, [0x140169df0]
lea r8d, [r9 + 1]
jmp fcn.14001e2a0
mov rax, qword [r9 + 8]
mov edx, dword [rax]
jmp fcn.140029cd0
mov edx, 7
jmp fcn.140029cd0
jmp 0x140029fe0
jmp 0x14002aaa0
cmp edx, 0xa
jne case.default.0x1400462b3
mov rcx, qword [r9 + 8]
lea rdx, [fcn.140046450]
mov rax, qword [r9]
cmp qword [rcx], rdx
jne 0x140046317
mov dword [rax], 0
lea rdx, [fcn.140046350]
cmp qword [rcx], rdx
jne case.default.0x1400462b3
mov dword [rax], 1
ret
Function at 0x140082a50
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 + 0x9c], 1
je 0x140082a82
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0x9c], 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 0x14008e490
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 + 0x70]
test rax, rax
jne 0x14008e5c4
cmp dword [rcx + 0x98], 0xffffffff
jne 0x14008e5bf
cmp qword [rcx + 0x78], 0xffffffffffffffff
je 0x14008e62c
mov rdi, r8
mov qword [r11 + 0x20], r8
xor r12d, r12d
mov ebx, r12d
lea r13, [0x1401b2c80]
nop dword [rax]
nop dword [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 + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008e555
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x14008e5b7
add rbx, rax
sub rdi, rax
mov qword [rsp + 0xa8], rdi
cmp rbx, rbp
jge 0x14008e5b7
jmp 0x14008e500
test rbx, rbx
jne 0x14008e5b7
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.1400426a0
nop
mov r8, rax
lea edx, [rbx + 1]
mov rcx, r15
call fcn.140080fa0
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14008e5a0
cmp eax, 0xffffffff
je 0x14008e62c
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14008e62c
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
or rax, 0xffffffffffffffff
jmp 0x14008e640
mov rax, rbx
jmp 0x14008e640
test rax, rax
je 0x14008e632
call fcn.14008e210
test al, al
je 0x14008e632
mov rcx, qword [rsi + 0x70]
call fcn.14010f554
test eax, eax
je 0x14008e632
call fcn.140108e74
mov edx, dword [rax]
lea rcx, [rsp + 0x38]
call fcn.1400426a0
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.140080fa0
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x14008e61e
cmp eax, 0xffffffff
je 0x14008e62c
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14008e62c
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
or rax, 0xffffffffffffffff
jmp 0x14008e640
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.140082aa0
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 0x140082aa0
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 0x140082c0f
xor ebx, ebx
cmp qword [rcx + 0x70], rbx
je 0x140082b78
mov r15b, 1
nop dword [rax]
nop word [rax + rax]
mov r8, rbp
sub r8, rbx
lea rcx, [rbx + r12]
mov r9, qword [rsi + 0x70]
mov edx, 1
call fcn.14010f8b4
mov rdi, rax
mov rcx, qword [rsi + 0x70]
call fcn.14010f554
test eax, eax
setne r14b
test r15b, r15b
je 0x140082b46
test r14b, r14b
je 0x140082b46
test rdi, rdi
jne 0x140082b46
mov rcx, qword [rsi + 0x70]
call fcn.14010c450
mov rdx, rax
xor r8d, r8d
mov rcx, qword [rsi + 0x70]
call fcn.1401099dc
xor r15b, r15b
jmp 0x140082b49
add rbx, rdi
test r14b, r14b
jne 0x140082c6b
test rdi, rdi
jne 0x140082b66
call fcn.140108e74
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x140082b6e
xor ecx, ecx
cmp rbx, rbp
setl cl
test ecx, ecx
jne 0x140082af0
jmp 0x140082bc0
cmp dword [rcx + 0x98], 0xffffffff
je 0x140082bc9
mov rax, rbp
sub rax, rbx
mov r8d, 0x7fffffff
cmp rax, r8
cmovb r8d, eax
lea rdx, [rbx + r12]
mov ecx, dword [rsi + 0x98]
call fcn.1401100bc
movsxd rcx, eax
test eax, eax
jle 0x140082bb2
add rbx, rcx
cmp rbx, rbp
jl 0x140082b81
cmp ecx, 0xffffffff
setne al
test al, al
jne 0x140082c6b
test rbx, rbx
jne 0x140082c6b
or rbx, 0xffffffffffffffff
call fcn.140108e74
mov edx, dword [rax]
lea rcx, [rsp + 0x70]
call fcn.1400426a0
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r13
call fcn.140080fa0
nop
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x140082c5c
cmp eax, ebx
je 0x140082c6b
mov edx, ebx
lock xadd dword [rcx], edx
cmp edx, 1
jne 0x140082c6b
mov rcx, qword [rsp + 0x70]
jmp 0x140082c5c
mov edx, 0x16
lea rcx, [rsp + 0x80]
call fcn.1400426a0
nop
mov r8, rax
mov edx, 1
mov rcx, r13
call fcn.140080fa0
nop
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx]
or rbx, 0xffffffffffffffff
test eax, eax
je 0x140082c5c
cmp eax, ebx
je 0x140082c6b
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140082c6b
mov rcx, qword [rsp + 0x80]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.1400397e0
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 0x140083230
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
cmp dword [rbx + 0x9c], 2
je 0x140083262
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0x9c], 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 0x14008e840
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x18]
cmp qword [rcx + 0x70], 0
jne 0x14008e952
cmp dword [rcx + 0x98], 0xffffffff
jne 0x14008e952
cmp qword [rcx + 0x78], 0xffffffffffffffff
je 0x14008e947
mov edi, ebp
xor r12d, r12d
mov ebx, r12d
lea r13, [0x1401b2c88]
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x30]
cmp edi, 0x2000000
cmovae rax, r13
lea rdx, [rbx + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x80]
mov r8d, dword [rax]
mov rcx, qword [rsi + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14008e8ed
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x14008e94d
add rbx, rax
sub rdi, rax
cmp rbx, rbp
jge 0x14008e94d
jmp 0x14008e8a0
test rbx, rbx
jne 0x14008e94d
or edx, 0xffffffff
lea rcx, [rsp + 0x98]
call fcn.1400426a0
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r15
call fcn.140080fa0
nop
mov rcx, qword [rsp + 0x98]
mov eax, dword [rcx]
test eax, eax
je 0x14008e939
cmp eax, 0xffffffff
je 0x14008e947
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14008e947
mov rcx, qword [rsp + 0x98]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
or rax, 0xffffffffffffffff
jmp 0x14008e957
mov rax, rbx
jmp 0x14008e957
call fcn.140083280
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140083280
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 0x1400833ad
xor ebx, ebx
cmp qword [rcx + 0x70], rbx
je 0x1400832fd
nop word [rax + rax]
mov r8, rdi
sub r8, rbx
lea rcx, [rbx + rbp]
mov r9, qword [rsi + 0x70]
mov edx, 1
call fcn.140109c3c
add rbx, rax
test rax, rax
jne 0x1400832ef
call fcn.140108e74
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x1400832f7
xor ecx, ecx
cmp rbx, rdi
setl cl
test ecx, ecx
jne 0x1400832c0
jmp 0x140083340
cmp dword [rcx + 0x98], 0xffffffff
je 0x140083340
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 + 0x98]
call fcn.140110eac
test eax, eax
jle 0x140083340
cdqe
add rbx, rax
cmp rbx, rdi
jl 0x140083310
test rdi, rdi
je 0x1400833a4
test rbx, rbx
jne 0x1400833a4
or rbx, 0xffffffffffffffff
call fcn.140108e74
mov edx, dword [rax]
lea rcx, [rsp + 0x50]
call fcn.1400426a0
mov rdi, rax
call fcn.140108e74
mov edx, 2
mov ecx, 4
cmp dword [rax], 0x1c
cmove edx, ecx
mov r8, rdi
mov rcx, r14
call fcn.140080fa0
nop
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x1400833f1
cmp eax, ebx
je 0x140083400
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140083400
mov rcx, qword [rsp + 0x50]
jmp 0x1400833f1
and dword [rsi + 0x40], 0xffdfffff
jmp 0x140083400
mov edx, 0x16
lea rcx, [rsp + 0x60]
call fcn.1400426a0
nop
mov r8, rax
mov edx, 2
mov rcx, r14
call fcn.140080fa0
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
or rbx, 0xffffffffffffffff
test eax, eax
je 0x1400833f1
cmp eax, ebx
je 0x140083400
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140083400
mov rcx, qword [rsp + 0x60]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.1400397e0
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1400840f0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.140082380
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp method.QFSFileEngine.virtual_96
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rsi, rcx
mov rdi, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.1400810c0
nop
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.140081990
mov rbx, rax
lea rcx, [rdi + 0x20]
lea rdx, [rsp + 0x70]
call fcn.140081990
mov rdi, rax
mov rcx, rbx
call fcn.1400360e0
mov rbx, rax
mov rcx, rdi
call fcn.1400360e0
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
or ebx, 0xffffffff
test eax, eax
je 0x14008ebe4
cmp eax, ebx
je 0x14008ebf3
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14008ebf3
mov rcx, qword [rsp + 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
nop
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x14008ec19
cmp eax, 0xffffffff
je 0x14008ec28
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14008ec28
mov rcx, qword [rsp + 0x80]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x14008ec48
cmp eax, 0xffffffff
je 0x14008ec56
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14008ec56
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14008ec76
cmp eax, 0xffffffff
je 0x14008ec84
mov eax, ebx
lock xadd dword [rcx], eax
sub eax, 1
jne 0x14008ec84
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
test dil, dil
jne 0x14008ecf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x88], eax
mov dword [rsp + 0x8c], 2
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x88]
call fcn.1400bcf40
nop
mov r8, rax
mov edx, 0xa
mov rcx, rsi
call fcn.140080fa0
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14008ece3
cmp eax, 0xffffffff
je 0x14008ecf1
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14008ecf1
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
movzx eax, dil
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140084830
Capabilities:
Copy file

Disassembly:
push r14
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
mov r14, r8
mov rax, rdx
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140081990
mov rsi, rax
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140081990
mov rdi, rax
mov rcx, rsi
call fcn.1400360e0
mov rbx, rax
mov rcx, rdi
call fcn.1400360e0
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne dil
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
or ebx, 0xffffffff
test eax, eax
je 0x1400848c4
cmp eax, ebx
je 0x1400848d3
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400848d3
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400848f1
cmp eax, 0xffffffff
je 0x1400848ff
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1400848ff
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
test dil, dil
jne 0x14008491e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], 2
mov rcx, qword [rsp + 0x58]
mov qword [r14], rcx
movzx eax, dil
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x140084d20
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x141949208]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rcx
mov dword [rsp + 0x40], 0
lea rax, [0x140168648]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
or rbx, 0xffffffffffffffff
test eax, eax
je 0x140084e78
cmp esi, 0x104
jbe 0x140084e20
mov eax, 2
mul rsi
cmovo rax, rbx
mov rcx, rax
call fcn.140103568
mov r14, rax
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140084e16
mov r8d, esi
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.140004300
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x50], rcx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x140084e08
cmp eax, ebx
je 0x140084e16
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140084e16
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
mov rcx, r14
call fcn.140103fb8
jmp 0x140084e78
mov r8d, esi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140004300
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x58], rcx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x140084e6a
cmp eax, 0xffffffff
je 0x140084e78
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140084e78
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 4]
cmp ecx, 2
jl 0x140084ee3
cmp ecx, 1
jle 0x140084ee3
mov rdx, qword [rax + 0x10]
cmp word [rdx + rax + 2], 0x3a
jne 0x140084ee3
movzx ecx, word [rdx + rax]
call fcn.1400357f0
mov esi, eax
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 4]
test edx, edx
jg 0x140084ebb
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140030e30
jmp 0x140084ed6
cmp dword [rax], 1
ja 0x140084ec7
cmp qword [rax + 0x10], 0x18
je 0x140084edb
inc edx
xor r8d, r8d
lea rcx, [rsp + 0x20]
call fcn.1400336f0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x10]
mov word [rax + rcx], si
movzx r8d, byte [rsp + 0x28]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140081120
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x140084f15
cmp eax, 0xffffffff
je 0x140084f23
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x140084f23
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140103500
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret