Function at 0x445c10
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x260
mov eax, dword [esp + 0x278]
mov ebx, dword [esp + 0x274]
mov ecx, dword [ebx + 0x134]
mov dword [eax], 0
test ecx, ecx
je 0x4461af
cmp dword [ecx + 0xc], 0
jns 0x445c4f
cmp dword [ecx + 0x22c], 0
js 0x446354
xor eax, eax
cmp dword [ecx + 0x448], 0
jne 0x4464e5
mov dword [esp + 0x20], ecx
lea edi, [ecx + 8]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
push ebx
call fcn.004464f0
add esp, 4
lea esi, [esp + 0x34]
push 0x22c
push 0
push esi
call fcn.00786b68
add esp, 0xc
mov dword [esp + 0x258], 0x7fffffff
push 0x100
push esi
call fcn.00446be0
add esp, 8
lea eax, [esp + 0x44]
push 0x100
push eax
call fcn.00446be0
add esp, 8
lea eax, [esp + 0x54]
push 0x100
push eax
call fcn.00446be0
add esp, 8
lea eax, [esp + 0x64]
push 0x100
push eax
call fcn.00446be0
mov ecx, edi
add esp, 8
lea ebp, [esp + 0x2c]
mov dl, 1
xor eax, eax
mov dword [esp + 0x14], edi
jmp 0x445d57
mov ecx, dword [esi + 8]
cmp ecx, 0x1c
mov edx, 0x8ff77b
mov esi, 0x8ff776
cmove edx, esi
cmp ecx, 1
mov ecx, 0x8ff774
cmove edx, ecx
mov ecx, dword [esp + 0x20]
push dword [ecx + 0x450]
push edx
push eax
push str.DoH:__s_type__s_for__s
push ebx
call fcn.004439c0
add esp, 0x14
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
nop word cs:[eax + eax]
mov eax, 1
lea ebp, [esp + 0x28]
test dl, 1
mov edx, 0
je 0x4461b9
imul esi, eax, 0x220
cmp dword [ecx + esi + 8], 0
je 0x445d40
mov dword [esp + 0xc], edx
add esi, ecx
lea edi, [esi + 0x210]
push edi
call fcn.00446e90
add esp, 4
mov ebx, eax
mov dword [esp + 0x18], edi
push edi
call fcn.00446ea0
add esp, 4
mov edi, 4
mov dword [esp], eax
cmp eax, 0xc
jb 0x446080
mov edi, 0xc
test ebx, ebx
je 0x446080
cmp byte [ebx], 0
jne 0x446080
cmp byte [ebx + 1], 0
jne 0x446080
mov edi, 8
test byte [ebx + 3], 0xf
jne 0x446080
mov eax, dword [esi + 8]
mov dword [esp + 0x10], eax
movzx eax, word [ebx + 4]
rol ax, 8
test ax, ax
mov dword [esp + 4], ebx
je 0x445e62
mov ebx, 0xc
mov word [esp + 8], ax
mov eax, ebx
lea edx, [eax + 1]
cmp edx, dword [esp]
ja 0x446075
mov ecx, dword [esp + 4]
movzx edi, byte [ecx + eax]
mov ebx, edi
and ebx, 0xc0
jne 0x445e21
add edx, edi
cmp edx, dword [esp]
ja 0x446075
mov eax, edx
test edi, edi
jne 0x445df0
jmp 0x445e40
mov edi, 1
cmp ebx, 0xc0
jne 0x446080
add eax, 2
mov edx, eax
cmp eax, dword [esp]
ja 0x446075
add edx, 4
mov edi, 2
cmp edx, dword [esp]
mov ecx, dword [esp + 4]
ja 0x446080
mov ebx, edx
movzx eax, word [esp + 8]
dec ax
jne 0x445de9
jmp 0x445e69
mov ecx, ebx
mov ebx, 0xc
movzx eax, word [ecx + 6]
rol ax, 8
test ax, ax
je 0x445fc7
lea edi, [ebx + 1]
cmp edi, dword [esp]
ja 0x446075
movzx ecx, byte [ecx + ebx]
mov edx, ecx
and edx, 0xc0
jne 0x445eab
add edi, ecx
cmp edi, dword [esp]
ja 0x446075
mov ebx, edi
test ecx, ecx
mov ecx, dword [esp + 4]
jne 0x445e7a
jmp 0x445ece
mov edi, 1
cmp edx, 0xc0
mov ecx, dword [esp + 4]
jne 0x446080
add ebx, 2
mov edi, ebx
cmp ebx, dword [esp]
ja 0x446075
mov edx, edi
add edi, 2
cmp edi, dword [esp]
ja 0x446075
mov ebx, edx
movzx ecx, word [ecx + edx]
rol cx, 8
movzx edx, cx
cmp dx, 5
je 0x445efe
cmp edx, 0x27
je 0x445efe
cmp dword [esp + 0x10], edx
jne 0x4461a5
mov dword [esp + 8], edx
lea edx, [ebx + 4]
cmp edx, dword [esp]
ja 0x446075
mov word [esp + 0x24], cx
mov ecx, dword [esp + 4]
movzx ecx, word [ecx + edi]
rol cx, 8
cmp cx, 1
jne 0x44619b
lea edi, [ebx + 8]
cmp edi, dword [esp]
ja 0x446075
mov ecx, dword [esp + 4]
mov edx, dword [ecx + edx]
bswap edx
cmp edx, dword [esp + 0x258]
jae 0x445f4e
mov dword [esp + 0x258], edx
add ebx, 0xa
cmp ebx, dword [esp]
ja 0x446075
mov word [esp + 0x26], ax
mov ecx, dword [esp + 4]
movzx edx, word [ecx + edi]
rol dx, 8
movzx edx, dx
lea eax, [ebx + edx]
mov edi, 2
mov dword [esp + 0x30], eax
cmp eax, dword [esp]
ja 0x446080
mov edi, edx
mov edx, dword [esp]
lea eax, [esp + 0x34]
push eax
push ebx
push dword [esp + 0x10]
push edi
call fcn.00446a10
add esp, 0x10
test eax, eax
jne 0x446194
movzx eax, word [esp + 0x26]
dec ax
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0x30]
jne 0x445e7a
cmp word [esp + 0x24], 2
sete al
mov dword [esp + 0x10], eax
jmp 0x445fcf
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], ebx
movzx eax, word [ecx + 8]
rol ax, 8
test ax, ax
je 0x4460e1
lea edx, [ebx + 1]
cmp edx, dword [esp]
ja 0x446075
mov ecx, dword [esp + 4]
movzx edi, byte [ecx + ebx]
mov ecx, ebx
mov ebx, edi
and ebx, 0xc0
jne 0x446013
add edx, edi
cmp edx, dword [esp]
ja 0x446075
mov ebx, edx
test edi, edi
jne 0x445fe4
jmp 0x44602a
mov edi, 1
cmp ebx, 0xc0
jne 0x446080
add ecx, 2
mov edx, ecx
cmp ecx, dword [esp]
ja 0x446075
lea ebx, [edx + 8]
cmp ebx, dword [esp]
ja 0x446075
mov word [esp + 8], ax
add edx, 0xa
cmp edx, dword [esp]
ja 0x446075
mov ecx, dword [esp + 4]
movzx edi, word [ecx + ebx]
rol di, 8
movzx eax, di
add eax, edx
mov edi, 2
mov edx, eax
cmp eax, dword [esp]
movzx eax, word [esp + 8]
ja 0x446080
dec ax
mov ebx, edx
jne 0x445fe4
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 4]
jmp 0x4460e3
mov edi, 2
nop word [eax + eax]
mov dword [ebp], edi
push dword [esp + 0x18]
call fcn.00446c00
add esp, 4
test edi, edi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x274]
je 0x445d40
test byte [ebx + 0x6eb], 0x20
je 0x445d40
mov eax, dword [ebx + 0xd20]
test eax, eax
je 0x4460c7
cmp dword [eax + 4], 0
jle 0x445d40
mov eax, str.bad_error_code
cmp edi, 0xd
ja 0x445cf1
mov eax, dword [edi*4 + 0x8ff690]
jmp 0x445cf1
mov edx, ebx
movzx eax, word [ecx + 0xa]
rol ax, 8
test ax, ax
je 0x446159
mov word [esp + 8], ax
mov edx, dword [esp]
lea eax, [esp + 0x1c]
push eax
call fcn.004469a0
add esp, 4
test eax, eax
jne 0x446194
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + 8]
mov edi, 2
cmp edx, dword [esp]
ja 0x446080
add ecx, 0xa
cmp ecx, dword [esp]
ja 0x446080
mov ebx, dword [esp + 4]
movzx edx, word [ebx + edx]
rol dx, 8
movzx eax, dx
add eax, ecx
cmp eax, dword [esp]
ja 0x446080
mov edx, eax
mov dword [esp + 0x1c], eax
movzx eax, word [esp + 8]
dec ax
mov ecx, ebx
jne 0x4460f0
mov edi, 7
cmp edx, dword [esp]
jne 0x446080
mov eax, dword [esp + 0x254]
or eax, dword [esp + 0x25c]
mov edi, 0
mov eax, 0xb
cmove edi, eax
cmp byte [esp + 0x10], 0
mov eax, 0
cmovne edi, eax
jmp 0x446080
mov edi, eax
jmp 0x446080
mov edi, 0xa
jmp 0x446080
mov edi, 9
jmp 0x446080
mov eax, 0x1b
jmp 0x4464e5
cmp dword [esp + 0x2c], 0
je 0x4461df
mov esi, 6
cmp dword [esp + 0x28], 0
je 0x4461df
cmp dword [esp + 0x25c], 0
jg 0x446470
jmp 0x446496
test ebx, ebx
mov edi, dword [esp + 0x20]
je 0x446228
test byte [ebx + 0x6eb], 0x20
je 0x446228
mov eax, dword [ebx + 0xd20]
test eax, eax
je 0x446200
cmp dword [eax + 4], 0
jle 0x446228
cmp dword [0x8701a4], 0
jle 0x446228
push dword [edi + 0x450]
push str._DoH__hostname:__s
push ebx
call fcn.004439c0
add esp, 0xc
lea edx, [esp + 0x34]
mov ecx, ebx
call fcn.004465c0
mov esi, dword [edi + 0x44c]
mov eax, dword [edi + 0x450]
mov dword [esp + 0x14], eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, dword [esp + 0x254]
test ecx, ecx
je 0x446382
jle 0x44639e
lea ecx, [eax + 1]
mov dword [esp + 8], ecx
add eax, 0x21
mov dword [esp + 4], eax
xor ebp, ebp
lea edi, [esp + 0x78]
movzx eax, si
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0xc], 0
jmp 0x4462b1
movups xmm0, xmmword [edi]
movups xmmword [esi + 8], xmm0
mov ax, 0x17
mov ebp, dword [esp + 0x18]
mov word [esi], ax
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
inc ebp
add edi, 0x14
cmp ebp, dword [esp + 0x254]
jge 0x4463a6
mov dword [esp], ebx
mov dword [esp + 0x18], ebp
mov esi, dword [edi - 4]
cmp esi, 0x1c
mov ebp, 0x10
cmove ebp, esi
mov eax, dword [esp + 4]
add eax, ebp
push str.doh.c
push 0x3a6
push eax
push 1
call fcn.00405d00
add esp, 0x10
test eax, eax
je 0x446410
mov ebx, eax
add eax, 0x20
mov dword [ebx + 0x18], eax
lea eax, [ebx + ebp + 0x20]
mov dword [ebx + 0x14], eax
push dword [esp + 8]
push dword [esp + 0x18]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0xc]
test eax, eax
cmove eax, ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp]
test eax, eax
je 0x446320
mov dword [eax + 0x1c], ebx
mov eax, 2
cmp esi, 0x1c
mov ecx, 0x17
cmove eax, ecx
mov dword [ebx + 4], eax
mov dword [ebx + 8], 1
mov dword [ebx + 0x10], ebp
mov esi, dword [ebx + 0x18]
je 0x446280
mov eax, dword [edi]
mov dword [esi + 4], eax
mov ax, 2
jmp 0x44628b
push dword [ebx + 0x968]
push str.Could_not_DoH_resolve:__s
push ebx
call fcn.00443930
add esp, 0xc
mov eax, dword [ebx + 0x18]
movzx ecx, byte [eax + 0x2a0]
and cl, 0x10
xor eax, eax
cmp cl, 1
adc eax, 5
jmp 0x4464e5
mov eax, 6
cmp dword [esp + 0x25c], 0
lea ebx, [esp + 0x34]
jg 0x446433
jmp 0x4464e5
mov dword [esp + 0xc], 0
mov esi, dword [esp + 0x274]
cmp dword [esi + 0x90], 0
je 0x4463c3
push 2
push 3
push esi
call fcn.0041af90
add esp, 0xc
push 0
mov eax, dword [esp + 0x24]
push dword [eax + 0x44c]
push 0
push dword [eax + 0x450]
mov ebx, dword [esp + 0x1c]
push ebx
push esi
call fcn.00450e20
add esp, 0x18
mov edi, eax
cmp dword [esi + 0x90], 0
je 0x4463fb
push 3
push esi
call fcn.0041afd0
add esp, 8
test edi, edi
je 0x44645b
mov dword [esi + 0x96c], edi
mov eax, dword [esp + 0x278]
mov dword [eax], edi
jmp 0x446464
push dword [esp + 0xc]
call fcn.00442d40
add esp, 4
mov eax, 0x1b
cmp dword [esp + 0x25c], 0
lea ebx, [esp + 0x34]
jle 0x4464e5
mov esi, eax
xor edi, edi
nop word [eax + eax]
push ebx
call fcn.00446c00
add esp, 4
inc edi
add ebx, 0x10
cmp edi, dword [esp + 0x25c]
jl 0x446440
jmp 0x4464e3
push ebx
call fcn.00442d40
add esp, 4
xor esi, esi
cmp dword [esp + 0x25c], 0
jle 0x446496
xor edi, edi
lea ebx, [esp + 0x34]
nop word cs:[eax + eax]
push ebx
call fcn.00446c00
add esp, 4
inc edi
add ebx, 0x10
cmp edi, dword [esp + 0x25c]
jl 0x446480
mov ebx, dword [esp + 0x274]
mov edi, dword [ebx + 0x134]
test edi, edi
je 0x4464e3
push ebx
call fcn.004464f0
add esp, 4
push dword [edi]
call fcn.0041b1c0
add esp, 4
mov eax, dword [ebx + 0x134]
mov dword [eax], 0
push str.doh.c
push 0x59f
push eax
call fcn.00405f90
add esp, 0xc
mov dword [ebx + 0x134], 0
mov eax, esi
add esp, 0x260
pop esi
pop edi
pop ebx
pop ebp
ret