joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000fb10
Capabilities:
Print debug messages

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov r9, r8
mov r8, rdx
mov edx, ecx
lea rcx, [rsp + 0x20]
call fcn.140011250
nop
lea rax, [0x14017f600]
or edi, 0xffffffff
mov rcx, qword [rsp + 0x20]
cmp rcx, rax
je 0x14000fbf9
call fcn.140011d90
lea rcx, [rsp + 0x20]
test al, al
jne 0x14000fb84
mov eax, 0xa
mov word [rsp + 0x68], ax
movzx edx, ax
call fcn.1400185b0
lea rcx, [rsp + 0x20]
call fcn.140021a50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14000fbf4
lea rdx, [rsp + 0x28]
call fcn.1400131c0
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x10]
add rbx, rcx
mov ecx, 2
call fcn.14011f0bc
mov rcx, rax
mov r8, rbx
lea rdx, [0x14014e1fc]
call fcn.140013450
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x14000fbd4
cmp eax, 0xffffffff
je 0x14000fbe2
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14000fbe2
mov rcx, qword [rsp + 0x28]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.14002c3b0
mov ecx, 2
call fcn.14011f0bc
mov rcx, rax
call fcn.14011ea74
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14000fc12
cmp eax, 0xffffffff
je 0x14000fc20
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x14000fc20
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002c3b0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400332c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, r9
movsxd r15, r8d
mov rsi, rdx
mov r14, rcx
mov r10, qword [rcx]
mov r11, qword [r10 + 0x10]
add r11, r10
sub rsi, r11
sar rsi, 5
test r8d, r8d
je 0x140033420
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140032470
mov eax, dword [rbx + 8]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x34], eax
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 0x14]
mov dword [rsp + 0x3c], eax
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x40], rax
mov rdx, qword [r14]
cmp dword [rdx], 1
ja 0x140033346
mov ecx, dword [rdx + 4]
add ecx, r15d
mov eax, dword [rdx + 8]
btr eax, 0x1f
cmp ecx, eax
jle 0x140033366
mov dword [rsp + 0x90], 8
mov edx, dword [rdx + 4]
lea r8d, [rdx + r15]
mov r9d, 8
mov rcx, r14
call fcn.140034850
mov rcx, qword [r14]
mov rax, rsi
shl rax, 5
mov rdi, qword [rcx + 0x10]
add rdi, rax
add rdi, rcx
mov rbx, r15
shl rbx, 5
add rbx, rdi
movsxd r8, dword [rcx + 4]
sub r8, rsi
shl r8, 5
mov rdx, rdi
mov rcx, rbx
call fcn.14011c540
cmp rbx, rdi
je 0x1400333ed
nop
sub rbx, 0x20
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rbx
je 0x1400333e8
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140032470
mov eax, dword [rsp + 0x30]
mov dword [rbx + 8], eax
mov eax, dword [rsp + 0x34]
mov dword [rbx + 0xc], eax
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x3c]
mov dword [rbx + 0x14], eax
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x18], rax
cmp rbx, rdi
jne 0x1400333a0
mov rax, qword [r14]
add dword [rax + 4], r15d
mov rdx, qword [rsp + 0x28]
mov eax, dword [rdx]
test eax, eax
je 0x140033415
cmp eax, 0xffffffff
je 0x140033420
or eax, 0xffffffff
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x140033420
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.14002d5c0
nop
mov rcx, qword [r14]
shl rsi, 5
mov rax, qword [rcx + 0x10]
add rax, rsi
add rax, rcx
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400497f0
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
mov eax, dword [0x140407030]
cmp eax, 0xffffffff
jne 0x140049845
lea rbx, [0x14040df58]
mov rcx, rbx
call fcn.1400410b0
or rbx, 1
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140407030], eax
test bl, 1
je 0x140049845
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.140041560
mov eax, dword [0x140407030]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x14004994a
test dil, dil
je 0x14004994a
lea ecx, [rax + 0x78]
call fcn.1400fbea4
mov qword [rsp + 0x78], rax
lea edx, [rsi + 1]
mov rcx, rax
call fcn.14004adc0
mov rsi, rax
mov qword [rsp + 0x88], rax
mov rdx, rax
mov ecx, dword [0x140407030]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov ecx, 0x10
call fcn.1400fbea4
mov qword [rsp + 0x78], rax
mov rdx, rsi
mov rcx, rax
call fcn.14004aca0
nop
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsi + 0x38], rax
mov rcx, rsi
call fcn.14004b2f0
mov byte [rsi + 0x72], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rsi + 0x40], rax
mov rax, qword [0x14040ddf0]
test rax, rax
jne 0x1400498f5
mov rax, qword [rsi + 0x38]
mov qword [0x14040ddf0], rax
jmp 0x14004994a
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.14004a150
mov rax, rsi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x14004a150
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, [0x14040df50]
mov rcx, rbx
call fcn.1400410b0
or rbx, 1
mov qword [rsp + 0x60], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x14040df38]
jne 0x14004a1a3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14004a2e3
mov rax, qword [0x140407038]
mov r8d, dword [rax + 8]
btr r8d, 0x1f
movsxd rdx, dword [rax + 4]
lea ecx, [rdx + 1]
cmp dword [rax], 1
ja 0x14004a1c6
cmp r8d, ecx
jb 0x14004a1c9
jmp 0x14004a1ee
cmp r8d, ecx
sbb r9d, r9d
and r9d, 8
cmp ecx, r8d
cmova r8d, ecx
lea rcx, [0x140407038]
call fcn.14004a4a0
mov rax, qword [0x140407038]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea rdx, [rcx + rdx*8]
mov qword [rdx + rax], rdi
mov rax, qword [0x140407038]
inc dword [rax + 4]
mov rax, qword [0x140407040]
mov r8d, dword [rax + 8]
btr r8d, 0x1f
movsxd rdx, dword [rax + 4]
lea ecx, [rdx + 1]
cmp dword [rax], 1
ja 0x14004a227
cmp r8d, ecx
jb 0x14004a22a
jmp 0x14004a24f
cmp r8d, ecx
sbb r9d, r9d
and r9d, 8
cmp ecx, r8d
cmova r8d, ecx
lea rcx, [0x140407040]
call fcn.14004a310
mov rax, qword [0x140407040]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea rdx, [rcx + rdx*8]
mov qword [rdx + rax], rsi
mov rax, qword [0x140407040]
inc dword [rax + 4]
cmp dword [0x14040df38], 0
jne 0x14004a2d5
cmp qword [0x14040df40], 0
jne 0x14004a2a2
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14040df40], rax
lea rdx, [0x14040df40]
lea rcx, [0x140407038]
call fcn.140049b60
lea rax, [0x14040df38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140049c50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14004a2e3
mov rcx, qword [0x14040df40]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
test bl, 1
je 0x14004a2f4
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.140041560
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14004abf0
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 + 0x70]
test rbx, rbx
je 0x14004aa1b
mov rcx, rbx
call fcn.1400410b0
or rbx, 1
cmp byte [rdi + 0x7c], 0
je 0x14004aa4c
cmp byte [rdi + 0xa0], 0
jne 0x14004aa33
mov byte [rdi + 0xa1], 1
jmp 0x14004aa4c
mov rcx, qword [rdi + 0x90]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor edx, edx
mov rcx, rsi
call fcn.140049980
test bl, 1
je 0x14004aa5d
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.140041560
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test edx, edx
jne 0x14004ac4a
cmp r8d, 5
ja case.default.0x14004ac13
movsxd rax, r8d
lea r8, [0x140000000]
mov edx, dword [r8 + rax*4 + 0x4ac80]
add rdx, r8
jmp rdx
movzx edx, byte [rsp + 0x10]
jmp fcn.14004b700
movzx edx, byte [rsp + 0x10]
jmp fcn.14004b520
mov rax, qword [r9 + 8]
mov edx, dword [rax]
jmp fcn.14004a630
mov edx, 7
jmp fcn.14004a630
jmp 0x14004a9f0
xor edx, edx
jmp fcn.14004b450
cmp edx, 0xa
jne case.default.0x14004ac13
mov rax, qword [r9 + 8]
mov rcx, qword [r9]
mov rdx, qword [rax]
lea rax, [fcn.14004b700]
cmp rdx, rax
jne 0x14004ac6c
mov dword [rcx], 0
ret
lea rax, [fcn.14004b520]
cmp rdx, rax
jne case.default.0x14004ac13
mov dword [rcx], 1
ret
Function at 0x140058b60
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 0x140058b92
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 0x140079820
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 0x140079954
cmp dword [rcx + 0xa0], 0xffffffff
jne 0x14007994f
cmp qword [rcx + 0x80], 0xffffffffffffffff
je 0x1400799b8
mov rdi, r8
mov qword [r11 + 0x20], r8
xor r12d, r12d
mov ebx, r12d
lea r13, [0x1401e3da8]
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 0x1400798e8
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x14007994a
add rbx, rax
sub rdi, rax
mov qword [rsp + 0xa8], rdi
cmp rbx, rbp
jge 0x14007994a
jmp 0x140079890
test rbx, rbx
jne 0x14007994a
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140040790
nop
mov r8, rax
lea edx, [rbx + 1]
mov rcx, r15
call fcn.1400570e0
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x140079933
cmp eax, 0xffffffff
je 0x1400799b8
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400799b8
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002c3b0
or rax, 0xffffffffffffffff
jmp 0x1400799cc
mov rax, rbx
jmp 0x1400799cc
test rax, rax
je 0x1400799be
call fcn.140079580
test al, al
je 0x1400799be
mov rcx, qword [rsi + 0x78]
call fcn.140127be0
test eax, eax
je 0x1400799be
or edx, 0xffffffff
lea rcx, [rsp + 0x38]
call fcn.140040930
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.1400570e0
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x1400799aa
cmp eax, 0xffffffff
je 0x1400799b8
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400799b8
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002c3b0
or rax, 0xffffffffffffffff
jmp 0x1400799cc
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.140058bb0
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 0x140058bb0
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 0x140058d1a
xor ebx, ebx
cmp qword [rcx + 0x78], rbx
je 0x140058c88
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.140127f70
mov rdi, rax
mov rcx, qword [rsi + 0x78]
call fcn.140127be0
test eax, eax
setne r14b
test r15b, r15b
je 0x140058c56
test r14b, r14b
je 0x140058c56
test rdi, rdi
jne 0x140058c56
mov rcx, qword [rsi + 0x78]
call fcn.140124110
mov rdx, rax
xor r8d, r8d
mov rcx, qword [rsi + 0x78]
call fcn.14011fb68
xor r15b, r15b
jmp 0x140058c59
add rbx, rdi
test r14b, r14b
jne 0x140058d76
test rdi, rdi
jne 0x140058c76
call fcn.14011f508
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x140058c7e
xor ecx, ecx
cmp rbx, rbp
setl cl
test ecx, ecx
jne 0x140058c00
jmp 0x140058cd0
cmp dword [rcx + 0xa0], 0xffffffff
je 0x140058cd9
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.14012873c
movsxd rcx, eax
test eax, eax
jle 0x140058cc2
add rbx, rcx
cmp rbx, rbp
jl 0x140058c91
cmp ecx, 0xffffffff
setne al
test al, al
jne 0x140058d76
test rbx, rbx
jne 0x140058d76
or rbx, 0xffffffffffffffff
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.140040930
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r13
call fcn.1400570e0
nop
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x140058d67
cmp eax, ebx
je 0x140058d76
mov edx, ebx
lock xadd dword [rcx], edx
cmp edx, 1
jne 0x140058d76
mov rcx, qword [rsp + 0x70]
jmp 0x140058d67
mov edx, 0x16
lea rcx, [rsp + 0x80]
call fcn.140040930
nop
mov r8, rax
mov edx, 1
mov rcx, r13
call fcn.1400570e0
nop
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx]
or rbx, 0xffffffffffffffff
test eax, eax
je 0x140058d67
cmp eax, ebx
je 0x140058d76
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140058d76
mov rcx, qword [rsp + 0x80]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.14002c3b0
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 0x1400592d0
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 0x140059309
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 0x140079be0
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 0x140079d09
cmp dword [rcx + 0xa0], 0xffffffff
jne 0x140079d09
cmp qword [rcx + 0x80], 0xffffffffffffffff
je 0x140079cfe
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 0x140079cad
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x140079d04
add rbx, rax
sub rdi, rax
mov qword [rsp + 0x98], rdi
cmp rbx, rbp
jge 0x140079d04
jmp 0x140079c50
test rbx, rbx
jne 0x140079d04
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140040790
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r15
call fcn.1400570e0
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x140079cf0
cmp eax, 0xffffffff
je 0x140079cfe
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140079cfe
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002c3b0
or rax, 0xffffffffffffffff
jmp 0x140079d0e
mov rax, rbx
jmp 0x140079d0e
call fcn.140059330
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 0x140059330
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 0x140059463
xor ebx, ebx
test r8, r8
je 0x14005945a
cmp qword [rcx + 0x78], rbx
je 0x1400593bd
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.14011f3cc
add rbx, rax
test rax, rax
jne 0x1400593af
call fcn.14011f508
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x1400593b7
xor ecx, ecx
cmp rbx, rdi
setl cl
test ecx, ecx
jne 0x140059380
jmp 0x140059400
cmp dword [rcx + 0xa0], 0xffffffff
je 0x140059405
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.14012925c
test eax, eax
jle 0x140059400
cdqe
add rbx, rax
cmp rbx, rdi
jl 0x1400593d0
test rbx, rbx
jne 0x14005945a
or rbx, 0xffffffffffffffff
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140040930
mov rdi, rax
call fcn.14011f508
mov edx, 2
mov ecx, 4
cmp dword [rax], 0x1c
cmove edx, ecx
mov r8, rdi
mov rcx, r14
call fcn.1400570e0
nop
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x1400594a7
cmp eax, ebx
je 0x1400594b6
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400594b6
mov rcx, qword [rsp + 0x50]
jmp 0x1400594a7
and dword [rsi + 0x40], 0xffdfffff
jmp 0x1400594b6
mov edx, 0x16
lea rcx, [rsp + 0x60]
call fcn.140040930
nop
mov r8, rax
mov edx, 2
mov rcx, r14
call fcn.1400570e0
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
or rbx, 0xffffffffffffffff
test eax, eax
je 0x1400594a7
cmp eax, ebx
je 0x1400594b6
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400594b6
mov rcx, qword [rsp + 0x60]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.14002c3b0
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 0x14005ade0
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.140057a80
mov rsi, rax
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140057a80
mov rdi, rax
mov rcx, rsi
call fcn.140021a50
mov rbx, rax
mov rcx, rdi
call fcn.140021a50
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 0x14005ae74
cmp eax, ebx
je 0x14005ae83
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14005ae83
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002c3b0
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14005aea1
cmp eax, 0xffffffff
je 0x14005aeaf
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14005aeaf
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002c3b0
test dil, dil
jne 0x14005aece
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 0x14005b2a0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14040a3a0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
lea rax, [0x14017f600]
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 0x14005b3fd
cmp esi, 0x104
jbe 0x14005b3a5
mov eax, 2
mul rsi
cmovo rax, rbx
mov rcx, rax
call fcn.1400fc764
mov r15, rax
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14005b39b
mov r8d, esi
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.1400090f0
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 0x14005b38d
cmp eax, ebx
je 0x14005b39b
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14005b39b
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002c3b0
mov rcx, r15
call fcn.1400fbee0
jmp 0x14005b3fd
mov r8d, esi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.1400090f0
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 0x14005b3ef
cmp eax, 0xffffffff
je 0x14005b3fd
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14005b3fd
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002c3b0
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 4]
cmp ecx, 2
jl 0x14005b480
cmp ecx, 1
jle 0x14005b419
mov rcx, qword [rax + 0x10]
movzx r14d, word [rcx + rax + 2]
cmp r14w, 0x3a
jne 0x14005b480
mov rcx, qword [rax + 0x10]
movzx ecx, word [rax + rcx]
call fcn.140020f80
mov esi, eax
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 4]
test edx, edx
jg 0x14005b458
mov eax, 0x20
mov word [rsp + 0x28], ax
movzx r8d, ax
lea edx, [rax - 0x1f]
lea rcx, [rsp + 0x20]
call fcn.14001fd70
jmp 0x14005b473
cmp dword [rax], 1
ja 0x14005b464
cmp qword [rax + 0x10], 0x18
je 0x14005b478
inc edx
xor r8d, r8d
lea rcx, [rsp + 0x20]
call fcn.14001e380
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.140057250
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14005b4b2
cmp eax, 0xffffffff
je 0x14005b4c0
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14005b4c0
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002c3b0
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400fbe80
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret