Function at 0x447220
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 0x4477bf
cmp dword [ecx + 0xc], 0
jns 0x44725f
cmp dword [ecx + 0x22c], 0
js 0x447964
xor eax, eax
cmp dword [ecx + 0x448], 0
jne 0x447af5
mov dword [esp + 0x20], ecx
lea edi, [ecx + 8]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
push ebx
call fcn.00447b00
add esp, 4
lea esi, [esp + 0x34]
push 0x22c
push 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [esp + 0x258], 0x7fffffff
push 0x100
push esi
call fcn.004481f0
add esp, 8
lea eax, [esp + 0x44]
push 0x100
push eax
call fcn.004481f0
add esp, 8
lea eax, [esp + 0x54]
push 0x100
push eax
call fcn.004481f0
add esp, 8
lea eax, [esp + 0x64]
push 0x100
push eax
call fcn.004481f0
mov ecx, edi
add esp, 8
lea ebp, [esp + 0x2c]
mov dl, 1
xor eax, eax
mov dword [esp + 0x14], edi
jmp 0x447367
mov ecx, dword [esi + 8]
cmp ecx, 0x1c
mov edx, 0x99af7b
mov esi, 0x99af76
cmove edx, esi
cmp ecx, 1
mov ecx, 0x99af74
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.00444fd0
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 0x4477c9
imul esi, eax, 0x220
cmp dword [ecx + esi + 8], 0
je 0x447350
mov dword [esp + 0xc], edx
add esi, ecx
lea edi, [esi + 0x210]
push edi
call fcn.004484a0
add esp, 4
mov ebx, eax
mov dword [esp + 0x18], edi
push edi
call fcn.004484b0
add esp, 4
mov edi, 4
mov dword [esp], eax
cmp eax, 0xc
jb 0x447690
mov edi, 0xc
test ebx, ebx
je 0x447690
cmp byte [ebx], 0
jne 0x447690
cmp byte [ebx + 1], 0
jne 0x447690
mov edi, 8
test byte [ebx + 3], 0xf
jne 0x447690
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 0x447472
mov ebx, 0xc
mov word [esp + 8], ax
mov eax, ebx
lea edx, [eax + 1]
cmp edx, dword [esp]
ja 0x447685
mov ecx, dword [esp + 4]
movzx edi, byte [ecx + eax]
mov ebx, edi
and ebx, 0xc0
jne 0x447431
add edx, edi
cmp edx, dword [esp]
ja 0x447685
mov eax, edx
test edi, edi
jne 0x447400
jmp 0x447450
mov edi, 1
cmp ebx, 0xc0
jne 0x447690
add eax, 2
mov edx, eax
cmp eax, dword [esp]
ja 0x447685
add edx, 4
mov edi, 2
cmp edx, dword [esp]
mov ecx, dword [esp + 4]
ja 0x447690
mov ebx, edx
movzx eax, word [esp + 8]
dec ax
jne 0x4473f9
jmp 0x447479
mov ecx, ebx
mov ebx, 0xc
movzx eax, word [ecx + 6]
rol ax, 8
test ax, ax
je 0x4475d7
lea edi, [ebx + 1]
cmp edi, dword [esp]
ja 0x447685
movzx ecx, byte [ecx + ebx]
mov edx, ecx
and edx, 0xc0
jne 0x4474bb
add edi, ecx
cmp edi, dword [esp]
ja 0x447685
mov ebx, edi
test ecx, ecx
mov ecx, dword [esp + 4]
jne 0x44748a
jmp 0x4474de
mov edi, 1
cmp edx, 0xc0
mov ecx, dword [esp + 4]
jne 0x447690
add ebx, 2
mov edi, ebx
cmp ebx, dword [esp]
ja 0x447685
mov edx, edi
add edi, 2
cmp edi, dword [esp]
ja 0x447685
mov ebx, edx
movzx ecx, word [ecx + edx]
rol cx, 8
movzx edx, cx
cmp dx, 5
je 0x44750e
cmp edx, 0x27
je 0x44750e
cmp dword [esp + 0x10], edx
jne 0x4477b5
mov dword [esp + 8], edx
lea edx, [ebx + 4]
cmp edx, dword [esp]
ja 0x447685
mov word [esp + 0x24], cx
mov ecx, dword [esp + 4]
movzx ecx, word [ecx + edi]
rol cx, 8
cmp cx, 1
jne 0x4477ab
lea edi, [ebx + 8]
cmp edi, dword [esp]
ja 0x447685
mov ecx, dword [esp + 4]
mov edx, dword [ecx + edx]
bswap edx
cmp edx, dword [esp + 0x258]
jae 0x44755e
mov dword [esp + 0x258], edx
add ebx, 0xa
cmp ebx, dword [esp]
ja 0x447685
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 0x447690
mov edi, edx
mov edx, dword [esp]
lea eax, [esp + 0x34]
push eax
push ebx
push dword [esp + 0x10]
push edi
call fcn.00448020
add esp, 0x10
test eax, eax
jne 0x4477a4
movzx eax, word [esp + 0x26]
dec ax
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0x30]
jne 0x44748a
cmp word [esp + 0x24], 2
sete al
mov dword [esp + 0x10], eax
jmp 0x4475df
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], ebx
movzx eax, word [ecx + 8]
rol ax, 8
test ax, ax
je 0x4476f1
lea edx, [ebx + 1]
cmp edx, dword [esp]
ja 0x447685
mov ecx, dword [esp + 4]
movzx edi, byte [ecx + ebx]
mov ecx, ebx
mov ebx, edi
and ebx, 0xc0
jne 0x447623
add edx, edi
cmp edx, dword [esp]
ja 0x447685
mov ebx, edx
test edi, edi
jne 0x4475f4
jmp 0x44763a
mov edi, 1
cmp ebx, 0xc0
jne 0x447690
add ecx, 2
mov edx, ecx
cmp ecx, dword [esp]
ja 0x447685
lea ebx, [edx + 8]
cmp ebx, dword [esp]
ja 0x447685
mov word [esp + 8], ax
add edx, 0xa
cmp edx, dword [esp]
ja 0x447685
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 0x447690
dec ax
mov ebx, edx
jne 0x4475f4
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 4]
jmp 0x4476f3
mov edi, 2
nop word [eax + eax]
mov dword [ebp], edi
push dword [esp + 0x18]
call fcn.00448210
add esp, 4
test edi, edi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x274]
je 0x447350
test byte [ebx + 0x6eb], 0x20
je 0x447350
mov eax, dword [ebx + 0xd20]
test eax, eax
je 0x4476d7
cmp dword [eax + 4], 0
jle 0x447350
mov eax, str.bad_error_code
cmp edi, 0xd
ja 0x447301
mov eax, dword [edi*4 + 0x99ae90]
jmp 0x447301
mov edx, ebx
movzx eax, word [ecx + 0xa]
rol ax, 8
test ax, ax
je 0x447769
mov word [esp + 8], ax
mov edx, dword [esp]
lea eax, [esp + 0x1c]
push eax
call fcn.00447fb0
add esp, 4
test eax, eax
jne 0x4477a4
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + 8]
mov edi, 2
cmp edx, dword [esp]
ja 0x447690
add ecx, 0xa
cmp ecx, dword [esp]
ja 0x447690
mov ebx, dword [esp + 4]
movzx edx, word [ebx + edx]
rol dx, 8
movzx eax, dx
add eax, ecx
cmp eax, dword [esp]
ja 0x447690
mov edx, eax
mov dword [esp + 0x1c], eax
movzx eax, word [esp + 8]
dec ax
mov ecx, ebx
jne 0x447700
mov edi, 7
cmp edx, dword [esp]
jne 0x447690
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 0x447690
mov edi, eax
jmp 0x447690
mov edi, 0xa
jmp 0x447690
mov edi, 9
jmp 0x447690
mov eax, 0x1b
jmp 0x447af5
cmp dword [esp + 0x2c], 0
je 0x4477ef
mov esi, 6
cmp dword [esp + 0x28], 0
je 0x4477ef
cmp dword [esp + 0x25c], 0
jg 0x447a80
jmp 0x447aa6
test ebx, ebx
mov edi, dword [esp + 0x20]
je 0x447838
test byte [ebx + 0x6eb], 0x20
je 0x447838
mov eax, dword [ebx + 0xd20]
test eax, eax
je 0x447810
cmp dword [eax + 4], 0
jle 0x447838
cmp dword [0x8bf084], 0
jle 0x447838
push dword [edi + 0x450]
push str._DoH__hostname:__s
push ebx
call fcn.00444fd0
add esp, 0xc
lea edx, [esp + 0x34]
mov ecx, ebx
call fcn.00447bd0
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 0x447992
jle 0x4479ae
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 0x4478c1
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 0x4479b6
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.00407310
add esp, 0x10
test eax, eax
je 0x447a20
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 0x447930
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 0x447890
mov eax, dword [edi]
mov dword [esi + 4], eax
mov ax, 2
jmp 0x44789b
push dword [ebx + 0x968]
push str.Could_not_DoH_resolve:__s
push ebx
call fcn.00444f40
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 0x447af5
mov eax, 6
cmp dword [esp + 0x25c], 0
lea ebx, [esp + 0x34]
jg 0x447a43
jmp 0x447af5
mov dword [esp + 0xc], 0
mov esi, dword [esp + 0x274]
cmp dword [esi + 0x90], 0
je 0x4479d3
push 2
push 3
push esi
call fcn.0041c5a0
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.00452430
add esp, 0x18
mov edi, eax
cmp dword [esi + 0x90], 0
je 0x447a0b
push 3
push esi
call fcn.0041c5e0
add esp, 8
test edi, edi
je 0x447a6b
mov dword [esi + 0x96c], edi
mov eax, dword [esp + 0x278]
mov dword [eax], edi
jmp 0x447a74
push dword [esp + 0xc]
call fcn.00444350
add esp, 4
mov eax, 0x1b
cmp dword [esp + 0x25c], 0
lea ebx, [esp + 0x34]
jle 0x447af5
mov esi, eax
xor edi, edi
nop word [eax + eax]
push ebx
call fcn.00448210
add esp, 4
inc edi
add ebx, 0x10
cmp edi, dword [esp + 0x25c]
jl 0x447a50
jmp 0x447af3
push ebx
call fcn.00444350
add esp, 4
xor esi, esi
cmp dword [esp + 0x25c], 0
jle 0x447aa6
xor edi, edi
lea ebx, [esp + 0x34]
nop word cs:[eax + eax]
push ebx
call fcn.00448210
add esp, 4
inc edi
add ebx, 0x10
cmp edi, dword [esp + 0x25c]
jl 0x447a90
mov ebx, dword [esp + 0x274]
mov edi, dword [ebx + 0x134]
test edi, edi
je 0x447af3
push ebx
call fcn.00447b00
add esp, 4
push dword [edi]
call fcn.0041c7d0
add esp, 4
mov eax, dword [ebx + 0x134]
mov dword [eax], 0
push str.doh.c
push 0x59f
push eax
call fcn.004075a0
add esp, 0xc
mov dword [ebx + 0x134], 0
mov eax, esi
add esp, 0x260
pop esi
pop edi
pop ebx
pop ebp
ret