Function at 0x1040874
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Execute shellcode via indirect call

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x104db7c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [eax + 4]
movzx edx, byte [ecx]
mov dword [ebp - 0x104], eax
add eax, 8
push ebx
shr edx, 2
xor ebx, ebx
mov dword [ebp - 0x11c], eax
mov eax, dword [eax]
and edx, 0xf
add ecx, 1
cmp ecx, ebx
push esi
push edi
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0xd0], ebx
je 0x10409be
lea edi, [ecx - 1]
cmp edi, section..data
jb 0x1040917
mov eax, dword [0x1017b7c]
mov edx, dword [0x102f094]
imul eax, edx
lea eax, [eax + section..data]
cmp edi, eax
jae 0x1040917
mov esi, dword [0x102f094]
mov eax, edi
sub eax, section..data
xor edx, edx
div esi
mov esi, dword [0x102f094]
imul esi, eax
lea esi, [esi + section..data]
cmp esi, ebx
jne 0x1040924
mov esi, dword [0x104e31c]
add esi, 0xffffffff
not esi
and esi, edi
mov edx, dword [0x100003c]
sub ecx, esi
lea eax, [ecx - 0x40]
xor ecx, ecx
cmp eax, ebx
setl cl
mov dword [ebp - 0x98], esi
mov dword [ebp - 0xd0], esi
sub ecx, 1
and ecx, eax
mov eax, dword [edx + 0x1000050]
sub eax, 0x40
mov dword [ebp - 0x9c], ecx
lea ecx, [eax + 1]
xor eax, eax
cmp ecx, ebx
mov dword [ebp - 0xa4], ecx
je 0x1040990
mov edx, dword [0x1050170]
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov edi, edx
shr edi, 0x10
shl eax, 0x10
or eax, edi
shr dword [ebp - 0xa4], 0x10
jne 0x104096b
mov dword [0x1050170], edx
xor edx, edx
div ecx
mov eax, dword [ebp - 0x9c]
lea eax, [esi + eax + 3]
and eax, 0xfffffffc
lea ecx, [edx + 0x1000003]
and ecx, 0xfffffffc
sub ecx, eax
mov edx, 0x10
mov esi, dword [ecx + eax]
mov dword [eax], esi
add eax, 4
sub edx, 1
jne 0x10409b1
mov eax, dword [0x103262c]
mov edi, dword [0x1041fe0]
xor esi, esi
sub eax, 1
cmp dword [ebp - 0xd8], 0x1000000
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xc4], eax
jb 0x1040aca
mov ecx, dword [0x100003c]
mov ecx, dword [ecx + 0x1000050]
add ecx, 0x1000000
cmp dword [ebp - 0xd8], ecx
jae 0x1040aca
mov ecx, dword [ebp - 0xd8]
sub ecx, 0x1000000
cmp eax, ebx
mov dword [ebp - 0xa4], ecx
jl 0x1040ab3
add eax, esi
cdq
sub eax, edx
sar eax, 1
mov esi, eax
imul esi, esi, 0x2c
add esi, 0x1015608
mov ecx, dword [esi + 0x1c]
and ecx, 0xfffffff
mov edx, ecx
xor edx, edi
cmp dword [ebp - 0xa4], edx
jae 0x1040a5a
mov esi, dword [ebp - 0xc8]
add eax, 0xffffffff
mov dword [ebp - 0xc4], eax
jmp 0x1040a7c
mov edi, dword [esi + 0x20]
and edi, 0x3fff
add edi, edx
cmp dword [ebp - 0xa4], edi
jb 0x1040a84
lea esi, [eax + 1]
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], esi
cmp eax, esi
mov edi, ecx
jge 0x1040a22
jmp 0x1040ab3
mov ecx, 0xb
lea edi, [ebp - 0x150]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x134]
mov esi, dword [ebp - 0xc8]
xor edx, eax
and edx, 0xfffffff
xor eax, edx
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0xc4]
mov edx, dword [0x103262c]
xor ecx, ecx
cmp esi, eax
setle cl
mov eax, ecx
cmp eax, ebx
jne 0x1040b72
mov esi, dword [ebp - 0x98]
cmp esi, ebx
je 0x1040b67
cmp esi, section..data
jb 0x1040b45
mov eax, dword [0x1017b7c]
mov edx, dword [0x102f094]
imul eax, edx
lea eax, [eax + section..data]
cmp esi, eax
jae 0x1040b45
mov ecx, dword [0x102f094]
sub esi, section..data
xor edx, edx
mov eax, esi
div ecx
mov ecx, dword [0x102f094]
imul ecx, eax
lea eax, [ecx + section..data]
cmp eax, ebx
je 0x1040b45
mov ecx, dword [0x102f094]
xor edx, edx
mov eax, esi
div ecx
mov edx, dword [0x1017b7c]
mov dword [eax*4 + 0x104ec10], 0x29
mov eax, dword [ebp - 0xd8]
jmp 0x1041b99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x8000
mov esi, eax
mov eax, dword [ebp - 0x98]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xd8]
jmp 0x1041b99
mov eax, dword [ebp - 0x130]
and eax, 0x3fff
mov dword [ebp - 0xc8], eax
mov ecx, eax
mov eax, dword [ebp - 0x140]
and eax, 0x1f
mov dword [ebp - 0x120], eax
sub eax, 0x14
je 0x1040ba5
sub eax, 1
je 0x1040c7f
sub eax, 9
add ecx, 0x11
cmp dword [ebp - 0x98], ebx
mov dword [ebp - 0xa0], ecx
jne 0x1040d80
mov esi, dword [0x102f094]
lea ecx, [esi + ecx - 1]
mov eax, ecx
xor edx, edx
div esi
sub ecx, edx
mov dword [ebp - 0xb8], ecx
mov ecx, dword [0x102f094]
lea ecx, [ecx]
mov edx, dword [0x1017b7c]
mov eax, dword [0x102f094]
mov ecx, dword [0x1017b7c]
test ecx, ecx
mov dword [ebp - 0xc4], edx
je 0x1040c9d
mov eax, dword [0x1017b7c]
sub eax, 1
lea esi, [eax + 1]
xor edi, edi
xor eax, eax
cmp esi, ebx
mov dword [ebp - 0xa4], esi
je 0x1040c3f
mov ecx, dword [0x1050170]
mov edi, edi
imul ecx, ecx, 0x343fd
add ecx, 0x269ec3
mov edx, ecx
shr edx, 0x10
shl eax, 0x10
or eax, edx
shr dword [ebp - 0xa4], 0x10
jne 0x1040c1a
mov dword [0x1050170], ecx
xor edx, edx
div esi
cmp dword [ebp - 0xc4], ebx
jbe 0x1040c9d
add edi, 1
mov ecx, 0xffffffd6
lea esi, [edx*4 + 0x104ec10]
mov eax, 0x29
lock cmpxchg dword [esi], ecx
cmp eax, 0x29
je 0x1040c87
mov ecx, dword [0x1017b7c]
lea eax, [edx + 1]
xor edx, edx
div ecx
cmp edi, dword [ebp - 0xc4]
jb 0x1040c4b
jmp 0x1040c9d
add ecx, 6
jmp 0x1040ba8
mov eax, dword [0x102f094]
imul eax, edx
lea eax, [eax + section..data]
cmp eax, ebx
jne 0x1040d78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0xb8]
mov dword [ebp - 0x9c], eax
xor esi, esi
push 0x40
push 0x1000
push edi
push ebx
add esi, 1
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
cmp ecx, ebx
jne 0x1040cdd
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x11
jb 0x1040cb1
mov dword [ebp - 0x98], ebx
jmp 0x1040d59
mov edx, dword [0x100003c]
mov eax, dword [edx + 0x1000050]
sub eax, edi
lea esi, [eax + 1]
xor eax, eax
cmp esi, ebx
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0xa4], esi
je 0x1040d2c
mov edx, dword [0x1050170]
nop
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov edi, edx
shr edi, 0x10
shl eax, 0x10
or eax, edi
shr dword [ebp - 0xa4], 0x10
jne 0x1040d07
mov dword [0x1050170], edx
xor edx, edx
div esi
lea eax, [ecx + 3]
mov ecx, dword [ebp - 0xb8]
and eax, 0xfffffffc
lea edx, [edx + 0x1000003]
and edx, 0xfffffffc
shr ecx, 2
je 0x1040d59
sub edx, eax
mov esi, dword [edx + eax]
mov dword [eax], esi
add eax, 4
sub ecx, 1
jne 0x1040d4c
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x98], ebx
je 0x1040bda
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xd0], eax
jmp 0x1040d86
mov ecx, dword [0x102f094]
mov eax, dword [0x102f094]
sub eax, dword [ebp - 0xa0]
mov edi, dword [ebp - 0x134]
and edi, 0xfffffff
lea ecx, [eax + 1]
lea edx, [edi + 0x1000000]
xor eax, eax
cmp ecx, ebx
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xa4], ecx
je 0x1040deb
mov edx, dword [0x1050170]
lea ecx, [ecx]
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov esi, edx
shr esi, 0x10
shl eax, 0x10
or eax, esi
shr dword [ebp - 0xa4], 0x10
jne 0x1040dc6
mov dword [0x1050170], edx
xor edx, edx
div ecx
mov ecx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xc4]
mov byte [ebp - 0x91], 0xa5
add ecx, edx
sub eax, ecx
test byte [ebp - 0x148], 0x30
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xa4], eax
jne 0x10411ad
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x12c]
mov esi, dword [ebp - 0x128]
mov edx, dword [0x10011a4]
and eax, 0xfffffff
mov dword [ebp - 0xb8], eax
and ecx, 0xfffffff
add ecx, 0x1000000
mov eax, 0x1000000
and esi, 0x7f
sub eax, edx
mov dword [ebp - 0x100], edi
mov dword [ebp - 0xfc], edi
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0xcc], eax
jne 0x1040ee5
mov eax, 0x8421085
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
imul eax, eax, 0x7c
sub esi, eax
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xf0]
push edx
lea edx, [ecx + eax]
push edx
push ecx
mov ecx, dword [esi*4 + 0x101db78]
lea eax, [ebp - 0x100]
push eax
mov byte [ebp - 0xf0], bl
mov byte [ebp - 0xef], 1
mov byte [ebp - 0xee], 2
mov byte [ebp - 0xed], 3
mov byte [ebp - 0xec], 4
mov byte [ebp - 0xeb], 5
call ecx
mov edx, dword [ebp - 0x100]
mov eax, dword [ebp - 0xfc]
jmp 0x10411b9
mov ecx, dword [0x100003c]
mov edx, dword [ecx + 0x10000a0]
mov eax, dword [ebp - 0x98]
mov ecx, dword [ecx + 0x10000a4]
sub eax, 0x1000000
mov edi, eax
and edi, 0xfffff000
mov dword [ebp - 0x9c], ecx
mov ecx, eax
sub ecx, edi
mov dword [ebp - 0xa0], edi
mov edi, dword [ebp - 0xb8]
add eax, edi
mov edi, eax
and edi, 0xfffff000
sub eax, edi
add edx, 0x1000000
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x118], edi
lea edi, [edx + eax]
cmp edx, edi
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edi
je 0x1040f6e
mov eax, dword [ebp - 0xa0]
cmp dword [edx], eax
jae 0x1040f68
add edx, dword [edx + 4]
cmp edx, edi
jne 0x1040f5d
mov dword [ebp - 0x10c], edx
xor edi, edi
cmp edx, dword [ebp - 0x110]
je 0x1040fab
mov eax, dword [ebp - 0xa0]
cmp dword [edx], eax
jne 0x1040fab
mov eax, dword [edx + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x9c], eax
je 0x1040fab
movzx eax, word [edx + edi*2 + 8]
and eax, 0xfff
cmp eax, ecx
jae 0x1040fab
add edi, 1
cmp edi, dword [ebp - 0x9c]
jne 0x1040f92
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0xa0], ecx
cmp edx, dword [ebp - 0x110]
je 0x104112c
mov eax, dword [edx]
cmp eax, dword [ebp - 0x118]
ja 0x104112c
lea ebx, [ebx]
mov ecx, dword [edx + 4]
lea eax, [ecx - 8]
shr eax, 1
cmp edi, eax
jne 0x1041005
add edx, ecx
cmp edx, dword [ebp - 0x110]
mov dword [ebp - 0x10c], edx
je 0x104112c
mov ecx, dword [ebp - 0x118]
cmp dword [edx], ecx
ja 0x104112c
xor edi, edi
jmp 0x1040fd3
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x118]
jne 0x1041025
movzx eax, word [edx + edi*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x114]
jae 0x104112c
mov eax, edi
movzx eax, word [edx + eax*2 + 8]
add edi, 1
test eax, 0xf000
mov dword [ebp - 0x108], edi
je 0x1040fb7
and eax, 0xfff
lea edi, [eax + ecx + 0x1000000]
mov eax, 0x8421085
mul esi
mov ecx, esi
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 6
imul ecx, ecx, 0x7c
mov edx, esi
sub edx, ecx
lea eax, [edx*4 + 0x101db78]
mov edx, dword [ebp - 0xa0]
lea ecx, [ebp - 0xf8]
push ecx
push edi
push edx
mov edx, dword [eax]
lea ecx, [ebp - 0x100]
push ecx
mov byte [ebp - 0xf8], bl
mov byte [ebp - 0xf7], 1
mov byte [ebp - 0xf6], 2
mov byte [ebp - 0xf5], 3
mov byte [ebp - 0xf4], 4
mov byte [ebp - 0xf3], 5
mov dword [ebp - 0x9c], eax
call edx
mov eax, dword [edi]
sub eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xe0]
push eax
push ecx
mov ecx, dword [ebp - 0x9c]
lea edx, [ebp - 0x90]
push edx
mov edx, dword [ecx]
lea eax, [ebp - 0x100]
push eax
mov byte [ebp - 0xe0], bl
mov byte [ebp - 0xdf], 1
mov byte [ebp - 0xde], 2
mov byte [ebp - 0xdd], 3
mov byte [ebp - 0xdc], 4
mov byte [ebp - 0xdb], 5
call edx
mov edx, dword [ebp - 0x10c]
add edi, 4
mov dword [ebp - 0xa0], edi
mov edi, dword [ebp - 0x108]
jmp 0x1040fb7
mov eax, 0x8421085
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x98]
shr eax, 6
imul eax, eax, 0x7c
sub esi, eax
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0xe8]
push ecx
mov ecx, dword [ebp - 0xa0]
add edx, eax
mov eax, dword [esi*4 + 0x101db78]
push edx
push ecx
lea edx, [ebp - 0x100]
push edx
mov byte [ebp - 0xe8], bl
mov byte [ebp - 0xe7], 1
mov byte [ebp - 0xe6], 2
mov byte [ebp - 0xe5], 3
mov byte [ebp - 0xe4], 4
mov byte [ebp - 0xe3], 5
call eax
mov edi, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x100]
mov eax, dword [ebp - 0xfc]
jmp 0x10411b9
mov edx, dword [ebp - 0x150]
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x154], eax
mov al, 0x86
mov byte [ebp - 0x74], al
mov byte [ebp - 0x73], al
mov al, 0x78
mov cl, 0x1a
mov byte [ebp - 0x71], al
mov byte [ebp - 0x4d], al
mov al, 0xe
mov dword [ebp - 0xac], edx
mov dword [ebp - 0x158], edx
mov byte [ebp - 0x80], bl
mov byte [ebp - 0x7f], bl
mov byte [ebp - 0x7e], bl
mov byte [ebp - 0x7d], bl
mov byte [ebp - 0x7c], 0x97
mov byte [ebp - 0x7b], 0xee
mov byte [ebp - 0x7a], 0xa4
mov byte [ebp - 0x79], 0xcf
mov byte [ebp - 0x78], bl
mov byte [ebp - 0x77], bl
mov byte [ebp - 0x76], bl
mov byte [ebp - 0x75], bl
mov byte [ebp - 0x72], cl
mov byte [ebp - 0x70], bl
mov byte [ebp - 0x6f], bl
mov byte [ebp - 0x6e], bl
mov byte [ebp - 0x6d], bl
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], bl
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 1
mov byte [ebp - 0x67], cl
mov byte [ebp - 0x66], 0xae
mov byte [ebp - 0x65], 0xa3
mov byte [ebp - 0x64], 0x43
mov byte [ebp - 0x63], 0xf9
mov byte [ebp - 0x62], 0x51
mov byte [ebp - 0x61], 0x73
mov byte [ebp - 0x60], bl
mov byte [ebp - 0x5f], bl
mov byte [ebp - 0x5e], bl
mov byte [ebp - 0x5d], bl
mov byte [ebp - 0x5c], bl
mov byte [ebp - 0x5b], bl
mov byte [ebp - 0x5a], bl
mov byte [ebp - 0x59], bl
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], bl
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0x30
mov byte [ebp - 0x53], 0xb
mov byte [ebp - 0x52], 0x88
mov byte [ebp - 0x51], 0xee
mov byte [ebp - 0x50], 0x67
mov byte [ebp - 0x4f], 0x34
mov byte [ebp - 0x4e], 0xc8
mov byte [ebp - 0x4c], bl
mov byte [ebp - 0x4b], bl
mov byte [ebp - 0x4a], bl
mov byte [ebp - 0x49], bl
mov byte [ebp - 0x48], 0xfc
mov byte [ebp - 0x47], al
mov byte [ebp - 0x46], 0x1b
mov byte [ebp - 0x45], 0x69
mov byte [ebp - 0x44], bl
mov byte [ebp - 0x43], bl
mov byte [ebp - 0x42], bl
mov byte [ebp - 0x41], bl
mov byte [ebp - 0x40], 0xb4
mov byte [ebp - 0x3f], 0x5a
mov byte [ebp - 0x3e], 0xd4
mov byte [ebp - 0x3d], al
mov byte [ebp - 0x3c], bl
mov byte [ebp - 0x3b], bl
mov byte [ebp - 0x3a], bl
mov byte [ebp - 0x39], bl
mov byte [ebp - 0x38], 0x31
mov esi, dword [ebp - 0xc4]
mov al, 0x1c
mov byte [ebp - 0x27], al
mov byte [ebp - 0x25], al
mov al, 0x24
mov cl, 0x2d
mov byte [ebp - 0x13], al
mov byte [ebp - 0x12], al
mov eax, dword [ebp - 0xc8]
mov byte [ebp - 0x35], cl
mov byte [ebp - 0x11], cl
mov ecx, dword [ebp - 0xd0]
and eax, 7
mov byte [ebp - 0x37], 0x33
mov byte [ebp - 0x36], 0xc4
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], bl
mov byte [ebp - 0x2e], bl
mov byte [ebp - 0x2d], bl
mov byte [ebp - 0x2c], bl
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], bl
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0xb9
mov byte [ebp - 0x26], 4
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x23], bl
mov byte [ebp - 0x22], bl
mov byte [ebp - 0x21], bl
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x1f], bl
mov byte [ebp - 0x1e], bl
mov byte [ebp - 0x1d], bl
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0x42
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], 0xd
mov byte [ebp - 0xb], 0xa9
mov byte [ebp - 0xa], 0x4e
mov byte [ebp - 9], 0x28
mov byte [ebp - 8], bl
mov byte [ebp - 7], bl
mov byte [ebp - 6], bl
mov byte [ebp - 5], bl
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0xa0], eax
je 0x1041645
xor edi, edi
cmp eax, ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xb4], edi
jle 0x1041404
mov ecx, 0x38
mov dword [ebp - 0xbc], ecx
lea esp, [esp]
cmp edi, 4
movzx edi, byte [esi]
jge 0x10413d7
add ecx, 0xffffffe0
shl edi, cl
or dword [ebp - 0xcc], edi
jmp 0x10413df
shl edi, cl
or dword [ebp - 0xb8], edi
mov edi, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xbc]
add edi, 1
sub ecx, 8
add esi, 1
cmp edi, eax
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xbc], ecx
jl 0x10413c2
mov ecx, dword [ebp - 0xb0]
mov eax, ecx
sub eax, edx
movzx edx, word [ebp - 0xa6]
mov edi, ecx
mov ecx, edx
ror eax, 0xc
imul ecx, eax
ror edi, 0xd
sub ecx, edi
xor ecx, dword [ebp - 0xb0]
movzx edi, word [ebp - 0xa8]
xor edx, ecx
rol edx, 1
mov dword [ebp - 0xbc], edi
imul edi, edx
mov eax, ecx
ror eax, 1
xor eax, edi
xor eax, dword [ebp - 0xb0]
movzx edi, word [ebp - 0xaa]
mov dword [ebp - 0xc0], edi
mov edx, eax
xor edx, dword [ebp - 0xa8]
rol edx, 1
imul edi, edx
mov edx, eax
shr edx, 1
sub edi, edx
xor ecx, edi
movzx edx, word [ebp - 0xac]
mov edi, dword [ebp - 0xc0]
xor edi, ecx
mov dword [ebp - 0xb0], edx
imul edi, dword [ebp - 0xb0]
mov edx, ecx
ror edx, 1
add edx, edi
xor eax, edx
mov dword [ebp - 0xb4], ecx
movzx ecx, word [ebp - 0xa6]
mov edx, dword [ebp - 0xb4]
mov edi, eax
sub edi, dword [ebp - 0xc0]
imul edi, ecx
mov ecx, eax
shr ecx, 0xa
sub edi, ecx
mov ecx, dword [ebp - 0xac]
xor edx, edi
mov edi, dword [ebp - 0xbc]
add ecx, edx
ror ecx, 0x1b
imul edi, ecx
mov dword [ebp - 0xb4], edx
ror edx, 0x14
add edx, edi
xor eax, edx
mov edx, dword [ebp - 0xc0]
mov ecx, eax
xor ecx, dword [ebp - 0xa8]
mov edi, eax
ror ecx, 1
imul edx, ecx
ror edi, 1
add edi, edx
mov edx, dword [ebp - 0xb4]
xor edx, edi
mov edi, dword [ebp - 0xa8]
mov ecx, edx
xor ecx, dword [ebp - 0xac]
sub edi, ecx
xor eax, edi
movzx edi, word [ebp - 0xa6]
mov ecx, eax
sub ecx, edi
mov edi, dword [ebp - 0xac]
xor ecx, edx
xor ecx, edi
mov dword [ebp - 0xb4], ecx
mov edx, ecx
sub edx, edi
mov edi, ecx
mov ecx, dword [ebp - 0xbc]
ror edx, 1
imul ecx, edx
ror edi, 1
xor edi, ecx
mov ecx, dword [ebp - 0xa8]
xor eax, edi
mov edi, dword [ebp - 0xc0]
sub ecx, eax
ror ecx, 0x16
imul edi, ecx
mov ecx, dword [ebp - 0xc0]
mov edx, eax
ror edx, 0xa
sub edi, edx
mov edx, edi
mov edi, dword [ebp - 0xb4]
xor edi, edx
xor ecx, edi
rol ecx, 1
mov edx, ecx
mov ecx, dword [ebp - 0xb0]
imul ecx, edx
mov edx, edi
xor edi, dword [ebp - 0xb8]
shr edx, 1
add ecx, edx
xor ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xb0], edi
xor eax, ecx
cmp dword [ebp - 0xa0], ebx
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb4], ebx
jle 0x104160d
mov ecx, ebx
cmp ecx, 4
mov edx, dword [ebp - 0x98]
jge 0x10415d4
mov ecx, dword [ebp - 0xbc]
rol ecx, 8
mov byte [edx], cl
add edx, 1
xor byte [ebp - 0x91], cl
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0x98], edx
jmp 0x10415f6
mov ecx, dword [ebp - 0xb0]
rol ecx, 8
mov byte [edx], cl
add edx, 1
mov dword [ebp - 0x98], edx
mov dl, cl
xor byte [ebp - 0x91], dl
mov dword [ebp - 0xb0], ecx
mov ecx, dword [ebp - 0xb4]
add ecx, 1
cmp ecx, dword [ebp - 0xa0]
mov dword [ebp - 0xb4], ecx
jl 0x10415a7
mov ecx, dword [ebp - 0xa0]
add ecx, 0xfffffffc
cmp ecx, ebx
jle 0x1041631
mov edx, 4
sub edx, ecx
add edx, edx
add edx, edx
add edx, edx
mov ecx, edx
shr edi, cl
shl edi, cl
mov edx, edi
jmp 0x1041655
xor edx, edx
cmp ecx, ebx
jge 0x1041655
neg ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
shr eax, cl
shl eax, cl
jmp 0x1041655
xor edx, edx
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0xb8], edi
xor eax, eax
mov ecx, dword [ebp - 0xc8]
shr ecx, 3
je 0x10418ae
movzx edi, word [ebp - 0xa6]
mov dword [ebp - 0xa0], edi
movzx edi, word [ebp - 0xaa]
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0x9c], ecx
jmp 0x104168c
mov esi, dword [ebp - 0xd4]
movzx ecx, byte [esi + 1]
mov ch, byte [esi]
movzx edi, byte [esi + 2]
add esi, 8
mov dword [ebp - 0xd4], esi
shl ecx, 8
or ecx, edi
movzx edi, byte [esi - 5]
shl ecx, 8
or ecx, edi
movzx edi, byte [esi - 2]
mov dword [ebp - 0xbc], ecx
xor ecx, ecx
mov ch, byte [esi - 4]
xor eax, dword [ebp - 0xbc]
mov cl, byte [esi - 3]
shl ecx, 8
or ecx, edi
movzx edi, byte [esi - 1]
shl ecx, 8
or ecx, edi
mov edi, dword [ebp - 0xa0]
mov dword [ebp - 0xb0], ecx
mov ecx, eax
sub ecx, dword [ebp - 0xac]
mov esi, eax
ror ecx, 0xc
imul edi, ecx
mov ecx, dword [ebp - 0xa0]
ror esi, 0xd
sub edi, esi
xor edi, dword [ebp - 0xb0]
movzx esi, word [ebp - 0xa8]
xor edx, edi
xor ecx, edx
rol ecx, 1
imul esi, ecx
mov edi, edx
ror edi, 1
xor edi, esi
mov esi, dword [ebp - 0xc0]
xor eax, edi
mov edi, esi
mov ecx, eax
xor ecx, dword [ebp - 0xa8]
rol ecx, 1
imul edi, ecx
mov ecx, eax
shr ecx, 1
sub edi, ecx
movzx ecx, word [ebp - 0xac]
xor edx, edi
xor esi, edx
imul esi, ecx
mov edi, edx
ror edi, 1
add edi, esi
xor eax, edi
mov ecx, eax
sub ecx, dword [ebp - 0xc0]
mov esi, eax
imul ecx, dword [ebp - 0xa0]
shr esi, 0xa
sub ecx, esi
movzx esi, word [ebp - 0xa8]
xor edx, ecx
mov ecx, dword [ebp - 0xac]
add ecx, edx
ror ecx, 0x1b
imul esi, ecx
mov edi, edx
ror edi, 0x14
add edi, esi
xor eax, edi
mov edi, dword [ebp - 0xc0]
mov ecx, eax
xor ecx, dword [ebp - 0xa8]
mov esi, eax
ror ecx, 1
ror esi, 1
imul edi, ecx
add esi, edi
xor edx, esi
mov esi, dword [ebp - 0xac]
mov edi, dword [ebp - 0xa8]
mov ecx, edx
xor ecx, esi
sub edi, ecx
xor eax, edi
mov ecx, eax
sub ecx, dword [ebp - 0xa0]
xor ecx, edx
xor ecx, esi
mov edx, ecx
sub edx, esi
movzx esi, word [ebp - 0xa8]
ror edx, 1
imul esi, edx
mov edx, dword [ebp - 0xa8]
mov edi, ecx
ror edi, 1
xor edi, esi
xor eax, edi
mov edi, dword [ebp - 0xc0]
sub edx, eax
ror edx, 0x16
imul edi, edx
mov edx, dword [ebp - 0xc0]
mov esi, eax
ror esi, 0xa
sub edi, esi
movzx esi, word [ebp - 0xac]
xor ecx, edi
xor edx, ecx
rol edx, 1
imul esi, edx
mov edx, ecx
xor ecx, dword [ebp - 0xb8]
shr edx, 1
add esi, edx
xor esi, dword [ebp - 0xcc]
mov dl, byte [ebp - 0x91]
xor eax, esi
mov esi, dword [ebp - 0x98]
xor dl, al
xor dl, cl
mov byte [esi + 3], al
mov byte [esi + 7], cl
ror eax, 8
ror ecx, 8
xor dl, al
xor dl, cl
mov byte [esi + 2], al
ror eax, 8
mov byte [esi + 6], cl
ror ecx, 8
xor dl, al
xor dl, cl
mov byte [esi + 1], al
mov byte [esi + 5], cl
mov dword [ebp - 0x98], eax
ror eax, 8
ror ecx, 8
mov dword [ebp - 0xb4], ecx
mov byte [esi], al
mov byte [esi + 4], cl
xor cl, al
xor dl, cl
mov ecx, dword [ebp - 0xbc]
mov byte [ebp - 0x91], dl
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0x98], eax
ror eax, 8
mov dword [ebp - 0xcc], ecx
mov ecx, dword [ebp - 0xb0]
add esi, 8
ror edx, 8
sub dword [ebp - 0x9c], 1
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0x98], esi
jne 0x1041686
mov edx, dword [0x10011a4]
mov eax, 0x1000000
sub eax, edx
mov dword [ebp - 0x9c], eax
jne 0x10418cf
cmp dword [ebp - 0xa4], ebx
je 0x10419b1
mov ecx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0xd0]
mov esi, dword [0x102b4c8]
sub eax, ecx
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xc8]
sub ecx, 0x1000000
add esi, 0xffffffff
lea edx, [ecx + eax]
xor edi, edi
cmp esi, ebx
mov dword [ebp - 0xd4], edx
jl 0x1041932
lea eax, [esi + edi]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x102b4cc]
and edx, 0xfffffff
cmp ecx, edx
jae 0x1041925
lea esi, [eax - 1]
jmp 0x104192a
jbe 0x1041930
lea edi, [eax + 1]
cmp esi, edi
jge 0x1041907
jmp 0x1041932
mov edi, eax
cmp edi, dword [0x102b4c8]
jae 0x10419b1
lea esp, [esp]
mov eax, dword [edi*4 + 0x102b4cc]
mov esi, eax
and esi, 0xfffffff
cmp esi, dword [ebp - 0xd4]
jae 0x10419b1
lea ecx, [eax*4]
sar ecx, 0x1e
sar eax, 0x1e
and ecx, 3
and eax, 3
xor edx, edx
sub ecx, 1
je 0x1041988
sub ecx, 1
je 0x1041980
sub ecx, 1
jne 0x1041994
mov edx, dword [ebp - 0x9c]
jmp 0x1041994
mov edx, dword [ebp - 0xa4]
jmp 0x1041994
mov edx, dword [ebp - 0x9c]
sub edx, dword [ebp - 0xa4]
sub eax, 2
jne 0x10419a6
mov eax, dword [ebp - 0xa0]
add dword [esi + eax + 0x1000000], edx
add edi, 1
cmp edi, dword [0x102b4c8]
jb 0x104193d
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x91]
call fcn.0102f937
test eax, eax
jne 0x1041a79
call fcn.0102f86e
mov esi, dword [ebp - 0x11c]
push 0x1000
mov edi, eax
and esi, 0xfffffffc
push esi
and edi, 0xfffff000
call fcn.0101275f
mov ecx, dword [ebp - 0x104]
mov dword [ebp - 0xd4], eax
mov dword [ecx + 4], 0x1012008
mov ecx, dword [0x1050170]
xor eax, eax
mov dword [ebp - 0x9c], 0xffff
imul ecx, ecx, 0x343fd
add ecx, 0x269ec3
mov edx, ecx
shr edx, 0x10
shl eax, 0x10
or eax, edx
shr dword [ebp - 0x9c], 0x10
jne 0x1041a11
mov dword [0x1050170], ecx
xor edx, edx
mov ecx, 0xffff
div ecx
mov eax, dword [ebp - 0x104]
add edx, 1
mov dword [eax - 0x18], edx
mov dword [eax - 4], edi
mov eax, dword [ebp - 0xd4]
cmp esi, eax
mov dword [ebp - 0x9c], ebx
jae 0x1041a6f
lea ecx, [ecx]
mov edx, dword [ebp - 0x9c]
mov dword [esi], edx
add esi, 4
cmp esi, eax
jb 0x1041a60
mov eax, 0x1012008
jmp 0x1041b99
mov ecx, dword [ebp - 0x120]
mov edi, dword [ebp - 0xc8]
mov esi, dword [ebp - 0xd0]
mov edx, ecx
sub edx, 0x14
lea eax, [esi + edi]
je 0x1041b0a
sub edx, 1
je 0x1041ae5
sub edx, 9
je 0x1041b0a
mov edx, dword [ebp - 0x134]
add edi, edx
xor edi, dword [eax + 9]
and edi, 0xfffffff
xor dword [eax + 9], edi
mov edx, dword [eax + 5]
xor edx, dword [ebp - 0x13c]
and edx, 0xfffffff
xor dword [eax + 5], edx
mov edx, dword [eax + 0xd]
and edx, 0xffffff80
or edx, ecx
mov ecx, 0x103e72a
sub ecx, eax
mov dword [eax + 0xd], edx
sub ecx, 5
mov byte [eax], 0xe8
mov dword [eax + 1], ecx
jmp 0x1041b86
mov dl, byte [ebp - 0x138]
add dl, dl
add dl, dl
xor dl, byte [eax + 5]
mov ecx, 0x102cced
and dl, 0x3c
xor byte [eax + 5], dl
sub ecx, eax
sub ecx, 5
mov byte [eax], 0xe8
mov dword [eax + 1], ecx
jmp 0x1041b86
mov edx, dword [ebp - 0x148]
and edx, 0x4f
shl ecx, 7
or ecx, edx
mov edx, dword [ebp - 0x144]
shr edx, 0x14
and edx, 0x300
shl ecx, 4
or ecx, edx
mov edx, dword [eax + 5]
and edx, 0xfffc000f
or ecx, edx
mov dword [eax + 5], ecx
mov ecx, dword [ebp - 0x134]
shr ecx, 0x1c
xor ecx, dword [eax + 0xd]
and ecx, 1
xor dword [eax + 0xd], ecx
mov ecx, dword [ebp - 0x138]
mov edi, dword [eax + 5]
mov edx, ecx
and edx, 0x10
shl edx, 0x10
and edi, 0xffeffff0
or edx, edi
and ecx, 0xf
or edx, ecx
mov ecx, dword [ebp - 0x13c]
mov dword [eax + 5], edx
mov edx, 0x10424e7
sub edx, eax
mov dword [eax + 9], ecx
sub edx, 5
mov byte [eax], 0xe8
mov dword [eax + 1], edx
sub esi, dword [ebp - 0xc4]
mov eax, dword [0x102f094]
add esi, dword [ebp - 0xd8]
mov eax, esi
mov ecx, dword [ebp - 0x124]
mov edx, dword [ecx*4 + 0x1027b18]
mov ecx, dword [ebp - 0x104]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x11c]
pop edi
pop esi
xor ecx, ebp
mov dword [edx], eax
pop ebx
call fcn.01027e5c
mov esp, ebp
pop ebp
ret