joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001f58
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 [0x140408248]
call fcn.1400051ec
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 0x14000208f
mov rcx, qword [rsp + 0x30]
jmp 0x140001fa9
add rdx, 2
movzx r8d, word [rdx]
cmp r8w, 0x20
je 0x140001fa1
mov r11d, 1
cmp r8w, 0x22
jne 0x140001ff8
add rdx, 2
mov r9, rdx
movzx r8d, word [rdx]
test r8w, r8w
je 0x140002057
movzx eax, r8w
movzx r8d, ax
cmp ax, 0x22
je 0x140001ff2
add rdx, 2
movzx r8d, word [rdx]
movzx eax, r8w
test r8w, r8w
jne 0x140001fd6
test r8w, r8w
jmp 0x140002057
test r8w, r8w
je 0x140002067
mov r9, rdx
movzx r10d, r8w
cmp r8w, 0x20
je 0x140002053
add rdx, 2
movzx r8d, word [rdx]
cmp r8w, 0x22
jne 0x140002049
add rdx, 2
movzx r8d, word [rdx]
test r8w, r8w
je 0x140002049
movzx eax, r8w
movzx r8d, ax
cmp ax, 0x22
je 0x140002049
add rdx, 2
movzx r8d, word [rdx]
movzx eax, r8w
test r8w, r8w
jne 0x14000202d
movzx r10d, r8w
test r8w, r8w
jne 0x140002001
test r10w, r10w
lea rax, [rdx + 2]
mov rcx, rdx
cmove rax, rdx
mov rdx, rax
jmp 0x14000206d
mov r11d, ebp
mov r9, rbp
cmp dword [rsi], edi
jne 0x140002076
test rbx, rbx
jne 0x140002099
movzx r8d, word [rdx]
lea eax, [rdi + 1]
test r11d, r11d
cmove eax, edi
mov edi, eax
test r8w, r8w
jne 0x140001fa9
test rbx, rbx
jne 0x1400020ad
movsxd rax, edi
jmp 0x1400020b2
test r9, r9
je 0x1400020ad
sub rcx, r9
mov rax, r9
sar rcx, 1
mov dword [rbx], ecx
inc dword [rsi]
jmp 0x1400020b2
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 0x1400020c8
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 [0x140408248]
mov esi, edx
mov dword [rax + 8], ebp
call fcn.1400051ec
test ebx, ebx
js 0x1400020f7
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.140001f58
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.1400062f0
mov ecx, ebp
jmp 0x140002133
test edi, edi
je 0x140002138
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x140002126
inc ecx
jmp 0x14000212d
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x140002115
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.1400063a0
Function at 0x140002cd4
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x140002bf0]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.140007154
xor r8d, r8d
mov qword [0x1404086c8], rax
xor edx, edx
mov ecx, ebx
call fcn.140005284
xor ebx, ebx
mov qword [0x1404086d8], rax
cmp word [0x1404086c0], bx
jne 0x140002df7
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x140002d3c
movzx eax, di
jmp 0x140002d3e
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x1404086c0], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1404086d0], rax
test rax, rax
je 0x140002df7
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404086d0]
lea rdx, str.freeaddrinfo
mov qword [0x1404086a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404086d0]
lea rdx, str.getnameinfo
mov qword [0x1404086a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404086d0]
lea rdx, str.WSAStringToAddressA
mov qword [0x1404086b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1404086a0], rbx
mov qword [0x1404086b8], rax
je 0x140002df7
cmp qword [0x1404086a8], rbx
je 0x140002df7
cmp qword [0x1404086b0], rbx
je 0x140002df7
mov ecx, dword [0x1404086c4]
test rax, rax
cmovne ecx, edi
mov dword [0x1404086c4], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x140002e08
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 0x140002eb4
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 0x140002ead
je 0x140002f1d
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140002f1d
lea r8, [rbp + 0x950]
mov edx, 0x4004667f
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x140002ead
cmp dword [rbp + 0x950], ebx
lea ebx, [rax + 2]
jne 0x140002f1d
mov ebx, 4
jmp 0x140002f1d
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 0x140002f1d
mov rcx, qword [0x1404081f8]
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.140006900
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 0x14000338c
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 0x1400033b9
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
jmp 0x140003401
cmp qword [rcx + 0x38], rsi
je 0x140003401
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.140006900
sub dword [rdi + 0x40], esi
add qword [rdi + 0x48], rbx
cmp dword [rdi + 0x40], 0
jne 0x140003401
mov r8, qword [rdi + 0x38]
xor edx, edx
mov rcx, qword [0x1404081f8]
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 0x140003414
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x38
cmp dword [rcx], 1
mov r10, rdx
jne 0x14000342f
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
jmp 0x140003467
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 0x14000344e
mov rcx, qword [rax]
jmp 0x140003452
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 0x14000351c
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp qword [0x1404086e8], 0
jne 0x140003582
lea rcx, [0x1404086e8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14000356e
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [0x1404086f0]
imul qword [0x1404086e8]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x1404086e8], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [0x1404086e8], 0
jne 0x140003582
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x1400035a8
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x1404086f0]
cqo
idiv qword [0x1404086e8]
add rsp, 0x28
ret
Function at 0x140003b00
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 [0x1404086fc], 0
jne 0x140003b28
call fcn.140003a90
mov ecx, dword [0x1404086f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
test rax, rax
jne 0x140003b50
call fcn.140003a90
mov ecx, dword [0x1404086f8]
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 0x140003bd8
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 0x140003e10
Capabilities:
Create directory

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

Function at 0x140003ea8
Capabilities:
Delete file
Set file attributes

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

Function at 0x140003edc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x140003eef
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
add rsp, 0x28
ret
Function at 0x140003fe8
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 [0x140408710]
xor r13d, r13d
mov rbp, r8
mov r14, rdx
mov rdi, rcx
mov esi, r13d
test rax, rax
jne 0x14000403a
lea r8, [fcn.140003fa4]
mov ecx, 0x260
lea edx, [rax + 0x10]
call fcn.140007154
mov qword [0x140408710], rax
mov rdx, rdi
mov rcx, rax
call fcn.140006fb8
mov rbx, rax
test rax, rax
je 0x14000413d
test r14, r14
lea r15, [0x140076c14]
cmovne r15, r14
test rbp, rbp
je 0x14000406b
cmp word [rbp], r13w
jne 0x140004072
lea rbp, [0x14007b728]
mov rcx, r15
call fcn.140007278
mov rcx, rbp
mov r12, rax
call fcn.140007278
mov rcx, qword [0x1404081f8]
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 0x140004126
mov rdx, r15
mov rcx, rax
call fcn.14000725c
test r12d, r12d
je 0x1400040d3
movsxd rax, r12d
cmp word [r15 + rax*2 - 2], 0x5c
je 0x1400040d3
lea rdx, [0x140076bd0]
mov rcx, r14
call fcn.140007230
mov rdx, rbp
mov rcx, r14
call fcn.140007230
lea rdx, [rbx + 0xc]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x1400040fa
mov dword [rbx + 8], r13d
jmp 0x14000410c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000410f
mov dword [rbx + 8], 1
mov rsi, rbx
mov rcx, qword [0x1404081f8]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
jne 0x14000413d
mov rcx, qword [0x140408710]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.1400070e8
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 0x1400041bc
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 0x14000432d
cmp word [rcx], di
je 0x14000432d
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.140006518
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call fcn.140007278
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x140004262
cmp word [rsp + 0x22], 0x3a
jne 0x140004262
cmp edx, 2
jne 0x140004242
lea rdx, [0x140076bd0]
lea rcx, [rsp + 0x20]
call fcn.140007230
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14000432d
mov rbx, 0xfffffffffffffffe
jmp 0x14000432d
cmp word [rcx], 0x5c
je 0x14000426e
cmp word [rcx], 0x2f
jne 0x140004277
mov word [rcx], di
sub rcx, 2
jmp 0x140004262
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x1400042be
test byte [rbp + 0x130], 0x10
je 0x1400042a3
mov rbx, 0xfffffffffffffffe
jmp 0x1400042b6
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14000432d
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x1400042d3
cmp ax, cx
je 0x1400042e9
cmp cx, 0x2f
jne 0x1400042de
cmp ax, cx
je 0x1400042e9
cmp cx, 0x2e
jne 0x14000432d
cmp ax, cx
jne 0x14000432d
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000430e
not eax
mov rbx, 0xfffffffffffffffe
shr rax, 4
and eax, 1
or rbx, rax
jmp 0x14000432d
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 0x140004538
Capabilities:
Move file

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

Function at 0x140004560
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 0x1400045a4
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 0x1400045b0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
mov rcx, qword [0x140408718]
jne 0x1400045d0
add rsp, 0x30
pop rdi
jmp fcn.1400131e0
mov rdx, rdi
mov qword [rsp + 0x48], rbx
call fcn.140007088
mov rbx, rax
test rax, rax
je 0x140004645
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14000462d
xor eax, eax
mov dword [rsp + 0x40], eax
cmp dword [rbx + 0x1c], eax
jne 0x14000461a
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 [0x1404081f8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140408718]
mov rdx, rdi
call fcn.1400070e8
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400049b0
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 [0x140408718]
mov dword [rsp + 0x50], edi
call fcn.140007088
mov rbx, rax
test rax, rax
je 0x140004a55
cmp qword [rax + 8], rdi
je 0x140004a17
lea r8d, [rdi + 1]
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140013670
test rax, rax
je 0x140004a04
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 0x140004a65
cmp dword [rsp + 0x58], edi
je 0x140004a65
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 0x140004ae0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x140408718]
call fcn.140007088
mov rbx, rax
test rax, rax
je 0x140004b33
cmp qword [rax + 8], 0
je 0x140004b12
cmp dword [rax + 0x1c], 0
jne 0x140004b12
mov rcx, rax
call fcn.140004560
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 0x140004b40
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 [0x140408718]
call fcn.140007088
test rax, rax
je 0x140004ba8
cmp qword [rax + 8], 0
mov rdx, rdi
je 0x140004b8e
mov r8, rbx
mov rcx, rax
call fcn.140013670
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 0x140004cb0
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 0x140004d28
test r8d, r8d
je 0x140004d28
mov rdx, rcx
mov rcx, qword [0x140408718]
call fcn.140007088
test rax, rax
je 0x140004d24
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x140004d11
mov rcx, rax
call fcn.140013f30
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 0x140004d40
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 [0x140408718]
call fcn.140007088
test rax, rax
je 0x140004d9c
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
mov r8d, 4
je 0x140004d85
mov rcx, rax
call fcn.140013f30
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 0x140004db0
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 [0x140408718]
call fcn.140007088
mov rbx, rax
test rax, rax
je 0x140004e00
mov r8d, dword [rax + 0x20]
mov rdx, rdi
mov rcx, rax
call fcn.140014040
mov r8d, dword [rbx + 0x20]
lea rdx, [0x140076c10]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140014040
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140005000
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 0x1400050f1
lea eax, [r9 - 4]
mov r13d, 0x3d3d
movsxd rdi, eax
nop dword [rax + rax]
mov rdx, r8
sub rdx, r15
cmp r11d, 3
jae 0x140005168
mov r9d, r14d
and r9d, 0x20
cmp r11d, 2
jne 0x140005118
test r9d, r9d
je 0x140005091
lea eax, [rsi - 3]
movsxd rcx, eax
cmp rdx, rcx
jmp 0x140005094
cmp rdx, rdi
jge 0x1400051e4
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 0x1400051d2
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 0x140005128
lea eax, [rsi - 2]
movsxd rcx, eax
cmp rdx, rcx
jmp 0x14000512b
cmp rdx, rdi
jge 0x1400051e4
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 0x1400051d2
mov word [r8], r13w
add r8, 2
jmp 0x1400051d2
cmp rdx, rdi
jge 0x1400051e4
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 0x140005060
jmp 0x1400050f1
xor eax, eax
jmp 0x1400050fb