joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400018a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, 0x40
mov ecx, esi
call fcn.1400065c0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.140006748
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x1400018d3
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400066b0

Function at 0x140001900
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
xor ebp, ebp
mov r13d, r9d
mov r15d, edx
mov r12d, ebp
cmp edx, 1
jl 0x140001a6b
test rcx, rcx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov edi, ebp
mov qword [rsp + 0x20], r14
lea r14, [0x140076c14]
mov rsi, r14
cmovne rsi, rcx
test r8, r8
cmovne r14, r8
movzx ecx, word [r14]
test cx, cx
je 0x1400019fa
cmp word [r14 + 2], di
je 0x1400019fa
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r14 + rax*2], di
jne 0x140001970
mov rbx, rsi
movsxd rbp, eax
mov r8, rbp
mov rdx, r14
mov rcx, rbx
call fcn.1400062b4
test eax, eax
je 0x14000199e
cmp word [rbx], r12w
je 0x14000199e
add rbx, 2
jmp 0x140001980
inc edi
cmp edi, r15d
je 0x1400019b4
cmp word [rbx], r12w
je 0x1400019bd
lea rbx, [rbx + rbp*2]
mov rsi, rbx
jmp 0x140001980
mov r12, rbx
sub r12, rsi
sar r12, 1
xor ebp, ebp
mov rcx, rbx
call fcn.140006670
mov r14, qword [rsp + 0x20]
movsxd rbx, r12d
test eax, eax
je 0x140001a30
mov ecx, r13d
call fcn.140006780
lea r8, [rbx + rbx]
mov rdx, rsi
mov rcx, rax
call fcn.140006810
mov edx, r13d
mov ecx, r12d
call fcn.1400065c0
mov rdi, rax
jmp 0x140001a4c
mov rbx, rsi
nop dword [rax]
movzx eax, word [rbx]
cmp ax, cx
je 0x140001a13
test ax, ax
je 0x140001a13
add rbx, 2
jmp 0x140001a00
inc edi
cmp edi, r15d
je 0x140001a25
test ax, ax
je 0x1400019bf
lea rsi, [rbx + 2]
jmp 0x1400019fa
mov r12, rbx
sub r12, rsi
sar r12, 1
jmp 0x1400019bf
mov edx, r13d
mov ecx, r12d
call fcn.1400065c0
mov r8, rbx
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call fcn.1400062e0
mov rsi, qword [rsp + 0x58]
mov word [rdi + rbx*2], bp
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
mov ecx, r13d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.1400067b0
Function at 0x140001e98
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x140257188]
call fcn.14000512c
mov rsi, rax
or edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebp, ebp
mov rdx, rax
movzx r8d, word [rax]
test r8w, r8w
je 0x140001fcf
mov rcx, qword [rsp + 0x30]
jmp 0x140001ee9
add rdx, 2
movzx r8d, word [rdx]
cmp r8w, 0x20
je 0x140001ee1
mov r11d, 1
cmp r8w, 0x22
jne 0x140001f38
add rdx, 2
mov r9, rdx
movzx r8d, word [rdx]
test r8w, r8w
je 0x140001f97
movzx eax, r8w
movzx r8d, ax
cmp ax, 0x22
je 0x140001f32
add rdx, 2
movzx r8d, word [rdx]
movzx eax, r8w
test r8w, r8w
jne 0x140001f16
test r8w, r8w
jmp 0x140001f97
test r8w, r8w
je 0x140001fa7
mov r9, rdx
movzx r10d, r8w
cmp r8w, 0x20
je 0x140001f93
add rdx, 2
movzx r8d, word [rdx]
cmp r8w, 0x22
jne 0x140001f89
add rdx, 2
movzx r8d, word [rdx]
test r8w, r8w
je 0x140001f89
movzx eax, r8w
movzx r8d, ax
cmp ax, 0x22
je 0x140001f89
add rdx, 2
movzx r8d, word [rdx]
movzx eax, r8w
test r8w, r8w
jne 0x140001f6d
movzx r10d, r8w
test r8w, r8w
jne 0x140001f41
test r10w, r10w
lea rax, [rdx + 2]
mov rcx, rdx
cmove rax, rdx
mov rdx, rax
jmp 0x140001fad
mov r11d, ebp
mov r9, rbp
cmp dword [rsi], edi
jne 0x140001fb6
test rbx, rbx
jne 0x140001fd9
movzx r8d, word [rdx]
lea eax, [rdi + 1]
test r11d, r11d
cmove eax, edi
mov edi, eax
test r8w, r8w
jne 0x140001ee9
test rbx, rbx
jne 0x140001fed
movsxd rax, edi
jmp 0x140001ff2
test r9, r9
je 0x140001fed
sub rcx, r9
mov rax, r9
sar rcx, 1
mov dword [rbx], ecx
inc dword [rsi]
jmp 0x140001ff2
mov dword [rbx], ebp
mov rax, rdx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140002008
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
xor ebp, ebp
mov rcx, qword [0x140257188]
mov esi, edx
mov dword [rax + 8], ebp
call fcn.14000512c
test ebx, ebx
js 0x140002037
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.140001e98
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.1400065c0
mov ecx, ebp
jmp 0x140002073
test edi, edi
je 0x140002078
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x140002066
inc ecx
jmp 0x14000206d
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x140002055
mov word [rax], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.1400066b0
Function at 0x140002c14
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x140002b30]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.140007094
xor r8d, r8d
mov qword [0x140257608], rax
xor edx, edx
mov ecx, ebx
call fcn.1400051c4
xor ebx, ebx
mov qword [0x140257618], rax
cmp word [0x140257600], bx
jne 0x140002d37
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x140002c7c
movzx eax, di
jmp 0x140002c7e
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x140257600], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140257610], rax
test rax, rax
je 0x140002d37
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140257610]
lea rdx, str.freeaddrinfo
mov qword [0x1402575e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140257610]
lea rdx, str.getnameinfo
mov qword [0x1402575e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140257610]
lea rdx, str.WSAStringToAddressA
mov qword [0x1402575f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1402575e0], rbx
mov qword [0x1402575f8], rax
je 0x140002d37
cmp qword [0x1402575e8], rbx
je 0x140002d37
cmp qword [0x1402575f0], rbx
je 0x140002d37
mov ecx, dword [0x140257604]
test rax, rax
cmovne ecx, edi
mov dword [0x140257604], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x140002d48
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x940]
sub rsp, 0xa40
xor ebx, ebx
mov rdi, rcx
cmp dword [rcx], 1
jne 0x140002df4
movsxd rcx, dword [rcx + 8]
lea rax, [rbp + 0x958]
mov rdi, rcx
mov qword [rsp + 0x38], rcx
inc ecx
mov dword [rsp + 0x30], 1
xor r9d, r9d
mov qword [rbp + 0x958], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x140002ded
je 0x140002e5d
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140002e5d
lea r8, [rbp + 0x950]
mov edx, 0x4004667f
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x140002ded
cmp dword [rbp + 0x950], ebx
lea ebx, [rax + 2]
jne 0x140002e5d
mov ebx, 4
jmp 0x140002e5d
mov rcx, qword [rcx + 0x30]
lea rdx, [rbp + 0x140]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov r8d, 0x800
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rbp + 0x950], eax
test eax, eax
jle 0x140002e5d
mov rcx, qword [0x140257138]
xor edx, edx
movsxd r8, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movsxd rcx, dword [rbp + 0x950]
lea rdx, [rbp + 0x140]
mov dword [rdi + 0x40], ecx
mov r8, rcx
mov rcx, rax
mov qword [rdi + 0x38], rax
mov qword [rdi + 0x48], rax
call fcn.140006810
mov ebx, 2
lea r11, [rsp + 0xa40]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400032cc
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rax, rdx
cmp dword [rcx], 1
mov rdi, rcx
jne 0x1400032f9
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
jmp 0x140003341
cmp qword [rcx + 0x38], rsi
je 0x140003341
cmp r8d, dword [rcx + 0x40]
mov esi, r8d
mov rdx, qword [rcx + 0x48]
cmovg esi, dword [rcx + 0x40]
mov rcx, rax
movsxd rbx, esi
mov r8, rbx
call fcn.140006810
sub dword [rdi + 0x40], esi
add qword [rdi + 0x48], rbx
cmp dword [rdi + 0x40], 0
jne 0x140003341
mov r8, qword [rdi + 0x38]
xor edx, edx
mov rcx, qword [0x140257138]
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 0x38], 0
mov rbx, qword [rsp + 0x30]
movsxd rax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140003354
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x38
cmp dword [rcx], 1
mov r10, rdx
jne 0x14000336f
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
jmp 0x1400033a7
mov al, byte [rcx + 0x20]
lea r9, [rcx + 4]
neg al
mov rax, qword [rcx + 0x28]
sbb edx, edx
and edx, 0xc
add edx, 0x10
test rax, rax
je 0x14000338e
mov rcx, qword [rax]
jmp 0x140003392
mov rcx, qword [rcx + 0x30]
mov dword [rsp + 0x28], edx
mov rdx, r10
mov qword [rsp + 0x20], r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
add rsp, 0x38
ret

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

Disassembly:
sub rsp, 0x28
cmp qword [0x140257628], 0
jne 0x1400034c2
lea rcx, [0x140257628]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400034ae
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [0x140257630]
imul qword [0x140257628]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x140257628], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [0x140257628], 0
jne 0x1400034c2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x1400034e8
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x140257630]
cqo
idiv qword [0x140257628]
add rsp, 0x28
ret
Function at 0x140003a40
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp rdx, rcx
mov rdi, rcx
mov rbx, rcx
cmovbe rdi, rdx
sub rbx, rdi
cmp dword [0x14025763c], 0
jne 0x140003a68
call fcn.1400039d0
mov ecx, dword [0x140257638]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
test rax, rax
jne 0x140003a90
call fcn.1400039d0
mov ecx, dword [0x140257638]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
movsxd r9, dword [r11 + 4]
mov eax, reloc.WS2_32.dll_recv
movsxd r10, dword [r11]
mov r8d, dword [r11 + r10*4 + 0x4c]
mov edx, dword [r11 + r10*4 + 8]
ror r8d, 0xd
add r8d, dword [r11 + r9*4 + 0x4c]
ror edx, 5
add edx, dword [r11 + r9*4 + 8]
mov dword [r11 + r10*4 + 8], r8d
mov dword [r11 + r10*4 + 0x4c], edx
sub r10d, 1
cmovs r10d, eax
sub r9d, 1
mov dword [r11], r10d
cmovs r9d, eax
mov dword [r11 + 4], r9d
mov r9d, r8d
mov r8d, edx
add rbx, 1
je 0x140003b18
mov rdx, rbx
mov ecx, ebx
shr rdx, 0x20
mov rax, rdx
imul rax, r8
imul rcx, r9
imul rdx, r9
shr rax, 0x20
shr rcx, 0x20
add rax, rcx
add rax, rdx
add rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
shl r9, 0x20
and r9, r8
lea rax, [rdi + r9]
add rsp, 0x20
pop rdi
ret

Function at 0x140003d50
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x230
xor ebx, ebx
test rcx, rcx
je 0x140003dda
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.1400062e0
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call fcn.1400071b8
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x140003dc6
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x140003dc6
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x140003dc6
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x140003d98
mov word [rcx], bx
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cdqe
jmp 0x140003ddc
xor eax, eax
add rsp, 0x230
pop rbx
ret

Function at 0x140003de8
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140003e13
test dl, 2
je 0x140003e06
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x140003e15
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140003e1c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x140003e2f
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
add rsp, 0x28
ret
Function at 0x140003f28
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 [0x140257650]
xor r13d, r13d
mov rbp, r8
mov r14, rdx
mov rdi, rcx
mov esi, r13d
test rax, rax
jne 0x140003f7a
lea r8, [fcn.140003ee4]
mov ecx, 0x260
lea edx, [rax + 0x10]
call fcn.140007094
mov qword [0x140257650], rax
mov rdx, rdi
mov rcx, rax
call fcn.140006ef8
mov rbx, rax
test rax, rax
je 0x14000407d
test r14, r14
lea r15, [0x140076c14]
cmovne r15, r14
test rbp, rbp
je 0x140003fab
cmp word [rbp], r13w
jne 0x140003fb2
lea rbp, [0x14007b728]
mov rcx, r15
call fcn.1400071b8
mov rcx, rbp
mov r12, rax
call fcn.1400071b8
mov rcx, qword [0x140257138]
add eax, 2
add eax, r12d
xor edx, edx
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x140004066
mov rdx, r15
mov rcx, rax
call fcn.14000719c
test r12d, r12d
je 0x140004013
movsxd rax, r12d
cmp word [r15 + rax*2 - 2], 0x5c
je 0x140004013
lea rdx, [0x140076bd0]
mov rcx, r14
call fcn.140007170
mov rdx, rbp
mov rcx, r14
call fcn.140007170
lea rdx, [rbx + 0xc]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14000403a
mov dword [rbx + 8], r13d
jmp 0x14000404c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000404f
mov dword [rbx + 8], 1
mov rsi, rbx
mov rcx, qword [0x140257138]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
jne 0x14000407d
mov rcx, qword [0x140257650]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.140007028
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400040fc
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 0x14000426d
cmp word [rcx], di
je 0x14000426d
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.1400062e0
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call fcn.1400071b8
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x1400041a2
cmp word [rsp + 0x22], 0x3a
jne 0x1400041a2
cmp edx, 2
jne 0x140004182
lea rdx, [0x140076bd0]
lea rcx, [rsp + 0x20]
call fcn.140007170
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14000426d
mov rbx, 0xfffffffffffffffe
jmp 0x14000426d
cmp word [rcx], 0x5c
je 0x1400041ae
cmp word [rcx], 0x2f
jne 0x1400041b7
mov word [rcx], di
sub rcx, 2
jmp 0x1400041a2
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x1400041fe
test byte [rbp + 0x130], 0x10
je 0x1400041e3
mov rbx, 0xfffffffffffffffe
jmp 0x1400041f6
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14000426d
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x140004213
cmp ax, cx
je 0x140004229
cmp cx, 0x2f
jne 0x14000421e
cmp ax, cx
je 0x140004229
cmp cx, 0x2e
jne 0x14000426d
cmp ax, cx
jne 0x14000426d
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000424e
not eax
mov rbx, 0xfffffffffffffffe
shr rax, 4
and eax, 1
or rbx, rax
jmp 0x14000426d
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 0x140004478
Capabilities:
Move file

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

Function at 0x1400044a0
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 0x1400044e4
mov r8d, dword [rcx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rdx, qword [rcx + 8]
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 0x1400044f0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
mov rcx, qword [0x140257658]
jne 0x140004510
add rsp, 0x30
pop rdi
jmp fcn.140013120
mov rdx, rdi
mov qword [rsp + 0x48], rbx
call fcn.140006fc8
mov rbx, rax
test rax, rax
je 0x140004585
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14000456d
xor eax, eax
mov dword [rsp + 0x40], eax
cmp dword [rbx + 0x1c], eax
jne 0x14000455a
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rbx + 0x14]
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
mov r8, qword [rbx + 8]
xor edx, edx
mov rcx, qword [0x140257138]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140257658]
mov rdx, rdi
call fcn.140007028
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400048f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, rcx
xor edi, edi
mov rcx, qword [0x140257658]
mov dword [rsp + 0x50], edi
call fcn.140006fc8
mov rbx, rax
test rax, rax
je 0x140004995
cmp qword [rax + 8], rdi
je 0x140004957
lea r8d, [rdi + 1]
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.1400135b0
test rax, rax
je 0x140004944
inc dword [rbx + 0x14]
movsxd rax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov edi, 1
movsxd rax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, 1
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400049a5
cmp dword [rsp + 0x58], edi
je 0x1400049a5
mov rcx, qword [rbx]
mov r9d, 1
xor r8d, r8d
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 0xffffffff
cdqe
add rsp, 0x30
pop rdi
ret

Function at 0x140004a20
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x140257658]
call fcn.140006fc8
mov rbx, rax
test rax, rax
je 0x140004a73
cmp qword [rax + 8], 0
je 0x140004a52
cmp dword [rax + 0x1c], 0
jne 0x140004a52
mov rcx, rax
call fcn.1400044a0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [rsp + 0x38]
shl rcx, 0x20
mov eax, eax
or rax, rcx
add rsp, 0x20
pop rbx
ret
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret
Function at 0x140004a80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov dword [rsp + 0x58], 0
mov rdx, rcx
mov rbx, r8
mov rcx, qword [0x140257658]
call fcn.140006fc8
test rax, rax
je 0x140004ae8
cmp qword [rax + 8], 0
mov rdx, rdi
je 0x140004ace
mov r8, rbx
mov rcx, rax
call fcn.1400135b0
cdqe
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140004bf0
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 dword [rsp + 0x48], ebx
mov rsi, rdx
test rdx, rdx
je 0x140004c68
test r8d, r8d
je 0x140004c68
mov rdx, rcx
mov rcx, qword [0x140257658]
call fcn.140006fc8
test rax, rax
je 0x140004c64
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x140004c51
mov rcx, rax
call fcn.140013e70
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 0x140004c80
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
mov rdx, rcx
mov dword [rsp + 0x50], 0
mov rcx, qword [0x140257658]
call fcn.140006fc8
test rax, rax
je 0x140004cdc
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
mov r8d, 4
je 0x140004cc5
mov rcx, rax
call fcn.140013e70
cdqe
add rsp, 0x38
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x140004cf0
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 [0x140257658]
call fcn.140006fc8
mov rbx, rax
test rax, rax
je 0x140004d40
mov r8d, dword [rax + 0x20]
mov rdx, rdi
mov rcx, rax
call fcn.140013f80
mov r8d, dword [rbx + 0x20]
lea rdx, [0x140076c10]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140013f80
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret