joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140031448
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140022030
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400314d2
cmp byte [rbp - 0x21], r15b
je 0x1400314cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140031508
call fcn.14001fdac
test eax, eax
jne 0x1400314f4
cmp byte [rbp - 0x21], r15b
je 0x1400314ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140031508
cmp byte [rbp - 0x21], r15b
je 0x140031505
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400230d0
test eax, eax
jne 0x1400315a8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140022030
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140031547
cmp byte [rbp - 0x21], r15b
je 0x14003157c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003157c
call fcn.14001fdac
test eax, eax
jne 0x140031568
cmp byte [rbp - 0x21], r15b
je 0x140031561
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003157c
cmp byte [rbp - 0x21], r15b
je 0x140031579
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400230d0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400315a8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400315ab
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400315b9
mov rcx, rdi
call fcn.14001ce3c
cmp byte [rbp + 0x3f], r15b
je 0x1400315c8
mov rcx, qword [rbp + 0x27]
call fcn.14001ce3c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140033b60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14015e750]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140033bb7
cmp word [rdx], r13w
jne 0x140033bb7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140033bbc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140033ce1
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140033d02
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140033bf5
mov rdx, r9
mov word [rbx], cx
jmp 0x140033c1c
cmp r9, r8
jae 0x140033c2c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140033bd6
jmp 0x140033ce1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140033cd6
cmp dword [rsp + 0x80], esi
je 0x140033cd6
lea r8, [0x14015e750]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140033cae
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140033c7e
mov word [rbx], r13w
jmp 0x140033cde
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140033c8b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140033cde
cmp word [rsp + 0x70], r13w
jne 0x140033cbb
cmp rbx, r14
je 0x140033c78
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400350f4
cmp word [rsp + 0x70], r13w
je 0x140033ce1
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14015e750]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140033cdb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140033ce1
Function at 0x140045408
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140045398
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140165460]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14015ef18]
jmp 0x140045444
cmp qword [rbx + 0x18], rdi
je 0x14004544b
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14004543b
jmp 0x140045465
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x14015ef18]
call fcn.1400756e8
lea rcx, [0x140165460]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400458a0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14004591c
movsxd rdx, ecx
lea rcx, [0x140045800]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x14015ef28]
test rbx, rbx
je 0x14004598f
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140045912
cmp byte [rbx + 0x20], 0
je 0x140045912
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x1400458d8
jmp 0x14004598f
mov rbx, qword [0x14015ef28]
test rbx, rbx
je 0x14004598f
mov rsi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140045987
cmp byte [rbx + 0x21], 0
je 0x14004594b
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140045977
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
or rdx, 0xffffffffffffffff
and dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x14015ef28]
call fcn.1400756e8
mov rbx, rsi
test rsi, rsi
jne 0x140045928
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140064364
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x1401589c8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x140064280]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.140074d94
xor r8d, r8d
mov qword [0x14015ef88], rax
xor edx, edx
mov ecx, ebx
call fcn.140074c40
xor ebx, ebx
mov qword [0x140165600], rax
cmp word [0x14015ef80], bx
jne 0x140064499
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x1400643de
movzx eax, di
jmp 0x1400643e0
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x14015ef80], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14015ef90], rax
test rax, rax
je 0x140064499
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14015ef90]
lea rdx, str.freeaddrinfo
mov qword [0x14015ef60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14015ef90]
lea rdx, str.getnameinfo
mov qword [0x14015ef68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14015ef90]
lea rdx, str.WSAStringToAddressA
mov qword [0x14015ef70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14015ef60], rbx
mov qword [0x14015ef78], rax
je 0x140064499
cmp qword [0x14015ef68], rbx
je 0x140064499
cmp qword [0x14015ef70], rbx
je 0x140064499
mov ecx, dword [0x14015ef84]
test rax, rax
cmovne ecx, edi
mov dword [0x14015ef84], ecx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14009db70
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
cmp qword [0x14015efa0], 0
jne 0x140064a02
lea rcx, [0x14015efa0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400649ee
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [0x14015efa8]
imul qword [0x14015efa0]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x14015efa0], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [0x14015efa0], 0
jne 0x140064a02
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x140064a28
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x14015efa8]
cqo
idiv qword [0x14015efa0]
add rsp, 0x28
ret

Function at 0x140067c94
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, dword [rcx + 0x10]
lea r9, [rax + 8]
mov rdx, qword [rcx + 8]
mov rdi, rcx
mov rcx, qword [rcx]
xor esi, esi
mov r8d, ebx
mov qword [rax - 0x18], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x40], ebx
mov rbx, qword [rsp + 0x48]
mov dword [rdi + 0x10], esi
sete sil
mov eax, esi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14006d178
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1401589c8]
xor rax, rsp
mov qword [rbp + 0x380], rax
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x14006d309
cmp word [rcx], di
je 0x14006d309
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rbp + 0x170]
call fcn.1400bfaf8
lea rcx, [rbp + 0x170]
mov word [rbp + 0x378], di
call fcn.140027208
mov rdx, rax
cdqe
lea rcx, [rbp + rax*2 + 0x16e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x14006d23c
cmp word [rbp + 0x172], 0x3a
jne 0x14006d23c
cmp edx, 2
jne 0x14006d21a
lea rdx, [0x1400fe548]
lea rcx, [rbp + 0x170]
call fcn.1400d073c
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14006d309
mov rbx, 0xfffffffffffffffe
jmp 0x14006d309
cmp word [rcx], 0x5c
je 0x14006d248
cmp word [rcx], 0x2f
jne 0x14006d251
mov word [rcx], di
sub rcx, 2
jmp 0x14006d23c
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x14006d292
test byte [rsp + 0x20], 0x10
je 0x14006d27b
mov rbx, 0xfffffffffffffffe
jmp 0x14006d28a
mov ebx, dword [rsp + 0x3c]
mov eax, dword [rsp + 0x40]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14006d309
movzx ecx, word [rbp + 0x170]
movzx eax, word [rbp + 0x172]
cmp cx, 0x5c
jne 0x14006d2ab
cmp ax, cx
je 0x14006d2c1
cmp cx, 0x2f
jne 0x14006d2b6
cmp ax, cx
je 0x14006d2c1
cmp cx, 0x2e
jne 0x14006d309
cmp ax, cx
jne 0x14006d309
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006d2e8
not eax
mov rbx, 0xfffffffffffffffe
shr rax, 4
and eax, 1
or rbx, rax
jmp 0x14006d309
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
mov rax, rbx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14009db70
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x14006d3f4
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 edi, 0x104
mov ecx, edi
call fcn.140077570
mov rdx, rax
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebp, ebp
movsxd rbx, eax
test eax, eax
je 0x14006d443
lea edx, [rbx - 1]
movsxd r8, edx
lea eax, [rbp + 0x5c]
cmp word [rsi + r8*2], ax
je 0x14006d443
mov word [rsi + rbx*2], ax
inc ebx
sub edi, ebx
mov ecx, edi
call fcn.140077600
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
mov word [rsi + rax*2], bp
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14006d4d0
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14006d4e3
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cdqe
jmp 0x14006d4e5
xor eax, eax
add rsp, 0x28
ret
Function at 0x14006eb30
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 0x14006eba8
test r8d, r8d
je 0x14006eba8
mov rdx, rcx
mov rcx, qword [0x140165740]
call fcn.140074cbc
test rax, rax
je 0x14006eba4
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14006eb91
mov rcx, rax
call fcn.14006ee70
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 0x14006ebc0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
mov rcx, qword [0x140165740]
jne 0x14006ebe0
add rsp, 0x30
pop rdi
jmp fcn.140074e54
mov rdx, rdi
mov qword [rsp + 0x48], rbx
call fcn.140074cbc
mov rbx, rax
test rax, rax
je 0x14006ec55
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14006ec3d
xor eax, eax
mov dword [rsp + 0x40], eax
cmp dword [rbx + 0x1c], eax
jne 0x14006ec2a
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 [0x14015d850]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140165740]
mov rdx, rdi
call fcn.140074c80
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14006ec60
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 0x14006eca4
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 0x14006ecf0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x140165740]
call fcn.140074cbc
mov rbx, rax
test rax, rax
je 0x14006ed43
cmp qword [rax + 8], 0
je 0x14006ed22
cmp dword [rax + 0x1c], 0
jne 0x14006ed22
mov rcx, rax
call fcn.14006ec60
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 0x14006ed50
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 [0x140165740]
call fcn.140074cbc
test rax, rax
je 0x14006edb8
cmp qword [rax + 8], 0
mov rdx, rdi
je 0x14006ed9e
mov r8, rbx
mov rcx, rax
call fcn.14006ef80
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 0x14006ee70
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x38
xor ebp, ebp
movsxd rbx, r8d
mov r14, rdx
mov rsi, rcx
mov dword [rsp + 0x60], ebp
cmp dword [rcx + 0x24], ebp
jne 0x14006ef6a
cmp dword [rcx + 0x1c], 1
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x30], r15
jne 0x14006eecb
mov eax, dword [rcx + 0x14]
lea r9d, [rbp + 1]
mov rcx, qword [rcx]
lea r8, [rsp + 0x7c]
neg eax
cdqe
mov edx, eax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rsi + 0x10]
mov dword [rsi + 0x14], eax
mov dword [rsi + 0x1c], ebp
mov ecx, dword [rsi + 0x14]
cmp ecx, ebx
jle 0x14006ef2c
mov eax, dword [rsi + 0x10]
mov edx, ebx
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rsi + 8]
sub edx, 1
je 0x14006ef24
sub edx, 1
je 0x14006ef1b
cmp edx, 2
je 0x14006ef14
mov r8, rbx
mov rdx, r14
call fcn.1400374f0
sub dword [rsi + 0x14], ebx
mov rax, rbx
mov rdi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [r14]
mov dword [rcx], eax
jmp 0x14006eefa
movzx eax, word [r14]
mov word [rcx], ax
jmp 0x14006eefa
movzx eax, byte [r14]
mov byte [rcx], al
jmp 0x14006eefa
mov rcx, rsi
call fcn.14006ec60
mov eax, dword [rsi + 0x10]
mov rdx, r14
cmp ebx, eax
jl 0x14006ef5b
mov rcx, qword [rsi]
lea r9, [rsp + 0x60]
mov r8d, ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x60]
jmp 0x14006ef00
sub eax, dword [rsi + 0x14]
mov r8, rbx
movsxd rcx, eax
add rcx, qword [rsi + 8]
jmp 0x14006eef5
movsxd rax, ebp
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x14006ef80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov rdi, r8
mov r15, rdx
mov r14, rcx
cmp dword [rcx + 0x1c], ebp
jne 0x14006efb7
call fcn.14006ec60
mov dword [r14 + 0x1c], 1
mov dword [r14 + 0x14], ebp
movsxd r12, dword [r14 + 0x14]
mov eax, dword [r14 + 0x18]
mov rbx, r12
sub eax, r12d
movsxd rdx, eax
add rdx, qword [r14 + 8]
cmp r12, rdi
jl 0x14006f030
mov rax, rdi
sub rax, 1
je 0x14006f021
sub rax, 1
je 0x14006f00e
cmp rax, 2
je 0x14006effd
mov r8, rdi
mov rcx, r15
call fcn.1400374f0
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14006f0aa
mov eax, dword [rdx]
mov dword [r15], eax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14006f0aa
movzx eax, word [rdx]
mov word [r15], ax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14006f0aa
movzx eax, byte [rdx]
mov byte [r15], al
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14006f0aa
mov r8, rbx
mov rcx, r15
call fcn.1400374f0
movsxd r8, dword [r14 + 0x10]
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
add r15, rbx
sub rdi, rbx
mov qword [rsp + 0x20], rbp
cmp rdi, r8
jl 0x14006f070
mov r8d, edi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x60]
add eax, r12d
mov dword [r14 + 0x14], ebp
jmp 0x14006f0a8
mov rdx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x60]
mov rcx, r15
mov rdx, qword [r14 + 8]
cmp rdi, rax
mov rbx, rax
mov dword [r14 + 0x14], eax
cmovle rbx, rdi
mov dword [r14 + 0x18], eax
mov r8, rbx
call fcn.1400374f0
sub dword [r14 + 0x14], ebx
lea eax, [rbx + r12]
cdqe
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400717c0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov r14d, dword [rsp + 0x48]
lea rax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
test r14b, 0x10
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
mov esi, r9d
mov r11d, edx
cmove rbx, rax
mov r10, rcx
mov r12, r8
mov r15, r8
test edx, edx
jle 0x1400718b1
lea eax, [r9 - 4]
mov r13d, 0x3d3d
movsxd rdi, eax
nop dword [rax + rax]
mov rdx, r8
sub rdx, r15
cmp r11d, 3
jae 0x140071928
mov r9d, r14d
and r9d, 0x20
cmp r11d, 2
jne 0x1400718d8
test r9d, r9d
je 0x140071851
lea eax, [rsi - 3]
movsxd rcx, eax
cmp rdx, rcx
jmp 0x140071854
cmp rdx, rdi
jge 0x1400719a4
movzx eax, byte [r10 + 1]
movzx ecx, byte [r10]
add r10, 2
shl rcx, 8
or rcx, rax
shl rcx, 2
mov rax, rcx
shr rax, 0xc
movzx eax, byte [rax + rbx]
mov byte [r8], al
mov rax, rcx
shr rax, 6
and ecx, 0x3f
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r8 + 1], al
movzx eax, byte [rcx + rbx]
mov byte [r8 + 2], al
add r8, 3
test r9d, r9d
jne 0x140071992
mov byte [r8], 0x3d
inc r8
mov byte [r8], 0
sub r8, r12
mov rax, r8
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
test r9d, r9d
je 0x1400718e8
lea eax, [rsi - 2]
movsxd rcx, eax
cmp rdx, rcx
jmp 0x1400718eb
cmp rdx, rdi
jge 0x1400719a4
movzx ecx, byte [r10]
inc r10
shl rcx, 4
mov rax, rcx
and ecx, 0x3f
shr rax, 6
movzx eax, byte [rax + rbx]
mov byte [r8], al
movzx eax, byte [rcx + rbx]
mov byte [r8 + 1], al
add r8, 2
test r9d, r9d
jne 0x140071992
mov word [r8], r13w
add r8, 2
jmp 0x140071992
cmp rdx, rdi
jge 0x1400719a4
movzx eax, byte [r10 + 1]
movzx ecx, byte [r10 + 2]
movzx r9d, byte [r10]
add r10, 3
shl r9, 8
or r9, rax
shl r9, 8
or r9, rcx
mov rax, r9
shr rax, 6
and eax, 0x3f
movsx edx, byte [rax + rbx]
mov rax, r9
and eax, 0x3f
movsx ecx, byte [rax + rbx]
mov rax, r9
shr rax, 0xc
and eax, 0x3f
shl ecx, 8
or edx, ecx
shr r9, 0x12
shl edx, 8
movsx eax, byte [rax + rbx]
or edx, eax
movsx eax, byte [r9 + rbx]
shl edx, 8
or edx, eax
mov dword [r8], edx
add r8, 4
sub r11d, 3
test r11d, r11d
jg 0x140071820
jmp 0x1400718b1
xor eax, eax
jmp 0x1400718bb