joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400315f4
Capabilities:
Set socket configuration

Disassembly:
xor r9d, r9d
lea r8d, [r9 + 1]
jmp 0x140031600
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r15d, edx
mov rdi, rcx
mov rdx, rcx
mov rcx, qword [0x14017c8c0]
xor r13d, r13d
mov r12, r9
mov ebp, r8d
mov qword [rsp + 0x28], r13
call fcn.14004e1f8
mov rbx, rax
test rax, rax
je 0x1400317d2
cmp r15d, 0xffff
ja 0x1400317bb
lea ecx, [r13 + 2]
lea eax, [rcx + 0x15]
bt ebp, 0x1c
jae 0x14003166d
mov esi, eax
btr ebp, 0x1c
jmp 0x14003166f
mov esi, ecx
mov eax, 1
test ebp, ebp
mov ecx, esi
cmove ebp, eax
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400317bb
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov rcx, rax
mov dword [rsp + 0x20], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jle 0x1400317ad
mov eax, reloc.WS2_32.dll_socket
lea r13, [rbx + 8]
movzx ecx, r15w
cmp esi, eax
je 0x1400316cd
mov eax, 2
mov word [r13], ax
call qword [sym.imp.WS2_32.dll_htons]
xor r15d, r15d
mov word [rbx + 0xa], ax
test r12, r12
je 0x14003172b
cmp word [r12], r15w
je 0x14003172b
mov rcx, r12
call fcn.140107120
mov r12d, reloc.WS2_32.dll_socket
mov r15, rax
cmp esi, r12d
jne 0x140031712
lea r8, [rbx + 0x10]
mov rdx, rax
mov ecx, r12d
call fcn.140030b40
jmp 0x14003171e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbx + 0xc], eax
mov rcx, r15
call fcn.140107110
xor r15d, r15d
jmp 0x140031748
mov r12d, reloc.WS2_32.dll_socket
cmp esi, r12d
jne 0x140031744
movups xmm0, xmmword [0x140122a68]
movdqu xmmword [rbx + 0x10], xmm0
jmp 0x14003174d
mov dword [rbx + 0xc], r15d
cmp esi, r12d
jne 0x140031755
mov r8d, 0x1c
jmp 0x14003175b
mov r8d, reloc.WS2_32.dll_recv
mov rdx, r13
mov rcx, r14
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x1400317a8
cmp ebp, 1
jne 0x140031780
lea edx, [rax + 0x64]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x1400317a8
mov eax, r15d
cmp esi, r12d
mov qword [rbx], r14
sete al
cmp rdi, 0xffffffffffffffff
mov word [rbx + 0x24], bp
mov word [rbx + 0x26], ax
mov rax, rdi
mov r13, rbx
cmove rax, rbx
mov qword [rbx + 0x28], rax
jmp 0x1400317b6
mov r13, qword [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
test r13, r13
jne 0x1400317d2
mov rcx, qword [0x14017c8c0]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.14004e12c
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, r13
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140031600
Capabilities:
Set socket configuration

Disassembly:
xor r9d, r9d
lea r8d, [r9 + 1]
jmp 0x140031600
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r15d, edx
mov rdi, rcx
mov rdx, rcx
mov rcx, qword [0x14017c8c0]
xor r13d, r13d
mov r12, r9
mov ebp, r8d
mov qword [rsp + 0x28], r13
call fcn.14004e1f8
mov rbx, rax
test rax, rax
je 0x1400317d2
cmp r15d, 0xffff
ja 0x1400317bb
lea ecx, [r13 + 2]
lea eax, [rcx + 0x15]
bt ebp, 0x1c
jae 0x14003166d
mov esi, eax
btr ebp, 0x1c
jmp 0x14003166f
mov esi, ecx
mov eax, 1
test ebp, ebp
mov ecx, esi
cmove ebp, eax
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400317bb
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov rcx, rax
mov dword [rsp + 0x20], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jle 0x1400317ad
mov eax, reloc.WS2_32.dll_socket
lea r13, [rbx + 8]
movzx ecx, r15w
cmp esi, eax
je 0x1400316cd
mov eax, 2
mov word [r13], ax
call qword [sym.imp.WS2_32.dll_htons]
xor r15d, r15d
mov word [rbx + 0xa], ax
test r12, r12
je 0x14003172b
cmp word [r12], r15w
je 0x14003172b
mov rcx, r12
call fcn.140107120
mov r12d, reloc.WS2_32.dll_socket
mov r15, rax
cmp esi, r12d
jne 0x140031712
lea r8, [rbx + 0x10]
mov rdx, rax
mov ecx, r12d
call fcn.140030b40
jmp 0x14003171e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbx + 0xc], eax
mov rcx, r15
call fcn.140107110
xor r15d, r15d
jmp 0x140031748
mov r12d, reloc.WS2_32.dll_socket
cmp esi, r12d
jne 0x140031744
movups xmm0, xmmword [0x140122a68]
movdqu xmmword [rbx + 0x10], xmm0
jmp 0x14003174d
mov dword [rbx + 0xc], r15d
cmp esi, r12d
jne 0x140031755
mov r8d, 0x1c
jmp 0x14003175b
mov r8d, reloc.WS2_32.dll_recv
mov rdx, r13
mov rcx, r14
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x1400317a8
cmp ebp, 1
jne 0x140031780
lea edx, [rax + 0x64]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x1400317a8
mov eax, r15d
cmp esi, r12d
mov qword [rbx], r14
sete al
cmp rdi, 0xffffffffffffffff
mov word [rbx + 0x24], bp
mov word [rbx + 0x26], ax
mov rax, rdi
mov r13, rbx
cmove rax, rbx
mov qword [rbx + 0x28], rax
jmp 0x1400317b6
mov r13, qword [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
test r13, r13
jne 0x1400317d2
mov rcx, qword [0x14017c8c0]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.14004e12c
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, r13
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400317f4
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov dword [rax + 0x10], edx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, r8
movsxd rdi, ecx
cmp edx, 0xffffffff
jne 0x14003182a
lea r8, [rax + 0x10]
mov rcx, rdi
mov edx, 0x4004667f
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x14003186d
mov r8d, edx
mov rcx, rdi
mov r9d, 2
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x140031861
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8bb
and eax, 0xfffffffa
neg eax
sbb ebx, ebx
not ebx
and ebx, 0xfffffffe
jmp 0x14003186d
mov ecx, 0xfffffffe
test eax, eax
cmove eax, ecx
mov ebx, eax
mov rsi, qword [rsp + 0x40]
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400318b4
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp qword [0x14017c8f8], 0
jne 0x14003191a
lea rcx, [0x14017c8f8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140031906
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [0x14017c900]
imul qword [0x14017c8f8]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x14017c8f8], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [0x14017c8f8], 0
jne 0x14003191a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x140031940
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x14017c900]
cqo
idiv qword [0x14017c8f8]
add rsp, 0x28
ret
Function at 0x1400319ac
Capabilities:
Check os version

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x298]
sub rsp, 0x380
lea rcx, [rbp + 0x40]
mov ebx, 0xc8
xor r14d, r14d
xor edi, edi
xor r15d, r15d
mov dword [rbp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140031b87
mov eax, dword [rbp + 0x50]
dec eax
je 0x140031b65
dec eax
jne 0x140031b87
lea r8d, [rbx + 0x54]
lea rcx, [rsp + 0x20]
xor edx, edx
xor esi, esi
call fcn.14001c91b
lea rcx, str.ntdll.dll
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140031a58
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140031a58
lea rcx, [rsp + 0x20]
call rax
xor ecx, ecx
test eax, eax
sete cl
jmp 0x140031a5a
xor ecx, ecx
test ecx, ecx
je 0x140031a7a
mov r14d, dword [rsp + 0x24]
mov edi, dword [rsp + 0x28]
mov r15d, dword [rsp + 0x2c]
mov eax, 1
cmp byte [rbp + 0x3a], al
jne 0x140031aaa
mov esi, eax
jmp 0x140031aaa
lea rcx, [rbp + 0x160]
mov dword [rbp + 0x160], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140031aaa
mov r14d, dword [rbp + 0x44]
mov edi, dword [rbp + 0x48]
mov eax, 1
cmp byte [rbp + 0x27a], al
cmove esi, eax
sub r14d, 3
je 0x140031b5e
dec r14d
je 0x140031b57
dec r14d
je 0x140031b31
dec r14d
je 0x140031aed
cmp r14d, 4
jne 0x140031b87
test edi, edi
jne 0x140031b87
cmp r15d, 0x55f0
sbb ebx, ebx
and ebx, 0xfffffff6
add ebx, 0x78
jmp 0x140031b87
test edi, edi
je 0x140031b25
dec edi
je 0x140031b19
dec edi
je 0x140031b0d
dec edi
jne 0x140031b87
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x69
jmp 0x140031b87
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x140031b87
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x140031b87
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x140031b87
test edi, edi
je 0x140031b50
dec edi
je 0x140031b49
dec edi
jne 0x140031b87
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x140031b87
mov ebx, 0x3c
jmp 0x140031b87
mov ebx, gethostbyname
jmp 0x140031b87
mov ebx, reloc.WS2_32.dll_sendto
jmp 0x140031b87
mov ebx, 5
jmp 0x140031b87
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x140031b82
cmp eax, 0xa
je 0x140031b7b
cmp eax, 0x5a
jne 0x140031b87
lea ebx, [rax - 0x32]
jmp 0x140031b87
mov ebx, 0x1e
jmp 0x140031b87
mov ebx, 0xa
lea r11, [rsp + 0x380]
movsxd rax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140031cb0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x14017c908]
xor r13d, r13d
mov rsi, r8
mov r15, rdx
mov rdi, rcx
mov r14d, r13d
test rax, rax
jne 0x140031d02
lea r8, [fcn.140031e24]
lea edx, [rax + 0x10]
mov ecx, 0x260
call fcn.14004e2c0
mov qword [0x14017c908], rax
mov rdx, rdi
mov rcx, rax
call fcn.14004e1f8
mov rbx, rax
test rax, rax
je 0x140031e03
test r15, r15
lea rbp, [0x140122208]
cmovne rbp, r15
test rsi, rsi
je 0x140031d32
cmp word [rsi], r13w
jne 0x140031d39
lea rsi, [0x140122b00]
mov rcx, rbp
call sub.msvcrt.dll_wcslen
mov rcx, rsi
mov r12, rax
call sub.msvcrt.dll_wcslen
mov rcx, qword [0x14017aba8]
add eax, 2
xor edx, edx
add eax, r12d
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x140031dec
mov rdx, rbp
mov rcx, rax
call fcn.14001c927
test r12d, r12d
je 0x140031d99
movsxd rax, r12d
cmp word [rbp + rax*2 - 2], 0x5c
je 0x140031d99
lea rdx, [0x140122b08]
mov rcx, r15
call sub.msvcrt.dll_wcscat
mov rdx, rsi
mov rcx, r15
call sub.msvcrt.dll_wcscat
lea rdx, [rbx + 0xc]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140031dc0
mov dword [rbx + 8], r13d
jmp 0x140031dd2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140031dd5
mov dword [rbx + 8], 1
mov r14, rbx
mov rcx, qword [0x14017aba8]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14, r14
jne 0x140031e03
mov rcx, qword [0x14017c908]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.14004e12c
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, r14
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140032190
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x1400322f2
cmp word [rcx], di
je 0x1400322f2
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call sub.msvcrt.dll_wcslen
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x14003222f
cmp word [rsp + 0x22], 0x3a
jne 0x14003222f
cmp edx, 2
jne 0x140032216
lea rdx, [0x140122b08]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400322f2
jmp 0x1400322ca
cmp word [rcx], 0x5c
je 0x14003223b
cmp word [rcx], 0x2f
jne 0x140032244
mov word [rcx], di
sub rcx, 2
jmp 0x14003222f
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x14003228b
test byte [rbp + 0x130], 0x10
je 0x140032270
mov rbx, 0xfffffffffffffffe
jmp 0x140032283
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400322f2
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x1400322a0
cmp ax, cx
je 0x1400322b6
cmp cx, 0x2f
jne 0x1400322ab
cmp ax, cx
je 0x1400322b6
cmp cx, 0x2e
jne 0x1400322f2
cmp ax, cx
jne 0x1400322f2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400322d3
test al, 0x10
je 0x1400322f2
mov rbx, 0xfffffffffffffffe
jmp 0x1400322f2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x14003230c
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x230
xor ebx, ebx
test rcx, rcx
je 0x140032396
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call sub.msvcrt.dll_wcslen
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x140032382
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x140032382
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x140032382
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x140032354
mov word [rcx], bx
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cdqe
jmp 0x140032398
xor eax, eax
add rsp, 0x230
pop rbx
ret

Function at 0x1400323a4
Capabilities:
Delete file

Disassembly:
xor edx, edx
jmp 0x1400323ac
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400323d7
test dl, 2
je 0x1400323ca
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x1400323d9
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400323ac
Capabilities:
Delete file
Set file attributes

Disassembly:
xor edx, edx
jmp 0x1400323ac
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400323d7
test dl, 2
je 0x1400323ca
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x1400323d9
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400323e0
Capabilities:
Get common file path

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 edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.14004f9f0
mov ecx, ebx
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, str.Kernel32.DLL
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r14d, r14d
mov rbp, rax
test rax, rax
je 0x14003245a
lea rdx, str.GetLongPathNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140032451
mov r8d, ebx
mov rdx, rdi
mov rcx, rdi
call rax
mov esi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ebx, esi
mov ecx, ebx
call fcn.14004fb30
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd rax, esi
mov rsi, qword [rsp + 0x40]
mov word [rdi + rax*2], r14w
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140032488
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400324a3
test rdx, rdx
je 0x1400324a3
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cdqe
jmp 0x1400324a5
xor eax, eax
add rsp, 0x28
ret

Function at 0x140032518
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140032530
test rdx, rdx
je 0x140032530
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cdqe
jmp 0x140032532
xor eax, eax
add rsp, 0x28
ret

Function at 0x140032588
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x10]
mov rdi, rdx
mov edx, ecx
xor esi, esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [r11 - 0x18], rax
mov ebx, esi
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x1400325f9
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1400325ee
mov rcx, rdi
call sub.msvcrt.dll_wcslen
mov rbx, rax
test eax, eax
je 0x1400325ee
lea ecx, [rsi + 0x5c]
cdqe
cmp word [rdi + rax*2 - 2], cx
je 0x1400325ee
mov word [rdi + rax*2], cx
inc ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movsxd rax, ebx
mov word [rdi + rax*2], si
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140032d00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, rcx
mov rcx, qword [0x14017dce0]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
call fcn.14004e198
mov rdi, rax
test rax, rax
je 0x140032da4
cmp qword [rax + 8], rbx
je 0x140032d67
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140033740
test rax, rax
je 0x140032d54
inc dword [rdi + 0x14]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ebx, 1
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov r8d, 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140032db6
cmp dword [rsp + 0x58], ebx
je 0x140032db6
mov rcx, qword [rdi]
mov r9d, 1
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
or ebx, 0xffffffff
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140032e60
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x140032ea4
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x140032ef0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rdx, rcx
mov rcx, qword [0x14017dce0]
call fcn.14004e198
mov rbx, rax
test rax, rax
je 0x140032f40
mov r8d, dword [rax + 0x20]
mov rdx, rdi
mov rcx, rax
call fcn.140033870
mov r8d, dword [rbx + 0x20]
lea rdx, [0x140122b44]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140033870
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140032f50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdx, rcx
mov rcx, qword [0x14017dce0]
mov edi, r8d
call fcn.14004e198
mov rbx, rax
test rax, rax
je 0x140032fab
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.140033870
lea rdx, [0x140122b44]
mov r8d, edi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140033870
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140032fc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x140033038
test r8d, r8d
je 0x140033038
mov rdx, rcx
mov rcx, qword [0x14017dce0]
call fcn.14004e198
test rax, rax
je 0x140033034
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x140033021
mov rcx, rax
call fcn.140033a10
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140033050
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x30
mov rdi, rcx
mov rdx, rcx
mov rcx, qword [0x14017dce0]
mov ebx, 0x18
mov dword [rsp + 0x60], 0
call fcn.14004e198
mov r14, rax
test rax, rax
je 0x14003317c
mov rcx, rdi
mov qword [rsp + 0x50], rsi
call fcn.140033b60
cmp qword [r14 + 8], 0
lea rdx, [rsp + 0x58]
mov rsi, rax
je 0x1400330b5
lea r8d, [rbx - 0x14]
mov rcx, r14
call fcn.140033740
mov rcx, rax
mov dword [rsp + 0x60], eax
jmp 0x1400330d6
mov rcx, qword [r14]
lea r9, [rsp + 0x60]
mov r8d, 4
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x60]
cmp ecx, 2
jl 0x1400330f4
movzx eax, word [rsp + 0x58]
cmp ax, word [0x140122b4c]
jne 0x1400330f4
mov ebx, 0x19
lea rdx, [rsi + 2]
jmp 0x14003316f
cmp ecx, 3
jl 0x14003311f
movzx eax, word [rsp + 0x58]
cmp ax, word [0x140122b50]
jne 0x14003311f
movzx eax, byte [rsp + 0x5a]
cmp al, byte [0x140122b52]
jne 0x14003311f
mov ebx, 2
lea rdx, [rsi + 3]
jmp 0x14003316f
cmp ecx, 2
jl 0x14003313d
movzx eax, word [rsp + 0x58]
cmp ax, word [0x140122b54]
jne 0x14003313d
mov ebx, 4
lea rdx, [rsi + 2]
jmp 0x14003316f
cmp ecx, 4
jl 0x14003316c
mov eax, dword [rsp + 0x58]
cmp eax, dword [0x140122b58]
jne 0x140033159
mov ebx, 5
lea rdx, [rsi + 4]
jmp 0x14003316f
cmp eax, dword [0x140122b60]
jne 0x14003316c
mov ebx, 6
lea rdx, [rsi + 4]
jmp 0x14003316f
mov rdx, rsi
mov rcx, rdi
call fcn.140033be0
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret