joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400134d8
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rax, qword [0x14007e4a8]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov rdi, rcx
xor ebx, ebx
cmp dword [rcx + 0x20], ebx
jne 0x140013511
xor eax, eax
jmp 0x140013736
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov r8d, 3
lea rcx, [rsp + 0x60]
call fcn.1400132f4
nop
mov esi, 0x104
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x320]
call fcn.140021f80
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x210]
call fcn.140021f80
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov r8, rax
mov edx, esi
lea rcx, [rbp + 0x320]
lea rax, [rbp + 0x320]
sub r8, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140013593
mov al, byte [r8 + rcx]
test al, al
je 0x140013593
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140013574
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], bl
mov r8, rsi
lea rcx, [rbp + 0x210]
lea rax, [rbp + 0x210]
mov r9, qword [rsp + 0x60]
sub r9, rax
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x1400135d8
mov al, byte [r9 + rcx]
test al, al
je 0x1400135d8
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x1400135b9
lea rax, [rcx - 1]
test r8, r8
cmovne rax, rcx
mov byte [rax], bl
lea rcx, [rbp + 0x210]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea r8, [0x140060f3c]
mov rdx, rsi
lea rcx, [rbp + 0x210]
call fcn.14001342c
mov rax, qword [rdi + 8]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
or dword [rsp + 0x38], 0xffffffff
lea rcx, [0x1400137a0]
mov qword [rsp + 0x30], rcx
lea rcx, [0x140013758]
mov qword [rsp + 0x28], rcx
lea rcx, [0x1400137a8]
mov qword [rsp + 0x20], rcx
lea r9, [0x140013798]
lea r8, [fcn.140013760]
lea rdx, [0x1400137b8]
lea rcx, [0x1400137b0]
call rax
mov rsi, rax
test rax, rax
je 0x140013720
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x100]
call fcn.140021f80
mov rax, qword [rdi + 0x10]
lea rcx, [rbp + 0x100]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
lea rcx, [0x1400137c0]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea r8, [rbp + 0x210]
lea rdx, [rbp + 0x320]
mov rcx, rsi
call rax
mov rax, qword [rdi + 0x18]
mov rcx, rsi
call rax
lea rcx, [rbp + 0x104]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x140013720
cmp dword [rbp + 0x100], ebx
je 0x140013712
lea rax, [rbp - 8]
mov qword [rbp - 0x10], rax
mov r8d, 3
lea rdx, [rbp + 0x104]
lea rcx, [rbp - 0x10]
call fcn.1400131e8
nop
mov rcx, qword [rbp - 0x10]
call fcn.1400095b4
mov ebx, eax
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x10]
cmp rcx, rax
je 0x140013712
call fcn.1400304b0
lea rcx, [rbp + 0x104]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x140013734
call fcn.1400304b0
mov eax, ebx
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.140020250
mov rbx, qword [rsp + 0x570]
add rsp, 0x540
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016170
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
test rdx, rdx
je 0x1400161c3
lea r9, [rsp + 0x38]
mov qword [rsp + 0x38], 0
xor r8d, r8d
lea rcx, [0x140061068]
mov edx, 0x8000
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rbx, qword [rsp + 0x38]
test eax, eax
jns 0x1400161d8
test rbx, rbx
je 0x1400161c3
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, 0x57
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov r9, 0xffffffffffffffff
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140035ad0
mov edi, eax
test rbx, rbx
je 0x1400161fd
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400172e0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x40
mov edi, r8d
mov rax, rdx
mov rbx, rcx
test rdx, rdx
je 0x1400173e3
xor ebp, ebp
cmp bp, word [rdx]
je 0x1400173e3
cmp qword [rcx + 0x50], rbp
je 0x140017318
mov eax, 0xb7
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x60], rsi
mov edx, 0xc0000000
mov dword [rsp + 0x28], LoadRegTypeLib
mov rcx, rax
mov esi, ebp
mov dword [rsp + 0x20], edi
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov rax, qword [rbx + 0x50]
mov qword [rbx + 0x50], rcx
test rax, rax
je 0x140017368
cmp rax, 0xffffffffffffffff
je 0x140017368
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x50]
cmp rcx, 0xffffffffffffffff
jne 0x140017387
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov qword [rbx + 0x50], rbp
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
cmp edi, 3
jne 0x1400173aa
lea r9d, [rdi - 1]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
lea eax, [rdi - 1]
cmp eax, 1
ja 0x1400173d4
lea r9, [rsp + 0x78]
mov word [rsp + 0x68], 0xfeff
mov r8d, 2
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
mov eax, 0x57
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
Function at 0x140018d10
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rsi, rcx
mov rcx, qword [rcx + 0x68]
mov qword [rax - 0x10], r12
mov r12, rdx
mov qword [rax - 0x18], r13
xor r13d, r13d
mov qword [rax - 0x20], r14
mov ebx, r13d
mov qword [rax - 0x28], r15
mov r14d, r9d
mov qword [rax - 0x30], rbx
mov r15, r8
mov dword [rax + 8], r13d
mov dword [rax - 0x38], r13d
test rcx, rcx
je 0x140018d62
mov edx, 0x1b58
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
mov edi, 0x57
call qword [rsi + 0x98]
test al, al
je 0x140018e62
mov qword [rsp + 0x90], rbp
mov rbp, qword [rsp + 0xa8]
test rbp, rbp
je 0x140018e5a
cmp r13w, word [rbp]
je 0x140018e5a
mov rcx, rsi
call fcn.1400173f0
mov edi, eax
test eax, eax
je 0x140018db5
cmp eax, 0xb7
jne 0x140018e5a
lea rax, [rsp + 0x48]
mov r9d, r14d
mov qword [rsp + 0x38], rax
mov r8, r15
lea rax, [rsp + 0x80]
mov rdx, r12
mov qword [rsp + 0x30], rax
mov rcx, rsi
mov eax, dword [rsp + 0xa0]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
call fcn.140015940
mov rbx, qword [rsp + 0x48]
mov edi, eax
test eax, eax
jne 0x140018e5a
test rbx, rbx
jne 0x140018e02
lea edi, [rax + 0xe]
jmp 0x140018e5a
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], r13w
lea rax, [rax + 1]
jne 0x140018e10
mov rcx, qword [rsi + 0x50]
lea r8d, [rax + rax]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test byte [rsi + 0x7c], 1
mov ebp, eax
je 0x140018e4e
cmp r13w, word [rbx]
je 0x140018e4e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test ebp, ebp
jne 0x140018e5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbp, qword [rsp + 0x90]
mov rcx, qword [rsi + 0x50]
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x68]
lea rax, [rcx - 1]
mov qword [rsi + 0x50], r13
mov r13, qword [rsp + 0x60]
cmp rax, 0xfffffffffffffffd
ja 0x140018e8e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140018e9b
mov rcx, rbx
call fcn.1400304b0
mov rcx, qword [rsi + 0x68]
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x88]
test rcx, rcx
je 0x140018eba
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
add rsp, 0x70
pop rdi
ret
Function at 0x140018ed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140018f45
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140018f45
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140018f35
nop
cmp rbx, rcx
jae 0x140018f45
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140018f20
cmp rbx, rcx
jae 0x140018f45
cmp word [rbx], 0
je 0x140018f45
mov rax, rbx
jmp 0x140018f47
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001c680
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
xor r15d, r15d
mov qword [rsp + 0x60], r15
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x140061068]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jns 0x14001c6cd
lea eax, [r15 + 0x57]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x68], rdi
mov rcx, 0xffffffffffffffff
test rdi, rdi
je 0x14001c7ca
mov rbx, rcx
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14001c6f0
test ebx, ebx
je 0x14001c7ca
mov r9, qword [rsi]
mov r14d, dword [r9 - 0x10]
mov rbp, rdi
sub rbp, r9
sar rbp, 1
test ebx, ebx
js 0x14001c84c
mov ecx, 1
sub ecx, dword [r9 - 8]
mov eax, dword [r9 - 0xc]
sub eax, ebx
or eax, ecx
jge 0x14001c73a
mov edx, ebx
mov rcx, rsi
call fcn.140014650
mov r9, qword [rsi]
movsxd r8, ebx
add r8, r8
cmp rbp, r14
ja 0x14001c776
lea rdx, [r9 + rbp*2]
test r8, r8
je 0x14001c7ae
test rdx, rdx
jne 0x14001c760
call fcn.1400309c0
mov dword [rax], 0x16
jmp 0x14001c7a9
movsxd rax, dword [r9 - 0xc]
add rax, rax
cmp rax, r8
jb 0x14001c79e
mov rcx, r9
call fcn.140022140
jmp 0x14001c7ae
movsxd rax, dword [r9 - 0xc]
add rax, rax
test r8, r8
je 0x14001c7ae
mov rcx, r9
cmp rax, r8
jb 0x14001c794
mov rdx, rdi
call fcn.140022140
jmp 0x14001c7ae
mov r8, rax
xor edx, edx
call fcn.140021f80
call fcn.1400309c0
mov dword [rax], 0x22
call fcn.14002fe2c
mov rax, qword [rsi]
cmp ebx, dword [rax - 0xc]
jg 0x14001c84c
mov dword [rax - 0x10], ebx
movsxd rcx, ebx
mov rax, qword [rsi]
mov word [rax + rcx*2], r15w
jmp 0x14001c820
mov r8, qword [rsi]
lea rdx, [r8 - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14001c820
mov eax, dword [rdx + 0x10]
shr eax, 0x1f
test al, al
je 0x14001c7f8
cmp dword [r8 - 0xc], 0
jl 0x14001c841
mov dword [r8 - 0x10], r15d
mov rax, qword [rsi]
mov word [rax], r15w
jmp 0x14001c820
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001c80b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14001c82e
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070057
call fcn.14000b644
nop
mov ecx, 0x80070057
call fcn.14000b644
int3

Function at 0x14003954c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140039378
Function at 0x14003eb68
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14003e88e
call fcn.1400309c0
mov dword [rax], 0x16
call fcn.14002fe2c
jmp 0x14003e9d9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14003e9d9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14003e9d9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14003e8bd
lock or dword [rcx + 0x14], 0x10
jmp 0x14003e9d9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14003e8d1
call fcn.14003ef90
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x14003e8e1
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x14003e8e4
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.14003e2e4
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.140033b94
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14003e9c7
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14003e975
mov rcx, rbx
call fcn.14003e2e4
cmp eax, 0xffffffff
je 0x14003e960
mov rcx, rbx
call fcn.14003e2e4
cmp eax, 0xfffffffe
je 0x14003e960
mov rcx, rbx
call fcn.14003e2e4
movsxd rdi, eax
lea r14, [0x140081d80]
mov rcx, rbx
sar rdi, 6
call fcn.14003e2e4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14003e967
lea rdx, [0x14007e7e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14003e975
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14003e999
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14003e999
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14003e999
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x14003e9b7
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14003e9c2
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x14003e9de
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14003e858
Function at 0x14004ab60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14004ab86
xor eax, eax
cmp ax, word [rcx]
je 0x14004ab86
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004ab86
test al, 0x10
je 0x14004ab86
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x14004ba50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
call fcn.140014910
mov rcx, rax
test rax, rax
je 0x14004bbe5
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
xor ebp, ebp
mov edi, ebp
nop dword [rax + rax]
lea edx, [rdi + 1]
test edx, edx
js 0x14004bbda
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x14004babb
lea rcx, [rsp + 0x48]
call fcn.140014650
mov rbx, qword [rsp + 0x48]
cmp dword [rbx - 8], 1
jle 0x14004bad3
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.140014170
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
mov ecx, dword [rbx - 0xc]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
je 0x14004bb5c
test rbx, rbx
jne 0x14004baee
mov eax, ebp
jmp 0x14004bb02
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.140030180
test eax, eax
js 0x14004bbda
cmp eax, dword [rbx - 0xc]
jg 0x14004bbda
mov dword [rbx - 0x10], eax
mov eax, eax
mov word [rbx + rax*2], bp
cmp edi, dword [rbx - 0x10]
ja 0x14004ba90
lea rcx, [rbx - 0x18]
call fcn.140015590
add rax, 0x18
mov qword [rsi], rax
mov rdi, 0xffffffffffffffff
lock xadd dword [rbx - 8], edi
sub edi, 1
jg 0x14004bb4c
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
call fcn.140014910
nop
mov rcx, rax
test rax, rax
je 0x14004bbcf
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
lea rdx, [0x14005df1c]
mov rdi, 0xffffffffffffffff
cmp rdx, 0x10000
jae 0x14004bb9b
movzx edx, dx
mov rcx, rsi
call fcn.140016f50
jmp 0x14004bbb6
mov rax, rdi
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x14004bba0
mov r8d, eax
mov rcx, rsi
call fcn.140018b00
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14004bb4c
mov rcx, qword [rdx]
mov rax, qword [rcx]
jmp 0x14004bb49
mov ecx, 0x80004005
call fcn.14000b644
int3
mov ecx, 0x80070057
call fcn.14000b644
nop
mov ecx, 0x80004005
call fcn.14000b644
int3
Function at 0x14000b7b0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x14008b058]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
cmp dword [r8 + 0x18], 0x201
mov rbx, r8
mov rdi, rcx
jne 0x14000b8ad
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x208
call fcn.140014220
mov rcx, qword [rbx]
lea r9, [rsp + 0x20]
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x24], rax
mov edx, 0x44b
mov eax, dword [rbx + 0x2c]
mov dword [rsp + 0x20], eax
mov eax, dword [rbx + 0x30]
mov dword [rsp + 0x24], eax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
call qword [sym.imp.USER32.dll_SendMessageW]
and dword [rsp + 0x34], 0
lea rax, [rbp - 0x60]
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x30]
and qword [rsp + 0x40], 0
xorps xmm1, xmm1
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
xor eax, eax
mov dword [rsp + 0x30], WSAStartup
mov qword [rbp - 0x68], rax
movdqa xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], 5
movups xmmword [rsp + 0x68], xmm1
movups xmmword [rsp + 0x78], xmm1
movups xmmword [rbp - 0x78], xmm1
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.USER32.dll_HideCaret]
mov rax, qword [rdi + 0x140]
cmp rax, qword [rdi + 0x148]
je 0x14000b8b1
mov rcx, qword [rax]
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_SetFocus]
jmp 0x14000b8b1
and dword [r9], 0
xor eax, eax
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400117c0
add rsp, 0x2c0
pop rdi
pop rbx
pop rbp
ret
Function at 0x14001d964
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x14008b058]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor esi, esi
mov rbx, rdx
test rdx, rdx
jne 0x14001d6a3
call fcn.140020c30
mov dword [rax], socket
call fcn.1400180e0
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400117c0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rcx, rcx
je 0x14001d66a
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001d711
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x14001d6e4
cmp eax, 3
jbe 0x14001d701
cmp eax, 8
je 0x14001d6f1
cmp eax, 0x12
je 0x14001d701
call fcn.140020c30
mov dword [rax], socket
jmp 0x14001d67a
call fcn.140020c30
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
jmp 0x14001d67a
call fcn.140020c30
mov dword [rax], 2
jmp 0x14001d67a
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, esi
mov dword [rbx], eax
call fcn.14001d8ac
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.14001d8ac
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.14001d8ac
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.140029f20
test eax, eax
jne 0x14001d76f
mov rax, rdi
jmp 0x14001d67e
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140018130
int3
jmp 0x14001d63c
Function at 0x14001d96c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x14008b058]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edi, edi
mov rbx, rdx
test rcx, rcx
jne 0x14001d7e1
call fcn.140020c30
mov dword [rax], socket
call fcn.1400180e0
or eax, 0xffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400117c0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret
cmp rcx, 0xffffffffffffffff
je 0x14001d7ad
test rbx, rbx
je 0x14001d7ad
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14001d83c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x14001d815
cmp eax, 3
jbe 0x14001d82f
cmp eax, 8
je 0x14001d822
cmp eax, 0x12
je 0x14001d82f
call fcn.140020c30
mov dword [rax], socket
jmp 0x14001d7bd
call fcn.140020c30
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
jmp 0x14001d7bd
call fcn.140020c30
mov dword [rax], 2
jmp 0x14001d7bd
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, edi
mov dword [rbx], eax
call fcn.14001d8ac
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.14001d8ac
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.14001d8ac
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.140029f20
test eax, eax
je 0x14001d7c0
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140018130
int3
jmp 0x14001d784

Function at 0x14001d974
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001d994
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140020bc0
or eax, 0xffffffff
jmp 0x14001d996
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001da84
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14001daa4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140020bc0
or eax, 0xffffffff
jmp 0x14001daa6
xor eax, eax
add rsp, 0x28
ret

Function at 0x140024ac8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400248f4
Function at 0x140039c20
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x430
mov rax, qword [0x14008b058]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x400
call fcn.140014220
mov rcx, qword [rbx + 0xb8]
lea rdx, [rsp + 0x20]
mov r8d, 0x200
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rbx + 0xe8]
lea rdx, [rsp + 0x20]
call fcn.1400024d0
mov rcx, qword [rbx + 8]
mov edx, 1
call qword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1400117c0
add rsp, 0x430
pop rbx
ret