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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor eax, eax
mov r14, rcx
mov ecx, 0x1000
mov r13d, r8d
mov edi, edx
mov esi, ecx
mov r12d, eax
mov r15d, eax
cmp edx, 0x18
je 0x14000df14
cmp edx, 0x19
je 0x14000df14
mov rcx, qword [0x140276de8]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rbp - 0x14]
lea r8d, [r15 + 2]
lea rdx, [rbp - 0x18]
xor edi, edi
mov rcx, r14
mov rbx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000defd
mov r15, qword [rbp + 0x48]
xor r13d, r13d
mov r14d, esi
cmp dword [rbp - 0x14], 2
jne 0x14000def7
test esi, esi
jne 0x14000deb7
mov rcx, qword [0x140276de8]
movsxd r9, r14d
lea edx, [rsi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, 0x1000
mov rbx, rax
movzx eax, word [rbp - 0x18]
cmp ax, 0xa
je 0x14000def7
cmp ax, 0xd
je 0x14000ded7
mov word [rdi + rbx], ax
inc r12d
inc r14d
add rdi, 2
dec esi
lea r9, [rbp - 0x14]
lea rdx, [rbp - 0x18]
mov r8d, 2
mov rcx, r15
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000de8c
mov r13d, dword [rbp + 0x58]
xor edi, edi
movsxd rax, r12d
mov edx, r13d
mov rcx, rbx
mov word [rbx + rax*2], di
call fcn.140018150
jmp 0x14000dfd9
mov r8, rcx
mov rcx, qword [0x140276de8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and qword [rsp + 0x20], r12
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000dfbb
mov r13, qword [rbp + 0x48]
mov r14d, esi
xor edi, edi
cmp dword [rbp - 0x14], 1
jne 0x14000dfb4
test esi, esi
jne 0x14000df7a
mov rcx, qword [0x140276de8]
lea edx, [rsi + 8]
movsxd r9, r14d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, 0x1000
mov rbx, rax
mov al, byte [rbp + 0x60]
cmp al, 0xa
je 0x14000dfb4
cmp al, 0xd
je 0x14000df94
mov byte [r15 + rbx], al
inc r12d
inc r14d
inc r15
dec esi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r13
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000df52
mov edi, dword [rbp + 0x50]
mov r13d, dword [rbp + 0x58]
movsxd rax, r12d
mov edx, r13d
mov rcx, rbx
mov byte [rax + rbx], 0
cmp edi, 0x18
jne 0x14000dfd4
call fcn.140018260
jmp 0x14000dfd9
call fcn.1400183f0
mov rcx, qword [0x140276de8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000e6d0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140276fbc], 0
jne 0x14000e6f5
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140276fbc], 1
mov dword [0x140276fb8], eax
mov rcx, qword [0x140276de8]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140276fb8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x14000e980
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140276fbc], 0
mov ebx, ecx
jne 0x14000e99f
call fcn.14000e6d0
mov ecx, dword [0x140276fb8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14000e9c7
call fcn.14000e6d0
mov ecx, dword [0x140276fb8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rcx, [rdi + 8]
mov edx, 0x11
imul ebx, ebx, 0x53a9b4fb
mov eax, 1
add rcx, 4
sub eax, ebx
mov ebx, 1
mov dword [rcx + 0x40], eax
imul eax, eax, 0x53a9b4fb
sub ebx, eax
dec rdx
mov dword [rcx - 4], ebx
jne 0x14000e9d0
mov dword [rdi], edx
mov dword [rdi + 4], 0xa
lea ebx, [rdx + 0x1f]
lea esi, [rdx + 0x10]
nop dword [rax + rax]
movsxd r10, dword [rdi]
movsxd r11, dword [rdi + 4]
mov r8d, dword [rdi + r11*4 + 8]
mov ecx, dword [rdi + r10*4 + 0x4c]
mov edx, dword [rdi + r10*4 + 8]
ror ecx, 0xd
add ecx, dword [rdi + r11*4 + 0x4c]
ror edx, 5
add edx, r8d
mov dword [rdi + r10*4 + 8], ecx
mov dword [rdi + r10*4 + 0x4c], edx
dec r10d
cmovs r10d, esi
dec r11d
cmovs r11d, esi
dec rbx
mov dword [rdi], r10d
mov dword [rdi + 4], r11d
jne 0x14000ea10
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000e740
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140276fbc], 0
mov rbx, rcx
jne 0x14000e757
call fcn.14000e6d0
mov ecx, dword [0x140276fb8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
test rax, rax
jne 0x14000e77f
call fcn.14000e6d0
mov ecx, dword [0x140276fb8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
movsxd r8, dword [r11]
movsxd rdx, dword [r11 + 4]
mov eax, 0x10
mov r9d, dword [r11 + r8*4 + 0x4c]
mov r10d, dword [r11 + r8*4 + 8]
ror r9d, 0xd
add r9d, dword [r11 + rdx*4 + 0x4c]
ror r10d, 5
add r10d, dword [r11 + rdx*4 + 8]
mov dword [r11 + r8*4 + 8], r9d
mov dword [r11 + r8*4 + 0x4c], r10d
dec r8d
mov ecx, r10d
cmovs r8d, eax
dec edx
cmovs edx, eax
inc rbx
mov dword [r11], r8d
mov dword [r11 + 4], edx
je 0x14000e7f8
mov edx, r9d
mov r8, rbx
mov eax, ebx
shr r8, 0x20
imul rax, rdx
shr rax, 0x20
imul rcx, r8
imul rdx, r8
shr rcx, 0x20
add rax, rcx
add rax, rdx
add rsp, 0x20
pop rbx
ret
mov eax, r9d
shl rax, 0x20
and rax, rcx
add rsp, 0x20
pop rbx
ret
Function at 0x14000e980
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140276fbc], 0
jne 0x14000e6f5
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140276fbc], 1
mov dword [0x140276fb8], eax
mov rcx, qword [0x140276de8]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140276fb8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x14000e980
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140276fbc], 0
mov ebx, ecx
jne 0x14000e99f
call fcn.14000e6d0
mov ecx, dword [0x140276fb8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14000e9c7
call fcn.14000e6d0
mov ecx, dword [0x140276fb8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rcx, [rdi + 8]
mov edx, 0x11
imul ebx, ebx, 0x53a9b4fb
mov eax, 1
add rcx, 4
sub eax, ebx
mov ebx, 1
mov dword [rcx + 0x40], eax
imul eax, eax, 0x53a9b4fb
sub ebx, eax
dec rdx
mov dword [rcx - 4], ebx
jne 0x14000e9d0
mov dword [rdi], edx
mov dword [rdi + 4], 0xa
lea ebx, [rdx + 0x1f]
lea esi, [rdx + 0x10]
nop dword [rax + rax]
movsxd r10, dword [rdi]
movsxd r11, dword [rdi + 4]
mov r8d, dword [rdi + r11*4 + 8]
mov ecx, dword [rdi + r10*4 + 0x4c]
mov edx, dword [rdi + r10*4 + 8]
ror ecx, 0xd
add ecx, dword [rdi + r11*4 + 0x4c]
ror edx, 5
add edx, r8d
mov dword [rdi + r10*4 + 8], ecx
mov dword [rdi + r10*4 + 0x4c], edx
dec r10d
cmovs r10d, esi
dec r11d
cmovs r11d, esi
dec rbx
mov dword [rdi], r10d
mov dword [rdi + 4], r11d
jne 0x14000ea10
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000ef90
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [rcx], 1
jne 0x14000efa3
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14000efa3
jmp 0x140017250
mov ecx, edx
jmp fcn.140017210
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
je 0x140017296
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_strlen
mov dword [rsp + 0x28], eax
mov edx, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x28]
call fcn.140016dd0
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_strcpy
jmp 0x14001729f
mov ecx, dword [rsp + 0x48]
call fcn.140017210
add rsp, 0x38
ret
Function at 0x1400103d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push r13
push r15
sub rsp, 0x30
xor r12d, r12d
mov r15d, r9d
mov r13d, edx
cmp edx, 1
jl 0x140010513
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
test rcx, rcx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r14
lea r14, [0x14001b076]
mov esi, r12d
mov rbx, r14
cmovne rbx, rcx
test r8, r8
cmovne r14, r8
mov rbp, rbx
movzx ecx, byte [r14]
test cl, cl
je 0x140010480
cmp byte [r14 + 1], sil
je 0x140010480
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r14
repne scasb al, byte [rdi]
not rcx
dec rcx
movsxd rdi, ecx
nop word [rax + rax]
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_strncmp
test eax, eax
je 0x14001046c
cmp byte [rbx], r12b
je 0x14001046c
inc rbx
jmp 0x140010450
inc esi
cmp esi, r13d
je 0x14001049e
cmp byte [rbx], r12b
je 0x1400104a4
add rbx, rdi
mov rbp, rbx
jmp 0x140010450
movzx eax, byte [rbx]
cmp al, cl
je 0x14001048b
test al, al
jne 0x140010499
inc esi
cmp esi, edx
je 0x14001049e
test al, al
je 0x1400104a4
lea rbp, [rbx + 1]
inc rbx
jmp 0x140010480
mov r12d, ebx
sub r12d, ebp
mov rcx, rbx
call fcn.1400172e0
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x60]
mov ebx, eax
test eax, eax
je 0x1400104d2
mov ecx, r15d
call fcn.1400172b0
movsxd r8, r12d
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_memmove
mov edx, r15d
mov ecx, r12d
call fcn.140016dd0
test ebx, ebx
mov rbx, qword [rsp + 0x50]
mov rdi, rax
jne 0x1400104f7
movsxd r8, r12d
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_strncpy
mov rbp, qword [rsp + 0x58]
movsxd rcx, r12d
mov byte [rcx + rdi], 0
mov rdi, qword [rsp + 0x28]
add rsp, 0x30
pop r15
pop r13
pop r12
ret
mov ecx, r9d
add rsp, 0x30
pop r15
pop r13
pop r12
jmp fcn.140017210

Function at 0x140010640
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.140016dd0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.1400105b0
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
sub esi, ecx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400171d0
Function at 0x14001313c
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
xor ebx, ebx
mov edi, 1
cmp dword [0x140276ff0], ebx
jne 0x140013177
lea r8, [0x140013050]
lea edx, [rdi + 0xf]
lea ecx, [rdi + 0x37]
mov dword [0x140276ff0], edi
call fcn.140014f1c
mov qword [0x140276fc8], rax
cmp word [0x140276fd4], bx
jne 0x140013230
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WSOCK32.DLL_WSAStartup]
mov word [0x140276fd4], di
test eax, eax
je 0x1400131a6
mov word [0x140276fd4], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140276fc0], rax
test rax, rax
je 0x140013230
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140276fc0]
lea rdx, str.freeaddrinfo
mov qword [0x140276fd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140276fc0]
lea rdx, str.getnameinfo
mov qword [0x140276fe0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140276fd8], rbx
mov qword [0x140276fe8], rax
je 0x140013230
cmp qword [0x140276fe0], rbx
je 0x140013230
mov ecx, dword [0x140276fd0]
test rax, rax
cmovne ecx, edi
mov dword [0x140276fd0], ecx
movsx rax, word [0x140276fd4]
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x14001324c
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov ebx, 0x400
xor edi, edi
mov ecx, ebx
call fcn.140016dd0
mov edx, ebx
mov rcx, rax
mov rsi, rax
call qword [sym.imp.WSOCK32.DLL_gethostname]
test eax, eax
jne 0x140013288
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov rdi, rax
sub ebx, edi
mov ecx, ebx
call fcn.1400171d0
mov rbx, qword [rsp + 0x30]
movsxd r11, edi
mov byte [r11 + rsi], 0
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140013758
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x950]
sub rsp, 0xa50
xor ebx, ebx
cmp dword [rcx], 1
mov rdi, rcx
jne 0x140013802
movsxd rcx, dword [rcx + 8]
lea rax, [rbp + 0x980]
lea rdx, [rsp + 0x40]
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r9d, r9d
xor r8d, r8d
inc ecx
mov dword [rsp + 0x40], 1
mov qword [rbp + 0x980], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_select]
test eax, eax
js 0x1400137fb
je 0x140013881
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WSOCK32.DLL___WSAFDIsSet
test eax, eax
je 0x140013881
lea r8, [rbp + 0x970]
mov edx, 0x4004667f
mov rcx, rdi
call qword [sym.imp.WSOCK32.DLL_ioctlsocket]
test eax, eax
jne 0x1400137fb
cmp dword [rbp + 0x970], ebx
je 0x1400137fb
lea ebx, [rax + 2]
jmp 0x140013881
mov ebx, 4
jmp 0x140013881
mov rcx, qword [rcx + 0x18]
lea rax, [rbp + 0x978]
lea rdx, [rbp + 0x150]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
mov r8d, 0x800
mov dword [rbp + 0x978], 0x10
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_recvfrom]
mov dword [rbp + 0x970], eax
test eax, eax
jle 0x140013881
mov rcx, qword [0x140276de8]
movsxd r8, eax
xor edx, edx
mov ebx, 2
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movsxd rcx, dword [rbp + 0x970]
mov dword [rdi + 0x28], ecx
mov r8, rcx
lea rdx, [rbp + 0x150]
mov rcx, rax
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x30], rax
call sub.msvcrt.dll_memcpy
movsxd rax, ebx
add rsp, 0xa50
pop rdi
pop rbx
pop rbp
ret

Function at 0x140013890
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
cmp dword [rcx], 1
mov rax, rdx
mov rdi, rcx
jne 0x1400138bd
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WSOCK32.DLL_recv]
mov esi, eax
jmp 0x140013905
cmp qword [rcx + 0x20], rsi
je 0x140013905
cmp r8d, dword [rcx + 0x28]
mov rdx, qword [rcx + 0x30]
mov esi, r8d
cmovg esi, dword [rcx + 0x28]
mov rcx, rax
movsxd rbx, esi
mov r8, rbx
call sub.msvcrt.dll_memcpy
sub dword [rdi + 0x28], esi
add qword [rdi + 0x30], rbx
cmp dword [rdi + 0x28], 0
jne 0x140013905
mov r8, qword [rdi + 0x20]
mov rcx, qword [0x140276de8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 0x20], 0
mov rbx, qword [rsp + 0x30]
movsxd rax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140013a38
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp dword [rcx], 1
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
jne 0x140013a64
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WSOCK32.DLL_send]
jmp 0x140013ab7
mov eax, 2
mov word [rsp + 0x30], ax
mov eax, dword [rcx + 4]
movzx ecx, word [rcx + 8]
mov dword [rsp + 0x34], eax
call qword [sym.imp.WSOCK32.DLL_htons]
mov rcx, qword [rbx + 0x10]
mov word [rsp + 0x32], ax
test rcx, rcx
je 0x140013a92
mov rcx, qword [rcx]
jmp 0x140013a96
mov rcx, qword [rbx + 0x18]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov dword [rsp + 0x28], 0x10
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_sendto]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
cdqe
add rsp, 0x40
pop rdi
ret

Function at 0x140013b00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.140016dd0
mov ecx, ebx
mov rdx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, str.Kernel32.DLL
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
je 0x140013b72
lea rdx, str.GetLongPathNameA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140013b69
mov r8d, ebx
mov rdx, rsi
mov rcx, rsi
call rax
mov edi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ebx, edi
mov ecx, ebx
call fcn.1400171d0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd r11, edi
mov byte [r11 + rsi], 0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140013b98
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140013bc3
test dl, 2
je 0x140013bb6
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x140013bc5
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140013bd4
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
or rbx, 0xffffffffffffffff
test rcx, rcx
je 0x140013d0d
cmp byte [rcx], 0
je 0x140013d0d
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_strncpy
lea rcx, [rsp + 0x20]
mov byte [rbp + 0x24], 0
call sub.msvcrt.dll_strlen
mov r11, rax
cdqe
lea rcx, [rsp + rax + 0x1f]
cmp r11d, 2
je 0x140013c36
cmp r11d, 3
jne 0x140013c6a
cmp byte [rsp + 0x21], 0x3a
jne 0x140013c6a
cmp r11d, 2
jne 0x140013c54
lea rdx, [0x14001b280]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_strcat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x140013d0d
jmp 0x140013ce5
cmp byte [rcx], 0x5c
je 0x140013c74
cmp byte [rcx], 0x2f
jne 0x140013c7c
mov byte [rcx], 0
dec rcx
jmp 0x140013c6a
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rax
cmp rax, rbx
je 0x140013cb7
test byte [rbp + 0x30], 0x10
je 0x140013ca2
mov rbx, 0xfffffffffffffffe
jmp 0x140013caf
mov ebx, dword [rbp + 0x4c]
mov eax, dword [rbp + 0x50]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140013d0d
cmp byte [rsp + 0x20], 0x5c
mov al, byte [rsp + 0x21]
jne 0x140013cc6
cmp al, 0x5c
je 0x140013cd1
cmp byte [rsp + 0x20], 0x2e
jne 0x140013d0d
cmp al, 0x2e
jne 0x140013d0d
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140013cee
test al, 0x10
je 0x140013d0d
mov rbx, 0xfffffffffffffffe
jmp 0x140013d0d
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
mov rax, rbx
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rbp
ret

Function at 0x140013d40
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 0x140013d86
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 r11d, dword [rbx + 0x10]
movsxd rax, dword [rsp + 0x40]
mov dword [rbx + 0x14], r11d
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x140014490
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 0x140014508
test r8d, r8d
je 0x140014508
mov rdx, rcx
mov rcx, qword [0x140277200]
call fcn.140014dcc
test rax, rax
je 0x140014504
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x1400144f1
mov rcx, rax
call fcn.140014700
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 0x140014520
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, rcx
mov rcx, qword [0x140277200]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
call fcn.140014dcc
mov rdi, rax
test rax, rax
je 0x1400145c4
cmp qword [rax + 8], rbx
je 0x140014587
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140014800
test rax, rax
je 0x140014574
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 0x1400145d6
cmp dword [rsp + 0x58], ebx
je 0x1400145d6
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 0x140014700
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x1c], 1
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x50], 0
jne 0x14001474a
mov edx, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov r9d, 1
neg edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x1c], 0
mov dword [rbx + 0x14], eax
mov ecx, dword [rbx + 0x14]
cmp ecx, edi
jle 0x140014786
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x14001477f
dec edx
je 0x140014777
cmp edx, 2
je 0x140014771
mov rdx, rsi
jmp 0x1400147d4
mov eax, dword [rsi]
mov dword [rcx], eax
jmp 0x1400147dc
movzx eax, word [rsi]
mov word [rcx], ax
jmp 0x1400147dc
movzx eax, byte [rsi]
mov byte [rcx], al
jmp 0x1400147dc
mov rcx, rbx
call fcn.140013d40
mov r11d, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, r11d
jl 0x1400147c9
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
sub r11d, dword [rbx + 0x14]
movsxd rcx, r11d
add rcx, qword [rbx + 8]
mov r8, rdi
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x140014800
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor r12d, r12d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp dword [rcx + 0x1c], r12d
jne 0x140014834
call fcn.140013d40
mov dword [rbx + 0x1c], 1
mov dword [rbx + 0x14], r12d
movsxd rcx, dword [rbx + 0x14]
mov eax, dword [rbx + 0x18]
sub eax, ecx
mov rbp, rcx
cmp rcx, rdi
jl 0x140014899
movsxd rcx, eax
mov rax, rdi
add rcx, qword [rbx + 8]
dec rax
je 0x14001488f
dec rax
je 0x140014881
cmp rax, 2
je 0x140014875
mov rdx, rcx
mov r8, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
movsxd rax, edi
jmp 0x140014914
mov eax, dword [rcx]
mov dword [rsi], eax
movsxd rax, edi
jmp 0x140014914
movzx eax, word [rcx]
mov word [rsi], ax
movsxd rax, edi
jmp 0x140014914
movzx eax, byte [rcx]
mov byte [rsi], al
movsxd rax, edi
jmp 0x140014914
movsxd rdx, eax
mov r8, rcx
mov rcx, rsi
add rdx, qword [rbx + 8]
call sub.msvcrt.dll_memcpy
movsxd r8, dword [rbx + 0x10]
mov rcx, qword [rbx]
sub rdi, rbp
add rsi, rbp
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x50]
cmp rdi, r8
jl 0x1400148e1
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x14], r12d
add eax, ebp
cdqe
jmp 0x140014917
mov rdx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd r11, dword [rsp + 0x50]
mov rdx, qword [rbx + 8]
cmp rdi, r11
mov rcx, rsi
mov dword [rbx + 0x14], r11d
cmovg rdi, r11
mov dword [rbx + 0x18], r11d
mov r8, rdi
call sub.msvcrt.dll_memcpy
lea eax, [rbp + rdi]
cdqe
sub dword [rbx + 0x14], edi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret