joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034330
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1400ff400], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400f59d4], eax
add rsp, 0x28
jmp fcn.140034560

Function at 0x140034440
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rbp, ecx
mov esi, edx
mov ecx, dword [0x1400f59d4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp esi, 0xffffffff
jne 0x140034470
mov esi, dword [rax + 0x10]
mov eax, dword [rax + 0x10]
mov r8, qword [rbx + 8]
lea edx, [rax + rbp*2]
movsxd rax, edx
lea rcx, [r8 - 4]
cmp rax, rcx
jl 0x140034491
lea eax, [rdx + 0x4000]
movsxd r9, eax
jmp 0x1400344a3
mov eax, 0x100000
cmp r8, rax
jle 0x1400344c0
cmp edx, eax
cmovl edx, eax
mov r9d, edx
mov r8, qword [rbx]
xor edx, edx
mov qword [rbx + 8], r9
add r9, 0xa
mov rcx, qword [0x1400ff400]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx], rax
mov rax, qword [rbx]
movsxd rdx, esi
mov rsi, qword [rsp + 0x40]
add rax, rdx
lea rcx, [rdx + rbp*2]
mov rbp, qword [rsp + 0x38]
mov qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140034560
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1400ff400]
xor edx, edx
mov r8d, 0x340
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x1400ff400]
xor edx, edx
mov rbx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 8], reloc.WS2_32.dll_recv
mov rdx, rbx
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x338], rax
mov ecx, dword [0x1400f59d4]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x14003a7e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push r12
sub rsp, 0x48
xor ebx, ebx
mov r12d, edx
mov qword [rsp + 0x30], rbx
mov ebp, 1
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov r8d, ebp
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14003a9be
xor edx, edx
mov qword [rsp + 0x70], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
je 0x14003a86c
test eax, eax
jle 0x14003a86c
mov rdx, qword [0x1400ffca0]
lea r9, [rsp + 0x80]
mov r8d, eax
mov qword [rsp + 0x20], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003a86c
cmp dword [rsp + 0x80], edi
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14003a9b9
mov rax, qword [0x1400ffca0]
mov rdx, rax
cmp dword [rax], 0x50555245
jne 0x14003a9b9
mov qword [rsp + 0x40], r15
mov r15d, dword [rax + 8]
add rax, 0xc
add r15d, 0xadbaaccf
cmp r15d, 8
ja 0x14003a9b4
lea ecx, [rdi - 8]
mov qword [rsp + 0x88], r14
movsxd r14, ecx
lea rcx, [r14 + rdx]
cmp rax, rcx
jae 0x14003a9ac
mov qword [rsp + 0x78], r13
lea r13, [0x140000000]
nop dword [rax + rax]
cmp dword [rax], 0x434e5354
lea rsi, [rax + 8]
movsxd rdi, dword [rax + 4]
jne 0x14003a990
test edi, edi
jle 0x14003a990
mov rcx, qword [0x1400f8858]
lea r8, [rdi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14003a990
lea rcx, [rax + 0x28]
mov dword [rax + 0x10], edi
mov r8, rdi
mov qword [rax + 8], rcx
mov rdx, rsi
mov dword [rax + 0x14], r12d
call fcn.140022ee0
movsxd rcx, r15d
mov edx, dword [r13 + rcx*4 + 0x3a9c8]
add rdx, r13
jmp rdx
lea rax, [0x14003a9f0]
mov qword [rbx + 0x18], rax
lea rax, [0x14003d970]
jmp 0x14003a97b
lea rax, [0x14003aa00]
mov qword [rbx + 0x18], rax
lea rax, [0x14003d980]
jmp 0x14003a97b
lea rax, [0x14003aaf0]
mov qword [rbx + 0x18], rax
lea rax, [0x14003d9b0]
mov qword [rbx + 0x20], rax
mov rax, qword [0x1400fa840]
mov qword [rbx], rax
mov qword [0x1400fa840], rbx
mov rdx, qword [0x1400ffca0]
lea rax, [rsi + rdi]
add rdx, r14
cmp rax, rdx
jb 0x14003a8e0
mov r13, qword [rsp + 0x78]
mov r14, qword [rsp + 0x88]
mov r15, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x70]
add rsp, 0x48
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003dce0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x1400ff420]
call fcn.1400322dc
cmp dword [reloc.WS2_32.dll_accept], 0
mov rdi, qword [rax]
je 0x14003dd57
cmp qword [0x1400ff440], rdi
jne 0x14003dd57
cmp dword [0x1400fa850], 0
je 0x14003dd57
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1400fa880]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x14003dd47
cmp rbx, rdi
je 0x14003dd3c
cmp dword [rbx + 0x38], esi
jne 0x14003dd3c
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 0x14003dd28
mov rbx, qword [rsp + 0x30]
mov dword [0x1400fa850], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14003dd60
Capabilities:
Check for time delay via gettickcount
Suspend thread

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x1400ff420]
call fcn.1400322dc
cmp dword [reloc.WS2_32.dll_accept], 0
mov rsi, qword [rax]
je 0x14003dea0
cmp dword [0x1400fa850], 0
jne 0x14003dea0
mov qword [rsp + 0x30], rbx
lea rcx, [0x1400fa858]
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1400f9fb8], 0
je 0x14003ddd6
lea rcx, [0x1400ffd20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140110160]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400ff480]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x140110140]
xor r9d, r9d
xor r8d, r8d
mov qword [0x1400ff440], rsi
xor edx, edx
mov dword [0x1400fa850], 1
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x1400fa880]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x14003de53
cmp rbx, rsi
je 0x14003de4b
cmp dword [rbx + 0x38], 0
jne 0x14003de4b
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x14003de3b
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x14003de20
cmp dword [rbx + 0x38], 0
jne 0x14003de4b
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14003de13
cmp dword [0x1400f9fb8], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x14003de8d
lea rcx, [0x1400ff480]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140110160]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400ffd20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400fa858]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret
Function at 0x140042f60
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400f4d48]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.140042d70
call fcn.14003dd60
nop
xor ecx, ecx
call fcn.140043250
test eax, eax
jne 0x140042f80
mov rbx, qword [0x1400f9fd8]
test rbx, rbx
je 0x140043060
cmp dword [0x1400f9fd4], eax
je 0x140043060
cmp dword [0x1400fa890], 0
mov eax, dword [0x1400f9fd0]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x14004302b
mov rcx, qword [0x1400ffca0]
mov rdx, rbx
movsxd r8, eax
call fcn.140022ee0
xor r9d, r9d
cmp dword [0x1400f9fd0], r9d
jle 0x140043024
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x1400ffca0]
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 [0x1400f9fd0]
jl 0x140042ff0
mov rbx, qword [0x1400ffca0]
call fcn.140055b50
lea rcx, [0x140110160]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400fa8b8]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x140110160]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.140055b50
lea rcx, [0x140110160]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400fa8b8]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x140110160]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1400fa8b8]
call qword [rax + 0x28]
lea rcx, [0x1400ff480]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140110160]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400ffd20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x1400fa8a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1400fa8a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400fa8b0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1400fa8b0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1400ff480]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140110160]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400ffd20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400ff480]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x140110160]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1400ffd20]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14005a2f0
add rsp, 0x40
pop rbx
ret
Function at 0x140047a40
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x1400f4d48]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, rdx
mov rbp, r8
lea rdx, [rsp + 0x50]
mov rdi, rcx
xor ebx, ebx
call fcn.140048340
test eax, eax
je 0x140047b3d
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14007abc0
test eax, eax
jne 0x140047b3d
lea rdx, [rsp + 0xb4]
mov rcx, rbp
call fcn.14007abc0
test eax, eax
jne 0x140047b3d
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 0x140047b3d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140047b34
test eax, eax
jle 0x140047b34
lea ecx, [rdi + 1]
movsxd rcx, ecx
call fcn.14005a9b0
mov rsi, rax
test rax, rax
je 0x140047b34
lea r9, [rsp + 0x40]
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 0x140047b34
cmp dword [rsp + 0x40], edi
jne 0x140047b34
mov rcx, rsi
mov byte [rdi + rsi], bl
call fcn.140048070
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14005a2f0
mov rbx, qword [rsp + 0x168]
add rsp, 0x130
pop rdi
pop rsi
pop rbp
ret
Function at 0x140048690
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x280
mov rax, qword [0x1400f4d48]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edi, edi
lea r9, [rsp + 0x160]
sub r9, rcx
mov r14, r8
mov rbp, rdx
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [r9 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400486d0
lea rcx, [rsp + 0x160]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x1400486f0
movzx eax, word [0x1400c2644]
mov word [rcx], ax
lea rcx, [rsp + 0x160]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], dil
jne 0x140048713
lea rbx, [rsp + 0x160]
add rbx, rax
lea rdx, [rsp + 0x20]
mov eax, 0x2a
lea rcx, [rsp + 0x160]
mov word [rbx], ax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400487fa
lea rax, [rsp + 0x4c]
sub rbx, rax
nop word [rax + rax]
lea rax, [rsp + 0x4c]
nop word [rax + rax]
movzx ecx, byte [rax]
mov byte [rbx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140048770
test byte [rsp + 0x20], 0x10
je 0x1400487bd
movzx ecx, byte [rsp + 0x4c]
movzx eax, byte [rsp + 0x4d]
cmp cl, 0x2e
jne 0x1400487a8
cmp al, cl
jne 0x14004879f
cmp byte [rsp + 0x4e], dil
je 0x1400487d4
cmp cl, 0x2e
jne 0x1400487a8
test al, al
je 0x1400487d4
mov r8, r14
lea rcx, [rsp + 0x160]
mov rdx, rbp
call fcn.140048690
jmp 0x1400487d0
mov r8, r14
lea rcx, [rsp + 0x160]
mov rdx, rbp
call fcn.140047a40
test eax, eax
jne 0x1400487ec
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140048760
jmp 0x1400487f1
mov edi, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14005a2f0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14004efc0
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400f4d48]
xor rax, rsp
mov qword [rsp + 0x38], rax
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.14000d714
mov ecx, eax
lea rdx, [0x1400c6a70]
call fcn.140094e74
xor r9d, r9d
mov qword [0x1400face8], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400950ec
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.14000d714
mov ecx, eax
lea rdx, [0x1400c9540]
call fcn.140094e74
xor r9d, r9d
mov qword [0x1400facf0], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400950ec
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.14000d714
mov ecx, eax
lea rdx, [0x1400c9540]
call fcn.140094e74
xor r9d, r9d
mov qword [0x1400facf8], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400950ec
mov rax, qword [0x1400facf0]
mov qword [0x1400ffce0], rax
call fcn.14004b1c0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14005a2f0
add rsp, 0x48
ret
Function at 0x140058d80
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 0x140058ddb
nop
mov rcx, qword [0x1400fe578]
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 0x140058dd5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8bb
test eax, 0xfffffffa
je 0x140058df5
add ebx, esi
cmp ebx, edi
jl 0x140058da0
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 0x140058de0

Function at 0x14005a8c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005a8e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005a8e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140092c8c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400f4d48]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140092cd6
call fcn.14000cddc
mov dword [rax], recv
call fcn.14000cdfc
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14000aa4c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14005a2f0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140092ce1
lea eax, [rbx + 1]
jmp 0x140092cc3
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 0x140092cc1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140092cc3

Function at 0x14009d940
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14009d956
mov al, 1
jmp 0x14009d9b6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14009d967
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14009d9b4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000d69c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14009d9b4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14009d9b4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14009d9b4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14009d9b6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400a8184
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140020ae4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140020ae4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a82d4
cmp rax, 0xffffffffffffffff
je 0x1400a82d4
xor edi, edi
test rbp, rbp
jle 0x1400a827f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000906c
mov rbx, rax
test rax, rax
jne 0x1400a820c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a8275
mov edx, 0x8000
mov ecx, r14d
call fcn.140003e08
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001dfd4
cmp eax, 0xffffffff
je 0x1400a8255
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a821c
mov edx, r15d
mov ecx, r14d
call fcn.140003e08
jmp 0x1400a8275
cmp byte [rsi + 0x38], dil
je 0x1400a826c
cmp dword [rsi + 0x34], 5
jne 0x1400a826c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400a8275
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140008834
jmp 0x1400a82e8
jns 0x1400a82e8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140020ae4
cmp rax, 0xffffffffffffffff
jne 0x1400a82a0
cmp byte [rsi + 0x30], dil
je 0x1400a82e8
mov edi, dword [rsi + 0x2c]
jmp 0x1400a82e8
mov ecx, r14d
call fcn.14000d69c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a82e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400a82e8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a82e1
mov eax, dword [rsi + 0x2c]
jmp 0x1400a82e6
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140020ae4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400ac4f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400ac740
mov r11d, eax
lea edx, [rax*4]
movsxd r9, edx
test edx, edx
jle 0x1400ac56d
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 0x1400ac520
cmp r11d, 1
jle 0x1400ac729
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 + 0xd63d0]
mov eax, edx
shr rax, 0x18
mov r8d, dword [rdi + rcx*4 + 0xd6fd0]
movzx eax, byte [rdi + rax*4 + 0xd63d0]
xor r8d, dword [rdi + rax*4 + 0xd67d0]
movzx eax, dl
movzx ecx, byte [rdi + rax*4 + 0xd63d0]
movzx eax, byte [rbx - 2]
xor r8d, dword [rdi + rcx*4 + 0xd73d0]
movzx ecx, byte [rdi + rax*4 + 0xd63d0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0xd6bd0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx - 4], r8d
movzx edx, byte [rdi + rcx*4 + 0xd63d0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0xd6bd0]
movzx eax, byte [rdi + rcx*4 + 0xd63d0]
xor r8d, dword [rdi + rax*4 + 0xd6fd0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0xd63d0]
movzx eax, r9b
mov r9d, dword [rbx + 4]
xor r8d, dword [rdi + rcx*4 + 0xd67d0]
movzx ecx, byte [rdi + rax*4 + 0xd63d0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0xd73d0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx], r8d
movzx edx, byte [rdi + rcx*4 + 0xd63d0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0xd6bd0]
movzx eax, byte [rdi + rcx*4 + 0xd63d0]
xor r8d, dword [rdi + rax*4 + 0xd6fd0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0xd63d0]
movzx eax, r9b
mov r9d, dword [rbx + 8]
xor r8d, dword [rdi + rcx*4 + 0xd67d0]
movzx ecx, byte [rdi + rax*4 + 0xd63d0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0xd73d0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx + 4], r8d
movzx edx, byte [rdi + rcx*4 + 0xd63d0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0xd6bd0]
movzx eax, byte [rdi + rcx*4 + 0xd63d0]
xor r8d, dword [rdi + rax*4 + 0xd6fd0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0xd63d0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0xd67d0]
movzx ecx, byte [rdi + rax*4 + 0xd63d0]
xor r8d, dword [rdi + rcx*4 + 0xd73d0]
mov dword [rbx + 8], r8d
sub r10, 1
jne 0x1400ac590
mov rdi, qword [rsp + 0x30]
mov eax, r11d
add rsp, 0x20
pop rbx
ret
Function at 0x14001120d
Capabilities:
Terminate process

Disassembly:
jmp 0x140013200
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001129e
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014550
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014570
xor al, al
jmp 0x1400145f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014583
xor al, al
jmp 0x1400145f1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400145ad
xor al, al
jmp 0x1400145f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400145c1
xor al, al
jmp 0x1400145f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400145d3
xor al, al
jmp 0x1400145f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400145ef
xor al, al
jmp 0x1400145f1
mov al, 1
add rsp, 0x38
ret