Function at 0x444770
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 0x444d0f
cmp dword [ecx + 0xc], 0
jns 0x4447af
cmp dword [ecx + 0x22c], 0
js 0x444eb4
xor eax, eax
cmp dword [ecx + 0x448], 0
jne 0x445045
mov dword [esp + 0x20], ecx
lea edi, [ecx + 8]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
push ebx
call fcn.00445050
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.00445740
add esp, 8
lea eax, [esp + 0x44]
push 0x100
push eax
call fcn.00445740
add esp, 8
lea eax, [esp + 0x54]
push 0x100
push eax
call fcn.00445740
add esp, 8
lea eax, [esp + 0x64]
push 0x100
push eax
call fcn.00445740
mov ecx, edi
add esp, 8
lea ebp, [esp + 0x2c]
mov dl, 1
xor eax, eax
mov dword [esp + 0x14], edi
jmp 0x4448b7
mov ecx, dword [esi + 8]
cmp ecx, 0x1c
mov edx, 0xa2128b
mov esi, 0xa21286
cmove edx, esi
cmp ecx, 1
mov ecx, 0xa21284
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.00442520
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 0x444d19
imul esi, eax, 0x220
cmp dword [ecx + esi + 8], 0
je 0x4448a0
mov dword [esp + 0xc], edx
add esi, ecx
lea edi, [esi + 0x210]
push edi
call fcn.004459f0
add esp, 4
mov ebx, eax
mov dword [esp + 0x18], edi
push edi
call fcn.00445a00
add esp, 4
mov edi, 4
mov dword [esp], eax
cmp eax, 0xc
jb 0x444be0
mov edi, 0xc
test ebx, ebx
je 0x444be0
cmp byte [ebx], 0
jne 0x444be0
cmp byte [ebx + 1], 0
jne 0x444be0
mov edi, 8
test byte [ebx + 3], 0xf
jne 0x444be0
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 0x4449c2
mov ebx, 0xc
mov word [esp + 8], ax
mov eax, ebx
lea edx, [eax + 1]
cmp edx, dword [esp]
ja 0x444bd5
mov ecx, dword [esp + 4]
movzx edi, byte [ecx + eax]
mov ebx, edi
and ebx, 0xc0
jne 0x444981
add edx, edi
cmp edx, dword [esp]
ja 0x444bd5
mov eax, edx
test edi, edi
jne 0x444950
jmp 0x4449a0
mov edi, 1
cmp ebx, 0xc0
jne 0x444be0
add eax, 2
mov edx, eax
cmp eax, dword [esp]
ja 0x444bd5
add edx, 4
mov edi, 2
cmp edx, dword [esp]
mov ecx, dword [esp + 4]
ja 0x444be0
mov ebx, edx
movzx eax, word [esp + 8]
dec ax
jne 0x444949
jmp 0x4449c9
mov ecx, ebx
mov ebx, 0xc
movzx eax, word [ecx + 6]
rol ax, 8
test ax, ax
je 0x444b27
lea edi, [ebx + 1]
cmp edi, dword [esp]
ja 0x444bd5
movzx ecx, byte [ecx + ebx]
mov edx, ecx
and edx, 0xc0
jne 0x444a0b
add edi, ecx
cmp edi, dword [esp]
ja 0x444bd5
mov ebx, edi
test ecx, ecx
mov ecx, dword [esp + 4]
jne 0x4449da
jmp 0x444a2e
mov edi, 1
cmp edx, 0xc0
mov ecx, dword [esp + 4]
jne 0x444be0
add ebx, 2
mov edi, ebx
cmp ebx, dword [esp]
ja 0x444bd5
mov edx, edi
add edi, 2
cmp edi, dword [esp]
ja 0x444bd5
mov ebx, edx
movzx ecx, word [ecx + edx]
rol cx, 8
movzx edx, cx
cmp dx, 5
je 0x444a5e
cmp edx, 0x27
je 0x444a5e
cmp dword [esp + 0x10], edx
jne 0x444d05
mov dword [esp + 8], edx
lea edx, [ebx + 4]
cmp edx, dword [esp]
ja 0x444bd5
mov word [esp + 0x24], cx
mov ecx, dword [esp + 4]
movzx ecx, word [ecx + edi]
rol cx, 8
cmp cx, 1
jne 0x444cfb
lea edi, [ebx + 8]
cmp edi, dword [esp]
ja 0x444bd5
mov ecx, dword [esp + 4]
mov edx, dword [ecx + edx]
bswap edx
cmp edx, dword [esp + 0x258]
jae 0x444aae
mov dword [esp + 0x258], edx
add ebx, 0xa
cmp ebx, dword [esp]
ja 0x444bd5
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 0x444be0
mov edi, edx
mov edx, dword [esp]
lea eax, [esp + 0x34]
push eax
push ebx
push dword [esp + 0x10]
push edi
call fcn.00445570
add esp, 0x10
test eax, eax
jne 0x444cf4
movzx eax, word [esp + 0x26]
dec ax
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0x30]
jne 0x4449da
cmp word [esp + 0x24], 2
sete al
mov dword [esp + 0x10], eax
jmp 0x444b2f
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], ebx
movzx eax, word [ecx + 8]
rol ax, 8
test ax, ax
je 0x444c41
lea edx, [ebx + 1]
cmp edx, dword [esp]
ja 0x444bd5
mov ecx, dword [esp + 4]
movzx edi, byte [ecx + ebx]
mov ecx, ebx
mov ebx, edi
and ebx, 0xc0
jne 0x444b73
add edx, edi
cmp edx, dword [esp]
ja 0x444bd5
mov ebx, edx
test edi, edi
jne 0x444b44
jmp 0x444b8a
mov edi, 1
cmp ebx, 0xc0
jne 0x444be0
add ecx, 2
mov edx, ecx
cmp ecx, dword [esp]
ja 0x444bd5
lea ebx, [edx + 8]
cmp ebx, dword [esp]
ja 0x444bd5
mov word [esp + 8], ax
add edx, 0xa
cmp edx, dword [esp]
ja 0x444bd5
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 0x444be0
dec ax
mov ebx, edx
jne 0x444b44
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 4]
jmp 0x444c43
mov edi, 2
nop word [eax + eax]
mov dword [ebp], edi
push dword [esp + 0x18]
call fcn.00445760
add esp, 4
test edi, edi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x274]
je 0x4448a0
test byte [ebx + 0x6eb], 0x20
je 0x4448a0
mov eax, dword [ebx + 0xd20]
test eax, eax
je 0x444c27
cmp dword [eax + 4], 0
jle 0x4448a0
mov eax, str.bad_error_code
cmp edi, 0xd
ja 0x444851
mov eax, dword [edi*4 + 0xa211a0]
jmp 0x444851
mov edx, ebx
movzx eax, word [ecx + 0xa]
rol ax, 8
test ax, ax
je 0x444cb9
mov word [esp + 8], ax
mov edx, dword [esp]
lea eax, [esp + 0x1c]
push eax
call fcn.00445500
add esp, 4
test eax, eax
jne 0x444cf4
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + 8]
mov edi, 2
cmp edx, dword [esp]
ja 0x444be0
add ecx, 0xa
cmp ecx, dword [esp]
ja 0x444be0
mov ebx, dword [esp + 4]
movzx edx, word [ebx + edx]
rol dx, 8
movzx eax, dx
add eax, ecx
cmp eax, dword [esp]
ja 0x444be0
mov edx, eax
mov dword [esp + 0x1c], eax
movzx eax, word [esp + 8]
dec ax
mov ecx, ebx
jne 0x444c50
mov edi, 7
cmp edx, dword [esp]
jne 0x444be0
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 0x444be0
mov edi, eax
jmp 0x444be0
mov edi, 0xa
jmp 0x444be0
mov edi, 9
jmp 0x444be0
mov eax, 0x1b
jmp 0x445045
cmp dword [esp + 0x2c], 0
je 0x444d3f
mov esi, 6
cmp dword [esp + 0x28], 0
je 0x444d3f
cmp dword [esp + 0x25c], 0
jg 0x444fd0
jmp 0x444ff6
test ebx, ebx
mov edi, dword [esp + 0x20]
je 0x444d88
test byte [ebx + 0x6eb], 0x20
je 0x444d88
mov eax, dword [ebx + 0xd20]
test eax, eax
je 0x444d60
cmp dword [eax + 4], 0
jle 0x444d88
cmp dword [0x8b4124], 0
jle 0x444d88
push dword [edi + 0x450]
push str._DoH__hostname:__s
push ebx
call fcn.00442520
add esp, 0xc
lea edx, [esp + 0x34]
mov ecx, ebx
call fcn.00445120
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 0x444ee2
jle 0x444efe
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 0x444e11
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 0x444f06
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.00404860
add esp, 0x10
test eax, eax
je 0x444f70
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 0x444e80
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 0x444de0
mov eax, dword [edi]
mov dword [esi + 4], eax
mov ax, 2
jmp 0x444deb
push dword [ebx + 0x968]
push str.Could_not_DoH_resolve:__s
push ebx
call fcn.00442490
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 0x445045
mov eax, 6
cmp dword [esp + 0x25c], 0
lea ebx, [esp + 0x34]
jg 0x444f93
jmp 0x445045
mov dword [esp + 0xc], 0
mov esi, dword [esp + 0x274]
cmp dword [esi + 0x90], 0
je 0x444f23
push 2
push 3
push esi
call fcn.00419af0
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.0044f980
add esp, 0x18
mov edi, eax
cmp dword [esi + 0x90], 0
je 0x444f5b
push 3
push esi
call fcn.00419b30
add esp, 8
test edi, edi
je 0x444fbb
mov dword [esi + 0x96c], edi
mov eax, dword [esp + 0x278]
mov dword [eax], edi
jmp 0x444fc4
push dword [esp + 0xc]
call fcn.004418a0
add esp, 4
mov eax, 0x1b
cmp dword [esp + 0x25c], 0
lea ebx, [esp + 0x34]
jle 0x445045
mov esi, eax
xor edi, edi
nop word [eax + eax]
push ebx
call fcn.00445760
add esp, 4
inc edi
add ebx, 0x10
cmp edi, dword [esp + 0x25c]
jl 0x444fa0
jmp 0x445043
push ebx
call fcn.004418a0
add esp, 4
xor esi, esi
cmp dword [esp + 0x25c], 0
jle 0x444ff6
xor edi, edi
lea ebx, [esp + 0x34]
nop word cs:[eax + eax]
push ebx
call fcn.00445760
add esp, 4
inc edi
add ebx, 0x10
cmp edi, dword [esp + 0x25c]
jl 0x444fe0
mov ebx, dword [esp + 0x274]
mov edi, dword [ebx + 0x134]
test edi, edi
je 0x445043
push ebx
call fcn.00445050
add esp, 4
push dword [edi]
call fcn.00419d20
add esp, 4
mov eax, dword [ebx + 0x134]
mov dword [eax], 0
push str.doh.c
push 0x59f
push eax
call fcn.00404af0
add esp, 0xc
mov dword [ebx + 0x134], 0
mov eax, esi
add esp, 0x260
pop esi
pop edi
pop ebx
pop ebp
ret