joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010270
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001029d
xor eax, eax
jmp 0x1400103fa
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400102c8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400102c8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x1400103fa
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400103ed
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14001030b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140010336
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400103f2
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400103a5
sub eax, 1
je 0x1400103a5
cmp eax, 2
jne 0x1400103ed
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400103f2
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400103d3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400103ed
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400103f2
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1402474e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140010820
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400108f3
cmp byte [rcx + 0x71], 0
je 0x1400108f3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400108ef
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400108b4
sub eax, 1
je 0x1400108b8
cmp eax, 2
jne 0x1400108ef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1402474e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400108e6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400108ef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001089c
xor al, al
jmp 0x14001089c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1402474e0
add rsp, 0x60
pop rbx
ret
Function at 0x140015bc0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140015c4e
test rbx, rbx
je 0x140015c16
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, reloc.WS2_32.dll_inet_addr
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140015c00
test eax, eax
jns 0x140015c6f
test rbx, rbx
je 0x140015c74
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140015d72
test rbx, rbx
jne 0x140015c7b
xor eax, eax
jmp 0x140015d72
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x140015d52
mov eax, edi
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rbx
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], r14b
jne 0x140015cd0
lea rcx, [rsp + 0x28]
call fcn.140002ef0
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x140015cf0
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140015d88
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140015d48
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015d43
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015dd1
call fcn.140247544
inc edi
cmp edi, dword [rbx]
jb 0x140015c94
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402474e0
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140015ddd
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015dd8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015dd8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140247544
mov rax, rdi
jmp 0x140015d65
Function at 0x1400183c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rsi, rcx
mov rdi, qword [rdx]
mov rax, qword [rdi]
mov rbp, qword [rax + 0x1e8]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x60], rcx
test rcx, rcx
je 0x1400183f7
mov rax, qword [rcx]
call qword [rax]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call rbp
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x220]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x318]
mov rdi, rax
test rax, rax
jne 0x140018440
xor r9d, r9d
lea r8, str.Error
lea rdx, str.Failed_to_get_window_handle
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
jmp 0x1400184e3
mov qword [0x14035aa78], rdi
mov edx, 0xfffffff0
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
and rax, 0xffffffffff3bffff
mov r8, rax
mov edx, 0xfffffff0
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov edx, 0xffffffec
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
and rax, 0xfffffffffffdfdfe
mov r8, rax
mov edx, 0xffffffec
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov dword [rsp + 0x30], 0x24
mov dword [rsp + 0x28], 0x2bc
mov dword [rsp + 0x20], 0x3e8
xor edx, edx
mov r9d, Ordinal_105
mov r8d, r9d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowPos]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rsi
lea r8, [0x1400182f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400184f2
mov rax, qword [rcx]
call qword [rax + htons]
nop
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400210f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140021124
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140021110
ret
Function at 0x14002b0e0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14002b1ac
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14002b1ac
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14002b1c5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14002b19c
cmp byte [rax], 0x5c
jne 0x14002b196
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14002b196
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14002b182
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14002b193
test r8b, 0x10
jne 0x14002b196
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14002b196
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140026d90
test edi, edi
jne 0x14002b100
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140026d80
int3

Function at 0x14002e9c0
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
mov eax, r8d
mov r9, rdx
mov r8, rcx
mov edx, eax
mov rcx, r9
jmp fcn.14007a050
Function at 0x140042440
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov esi, dword [rdx + 0x10]
mov r14, r8
mov rdi, rdx
mov rbx, rcx
cmp esi, dword [r8 + 0x10]
jne 0x14004249e
test esi, esi
jne 0x140042491
xor r9d, r9d
mov dword [rcx + 0x10], r9d
cmp byte [rcx + 0x19], r9b
je 0x140042565
mov qword [rcx + 0x20], r9
mov al, 1
mov dword [rcx + 0x14], r9d
mov byte [rcx + 0x19], r9b
jmp 0x1400424a0
cmp byte [rcx + 0x18], 0xdb
je 0x1400424bb
xor ecx, ecx
call fcn.140030ce0
xor al, al
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
cmp dword [rcx + 0x14], esi
jae 0x140042517
mov ecx, esi
call fcn.14003be80
mov rbp, rax
test rax, rax
je 0x14004249e
mov eax, dword [rbx + 0x10]
test eax, eax
je 0x1400424f8
cmp qword [rbx + 0x20], 0
je 0x1400424f8
cmp eax, esi
jbe 0x1400424e8
xor ecx, ecx
call fcn.140030ce0
mov r8d, dword [rbx + 0x10]
mov rcx, rbp
mov rdx, qword [rbx + 0x20]
call sub.VCRUNTIME140.dll_memcpy
cmp byte [rbx + 0x19], 0
jne 0x14004250c
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14004250c
call fcn.140247544
mov qword [rbx + 0x20], rbp
mov dword [rbx + 0x14], esi
mov byte [rbx + 0x19], 0
mov eax, dword [rdi + 0x10]
mov ecx, dword [rbx + 0x14]
mov dword [rbx + 0x10], eax
cmp eax, ecx
jbe 0x140042527
mov dword [rbx + 0x10], ecx
cmp qword [rbx + 0x20], 0
je 0x14004249e
xor r9d, r9d
cmp dword [rdi + 0x10], r9d
jbe 0x140042565
nop dword [rax + rax]
mov rax, qword [rdi + 0x20]
mov rcx, qword [r14 + 0x20]
mov r8d, r9d
inc r9d
movzx edx, byte [r8 + rcx]
xor dl, byte [rax + r8]
mov rax, qword [rbx + 0x20]
mov byte [r8 + rax], dl
cmp r9d, dword [rdi + 0x10]
jb 0x140042540
mov al, 1
jmp 0x1400424a0
Function at 0x140045060
Capabilities:
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x318
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov rbx, r9
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
mov dword [r8], 0
mov dword [rdx], 0xffffffff
call fcn.14004b350
test al, al
je 0x1400450bc
test rbx, rbx
je 0x1400450b5
mov rax, qword [rbx]
lea rdx, str.GetAttributes:_filename_is_empty
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x140045197
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call fcn.140047680
nop
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.140048390
mov r8b, 0x5c
mov dl, 0x2f
lea rcx, [rsp + 0x20]
call fcn.14004bab0
lea rcx, [rsp + 0x20]
call fcn.14004a3f0
test eax, eax
jle 0x140045162
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x190]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x190]
call fcn.140047680
nop
mov r8, rbx
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x20]
call fcn.1400455c0
lea rcx, [rsp + 0x190]
call fcn.14004b100
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rdi], eax
lea rcx, [rsp + 0x190]
call fcn.1400476e0
jmp 0x140045177
lea rcx, [rsp + 0x20]
call fcn.14004b100
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rdi], eax
cmp dword [rdi], 0xffffffff
jne 0x140045187
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
cmp dword [rdi], 0xffffffff
setne bl
lea rcx, [rsp + 0x20]
call fcn.1400476e0
movzx eax, bl
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.1402474e0
add rsp, 0x318
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140046240
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x13a0]
mov eax, 0x14a0
call fcn.140248160
sub rsp, rax
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rbp + 0x1390], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x30]
call fcn.140047680
nop
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140048390
mov r8b, 0x5c
mov dl, 0x2f
lea rcx, [rsp + 0x30]
call fcn.14004bab0
lea rcx, [rsp + 0x30]
call fcn.14004a3f0
cmp eax, 0x104
jle 0x1400463d9
xor edx, edx
mov r8d, 0x170
lea rcx, [rbp + 0xa0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xa0]
call fcn.140047680
nop
lea rcx, [rbp + 0xa0]
call fcn.14004ccd0
lea rcx, [rsp + 0x30]
call fcn.14004b100
mov rcx, rax
lea r9, [rsp + 0x20]
lea r8, [rbp + 0x380]
mov edx, 0x800
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rcx, [rbp + 0xa0]
test eax, eax
je 0x14004632e
lea rdx, [rbp + 0x380]
call fcn.14004c480
mov bl, 1
jmp 0x14004633a
lea rdx, [rsp + 0x30]
call fcn.140048d90
xor bl, bl
xor edx, edx
mov r8d, 0x170
lea rcx, [rbp + 0x210]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x210]
call fcn.140047680
nop
test bl, bl
je 0x140046372
lea rdx, [0x1402555c8]
lea rcx, [rbp + 0x210]
call fcn.140048220
lea rcx, [rbp + 0xa0]
call fcn.14004acf0
mov rdx, rax
lea rcx, [rbp + 0x210]
call fcn.140048220
lea rcx, [rbp + 0x210]
call fcn.14004b100
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test eax, eax
jne 0x1400463b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
cmp eax, 2
cmove ebx, ecx
test ebx, ebx
setne bl
lea rcx, [rbp + 0x210]
call fcn.1400476e0
nop
lea rcx, [rbp + 0xa0]
call fcn.1400476e0
jmp 0x14004642d
lea rcx, [rsp + 0x30]
call fcn.14004b100
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test eax, eax
jne 0x140046428
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test rdi, rdi
je 0x14004641d
mov edx, eax
mov rcx, rdi
call fcn.14004e5d0
lea r8, [rsp + 0x30]
lea rdx, str.failedToDeleteFilepath
mov rcx, rdi
call fcn.14004dd40
mov ecx, 1
cmp esi, 2
cmove ebx, ecx
test ebx, ebx
setne bl
lea rcx, [rsp + 0x30]
call fcn.1400476e0
movzx eax, bl
mov rcx, qword [rbp + 0x1390]
xor rcx, rsp
call fcn.1402474e0
mov rbx, qword [rsp + 0x14d0]
add rsp, 0x14a0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140046830
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x1850
call fcn.140248160
sub rsp, rax
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rsp + 0x1840], rax
mov rbx, rcx
lea rdx, [rsp + 0x830]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x14004688a
lea rdx, [rsp + 0x20]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14004bf00
jmp 0x14004689a
lea rdx, [rsp + 0x830]
mov rcx, rbx
call fcn.14004c480
mov rcx, qword [rsp + 0x1840]
xor rcx, rsp
call fcn.1402474e0
add rsp, 0x1850
pop rbx
ret
Function at 0x1400468d0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x170
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x90]
call fcn.140047680
nop
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call fcn.140047680
nop
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.140048390
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140048390
mov r8b, 0x5c
mov dl, 0x2f
lea rcx, [rbp + 0x90]
call fcn.14004bab0
mov r8b, 0x5c
mov dl, 0x2f
lea rcx, [rsp + 0x20]
call fcn.14004bab0
lea rcx, [rbp + 0x90]
call fcn.14004b350
test al, al
je 0x1400469c8
lea rcx, [rsp + 0x20]
call fcn.14004b350
test al, al
je 0x1400469c8
lea rcx, [rsp + 0x20]
call fcn.14004b100
mov rbx, rax
lea rcx, [rbp + 0x90]
call fcn.14004b100
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
jmp 0x140046a79
xor edx, edx
mov r8d, 0x170
lea rcx, [rbp + 0x370]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x370]
call fcn.140047680
nop
xor edx, edx
mov r8d, 0x170
lea rcx, [rbp + 0x200]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x200]
call fcn.140047680
nop
xor r8d, r8d
lea rdx, [rbp + 0x370]
lea rcx, [rbp + 0x90]
call fcn.1400455c0
xor r8d, r8d
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x20]
call fcn.1400455c0
lea rcx, [rbp + 0x200]
call fcn.14004b100
mov rbx, rax
lea rcx, [rbp + 0x370]
call fcn.14004b100
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
lea rcx, [rbp + 0x200]
call fcn.1400476e0
nop
lea rcx, [rbp + 0x370]
call fcn.1400476e0
test bl, bl
jne 0x140046a8b
test rsi, rsi
je 0x140046a8b
mov rcx, rsi
call fcn.14004e0e0
nop
lea rcx, [rsp + 0x20]
call fcn.1400476e0
nop
lea rcx, [rbp + 0x90]
call fcn.1400476e0
movzx eax, bl
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.1402474e0
mov rbx, qword [rsp + 0x628]
add rsp, 0x5f0
pop rdi
pop rsi
pop rbp
ret
jmp 0x1400468d0
Function at 0x140046ad0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x170
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x90]
call fcn.140047680
nop
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call fcn.140047680
nop
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.140048390
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140048390
mov r8b, 0x5c
mov dl, 0x2f
lea rcx, [rbp + 0x90]
call fcn.14004bab0
mov r8b, 0x5c
mov dl, 0x2f
lea rcx, [rsp + 0x20]
call fcn.14004bab0
lea rcx, [rbp + 0x90]
call fcn.14004b350
test al, al
je 0x1400469c8
lea rcx, [rsp + 0x20]
call fcn.14004b350
test al, al
je 0x1400469c8
lea rcx, [rsp + 0x20]
call fcn.14004b100
mov rbx, rax
lea rcx, [rbp + 0x90]
call fcn.14004b100
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
jmp 0x140046a79
xor edx, edx
mov r8d, 0x170
lea rcx, [rbp + 0x370]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x370]
call fcn.140047680
nop
xor edx, edx
mov r8d, 0x170
lea rcx, [rbp + 0x200]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x200]
call fcn.140047680
nop
xor r8d, r8d
lea rdx, [rbp + 0x370]
lea rcx, [rbp + 0x90]
call fcn.1400455c0
xor r8d, r8d
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x20]
call fcn.1400455c0
lea rcx, [rbp + 0x200]
call fcn.14004b100
mov rbx, rax
lea rcx, [rbp + 0x370]
call fcn.14004b100
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
lea rcx, [rbp + 0x200]
call fcn.1400476e0
nop
lea rcx, [rbp + 0x370]
call fcn.1400476e0
test bl, bl
jne 0x140046a8b
test rsi, rsi
je 0x140046a8b
mov rcx, rsi
call fcn.14004e0e0
nop
lea rcx, [rsp + 0x20]
call fcn.1400476e0
nop
lea rcx, [rbp + 0x90]
call fcn.1400476e0
movzx eax, bl
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.1402474e0
mov rbx, qword [rsp + 0x628]
add rsp, 0x5f0
pop rdi
pop rsi
pop rbp
ret
jmp 0x1400468d0
Function at 0x140047250
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x1a0
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call fcn.140047680
nop
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14004c260
lea rcx, [rsp + 0x20]
call fcn.14004b100
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.1400476e0
mov eax, ebx
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1402474e0
add rsp, 0x1a0
pop rbx
ret

Function at 0x1400472e0
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x1a0
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov edi, edx
mov rbx, rcx
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call fcn.140047680
nop
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14004c260
lea rcx, [rsp + 0x20]
call fcn.14004b100
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.1400476e0
movzx eax, bl
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1402474e0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x1a0
pop rdi
ret
Function at 0x1400657a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x20], 0
mov rbx, rcx
jne 0x14006588d
mov qword [rsp + 0x88], rdi
lea rdx, [rsp + 0x20]
xor edi, edi
mov word [rsp + 0x28], 0x101
mov qword [rsp + 0x20], rdi
mov byte [rsp + 0x2a], dil
call fcn.140065620
mov rax, qword [rsp + 0x20]
test rax, rax
js 0x140065885
cmp byte [0x140357868], dil
mov qword [rsp + 0x30], rax
jne 0x14006580f
call sub.api_ms_win_crt_time_l1_1_0.dll__tzset
mov byte [0x140357868], 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call sub.api_ms_win_crt_time_l1_1_0.dll__localtime64_s
mov eax, dword [rsp + 0x4c]
test eax, eax
jns 0x140065831
xor ecx, ecx
call fcn.140030ce0
mov eax, dword [rsp + 0x4c]
mov ecx, 0x76c
mov word [rbx + 0x1e], di
add ax, cx
mov dword [rbx + 0x24], 0xffffffff
mov word [rbx + 0x10], ax
movzx eax, word [rsp + 0x48]
inc ax
mov byte [rbx + 0x20], 1
mov word [rbx + 0x12], ax
movzx eax, word [rsp + 0x50]
mov word [rbx + 0x14], ax
movzx eax, word [rsp + 0x44]
mov word [rbx + 0x16], ax
movzx eax, word [rsp + 0x40]
mov word [rbx + 0x18], ax
movzx eax, word [rsp + 0x3c]
mov word [rbx + 0x1a], ax
movzx eax, word [rsp + 0x38]
mov word [rbx + 0x1c], ax
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1402474e0
add rsp, 0x70
pop rbx
ret