joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800307c0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180043040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800308eb
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800308e2
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800308c4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800308c4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800308c4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180030882
mov rcx, qword [0x180043a40]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800308e2
jmp 0x1800308b7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800308b7
mov rcx, qword [0x180043a40]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800308e2
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180030830
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180030943
cmp dword [rbx + 0xc], esi
jbe 0x180030943
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18003093c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180030610
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180030900
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180032080
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180030970
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180043040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180043c00]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800309e3
mov eax, 0xa
jmp 0x180030a76
test esi, esi
je 0x180030a05
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180030a28
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180030a28
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180030a21
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180030a28
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180032080
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180030aa0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x180043c0c]
mov ebx, edi
test ecx, ecx
je 0x180030bdb
mov rax, qword [0x180043c00]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180030af8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180030ad0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180030bdb
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1800307c0
mov r8d, dword [0x180043c0c]
cmp ebx, r8d
jae 0x180030b68
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180043c00]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180030b61
mov edx, esi
mov ecx, ebx
call fcn.180030970
mov edi, eax
test eax, eax
jne 0x180030b68
mov r8d, dword [0x180043c0c]
inc ebx
cmp ebx, r8d
jb 0x180030b30
cmp qword [rsp + 0x20], 0
je 0x180030bdb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180030bc7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180030bb8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180030b90
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180043a40]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180030f50
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x180043a34], ebp
je 0x180030fa7
cmp rbx, 0x20
jae 0x180030f90
xor ecx, ecx
jmp 0x180030f92
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180043a34], ebp
jne 0x180030f86
cmp qword [0x180043a40], r15
je 0x1800310a1
test rdi, rdi
jne 0x180030fc7
mov ecx, esi
call fcn.180030aa0
mov ebp, eax
jmp 0x1800310a6
mov ecx, dword [0x180043c0c]
mov ebx, r15d
test ecx, ecx
je 0x180030fef
mov r8, qword [0x180043c00]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180030ff9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180030fe0
mov ebp, 4
jmp 0x1800310a6
cmp ebx, 0xffffffff
je 0x180030fef
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180031098
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800307c0
mov edx, esi
mov ecx, ebx
call fcn.180030970
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x1800310a6
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180031082
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180031078
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180031050
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180043a40]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800310a6
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x1800310a6
mov ebp, 2
xchg dword [0x180043a34], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180031fd0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
test edx, edx
je 0x180032036
cmp edx, 1
jne 0x180032060
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor ebx, ebx
lea r8, [0x180031f40]
mov qword [rsp + 0x28], rbx
mov r9, rdi
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r9, rdi
mov qword [rsp + 0x28], rbx
lea r8, [0x180031fa0]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp dword [0x180043b48], 0
je 0x180032060
call fcn.1800310d0
mov rcx, qword [0x180043b40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
mov qword [0x180043b40], rbx
mov dword [0x180043b48], ebx
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x1401e0300
Capabilities:
Print debug messages
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
call sub.KERNEL32.dll_OutputDebugStringA
lea rcx, [0x1405a1f68]
call fcn.140304760
test rax, rax
je 0x1401e03da
mov rdi, rax
lea rdx, [0x1405a1f75]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rbx, rax
lea rdx, [0x1405a1f8a]
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
mov r15, rax
lea rdx, [0x1405a1f97]
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
test rbx, rbx
je 0x1401e03d2
test r15, r15
je 0x1401e03d2
mov r14, rax
test rax, rax
je 0x1401e03d2
lea rax, [0x1405a1fad]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rsi
lea rdx, [0x1405a1fbb]
xor ecx, ecx
call rbx
test rax, rax
je 0x1401e03d2
mov rbx, rax
xor eax, eax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 2
mov rcx, rbx
mov dx, 1
xor r8d, r8d
mov r9d, 0xc0070003
call r15
mov rcx, rbx
call r14
mov rcx, rdi
call sub.KERNEL32.dll_FreeLibrary_1
lea rcx, [0x1405a1fc3]
call fcn.140304760
test rax, rax
je 0x1401e041e
mov rdi, rax
lea rdx, [0x1405a1fce]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x1401e0416
lea r8, [0x1405a1fda]
xor ecx, ecx
mov rdx, rsi
mov r9d, 0x10
call rax
mov rcx, rdi
call sub.KERNEL32.dll_FreeLibrary_1
call sub.KERNEL32.dll_GetCurrentProcess
mov rcx, rax
mov edx, 1
call sub.KERNEL32.dll_TerminateProcess
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140304760
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x128
mov rsi, rcx
lea rcx, [0x140627a00]
lea rdx, [0x1405ac2cf]
call fcn.140304540
test eax, eax
jne 0x1403047ef
lea rcx, [rsp + 0x20]
mov edx, 0x104
call sub.KERNEL32.dll_GetSystemDirectoryA
test eax, eax
jne 0x14030479a
xor eax, eax
jmp 0x1403047e4
mov edi, eax
mov rcx, rsi
call fcn.1401a8140
lea ecx, [rdi + 1]
add rcx, rax
add rcx, 1
cmp rcx, 0x104
ja 0x140304796
inc rax
mov ecx, edi
add rcx, rsp
add rcx, 0x21
mov byte [rcx - 1], 0x5c
mov rdx, rsi
mov r8, rax
call fcn.1401a8100
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 8
call 0x1405437d0
nop
add rsp, 0x128
pop rdi
pop rsi
ret
mov rcx, rsi
xor edx, edx
mov r8d, 0x800
add rsp, 0x128
pop rdi
pop rsi
jmp 0x1405437d0
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
Function at 0x14034f6c0
Capabilities:
Create directory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x848
mov rsi, rcx
lea rdi, [rsp + 0x38]
mov qword [rdi], rcx
lea rax, [rsp + 0x40]
lea rbx, [rsp + 0x30]
mov qword [rbx], rax
lea r14, [rsp + 0x840]
call fcn.1401a8140
lea rdx, [rsi + rax]
add rdx, 1
mov dword [rsp + 0x20], 0
mov rcx, rdi
mov r8, rbx
mov r9, r14
call fcn.1401a9620
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
jne 0x14034f72b
lea rcx, [rsp + 0x40]
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
add rsp, 0x848
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1403504c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
call fcn.14044b170
lea rbx, [rsp + 0x2c]
mov dword [rbx], 0xffffffff
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rdi
mov r8d, esi
mov r9, rbx
call sub.KERNEL32.dll_WriteFile
mov edx, dword [rbx]
xor ecx, ecx
cmp eax, 1
sbb rcx, rcx
or rcx, rdx
mov rax, rcx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x14042aa3f
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
cmp edx, 2
jl 0x14042aa73
mov r8d, edx
mov edx, 1
lea r9, [0x1405c3bd0]
lea r10, [0x1405c3fd0]
lea r11, [0x1405c43d0]
lea r14, [0x1405c47d0]
mov rsi, rdx
shl rsi, 4
movzx edi, byte [rcx + rsi]
movzx ebx, byte [rcx + rsi + 1]
mov ebx, dword [r10 + rbx*4]
xor ebx, dword [r9 + rdi*4]
movzx edi, byte [rcx + rsi + 2]
movzx eax, byte [rcx + rsi + 3]
xor ebx, dword [r11 + rdi*4]
xor ebx, dword [r14 + rax*4]
mov dword [rcx + rsi], ebx
movzx eax, byte [rcx + rsi + 4]
movzx edi, byte [rcx + rsi + 5]
mov edi, dword [r10 + rdi*4]
xor edi, dword [r9 + rax*4]
movzx eax, byte [rcx + rsi + 6]
movzx ebx, byte [rcx + rsi + 7]
xor edi, dword [r11 + rax*4]
xor edi, dword [r14 + rbx*4]
mov dword [rcx + rsi + 4], edi
movzx eax, byte [rcx + rsi + 8]
movzx edi, byte [rcx + rsi + 9]
mov edi, dword [r10 + rdi*4]
xor edi, dword [r9 + rax*4]
movzx eax, byte [rcx + rsi + 0xa]
movzx ebx, byte [rcx + rsi + 0xb]
xor edi, dword [r11 + rax*4]
xor edi, dword [r14 + rbx*4]
mov dword [rcx + rsi + 8], edi
movzx eax, byte [rcx + rsi + 0xc]
movzx edi, byte [rcx + rsi + 0xd]
mov edi, dword [r10 + rdi*4]
xor edi, dword [r9 + rax*4]
movzx eax, byte [rcx + rsi + 0xe]
xor edi, dword [r11 + rax*4]
movzx eax, byte [rcx + rsi + 0xf]
xor edi, dword [r14 + rax*4]
mov dword [rcx + rsi + 0xc], edi
inc rdx
cmp rdx, r8
jne 0x14042a9c2
xor eax, eax
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14044b8a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov edi, r9d
mov rbx, r8
mov ebp, edx
mov rsi, rcx
mov ecx, edx
call fcn.140323e70
test eax, eax
jne 0x14044b9c7
mov dword [rsi + 0x110], ebp
test edi, edi
jne 0x14044b8e1
mov eax, 0x20001
jmp 0x14044b9c7
movsxd rax, ebp
imul r14, rax, 0x78
lea r15, [0x140627a20]
mov r13d, dword [r14 + r15 + 0xc]
mov eax, 0x16
cmp r13d, 0x80
ja 0x14044b9c7
lea r12, [r14 + r15]
add r12, 0x10
mov eax, dword [r12]
cmp eax, edi
jae 0x14044b957
lea rcx, [rsp + 0x2c]
mov dword [rcx], eax
lea r9, [rsi + 0x228]
mov qword [rsp + 0x20], rcx
mov ecx, ebp
mov rdx, rbx
mov r8d, edi
call fcn.140308a70
test eax, eax
jne 0x14044b9c7
mov edx, dword [r12]
cmp edx, r13d
jbe 0x14044b98c
sub edx, r13d
lea rcx, [rsi + r13]
add rcx, 0x228
jmp 0x14044b983
mov ebp, edi
lea rcx, [rsi + 0x228]
mov rdx, rbx
mov r8, rbp
call fcn.1401a8100
mov edx, dword [r12]
mov eax, edx
sub eax, edi
jbe 0x14044b98c
lea rcx, [rsi + rbp]
add rcx, 0x228
mov rdx, rax
call fcn.1401a97f0
mov edx, dword [r12]
test edx, edx
je 0x14044b9aa
mov eax, edx
xor ecx, ecx
mov dl, byte [rsi + rcx + 0x228]
xor dl, 0x36
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, rax
jb 0x14044b994
mov rcx, rsi
call qword [r14 + r15 + 0x58]
test eax, eax
jne 0x14044b9c7
mov r8d, dword [r12]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [r14 + r15 + 0x60]
nop
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14044ba40
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
mov r15, r8
mov rdi, rdx
mov rbx, rcx
mov ebp, dword [rcx + 0x110]
mov ecx, ebp
call fcn.140323e70
test eax, eax
jne 0x14044bb3f
movsxd rax, ebp
imul rbp, rax, 0x78
lea rsi, [0x140627a20]
mov r14d, dword [rbp + rsi + 0xc]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call qword [rbp + rsi + 0x68]
test eax, eax
jne 0x14044bb3f
mov eax, dword [rbp + rsi + 0x10]
test rax, rax
je 0x14044bab8
xor ecx, ecx
mov dl, byte [rbx + rcx + 0x228]
xor dl, 0x5c
mov byte [rsp + rcx + 0x20], dl
inc rcx
cmp rcx, rax
jb 0x14044baa2
mov rcx, rbx
call qword [rbp + rsi + 0x58]
test eax, eax
jne 0x14044bb3f
lea rax, [rsi + rbp]
add rax, 0x10
mov r8d, dword [rax]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [rax + 0x50]
test eax, eax
jne 0x14044bb3f
lea rax, [rsi + rbp]
add rax, 0x60
lea rdx, [rsp + 0xa0]
mov rcx, rbx
mov r8d, r14d
call qword [rax]
test eax, eax
jne 0x14044bb3f
lea rax, [rsi + rbp]
add rax, 0x68
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [rax]
test eax, eax
jne 0x14044bb3f
xor eax, eax
mov ecx, 0
test r14d, r14d
je 0x14044bb3c
xor edx, edx
xor ecx, ecx
mov ebp, dword [r15]
cmp rdx, rbp
jae 0x14044bb3a
mov bl, byte [rsp + rdx + 0x20]
mov byte [rdi + rdx], bl
inc rdx
inc ecx
cmp rdx, r14
jb 0x14044bb1f
jmp 0x14044bb3c
mov ecx, edx
mov dword [r15], ecx
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14000344c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003496
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003496
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003496
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003496
cmp dword [rcx + 0x84], 0xe
jbe 0x140003496
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003498
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000c970]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000c980]
mov dword [rax], 1
mov rax, qword [0x14000c990]
mov dword [rax], 1
mov rax, qword [0x14000c900]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000c960]
mov dword [0x14001100c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14000ca40]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000ca20]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000c890]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x1400022ec
Capabilities:
Terminate process

Disassembly:
push rbp
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov rax, qword [rbp + 0x28]
mov r8d, 0
lea rdx, [0x14000c14a]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::find_char_const__unsigned_long_long__const
cmp rax, 0xffffffffffffffff
setne al
test al, al
je 0x1400023c7
mov rax, qword [rbp + 0x28]
mov r8, 0xffffffffffffffff
mov edx, 0x20
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::find_last_of_char__unsigned_long_long__const
lea rcx, [rax + 1]
lea rax, [rbp - 0x30]
mov rdx, qword [rbp + 0x28]
mov r9, 0xffffffffffffffff
mov r8, rcx
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::substr_unsigned_long_long__unsigned_long_long__const
lea rax, [rbp - 0x30]
mov r8d, 0xa
mov edx, 0
mov rcx, rax
call method.std::__cxx11.stoi_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__unsigned_long_long__int_
mov dword [rbp - 0x34], eax
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
mov rax, qword [rbp + 0x20]
mov byte [rax + 0xa9], 1
mov edx, dword [rbp - 0x34]
mov rax, qword [rbp + 0x20]
mov dword [rax + 0xac], edx
lea rdx, [rbp - 0x34]
lea rax, [rbp - 8]
mov rcx, rax
call method.std::chrono::duration_long_long__std::ratio_1ll__1ll___.duration_int__void__int_const_
lea rax, [rbp - 8]
mov rcx, rax
call method.void_std::this_thread::sleep_for_long_long__std.ratio_1ll__1ll____std::chrono::duration_long_long__std::ratio_1ll__1ll____const_
mov rax, qword [rbp + 0x20]
mov byte [rax + 0xa9], 0
jmp 0x14000245a
mov rax, qword [rbp + 0x28]
mov r8d, 0
lea rdx, [0x14000c14e]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::find_char_const__unsigned_long_long__const
cmp rax, 0xffffffffffffffff
setne al
test al, al
je 0x1400023f5
mov ecx, 0
call sym.exit
mov rax, qword [rbp + 0x28]
mov r8d, 0
lea rdx, [0x14000c152]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::find_char_const__unsigned_long_long__const
cmp rax, 0xffffffffffffffff
setne al
test al, al
je 0x14000245a
mov r9d, 0x30
lea r8, str.Pwned
lea rax, str.Sorry__youve_been_pwned__for_educational_purposes_
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
jmp 0x14000245a
nop
add rsp, 0x68
pop rbx
pop rbp
ret
Function at 0x14000297e
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Start tcp server

Disassembly:
push rbp
push rbx
mov eax, 0x1248
call fcn.140005cd0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x11e0], rcx
mov dword [rbp + 0x11bc], 0
lea rax, [rbp + 0xff0]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x11b0], rax
mov word [rbp + 0xfe0], 2
mov dword [rbp + 0xfe4], 0
mov ecx, 0x1f91
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0xfe2], ax
lea rdx, [rbp + 0xfe0]
mov rax, qword [rbp + 0x11b0]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_bind]
call rax
mov rax, qword [rbp + 0x11b0]
mov edx, 3
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_listen]
call rax
mov dword [rbp + 0xfcc], 0x10
lea rcx, [rbp + 0xfcc]
lea rdx, [rbp + 0xfd0]
mov rax, qword [rbp + 0x11b0]
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_accept]
call rax
mov qword [rbp + 0x11a8], rax
jmp 0x140002a81
mov eax, dword [rbp + 0x11a4]
add dword [rbp + 0x11bc], eax
mov eax, dword [rbp + 0x11bc]
mov edx, 0x1000
sub edx, eax
mov ecx, edx
lea rdx, [rbp - 0x40]
mov eax, dword [rbp + 0x11bc]
cdqe
add rdx, rax
mov rax, qword [rbp + 0x11a8]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0x11a4], eax
cmp dword [rbp + 0x11a4], 0
setg al
test al, al
jne 0x140002a75
cmp dword [rbp + 0x11a4], 0xffffffff
jne 0x140002aec
lea rax, str.recv
mov rcx, rax
call sym.perror
jmp 0x140002a48
cmp dword [rbp + 0x11a4], 0
jne 0x140002a48
mov eax, dword [rbp + 0x11bc]
cdqe
mov byte [rbp + rax - 0x40], 0
lea rax, [rbp + 0x1197]
mov qword [rbp + 0x1198], rax
nop
nop
lea rcx, [rbp + 0x1197]
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0x1197]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
lea rax, [rbp - 0x60]
mov r8d, 0
lea rdx, str.POST__command
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::find_char_const__unsigned_long_long__const
cmp rax, 0xffffffffffffffff
setne al
test al, al
je 0x140002b81
mov rcx, qword [rbp + 0x11a8]
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x11e0]
mov r8, rcx
mov rcx, rax
call method.Client.handle_command_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____unsigned_long_long_
mov dword [rbp + 0x11bc], 0
lea rax, [rbp - 0x40]
mov r8d, 0x1000
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0x11a8]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x140002a48