Function at 0x10023960
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push ebx
lea ecx, [eax + 0x872]
push esi
mov ebx, eax
push edi
mov dword [ebp + 0x14], ebx
mov dword [ebp - 0x14], ecx
cmp eax, ecx
ja case.0x10023bc3.23514
cmp ebx, 0x5b7e
ja 0x10023bad
je 0x10023ba3
lea eax, [ebx - 0x523c]
cmp eax, 0x5c
ja case.0x10023bc3.23446
movzx eax, byte [eax + 0x10023c70]
jmp dword [eax*4 + 0x10023c58]
mov al, 0x83
mov bl, 0xbb
mov ax, word [0x1007c4a0]
xor edi, edi
mov dword [ebp - 0xc], eax
test eax, eax
jle case.0x10023bc3.23446
jmp 0x100239d0
add byte [eax], al
add byte [eax], al
mov esi, 0xed0
mov eax, esi
sub eax, 0xed0
je 0x10023a00
sub eax, 0x22
jne 0x10023a00
jge 0x10023a0b
loopne 0x100239cc
imul ecx, dword [ebx - 0x69df42f4], 7
adc byte [ebx - 0x6aff42ec], cl
pop es
adc byte [edx + 0x41028801], cl
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x100239f6
add esi, 0x22
cmp esi, 0xef2
jbe 0x100239d5
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x100239d0
mov ebx, dword [ebp + 0x14]
jmp case.0x10023bc3.23446
cmp dword [0x1007d3bc], 0
jne 0x10023b1f
mov esi, 0x6a92
mov dword [ebp - 8], esi
mov edi, edi
mov eax, esi
sub eax, 0x6a92
je 0x10023aa0
sub eax, 4
je 0x10023a56
sub eax, 4
jne 0x10023b0d
mov dword [0x1007d3bc], 1
jmp 0x10023b0d
push 0x100
push 0x10079750
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x10023b0d
mov ecx, dword [str.with_Mim_n_n]
mov edx, dword [0x10076b35]
mov ax, word [0x10076bef]
mov dword [0x10079750], ecx
mov cl, byte [0x10076be9]
mov dword [0x10079754], edx
mov word [0x10079758], ax
mov byte [0x1007975a], cl
jmp 0x10023b0d
xor esi, esi
mov edi, 0x6f2
cmp edi, 0x6f2
jne 0x10023af1
push 0x55
ficomp dword [ebx + 0x3a936824]
add byte [eax], al
lea edx, [ebp - 0x10]
push 0
push edx
mov dword [ebp - 0x10], 0x10
call fcn.100668a0
push 0x3a93
mov dword [esi + 0x10079620], eax
lea eax, [ebp - 0x10]
push 0
push eax
mov dword [ebp - 0x10], 0x40
call fcn.100668a0
add esp, 0x18
mov dword [esi + 0x10079500], eax
add edi, 0x62
cmp edi, 0x754
jbe 0x10023aa7
add esi, 4
cmp esi, 0x100
jl 0x10023aa2
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp - 8]
add esi, 4
mov dword [ebp - 8], esi
cmp esi, 0x6a9a
jbe 0x10023a30
push 0x1007c160
push 0
lea ecx, [ebp + 0x14]
push ecx
push 0
push 0x4cbb
mov dword [ebp + 0x14], 0x40
call fcn.10050620
add esp, 0x14
mov dword [0x1007c4a0], eax
jmp case.0x10023bc3.23446
mov eax, dword [ebp - 0xc]
test eax, eax
jle case.0x10023bc3.23491
mov edi, 0x1007c160
mov ebx, eax
mov edx, dword [ebp + 0x18]
cmp dword [edx], 0
je 0x10023b7f
mov esi, 0x34de
cmp esi, esi
jne 0x10023b74
push 2
push 4
push edi
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
add esi, 0x5c
cmp esi, 0x34de
jbe 0x10023b67
add edi, 4
dec ebx
jne 0x10023b58
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 4], 0
jmp case.0x10023bc3.23446
mov dword [0x1007d3bc], 0
jmp case.0x10023bc3.23446
setae dl
push ds
mov ebp, 0x91e9
add byte [ebp - 0x5b947d], cl
inc dword [ebx - 0x78f0ba08]
add byte [eax], 0
add byte [edi], cl
mov dh, 0x80
in al, 0x3c
add dl, byte [eax]
lea eax, [ebx - 0x5b95]
cmp eax, 0x45
ja case.0x10023bc3.23446
movzx eax, byte [eax + 0x10023ce4]
jmp dword [eax*4 + 0x10023cd0]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push esi
mov dword [ebp - 0x10], edx
lea edx, [ebp + 0x14]
push edx
push 0x2026
lea eax, [ebp - 0x10]
push 0
push eax
mov dword [ebp + 0x14], ecx
call fcn.10022e10
add esp, 0x14
test eax, eax
js 0x10023c20
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp + 0x14], eax
mov eax, dword [esi + 0xcc]
push eax
push 0x213c
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x10], edx
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.10039570
add esp, 0x10
add esi, 0xb4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.0x10023bc3.23446
mov eax, dword [ebp + 0x18]
add eax, 0xb4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add ebx, 0x17
mov dword [ebp + 0x14], ebx
cmp ebx, dword [ebp - 0x14]
jbe 0x10023982
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret