joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458f20
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x458fcf
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [sym.runtime.callers.func1]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call sym.runtime.systemstack.abi0
xorps xmm15, xmm15
mov r14, qword [0x00625b28]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp sym.runtime.callers

Function at 0x464100
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x006258eb], 0
je 0x46410e
jmp sym.aeshashbody
jmp sym.runtime.memhashFallback

Function at 0x464120
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x006258eb], 0
je 0x464135
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp sym.aeshashbody
jmp sym.runtime.strhashFallback

Function at 0x464140
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x006258eb], 0
je 0x464175
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x00625f20]
aesenc xmm0, xmmword [0x00625f30]
aesenc xmm0, xmmword [0x00625f40]
movq rax, xmm0
ret
jmp sym.runtime.memhash32Fallback

Function at 0x464180
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x006258eb], 0
je 0x4641b6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00625f20]
aesenc xmm0, xmmword [0x00625f30]
aesenc xmm0, xmmword [0x00625f40]
movq rax, xmm0
ret
jmp sym.runtime.memhash64Fallback

Function at 0x465ac0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rdx, 2
jmp sym.sigtramp

Function at 0x465ec0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x465ef4
mov rcx, 0x28
jmp 0x465eff
shl rcx, 3
add rcx, 0x1480
mov qword [0x00625b28], rcx
pop rbp
ret
Function at 0x47e920
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47e9ea
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x00625b28]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47e9cf
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004de4c0]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x47e9be
mov edi, 1
lea rsi, [0x004de4c0]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x0052cc98]
lea rsi, [0x0052c350]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString
Function at 0x4a1f80
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4a1f97
inc rax
cmp rax, 4
jge 0x4a1faf
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4a1f94
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x4a1fc0
inc rax
cmp rax, 4
jge 0x4a1fce
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x4a1ff7
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x4a1fdb
jmp 0x4a1fbd

Function at 0x4b0760
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4b08ae
push rbp
mov rbp, rsp
sub rsp, 0x68
movups xmmword [rsp + 0x40], xmm15
mov qword [rsp + 0x30], 0
mov rax, qword [0x005ca930]
call sym.internal_godebug._Setting_.Value
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x50], xmm15
mov qword [rsp + 0x60], 0
lea rcx, [sym.net.goDebugNetDNS.func1]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x60], rcx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x2b
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x00625b28]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x4b0872
mov rdx, qword [rsp + 0x28]
nop dword [rax + rax]
cmp rdx, rcx
jb 0x4b08a8
mov qword [rsp + 0x20], rcx
mov rsi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov rbx, rcx
lea rdx, [rsp + 0x50]
call rsi
mov rax, qword [rsp + 0x20]
lea rcx, [rax + 1]
mov rbx, qword [rsp + 0x28]
cmp rbx, rcx
jb 0x4b089d
mov rsi, qword [rsp + 0x50]
sub rbx, rax
dec rbx
mov rdi, rbx
neg rdi
sar rdi, 0x3f
and rcx, rdi
mov rdi, qword [rsp + 0x38]
lea rax, [rdi + rcx]
lea rdx, [rsp + 0x50]
call rsi
mov rcx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
add rsp, 0x68
pop rbp
ret
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x28]
lea rdx, [rsp + 0x50]
call rcx
mov rcx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
add rsp, 0x68
pop rbp
ret
mov rax, rcx
mov rcx, rbx
call sym.runtime.panicSliceB
call sym.runtime.panicSliceAlen
nop
call sym.runtime.morestack_noctxt.abi0
jmp sym.net.goDebugNetDNS
Function at 0x4cc1a0
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x30]
cmp r12, qword [r14 + 0x10]
jbe 0x4cc3e9
push rbp
mov rbp, rsp
sub rsp, 0xa8
nop word [rax + rax]
test rax, rax
je 0x4cc3d4
mov qword [rsp + 0xb8], rax
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x4cc1e2
xor ebx, ebx
xor ecx, ecx
nop
jmp 0x4cc1fc
mov rdx, qword [rax]
mov rcx, qword [rax + 0x10]
mov rax, rdx
call sym.net.IP.String
mov rcx, rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x48], rbx
cmp qword [rax + 0x28], 0
je 0x4cc311
mov rcx, qword [rax + 0x18]
mov rax, rcx
nop dword [rax + rax]
call sym.internal_itoa.Itoa
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0xb8]
mov r8, qword [rcx + 0x20]
mov r9, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x48]
lea rdi, [0x0052b550]
mov esi, 1
lea rax, [rsp + 0x68]
mov rbx, qword [rsp + 0x88]
call sym.runtime.concatstring3
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x00625b28]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x4cc2db
xor eax, eax
lea rbx, [0x00500e9c]
mov ecx, 1
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x60]
lea r8, [0x00500eb4]
mov r9d, 2
mov r10, qword [rsp + 0x98]
mov r11, qword [rsp + 0x58]
call sym.runtime.concatstring4
jmp 0x4cc308
xor eax, eax
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
lea rdi, [0x0052b588]
mov esi, 1
mov r8, qword [rsp + 0x98]
mov r9, qword [rsp + 0x58]
call sym.runtime.concatstring3
add rsp, 0xa8
pop rbp
ret
mov rax, qword [rax + 0x18]
call sym.internal_itoa.Itoa
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x50], rbx
mov rcx, qword [rsp + 0x88]
mov qword [rsp], rcx
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 8], rdx
mov byte [rsp + 0x10], 0x3a
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x00625b28]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
nop
jl 0x4cc39e
xor eax, eax
lea rbx, [0x00500e9c]
mov ecx, 1
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x48]
lea r8, [0x00500eb4]
mov r9d, 2
mov r10, qword [rsp + 0x90]
mov r11, qword [rsp + 0x50]
call sym.runtime.concatstring4
jmp 0x4cc3cb
xor eax, eax
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
lea rdi, [0x0052b588]
mov esi, 1
mov r8, qword [rsp + 0x90]
mov r9, qword [rsp + 0x50]
call sym.runtime.concatstring3
add rsp, 0xa8
pop rbp
ret
lea rax, [0x0050115f]
mov ebx, 5
add rsp, 0xa8
pop rbp
ret
mov qword [rsp + 8], rax
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
jmp sym.net._TCPAddr_.String
Function at 0x4cd120
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x30]
cmp r12, qword [r14 + 0x10]
jbe 0x4cd369
push rbp
mov rbp, rsp
sub rsp, 0xa8
nop word [rax + rax]
test rax, rax
je 0x4cd354
mov qword [rsp + 0xb8], rax
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x4cd162
xor ebx, ebx
xor ecx, ecx
nop
jmp 0x4cd17c
mov rdx, qword [rax]
mov rcx, qword [rax + 0x10]
mov rax, rdx
call sym.net.IP.String
mov rcx, rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x48], rbx
cmp qword [rax + 0x28], 0
je 0x4cd291
mov rcx, qword [rax + 0x18]
mov rax, rcx
nop dword [rax + rax]
call sym.internal_itoa.Itoa
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0xb8]
mov r8, qword [rcx + 0x20]
mov r9, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x48]
lea rdi, [0x0052b550]
mov esi, 1
lea rax, [rsp + 0x68]
mov rbx, qword [rsp + 0x88]
call sym.runtime.concatstring3
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x00625b28]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x4cd25b
xor eax, eax
lea rbx, [0x00500e9c]
mov ecx, 1
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x60]
lea r8, [0x00500eb4]
mov r9d, 2
mov r10, qword [rsp + 0x98]
mov r11, qword [rsp + 0x58]
call sym.runtime.concatstring4
jmp 0x4cd288
xor eax, eax
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
lea rdi, [0x0052b588]
mov esi, 1
mov r8, qword [rsp + 0x98]
mov r9, qword [rsp + 0x58]
call sym.runtime.concatstring3
add rsp, 0xa8
pop rbp
ret
mov rax, qword [rax + 0x18]
call sym.internal_itoa.Itoa
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x50], rbx
mov rcx, qword [rsp + 0x88]
mov qword [rsp], rcx
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 8], rdx
mov byte [rsp + 0x10], 0x3a
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x00625b28]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
nop
jl 0x4cd31e
xor eax, eax
lea rbx, [0x00500e9c]
mov ecx, 1
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x48]
lea r8, [0x00500eb4]
mov r9d, 2
mov r10, qword [rsp + 0x90]
mov r11, qword [rsp + 0x50]
call sym.runtime.concatstring4
jmp 0x4cd34b
xor eax, eax
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
lea rdi, [0x0052b588]
mov esi, 1
mov r8, qword [rsp + 0x90]
mov r9, qword [rsp + 0x50]
call sym.runtime.concatstring3
add rsp, 0xa8
pop rbp
ret
lea rax, [0x0050115f]
mov ebx, 5
add rsp, 0xa8
pop rbp
ret
mov qword [rsp + 8], rax
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
jmp sym.net._UDPAddr_.String
Function at 0x4018fe
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov dword [0x0040b048], 1
mov eax, dword [0x0040b048]
mov dword [0x0040b06c], eax
mov eax, dword [0x0040b06c]
mov dword [0x0040b068], eax
mov qword [0x0040b050], 0
lea rcx, [0x00409050]
call sub.msvcrt.dll_getenv
mov qword [0x0040b060], rax
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
cmp al, 0x2d
jne 0x401966
mov dword [0x0040b058], 2
add qword [rbp + 0x10], 1
jmp 0x4019a4
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
cmp al, 0x2b
jne 0x401982
mov dword [0x0040b058], 0
add qword [rbp + 0x10], 1
jmp 0x4019a4
mov rax, qword [0x0040b060]
test rax, rax
je 0x40199a
mov dword [0x0040b058], 0
jmp 0x4019a4
mov dword [0x0040b058], 1
mov rax, qword [rbp + 0x10]
leave
ret
Function at 0x402470
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp - 8], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x40], 0
mov ecx, 0x30
call sub.msvcrt.dll_malloc
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x4024af
mov eax, 0
jmp 0x4026fb
mov rax, qword [rbp - 8]
mov qword [rax], 0
mov rax, qword [rbp - 8]
mov qword [rax + 8], 0
mov dword [rbp - 0x30], 0x18
mov qword [rbp - 0x28], 0
mov dword [rbp - 0x20], 1
mov rax, qword [rbp - 8]
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x40]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
jne 0x40255e
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0xa
lea rdx, [0x0040ba50]
mov ecx, eax
call sub.msvcrt.dll__itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rcx, [0x004091b0]
call fcn.004034eb
jmp 0x402678
mov rax, qword [rbp - 8]
lea rdx, [rax + 8]
lea rcx, [rbp - 0x30]
lea rax, [rbp - 0x38]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
jne 0x4025e4
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0xa
lea rdx, [0x0040ba50]
mov ecx, eax
call sub.msvcrt.dll__itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rcx, [0x004091e0]
call fcn.004034eb
jmp 0x402678
mov rdx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x38]
mov rcx, rax
call fcn.00402ae4
mov rdx, qword [rbp - 8]
mov qword [rdx + 0x10], rax
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x402663
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rcx, [0x0040920e]
call fcn.004034eb
jmp 0x402678
mov rax, qword [rbp - 8]
mov qword [rax + 0x18], 0xffffffffffffffff
mov rax, qword [rbp - 8]
jmp 0x4026fb
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x402691
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x4026aa
mov rax, qword [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax]
test rax, rax
je 0x4026c9
mov rax, qword [rbp - 8]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
test rax, rax
je 0x4026ea
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 0
leave
ret
Function at 0x402ae4
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended

Disassembly:
push rbp
mov rbp, rsp
push rbx
sub rsp, 0xe8
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 0x18], 0
mov dword [rbp - 0xa0], 0x68
mov qword [rbp - 0x98], 0
mov qword [rbp - 0x88], 0
mov qword [rbp - 0x90], 0
mov dword [rbp - 0x74], 0
mov eax, dword [rbp - 0x74]
mov dword [rbp - 0x78], eax
mov eax, dword [rbp - 0x78]
mov dword [rbp - 0x7c], eax
mov eax, dword [rbp - 0x7c]
mov dword [rbp - 0x80], eax
mov word [rbp - 0x60], 0
mov qword [rbp - 0x58], 0
mov word [rbp - 0x5e], 0
mov dword [rbp - 0x64], 0x101
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x48], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
lea rdx, [rbp - 0xa0]
lea rcx, [rdx + 0x60]
mov rdx, qword [rbp + 0x18]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 2
mov r9, rcx
mov r8, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
mov rax, qword [0x0040b0e8]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0xa0]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
je 0x402c36
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x402c89
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0xa
lea rdx, [0x0040ba50]
mov ecx, eax
call sub.msvcrt.dll__itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rcx, [0x00409288]
call fcn.004034eb
mov rax, qword [rbp - 0x18]
add rsp, 0xe8
pop rbx
leave
ret

Function at 0x402f70
Capabilities:
Initialize winsock library

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x1c0
mov word [rbp - 2], 0x101
movzx eax, word [rbp - 2]
lea rdx, [rbp - 0x1a0]
mov ecx, eax
mov rax, qword [sym.imp.WSOCK32.dll_WSAStartup]
call rax
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
jne 0x402fc6
movzx eax, word [rbp - 0x1a0]
cmp al, 1
jne 0x402fba
movzx eax, word [rbp - 0x1a0]
shr ax, 8
cmp al, 1
je 0x402fc7
mov rax, qword [sym.imp.WSOCK32.dll_WSACleanup]
call rax
nop
jmp 0x402fc7
nop
leave
ret
Function at 0x404773
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
mov rbp, rsp
push rbx
sub rsp, 0x28
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov rdx, qword [0x0040bba8]
mov eax, dword [rbp + 0x10]
cdqe
mov r9d, 0
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov ebx, eax
cmp ebx, 1
je 0x4047c7
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
mov edx, eax
lea rcx, [0x00409938]
call fcn.004034eb
mov eax, dword [0x0040b0dc]
test eax, eax
je 0x4047e4
mov eax, dword [0x0040b0dc]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__sleep]
call rax
jmp 0x40485a
mov word [0x0040b0d8], 0
mov dword [0x0040b0dc], 5
mov rax, qword [rbp + 0x18]
mov r9d, 0
mov r8d, 0
mov edx, 0x7a69
mov rcx, rax
call fcn.00403ec7
mov ebx, eax
test ebx, ebx
jle 0x404830
mov eax, dword [rbp + 0x10]
cdqe
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_shutdown]
call rax
movsxd rax, ebx
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov dword [0x0040b0dc], 0
movzx eax, word [0x0040b0d8]
add eax, 1
mov word [0x0040b0d8], ax
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov dword [rax], 0
mov rdx, qword [0x0040bba8]
mov eax, dword [rbp + 0x10]
cdqe
mov r9d, 0
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov ebx, eax
cmp ebx, 1
jne 0x404899
mov eax, dword [rbp + 0x10]
jmp 0x4048c5
mov eax, dword [rbp + 0x10]
cdqe
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_shutdown]
call rax
mov eax, dword [rbp + 0x10]
cdqe
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov eax, 0xffffffff
add rsp, 0x28
pop rbx
leave
ret

Function at 0x404abb
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
mov rbp, rsp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov edi, 0
mov rbx, qword [rbp + 0x10]
mov esi, dword [rbp + 0x18]
jmp 0x404b6b
movzx eax, byte [rbx]
cmp al, 0xff
jne 0x404b63
mov byte [0x0040b0f2], 0xff
add rbx, 1
sub esi, 1
movzx eax, byte [rbx]
cmp al, 0xfb
je 0x404b01
movzx eax, byte [rbx]
cmp al, 0xfc
jne 0x404b06
mov edi, 0xfffffffe
movzx eax, byte [rbx]
cmp al, 0xfd
je 0x404b14
movzx eax, byte [rbx]
cmp al, 0xfe
jne 0x404b19
mov edi, 0xfffffffc
test dil, dil
je 0x404b64
mov byte [0x0040b0f3], dil
add rbx, 1
sub esi, 1
movzx eax, byte [rbx]
mov byte [0x0040b0f4], al
lea rdx, [0x0040b0f2]
mov eax, dword [0x00408010]
cdqe
mov r9d, 0
mov r8d, 3
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov edi, 0
jmp 0x404b64
nop
add rbx, 1
sub esi, 1
test esi, esi
jg 0x404ade
add rsp, 0x28
pop rbx
pop rsi
pop rdi
leave
ret
Function at 0x406490
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x98
test r8, r8
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rbx, r8
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rbp
mov rsi, rcx
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], r13
mov rdi, rdx
mov qword [rsp + 0x90], r14
jne 0x406505
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov r13, qword [rsp + 0x88]
mov r14, qword [rsp + 0x90]
add rsp, 0x98
ret
lea rdx, [rsp + 0x20]
mov r8d, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4065b1
mov eax, dword [rsp + 0x44]
cmp eax, 4
jne 0x406540
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
jmp 0x4064d1
cmp eax, 0x40
je 0x406528
lea r12, [rsp + 0x5c]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, r12
call rbp
mov eax, dword [rsp + 0x44]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
cmp eax, 0x40
setne r13b
cmp eax, 4
setne r14b
call sub.msvcrt.dll_memcpy
test r14b, r14b
je 0x4064d1
test r13b, r13b
je 0x4064d1
mov r9, r12
mov r8d, dword [rsp + 0x5c]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call rbp
jmp 0x4064d1
lea rcx, [0x0040a160]
mov r8, rsi
mov edx, 0x30
call fcn.00406430
nop word cs:[rax + rax]

Function at 0x406e30
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov eax, dword [0x0040b9c0]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rbp
test eax, eax
jne 0x406e70
mov rbx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
ret
lea rcx, [0x0040b9e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040ba08]
test rbx, rbx
je 0x406ec4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rdi
mov rbp, rax
call rsi
test eax, eax
jne 0x406ebb
test rbp, rbp
je 0x406ebb
mov rax, qword [rbx + 8]
mov rcx, rbp
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x406ea0
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x28]
lea rcx, [0x0040b9e0]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
jmp rax