joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400318e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x140032810
push rdi
sub rsp, 0x70
mov rdx, rcx
mov qword [rsp + 0x88], rsi
lea rcx, [rsp + 0x20]
call fcn.140054e10
xor esi, esi
mov qword [rsp + 0x40], 0xffffffffffffffff
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], rsi
lea rcx, [rsp + 0x20]
call fcn.14005a160
mov rdi, rax
test rax, rax
je 0x1400329bb
mov ecx, 0xd0
mov qword [rsp + 0x80], rbx
call fcn.14005f850
mov rbx, rax
mov dword [rax], esi
mov rdx, qword [rsp + 0x20]
mov qword [rax + 8], rdx
mov r8d, dword [rdx]
lea ecx, [r8 + 1]
cmp ecx, 1
jbe 0x140032888
lea ecx, [r8 + 1]
mov dword [rdx], ecx
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
mov edx, dword [rcx]
lea eax, [rdx + 1]
cmp eax, 1
jbe 0x1400328a0
lea eax, [rdx + 1]
mov dword [rcx], eax
movzx eax, word [rsp + 0x30]
lea rdx, [rbx + 0x20]
mov word [rbx + 0x18], ax
movzx eax, word [rsp + 0x32]
mov word [rbx + 0x1a], ax
movzx eax, word [rsp + 0x34]
mov word [rbx + 0x1c], ax
lea rax, [0x140062cf8]
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdx + 0x20], xmm0
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], rax
mov qword [rbx + 0x60], rax
mov qword [rbx + 0x68], rax
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x78], rax
mov qword [rbx + 0x80], rax
mov qword [rbx + 0x88], rax
mov qword [rbx + 0x90], rax
mov qword [rbx + 0x98], rax
mov qword [rbx + 0xa0], rax
mov qword [rbx + 0xa8], rax
and byte [rbx + 0xb4], 0xfe
or byte [rbx + 0xb4], 2
and dword [rbx + 0xb0], 0xc0000000
mov dword [rbx + 0xb8], esi
mov qword [rbx + 0xc0], rsi
mov qword [rbx + 0xc8], rax
inc dword [rbx]
movzx eax, byte [rbx + 0xb4]
test al, 1
je 0x140032960
xor dil, dil
jmp 0x14003299f
test rdi, rdi
jne 0x14003298c
test al, 2
je 0x140032971
test dword [rdx], 0x400000
jne 0x140032980
mov r8d, 0x400000
lea rcx, [rbx + 8]
call fcn.140057bb0
mov edi, dword [rbx + 0x24]
shr edi, 0x16
and dil, 1
jmp 0x14003299f
mov edx, 0x400000
mov rcx, rbx
call fcn.140032b50
test eax, eax
setne dil
sub dword [rbx], 1
jne 0x1400329b1
mov edx, 1
mov rcx, rbx
call fcn.140032310
mov rbx, qword [rsp + 0x80]
jmp 0x1400329db
mov r8d, 0x400000
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140057bb0
mov edi, dword [rsp + 0x3c]
shr edi, 0x16
and dil, 1
mov rcx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x88]
mov eax, dword [rcx]
test eax, eax
je 0x1400329ff
cmp eax, 0xffffffff
je 0x140032a0d
sub eax, 1
mov dword [rcx], eax
jne 0x140032a0d
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x140032a29
cmp eax, 0xffffffff
je 0x140032a37
sub eax, 1
mov dword [rcx], eax
jne 0x140032a37
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
movzx eax, dil
add rsp, 0x70
pop rdi
ret
Function at 0x140032810
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x140032810
push rdi
sub rsp, 0x70
mov rdx, rcx
mov qword [rsp + 0x88], rsi
lea rcx, [rsp + 0x20]
call fcn.140054e10
xor esi, esi
mov qword [rsp + 0x40], 0xffffffffffffffff
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], rsi
lea rcx, [rsp + 0x20]
call fcn.14005a160
mov rdi, rax
test rax, rax
je 0x1400329bb
mov ecx, 0xd0
mov qword [rsp + 0x80], rbx
call fcn.14005f850
mov rbx, rax
mov dword [rax], esi
mov rdx, qword [rsp + 0x20]
mov qword [rax + 8], rdx
mov r8d, dword [rdx]
lea ecx, [r8 + 1]
cmp ecx, 1
jbe 0x140032888
lea ecx, [r8 + 1]
mov dword [rdx], ecx
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
mov edx, dword [rcx]
lea eax, [rdx + 1]
cmp eax, 1
jbe 0x1400328a0
lea eax, [rdx + 1]
mov dword [rcx], eax
movzx eax, word [rsp + 0x30]
lea rdx, [rbx + 0x20]
mov word [rbx + 0x18], ax
movzx eax, word [rsp + 0x32]
mov word [rbx + 0x1a], ax
movzx eax, word [rsp + 0x34]
mov word [rbx + 0x1c], ax
lea rax, [0x140062cf8]
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdx + 0x20], xmm0
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], rax
mov qword [rbx + 0x60], rax
mov qword [rbx + 0x68], rax
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x78], rax
mov qword [rbx + 0x80], rax
mov qword [rbx + 0x88], rax
mov qword [rbx + 0x90], rax
mov qword [rbx + 0x98], rax
mov qword [rbx + 0xa0], rax
mov qword [rbx + 0xa8], rax
and byte [rbx + 0xb4], 0xfe
or byte [rbx + 0xb4], 2
and dword [rbx + 0xb0], 0xc0000000
mov dword [rbx + 0xb8], esi
mov qword [rbx + 0xc0], rsi
mov qword [rbx + 0xc8], rax
inc dword [rbx]
movzx eax, byte [rbx + 0xb4]
test al, 1
je 0x140032960
xor dil, dil
jmp 0x14003299f
test rdi, rdi
jne 0x14003298c
test al, 2
je 0x140032971
test dword [rdx], 0x400000
jne 0x140032980
mov r8d, 0x400000
lea rcx, [rbx + 8]
call fcn.140057bb0
mov edi, dword [rbx + 0x24]
shr edi, 0x16
and dil, 1
jmp 0x14003299f
mov edx, 0x400000
mov rcx, rbx
call fcn.140032b50
test eax, eax
setne dil
sub dword [rbx], 1
jne 0x1400329b1
mov edx, 1
mov rcx, rbx
call fcn.140032310
mov rbx, qword [rsp + 0x80]
jmp 0x1400329db
mov r8d, 0x400000
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140057bb0
mov edi, dword [rsp + 0x3c]
shr edi, 0x16
and dil, 1
mov rcx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x88]
mov eax, dword [rcx]
test eax, eax
je 0x1400329ff
cmp eax, 0xffffffff
je 0x140032a0d
sub eax, 1
mov dword [rcx], eax
jne 0x140032a0d
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x140032a29
cmp eax, 0xffffffff
je 0x140032a37
sub eax, 1
mov dword [rcx], eax
jne 0x140032a37
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
movzx eax, dil
add rsp, 0x70
pop rdi
ret
Function at 0x1400473e0
Capabilities:
Accept command line arguments

Disassembly:
push rdi
push r12
push r14
sub rsp, 0x50
lea rax, [0x140062d88]
mov r14, rcx
xor edi, edi
mov dword [rsp + 0x70], edi
mov qword [rcx], rax
mov rcx, rdx
call fcn.14001f0a0
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r12, rax
test rax, rax
je 0x14004759b
mov edx, dword [rsp + 0x70]
mov rcx, r14
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rsi
call fcn.140047650
movsxd rcx, dword [rsp + 0x70]
mov rsi, r12
lea rbp, [r12 + rcx*8]
cmp r12, rbp
jae 0x140047588
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x38], r13
lea r13, [0x140062cf8]
mov qword [rsp + 0x30], r15
mov r15, qword [rsp + 0x88]
nop dword [rax + rax]
mov rdx, qword [rsi]
lea rcx, [rsp + 0x80]
mov r8d, 0xffffffff
or edi, 1
call fcn.140019f60
mov rbx, qword [rax]
mov qword [rax], r13
test dil, 2
je 0x1400474c0
mov eax, dword [r15]
and edi, 0xfffffffd
test eax, eax
je 0x1400474aa
cmp eax, 0xffffffff
je 0x1400474c0
sub dword [r15], 1
jne 0x1400474c0
mov rcx, qword [rsp + 0x88]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rcx, qword [rsp + 0x80]
and edi, 0xfffffffe
mov eax, dword [rcx]
test eax, eax
je 0x1400474e5
cmp eax, 0xffffffff
je 0x1400474f3
sub eax, 1
mov dword [rcx], eax
jne 0x1400474f3
mov rcx, qword [rsp + 0x80]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rax, qword [r14]
cmp dword [rax], 1
jbe 0x140047525
mov edx, 0x7fffffff
mov r8d, 1
mov rcx, r14
call fcn.140006330
mov qword [rax], rbx
mov ecx, dword [rbx]
mov eax, ecx
test ecx, ecx
je 0x14004754b
cmp ecx, 0xffffffff
je 0x14004754b
lea eax, [rcx + 1]
mov dword [rbx], eax
jmp 0x14004754b
mov qword [rsp + 0x20], rbx
mov ecx, dword [rbx]
lea eax, [rcx + 1]
cmp eax, 1
jbe 0x140047539
lea eax, [rcx + 1]
mov dword [rbx], eax
mov rcx, r14
call fcn.140014be0
mov rcx, qword [rsp + 0x20]
mov qword [rax], rcx
mov eax, dword [rbx]
test eax, eax
je 0x14004755b
cmp eax, 0xffffffff
je 0x14004756c
sub eax, 1
mov dword [rbx], eax
jne 0x14004756c
mov edx, 2
mov rcx, rbx
lea r8d, [rdx + 6]
call fcn.140014460
add rsi, 8
cmp rsi, rbp
jb 0x140047470
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x78]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rax, r14
add rsp, 0x50
pop r14
pop r12
pop rdi
ret
Function at 0x14004c120
Capabilities:
Terminate process

Disassembly:
push rbx
push rdi
sub rsp, 0x38
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov rcx, qword [rcx]
call fcn.14004b0d0
test al, al
jne 0x14004c1a8
mov dl, 0xa
lea rcx, [rsp + 0x50]
call fcn.140048610
lea rdx, [rsp + 0x68]
mov rcx, rdi
mov rbx, rax
call fcn.140049fd0
mov rdx, rax
lea rcx, [rsp + 0x20]
mov r8, rbx
call fcn.140003eb0
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.140048c20
mov ebx, 1
lea rcx, [rsp + 0x60]
mov edx, ebx
call fcn.14004c760
lea rcx, [rsp + 0x60]
call fcn.140004c10
lea rcx, [rsp + 0x68]
call fcn.140004c10
call fcn.1400475b0
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, qword [rdi]
mov qword [rsp + 0x30], rsi
cmp byte [rax + 0x50], bl
je 0x14004c1e1
mov byte [rsp + 0x50], bl
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
mov ebx, 1
call fcn.140048d40
mov rdx, rax
mov rcx, rdi
call fcn.14004ae40
test al, al
je 0x14004c1e1
movzx esi, bl
jmp 0x14004c1e4
xor sil, sil
test bl, 1
je 0x14004c216
mov rcx, qword [rsp + 0x60]
and ebx, 0xfffffffe
mov eax, dword [rcx]
test eax, eax
je 0x14004c208
cmp eax, 0xffffffff
je 0x14004c216
sub eax, 1
mov dword [rcx], eax
jne 0x14004c216
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
test sil, sil
jne 0x14004c2be
mov rax, qword [rdi]
cmp byte [rax + 0x51], sil
je 0x14004c270
mov rax, qword gs:[0x58]
or ebx, 2
mov ecx, dword [0x1400e6118]
mov edx, 8
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x1400e6038], eax
jg 0x14004c2c7
lea rax, [0x1400e6010]
mov rcx, rdi
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
call fcn.14004ae40
test al, al
je 0x14004c270
mov sil, 1
jmp 0x14004c273
xor sil, sil
test bl, 2
je 0x14004c2a2
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x14004c294
cmp eax, 0xffffffff
je 0x14004c2a2
sub eax, 1
mov dword [rcx], eax
jne 0x14004c2a2
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
test sil, sil
jne 0x14004c2b3
mov rsi, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rbx
ret
xor edx, edx
mov rcx, rdi
call fcn.14004c720
int3
mov rcx, rdi
call fcn.14004c830
int3
lea rcx, [0x1400e6038]
call fcn.14005fb2c
cmp dword [0x1400e6038], 0xffffffff
jne 0x14004c24e
movsd xmm0, qword [str.help]
lea rcx, [0x1400e6038]
movzx eax, word [0x1400d8ef8]
movsd qword [0x1400e6028], xmm0
mov word [0x1400e6030], ax
mov dword [0x1400e6010], 0xffffffff
mov qword [0x1400e6014], 4
mov qword [0x1400e6020], 0x18
call fcn.14005facc
jmp 0x14004c24e
Function at 0x1400566f0
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 0x140056722
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 0x14005c280
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15, qword [rcx + 0x18]
mov rsi, rcx
mov rcx, qword [rcx + 0x70]
mov rbp, r8
mov r14, rdx
test rcx, rcx
jne 0x14005c387
cmp dword [rsi + 0x98], 0xffffffff
jne 0x14005c40d
mov rcx, qword [rsi + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x14005c404
mov rbx, r8
lea r9, [rsp + 0x60]
mov r8d, 0x2000000
xor r12d, r12d
cmp rbx, r8
mov qword [rsp + 0x20], r12
mov edi, r12d
cmovl r8d, ebp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005c33e
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14005c336
add rdi, rax
sub rbx, rax
cmp rdi, rbp
jge 0x14005c336
mov rcx, qword [rsi + 0x78]
lea rdx, [rdi + r14]
mov r8d, 0x2000000
mov qword [rsp + 0x20], r12
cmp rbx, r8
lea r9, [rsp + 0x60]
cmovl r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14005c2f5
test rdi, rdi
je 0x14005c33e
mov rax, rdi
jmp 0x14005c41b
mov edx, 0xffffffff
lea rcx, [rsp + 0x78]
call fcn.14004d310
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.140054dd0
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x14005c3f5
cmp eax, 0xffffffff
je 0x14005c404
sub eax, 1
mov dword [rcx], eax
jne 0x14005c404
mov rcx, qword [rsp + 0x78]
jmp 0x14005c3f5
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
cmp rax, 0xffffffffffffffff
je 0x14005c40d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
add eax, 0xfffffffe
cmp eax, 1
ja 0x14005c40d
mov rcx, qword [rsi + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x14005c40d
mov edx, 0xffffffff
lea rcx, [rsp + 0x60]
call fcn.14004d480
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.140054dd0
mov rcx, qword [rsp + 0x60]
mov edx, dword [rcx]
test edx, edx
je 0x14005c3f5
cmp edx, 0xffffffff
je 0x14005c404
sub edx, 1
mov dword [rcx], edx
jne 0x14005c404
mov rcx, qword [rsp + 0x60]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140014460
mov rax, 0xffffffffffffffff
jmp 0x14005c41b
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.140056740
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140056740
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push r12
push r13
sub rsp, 0x20
mov r13, qword [rcx + 0x18]
mov rbp, r8
mov r12, rdx
mov rsi, rcx
test r8, r8
js 0x1400568c4
mov qword [rsp + 0x58], rdi
xor ebx, ebx
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
cmp qword [rcx + 0x70], rbx
je 0x14005680c
mov r15b, 1
mov r9, qword [rsi + 0x70]
lea rcx, [rbx + r12]
mov r8, rbp
mov edx, 1
sub r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsi + 0x70]
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
setne r14b
test r15b, r15b
je 0x1400567d9
test r14b, r14b
je 0x1400567d9
test rdi, rdi
jne 0x1400567d9
mov rcx, qword [rsi + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, qword [rsi + 0x70]
xor r8d, r8d
mov edx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
xor r15b, r15b
jmp 0x1400567dc
add rbx, rdi
test r14b, r14b
jne 0x1400568a6
test rdi, rdi
jne 0x1400567fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x140056802
xor ecx, ecx
cmp rbx, rbp
setl cl
test ecx, ecx
jne 0x140056780
jmp 0x140056857
cmp dword [rcx + 0x98], 0xffffffff
je 0x14005685c
nop word [rax + rax]
mov ecx, dword [rsi + 0x98]
lea rdx, [rbx + r12]
mov r8d, 0x7fffffff
mov rax, rbp
sub rax, rbx
cmp rax, r8
cmovb r8d, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
movsxd rcx, eax
test eax, eax
jle 0x140056852
add rbx, rcx
cmp rbx, rbp
jl 0x140056820
cmp ecx, 0xffffffff
jne 0x1400568a6
test rbx, rbx
jne 0x1400568a6
mov rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov edx, ebx
call fcn.14004d480
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r13
call fcn.140054dd0
mov rcx, qword [rsp + 0x50]
mov edx, dword [rcx]
test edx, edx
je 0x140056898
cmp edx, ebx
je 0x1400568a6
sub edx, 1
mov dword [rcx], edx
jne 0x1400568a6
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov r15, qword [rsp + 0x68]
mov rax, rbx
mov r14, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
mov edx, 0x16
lea rcx, [rsp + 0x50]
call fcn.14004d480
mov r8, rax
mov edx, 1
mov rcx, r13
call fcn.140054dd0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x1400568ff
cmp eax, 0xffffffff
je 0x14005690d
sub eax, 1
mov dword [rcx], eax
jne 0x14005690d
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x140057420
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, rdx
mov rdi, rcx
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rsi, r8
call fcn.1400555b0
mov rcx, rax
call fcn.14001f0a0
lea rdx, [rsp + 0x58]
mov rcx, rdi
mov rbx, rax
call fcn.1400555b0
mov rcx, rax
call fcn.14001f0a0
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rcx, qword [rsp + 0x58]
test eax, eax
setne bl
mov eax, dword [rcx]
test eax, eax
je 0x140057498
cmp eax, 0xffffffff
je 0x1400574a6
sub eax, 1
mov dword [rcx], eax
jne 0x1400574a6
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400574c2
cmp eax, 0xffffffff
je 0x1400574d0
sub eax, 1
mov dword [rcx], eax
jne 0x1400574d0
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
test bl, bl
jne 0x1400574ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], 2
mov rcx, qword [rsp + 0x58]
mov qword [rsi], rcx
mov rsi, qword [rsp + 0x48]
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400578a0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rbp
push rdi
lea rbp, [r11 - 0x178]
sub rsp, 0x268
mov rax, qword [0x1400e4cb8]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov qword [r11 + 0x10], rbx
lea rdx, [rsp + 0x40]
mov qword [r11 - 0x18], r14
mov rdi, rcx
lea r14, [0x140062cf8]
mov ecx, 0x104
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test eax, eax
je 0x140057a21
cmp ebx, 0x104
jbe 0x1400579b5
mov eax, 2
mov qword [rsp + 0x290], rsi
mul rbx
mov rdx, 0xffffffffffffffff
cmovo rax, rdx
mov rcx, rax
call fcn.14005fed0
mov rdx, rax
mov ecx, 0x104
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400579a3
mov r8d, ebx
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.140019f60
mov rbx, qword [rax]
mov qword [rax], r14
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14005796b
cmp eax, 0xffffffff
je 0x140057979
sub eax, 1
mov dword [rcx], eax
jne 0x140057979
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x20], rbx
mov eax, dword [rcx]
test eax, eax
je 0x140057995
cmp eax, 0xffffffff
je 0x1400579a3
sub eax, 1
mov dword [rcx], eax
jne 0x1400579a3
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rcx, rsi
call fcn.14005f88c
mov rsi, qword [rsp + 0x290]
jmp 0x140057a21
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140019f60
mov rbx, qword [rax]
mov qword [rax], r14
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x1400579e9
cmp eax, 0xffffffff
je 0x1400579f7
sub eax, 1
mov dword [rcx], eax
jne 0x1400579f7
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x20], rbx
mov eax, dword [rcx]
test eax, eax
je 0x140057a13
cmp eax, 0xffffffff
je 0x140057a26
sub eax, 1
mov dword [rcx], eax
jne 0x140057a21
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rbx, qword [rsp + 0x20]
cmp dword [rbx + 4], 2
mov r14, qword [rsp + 0x260]
jl 0x140057a94
mov rax, qword [rbx + 0x10]
cmp word [rax + rbx + 2], 0x3a
jne 0x140057a94
movzx ecx, word [rax + rbx]
call fcn.14001e720
mov ebx, eax
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 4]
test edx, edx
jg 0x140057a6c
mov edx, 1
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x1f]
call fcn.14001d660
jmp 0x140057a87
cmp dword [rax], 1
ja 0x140057a78
cmp qword [rax + 0x10], 0x18
je 0x140057a8c
inc edx
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.14001bda0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x10]
mov word [rax + rcx], bx
movzx r8d, byte [rsp + 0x28]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140054e80
mov rcx, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x288]
mov eax, dword [rcx]
test eax, eax
je 0x140057acb
cmp eax, 0xffffffff
je 0x140057ad9
sub eax, 1
mov dword [rcx], eax
jne 0x140057ad9
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rax, rdi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14005f920
add rsp, 0x268
pop rdi
pop rbp
ret
Function at 0x140058d50
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x1400e4cb8]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rax, qword [rcx]
mov rdi, rdx
mov qword [rsp + 0x20], rax
mov r8d, dword [rax]
lea ecx, [r8 + 1]
cmp ecx, 1
jbe 0x140058d91
lea ecx, [r8 + 1]
mov dword [rax], ecx
mov rax, qword [rsp + 0x20]
cmp dword [rax + 4], 2
jne 0x140058e01
mov rcx, qword [rax + 0x10]
cmp word [rcx + rax + 2], 0x3a
jne 0x140058e01
cmp dword [rax], 1
ja 0x140058db4
mov ecx, dword [rax + 8]
btr ecx, 0x1f
cmp ecx, 4
jae 0x140058dcb
mov r8b, 1
lea rcx, [rsp + 0x20]
mov edx, 4
call fcn.14001bda0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x10]
movsxd rdx, dword [rax + 4]
lea r8, [rcx + rdx*2]
mov ecx, 0x5c
mov word [r8 + rax], cx
mov rax, qword [rsp + 0x20]
inc dword [rax + 4]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x10]
movsxd rdx, dword [rax + 4]
lea r8, [rcx + rdx*2]
xor ecx, ecx
mov word [r8 + rax], cx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.14005b9a0
mov rcx, rax
call fcn.14001f0a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rsp + 0x28]
mov ebx, eax
mov edx, dword [rcx]
test edx, edx
je 0x140058e3f
cmp edx, 0xffffffff
je 0x140058e4d
sub edx, 1
mov dword [rcx], edx
jne 0x140058e4d
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
cmp ebx, 0xffffffff
jne 0x140058e85
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x140058e62
cmp eax, 0x20
jne 0x140058e85
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.14005b9a0
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.1400586c0
test al, al
cmovne ebx, dword [rsp + 0x30]
test rdi, rdi
je 0x140058e92
cmp ebx, 0xffffffff
setne al
mov byte [rdi], al
cmp ebx, 0xffffffff
jne 0x140058e9b
xor bl, bl
jmp 0x140058ea1
shr ebx, 4
and bl, 1
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x140058ebd
cmp eax, 0xffffffff
je 0x140058ecb
sub eax, 1
mov dword [rcx], eax
jne 0x140058ecb
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
movzx eax, bl
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14005f920
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x290
pop rdi
ret