Function at 0x51dae8
Capabilities:
Enumerate pe sections

Disassembly:
push edi
push esi
push ebp
push ebx
push ecx
mov eax, 0x34
call fcn.00602270
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 0x51e55e
cmp eax, 0xffffffd9
je 0x51e55e
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.00575d04
mov ebx, eax
mov esi, dword [ebx + 8]
mov dword [ebp + 0x21], esi
movzx esi, word [esi + 0x42]
mov ecx, ebp
call fcn.00576f64
mov edi, dword [esp + 0x1c]
lea edi, [edi + 0x9f]
mov dword [esp + 0x18], edi
push edi
push ebp
mov ecx, ebx
call fcn.005600e4
mov dword [esp + 0x14], eax
mov eax, edi
push eax
mov ecx, dword [esp + 0x18]
call fcn.0055f8b4
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 0x51dbe3
mov ecx, ebp
call fcn.00576f64
mov ebx, dword [ebp + 0x21]
movzx esi, word [ebx + 0x16]
test esi, esi
je 0x51dc18
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.0051ab7c
movzx ecx, word [esp + 0x24]
call fcn.00523d5c
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 0x51dc89
movzx eax, word [ebx + 6]
test eax, eax
je 0x51dc89
mov ecx, 0x74c010
push 0
push 8
call fcn.004e2a04
test eax, eax
je 0x51dc4e
xor ebx, ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x51dc50
xor eax, eax
mov dword [ebp + 0x55], eax
mov eax, dword [ebp + 0x21]
movzx ecx, word [eax + 6]
call fcn.0051c898
mov ebx, eax
test ebx, ebx
je 0x51dc79
mov ecx, ebx
mov edx, ebp
call fcn.0051ecb4
test eax, eax
je 0x51dc79
mov ebx, dword [ebx + 2]
test ebx, ebx
jne 0x51dc65
mov ecx, dword [ebp + 0x55]
mov eax, dword [ecx]
test eax, eax
je 0x51e362
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 0x51dd4f
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.004e2a04
test eax, eax
je 0x51dd04
xor ebx, ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x51dd06
xor eax, eax
mov dword [ebp + 0x31], eax
mov eax, dword [ebp + 0x21]
movzx ecx, word [eax + 2]
call fcn.0051c898
mov ebx, eax
test ebx, ebx
je 0x51dd31
lea edx, [esp + 0x2c]
mov ecx, ebx
call fcn.0051ec64
test eax, eax
je 0x51dd31
mov ebx, dword [ebx + 2]
test ebx, ebx
jne 0x51dd1b
mov eax, dword [ebp + 0x31]
mov ebx, dword [eax]
test ebx, ebx
jne 0x51e2da
push 0x74f4a0
mov ecx, ebp
call fcn.004f0a94
jmp 0x51e2da
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 0x51ddb9
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x38]
mov edx, str.Password
mov ecx, eax
call fcn.00500754
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 0x51ddab
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 0x51ddb9
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 0x51de47
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 0x51de12
lea eax, [esi + esi]
add eax, eax
mov eax, dword [eax + esi*8 + 0x690620]
test eax, eax
je 0x51de12
cmp dword [eax], 0x22
je 0x51e3ab
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 0x51de57
lea eax, [esi + esi]
add eax, eax
mov eax, dword [eax + esi*8 + 0x690620]
test eax, eax
je 0x51de57
cmp dword [eax], 0x22
je 0x51e37c
jmp 0x51de57
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 0x51e4df
mov eax, dword [esp + 4]
test eax, eax
je 0x51de9a
movsx eax, word [ebx + 0x4c]
test eax, eax
jg 0x51de78
mov eax, 1
mov ebx, 0x800
cmp eax, 0x800
mov ecx, eax
jl 0x51de88
mov ecx, ebx
mov eax, dword [ebp + 0x79]
cmp eax, 0xa
je 0x51e3d3
mov word [ebp + 0x5b], cx
jmp 0x51dea8
mov ecx, 0xa
mov eax, 0xa
mov word [ebp + 0x5b], ax
inc ecx
call fcn.004dbd30
mov dword [ebp + 0x31], eax
mov eax, dword [ebp + 0x75]
cmp eax, 5
je 0x51e4bd
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0xa]
cmp eax, 0x4e
je 0x51dece
cmp eax, 0x4d
jne 0x51dede
mov al, byte [ebp + 0x84]
and al, 0xbf
mov byte [ebp + 0x84], al
jmp 0x51df07
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.0051e568
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 0x51df35
mov word [ebp + 0x5d], bx
jmp 0x51df63
xor edx, edx
mov dl, byte [ebp + 9]
and edx, 8
test edx, 0xfffffff8
je 0x51df5f
test ebx, ebx
jne 0x51df59
mov ebx, 1
mov word [ebp + 0x5d], bx
mov ebx, 1
jmp 0x51df63
mov word [ebp + 0x5d], bx
jmp 0x51df63
mov word [ebp + 0x5d], bx
xor esi, esi
mov dword [esp + 4], esi
cmp ebx, 1
jg 0x51dfa4
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x51dfa4
mov edx, dword [esp]
test edx, edx
je 0x51df90
xor eax, eax
mov al, byte [ebp + 9]
and eax, 8
shr eax, 3
mov dword [esp], eax
jmp 0x51e0f4
xor edx, edx
mov dl, byte [ebp + 9]
and edx, 8
shr edx, 3
mov dword [esp], edx
je 0x51e0f4
mov ecx, dword [ebp + 0x41]
test ecx, ecx
je 0x51e4b2
mov esi, dword [ecx + 0x4e]
mov dword [esp + 4], esi
test ebx, ebx
jle 0x51e497
test ecx, ecx
je 0x51dfc9
push 1
call fcn.0051d8b8
mov ecx, 0x56
call fcn.004dbd30
mov esi, eax
test esi, esi
je 0x51dff3
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.004ff2a8
jmp 0x51dff5
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.004dbf10
test eax, eax
je 0x51e01a
mov esi, ebx
test ebx, ebx
je 0x51e01c
dec esi
jne 0x51e015
jmp 0x51e01c
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 0x51e0aa
cmp ebx, 6
jl 0x51e08b
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 0x51e050
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 0x51e096
mov edi, dword [ebp + 0x31]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x51e0bf
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x51e0b7
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 0x51e239
mov eax, dword [esp + 4]
test eax, eax
je 0x51e429
mov eax, dword [ebp + 0x21]
movzx ecx, word [eax + 8]
test ecx, ecx
je 0x51e15f
call fcn.0051c898
mov ebx, eax
test ebx, ebx
je 0x51e421
add dword [esp + 4], 0x2c
mov esi, dword [esp + 4]
mov ecx, 0x12
call fcn.004dbd30
test eax, eax
je 0x51e14b
movzx edi, word [ebx]
mov dword [eax], 0x634444
mov word [eax + 0xc], di
jmp 0x51e14d
xor eax, eax
push eax
mov ecx, esi
call fcn.004e7518
mov ebx, dword [ebx + 2]
test ebx, ebx
jne 0x51e12e
mov eax, dword [ebp + 0x21]
movzx eax, word [eax + 0x3c]
test eax, eax
je 0x51e172
push eax
push ebp
mov ecx, dword [esp + 0x10]
call fcn.0055e2d4
mov eax, dword [esp + 8]
mov ebx, dword [eax + 0x97]
test ebx, ebx
je 0x51e3ed
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 0x51e1ab
xor eax, eax
mov al, byte [ebp + 0x85]
and eax, 2
shr eax, 1
jmp 0x51e246
movzx eax, word [ebx + 0x36]
test eax, eax
jne 0x51e1c5
xor eax, eax
mov al, byte [ebp + 0x85]
and eax, 2
shr eax, 1
jmp 0x51e246
movzx eax, word [ebx + 0x34]
test eax, eax
jne 0x51e1dc
xor eax, eax
mov al, byte [ebp + 0x85]
and eax, 2
shr eax, 1
jmp 0x51e246
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 0x51e22a
xor eax, eax
mov al, byte [ebp + 0x85]
and eax, 2
shr eax, 1
jne 0x51e246
mov ebx, dword [ebp + 0x21]
movzx esi, word [ebx + 4]
test esi, esi
jne 0x51e246
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 0x51e246
xor eax, eax
mov al, byte [ebp + 0x85]
and eax, 2
shr eax, 1
jmp 0x51e246
xor eax, eax
mov al, byte [ebp + 0x85]
and eax, 2
shr eax, 1
mov ebx, dword [ebp + 0x75]
test ebx, ebx
jne 0x51e254
mov dword [ebp + 0x75], 1
test eax, eax
je 0x51e266
mov al, byte [ebp + 0x83]
or al, 2
mov byte [ebp + 0x83], al
mov eax, dword [ebp + 0x79]
cmp eax, 3
je 0x51e458
cmp eax, 4
je 0x51e458
cmp eax, 5
je 0x51e458
mov eax, dword [esp + 0x4c]
mov ebx, dword [eax + 0xa]
cmp ebx, 0x4e
je 0x51e2da
movzx edx, word [0x669bda]
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + 0x59]
cmp ebx, 0xfffffff3
je 0x51e431
mov eax, dword [ebp + 0x21]
movzx ecx, word [eax + 0x24]
test ecx, ecx
je 0x51e2c7
mov eax, dword [esp + 0x4c]
push eax
mov ebx, dword [esp + 0x1c]
push ebx
push ebp
call fcn.0052121c
mov dword [ebp + 0x49], eax
jmp 0x51e2da
mov eax, dword [esp + 0x4c]
push eax
mov ecx, edx
mov edx, dword [esp + 0x1c]
call fcn.005211e0
mov dword [ebp + 0x49], eax
xor eax, eax
mov al, byte [ebp + 0x84]
and eax, 4
test eax, 0xfffffffc
jne 0x51e33d
mov eax, dword [ebp + 0x21]
movzx ebx, word [eax + 0x40]
test ebx, ebx
je 0x51e33d
call fcn.0051a4b8
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.0051b0d4
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.0051a4f8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x51e358
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [esp + 0x14]
push edx
mov ecx, dword [esp + 0x1c]
call fcn.0055f8d8
add esp, 0x38
pop ebx
pop ebp
pop esi
pop edi
ret 0xc
test ecx, ecx
je 0x51e36d
push 1
call fcn.0051d870
mov dword [ebp + 0x55], 0
mov ebx, dword [ebp + 0x21]
jmp 0x51dc89
mov eax, dword [eax + 8]
mov esi, dword [eax]
cmp dword [esi], 2
jne 0x51e38d
mov eax, 1
jmp 0x51e38f
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 0x51de57
mov eax, dword [eax + 8]
mov esi, dword [eax]
cmp dword [esi], 2
jne 0x51e3bc
mov eax, 1
jmp 0x51e3be
xor eax, eax
mov edx, dword [esp]
and edx, 0xfffffffd
and eax, 1
add eax, eax
or edx, eax
mov dword [esp], edx
jmp 0x51de12
mov eax, 5
cmp ecx, 5
mov ebx, ecx
jg 0x51e3e1
mov ebx, eax
movsx ecx, bx
mov word [ebp + 0x5b], cx
jmp 0x51dea8
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 0x51e184
mov eax, dword [esp + 8]
mov dword [eax + 0x97], ebp
jmp 0x51e184
mov eax, dword [ebp + 0x21]
jmp 0x51e15f
mov eax, dword [ebp + 0x21]
jmp 0x51e15f
mov eax, dword [ebp + 0x21]
movzx ecx, word [eax + 0x26]
test ecx, ecx
je 0x51e2aa
mov eax, dword [esp + 0x4c]
push eax
mov ebx, dword [esp + 0x1c]
push ebx
push ebp
call fcn.0052121c
mov dword [ebp + 0x49], eax
jmp 0x51e2da
push ebp
mov ecx, dword [ebp + 0x2d]
call fcn.005770ac
mov ebx, eax
test ebx, ebx
je 0x51e284
mov ecx, 0x12
call fcn.004dbf10
mov esi, eax
test esi, esi
je 0x51e48d
push dword [ebp + 0x79]
mov ecx, esi
call fcn.004ff2a8
mov dword [esi + 0xa], ebx
mov dword [esi + 0xe], ebx
jmp 0x51e48f
xor esi, esi
mov dword [ebp + 0x3d], esi
jmp 0x51e284
mov eax, dword [eax + 0x7a]
cmp eax, 2
je 0x51e4a8
mov eax, 1
mov word [ebp + 0x5d], ax
mov ebx, 1
jmp 0x51dfbe
xor esi, esi
mov dword [esp + 4], esi
jmp 0x51dfb6
xor eax, eax
mov al, byte [ebp + 0x85]
and eax, 2
test eax, 0xfffffffe
jne 0x51debd
mov dword [ebp + 0x75], 1
jmp 0x51debd
call fcn.0051a4b8
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.0051af70
mov edi, dword [ebp + 0x31]
test edi, edi
je 0x51e54d
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x51e51b
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x51e513
movsx eax, ax
test eax, eax
jle 0x51e542
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.0051a4f8
jmp 0x51debd
mov eax, 1
mov word [ebp + 0x5b], ax
jmp 0x51e526
mov ecx, 1
call fcn.004dbd30
mov edi, eax
mov dword [ebp + 0x31], edi
jmp 0x51e509
mov ebx, 1
jmp 0x51db67