joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18012e6f8
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.180035024
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180035024
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18012e848
cmp rax, 0xffffffffffffffff
je 0x18012e848
xor edi, edi
test rbp, rbp
jle 0x18012e7f3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18002e9d0
mov rbx, rax
test rax, rax
jne 0x18012e780
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18012e7e9
mov edx, 0x8000
mov ecx, r14d
call fcn.18002b4e0
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.18002fcf4
cmp eax, 0xffffffff
je 0x18012e7c9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18012e790
mov edx, r15d
mov ecx, r14d
call fcn.18002b4e0
jmp 0x18012e7e9
cmp byte [rsi + 0x38], dil
je 0x18012e7e0
cmp dword [rsi + 0x34], 5
jne 0x18012e7e0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18012e7e9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18002c634
jmp 0x18012e85c
jns 0x18012e85c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180035024
cmp rax, 0xffffffffffffffff
jne 0x18012e814
cmp byte [rsi + 0x30], dil
je 0x18012e85c
mov edi, dword [rsi + 0x2c]
jmp 0x18012e85c
mov ecx, r14d
call fcn.180032140
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18012e85c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18012e85c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18012e855
mov eax, dword [rsi + 0x2c]
jmp 0x18012e85a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180035024
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 0x180130600
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rdi
sub rsp, 0x20
mov r9, qword [rcx + 0x10]
mov rdi, rcx
mov eax, 0x5a4d
movsxd rcx, dword [r9 + 0x3c]
lea r8, [r9 + rcx]
cmp word [r9], ax
jne 0x1801306bf
test ecx, ecx
je 0x1801306bf
cmp dword [r8], 0x4550
jne 0x1801306bf
movzx eax, word [r8 + 4]
cmp eax, edx
jne 0x1801306bf
movzx eax, word [r8 + 6]
test ax, ax
je 0x1801306bf
cmp word [r8 + 0x14], 0
je 0x1801306bf
mov dword [rdi + 0x1c], eax
movsxd rax, dword [r9 + 0x3c]
mov qword [rsp + 0x30], rbx
mov edx, dword [rax + r9 + 0x88]
mov dword [rdi + 0x20], edx
movsxd rax, dword [r9 + 0x3c]
mov ecx, dword [rax + r9 + 0x8c]
mov dword [rdi + 0x24], ecx
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x90]
mov dword [rdi + 0x28], ebx
movsxd rax, dword [r9 + 0x3c]
mov ecx, dword [rax + r9 + 0x94]
mov dword [rdi + 0x2c], ecx
mov rcx, rdi
call fcn.18012fe80
mov edx, ebx
mov qword [rdi + 0x30], rax
mov rcx, rdi
call fcn.18012fe80
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 0x38], rax
mov al, 1
add rsp, 0x20
pop rdi
ret
xor al, al
add rsp, 0x20
pop rdi
ret
Function at 0x1400020b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x1400021ab
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x1400021b3
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400021ea
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x1400021c0
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140002215
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000223b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x140002220
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret
Function at 0x14000a700
Capabilities:
Read file on windows

Disassembly:
test rdx, rdx
je 0x14000a88c
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x60], r14
xor sil, sil
xor r14d, r14d
mov qword [rsp + 0x50], rbx
mov rdi, rdx
mov rbp, rcx
nop word [rax + rax]
mov rax, qword [0x140031da8]
mov rcx, qword [0x140031db0]
sub rax, rcx
je 0x14000a774
mov rdx, qword [0x140031da0]
cmp rdi, rax
mov rbx, rdi
cmovae rbx, rax
add rdx, rcx
mov r8, rbx
mov rcx, rbp
call fcn.14000d1b0
add rbp, rbx
sub rdi, rbx
add qword [0x140031db0], rbx
jmp 0x14000a872
mov rax, qword [0x14002fd98]
mov rcx, qword [0x14002fd90]
cmp rax, rcx
jb 0x14000a820
test sil, sil
jne 0x14000a820
cmp rcx, rax
jne 0x14000a88d
mov rcx, qword [0x140031db8]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [0x140031dc0]
mov eax, eax
sub rcx, rax
je 0x14000a872
mov rdx, qword [0x14002fd88]
lea r9, [rsp + 0x58]
mov ebx, 0x20003
mov qword [rsp + 0x20], r14
cmp rcx, rbx
cmovb rbx, rcx
mov rcx, qword [0x140031db8]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000a893
mov eax, dword [rsp + 0x58]
cmp rax, rbx
jne 0x14000a893
add qword [0x14002fd70], rbx
mov qword [0x14002fd98], r14
mov qword [0x14002fd90], rbx
jmp 0x14000a872
mov rcx, qword [0x140031dc8]
lea r8, [0x14002fd88]
lea rdx, [0x140031da0]
mov qword [0x140031db0], r14
mov qword [0x140031da8], 0x20000
call fcn.140006ee0
mov rcx, qword [0x140031db0]
cmp rcx, qword [0x140031da8]
sete sil
cmp rax, 0xffffffffffffff88
ja 0x14000a88d
mov qword [0x140031da8], rcx
mov qword [0x140031db0], r14
test rdi, rdi
jne 0x14000a730
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
call fcn.14000a6a0
int3
call fcn.14000a6a0
int3

Function at 0x14000a8a0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x80
mov rcx, qword [0x14002fd80]
xor ebx, ebx
test rcx, rcx
je 0x14000a935
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
test eax, eax
jne 0x14000a916
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x90]
mov r9d, 0x400
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Failed_to_send_CTRL_C_to_child_process.
call fcn.14000fa90
mov rcx, qword [rsp + 0x90]
call fcn.14000fa90
mov rcx, qword [0x14002fd80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x14002fd80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140031dd0], bl
je 0x14000a985
lea rax, [0x14002fda0]
mov qword [rsp + 0x40], rbx
lea rcx, [0x140028788]
mov qword [rsp + 0x50], rax
mov eax, 0x414
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x70], rcx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x60], ax
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x68], rbx
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
add rsp, 0x80
pop rbx
ret
Function at 0x14000bbe8
Capabilities:
Parse pe header

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

Function at 0x14000f3e4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f243
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f243
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f243
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f243
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f243
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f243
cmp dword [rcx + 0xf8], 0
je 0x14000f243
mov ecx, ebx
call fcn.14000f300
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f0d0
nop
cmp dword [rbp + 0x20], 0
je 0x14000f291
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f29c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f1d4
Function at 0x140019000
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140019087
mov rsi, rbx
cmp word [rax], bp
je 0x140019046
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019030
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001902c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016560
mov rdi, rax
test rax, rax
je 0x140019074
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d1b0
mov rbp, rdi
xor ecx, ecx
call fcn.140015690
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001f680
Capabilities:
Parse pe header

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

Function at 0x6ef670
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x6ef67d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x6ef68d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x6ef675
lea eax, [rcx + 1]
jmp 0x6ef69b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x6ef6ae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x6ef694
sub eax, 3
jb 0x6ef6ce
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x6ef71d
sar eax, 1
movsxd rbp, eax
jb 0x6ef704
jmp 0x6ef6dc
add ebx, ebx
jne 0x6ef6da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x6ef704
inc ecx
add ebx, ebx
jne 0x6ef6ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x6ef704
call r11
adc ecx, ecx
add ebx, ebx
jne 0x6ef6fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x6ef6ec
add ecx, 2
jmp 0x6ef709
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.006ef632
jmp 0x6ef67d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xcd200
mov dl, 0x18
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x6ef769
cmp rsi, rcx
jae 0x6ef771
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x6ef750
cmp al, 0x8f
ja 0x6ef750
cmp byte [rsi - 2], 0xf
je 0x6ef756
sub al, 0xe8
cmp al, 1
ja 0x6ef73a
cmp rsi, rcx
jae 0x6ef771
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x6ef740
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x6ef771
lodsb al, byte [rsi]
jmp 0x6ef750
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2eb000]
mov eax, dword [rdi]
or eax, eax
je 0x6ef7ce
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2f2f30]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x6ef77e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x6ef7c8
mov qword [rbx], rax
add rbx, 8
jmp 0x6ef79e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x6ef808
cmp al, 0xef
ja 0x6ef7fa
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x6ef7da
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x6ef7e9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x6ef85c
sub rsp, 0xffffffffffffff80
jmp 0x462f60
Function at 0x140063640
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
cmp byte [rdx + 0x4a], 0
je 0x140063663
xor eax, eax
nop dword [rax]
lea ecx, [rax + 0xc]
xor byte [rax + rdx], cl
inc rax
cmp rax, 0x49
jb 0x140063650
mov byte [rdx + 0x4a], 0
call fcn.14006a1a0
lea rax, [0x140326950]
add rsp, 0x28
ret

Function at 0x140063680
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
cmp byte [rdx + 0x15], 0
je 0x1400636a3
xor eax, eax
nop dword [rax]
lea ecx, [rax + 0xc]
xor byte [rax + rdx], cl
inc rax
cmp rax, 0x14
jb 0x140063690
mov byte [rdx + 0x15], 0
call fcn.14006a1a0
lea rax, [0x140326950]
add rsp, 0x28
ret
Function at 0x140065c50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14031e5b0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x38], rdx
xor r14d, r14d
call fcn.140094950
mov rsi, rax
xorps xmm0, xmm0
test rax, rax
jne 0x140065d2a
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
lea r8d, [r14 + 4]
lea rdx, str.null
mov rcx, rdi
call fcn.14006af00
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140065cf4
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140065cef
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140065e8e
mov rcx, r8
call fcn.140212560
mov rax, rdi
mov byte [rbx], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], r14
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140212540
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
movups xmmword [rbp - 0x28], xmm0
movdqa xmm1, xmmword [0x1402f4fd0]
movdqu xmmword [rbp - 0x18], xmm1
mov byte [rbp - 0x28], 0
movdqa xmm0, xmmword [0x1402f5050]
movdqu xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x50], 0x3070746b
mov dword [rbp - 0x4c], 0xc4b5141
mov dword [rbp - 0x48], 0x8160b15
mov word [rbp - 0x44], 0x100
mov rcx, r14
nop word [rax + rax]
lea eax, [rcx + 0xc]
xor byte [rbp + rcx - 0x60], al
inc rcx
cmp rcx, 0x1c
jb 0x140065d70
mov byte [rbp - 0x43], 0
lea r8, [rbp - 0x60]
mov edx, 0x2712
mov rcx, rsi
call fcn.1400989e0
mov dword [rbp - 0x38], 0x6e776867
mov dword [rbp - 0x34], 0x3d7a6565
mov dword [rbp - 0x30], 0x787c63
mov byte [rbp - 0x2c], 1
mov rcx, r14
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0xc]
xor byte [rbp + rcx - 0x38], al
inc rcx
cmp rcx, 0xb
jb 0x140065dc0
mov byte [rbp - 0x2c], 0
lea r8, [rbp - 0x38]
mov edx, 0x27c1
mov rcx, rsi
call fcn.1400989e0
xor r8d, r8d
lea edx, [r8 + 0x40]
mov rcx, rsi
call fcn.1400989e0
xor r8d, r8d
lea edx, [r8 + 0x51]
mov rcx, rsi
call fcn.1400989e0
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140065e10
mov r8, qword [rbx]
mov edx, 0x271f
mov rcx, rsi
call fcn.1400989e0
lea r8, [0x140065c20]
mov edx, 0x4e2b
mov rcx, rsi
call fcn.1400989e0
lea r8, [rbp - 0x28]
mov edx, 0x2711
mov rcx, rsi
call fcn.1400989e0
mov rcx, rsi
call fcn.140094a20
test eax, eax
je 0x140065e69
mov ecx, eax
call fcn.140095a80
mov rdx, rax
mov r9d, reloc.WS2_32.dll_recv
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rdi + 0x10], xmm1
movdqa xmm0, xmmword [0x1402f4fd0]
movdqu xmmword [rbp - 0x18], xmm0
mov byte [rbp - 0x28], 0
jmp 0x140065cba
call fcn.14022c6fc
int3
Function at 0x14009e930
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x14031e5b0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r13, qword [rcx]
mov ebp, r8d
mov rsi, rcx
lea r8, [rsp + 0x20]
mov ebx, 2
xor r14d, r14d
mov ecx, ebx
mov r15, r9
mov r12, qword [r13 + 0x11b0]
mov rdi, rdx
mov dword [r9], r14d
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x14009e99c
mov r9d, ebp
lea rdx, [rsp + 0x20]
mov r8, rdi
mov ecx, ebx
call fcn.1400bd610
jmp 0x14009ea7a
mov ebx, reloc.WS2_32.dll_socket
lea r8, [rsp + 0x58]
mov ecx, ebx
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x14009e9cc
mov r9d, ebp
lea rdx, [rsp + 0x58]
mov r8, rdi
mov ecx, ebx
call fcn.1400bd610
jmp 0x14009ea7a
mov ecx, dword [rsi + 0x440]
sub ecx, 1
je 0x14009e9f0
cmp ecx, 1
je 0x14009e9df
mov ebx, r14d
call fcn.14009f460
test al, al
mov eax, 2
cmove ebx, eax
jmp 0x14009e9f5
mov ebx, 2
cmp dword [rsi + 0xbc], 3
lea r8, [0x14025b884]
xorps xmm0, xmm0
lea rcx, [rsp + 0x68]
movups xmmword [rsp + 0x28], xmm0
setne r14b
mov dword [rsp + 0x2c], ebx
inc r14d
mov r9d, ebp
mov edx, ntohl
mov dword [rsp + 0x30], r14d
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call fcn.1400ae920
lea rcx, [rsp + 0x58]
call fcn.14009e7c0
lea r9, [rsp + 0x28]
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
call fcn.14009f0c0
test al, al
je 0x14009ea69
mov dword [r15], 1
jmp 0x14009ea78
lea rdx, str.getaddrinfo___thread_failed_to_start_n
mov rcx, r13
call fcn.1400aa9e0
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140212540
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x14009e930
Function at 0x1400ae1f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp byte [0x140323160], 0
mov esi, r8d
mov rdi, qword [rsp + 0x68]
je 0x1400ae29f
test rdi, rdi
je 0x1400ae29f
mov eax, dword [0x140323164]
test eax, eax
jne 0x1400ae297
mov r8d, dword [rsp + 0x60]
lea rsi, str.recv
mov r9, rsi
lea rcx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rdx, rdi
call fcn.1400adf40
mov ecx, 2
call fcn.1402218f8
mov r9d, dword [rsp + 0x60]
lea rdx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov r8, rdi
call fcn.1400ae8f0
mov rcx, qword [0x140323158]
call fcn.14023523c
call fcn.14022c9c4
mov dword [rax], ntohl
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
dec eax
mov dword [0x140323164], eax
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test rdi, rdi
je 0x1400ae2c7
mov r8d, dword [rsp + 0x60]
lea rcx, str.RECV__s:_d_recv__lu____ld_n
mov r9d, esi
mov dword [rsp + 0x20], eax
mov rdx, rdi
call fcn.1400adf40
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp byte [0x140323160], 0
mov esi, r8d
mov rdi, qword [rsp + 0x68]
je 0x1400ae3ef
test rdi, rdi
je 0x1400ae3ef
mov eax, dword [0x140323164]
test eax, eax
jne 0x1400ae3e7
mov r8d, dword [rsp + 0x60]
lea rsi, str.send
mov r9, rsi
lea rcx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rdx, rdi
call fcn.1400adf40
mov ecx, 2
call fcn.1402218f8
mov r9d, dword [rsp + 0x60]
lea rdx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov r8, rdi
call fcn.1400ae8f0
mov rcx, qword [0x140323158]
call fcn.14023523c
call fcn.14022c9c4
mov dword [rax], ntohl
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
dec eax
mov dword [0x140323164], eax
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test rdi, rdi
je 0x1400ae417
mov r8d, dword [rsp + 0x60]
lea rcx, str.SEND__s:_d_send__lu____ld_n
mov r9d, esi
mov dword [rsp + 0x20], eax
mov rdx, rdi
call fcn.1400adf40
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400bd990
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x14031e5b0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r13, qword [rcx]
mov ebp, r8d
mov rsi, rcx
lea r8, [rsp + 0x20]
mov ebx, 2
xor r14d, r14d
mov ecx, ebx
mov r15, r9
mov r12, qword [r13 + 0x11b0]
mov rdi, rdx
mov dword [r9], r14d
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x14009e99c
mov r9d, ebp
lea rdx, [rsp + 0x20]
mov r8, rdi
mov ecx, ebx
call fcn.1400bd610
jmp 0x14009ea7a
mov ebx, reloc.WS2_32.dll_socket
lea r8, [rsp + 0x58]
mov ecx, ebx
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x14009e9cc
mov r9d, ebp
lea rdx, [rsp + 0x58]
mov r8, rdi
mov ecx, ebx
call fcn.1400bd610
jmp 0x14009ea7a
mov ecx, dword [rsi + 0x440]
sub ecx, 1
je 0x14009e9f0
cmp ecx, 1
je 0x14009e9df
mov ebx, r14d
call fcn.14009f460
test al, al
mov eax, 2
cmove ebx, eax
jmp 0x14009e9f5
mov ebx, 2
cmp dword [rsi + 0xbc], 3
lea r8, [0x14025b884]
xorps xmm0, xmm0
lea rcx, [rsp + 0x68]
movups xmmword [rsp + 0x28], xmm0
setne r14b
mov dword [rsp + 0x2c], ebx
inc r14d
mov r9d, ebp
mov edx, ntohl
mov dword [rsp + 0x30], r14d
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call fcn.1400ae920
lea rcx, [rsp + 0x58]
call fcn.14009e7c0
lea r9, [rsp + 0x28]
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
call fcn.14009f0c0
test al, al
je 0x14009ea69
mov dword [r15], 1
jmp 0x14009ea78
lea rdx, str.getaddrinfo___thread_failed_to_start_n
mov rcx, r13
call fcn.1400aa9e0
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140212540
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x14009e930