Function at 0x7741326b
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov edx, dword [ebp + 0x2c]
xor eax, eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
push esi
mov ecx, dword [edx + 4]
push edi
mov esi, dword [ebx + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [ebp - 0x24], ebx
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x774132b4
mov esi, dword [esi + 0x10]
mov edx, dword [ebp - 0x18]
cmp dword [esi], edx
mov edx, dword [ebp + 0x2c]
je 0x774133f9
inc ecx
add esi, 4
cmp ecx, edi
jb 0x7741329e
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x77413948
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 0x77413948
cmp dword [edi + 0xc], 3
jne 0x77413412
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x77413948
test byte [eax + 0xa0], 1
je 0x77413948
movzx ecx, word [edi + 0x10]
test cl, 2
je 0x77413948
mov edx, dword [ebp + 8]
cmp edx, dword [ebx + 0x1d8]
je 0x77413948
and ecx, 4
je 0x77413335
cmp edx, dword [ebx + 0x18]
je 0x77413335
cmp edx, dword [ebx + 0x1c]
jne 0x77413948
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 0x77413356
test byte [esi + 0x58], 1
je 0x77413356
or ecx, 0x20
mov eax, dword [ebp + 0x38]
cmp byte [eax], 0
je 0x77413361
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.7740fc83
mov eax, dword [ebp + 0x38]
mov byte [eax], 1
mov eax, dword [ebx + 0x1bc]
test byte [eax + 0x44], 1
je 0x77413948
mov eax, dword [ebx + 4]
test eax, eax
je 0x77413948
mov edx, dword [eax + 0x30]
test edx, edx
je 0x77413948
xor ecx, ecx
cmp dword [eax + 0x34], ecx
je 0x77413948
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 0x77413948
mov eax, dword [ebx + 0x244]
imul ecx, ecx, 0xc
mov esi, dword [ecx + eax + 4]
mov eax, dword [ecx + eax + 8]
mov dword [ebp - 0x14], esi
jmp 0x774132b7
cmp dword [edi + 0xc], 2
jne 0x77413674
mov eax, dword [ebp + 0x24]
lea ecx, [ebp - 0xc]
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 0x77413948
movzx eax, word [edi + 4]
mov esi, dword [ebp + 0x10]
mov ecx, esi
push eax
call fcn.77407845
add eax, dword [ebp + 0x14]
movsx edx, word [edi + 6]
add edx, eax
cmp dword [ebp + 0x30], 0
mov dword [ebp - 0x1c], edx
je 0x774134a2
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov word [eax + 0x4a], cx
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x4e], cl
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x4f], cl
mov eax, dword [ebp - 0xc]
mov cx, word [edi + 6]
mov word [eax + 0x4c], 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 edx, dword [ebp + 0x18]
mov dword [eax + 0x14], 0x41
jmp 0x7741351e
movzx ecx, word [esi + 2]
test cx, cx
je 0x774134c7
mov al, byte [esi]
mov byte [ebp - 2], al
test al, al
je 0x774134c7
movzx eax, word [edi + 4]
xor edx, edx
div ecx
movzx ecx, byte [ebp - 2]
cdq
idiv ecx
mov ecx, eax
jmp 0x774134c9
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov word [eax + 0x4a], cx
mov ecx, esi
movzx eax, word [edi + 4]
push eax
call fcn.77412245
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov byte [ecx + 0x4e], al
movzx eax, word [esi + 2]
test ax, ax
je 0x774134f5
mov ecx, eax
movzx eax, word [edi + 4]
div ecx
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x4f], dl
mov eax, dword [ebp - 0xc]
mov cx, word [edi + 6]
mov edx, dword [ebp + 0x18]
mov word [eax + 0x4c], cx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
add ecx, edx
mov dword [eax + 0x10], ecx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 2
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi + 0x14]
mov dword [eax + 0x40], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi + 0x10]
mov dword [eax + 0x38], ecx
mov eax, dword [ebp - 0xc]
mov cx, word [edi + 0x1c]
mov word [eax + 0x48], cx
mov eax, dword [ebp - 0xc]
mov cl, byte [edi + 0x21]
mov byte [eax + 0x53], cl
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x28], 5
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebx + 0x14]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 0xc]
mov cx, word [edi + 0x18]
mov word [eax + 0x44], cx
mov eax, dword [ebp - 0xc]
mov cx, word [edi + 0x1a]
mov word [eax + 0x46], cx
mov eax, dword [ebp - 0xc]
mov cl, byte [edi + 0x1e]
mov byte [eax + 0x50], cl
mov eax, dword [ebp - 0xc]
mov cl, byte [edi + 0x1f]
mov byte [eax + 0x51], cl
mov eax, dword [ebp - 0xc]
mov cl, byte [edi + 0x20]
mov byte [eax + 0x52], cl
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebx + 0x34c]
mov dword [eax + 0x30], ecx
mov eax, dword [ebp - 0xc]
mov cx, word [edi + 0x22]
mov word [eax + 0x54], cx
mov eax, dword [ebp - 0xc]
mov cx, word [edi + 0x24]
mov word [eax + 0x56], cx
mov eax, dword [ebp - 0xc]
or dword [eax + 0x14], 0x80
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x77413608
mov edi, dword [ebp + 0x14]
add edi, edx
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 0x10]
lea esi, [edi + eax]
mov eax, dword [edx + 0x38]
add eax, ecx
cmp eax, esi
jl 0x774135e6
mov dword [edx + 0x3c], ecx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], esi
jmp 0x77413608
sub ecx, edi
xor eax, eax
sub ecx, dword [ebp + 0x34]
add dword [edx + 0x40], ecx
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x40], eax
jge 0x774135fe
mov dword [ecx + 0x40], eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], esi
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x51], 1
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 8]
push ecx
push 0x77401b94
push eax
mov esi, dword [eax]
mov ecx, dword [esi]
call dword [0x7741d0e8]
call dword [esi]
test eax, eax
js 0x7741364e
mov eax, dword [ebp - 8]
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 - 8]
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 0x77413948
push dword [ebp - 0xc]
jmp 0x77413938
cmp dword [edi + 0xc], 1
jne 0x77413948
mov al, byte [edi + 0x1b]
mov byte [ebp - 2], al
test al, 0x10
je 0x77413696
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov al, byte [eax + 0x9c]
mov byte [ebp - 2], al
mov byte [ebp - 0x18], al
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 1]
mov byte [ebp - 1], 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 - 0x18]
lea eax, [ebx + 0x24]
push eax
push edi
call fcn.7740f160
test eax, eax
js 0x77413948
mov eax, dword [ebp + 0x24]
lea ecx, [ebp - 0x10]
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 0x77413948
mov cl, byte [edi + 0x20]
mov eax, dword [ebp - 0x10]
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.77407845
add eax, dword [ebp + 0x14]
movsx edx, word [edi + 6]
add edx, eax
cmp dword [ebp + 0x30], 0
mov dword [ebp - 0x20], edx
je 0x77413771
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov word [eax + 0x3e], cx
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x42], cl
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x43], cl
mov eax, dword [ebp - 0x10]
mov cx, word [edi + 6]
mov word [eax + 0x40], cx
mov ecx, dword [ebp - 0x10]
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 - 0x10]
mov dword [eax + 0x14], 0x41
jmp 0x774137f1
movzx ecx, word [esi + 2]
test cx, cx
je 0x77413796
mov al, byte [esi]
mov byte [ebp - 3], al
test al, al
je 0x77413796
movzx eax, word [edi + 4]
xor edx, edx
div ecx
movzx ecx, byte [ebp - 3]
cdq
idiv ecx
mov ecx, eax
jmp 0x77413798
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + 0x3e], cx
mov ecx, esi
movzx eax, word [edi + 4]
push eax
call fcn.77412245
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x42], al
movzx eax, word [esi + 2]
test ax, ax
je 0x774137c7
mov ecx, eax
xor edx, edx
movzx eax, word [edi + 4]
div ecx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov byte [eax + 0x43], cl
mov eax, dword [ebp - 0x10]
mov cx, word [edi + 6]
mov word [eax + 0x40], cx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp + 0x18]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 2
mov cl, byte [edi + 0x17]
test cl, cl
je 0x77413803
mov esi, dword [ebp - 0x10]
call fcn.77412d73
add dword [esi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0x10]
mov dword [eax + 0x38], ecx
mov cl, byte [edi + 0x18]
test cl, cl
je 0x7741381e
mov esi, dword [ebp - 0x10]
call fcn.77412d73
add dword [esi + 0x38], eax
mov eax, dword [ebp - 0x10]
mov cl, byte [edi + 0x16]
mov byte [eax + 0x44], cl
cmp byte [edi + 0x19], 0
je 0x77413849
mov bl, byte [edi + 0x19]
call dword [sym.imp.msvcrt.dll_rand]
movzx ecx, bl
cdq
idiv ecx
mov eax, dword [ebp - 0x10]
shr bl, 1
sub dl, bl
mov ebx, dword [ebp - 0x24]
add byte [eax + 0x44], dl
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
cmp byte [ecx + 0x44], dl
jae 0x7741385a
mov byte [ecx + 0x44], dl
mov ecx, dword [ebp - 0x10]
cmp byte [ecx + 0x44], 0x7f
jbe 0x77413867
mov byte [ecx + 0x44], 0x7f
mov ecx, dword [ebp - 0x10]
mov ax, word [edi + 0x14]
mov word [ecx + 0x3c], ax
mov ecx, dword [ebp - 0x10]
mov al, byte [ebp - 1]
mov byte [ecx + 0x4b], al
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp - 2]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x49], cl
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp + 0x2c]
mov cl, byte [eax + 9]
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x4a], cl
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x34c]
mov dword [eax + 0x30], ecx
mov eax, dword [ebp - 0x10]
mov cl, byte [edi + 0x17]
mov byte [eax + 0x46], cl
mov eax, dword [ebp - 0x10]
mov cl, byte [edi + 0x18]
mov byte [eax + 0x47], cl
mov eax, dword [ebp - 0x10]
mov cl, byte [edi + 0x19]
mov byte [eax + 0x48], cl
mov ecx, dword [ebp - 0x10]
mov al, byte [ebp - 8]
mov byte [ecx + 0x4c], al
lea ecx, [ebp - 0x18]
mov eax, dword [ebx + 0x10]
push ecx
push 0x77401b94
push eax
mov esi, dword [eax]
mov ecx, dword [esi]
call dword [0x7741d0e8]
call dword [esi]
test eax, eax
js 0x7741391b
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x10]
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 - 0x10]
push ebx
mov eax, dword [ebx]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x7741d0e8]
call esi
test eax, eax
jns 0x77413948
push dword [ebp - 0x10]
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 0x44]
mov ecx, esi
call dword [0x7741d0e8]
call esi
pop edi
pop esi
pop ebx
leave
ret 0x34