Function at 0x774137bd
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x7741c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x2c]
xor eax, eax
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], eax
push esi
mov ecx, dword [edx + 4]
push edi
mov esi, dword [ebx + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], ecx
mov ecx, eax
mov dword [ebp - 0x28], ebx
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x77413810
mov esi, dword [esi + 0x10]
mov edx, dword [ebp - 0x14]
cmp dword [esi], edx
mov edx, dword [ebp + 0x2c]
je 0x77413955
inc ecx
add esi, 4
cmp ecx, edi
jb 0x774137fa
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x77413ea4
mov eax, dword [ebx]
movsx ecx, word [ebp + 0x28]
push ecx
push edx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x7741d0e8]
mov ecx, ebx
call esi
mov edi, dword [ebp + 0xc]
test dword [edi + 8], eax
je 0x77413ea4
cmp dword [edi + 0xc], 3
jne 0x7741396e
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x77413ea4
test byte [eax + 0xa0], 1
je 0x77413ea4
movzx ecx, word [edi + 0x10]
test cl, 2
je 0x77413ea4
mov edx, dword [ebp + 8]
cmp edx, dword [ebx + 0x1d8]
je 0x77413ea4
and ecx, 4
je 0x77413891
cmp edx, dword [ebx + 0x18]
je 0x77413891
cmp edx, dword [ebx + 0x1c]
jne 0x77413ea4
mov esi, dword [ebx + 0xc]
xor eax, eax
test cx, cx
setne al
lea eax, [eax*4 + 0xa]
mov ecx, eax
test esi, esi
je 0x774138b2
test byte [esi + 0x58], 1
je 0x774138b2
or ecx, 0x20
mov eax, dword [ebp + 0x38]
cmp byte [eax], 0
je 0x774138bd
or ecx, 0x40
movsx eax, word [edi + 6]
push ebx
push dword [ebx + 0x1c]
movsx esi, word [ebp + 0x28]
add eax, edx
push eax
push dword [ebx + 0x1c4]
lea eax, [ebx + 0x248]
push dword [ebx + 0x1c8]
push ecx
push eax
lea eax, [ebx + 0xf0]
push eax
lea eax, [ebx + 0x24]
push eax
push ecx
mov ecx, dword [ebx + 0x1bc]
push esi
push dword [ebp + 0x2c]
call fcn.7740ffca
mov eax, dword [ebp + 0x38]
mov byte [eax], 1
mov eax, dword [ebx + 0x1bc]
test byte [eax + 0x44], 1
je 0x77413ea4
mov eax, dword [ebx + 4]
test eax, eax
je 0x77413ea4
mov edx, dword [eax + 0x30]
test edx, edx
je 0x77413ea4
xor ecx, ecx
cmp dword [eax + 0x34], ecx
je 0x77413ea4
mov eax, dword [ebx + 0x1c4]
mov al, byte [esi + eax]
mov byte [esi + edx], al
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 0x1c8]
mov ecx, dword [eax + 0x34]
mov eax, dword [edx + esi*4]
mov dword [ecx + esi*4], eax
jmp 0x77413ea4
mov eax, dword [ebx + 0x244]
imul ecx, ecx, 0xc
mov esi, dword [ecx + eax + 4]
mov eax, dword [ecx + eax + 8]
mov dword [ebp - 0x20], esi
jmp 0x77413813
cmp dword [edi + 0xc], 2
jne 0x77413bd0
mov eax, dword [ebp + 0x24]
lea ecx, [ebp - 8]
push ecx
push 0x58
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0x40]
call dword [0x7741d0e8]
call dword [esi + 0x40]
test eax, eax
js 0x77413ea4
movzx eax, word [edi + 4]
mov esi, dword [ebp + 0x10]
mov ecx, esi
push eax
call fcn.77407a05
add eax, dword [ebp + 0x14]
movsx edx, word [edi + 6]
add edx, eax
cmp dword [ebp + 0x30], 0
mov dword [ebp - 0x1c], edx
je 0x774139fe
mov eax, dword [ebp - 8]
xor ecx, ecx
mov word [eax + 0x4a], cx
mov eax, dword [ebp - 8]
mov byte [eax + 0x4e], cl
mov eax, dword [ebp - 8]
mov byte [eax + 0x4f], cl
mov eax, dword [ebp - 8]
mov cx, word [edi + 6]
mov word [eax + 0x4c], cx
mov ecx, dword [ebp - 8]
imul eax, edx, 0x2710
cdq
add eax, dword [ebp + 0x1c]
mov dword [ecx + 8], eax
adc edx, dword [ebp + 0x20]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0x18]
mov dword [eax + 0x14], 0x41
jmp 0x77413a7a
movzx ecx, word [esi + 2]
test cx, cx
je 0x77413a23
mov al, byte [esi]
mov byte [ebp - 0xd], al
test al, al
je 0x77413a23
movzx eax, word [edi + 4]
xor edx, edx
div ecx
movzx ecx, byte [ebp - 0xd]
cdq
idiv ecx
mov ecx, eax
jmp 0x77413a25
xor ecx, ecx
mov eax, dword [ebp - 8]
mov word [eax + 0x4a], cx
mov ecx, esi
movzx eax, word [edi + 4]
push eax
call fcn.7741275f
mov ecx, dword [ebp - 8]
xor edx, edx
mov byte [ecx + 0x4e], al
movzx eax, word [esi + 2]
test ax, ax
je 0x77413a51
mov ecx, eax
movzx eax, word [edi + 4]
div ecx
mov eax, dword [ebp - 8]
mov byte [eax + 0x4f], dl
mov eax, dword [ebp - 8]
mov cx, word [edi + 6]
mov edx, dword [ebp + 0x18]
mov word [eax + 0x4c], cx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, edx
mov dword [eax + 0x10], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0x14], 2
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 0x14]
mov dword [eax + 0x40], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 0x10]
mov dword [eax + 0x38], ecx
mov eax, dword [ebp - 8]
mov cx, word [edi + 0x1c]
mov word [eax + 0x48], cx
mov eax, dword [ebp - 8]
mov cl, byte [edi + 0x21]
mov byte [eax + 0x53], cl
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x28], 5
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 0x14]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 8]
mov cx, word [edi + 0x18]
mov word [eax + 0x44], cx
mov eax, dword [ebp - 8]
mov cx, word [edi + 0x1a]
mov word [eax + 0x46], cx
mov eax, dword [ebp - 8]
mov cl, byte [edi + 0x1e]
mov byte [eax + 0x50], cl
mov eax, dword [ebp - 8]
mov cl, byte [edi + 0x1f]
mov byte [eax + 0x51], cl
mov eax, dword [ebp - 8]
mov cl, byte [edi + 0x20]
mov byte [eax + 0x52], cl
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 0x34c]
mov dword [eax + 0x30], ecx
mov eax, dword [ebp - 8]
mov cx, word [edi + 0x22]
mov word [eax + 0x54], cx
mov eax, dword [ebp - 8]
mov cx, word [edi + 0x24]
mov word [eax + 0x56], cx
mov eax, dword [ebp - 8]
or dword [eax + 0x14], 0x80
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x77413b64
mov edi, dword [ebp + 0x14]
add edi, edx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x10]
lea esi, [edi + eax]
mov eax, dword [edx + 0x38]
add eax, ecx
cmp eax, esi
jl 0x77413b42
mov dword [edx + 0x3c], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], esi
jmp 0x77413b64
sub ecx, edi
xor eax, eax
sub ecx, dword [ebp + 0x34]
add dword [edx + 0x40], ecx
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x40], eax
jge 0x77413b5a
mov dword [ecx + 0x40], eax
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], esi
mov eax, dword [ebp - 8]
mov byte [eax + 0x51], 1
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0x18]
push ecx
push 0x77401bb4
push eax
mov esi, dword [eax]
mov ecx, dword [esi]
call dword [0x7741d0e8]
call dword [esi]
test eax, eax
js 0x77413baa
mov eax, dword [ebp - 0x18]
push dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x7741d0e8]
call esi
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x7741d0e8]
call esi
mov ebx, dword [ebp + 0x24]
push dword [ebp - 8]
push ebx
mov eax, dword [ebx]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x7741d0e8]
call esi
test eax, eax
jns 0x77413ea4
push dword [ebp - 8]
jmp 0x77413e94
cmp dword [edi + 0xc], 1
jne 0x77413ea4
mov al, byte [edi + 0x1b]
mov byte [ebp - 0xd], al
test al, 0x10
je 0x77413bf2
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov al, byte [eax + 0x9c]
mov byte [ebp - 0xd], al
mov byte [ebp - 0x14], al
xor eax, eax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xe]
mov byte [ebp - 0xe], 0
push eax
push dword [ebp + 0x24]
lea eax, [ebx + 0x1e0]
push eax
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x7741d0e8]
mov ecx, ebx
call esi
mov ecx, dword [ebp + 0x2c]
push eax
push dword [ebp - 0x14]
lea eax, [ebx + 0x24]
push eax
push edi
call fcn.7740f48e
test eax, eax
js 0x77413ea4
mov eax, dword [ebp + 0x24]
lea ecx, [ebp - 0xc]
push ecx
push 0x50
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0x40]
call dword [0x7741d0e8]
call dword [esi + 0x40]
test eax, eax
js 0x77413ea4
mov cl, byte [edi + 0x20]
mov eax, dword [ebp - 0xc]
or cl, 1
mov esi, dword [ebp + 0x10]
mov byte [eax + 0x45], cl
mov ecx, esi
movzx eax, word [edi + 4]
push eax
call fcn.77407a05
add eax, dword [ebp + 0x14]
movsx edx, word [edi + 6]
add edx, eax
cmp dword [ebp + 0x30], 0
mov dword [ebp - 0x24], edx
je 0x77413ccd
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov word [eax + 0x3e], cx
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x42], cl
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x43], cl
mov eax, dword [ebp - 0xc]
mov cx, word [edi + 6]
mov word [eax + 0x40], cx
mov ecx, dword [ebp - 0xc]
imul eax, edx, 0x2710
cdq
add eax, dword [ebp + 0x1c]
mov dword [ecx + 8], eax
adc edx, dword [ebp + 0x20]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0x41
jmp 0x77413d4d
movzx ecx, word [esi + 2]
test cx, cx
je 0x77413cf2
mov al, byte [esi]
mov byte [ebp - 0xf], al
test al, al
je 0x77413cf2
movzx eax, word [edi + 4]
xor edx, edx
div ecx
movzx ecx, byte [ebp - 0xf]
cdq
idiv ecx
mov ecx, eax
jmp 0x77413cf4
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov word [eax + 0x3e], cx
mov ecx, esi
movzx eax, word [edi + 4]
push eax
call fcn.7741275f
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x42], al
movzx eax, word [esi + 2]
test ax, ax
je 0x77413d23
mov ecx, eax
xor edx, edx
movzx eax, word [edi + 4]
div ecx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
mov byte [eax + 0x43], cl
mov eax, dword [ebp - 0xc]
mov cx, word [edi + 6]
mov word [eax + 0x40], cx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp + 0x18]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 2
mov cl, byte [edi + 0x17]
test cl, cl
je 0x77413d5f
mov esi, dword [ebp - 0xc]
call fcn.774132c3
add dword [esi + 0x10], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi + 0x10]
mov dword [eax + 0x38], ecx
mov cl, byte [edi + 0x18]
test cl, cl
je 0x77413d7a
mov esi, dword [ebp - 0xc]
call fcn.774132c3
add dword [esi + 0x38], eax
mov eax, dword [ebp - 0xc]
mov cl, byte [edi + 0x16]
mov byte [eax + 0x44], cl
cmp byte [edi + 0x19], 0
je 0x77413da5
mov bl, byte [edi + 0x19]
call dword [sym.imp.msvcrt.dll_rand]
movzx ecx, bl
cdq
idiv ecx
mov eax, dword [ebp - 0xc]
shr bl, 1
sub dl, bl
mov ebx, dword [ebp - 0x28]
add byte [eax + 0x44], dl
mov ecx, dword [ebp - 0xc]
xor edx, edx
inc edx
cmp byte [ecx + 0x44], dl
jae 0x77413db6
mov byte [ecx + 0x44], dl
mov ecx, dword [ebp - 0xc]
cmp byte [ecx + 0x44], 0x7f
jbe 0x77413dc3
mov byte [ecx + 0x44], 0x7f
mov ecx, dword [ebp - 0xc]
mov ax, word [edi + 0x14]
mov word [ecx + 0x3c], ax
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xe]
mov byte [ecx + 0x4b], al
mov eax, dword [ebp - 0xc]
mov cl, byte [ebp - 0xd]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x49], cl
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebx + 0x14]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp + 0x2c]
mov cl, byte [eax + 9]
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x4a], cl
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebx + 0x34c]
mov dword [eax + 0x30], ecx
mov eax, dword [ebp - 0xc]
mov cl, byte [edi + 0x17]
mov byte [eax + 0x46], cl
mov eax, dword [ebp - 0xc]
mov cl, byte [edi + 0x18]
mov byte [eax + 0x47], cl
mov eax, dword [ebp - 0xc]
mov cl, byte [edi + 0x19]
mov byte [eax + 0x48], cl
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x18]
mov byte [ecx + 0x4c], al
lea ecx, [ebp - 0x14]
mov eax, dword [ebx + 0x10]
push ecx
push 0x77401bb4
push eax
mov esi, dword [eax]
mov ecx, dword [esi]
call dword [0x7741d0e8]
call dword [esi]
test eax, eax
js 0x77413e77
mov eax, dword [ebp - 0x14]
push dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x7741d0e8]
call esi
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x7741d0e8]
call esi
mov ebx, dword [ebp + 0x24]
push dword [ebp - 0xc]
push ebx
mov eax, dword [ebx]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x7741d0e8]
call esi
test eax, eax
jns 0x77413ea4
push dword [ebp - 0xc]
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 0x44]
mov ecx, esi
call dword [0x7741d0e8]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.7741ad00
mov esp, ebp
pop ebp
ret 0x34