Function at 0x1400021f4
Capabilities:
Create thread
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x78
mov qword [rsp + 0x48], 0
mov eax, 0x115c
mov word [rsp + 0x20], ax
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [0x1400079b8], rax
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [0x140007fc0], rax
mov eax, dword [rsp + 0x80]
dec eax
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x88]
add rax, 8
mov qword [rsp + 0x88], rax
cmp dword [rsp + 0x80], 0
je 0x1400025b7
lea rdx, str._port
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400022eb
mov eax, dword [rsp + 0x80]
dec eax
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x88]
add rax, 8
mov qword [rsp + 0x88], rax
cmp dword [rsp + 0x80], 0
jne 0x1400022d0
call fcn.140001180
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov word [rsp + 0x20], ax
jmp 0x14000258e
lea rdx, str._threads
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140002355
mov eax, dword [rsp + 0x80]
dec eax
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x88]
add rax, 8
mov qword [rsp + 0x88], rax
cmp dword [rsp + 0x80], 0
jne 0x140002339
call fcn.140001180
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [reloc.WS2_32.dll_accept], eax
jmp 0x14000258e
lea rdx, str._verbose
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14000237f
mov dword [0x1400079b0], 1
jmp 0x14000258e
lea rdx, str._once
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400023a7
mov dword [rsp + 0x3c], 1
jmp 0x14000258e
lea rdx, str._inetd
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400023cf
mov dword [rsp + 0x30], 1
jmp 0x14000258e
lea rdx, str._export
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400023f7
mov dword [rsp + 0x34], 1
jmp 0x14000258e
lea rdx, str._logfile
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400024d7
mov eax, dword [rsp + 0x80]
dec eax
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x88]
add rax, 8
mov qword [rsp + 0x88], rax
cmp dword [rsp + 0x80], 0
jne 0x140002449
call fcn.140001180
lea rdx, str._dev_null
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14000247f
mov qword [0x140007fc0], 0
mov rax, qword [0x140007fc0]
mov qword [0x1400079b8], rax
jmp 0x1400024d2
lea rdx, [0x14000718c]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x1400079b8], rax
mov rax, qword [0x1400079b8]
mov qword [0x140007fc0], rax
cmp qword [0x1400079b8], 0
jne 0x1400024d2
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
jmp 0x14000258e
lea rdx, str._keytab
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140002560
mov eax, dword [rsp + 0x80]
dec eax
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x88]
add rax, 8
mov qword [rsp + 0x88], rax
cmp dword [rsp + 0x80], 0
jne 0x140002525
call fcn.140001180
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call sub.gssapi64.dll_Ordinal_69
test eax, eax
je 0x14000255e
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.failed_to_register_keytab_n
mov rcx, rax
call fcn.140002a8c
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
jmp 0x14000258e
lea rdx, str._iakerb
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14000258c
mov rax, qword [sym.imp.gssapi64.dll_Ordinal_135]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
jmp 0x14000258e
jmp 0x1400025b7
mov eax, dword [rsp + 0x80]
dec eax
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x88]
add rax, 8
mov qword [rsp + 0x88], rax
jmp 0x140002274
cmp dword [rsp + 0x80], 1
je 0x1400025c6
call fcn.140001180
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx]
movsx eax, byte [rcx + rax]
cmp eax, 0x2d
jne 0x1400025e8
call fcn.140001180
cmp dword [reloc.WS2_32.dll_accept], 1
jge 0x140002615
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.warning:_there_must_be_at_least_one_thread_n
mov rcx, rax
call fcn.140002a8c
mov dword [reloc.WS2_32.dll_accept], 1
cmp dword [reloc.WS2_32.dll_accept], 1
jle 0x14000263f
cmp dword [rsp + 0x30], 0
je 0x14000263f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.warning:_one_thread_may_be_used_in_conjunction_with_inetd_n
mov rcx, rax
call fcn.140002a8c
call fcn.140002030
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call fcn.140001204
test eax, eax
jge 0x140002676
mov eax, 0xffffffff
jmp 0x14000283c
cmp dword [rsp + 0x30], 0
je 0x1400026b1
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call fcn.140001ae4
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
jmp 0x140002826
movzx ecx, word [rsp + 0x20]
call fcn.1400017bc
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jl 0x140002826
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.starting..._n
mov rcx, rax
call fcn.140002a8c
mov ecx, reloc.gssapi64.dll_Ordinal_24
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14000271b
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.fatal_error:_out_of_memory
mov rcx, rax
call fcn.140002a8c
jmp 0x140002819
movsxd rax, dword [rsp + 0x38]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call sub.WS2_32.dll_accept
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x50]
mov dword [rax], ecx
cmp dword [rsp + 0x50], 0
jge 0x140002761
lea rcx, str.accepting_connection
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000280e
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x34]
mov dword [rax + 0x10], ecx
cmp dword [reloc.WS2_32.dll_accept], 1
jne 0x140002790
mov rcx, qword [rsp + 0x28]
call fcn.14000218c
jmp 0x14000280e
call fcn.140002098
test eax, eax
je 0x1400027d7
mov r8, qword [rsp + 0x28]
xor edx, edx
lea rcx, [fcn.14000218c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0xffffffffffffffff
jne 0x1400027d5
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax]
mov rcx, rax
call sub.WS2_32.dll_closesocket
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000280e
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.fatal_error_incrementing_thread_counter
mov rcx, rax
call fcn.140002a8c
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax]
mov rcx, rax
call sub.WS2_32.dll_closesocket
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002819
cmp dword [rsp + 0x3c], 0
je 0x1400026e4
movsxd rax, dword [rsp + 0x38]
mov rcx, rax
call sub.WS2_32.dll_closesocket
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call sub.gssapi64.dll_Ordinal_54
call fcn.14000206c
xor eax, eax
add rsp, 0x78
ret