Function at 0x4cc739
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x18]
cmp byte [ecx + 0x1de], 0
jne 0x4e2451
push dword [esp + 8]
push eax
call fcn.004ae37b
add esp, 8
ret
push ebp
push ebx
push edi
push esi
sub esp, 0x2e0
mov ecx, dword [esp + 0x2f8]
mov eax, dword [esp + 0x2f4]
mov edx, dword [eax + 0x130]
mov dword [ecx], 0
test edx, edx
je 0x4e29c6
mov ecx, edx
cmp dword [edx + 4], 0
jne 0x4e2492
cmp dword [ecx + 0x220], 0
je 0x4e2c2f
xor ebx, ebx
cmp dword [ecx + 0x43c], 0
jne 0x4e2e33
xor esi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
lea edi, [ecx + 4]
push dword [ecx + 4]
push dword [eax + 0x7c]
mov ebx, eax
mov ebp, ecx
call fcn.004b3254
add esp, 8
push edi
call fcn.004ae98e
add esp, 4
lea edi, [ebp + 0x220]
mov dword [esp + 0x10], ebp
push dword [ebp + 0x220]
push dword [ebx + 0x7c]
call fcn.004b3254
add esp, 8
push edi
call fcn.004ae98e
add esp, 4
lea edi, [esp + 0xb4]
push 0x22c
push esi
push edi
call fcn.006fba50
add esp, 0xc
mov dword [edi + 0x224], connect
lea eax, [esp + esi]
add eax, 0xb4
push 0x100
push eax
call fcn.004b6d64
add esp, 8
add esi, 0x10
cmp esi, 0x40
jne 0x4e250d
mov cl, 1
xor edi, edi
mov edx, dword [esp + 0x2f4]
mov eax, dword [esp + 0x10]
imul ebx, edi, 0x21c
mov esi, dword [eax + ebx + 8]
test esi, esi
je 0x4e2622
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], ebx
add ebx, eax
add ebx, 0x210
push ebx
call fcn.004b6f3c
add esp, 4
mov ebp, eax
mov dword [esp + 0x18], ebx
push ebx
call fcn.004b6f35
add esp, 4
mov ebx, 4
cmp ebp, 0xc
jb 0x4e25a1
mov ebx, 0xc
test eax, eax
je 0x4e25a1
cmp byte [eax], 0
jne 0x4e25a1
cmp byte [eax + 1], 0
jne 0x4e25a1
mov ebx, 8
test byte [eax + 3], 0xf
je 0x4e2638
mov dword [esp + edi*4 + 0x24], ebx
push dword [esp + 0x18]
call fcn.004b6d7a
add esp, 4
mov edx, dword [esp + 0x2f4]
test edx, edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x1c]
je 0x4e2622
test ebx, ebx
je 0x4e2622
cmp byte [edx + 0x68b], 0
je 0x4e2622
add eax, esi
add eax, 8
cmp dword [eax], 1
mov eax, str.AAAA
mov ecx, 0x797fa3
cmove eax, ecx
mov ecx, str.bad_error_code
cmp ebx, 0xd
ja 0x4e25fb
mov ecx, dword [ebx*4 + 0x748a90]
mov esi, dword [esp + 0x10]
push dword [esi + 0x444]
push eax
push ecx
push str.DoH:__s_type__s_for__s
push edx
call fcn.004abf96
mov eax, esi
mov edx, dword [esp + 0x308]
add esp, 0x14
mov ecx, dword [esp + 0xc]
xor edi, edi
inc edi
test cl, 1
mov ecx, 0
jne 0x4e253a
jmp 0x4e29d0
mov edx, ebp
movzx ebx, word [eax + 4]
rol bx, 8
test bx, bx
mov dword [esp], ebp
mov dword [esp + 4], eax
mov ecx, 0xc
je 0x4e26c5
mov word [esp + 8], bx
lea ebp, [ecx + 1]
mov ebx, 2
cmp ebp, edx
ja 0x4e25a1
mov eax, dword [esp + 4]
movzx eax, byte [eax + ecx]
mov edx, eax
and edx, 0xc0
jne 0x4e268f
add ebp, eax
mov edx, dword [esp]
cmp ebp, edx
ja 0x4e25a1
mov ecx, ebp
test eax, eax
jne 0x4e2658
jmp 0x4e26ab
cmp edx, 0xc0
jne 0x4e29a3
add ecx, 2
mov ebp, ecx
mov edx, dword [esp]
cmp ecx, edx
ja 0x4e25a1
add ebp, 4
cmp ebp, edx
mov eax, dword [esp + 4]
ja 0x4e25a1
mov ecx, ebp
movzx ebx, word [esp + 8]
dec bx
jne 0x4e2653
movzx ebx, word [eax + 6]
rol bx, 8
test bx, bx
je 0x4e283b
mov ebp, ecx
mov word [esp + 0x14], bx
lea ecx, [ebp + 1]
mov ebx, 2
mov dword [esp + 8], ecx
cmp ecx, edx
ja 0x4e25a1
movzx ecx, byte [eax + ebp]
mov edx, ecx
and edx, 0xc0
jne 0x4e271e
mov ebp, dword [esp + 8]
add ebp, ecx
mov edx, dword [esp]
cmp ebp, edx
ja 0x4e25a1
mov dword [esp + 8], ebp
test ecx, ecx
mov eax, dword [esp + 4]
jne 0x4e26dd
jmp 0x4e273c
cmp edx, 0xc0
jne 0x4e29a3
add ebp, 2
mov dword [esp + 8], ebp
mov edx, dword [esp]
cmp ebp, edx
ja 0x4e25a1
mov ebp, dword [esp + 8]
lea ecx, [ebp + 2]
cmp ecx, edx
ja 0x4e25a1
mov eax, dword [esp + 4]
movzx eax, word [eax + ebp]
rol ax, 8
movzx edx, ax
cmp dx, 5
je 0x4e276d
cmp edx, 0x27
je 0x4e276d
cmp esi, edx
jne 0x4e29bc
mov dword [esp + 0x30], edx
lea edx, [ebp + 4]
cmp edx, dword [esp]
ja 0x4e25a1
mov word [esp + 0x22], ax
mov eax, dword [esp + 4]
movzx ecx, word [eax + ecx]
rol cx, 8
cmp cx, 1
jne 0x4e29b2
lea ecx, [ebp + 8]
cmp ecx, dword [esp]
ja 0x4e25a1
mov eax, dword [esp + 4]
mov edx, dword [eax + edx]
bswap edx
cmp edx, dword [esp + 0x2d8]
jae 0x4e27bd
mov dword [esp + 0x2d8], edx
add ebp, 0xa
mov edx, dword [esp]
cmp ebp, edx
ja 0x4e25a1
mov eax, dword [esp + 4]
movzx ecx, word [eax + ecx]
rol cx, 8
movzx eax, cx
mov ecx, dword [esp + 4]
mov dword [esp + 0x2c], eax
add eax, ebp
mov dword [esp + 8], ebp
cmp eax, edx
ja 0x4e25a1
mov ebp, eax
lea ebx, [esp + 0xb4]
push ebx
push dword [esp + 0xc]
push dword [esp + 0x38]
push dword [esp + 0x38]
call fcn.004e2f5b
add esp, 0x10
test eax, eax
jne 0x4e29ab
movzx ebx, word [esp + 0x14]
dec bx
mov edx, dword [esp]
mov eax, dword [esp + 4]
jne 0x4e26d8
cmp word [esp + 0x22], 2
sete cl
mov dword [esp + 8], ecx
mov ecx, ebp
jmp 0x4e2843
mov dword [esp + 8], 0
mov ebp, ecx
mov dword [esp + 0x34], ecx
movzx ecx, word [eax + 8]
rol cx, 8
test cx, cx
je 0x4e28f7
mov word [esp + 0x14], cx
lea ecx, [ebp + 1]
mov ebx, 2
cmp ecx, edx
ja 0x4e25a1
mov eax, dword [esp + 4]
movzx edx, byte [eax + ebp]
mov esi, edx
and esi, 0xc0
jne 0x4e2897
add ecx, edx
cmp ecx, dword [esp]
ja 0x4e25a1
mov ebp, ecx
test edx, edx
mov edx, dword [esp]
jne 0x4e285f
jmp 0x4e28b3
cmp esi, 0xc0
jne 0x4e29a3
add ebp, 2
mov ecx, ebp
mov edx, dword [esp]
cmp ebp, edx
ja 0x4e25a1
mov esi, edx
lea edx, [ecx + 8]
cmp edx, esi
ja 0x4e25a1
add ecx, 0xa
cmp ecx, esi
ja 0x4e25a1
mov eax, dword [esp + 4]
movzx edx, word [eax + edx]
rol dx, 8
movzx edx, dx
add edx, ecx
cmp edx, esi
ja 0x4e25a1
mov ebp, edx
mov edx, esi
dec word [esp + 0x14]
jne 0x4e285f
mov dword [esp + 0x34], ebp
movzx ecx, word [eax + 0xa]
rol cx, 8
test cx, cx
je 0x4e2969
mov word [esp], cx
mov ecx, eax
mov esi, edx
lea eax, [esp + 0x34]
push eax
call fcn.004e2eff
add esp, 4
test eax, eax
jne 0x4e29ab
mov ebp, dword [esp + 0x34]
lea ecx, [ebp + 8]
mov ebx, 2
cmp ecx, esi
ja 0x4e25a1
mov edx, esi
add ebp, 0xa
cmp ebp, esi
ja 0x4e25a1
mov eax, dword [esp + 4]
movzx ecx, word [eax + ecx]
rol cx, 8
movzx ecx, cx
add ecx, ebp
cmp ecx, edx
ja 0x4e25a1
mov ebp, ecx
mov dword [esp + 0x34], ecx
movzx ecx, word [esp]
dec cx
jne 0x4e2904
mov ebx, 7
cmp ebp, edx
jne 0x4e25a1
mov eax, dword [esp + 0x2dc]
or eax, dword [esp + 0x2d4]
mov ebx, 0
mov eax, 0xb
cmove ebx, eax
cmp byte [esp + 8], 0
mov eax, 0
cmovne ebx, eax
jmp 0x4e25a1
xor ebx, ebx
inc ebx
jmp 0x4e25a1
mov ebx, eax
jmp 0x4e25a1
mov ebx, 0xa
jmp 0x4e25a1
mov ebx, 9
jmp 0x4e25a1
mov ebx, 0x1b
jmp 0x4e2e33
cmp dword [esp + 0x24], 0
mov ebx, 6
je 0x4e2a31
cmp dword [esp + 0x28], 0
je 0x4e2a31
cmp dword [esp + 0x2dc], 0
jle 0x4e2a0c
xor esi, esi
lea edi, [esp + 0xb4]
push edi
call fcn.004b6d7a
add esp, 4
inc esi
add edi, 0x10
cmp esi, dword [esp + 0x2dc]
jl 0x4e29f6
mov esi, dword [esp + 0x2f4]
push dword [esi + 0x130]
call dword [0x7ec0e0]
add esp, 4
mov dword [esi + 0x130], 0
jmp 0x4e2e33
test edx, edx
je 0x4e2a82
cmp byte [edx + 0x68b], 0
je 0x4e2a82
mov eax, dword [esp + 0x10]
push dword [eax + 0x444]
push str.DoH_Host_name:__s
push edx
call fcn.004abf96
mov edx, dword [esp + 0x300]
add esp, 0xc
cmp byte [edx + 0x68b], 0
je 0x4e2a82
push dword [esp + 0x2d8]
push str.TTL:__u_seconds
push edx
call fcn.004abf96
mov edx, dword [esp + 0x300]
add esp, 0xc
mov edi, dword [esp + 0x2d4]
test edi, edi
jle 0x4e2bc5
xor ebx, ebx
lea ebp, [esp + 0xf9]
lea eax, [ebx + ebx*4]
mov ecx, dword [esp + eax*4 + 0xf4]
cmp ecx, 0x1c
je 0x4e2b0b
cmp ecx, 1
jne 0x4e2bb2
test edx, edx
je 0x4e2bb2
cmp byte [edx + 0x68b], 0
je 0x4e2bb2
movzx ecx, byte [esp + eax*4 + 0xfb]
movzx edx, byte [esp + eax*4 + 0xfa]
movzx esi, byte [esp + eax*4 + 0xf9]
movzx eax, byte [esp + eax*4 + 0xf8]
push ecx
push edx
push esi
push eax
push str.DoH_A:__u._u._u._u
push dword [esp + 0x308]
call fcn.004abf96
mov edx, dword [esp + 0x30c]
add esp, 0x18
jmp 0x4e2bb2
mov dword [esp + 0x18], ebx
push str.DoH_AAAA:
push 0x80
lea eax, [esp + 0x3c]
push eax
call fcn.004bfe80
add esp, 0xc
mov esi, 0x76
mov edi, 0xfffffffe
lea ebx, [esp + 0x3e]
movzx ecx, byte [ebp + edi + 2]
movzx eax, byte [ebp + edi + 1]
mov dword [esp + 0xc], eax
cmp edi, 0xfffffffe
mov edx, 0x798335
mov eax, ebp
mov ebp, 0x79abcb
cmove edx, ebp
mov ebp, eax
push ecx
push dword [esp + 0x10]
push edx
push str._s_02x_02x
push esi
push ebx
call fcn.004bfe80
add esp, 0x18
push ebx
call fcn.007149b0
add esp, 4
sub esi, eax
add ebx, eax
add edi, 2
cmp edi, 0xe
jb 0x4e2b34
mov edx, dword [esp + 0x2f4]
test edx, edx
je 0x4e2bae
cmp byte [edx + 0x68b], 0
je 0x4e2bae
lea eax, [esp + 0x34]
push eax
push 0x79363d
push edx
call fcn.004abf96
mov edx, dword [esp + 0x300]
add esp, 0xc
mov ebx, dword [esp + 0x18]
inc ebx
mov edi, dword [esp + 0x2d4]
add ebp, 0x14
cmp ebx, edi
jl 0x4e2a9a
mov esi, dword [esp + 0x2dc]
test esi, esi
jle 0x4e2c59
xor edi, edi
lea ebx, [esp + 0xb4]
mov eax, dword [esp + 0x10]
test edx, edx
je 0x4e2c1e
cmp byte [edx + 0x68b], 0
je 0x4e2c1e
push ebx
call fcn.004b6f2e
add esp, 4
push eax
push str.CNAME:__s
push dword [esp + 0x2fc]
call fcn.004abf96
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x300]
add esp, 0xc
mov esi, dword [esp + 0x2dc]
inc edi
add ebx, 0x10
cmp edi, esi
jl 0x4e2be1
mov edi, dword [esp + 0x2d4]
jmp 0x4e2c5d
push dword [eax + 0x960]
push str.Could_not_DoH_resolve:__s
push eax
mov esi, eax
call fcn.004abf08
add esp, 0xc
mov eax, dword [esi + 0x18]
xor ebx, ebx
cmp byte [eax + 0x1cd], 1
adc ebx, 5
jmp 0x4e2e33
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x444]
mov dword [esp + 4], ecx
push ecx
mov ebx, eax
call fcn.007149b0
add esp, 4
test edi, edi
jle 0x4e2e0b
lea ecx, [eax + 1]
mov dword [esp + 8], ecx
add eax, 0x21
xor ecx, ecx
lea ebp, [esp + 0xf8]
movzx edx, word [ebx + 0x440]
mov dword [esp + 0x14], edx
xor edi, edi
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebp
mov ebp, dword [ebp - 4]
cmp ebp, 0x1c
mov esi, 0x10
cmove esi, ebp
add eax, esi
push eax
push 1
call dword [0x7ec0ec]
add esp, 8
test eax, eax
je 0x4e2df8
mov ebx, eax
add eax, 0x20
mov dword [ebx + 0x18], eax
lea eax, [ebx + esi + 0x20]
mov dword [ebx + 0x14], eax
push dword [esp + 8]
push dword [esp + 8]
push eax
call fcn.006fb4d0
add esp, 0xc
mov eax, dword [esp + 0xc]
test eax, eax
cmove eax, ebx
mov dword [esp + 0xc], eax
test edi, edi
je 0x4e2d05
mov dword [edi + 0x1c], ebx
mov eax, 2
cmp ebp, 0x1c
mov ecx, 0x17
cmove eax, ecx
mov dword [ebx + 4], eax
mov dword [ebx + 8], 1
mov dword [ebx + 0x10], esi
mov esi, dword [ebx + 0x18]
jne 0x4e2d3a
mov ebp, dword [esp + 0x1c]
movups xmm0, xmmword [ebp]
movups xmmword [esi + 8], xmm0
mov word [esi], 0x17
jmp 0x4e2d49
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp]
mov dword [esi + 4], eax
mov word [esi], 2
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
mov ecx, dword [esp + 0x18]
inc ecx
add ebp, 0x14
mov edi, ebx
cmp ecx, dword [esp + 0x2d4]
mov eax, dword [esp]
jl 0x4e2ca5
mov eax, dword [esp + 0x2f4]
cmp dword [eax + 0x84], 0
je 0x4e2d95
push 2
push 3
push eax
call fcn.004bdd55
mov eax, dword [esp + 0x300]
add esp, 0xc
mov ecx, dword [esp + 0x10]
push dword [ecx + 0x440]
push 0
push dword [ecx + 0x444]
mov esi, dword [esp + 0x18]
push esi
push eax
call fcn.004cc017
mov ecx, dword [esp + 0x308]
add esp, 0x14
mov edi, eax
cmp dword [ecx + 0x84], 0
mov ebx, 6
je 0x4e2dde
push 3
push ecx
call fcn.004bdd94
mov ecx, dword [esp + 0x2fc]
add esp, 8
test edi, edi
je 0x4e2e40
mov dword [ecx + 0x964], edi
mov eax, dword [esp + 0x2f8]
mov dword [eax], edi
xor ebx, ebx
jmp 0x4e29e3
push dword [esp + 0xc]
call fcn.004ccff8
add esp, 4
mov esi, dword [esp + 0x2dc]
mov ebx, 0x1b
test esi, esi
jle 0x4e2e33
xor esi, esi
lea edi, [esp + 0xb4]
push edi
call fcn.004b6d7a
add esp, 4
inc esi
add edi, 0x10
cmp esi, dword [esp + 0x2dc]
jl 0x4e2e1d
mov eax, ebx
add esp, 0x2e0
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
call fcn.004ccff8
add esp, 4
jmp 0x4e29e3