joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140052840
Capabilities:
Get file size
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
mov rbx, r8
mov rdi, rdx
mov r12, rcx
mov rax, qword [0x140a630a8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rcx, rdx
call fcn.140024560
test rax, rax
je 0x140052901
mov rsi, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 3
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140052940
mov r14, rax
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140052977
mov r13, qword [rsp + 0x48]
cmp r13, 0x100001
jl 0x1400529ec
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, rbx
mov r8d, 0x100000
call fcn.1400042b0
jmp 0x1400529a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x50]
mov r8d, 0x100
mov ecx, eax
call fcn.140001900
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov rcx, rbx
mov r8, rdi
mov r9, rax
call fcn.1400042b0
xor ecx, ecx
call qword [fcn.140899688]
mov edi, Ordinal_79
jmp 0x1400529c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x50]
mov r8d, 0x100
mov ecx, eax
call fcn.140001900
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov rcx, rbx
mov r8, rdi
mov r9, rax
call fcn.1400042b0
mov edi, Ordinal_79
xor r15d, r15d
jmp 0x1400529b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x50]
mov r8d, 0x100
mov ecx, eax
call fcn.140001900
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov rcx, rbx
mov r8, rdi
mov r9, rax
call fcn.1400042b0
mov edi, Ordinal_79
xor r15d, r15d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [fcn.140899688]
mov rcx, rsi
call fcn.140899688
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140890ac0
mov eax, edi
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [r13 + 1]
call qword [fcn.14089969c]
test rax, rax
je 0x140052a53
mov r15, rax
xor ebp, ebp
test r13, r13
mov qword [rsp + 0x38], r12
je 0x140052a5d
xor r12d, r12d
nop dword [rax]
mov r8d, r13d
sub r8d, ebp
mov dword [rsp + 0x44], 0
lea rdx, [r15 + r12]
mov qword [rsp + 0x20], 0
mov rcx, r14
lea r9, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140052a84
mov eax, dword [rsp + 0x44]
add ebp, eax
test eax, eax
cmove r13, r12
mov r12, rbp
cmp r13, rbp
ja 0x140052a10
jmp 0x140052a60
mov edi, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400529a9
xor r13d, r13d
mov byte [r15 + r13], 0
mov qword [rsp + 0x20], rbx
mov rcx, qword [rsp + 0x38]
mov rdx, r15
mov r8, r13
mov r9, rdi
call fcn.140052570
mov edi, eax
jmp 0x1400529ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x50]
mov r8d, 0x100
mov ecx, eax
call fcn.140001900
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov rcx, rbx
mov r8, rdi
mov r9, rax
call fcn.1400042b0
mov edi, Ordinal_79
jmp 0x1400529ac
Function at 0x14005a920
Capabilities:
Get hostname

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
mov byte [rcx], 0
call qword [sym.imp.WS2_32.dll_gethostname]
mov esi, eax
movsxd rax, ebx
mov byte [rax + rdi - 1], 0
test esi, esi
jne 0x14005a958
mov rcx, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
call fcn.140895e10
test rax, rax
je 0x14005a958
mov byte [rax], 0
mov eax, esi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14005ab70
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, rdx
mov rdx, r8
mov r8, rbx
call fcn.14005abc0
lea r8, [rbx + 7]
lea rdx, [rsi + 8]
mov rcx, rdi
call fcn.14005abc0
add rbx, 0xe
add rsi, 0x10
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14005abc0

Function at 0x14005abc0
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140a630a8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x3c], 8
mov dword [rsp + 0x20], 0xf0000040
lea rcx, [rsp + 0x48]
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14005acc9
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], 0
mov word [rsp + 0x50], 0x208
movabs rax, 0x800006601
mov qword [rsp + 0x54], rax
lea r14, [rsp + 0x5c]
mov rcx, rbx
mov rdx, r14
call fcn.14005af00
mov edx, 8
mov rcx, r14
call fcn.14005c340
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x50]
mov r8d, reloc.WS2_32.dll_sendto
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x14005acbc
mov rax, qword [rdi]
mov qword [rsi], rax
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x30], 8
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140890ac0
nop
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14005b310
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov dword [rsp + 0x20], 0xf0000040
xor edi, edi
xor edx, edx
xor r8d, r8d
mov r9d, Ordinal_27
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14005b372
lea rax, [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14005b377
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rsi], 0
mov edi, 2
jmp 0x14005b377
mov edi, reloc.WLDAP32.dll_Ordinal_27
mov eax, edi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14005b420
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov ebp, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140a630a8]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, dword [rcx + 0x18]
mov ecx, dword [rcx + 0x20]
add eax, eax
add rcx, rax
add rcx, 0x18
call qword [fcn.14089969c]
mov rdi, rax
test rax, rax
je 0x14005b55b
mov qword [rdi], rsi
lea rcx, [rdi + 0x18]
mov qword [rdi + 8], rcx
mov eax, dword [rsi + 0x18]
add rax, rdi
add rax, 0x18
mov qword [rdi + 0x10], rax
cmp dword [rsi + 0x1c], ebp
jae 0x14005b4ac
call qword [rsi]
mov rcx, qword [rdi + 8]
mov rdx, rbx
mov r8d, ebp
call qword [rsi + reloc.WS2_32.dll_htonl]
mov ebx, dword [rsi + 0x18]
add rbx, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, rbx
call qword [rsi + reloc.WS2_32.dll_recv]
mov ebp, dword [rsi + 0x20]
mov rcx, qword [rdi + 8]
call qword [rsi]
mov rcx, qword [rdi + 0x10]
call qword [rsi]
mov r15d, ebp
test ebp, ebp
je 0x14005b50e
xor r12d, r12d
lea r14, [rsp + 0x27]
nop word cs:[rax + rax]
movzx eax, byte [rbx + r12]
xor al, 0x36
mov byte [rsp + 0x27], al
mov rcx, qword [rdi + 8]
mov rdx, r14
mov r8d, 1
call qword [rsi + reloc.WS2_32.dll_htonl]
movzx eax, byte [rbx + r12]
xor al, 0x5c
mov byte [rsp + 0x27], al
mov rcx, qword [rdi + 0x10]
mov rdx, r14
mov r8d, 1
call qword [rsi + reloc.WS2_32.dll_htonl]
inc r12
cmp r15, r12
jne 0x14005b4d0
cmp r15d, dword [rsi + 0x1c]
jae 0x14005b55b
lea rbx, str.6GSSAPI_handshake_failure__empty_challenge_message_
lea r14, [0x1408f9a79]
nop word cs:[rax + rax]
mov rcx, qword [rdi + 8]
mov rdx, rbx
mov r8d, 1
call qword [rsi + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
mov rdx, r14
mov r8d, 1
call qword [rsi + reloc.WS2_32.dll_htonl]
inc r15
mov eax, dword [rsi + 0x1c]
cmp r15, rax
jb 0x14005b530
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140890ac0
mov rax, rdi
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14005c860
Capabilities:
Create new key via cryptacquirecontext
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov dword [rsp + 0x20], 0xf0000040
xor edi, edi
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14005c8c8
lea rax, [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
mov edx, 0x8002
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, 1
test eax, eax
jne 0x14005c8c8
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rsi], 0
xor edi, edi
mov eax, edi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x14005d720
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov r11d, r8d
lea r9, [rcx + 0x10]
shr r11d, 2
mov edi, 1
mov eax, r11d
mov r10d, r11d
shr eax, 1
add eax, 3
mov dword [rcx], eax
test r11d, r11d
je 0x14005d771
mov rcx, r9
mov r8d, r10d
nop
mov eax, dword [rdx]
lea rdx, [rdx + 4]
mov dword [rcx], eax
lea rcx, [rcx + 4]
sub r8, rdi
jne 0x14005d760
xor r10d, r10d
lea rsi, [r11 + 0xe]
lea rbx, [r11*4]
mov eax, dword [rbx + r9 - 4]
lea rsi, [r11 + rsi*2]
lea rsi, [r9 + rsi*4]
lea r14d, [r10 + 0x1b]
lea rbp, [0x1408c5b40]
test r10d, r10d
jne 0x14005d7ec
mov r8d, eax
mov r10d, r11d
movzx eax, al
mov ecx, r8d
shr rcx, 0x18
movzx eax, byte [rax + rbp]
movzx ecx, byte [rcx + rbp]
shl eax, 8
or eax, ecx
mov ecx, r8d
shr rcx, 0x10
shl eax, 8
movzx edx, cl
shr r8, 8
movzx ecx, byte [rdx + rbp]
or eax, ecx
movzx ecx, r8b
shl eax, 8
movzx edx, byte [rcx + rbp]
xor edx, edi
add edi, edi
or eax, edx
bt edi, 8
cmovb edi, r14d
jmp 0x14005d836
cmp r10d, 4
jne 0x14005d836
cmp r11d, 6
jbe 0x14005d836
mov r8d, eax
shr rax, 0x10
movzx ecx, al
movzx eax, byte [rcx + rbp]
mov ecx, r8d
shr rcx, 0x18
movzx ecx, byte [rcx + rbp]
shl ecx, 8
or eax, ecx
mov ecx, r8d
shr rcx, 8
movzx edx, cl
shl eax, 8
movzx ecx, byte [rdx + rbp]
or eax, ecx
movzx ecx, r8b
shl eax, 8
movzx edx, byte [rcx + rbp]
or eax, edx
xor eax, dword [r9]
dec r10d
mov dword [rbx + r9], eax
add r9, 4
cmp r9, rsi
jne 0x14005d798
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
Function at 0x14005ebe0
Capabilities:
Check os version
Get common file path

Disassembly:
sub rsp, 0x318
mov rax, qword [0x140a630a8]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x14005ec36
lea rcx, [0x1408c5cf8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.SetDefaultDllDirectories
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005ec36
mov ecx, 0xc00
call rax
test eax, eax
jne 0x14005ed4e
mov edx, 0x106
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp ecx, 0x103
ja 0x14005ed4e
lea ecx, [rax - 1]
mov qword [rsp + 0x320], rbx
cmp word [rsp + rcx*2 + 0x20], 0x5c
je 0x14005ec76
mov ecx, eax
mov edx, 0x5c
inc eax
mov word [rsp + rcx*2 + 0x20], dx
movzx edx, byte [str.userenv]
lea rbx, str.userenv
test dl, dl
je 0x14005ed46
mov qword [rsp + 0x328], rbp
mov qword [rsp + 0x330], rsi
mov qword [rsp + 0x310], rdi
lea rdi, [rsp + 0x20]
mov eax, eax
mov qword [rsp + 0x308], r14
mov qword [rsp + 0x300], r15
xor r15d, r15d
lea rdi, [rdi + rax*2]
nop dword [rax]
nop word [rax + rax]
mov rcx, rdi
inc rbx
nop word [rax + rax]
movzx eax, dl
movzx edx, byte [rbx]
inc rbx
mov word [rcx], ax
lea rcx, [rcx + 2]
test dl, dl
jne 0x14005ece0
xor edx, edx
mov dword [rcx], 0x64002e
mov dword [rcx + 4], 0x6c006c
mov word [rcx + 8], r15w
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
movzx edx, byte [rbx]
test dl, dl
jne 0x14005ecd0
mov r15, qword [rsp + 0x300]
mov r14, qword [rsp + 0x308]
mov rdi, qword [rsp + 0x310]
mov rsi, qword [rsp + 0x330]
mov rbp, qword [rsp + 0x328]
mov rbx, qword [rsp + 0x320]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140890ac0
add rsp, 0x318
ret
Function at 0x140066860
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 8]
mov rdi, rdx
and eax, 0x3f
mov rbx, rcx
mov byte [rax + rcx + 0x40], 0x80
inc eax
cmp eax, 0x38
jbe 0x1400668b7
cmp eax, 0x40
je 0x14006689d
mov byte [rax + rcx + 0x40], 0
inc eax
cmp eax, 0x40
jne 0x140066891
lea rbp, [rcx + 0x40]
mov r8d, 1
lea rsi, [rcx + 0x20]
mov rdx, rbp
mov rcx, rsi
call qword [rbx]
xor eax, eax
jmp 0x1400668bf
lea rbp, [rcx + 0x40]
lea rsi, [rcx + 0x20]
mov ecx, eax
mov r8d, gethostname
add rcx, 0x40
sub r8d, eax
add rcx, rbx
xor edx, edx
call fcn.1408940e0
mov rcx, qword [rbx + 8]
mov r8d, 1
shl rcx, 3
mov rdx, rbp
mov rax, rcx
bswap ecx
shr rax, 0x20
bswap eax
mov dword [rbx + 0x7c], ecx
mov rcx, rsi
mov dword [rbx + 0x78], eax
call qword [rbx]
mov rdx, rsi
mov r8d, 4
nop dword [rax + rax]
mov ecx, dword [rdx + 4]
lea rdi, [rdi + 8]
mov eax, dword [rdx]
lea rdx, [rdx + 8]
bswap eax
mov dword [rdi - 8], eax
bswap ecx
mov dword [rdi - 4], ecx
sub r8, 1
jne 0x140066910
mov rbp, qword [rsp + 0x38]
mov qword [rbx + 8], r8
mov dword [rsi], 0x6a09e667
mov rsi, qword [rsp + 0x40]
mov dword [rbx + 0x24], 0xbb67ae85
mov dword [rbx + 0x28], 0x3c6ef372
mov dword [rbx + 0x2c], 0xa54ff53a
mov dword [rbx + 0x30], 0x510e527f
mov dword [rbx + 0x34], 0x9b05688c
mov dword [rbx + 0x38], 0x1f83d9ab
mov dword [rbx + 0x3c], 0x5be0cd19
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400671c0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, r8
mov r8, rdx
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call fcn.1408997e4
mov qword [rbx], rax
test rax, rax
je 0x1400671fa
xor eax, eax
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
add rsp, 0x30
pop rbx
ret
Function at 0x14006a600
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rdx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x14006a619
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x14006a63e
xor bl, bl
call qword [sym.imp.USER32.dll_CloseClipboard]
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, dword [rdi + 8]
lea rcx, [rsp + 0x40]
inc ebx
mov qword [rsp + 0x38], rsi
mov rsi, qword [rdi]
add rbx, rbx
mov r8, rbx
mov qword [rsp + 0x40], 0
mov edx, 0x2002
call fcn.14006da20
test al, al
jne 0x14006a671
xor bl, bl
jmp 0x14006a6bb
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14006a66d
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call fcn.140893a40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rsp + 0x40]
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x14006a66d
mov qword [rsp + 0x40], 0
mov bl, 1
lea rcx, [rsp + 0x40]
call fcn.14006da50
mov rsi, qword [rsp + 0x38]
call qword [sym.imp.USER32.dll_CloseClipboard]
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14006b2e0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rbx, rcx
call fcn.14006c270
cmp eax, 0xffffffff
je 0x14006b317
test al, 0x10
je 0x14006b317
mov al, 1
jmp 0x14006b4a7
mov rcx, rbx
call fcn.14006d6c0
test al, al
je 0x14006b32a
xor al, al
jmp 0x14006b4a7
mov rcx, rbx
call fcn.14006d2d0
mov esi, eax
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.140067f20
nop
lea rcx, [rbp - 0x60]
call fcn.140068fe0
xor r14d, r14d
test eax, eax
js 0x14006b377
mov edx, dword [rbp - 0x58]
lea ecx, [rdx - 1]
cmp eax, ecx
jne 0x14006b377
cmp edx, 1
jne 0x14006b368
movzx ebx, dl
jmp 0x14006b49b
mov dword [rbp - 0x58], ecx
add rcx, rcx
mov rax, qword [rbp - 0x60]
mov word [rcx + rax], r14w
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x50]
call fcn.140067cc0
nop
mov ebx, dword [rbp - 0x58]
mov rdi, qword [rbp - 0x60]
nop dword [rax]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14006b449
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14006b3f6
lea rcx, [rbp - 0x40]
call fcn.14006b940
lea rcx, [rbp - 0x18]
call fcn.140067fa0
nop
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.14006bbd0
test al, al
jne 0x14006b3e1
mov rcx, qword [rbp - 0x18]
call fcn.140890cbc
jmp 0x14006b3f6
mov edi, dword [rbp - 0x20]
shr edi, 4
mov rcx, qword [rbp - 0x18]
call fcn.140890cbc
test dil, 1
jne 0x14006b449
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14006b48b
lea rcx, [rbp - 0x60]
call fcn.140068fe0
mov ebx, eax
cmp eax, 1
jl 0x14006b48b
mov rdi, qword [rbp - 0x60]
jne 0x14006b42c
movzx eax, word [rdi]
cmp ax, 0x5c
je 0x14006b48b
cmp ax, 0x2f
je 0x14006b48b
lea eax, [rbx + 1]
cmp esi, eax
jae 0x14006b48b
cmp ebx, dword [rbp - 0x58]
jae 0x14006b390
mov dword [rbp - 0x58], ebx
mov word [rdi + rbx*2], r14w
jmp 0x14006b388
cmp ebx, dword [rbp - 0x48]
jge 0x14006b48f
lea ecx, [rbx + 1]
mov rax, qword [rbp - 0x50]
lea rcx, [rax + rcx*2]
call fcn.14006cf50
test eax, eax
jns 0x14006b467
mov ebx, dword [rbp - 0x48]
jmp 0x14006b46b
inc ebx
add ebx, eax
mov r8d, ebx
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x60]
call fcn.140069020
xor edx, edx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14006b449
xor bl, bl
jmp 0x14006b491
mov bl, 1
mov rcx, qword [rbp - 0x50]
call fcn.140890cbc
nop
mov rcx, qword [rbp - 0x60]
call fcn.140890cbc
movzx eax, bl
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14006b4d0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14006b4f0
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14006c270
cmp eax, 0xffffffff
je 0x14006b523
test al, 0x10
jne 0x14006b523
test al, 1
je 0x14006b523
and eax, 0xfffffffe
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14006b523
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
add rsp, 0x20
pop rbx
ret

Function at 0x14006b540
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140a630a8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rcx
xor ebx, ebx
mov dword [rcx + 8], ebx
mov rax, qword [rcx]
mov word [rax], bx
mov word [rsp + 0x30], bx
lea rdx, [rsp + 0x30]
mov ecx, 0x114
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
je 0x14006b632
cmp edi, 0x114
jae 0x14006b5b5
mov word [rsp + 0x258], bx
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140068210
mov al, 1
jmp 0x14006b634
lea rcx, [rsp + 0x20]
call fcn.140067fa0
nop
cmp edi, dword [rsp + 0x2c]
jbe 0x14006b5d2
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140068c50
mov rdx, qword [rsp + 0x20]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test eax, eax
je 0x14006b628
mov rcx, qword [rsp + 0x20]
mov word [rcx + rdi*2], bx
cmp word [rcx], 0
je 0x14006b5fd
inc ebx
cmp word [rcx + rbx*2], 0
jne 0x14006b5f4
mov dword [rsp + 0x28], ebx
cmp ebx, edx
jne 0x14006b628
lea eax, [rdi - 1]
cmp eax, edx
jne 0x14006b628
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140067fe0
nop
mov rcx, qword [rsp + 0x20]
call fcn.140890cbc
mov al, 1
jmp 0x14006b634
mov rcx, qword [rsp + 0x20]
call fcn.140890cbc
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140890ac0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14006b7a0
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14006b7c0
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14006b870
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14006b890
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
mov r8d, edx
and edx, 0x3fff
test r8d, 0xf0000000
cmove edx, r8d
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14006c270
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
add rsp, 0x28
ret

Function at 0x14006c2d0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
mov ebx, dword [rcx + 8]
test ebx, ebx
je 0x14006c32b
mov r14d, ebx
shl r14, 3
nop word [rax + rax]
dec ebx
lea r14, [r14 - 8]
mov rax, qword [rdi]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x14006c327
mov rcx, qword [rsi]
call fcn.140890cbc
mov edx, reloc.WS2_32.dll_recv
mov rcx, rsi
call fcn.140890cbc
test ebx, ebx
jne 0x14006c300
mov dword [rdi + 8], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
test eax, eax
je 0x14006c4ad
mov qword [rsp + 0x68], 0
mov eax, 2
mul rsi
mov r14, 0xffffffffffffffff
cmovo rax, r14
mov rcx, rax
call fcn.1400e2340
mov rbx, rax
mov qword [rsp + 0x68], rax
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov r15d, eax
test eax, eax
je 0x14006c49e
cmp eax, esi
ja 0x14006c49e
lea rcx, [rsp + 0x20]
call fcn.140067fa0
nop
xor r12d, r12d
xor esi, esi
test r15d, r15d
je 0x14006c48b
nop dword [rax]
lea ebp, [rsi + 1]
mov eax, esi
cmp word [rbx + rax*2], 0
jne 0x14006c480
mov eax, r12d
lea rdx, [rbx + rax*2]
lea rcx, [rsp + 0x20]
call fcn.140068210
mov esi, ebp
mov r12d, ebp
mov ecx, dword [rdi + 0xc]
cmp dword [rdi + 8], ecx
jne 0x14006c446
cmp ecx, 0x7fffffff
jae 0x14006c4c4
mov ebp, 0x7fffffff
sub ebp, ecx
mov eax, ecx
shr eax, 2
inc eax
cmp eax, ebp
cmovbe ebp, eax
add ebp, ecx
mov ecx, ebp
mov eax, 8
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.1400e2340
mov r14, rax
mov eax, dword [rdi + 8]
test eax, eax
je 0x14006c431
mov r8d, eax
shl r8, 3
mov rdx, qword [rdi]
mov rcx, r14
call fcn.140893a40
mov rcx, qword [rdi]
call fcn.140890cbc
mov qword [rdi], r14
mov dword [rdi + 0xc], ebp
mov r14, 0xffffffffffffffff
mov ecx, reloc.WS2_32.dll_recv
call fcn.140890c80
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14006c46c
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140067cc0
mov rdx, rax
jmp 0x14006c46e
xor edx, edx
mov ecx, dword [rdi + 8]
lea eax, [rcx + 1]
mov dword [rdi + 8], eax
mov rax, qword [rdi]
mov qword [rax + rcx*8], rdx
jmp 0x14006c482
mov esi, ebp
cmp esi, r15d
jb 0x14006c3b0
cmp r12d, r15d
sete dil
mov rcx, qword [rsp + 0x20]
call fcn.140890cbc
jmp 0x14006c4a1
xor dil, dil
mov rcx, rbx
call fcn.140890cbc
movzx eax, dil
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov dword [rsp + 0x60], 0x7e5
lea rdx, [0x140a60038]
lea rcx, [rsp + 0x60]
call fcn.1408947c4
int3