Function at 0x51dab0
Capabilities:
Enumerate pe sections

Disassembly:
push edi
push esi
push ebp
push ebx
push ecx
mov eax, 0x34
call fcn.006021b0
mov ecx, dword [esp + 0x34]
mov ebp, ecx
movzx eax, word [esp + 0x50]
mov esi, dword [esp + 0x54]
mov word [ebp + 0x1f], ax
mov ebx, dword [ebp + 0xf]
movzx eax, word [ebx + 0x13]
mov word [ebp + 0x13], ax
mov al, byte [ebx + 0x16]
mov byte [ebp + 0x16], al
mov al, byte [ebx + 0x15]
mov byte [ebp + 0x15], al
mov dword [ebp + 0x2d], esi
mov eax, dword [esi + 0x35]
mov dword [ebp + 0x29], eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x2c]
mov dword [esp + 0x1c], eax
xor ebx, ebx
mov bl, byte [ebp + 9]
and ebx, 0xf7
mov esi, eax
xor eax, eax
mov al, byte [esi + 9]
and eax, 8
or ebx, eax
mov byte [ebp + 9], bl
mov eax, dword [esi + 0x59]
cmp eax, 0xffffffe0
je 0x51e526
cmp eax, 0xffffffd9
je 0x51e526
xor ebx, ebx
xor eax, eax
mov al, byte [ebp + 0x85]
and eax, 0xfe
and ebx, 1
or eax, ebx
mov byte [ebp + 0x85], al
movzx ecx, word [esp + 0x50]
call fcn.00575bf8
mov ebx, eax
mov esi, dword [ebx + 8]
mov dword [ebp + 0x21], esi
movzx esi, word [esi + 0x42]
mov ecx, ebp
call fcn.00576e58
mov edi, dword [esp + 0x1c]
lea edi, [edi + 0x9f]
mov dword [esp + 0x18], edi
push edi
push ebp
mov ecx, ebx
call fcn.0056001c
mov dword [esp + 0x14], eax
mov eax, edi
push eax
mov ecx, dword [esp + 0x18]
call fcn.0055f7ec
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + 8]
mov dword [ebp + 0x21], ebx
movzx eax, word [ebx + 0x42]
cmp esi, eax
je 0x51dbab
mov ecx, ebp
call fcn.00576e58
mov ebx, dword [ebp + 0x21]
movzx esi, word [ebx + 0x16]
test esi, esi
je 0x51dbe0
lea eax, [esi + esi]
add eax, eax
lea ecx, [eax + esi*8 + 0x690620]
lea esi, [esp + 0x24]
lea ebx, [esp + 0x20]
push ebx
push esi
push 0x3a
call fcn.0051ab44
movzx ecx, word [esp + 0x24]
call fcn.00523d1c
mov dword [ebp + 0x45], eax
mov ebx, dword [ebp + 0x21]
mov esi, dword [esp + 0x4c]
xor eax, eax
mov al, byte [esi + 0x5e]
and eax, 2
test eax, 0xfffffffe
je 0x51dc51
movzx eax, word [ebx + 6]
test eax, eax
je 0x51dc51
mov ecx, 0x74c010
push 0
push 8
call fcn.004e2a54
test eax, eax
je 0x51dc16
xor ebx, ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x51dc18
xor eax, eax
mov dword [ebp + 0x55], eax
mov eax, dword [ebp + 0x21]
movzx ecx, word [eax + 6]
call fcn.0051c860
mov ebx, eax
test ebx, ebx
je 0x51dc41
mov ecx, ebx
mov edx, ebp
call fcn.0051ec7c
test eax, eax
je 0x51dc41
mov ebx, dword [ebx + 2]
test ebx, ebx
jne 0x51dc2d
mov ecx, dword [ebp + 0x55]
mov eax, dword [ecx]
test eax, eax
je 0x51e32a
mov ebx, dword [ebp + 0x21]
mov esi, dword [ebx + 0x9a]
xor edx, edx
mov dl, byte [ebp + 0x84]
and edx, 0xfffffffb
xor eax, eax
cmp esi, 2
sete al
and eax, 1
shl eax, 2
or edx, eax
mov byte [ebp + 0x84], dl
mov edi, dword [ebx + 0x72]
and edx, 0xffffffef
xor eax, eax
cmp edi, 2
sete al
and eax, 1
shl eax, 4
or edx, eax
mov byte [ebp + 0x84], dl
movzx eax, word [ebx + 2]
test eax, eax
je 0x51dd17
mov dword [esp + 0x2c], ebp
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x30], esi
or dl, 0x20
mov byte [ebp + 0x84], dl
mov ecx, 0x74c010
push 0
push 8
call fcn.004e2a54
test eax, eax
je 0x51dccc
xor ebx, ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x51dcce
xor eax, eax
mov dword [ebp + 0x31], eax
mov eax, dword [ebp + 0x21]
movzx ecx, word [eax + 2]
call fcn.0051c860
mov ebx, eax
test ebx, ebx
je 0x51dcf9
lea edx, [esp + 0x2c]
mov ecx, ebx
call fcn.0051ec2c
test eax, eax
je 0x51dcf9
mov ebx, dword [ebx + 2]
test ebx, ebx
jne 0x51dce3
mov eax, dword [ebp + 0x31]
mov ebx, dword [eax]
test ebx, ebx
jne 0x51e2a2
push 0x74f4a0
mov ecx, ebp
call fcn.004f0a78
jmp 0x51e2a2
xor esi, esi
mov dword [esp + 0xc], esi
xor eax, eax
mov al, byte [ebp + 9]
and eax, 8
shr eax, 3
mov dword [esp + 4], eax
je 0x51dd81
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x38]
mov edx, str.Password
mov ecx, eax
call fcn.00500714
xor ebx, ebx
mov bl, byte [ebp + 9]
mov dword [esp + 4], ebx
mov ebx, dword [ebp + 0x21]
xor edx, edx
mov dl, byte [ebp + 0x84]
test eax, eax
je 0x51dd73
mov esi, 1
mov dword [esp + 0xc], esi
mov eax, dword [esp + 4]
and eax, 8
shr eax, 3
mov dword [esp + 4], eax
jmp 0x51dd81
mov eax, dword [esp + 4]
and eax, 8
shr eax, 3
mov dword [esp + 4], eax
and dl, 0xdf
mov byte [ebp + 0x84], dl
mov esi, dword [ebp + 0x2d]
mov edi, dword [esi + 0x2d]
mov eax, dword [edi + 0x29]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x62]
mov dword [ebp + 0x75], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x51de0f
xor eax, eax
mov al, byte [ebp + 0x85]
and eax, 0xfffffffd
mov dword [esp], eax
mov byte [ebp + 0x85], al
movzx esi, word [ebx + 0x32]
test esi, esi
je 0x51ddda
lea eax, [esi + esi]
add eax, eax
mov eax, dword [eax + esi*8 + 0x690620]
test eax, eax
je 0x51ddda
cmp dword [eax], 0x22
je 0x51e373
mov eax, dword [esp]
and eax, 0xfffffff7
mov dword [esp], eax
mov byte [ebp + 0x85], al
movzx esi, word [ebx + 0xb1]
test esi, esi
je 0x51de1f
lea eax, [esi + esi]
add eax, eax
mov eax, dword [eax + esi*8 + 0x690620]
test eax, eax
je 0x51de1f
cmp dword [eax], 0x22
je 0x51e344
jmp 0x51de1f
mov al, byte [ebp + 0x85]
or al, 2
or al, 8
mov byte [ebp + 0x85], al
mov eax, dword [ebx + 0x7a]
cmp eax, 2
je 0x51e4a7
mov eax, dword [esp + 4]
test eax, eax
je 0x51de62
movsx eax, word [ebx + 0x4c]
test eax, eax
jg 0x51de40
mov eax, 1
mov ebx, 0x800
cmp eax, 0x800
mov ecx, eax
jl 0x51de50
mov ecx, ebx
mov eax, dword [ebp + 0x79]
cmp eax, 0xa
je 0x51e39b
mov word [ebp + 0x5b], cx
jmp 0x51de70
mov ecx, 0xa
mov eax, 0xa
mov word [ebp + 0x5b], ax
inc ecx
call fcn.004dbd80
mov dword [ebp + 0x31], eax
mov eax, dword [ebp + 0x75]
cmp eax, 5
je 0x51e485
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0xa]
cmp eax, 0x4e
je 0x51de96
cmp eax, 0x4d
jne 0x51dea6
mov al, byte [ebp + 0x84]
and al, 0xbf
mov byte [ebp + 0x84], al
jmp 0x51decf
mov esi, dword [ebp + 0x21]
mov edi, dword [esi + 0x76]
xor eax, eax
mov al, byte [ebp + 0x84]
and eax, 0xbf
xor ebx, ebx
cmp edi, 2
sete bl
and ebx, 1
shl ebx, 6
or eax, ebx
mov byte [ebp + 0x84], al
mov eax, dword [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.0051e530
mov eax, dword [ebp + 0x21]
movsx ebx, byte [eax + 0xa8]
xor edx, edx
mov dl, byte [ebp + 0x85]
and edx, 2
shr edx, 1
mov dword [esp], edx
je 0x51defd
mov word [ebp + 0x5d], bx
jmp 0x51df2b
xor edx, edx
mov dl, byte [ebp + 9]
and edx, 8
test edx, 0xfffffff8
je 0x51df27
test ebx, ebx
jne 0x51df21
mov ebx, 1
mov word [ebp + 0x5d], bx
mov ebx, 1
jmp 0x51df2b
mov word [ebp + 0x5d], bx
jmp 0x51df2b
mov word [ebp + 0x5d], bx
xor esi, esi
mov dword [esp + 4], esi
cmp ebx, 1
jg 0x51df6c
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x51df6c
mov edx, dword [esp]
test edx, edx
je 0x51df58
xor eax, eax
mov al, byte [ebp + 9]
and eax, 8
shr eax, 3
mov dword [esp], eax
jmp 0x51e0bc
xor edx, edx
mov dl, byte [ebp + 9]
and edx, 8
shr edx, 3
mov dword [esp], edx
je 0x51e0bc
mov ecx, dword [ebp + 0x41]
test ecx, ecx
je 0x51e47a
mov esi, dword [ecx + 0x4e]
mov dword [esp + 4], esi
test ebx, ebx
jle 0x51e45f
test ecx, ecx
je 0x51df91
push 1
call fcn.0051d880
mov ecx, 0x56
call fcn.004dbd80
mov esi, eax
test esi, esi
je 0x51dfbb
mov dword [esi + 0x2c], 0x621538
xor edi, edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
lea ecx, [esi + 0x38]
push edi
call fcn.004ff268
jmp 0x51dfbd
xor esi, esi
mov dword [ebp + 0x41], esi
lea ecx, [ebx + ebx]
add ecx, ecx
add ecx, ecx
add ecx, ebx
add ecx, ecx
mov dword [esp], ecx
call fcn.004dbf60
test eax, eax
je 0x51dfe2
mov esi, ebx
test ebx, ebx
je 0x51dfe4
dec esi
jne 0x51dfdd
jmp 0x51dfe4
xor eax, eax
mov esi, dword [ebp + 0x41]
mov dword [esi], eax
mov eax, dword [ebp + 0x41]
mov edi, dword [eax]
xor eax, eax
mov ecx, dword [esp]
push ecx
shr ecx, 2
rep stosd dword es:[edi], eax
pop ecx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
test ebx, ebx
jle 0x51e072
cmp ebx, 6
jl 0x51e053
lea esi, [ebx - 6]
lea eax, [edi + edi]
add eax, eax
add eax, eax
add eax, edi
add eax, eax
mov edx, dword [ebp + 0x41]
mov ecx, dword [edx]
mov edx, 0xffffffff
mov dword [ecx + eax], edx
mov ecx, dword [ebp + 0x41]
mov ecx, dword [ecx]
mov dword [ecx + eax + 0x12], edx
mov ecx, dword [ebp + 0x41]
mov ecx, dword [ecx]
mov dword [ecx + eax + 0x24], edx
mov ecx, dword [ebp + 0x41]
mov ecx, dword [ecx]
mov dword [ecx + eax + 0x36], edx
mov ecx, dword [ebp + 0x41]
mov ecx, dword [ecx]
mov dword [ecx + eax + 0x48], edx
add eax, 0x5a
add edi, 5
cmp edi, esi
jle 0x51e018
lea eax, [edi + edi]
add eax, eax
add eax, eax
add eax, edi
add eax, eax
mov esi, dword [ebp + 0x41]
mov esi, dword [esi]
mov dword [esi + eax], 0xffffffff
add eax, 0x12
inc edi
cmp edi, ebx
jl 0x51e05e
mov edi, dword [ebp + 0x31]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x51e087
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x51e07f
mov esi, dword [ebp + 0x41]
mov dword [esi + 4], eax
mov ebx, dword [ebp + 0x41]
mov edi, dword [ebp + 0x31]
mov dword [ebx + 0xc], edi
mov ebx, dword [ebp + 0x41]
mov eax, dword [esp + 4]
mov dword [ebx + 0x4e], eax
mov ebx, dword [ebp + 0x41]
mov dword [esp + 4], ebx
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x4e], eax
xor eax, eax
mov al, byte [ebp + 9]
and eax, 8
shr eax, 3
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x51e201
mov eax, dword [esp + 4]
test eax, eax
je 0x51e3f1
mov eax, dword [ebp + 0x21]
movzx ecx, word [eax + 8]
test ecx, ecx
je 0x51e127
call fcn.0051c860
mov ebx, eax
test ebx, ebx
je 0x51e3e9
add dword [esp + 4], 0x2c
mov esi, dword [esp + 4]
mov ecx, 0x12
call fcn.004dbd80
test eax, eax
je 0x51e113
movzx edi, word [ebx]
mov dword [eax], 0x634424
mov word [eax + 0xc], di
jmp 0x51e115
xor eax, eax
push eax
mov ecx, esi
call fcn.004e7568
mov ebx, dword [ebx + 2]
test ebx, ebx
jne 0x51e0f6
mov eax, dword [ebp + 0x21]
movzx eax, word [eax + 0x3c]
test eax, eax
je 0x51e13a
push eax
push ebp
mov ecx, dword [esp + 0x10]
call fcn.0055e244
mov eax, dword [esp + 8]
mov ebx, dword [eax + 0x97]
test ebx, ebx
je 0x51e3b5
mov eax, dword [esp + 8]
mov ebx, dword [eax + 0x25]
mov dword [esp], ebx
mov ebx, dword [ebx + 8]
movzx esi, word [ebx + 0x32]
test esi, esi
jne 0x51e173
xor eax, eax
mov al, byte [ebp + 0x85]
and eax, 2
shr eax, 1
jmp 0x51e20e
movzx eax, word [ebx + 0x36]
test eax, eax
jne 0x51e18d
xor eax, eax
mov al, byte [ebp + 0x85]
and eax, 2
shr eax, 1
jmp 0x51e20e
movzx eax, word [ebx + 0x34]
test eax, eax
jne 0x51e1a4
xor eax, eax
mov al, byte [ebp + 0x85]
and eax, 2
shr eax, 1
jmp 0x51e20e
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x3c]
mov ebx, dword [esp]
mov esi, dword [ebx + 8]
movzx edi, word [esi + 0x32]
and eax, 0xffff
cmp edi, eax
jne 0x51e1f2
xor eax, eax
mov al, byte [ebp + 0x85]
and eax, 2
shr eax, 1
jne 0x51e20e
mov ebx, dword [ebp + 0x21]
movzx esi, word [ebx + 4]
test esi, esi
jne 0x51e20e
mov eax, dword [esp + 8]
mov dword [eax + 0x9b], ebp
xor eax, eax
mov al, byte [ebp + 0x85]
and eax, 2
shr eax, 1
jmp 0x51e20e
xor eax, eax
mov al, byte [ebp + 0x85]
and eax, 2
shr eax, 1
jmp 0x51e20e
xor eax, eax
mov al, byte [ebp + 0x85]
and eax, 2
shr eax, 1
mov ebx, dword [ebp + 0x75]
test ebx, ebx
jne 0x51e21c
mov dword [ebp + 0x75], 1
test eax, eax
je 0x51e22e
mov al, byte [ebp + 0x83]
or al, 2
mov byte [ebp + 0x83], al
mov eax, dword [ebp + 0x79]
cmp eax, 3
je 0x51e420
cmp eax, 4
je 0x51e420
cmp eax, 5
je 0x51e420
mov eax, dword [esp + 0x4c]
mov ebx, dword [eax + 0xa]
cmp ebx, 0x4e
je 0x51e2a2
movzx edx, word [0x669bda]
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + 0x59]
cmp ebx, 0xfffffff3
je 0x51e3f9
mov eax, dword [ebp + 0x21]
movzx ecx, word [eax + 0x24]
test ecx, ecx
je 0x51e28f
mov eax, dword [esp + 0x4c]
push eax
mov ebx, dword [esp + 0x1c]
push ebx
push ebp
call fcn.005211dc
mov dword [ebp + 0x49], eax
jmp 0x51e2a2
mov eax, dword [esp + 0x4c]
push eax
mov ecx, edx
mov edx, dword [esp + 0x1c]
call fcn.005211a0
mov dword [ebp + 0x49], eax
xor eax, eax
mov al, byte [ebp + 0x84]
and eax, 4
test eax, 0xfffffffc
jne 0x51e305
mov eax, dword [ebp + 0x21]
movzx ebx, word [eax + 0x40]
test ebx, ebx
je 0x51e305
call fcn.0051a480
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x34]
mov eax, dword [ebp + 0x21]
movzx ebx, word [eax + 0x40]
push 0x400
push ebp
push ebp
push ebx
call fcn.0051b09c
xor ebx, ebx
mov bl, byte [ebp + 0x84]
and ebx, 0xf7
and eax, 1
shl eax, 3
or ebx, eax
mov byte [ebp + 0x84], bl
mov ecx, dword [esp + 0x34]
call fcn.0051a4c0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x51e320
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [esp + 0x14]
push edx
mov ecx, dword [esp + 0x1c]
call fcn.0055f810
add esp, 0x38
pop ebx
pop ebp
pop esi
pop edi
ret 0xc
test ecx, ecx
je 0x51e335
push 1
call fcn.0051d838
mov dword [ebp + 0x55], 0
mov ebx, dword [ebp + 0x21]
jmp 0x51dc51
mov eax, dword [eax + 8]
mov esi, dword [eax]
cmp dword [esi], 2
jne 0x51e355
mov eax, 1
jmp 0x51e357
xor eax, eax
mov edx, dword [esp]
and edx, 0xf7
and eax, 1
shl eax, 3
or edx, eax
mov byte [ebp + 0x85], dl
jmp 0x51de1f
mov eax, dword [eax + 8]
mov esi, dword [eax]
cmp dword [esi], 2
jne 0x51e384
mov eax, 1
jmp 0x51e386
xor eax, eax
mov edx, dword [esp]
and edx, 0xfffffffd
and eax, 1
add eax, eax
or edx, eax
mov dword [esp], edx
jmp 0x51ddda
mov eax, 5
cmp ecx, 5
mov ebx, ecx
jg 0x51e3a9
mov ebx, eax
movsx ecx, bx
mov word [ebp + 0x5b], cx
jmp 0x51de70
mov ebx, dword [eax + 0x25]
mov dword [esp], ebx
mov esi, dword [ebp]
mov ecx, ebp
call dword [esi + 0x3c]
mov ebx, dword [esp]
mov esi, dword [ebx + 8]
movzx edi, word [esi + 0x26]
and eax, 0xffff
cmp edi, eax
jne 0x51e14c
mov eax, dword [esp + 8]
mov dword [eax + 0x97], ebp
jmp 0x51e14c
mov eax, dword [ebp + 0x21]
jmp 0x51e127
mov eax, dword [ebp + 0x21]
jmp 0x51e127
mov eax, dword [ebp + 0x21]
movzx ecx, word [eax + 0x26]
test ecx, ecx
je 0x51e272
mov eax, dword [esp + 0x4c]
push eax
mov ebx, dword [esp + 0x1c]
push ebx
push ebp
call fcn.005211dc
mov dword [ebp + 0x49], eax
jmp 0x51e2a2
push ebp
mov ecx, dword [ebp + 0x2d]
call fcn.00576fa0
mov ebx, eax
test ebx, ebx
je 0x51e24c
mov ecx, 0x12
call fcn.004dbf60
mov esi, eax
test esi, esi
je 0x51e455
push dword [ebp + 0x79]
mov ecx, esi
call fcn.004ff268
mov dword [esi + 0xa], ebx
mov dword [esi + 0xe], ebx
jmp 0x51e457
xor esi, esi
mov dword [ebp + 0x3d], esi
jmp 0x51e24c
mov eax, dword [eax + 0x7a]
cmp eax, 2
je 0x51e470
mov eax, 1
mov word [ebp + 0x5d], ax
mov ebx, 1
jmp 0x51df86
xor esi, esi
mov dword [esp + 4], esi
jmp 0x51df7e
xor eax, eax
mov al, byte [ebp + 0x85]
and eax, 2
test eax, 0xfffffffe
jne 0x51de85
mov dword [ebp + 0x75], 1
jmp 0x51de85
call fcn.0051a480
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x28]
lea edi, [ebp + 0x31]
mov eax, dword [ebp + 0x21]
movzx esi, word [eax + 0x30]
xor ebx, ebx
push ebx
push ebx
push ebp
push esi
push edi
call fcn.0051af38
mov edi, dword [ebp + 0x31]
test edi, edi
je 0x51e515
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x51e4e3
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x51e4db
movsx eax, ax
test eax, eax
jle 0x51e50a
mov word [ebp + 0x5b], ax
mov al, byte [ebp + 0x85]
or al, 2
mov byte [ebp + 0x85], al
mov ecx, dword [esp + 0x28]
call fcn.0051a4c0
jmp 0x51de85
mov eax, 1
mov word [ebp + 0x5b], ax
jmp 0x51e4ee
mov ecx, 1
call fcn.004dbd80
mov edi, eax
mov dword [ebp + 0x31], edi
jmp 0x51e4d1
mov ebx, 1
jmp 0x51db2f