Function at 0x100042b0
Capabilities:
Generate random numbers via rtlgenrandom
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
mov eax, dword [0x1010f16c]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov al, byte [ebx + 1]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
test al, al
jne 0x1000439d
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov eax, dword [ecx]
mov byte [edi + 0x26], 1
cmp eax, 4
jne 0x10004373
mov eax, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ebx + 0x40]
mov dword [ebx + 0x40], esi
add esi, 0xffffffff
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x44], edx
adc edx, 0xffffffff
xor edx, eax
xor esi, ecx
mov eax, dword [ebx + 0x30]
mov ecx, dword [esp + 0x14]
xor eax, ecx
or esi, eax
or esi, edx
jne 0x10004368
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add edx, 0xe
mov dword [edi + 0x20], edx
lea eax, [ecx - 0xe]
add ecx, 0x7ff0
mov dword [edi + 0x1c], eax
mov ah, cl
mov al, ch
mov word [edx], ax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esp + 0xc]
mov dword [ebx + 0x30], ecx
mov ecx, dword [esp + 0x10]
lea eax, [edx + 2]
add ecx, 0xfffffffe
mov dword [edi + 0x1c], eax
mov ah, dl
mov al, dh
mov dword [edi + 0x20], ecx
mov word [ecx], ax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 4
mov cl, byte [ebx + 3]
cmp cl, 2
je 0x1000450c
cmp al, 1
jne 0x1000446d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x101160c8]
test eax, eax
jne 0x100043e0
push str.SystemFunction036
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call esi
mov dword [0x101160c8], eax
test eax, eax
je 0x10004465
push 0x40
lea ecx, [esp + 0x1c]
push ecx
call eax
test al, al
je 0x10004465
mov ax, word [esp + 0x18]
mov ch, al
mov cl, ah
mov eax, 0x1603
cmp cx, ax
je 0x100043b7
mov eax, 0x5dc
cmp cx, ax
jbe 0x100043b7
push 0x40
lea ecx, [ebx + 0x48]
lea edx, [esp + 0x1c]
call fcn.10003780
mov esi, 0x40
add esp, 4
mov dword [esp + 0xc], esi
push edi
mov ecx, ebx
mov byte [ebx + 3], 2
call fcn.100042b0
mov ecx, dword [edi + 0x1c]
lea eax, [ecx + esi]
cmp eax, 0x76c
jbe 0x100044c0
push str.Outgoing_TCP_packet_too_big.
call fcn.10056110
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [esp + 0x18]
test cl, cl
push eax
mov ecx, ebx
jne 0x10004485
call fcn.10003840
mov esi, eax
mov dword [esp + 0xc], esi
jmp 0x10004490
call fcn.10003c40
mov esi, eax
mov dword [esp + 0xc], eax
cmp esi, 0xffffffff
jne 0x10004424
push str.Trying_to_send_server_message_before_client_hello
call fcn.10056110
add esp, 4
mov dword [edi + 0x1c], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0xc]
lea esi, [edi + 0x84]
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x20]
push ecx
push eax
lea eax, [edi + 0x84]
mov dword [edi + 0x20], esi
add eax, ebx
push eax
call fcn.100a8840
add esp, 0xc
lea eax, [esp + 0x18]
push ebx
push eax
push esi
call fcn.100a82c0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 4
cmp al, 1
jne 0x1000452f
push edi
mov ecx, ebx
call fcn.10003df0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 4
mov esi, edi
xor ebx, ebx
mov edi, dword [esp + 0x14]
push esi
mov ecx, edi
call fcn.10003df0
add ebx, dword [esi + 0x1c]
cmp ebx, 0x2ee0
jae 0x10004550
mov esi, dword [esi]
test esi, esi
jne 0x10004537
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x41c]
add dword [edi + 0x20], 0xfffffffb
mov eax, dword [edi + 0x20]
add dword [edi + 0x1c], 5
mov byte [eax], 0x17
mov eax, dword [edi + 0x20]
mov byte [eax + 1], 3
mov eax, dword [edi + 0x20]
mov byte [eax + 2], 3
mov eax, dword [edi + 0x20]
mov byte [eax + 4], bl
mov eax, dword [edi + 0x20]
shr ebx, 8
pop edi
pop esi
mov byte [eax + 3], bl
pop ebx
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 4