joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400133a0
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 0x1400133d7
call fcn.140001e30
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 0x140013450
mov rax, rdi
sub rax, 1
je 0x140013441
sub rax, 1
je 0x14001342e
cmp rax, 2
je 0x14001341d
mov r8, rdi
mov rcx, r15
call fcn.140004d70
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x1400134ca
mov eax, dword [rdx]
mov dword [r15], eax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x1400134ca
movzx eax, word [rdx]
mov word [r15], ax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x1400134ca
movzx eax, byte [rdx]
mov byte [r15], al
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x1400134ca
mov r8, rbx
mov rcx, r15
call fcn.140004d70
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 0x140013490
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 0x1400134c8
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.140004d70
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 0x1400134f0
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 0x1400135ea
cmp dword [rcx + 0x1c], 1
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x30], r15
jne 0x14001354b
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 0x1400135ac
mov eax, dword [rsi + 0x10]
mov edx, ebx
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rsi + 8]
sub edx, 1
je 0x1400135a4
sub edx, 1
je 0x14001359b
cmp edx, 2
je 0x140013594
mov r8, rbx
mov rdx, r14
call fcn.140004d70
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 0x14001357a
movzx eax, word [r14]
mov word [rcx], ax
jmp 0x14001357a
movzx eax, byte [r14]
mov byte [rcx], al
jmp 0x14001357a
mov rcx, rsi
call fcn.140001e30
mov eax, dword [rsi + 0x10]
mov rdx, r14
cmp ebx, eax
jl 0x1400135db
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 0x140013580
sub eax, dword [rsi + 0x14]
mov r8, rbx
movsxd rcx, eax
add rcx, qword [rsi + 8]
jmp 0x140013575
movsxd rax, ebp
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret

Function at 0x140013ae4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013c2c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140013c9b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140013c9b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140013c9b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140013c9b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140013c9b
cmp dword [rcx + 0x84], 0xe
jbe 0x140013c9b
cmp dword [rcx + 0xf8], 0
je 0x140013c9b
mov ecx, ebx
call fcn.140013b64
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140013dc0
nop
cmp dword [rbp + 0x20], 0
je 0x140013ce9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140013bf8
int3
Function at 0x1400189d0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
call fcn.140019090
call fcn.14001de00
xor ecx, ecx
call fcn.140017cf0
test eax, eax
jne 0x1400189e0
mov rbx, qword [0x140087080]
test rbx, rbx
je 0x140018ac0
cmp dword [0x14008707c], eax
je 0x140018ac0
cmp dword [0x1400879f0], 0
mov eax, dword [0x140087078]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x140018a8b
mov rcx, qword [0x1400870a0]
mov rdx, rbx
movsxd r8, eax
call fcn.140004d70
xor r9d, r9d
cmp dword [0x140087078], r9d
jle 0x140018a84
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x1400870a0]
inc r9d
add rdx, r8
add r8, 4
movzx ecx, byte [rdx]
movzx eax, byte [rdx + 3]
mov byte [rdx], al
movzx eax, byte [rdx + 2]
mov byte [rdx + 3], cl
movzx ecx, byte [rdx + 1]
mov byte [rdx + 1], al
mov byte [rdx + 2], cl
cmp r9d, dword [0x140087078]
jl 0x140018a50
mov rbx, qword [0x1400870a0]
call fcn.140045b70
lea rcx, [0x140088b00]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140087a18]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x140088b00]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.140045b70
lea rcx, [0x140088b00]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140087a18]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x140088b00]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x140087a18]
call qword [rax + 0x28]
lea rcx, [0x140088ac0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140088b00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140088b40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x140087a08]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x140087a08]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140087a10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x140087a10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140088ac0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140088b00]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140088b40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140088ac0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x140088b00]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x140088b40]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
add rsp, 0x40
pop rbx
ret
Function at 0x14001d130
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x110
mov rsi, rdx
mov rbp, r8
lea rdx, [rsp + 0x40]
mov rdi, rcx
xor ebx, ebx
call fcn.14001cb30
test eax, eax
je 0x14001d229
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140029e9c
test eax, eax
jne 0x14001d229
lea rdx, [rsp + 0xa4]
mov rcx, rbp
call fcn.140029e9c
test eax, eax
jne 0x14001d229
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14001d229
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14001d220
test eax, eax
jle 0x14001d220
lea ecx, [rdi + 1]
movsxd rcx, ecx
call fcn.1400469d8
mov rsi, rax
test rax, rax
je 0x14001d220
lea r9, [rsp + 0x138]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001d220
cmp dword [rsp + 0x138], edi
jne 0x14001d220
mov rcx, rsi
mov byte [rdi + rsi], bl
call fcn.14001ce60
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x110]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14001d250
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x270
xor edi, edi
lea r9, [rsp + 0x20]
sub r9, rcx
mov rbp, r8
mov r14, rdx
nop dword [rax]
movzx eax, byte [rcx]
mov byte [r9 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14001d280
lea rcx, [rsp + 0x20]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x14001d2a0
movzx eax, word [0x140073258]
mov word [rcx], ax
lea rcx, [rsp + 0x20]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], dil
jne 0x14001d2c0
lea rbx, [rsp + 0x20]
add rbx, rax
lea rdx, [rsp + 0x130]
mov eax, 0x2a
lea rcx, [rsp + 0x20]
mov word [rbx], ax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001d3b3
lea rax, [rsp + 0x15c]
sub rbx, rax
nop dword [rax]
nop dword [rax + rax]
lea rax, [rsp + 0x15c]
nop dword [rax + rax]
movzx ecx, byte [rax]
mov byte [rbx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x14001d320
test byte [rsp + 0x130], 0x10
je 0x14001d376
movzx ecx, byte [rsp + 0x15c]
movzx eax, byte [rsp + 0x15d]
cmp cl, 0x2e
jne 0x14001d364
cmp al, cl
jne 0x14001d35b
cmp byte [rsp + 0x15e], dil
je 0x14001d38a
cmp cl, 0x2e
jne 0x14001d364
test al, al
je 0x14001d38a
mov r8, rbp
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.14001d250
jmp 0x14001d386
mov r8, rbp
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.14001d130
test eax, eax
jne 0x14001d3a5
lea rdx, [rsp + 0x130]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14001d310
jmp 0x14001d3aa
mov edi, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r11, [rsp + 0x270]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14001de00
Capabilities:
Check for time delay via gettickcount
Suspend thread

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x14009f200]
call fcn.1400026f0
cmp dword [0x140084018], 0
mov rsi, qword [rax]
je 0x14001df40
cmp dword [0x14009f1c0], 0
jne 0x14001df40
mov qword [rsp + 0x30], rbx
lea rcx, [0x14009f1c8]
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x140087060], 0
je 0x14001de76
lea rcx, [0x140088b40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140088b00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140088ac0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x14009f1f8]
xor r9d, r9d
xor r8d, r8d
mov qword [0x14009f210], rsi
xor edx, edx
mov dword [0x14009f1c0], 1
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x14009f1f0]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x14001def3
cmp rbx, rsi
je 0x14001deeb
cmp dword [rbx + 0x38], 0
jne 0x14001deeb
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x14001dedb
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x14001dec0
cmp dword [rbx + 0x38], 0
jne 0x14001deeb
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14001deb3
cmp dword [0x140087060], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x14001df2d
lea rcx, [0x140088ac0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140088b00]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140088b40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14009f1c8]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret

Function at 0x14001df50
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x14009f200]
call fcn.1400026f0
cmp dword [0x140084018], 0
mov rdi, qword [rax]
je 0x14001dfc7
cmp qword [0x14009f210], rdi
jne 0x14001dfc7
cmp dword [0x14009f1c0], 0
je 0x14001dfc7
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14009f1f0]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x14001dfb7
cmp rbx, rdi
je 0x14001dfac
cmp dword [rbx + 0x38], esi
jne 0x14001dfac
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [rbx + 0x38], esi
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14001df98
mov rbx, qword [rsp + 0x30]
mov dword [0x14009f1c0], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400210c0
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, str.PureBasic_Console_Debugger__press_CtrlC_to_stop_program_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov eax, 0x1f4
mov ecx, 0xfffffff5
mov word [rsp + 0x22], ax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.140047b30
mov ecx, eax
lea rdx, [0x140072d64]
call fcn.140046ff8
xor r9d, r9d
mov qword [0x14009f238], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400477f8
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.140047b30
mov ecx, eax
lea rdx, [0x140072c04]
call fcn.140046ff8
xor r9d, r9d
mov qword [0x14009f240], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400477f8
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.140047b30
mov ecx, eax
lea rdx, [0x140072c04]
call fcn.140046ff8
xor r9d, r9d
mov qword [0x14009f248], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400477f8
mov rax, qword [0x14009f240]
mov qword [0x14009f448], rax
call fcn.140022870
add rsp, 0x48
ret
Function at 0x14003bf50
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, edx
mov rbp, rcx
test edx, edx
jle 0x14003bfab
nop
mov rcx, qword [0x1400a3018]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rbp
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp eax, 0xffffffff
jne 0x14003bfa5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8bb
test eax, 0xfffffffa
je 0x14003bfc5
add ebx, esi
cmp ebx, edi
jl 0x14003bf70
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x14003bfb0

Function at 0x140048270
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140085cb0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400482ba
call fcn.14002af50
mov dword [rax], recv
call fcn.14002af30
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400263c4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002c730
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400482c5
lea eax, [rbx + 1]
jmp 0x1400482a7
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400482a5
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400482a7

Function at 0x14004d788
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400271f4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14004d829
cmp ebx, dword [rsp + 0x30]
je 0x14004d822
test esi, esi
je 0x14004d822
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004d7fd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004d80a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14004d7e7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004d80e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004d82b
mov eax, 1
jmp 0x14004d82b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004f9b8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004f9ce
mov al, 1
jmp 0x14004fa2e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004f9df
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004fa2c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140047ab8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004fa2c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004fa2c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004fa2c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004fa2e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140054780
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140053a10
mov r11d, eax
lea edx, [rax*4]
movsxd r9, edx
test edx, edx
jle 0x1400547fd
lea r8, [rbx + 8]
xor r10d, r10d
lea r8, [r8 + r9*4]
lea rcx, [rbx + 8]
nop
mov edx, dword [rcx - 8]
add r10, 4
mov eax, dword [r8 - 8]
lea r8, [r8 - 0x10]
mov dword [rcx - 8], eax
lea rcx, [rcx + 0x10]
mov eax, dword [r8 + 0xc]
sub r9, 4
mov dword [r8 + 8], edx
mov edx, dword [rcx - 0x14]
mov dword [rcx - 0x14], eax
mov eax, dword [r8 + 0x10]
mov dword [r8 + 0xc], edx
mov edx, dword [rcx - 0x10]
mov dword [rcx - 0x10], eax
mov eax, dword [r8 + 0x14]
mov dword [r8 + 0x10], edx
mov edx, dword [rcx - 0xc]
mov dword [rcx - 0xc], eax
mov dword [r8 + 0x14], edx
cmp r10, r9
jl 0x1400547b0
cmp r11d, 1
jle 0x1400549b9
mov qword [rsp + 0x30], rdi
lea r10d, [r11 - 1]
lea rdi, [0x140000000]
add rbx, 4
nop dword [rax + rax]
mov r9d, dword [rbx + 0x10]
lea rbx, [rbx + 0x10]
mov edx, dword [rbx - 4]
movzx eax, byte [rbx - 3]
movzx ecx, byte [rdi + rax*4 + 0x706a0]
mov eax, edx
shr rax, 0x18
mov r8d, dword [rdi + rcx*4 + 0x712a0]
movzx eax, byte [rdi + rax*4 + 0x706a0]
xor r8d, dword [rdi + rax*4 + 0x70aa0]
movzx eax, dl
movzx ecx, byte [rdi + rax*4 + 0x706a0]
movzx eax, byte [rbx - 2]
xor r8d, dword [rdi + rcx*4 + 0x716a0]
movzx ecx, byte [rdi + rax*4 + 0x706a0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x70ea0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx - 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x706a0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x70ea0]
movzx eax, byte [rdi + rcx*4 + 0x706a0]
xor r8d, dword [rdi + rax*4 + 0x712a0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x706a0]
movzx eax, r9b
mov r9d, dword [rbx + 4]
xor r8d, dword [rdi + rcx*4 + 0x70aa0]
movzx ecx, byte [rdi + rax*4 + 0x706a0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x716a0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx], r8d
movzx edx, byte [rdi + rcx*4 + 0x706a0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x70ea0]
movzx eax, byte [rdi + rcx*4 + 0x706a0]
xor r8d, dword [rdi + rax*4 + 0x712a0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x706a0]
movzx eax, r9b
mov r9d, dword [rbx + 8]
xor r8d, dword [rdi + rcx*4 + 0x70aa0]
movzx ecx, byte [rdi + rax*4 + 0x706a0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x716a0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx + 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x706a0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x70ea0]
movzx eax, byte [rdi + rcx*4 + 0x706a0]
xor r8d, dword [rdi + rax*4 + 0x712a0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x706a0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x70aa0]
movzx ecx, byte [rdi + rax*4 + 0x706a0]
xor r8d, dword [rdi + rcx*4 + 0x716a0]
mov dword [rbx + 8], r8d
sub r10, 1
jne 0x140054820
mov rdi, qword [rsp + 0x30]
mov eax, r11d
add rsp, 0x20
pop rbx
ret
Function at 0x14005c5cc
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, [0x14009f8e0]
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 0x14005c623
cmp word [rdx], r13w
jne 0x14005c623
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14005c628
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14005c74d
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14005c76e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14005c661
mov rdx, r9
mov word [rbx], cx
jmp 0x14005c688
cmp r9, r8
jae 0x14005c698
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 0x14005c642
jmp 0x14005c74d
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 0x14005c742
cmp dword [rsp + 0x80], esi
je 0x14005c742
lea r8, [0x14009f8e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14005c71a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14005c6ea
mov word [rbx], r13w
jmp 0x14005c74a
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 0x14005c6f7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005c74a
cmp word [rsp + 0x70], r13w
jne 0x14005c727
cmp rbx, r14
je 0x14005c6e4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14005aff0
cmp word [rsp + 0x70], r13w
je 0x14005c74d
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, [0x14009f8e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005c747
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14005c74d