joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800226c0
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.180016c6c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180016c6c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180022810
cmp rax, 0xffffffffffffffff
je 0x180022810
xor edi, edi
test rbp, rbp
jle 0x1800227bb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18001693c
mov rbx, rax
test rax, rax
jne 0x180022748
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800227b1
mov edx, 0x8000
mov ecx, r14d
call fcn.180022548
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.18001662c
cmp eax, 0xffffffff
je 0x180022791
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180022758
mov edx, r15d
mov ecx, r14d
call fcn.180022548
jmp 0x1800227b1
cmp byte [rsi + 0x38], dil
je 0x1800227a8
cmp dword [rsi + 0x34], 5
jne 0x1800227a8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800227b1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18001349c
jmp 0x180022824
jns 0x180022824
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180016c6c
cmp rax, 0xffffffffffffffff
jne 0x1800227dc
cmp byte [rsi + 0x30], dil
je 0x180022824
mov edi, dword [rsi + 0x2c]
jmp 0x180022824
mov ecx, r14d
call fcn.18001fb58
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180022824
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 0x180022824
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18002281d
mov eax, dword [rsi + 0x2c]
jmp 0x180022822
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180016c6c
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 0x1400112c1
Capabilities:
Terminate process

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

Function at 0x140011389
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001aa90
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001aab0
xor al, al
jmp 0x14001ab31
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001aac3
xor al, al
jmp 0x14001ab31
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001aaed
xor al, al
jmp 0x14001ab31
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001ab01
xor al, al
jmp 0x14001ab31
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001ab13
xor al, al
jmp 0x14001ab31
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001ab2f
xor al, al
jmp 0x14001ab31
mov al, 1
add rsp, 0x38
ret
Function at 0x140017e10
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001152d
movzx eax, al
test eax, eax
jne 0x140017e30
mov ecx, 7
call fcn.140011447
nop
mov byte [rsp + 0x20], 0
call fcn.14001146f
mov byte [rsp + 0x21], al
cmp dword [0x140025bd0], 1
jne 0x140017e54
mov ecx, 7
call fcn.140011447
nop
jmp 0x140017eac
cmp dword [0x140025bd0], 0
jne 0x140017ea7
mov dword [0x140025bd0], 1
lea rdx, [0x140020660]
lea rcx, [0x140020330]
call fcn.140011249
test eax, eax
je 0x140017e88
mov eax, 0xff
jmp 0x140017fb1
lea rdx, [0x140020220]
lea rcx, [section..rdata]
call fcn.14001145b
mov dword [0x140025bd0], 2
jmp 0x140017eac
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011429
call fcn.1400113ac
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140017f09
mov rcx, qword [rsp + 0x30]
call fcn.1400111f9
movzx eax, al
test eax, eax
je 0x140017f09
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002c020]
nop
call fcn.1400113e8
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140017f3d
mov rcx, qword [rsp + 0x38]
call fcn.1400111f9
movzx eax, al
test eax, eax
je 0x140017f3d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400114c9
nop
call fcn.140018060
mov dword [rsp + 0x28], eax
call fcn.140011389
movzx eax, al
test eax, eax
jne 0x140017f5c
mov ecx, dword [rsp + 0x28]
call fcn.14001106e
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140017f6b
call fcn.1400114d3
nop
xor edx, edx
mov cl, 1
call fcn.1400111e0
mov eax, dword [rsp + 0x28]
jmp 0x140017fb1
add rsp, 0x68
ret
Function at 0x140c05108
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140c0528f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140c05139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c0511f
add dl, dl
jne 0x140c05146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c051a6
xor eax, eax
add dl, dl
jne 0x140c05155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c0525d
add dl, dl
jne 0x140c05166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c05173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c05180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c0518d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c0519a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c0512e
mov eax, 1
add dl, dl
jne 0x140c051b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c051c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c051ab
sub eax, ebx
mov ebx, 1
jne 0x140c051fc
mov ecx, 1
add dl, dl
jne 0x140c051de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c051eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c051d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c0512e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c05218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c05225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c0520d
cmp eax, 0x7d00
jae 0x140c0524b
cmp eax, 0x500
jb 0x140c05246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c0512e
cmp eax, 0x7f
ja 0x140c0524e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c0512e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c05282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140c0512e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180005490
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800054e4
cmp dword [rsp + 0x58], 0
je 0x1800054e4
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rcx, qword [rsp + 0x50]
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
Function at 0x180007e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [0x180059300]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea r8, [0x180045068]
mov edx, 0x65
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180007e4c
jmp 0x180008007
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x180007e6f
jmp 0x180008007
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x180007e94
jmp 0x180008007
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x180007eb1
jmp 0x180008007
mov eax, dword [rsp + 0x20]
mov edx, eax
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180007faa
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180007f9e
mov eax, dword [rsp + 0x20]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x78], 0
lea r8, [rsp + 0x78]
mov edx, 1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x180007f92
mov ecx, 0x18
call fcn.180006e90
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x180007f62
mov edx, 0x18
mov rcx, qword [rsp + 0x38]
call fcn.180004e60
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
call fcn.180006a80
mov qword [rsp + 0x60], rax
jmp 0x180007f6b
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [0x18005a9f0], rax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x78]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop
cmp qword [0x18005a9f0], 0
je 0x180007fc4
mov rcx, qword [0x18005a9f0]
call fcn.180007bf0
test eax, eax
je 0x180008007
mov rax, qword [0x18005a9f0]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x180007ff3
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x40]
call qword [rax]
mov qword [rsp + 0x70], rax
jmp 0x180007ffc
mov qword [rsp + 0x70], 0
mov qword [0x18005a9f0], 0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180024000
add rsp, 0x98
pop rdi
pop rsi
ret

Function at 0x18000a5c0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1800590a0], eax
lea r9, [0x18005a2b0]
lea r8, str.AF_BORDER_CLASS
lea rdx, str._s__s
lea rcx, [0x18005a9d8]
call fcn.180003900
nop
add rsp, 0x28
ret
Function at 0x18000a600
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1800590a0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x18000a64a
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
xor r8d, r8d
lea rdx, [0x18000ad00]
mov ecx, listen
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
test rax, rax
je 0x18000a64a
mov edx, 1
mov ecx, dword [0x1800590a0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
add rsp, 0x28
ret

Function at 0x18000b810
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov rax, qword [0x180059300]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rdx, reloc.WS2_32.dll_bind
lea rcx, [rsp + 0x60]
call fcn.1800027b0
nop
cmp qword [0x180059150], 0xffffffffffffffff
jne 0x18000b867
call fcn.18000b470
nop
cmp qword [0x180059150], 0xffffffffffffffff
jne 0x18000b87e
mov dword [rsp + 0x50], 0
jmp 0x18000b976
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x11f0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x180059150]
call qword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
jge 0x18000b96e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x542
je 0x18000b96c
cmp qword [0x180059150], 0xffffffffffffffff
je 0x18000b8ff
mov rcx, qword [0x180059150]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [0x180059150], 0xffffffffffffffff
call fcn.18000b470
test eax, eax
je 0x18000b96c
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x11f0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x180059150]
call qword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
jl 0x18000b95c
mov dword [rsp + 0x54], 1
jmp 0x18000b964
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x50], eax
jmp 0x18000b976
mov dword [rsp + 0x50], 1
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x60]
call fcn.180002cc0
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180024000
add rsp, 0x80
pop rdi
ret
Function at 0x18000b9b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov rax, qword [0x180059300]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rdx, reloc.WS2_32.dll_bind
lea rcx, [rsp + 0x60]
call fcn.1800027b0
nop
cmp qword [0x180059150], 0xffffffffffffffff
jne 0x18000ba0c
call fcn.18000b470
nop
cmp qword [0x180059150], 0xffffffffffffffff
jne 0x18000ba23
mov dword [rsp + 0x50], 0
jmp 0x18000bb86
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x11f0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x180059150]
call qword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
jge 0x18000bb13
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x542
je 0x18000bb11
cmp qword [0x180059150], 0xffffffffffffffff
je 0x18000baa4
mov rcx, qword [0x180059150]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [0x180059150], 0xffffffffffffffff
call fcn.18000b470
test eax, eax
je 0x18000bb11
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x11f0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x180059150]
call qword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
jl 0x18000bb01
mov dword [rsp + 0x54], 1
jmp 0x18000bb09
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x50], eax
jmp 0x18000bb1b
mov dword [rsp + 0x50], 1
cmp dword [rsp + 0x50], 0
je 0x18000bb86
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x11f0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x180059150]
call qword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
jl 0x18000bb76
mov dword [rsp + 0x58], 1
jmp 0x18000bb7e
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0x60]
call fcn.180002cc0
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180024000
add rsp, 0x80
pop rdi
ret
Function at 0x18000c990
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rax, qword [0x180059300]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
mov dword [rsp + 0x24], 0x1c
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_getsockname]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18000ca05
mov rcx, qword [rsp + 0x60]
call fcn.18000c2b0
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_getsockname]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18000ca10
xor eax, eax
jmp 0x18000ca42
movzx eax, word [rsp + 0x28]
cmp eax, 0x17
jne 0x18000ca29
movzx ecx, word [rsp + 0x2a]
call qword [sym.imp.WS2_32.dll_ntohs]
jmp 0x18000ca42
movzx eax, word [rsp + 0x28]
cmp eax, 2
jne 0x18000ca40
movzx ecx, word [rsp + 0x2a]
call qword [sym.imp.WS2_32.dll_ntohs]
jmp 0x18000ca42
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180024000
add rsp, 0x50
pop rdi
ret

Function at 0x18000cad0
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [0x180059300]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x24], 0
lea rax, [rsp + 0x25]
mov rdi, rax
xor eax, eax
mov ecx, 3
rep stosb byte [rdi], al
lea r8, [rsp + 0x24]
mov rdx, qword [rsp + 0x40]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x18000cb22
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
jmp 0x18000cb2a
mov dword [rsp + 0x20], 0xffffffff
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180024000
add rsp, 0x30
pop rdi
ret
Function at 0x18000cc00
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push rsi
push rdi
sub rsp, 0x388
mov rax, qword [0x180059300]
xor rax, rsp
mov qword [rsp + 0x370], rax
lea rdx, [rsp + 0xa0]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea rax, [rsp + 0x240]
mov rdi, rax
xor eax, eax
mov ecx, 0x12c
rep stosb byte [rdi], al
mov edx, 0x12b
lea rcx, [rsp + 0x240]
call qword [sym.imp.WS2_32.dll_gethostname]
nop
xor r8d, r8d
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x58]
call fcn.18001b070
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [0x18005aa40]
call fcn.18000c1a0
nop
lea rcx, [rsp + 0x58]
call fcn.180002b70
nop
lea rcx, str.0.0.0.0
call fcn.18000cad0
mov dword [rsp + 0x2c], eax
lea rdx, [rsp + 0x2c]
lea rcx, [0x18005aa20]
call fcn.18000d920
nop
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x7c], 6
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
xor edx, edx
lea rcx, [rsp + 0x240]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18000cd30
jmp 0x18000cdf2
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
jmp 0x18000cd4a
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18000cde6
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 4]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 2
je 0x18000cd72
cmp dword [rsp + 0x28], 0x17
je 0x18000cd9b
jmp 0x18000cde1
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
add rax, 4
mov rdx, rax
lea rcx, [0x18005aa20]
call fcn.18000d920
nop
jmp 0x18000cde1
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x40], rax
xor edx, edx
mov ecx, reloc.WS2_32.dll_recv
call fcn.180005490
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x68]
lea rsi, [rax + 8]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x68]
lea rcx, [0x18005aa30]
call fcn.18000d950
nop
jmp 0x18000cd3c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.180024000
add rsp, 0x388
pop rdi
pop rsi
ret
Function at 0x18000cee0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jle 0x18000cf4d
xor r9d, r9d
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x18000cf34
cmp dword [rsp + 0x20], 0
jne 0x18000cf3b
mov eax, 0xffffffff
jmp 0x18000cf51
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x18000cf03
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jle 0x18000cfcd
xor r9d, r9d
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x18000cfb4
cmp dword [rsp + 0x20], 0
jne 0x18000cfbb
mov eax, 0xffffffff
jmp 0x18000cfd1
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x18000cf83
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x18000d7f0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x48
mov rax, qword [0x180059300]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edx, edx
mov ecx, 0x1000
call fcn.180005490
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov r9, qword [rsp + 0x28]
mov r8, qword [rsp + 0x50]
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call fcn.18000daa0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x20]
call fcn.180005460
nop
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180024000
add rsp, 0x48
ret