joyce8/EMBER2024-capa huggingface dataset:
Function at 0x502e80
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.00502000
cmp esi, 1
jne 0x502eaa
mov byte [rbx + 0x1b], 0
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x52aae0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, r8d
mov edx, edx
lea rdx, [rcx + rdx]
cmp rcx, rdx
jae 0x52ab04
movzx r8, byte [rcx]
xor eax, r8d
imul eax, eax, 0x1000193
add rcx, 1
cmp rcx, rdx
jb 0x52aaee
nop
ret

Function at 0x52ab60
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x58], rdx
nop
mov dword [rbp + 0x2c], 1
mov rax, qword [rbp + 0x58]
mov rax, qword [rax + 0x20]
mov ecx, 0xffffffff
cmp rax, rcx
jbe 0x52ab9b
call fcn.0040b380
mov ecx, eax
mov edx, 0x8004667e
lea r8, [rbp + 0x2c]
call sub.WS2_32.DLL_ioctlsocket_1
mov byte [0x0055e8f9], 1
jmp 0x52ac3f
mov rcx, qword [rbp + 0x58]
lea rdx, [rbp + 0x30]
call fcn.004454e0
mov dword [rbp + 0x28], 0
cmp qword [rbp + 0x30], 0
je 0x52abdc
mov rax, qword [rbp + 0x30]
mov eax, dword [rax - 4]
mov dword [rbp + 0x28], eax
cmp dword [rbp + 0x28], 0
jle 0x52ac3f
jmp 0x52ac23
mov rcx, qword [rbp + 0x58]
lea rdx, [rbp + 0x38]
call fcn.004454e0
mov dword [rbp + 0x24], 0
cmp qword [rbp + 0x38], 0
je 0x52ac09
mov rax, qword [rbp + 0x38]
mov eax, dword [rax - 4]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
mov ecx, 1
call sub.kernel32.dll_Sleep
mov rcx, qword [0x0055e850]
call fcn.00444870
mov rax, qword [rbp + 0x58]
cmp byte [rax + 0x1c], 0
jne 0x52abe4
mov rcx, qword [rbp + 0x58]
call fcn.004451e0
mov rcx, qword [rbp + 0x58]
call fcn.0040bb10
mov rax, qword [rbp + 0x58]
cmp byte [rax + 0x1c], 0
jne 0x52abb7
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040edc0
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x14004a4d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14004a4f1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14004a51e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14004a520
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14004a579
test ecx, ecx
jle 0x14004a559
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14004a579
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14004a579
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
cmc
jp 0x1405222e2
adc dl, bl
add edx, ecx
ja 0x1405222f2
invalid
sti
retf 0x49e6
add cl, bh
test dword [rbx - 0x64], ecx
in eax, 0xb0
mov cl, 0x45
invalid
Function at 0x14004a5a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14004a5d1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14004a5e8
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14004a60b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14004a60d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14004a649
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14004a6de
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14004a684
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14004a6be
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14004a6de
cmp rbx, rax
ja 0x14004a690
test rbx, rbx
je 0x14004a6de
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
test edx, edx
mov dl, 0x50
and dl, byte [rsi + 0x30d16d57]
scasd eax, dword [rdi]
push rsp
cmp al, 0xf2
and dword [rcx + riz*8 - 0x48], ebx
test dword [rax], ebx
invalid
scasd eax, dword [rdi]
cwde
cmp dword [rbx], ebp
nop
shl byte [rbx], cl
jrcxz 0x1405221ba
push r10
xor eax, edx
movsxd r8, dword [rdi + r10*8 - 0x33]
jg 0x140522271
add eax, 0x797d73c1
invalid
add dword [rdi - 0x55], esi
ja 0x14052221f
jbe fcn.140522205
leave
invalid
Function at 0x14004ab00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14004ab24
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x14004ab67
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x14004ab67
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x14004ac98
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14004abaa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x14004abd5
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 0x14004ac9d
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
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 0x14004ac4a
sub eax, 1
je 0x14004ac4a
cmp eax, 2
jne 0x14004ac98
movsx ecx, byte [rsp + 0x40]
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 0x14004ac9d
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14004ac7b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14004ac98
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14004ac9d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14004b230
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14004b2f9
cmp byte [rcx + 0x71], 0
je 0x14004b2f9
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14004b2ec
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x14004b2a8
sub eax, 1
je 0x14004b2ac
cmp eax, 2
jne 0x14004b2ec
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14004b2da
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14004b2ec
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x14005d1c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x20], 0
mov rbx, rcx
jne 0x14005d2ad
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.14005d050
mov rax, qword [rsp + 0x20]
test rax, rax
js 0x14005d2a5
cmp byte [0x14046d621], dil
mov qword [rsp + 0x30], rax
jne 0x14005d22f
call sub.api_ms_win_crt_time_l1_1_0.dll__tzset
mov byte [0x14046d621], 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 0x14005d251
xor ecx, ecx
call fcn.14005a1a0
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.1401feaa0
add rsp, 0x70
pop rbx
ret
Function at 0x140069900
Capabilities:
Reference http user-agent string

Disassembly:
push rbx
sub rsp, 0x310
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov rbx, rcx
mov byte [rcx + 0x3821], dl
test dl, dl
je 0x140069a74
mov byte [rcx + 0x3820], 0
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x190]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x190]
call fcn.140053b40
nop
lea rdx, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__rv:91.0__Gecko_20100101_Firefox_91.0
lea rcx, [rsp + 0x190]
call fcn.140058580
lea r8, [rsp + 0x190]
lea rdx, str.User_Agent
mov rcx, rbx
call fcn.140069f00
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call fcn.1400a2490
nop
add rbx, 0x1f08
lea r9, [rsp + 0x20]
lea r8, str.text_html_application_xhtmlxml_application_xml_q0.9_image_webp___q0.8
lea rdx, str.Accept
mov rcx, rbx
call fcn.14010e490
lea r8, [rsp + 0x20]
lea rdx, str.Accept_Language
mov rcx, rbx
call fcn.14010ab90
test al, al
jne 0x1400699f3
lea r9, [rsp + 0x20]
lea r8, str.en_US_en_q0.5
lea rdx, str.Accept_Language
mov rcx, rbx
call fcn.14010e490
lea r8, [rsp + 0x20]
lea rdx, str.Connection
mov rcx, rbx
call fcn.14010ab90
test al, al
jne 0x140069a26
lea r9, [rsp + 0x20]
lea r8, str.keep_alive
lea rdx, str.Connection
mov rcx, rbx
call fcn.14010e490
lea r8, [rsp + 0x20]
lea rdx, str.Upgrade_Insecure_Requests
mov rcx, rbx
call fcn.14010ab90
test al, al
jne 0x140069a5a
lea r9, [rsp + 0x20]
lea r8, [0x1402e4d7c]
lea rdx, str.Upgrade_Insecure_Requests
mov rcx, rbx
call fcn.14010e490
nop
lea rcx, [rsp + 0x20]
call fcn.1400a24c0
nop
lea rcx, [rsp + 0x190]
call fcn.140053ba0
jmp 0x140069a8a
add rcx, 0x1f08
mov r8b, 1
lea rdx, str.User_Agent
call fcn.14010e3b0
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.1401feaa0
add rsp, 0x310
pop rbx
ret
Function at 0x140071250
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x238
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rsp + 0x220], rax
movzx r15d, r9b
mov rdi, r8
mov rbp, rdx
mov r13, rcx
mov r14, qword [rsp + 0x2a0]
mov rbx, qword [rsp + 0x2b0]
mov r12, qword [rsp + 0x2b8]
lea rdx, [rcx + 0x37f8]
mov r8d, 4
mov rcx, rbp
call fcn.140058f80
mov rcx, r14
call fcn.14008eae0
xor esi, esi
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x20], rsi
mov r9d, dword [r13 + 0xf24]
mov r8d, dword [r13 + 0xf20]
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.14010fcc0
nop
mov rcx, r13
call fcn.1400693a0
mov byte [r13 + 0x1f78], 1
call sub.KERNEL32.dll_GetTickCount
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x80], rsi
xor edx, edx
mov r8d, 0x188
lea rcx, [rsp + 0x90]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x78]
call fcn.140110400
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.1400c8860
nop
mov dword [rsp + 0xd4], esi
lea rbx, [r13 + 0x1818]
mov rcx, rdi
call fcn.140056f20
mov rdi, rax
mov rcx, rbp
call fcn.140056f20
mov rdx, rax
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x90]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x38], sil
mov byte [rsp + 0x30], r15b
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r13
lea r9, [r13 + 0x1d70]
lea r8, [r13 + 0x35c0]
mov rcx, r13
call fcn.1400d0380
movzx ebx, al
mov ecx, dword [rsp + 0xd4]
mov dword [r13 + 0xfec], ecx
movzx ecx, byte [rsp + 0xc2]
mov byte [r13 + 0x15d3], cl
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [rsp + 0x70]
cmp eax, ecx
jb 0x1400713e9
sub eax, ecx
mov r8d, eax
lea rdx, str.totalElapsedMs
mov rcx, r12
call fcn.1400a12d0
mov rdx, r12
test bl, bl
je 0x140071425
lea rcx, [rsp + 0x78]
call fcn.140110230
lea rcx, [r13 + 0xbf0]
mov r8, qword [r13 + 0x1be8]
lea rdx, str.ContentLength
call fcn.1400a1260
cmp dword [r13 + 0x1be0], 0x190
jl 0x140071432
xor bl, bl
jmp 0x140071432
lea rcx, [r13 + 0x35c0]
call fcn.14010f9d0
nop
lea rcx, [rsp + 0x90]
call fcn.1400c8900
nop
lea rcx, [rsp + 0x78]
call fcn.14010fd10
movzx eax, bl
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1401feaa0
add rsp, 0x238
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14007f530
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.14009d8a0

Function at 0x140090a30
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 rbp, r8
mov rdi, rdx
mov rbx, rcx
cmp esi, dword [r8 + 0x10]
jne 0x140090a8e
test esi, esi
jne 0x140090a81
xor r9d, r9d
mov dword [rcx + 0x10], r9d
cmp byte [rcx + 0x19], r9b
je 0x140090b55
mov qword [rcx + 0x20], r9
mov al, 1
mov dword [rcx + 0x14], r9d
mov byte [rcx + 0x19], r9b
jmp 0x140090a90
cmp byte [rcx + 0x18], 0xdb
je 0x140090aab
xor ecx, ecx
call fcn.14005a1a0
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 0x140090b07
mov ecx, esi
call fcn.140060c20
mov r14, rax
test rax, rax
je 0x140090a8e
mov eax, dword [rbx + 0x10]
test eax, eax
je 0x140090ae8
cmp qword [rbx + 0x20], 0
je 0x140090ae8
cmp eax, esi
jbe 0x140090ad8
xor ecx, ecx
call fcn.14005a1a0
mov r8d, dword [rbx + 0x10]
mov rcx, r14
mov rdx, qword [rbx + 0x20]
call sub.VCRUNTIME140.dll_memcpy
cmp byte [rbx + 0x19], 0
jne 0x140090afc
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140090afc
call fcn.1401fe0ec
mov qword [rbx + 0x20], r14
mov dword [rbx + 0x14], esi
mov byte [rbx + 0x19], 0
mov edx, dword [rdi + 0x10]
mov eax, edx
cmp edx, dword [rbx + 0x14]
cmova eax, dword [rbx + 0x14]
cmp qword [rbx + 0x20], 0
mov dword [rbx + 0x10], eax
je 0x140090a8e
xor r9d, r9d
cmp dword [rdi + 0x10], r9d
jbe 0x140090b55
nop word [rax + rax]
mov rax, qword [rdi + 0x20]
mov rcx, qword [rbp + 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 0x140090b30
mov al, 1
jmp 0x140090a90
Function at 0x140093c20
Capabilities:
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x318
mov rax, qword [0x1403291e8]
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.140057580
test al, al
je 0x140093c7c
test rbx, rbx
je 0x140093c75
mov rax, qword [rbx]
lea rdx, str.GetAttributes:_filename_is_empty
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x140093d57
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call fcn.140053b40
nop
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.140054850
mov r8b, 0x5c
mov dl, 0x2f
lea rcx, [rsp + 0x20]
call fcn.140057ce0
lea rcx, [rsp + 0x20]
call fcn.140056640
test eax, eax
jle 0x140093d22
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x190]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x190]
call fcn.140053b40
nop
mov r8, rbx
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x20]
call fcn.140094120
lea rcx, [rsp + 0x190]
call fcn.140057330
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rdi], eax
lea rcx, [rsp + 0x190]
call fcn.140053ba0
jmp 0x140093d37
lea rcx, [rsp + 0x20]
call fcn.140057330
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rdi], eax
cmp dword [rdi], 0xffffffff
jne 0x140093d47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
cmp dword [rdi], 0xffffffff
setne bl
lea rcx, [rsp + 0x20]
call fcn.140053ba0
movzx eax, bl
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.1401feaa0
add rsp, 0x318
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140094cb0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x310
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call fcn.140053b40
nop
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140054850
mov r8b, 0x5c
mov dl, 0x2f
lea rcx, [rsp + 0x20]
call fcn.140057ce0
lea rcx, [rsp + 0x20]
call fcn.140056640
test eax, eax
jle 0x140094d7d
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x190]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x190]
call fcn.140053b40
nop
xor r8d, r8d
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x20]
call fcn.140094120
lea rcx, [rsp + 0x190]
call fcn.140057330
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
lea rcx, [rsp + 0x190]
call fcn.140053ba0
jmp 0x140094d94
lea rcx, [rsp + 0x20]
call fcn.140057330
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
jne 0x140094dd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140094da9
mov bl, 1
jmp 0x140094dd7
test rdi, rdi
je 0x140094dd2
mov rax, qword [rdi]
mov r8b, 1
lea rdx, str.createDirWin32
mov rcx, rdi
call qword [rax + 0x48]
mov rcx, rdi
call fcn.1400a1c60
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x50]
test ebx, ebx
setne bl
lea rcx, [rsp + 0x20]
call fcn.140053ba0
movzx eax, bl
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.1401feaa0
mov rbx, qword [rsp + 0x330]
add rsp, 0x310
pop rdi
ret
Function at 0x140094f00
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.1401feb50
sub rsp, rax
mov rax, qword [0x1403291e8]
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.140053b40
nop
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140054850
mov r8b, 0x5c
mov dl, 0x2f
lea rcx, [rsp + 0x30]
call fcn.140057ce0
lea rcx, [rsp + 0x30]
call fcn.140056640
cmp eax, 0x104
jle 0x140095099
xor edx, edx
mov r8d, 0x170
lea rcx, [rbp + 0xa0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xa0]
call fcn.140053b40
nop
lea rcx, [rbp + 0xa0]
call fcn.140058ff0
lea rcx, [rsp + 0x30]
call fcn.140057330
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 0x140094fee
lea rdx, [rbp + 0x380]
call fcn.1400587a0
mov bl, 1
jmp 0x140094ffa
lea rdx, [rsp + 0x30]
call fcn.140055250
xor bl, bl
xor edx, edx
mov r8d, 0x170
lea rcx, [rbp + 0x210]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x210]
call fcn.140053b40
nop
test bl, bl
je 0x140095032
lea rdx, [0x14020d2b0]
lea rcx, [rbp + 0x210]
call fcn.1400546e0
lea rcx, [rbp + 0xa0]
call fcn.140056f20
mov rdx, rax
lea rcx, [rbp + 0x210]
call fcn.1400546e0
lea rcx, [rbp + 0x210]
call fcn.140057330
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test eax, eax
jne 0x140095079
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.140053ba0
nop
lea rcx, [rbp + 0xa0]
call fcn.140053ba0
jmp 0x1400950ed
lea rcx, [rsp + 0x30]
call fcn.140057330
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test eax, eax
jne 0x1400950e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test rdi, rdi
je 0x1400950dd
mov edx, eax
mov rcx, rdi
call fcn.1400a1e60
lea r8, [rsp + 0x30]
lea rdx, str.failedToDeleteFilepath
mov rcx, rdi
call fcn.1400a18c0
mov ecx, 1
cmp esi, 2
cmove ebx, ecx
test ebx, ebx
setne bl
lea rcx, [rsp + 0x30]
call fcn.140053ba0
movzx eax, bl
mov rcx, qword [rbp + 0x1390]
xor rcx, rsp
call fcn.1401feaa0
mov rbx, qword [rsp + 0x14d0]
add rsp, 0x14a0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140095620
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x1850
call fcn.1401feb50
sub rsp, rax
mov rax, qword [0x1403291e8]
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 0x14009567a
lea rdx, [rsp + 0x20]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140058130
jmp 0x14009568a
lea rdx, [rsp + 0x830]
mov rcx, rbx
call fcn.1400587a0
mov rcx, qword [rsp + 0x1840]
xor rcx, rsp
call fcn.1401feaa0
add rsp, 0x1850
pop rbx
ret