joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003b1f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movsxd rdx, dword [0x14016a490]
lea r8, [0x14017f920]
mov qword [r8 + rdx*8], rcx
inc edx
cmp dword [0x140169ba0], 0
mov dword [0x14016a490], edx
jne 0x140049710
ret
sub rsp, 0x48
mov rax, qword [0x140163ee8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, dword [0x14016a490]
mov dword [rsp + 0x20], 0x1d
mov dword [rsp + 0x28], eax
test eax, eax
jne 0x140049787
call fcn.14005b8f0
xor r11d, r11d
mov dword [rsp + 0x30], eax
lea rcx, [0x1401802e0]
mov dword [rsp + 0x24], r11d
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14016a4a8]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x1401802e0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400acab0
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor r11d, r11d
mov rbx, qword [0x14016fe20]
mov r8, rbx
test eax, eax
jle 0x1400498d0
lea r10, [0x14017f920]
nop dword [rax + rax]
mov rax, qword [r10]
mov rdx, r8
mov rcx, qword [rax + 8]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400497c0
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp byte [r8 + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400497e0
lea r9, [rax + 1]
mov rax, qword [r10]
add r9, r8
mov rdx, r9
mov rcx, qword [rax + 0x10]
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140049800
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp byte [r9 + rax + 1], 0
lea rax, [rax + 1]
jne 0x140049820
mov rcx, qword [r10]
lea r8, [rax + 1]
add r8, r9
test byte [rcx + 4], 1
je 0x14004987f
mov rcx, qword [rcx + 0x20]
mov rdx, r8
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140049850
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x140049870
add rax, r8
jmp 0x140049886
mov byte [r8], 0
mov rax, r8
mov rcx, qword [r10]
mov edx, dword [rcx + 4]
mov dword [rax + 1], edx
cmp dword [0x14016a480], 0
je 0x1400498b1
mov ecx, edx
mov byte [rax + 4], dl
movzx edx, byte [rax + 2]
shr ecx, 0x18
mov byte [rax + 1], cl
movzx ecx, byte [rax + 3]
mov byte [rax + 2], cl
mov byte [rax + 3], dl
inc r11d
lea r8, [rax + 5]
add r10, 8
cmp r11d, dword [0x14016a490]
jl 0x1400497b0
mov rbx, qword [0x14016fe20]
sub r8d, ebx
mov dword [rsp + 0x24], r8d
call fcn.14005b8f0
lea rcx, [0x1401802e0]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14016a4a8]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x1401802e0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400acab0
add rsp, 0x48
ret
Function at 0x140040580
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 0x14004075e
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 0x14004060c
test eax, eax
jle 0x14004060c
mov rdx, qword [0x14016fe20]
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 0x14004060c
cmp dword [rsp + 0x80], edi
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140040759
mov rax, qword [0x14016fe20]
mov rdx, rax
cmp dword [rax], 0x50555245
jne 0x140040759
mov qword [rsp + 0x40], r15
mov r15d, dword [rax + 8]
add rax, 0xc
add r15d, 0xadbaaccf
cmp r15d, 8
ja 0x140040754
lea ecx, [rdi - 8]
mov qword [rsp + 0x88], r14
movsxd r14, ecx
lea rcx, [r14 + rdx]
cmp rax, rcx
jae 0x14004074c
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 0x140040730
test edi, edi
jle 0x140040730
mov rcx, qword [0x1401683f0]
lea r8, [rdi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140040730
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.140022be0
movsxd rcx, r15d
mov edx, dword [r13 + rcx*4 + 0x40768]
add rdx, r13
jmp rdx
lea rax, [0x140040790]
mov qword [rbx + 0x18], rax
lea rax, [0x140043710]
jmp 0x14004071b
lea rax, [0x1400407a0]
mov qword [rbx + 0x18], rax
lea rax, [0x140043720]
jmp 0x14004071b
lea rax, [0x140040890]
mov qword [rbx + 0x18], rax
lea rax, [0x140043750]
mov qword [rbx + 0x20], rax
mov rax, qword [0x14016a430]
mov qword [rbx], rax
mov qword [0x14016a430], rbx
mov rdx, qword [0x14016fe20]
lea rax, [rsi + rdi]
add rdx, r14
cmp rax, rdx
jb 0x140040680
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 0x140043a80
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x14016f5a0]
call fcn.140037d14
cmp dword [reloc.WS2_32.dll_accept], 0
mov rdi, qword [rax]
je 0x140043af7
cmp qword [0x14016f5c0], rdi
jne 0x140043af7
cmp dword [0x14016a440], 0
je 0x140043af7
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14016a470]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x140043ae7
cmp rbx, rdi
je 0x140043adc
cmp dword [rbx + 0x38], esi
jne 0x140043adc
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 0x140043ac8
mov rbx, qword [rsp + 0x30]
mov dword [0x14016a440], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x14016f5a0]
call fcn.140037d14
cmp dword [reloc.WS2_32.dll_accept], 0
mov rsi, qword [rax]
je 0x140043c40
cmp dword [0x14016a440], 0
jne 0x140043c40
mov qword [rsp + 0x30], rbx
lea rcx, [0x14016a448]
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x140169ba0], 0
je 0x140043b76
lea rcx, [0x14016fea0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1401802e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14016f600]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x1401802c0]
xor r9d, r9d
xor r8d, r8d
mov qword [0x14016f5c0], rsi
xor edx, edx
mov dword [0x14016a440], 1
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x14016a470]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x140043bf3
cmp rbx, rsi
je 0x140043beb
cmp dword [rbx + 0x38], 0
jne 0x140043beb
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x140043bdb
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x140043bc0
cmp dword [rbx + 0x38], 0
jne 0x140043beb
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140043bb3
cmp dword [0x140169ba0], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x140043c2d
lea rcx, [0x14016f600]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1401802e0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14016fea0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14016a448]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret
Function at 0x140048d00
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140163ee8]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.140048b10
call fcn.140043b00
nop
xor ecx, ecx
call fcn.140048ff0
test eax, eax
jne 0x140048d20
mov rbx, qword [0x140169bc0]
test rbx, rbx
je 0x140048e00
cmp dword [0x140169bbc], eax
je 0x140048e00
cmp dword [0x14016a480], 0
mov eax, dword [0x140169bb8]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x140048dcb
mov rcx, qword [0x14016fe20]
mov rdx, rbx
movsxd r8, eax
call fcn.140022be0
xor r9d, r9d
cmp dword [0x140169bb8], r9d
jle 0x140048dc4
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x14016fe20]
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 [0x140169bb8]
jl 0x140048d90
mov rbx, qword [0x14016fe20]
call fcn.14005b8f0
lea rcx, [0x1401802e0]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14016a4a8]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x1401802e0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.14005b8f0
lea rcx, [0x1401802e0]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14016a4a8]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x1401802e0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x14016a4a8]
call qword [rax + 0x28]
lea rcx, [0x14016f600]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1401802e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14016fea0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x14016a498]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x14016a498]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14016a4a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x14016a4a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x14016f600]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1401802e0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14016fea0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14016f600]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1401802e0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x14016fea0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400acab0
add rsp, 0x40
pop rbx
ret
Function at 0x14004d7e0
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 [0x140163ee8]
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.14004e0e0
test eax, eax
je 0x14004d8dd
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400cd5e0
test eax, eax
jne 0x14004d8dd
lea rdx, [rsp + 0xb4]
mov rcx, rbp
call fcn.1400cd5e0
test eax, eax
jne 0x14004d8dd
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 0x14004d8dd
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14004d8d4
test eax, eax
jle 0x14004d8d4
lea ecx, [rdi + 1]
movsxd rcx, ecx
call fcn.1400ad170
mov rsi, rax
test rax, rax
je 0x14004d8d4
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 0x14004d8d4
cmp dword [rsp + 0x40], edi
jne 0x14004d8d4
mov rcx, rsi
mov byte [rdi + rsi], bl
call fcn.14004de10
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.1400acab0
mov rbx, qword [rsp + 0x168]
add rsp, 0x130
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004e430
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 [0x140163ee8]
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 0x14004e470
lea rcx, [rsp + 0x160]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x14004e490
movzx eax, word [0x140120f24]
mov word [rcx], ax
lea rcx, [rsp + 0x160]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], dil
jne 0x14004e4b3
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 0x14004e59a
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 0x14004e510
test byte [rsp + 0x20], 0x10
je 0x14004e55d
movzx ecx, byte [rsp + 0x4c]
movzx eax, byte [rsp + 0x4d]
cmp cl, 0x2e
jne 0x14004e548
cmp al, cl
jne 0x14004e53f
cmp byte [rsp + 0x4e], dil
je 0x14004e574
cmp cl, 0x2e
jne 0x14004e548
test al, al
je 0x14004e574
mov r8, r14
lea rcx, [rsp + 0x160]
mov rdx, rbp
call fcn.14004e430
jmp 0x14004e570
mov r8, r14
lea rcx, [rsp + 0x160]
mov rdx, rbp
call fcn.14004d7e0
test eax, eax
jne 0x14004e58c
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14004e500
jmp 0x14004e591
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.1400acab0
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 0x140054d60
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140163ee8]
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.14000d408
mov ecx, eax
lea rdx, [0x140125d80]
call fcn.1400e7810
xor r9d, r9d
mov qword [0x14016a8d8], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400e7a88
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.14000d408
mov ecx, eax
lea rdx, [0x140128850]
call fcn.1400e7810
xor r9d, r9d
mov qword [0x14016a8e0], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400e7a88
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.14000d408
mov ecx, eax
lea rdx, [0x140128850]
call fcn.1400e7810
xor r9d, r9d
mov qword [0x14016a8e8], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400e7a88
mov rax, qword [0x14016a8e0]
mov qword [0x14016fe60], rax
call fcn.140050f60
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400acab0
add rsp, 0x48
ret
Function at 0x14005eb20
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 0x14005eb7b
nop
mov rcx, qword [0x14016e168]
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 0x14005eb75
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8bb
test eax, 0xfffffffa
je 0x14005eb95
add ebx, esi
cmp ebx, edi
jl 0x14005eb40
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 0x14005eb80
Function at 0x140071920
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14007194a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14012d118]
mov rcx, rbx
mov r14, rax
call fcn.140018a70
test rax, rax
je 0x1400719ad
mov rcx, rbx
test r14, r14
je 0x140071997
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x1400719e5
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400719e5
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x140071aa8
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x140071a10
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.1400ad170]
mov rdi, rax
test rax, rax
je 0x140071a9a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140071a9a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140071a40
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x140071a54
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140071a70
mov rcx, rdi
test r14, r14
je 0x140071a91
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140071a97
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.1400ad178]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret

Function at 0x1400727f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x14007282b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400729c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb8
mov rax, qword [0x140163ee8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14, qword [rsp + 0x120]
mov rsi, rcx
movsxd rcx, edx
xor r13d, r13d
mov r12, r9
mov r15, r8
mov rax, qword [rsi + 0x430]
mov rbp, qword [rsi + rcx*8 + 0x258]
lea rbx, [rcx + 0x15]
shl rbx, 5
add rbx, rsi
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x140072ac1
lea rax, [0x140072870]
cmp qword [rsi + rcx*8 + 0x280], rax
jne 0x140072ac1
cmp qword [rbx], r13
je 0x140072a48
test rdi, rdi
je 0x140072ac1
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.14007aa10
cmp eax, 0xffffffff
je 0x140072ac1
test al, 1
je 0x140072ac1
cmp qword [rbx], r13
jne 0x140072a92
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb68]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [fcn.1400ad170]
mov rdi, qword [rbx + 8]
mov qword [rbx], rax
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
mov rcx, qword [rbx]
test rcx, rcx
je 0x140072abd
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x140072ac1
add qword [rbx + 0x10], rcx
jmp 0x140072ac1
mov qword [rbx + 8], r13
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [r14], r13d
cmp rdi, 0xffffffffffffffff
jne 0x140072b2e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140072afa
mov dword [r14], 0x51
mov rax, r13
jmp 0x140072b31
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.140096df0
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140072470
mov rcx, qword [rsi]
mov dword [rcx + 0x1140], ebx
mov dword [r14], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400acab0
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140081fd0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x140163ee8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x260]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], pe_nt_image_headers64
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14008204a
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.140077330
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x14008206f
lea rdx, str.Error_accept__ing_server_connect
call fcn.140072470
lea eax, [rbx + 0x1f]
jmp 0x1400820e8
lea rdx, str.Connection_accepted_from_server_n
call fcn.1400725f0
mov edx, 1
mov byte [rdi + 0x3f8], 0
mov rcx, rbx
mov qword [rdi + 0x260], rbx
call fcn.14009b570
mov byte [rdi + 0x279], 1
cmp qword [rsi + 0x728], 0
je 0x1400820e6
mov dl, 1
mov rcx, rsi
call fcn.140073d40
mov rcx, qword [rsi + 0x730]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x728]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.140073d40
test ebx, ebx
je 0x1400820e6
mov rcx, rdi
call fcn.140082740
mov eax, 0x2a
jmp 0x1400820e8
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400acab0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140083a20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x798
cmp byte [rax + 0xe99], 0
jne 0x140083a45
cmp dword [rax + 0x9f0], 0
je 0x140083a71
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x140083a71
lea rdx, str.MDTM__s
call fcn.14009fc80
test eax, eax
jne 0x140083a7e
mov dword [rbx + 0x850], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140084cb0
add rsp, 0x20
pop rbx
ret