Function at 0x1030305
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x10431dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x104cddc]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
xor edi, edi
xor ebx, ebx
add eax, 0xffffffff
cmp esi, 0x1000000
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x38], eax
jb 0x1030418
mov ecx, dword [0x100003c]
mov edx, dword [ecx + 0x1000050]
add edx, 0x1000000
cmp esi, edx
jae 0x1030418
mov ecx, esi
sub ecx, 0x1000000
cmp eax, edi
mov dword [ebp - 0x64], ecx
jl 0x103040b
jmp 0x1030385
add eax, ebx
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + eax*4]
mov esi, dword [ecx*4 + 0x104cb48]
lea ecx, [ecx*4 + 0x104cb48]
mov edx, esi
xor edx, edi
cmp dword [ebp - 0x64], edx
mov edi, dword [ecx + 0xc]
jae 0x10303b3
add eax, 0xffffffff
mov dword [ebp - 0x38], eax
add edi, esi
jmp 0x10303cf
mov ebx, edi
and ebx, 0xfff
add ebx, edx
cmp dword [ebp - 0x64], ebx
jb 0x10303d5
lea ebx, [eax + 1]
mov eax, dword [ebp - 0x38]
sub esi, edi
mov dword [ebp - 0x58], ebx
mov edi, esi
cmp eax, ebx
jge 0x1030385
jmp 0x1030406
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x8c], edx
mov edx, dword [ecx + 4]
mov eax, esi
add edx, eax
mov dword [ebp - 0x88], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0x10]
sub edx, eax
mov eax, edi
add ecx, eax
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x7c], ecx
mov esi, dword [ebp - 0x78]
xor edi, edi
xor ecx, ecx
cmp ebx, eax
setle cl
mov eax, ecx
cmp eax, edi
jne 0x103042f
mov edx, dword [ebp - 0x6c]
pop edi
mov dword [edx + 4], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100d61a
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x80]
mov eax, edx
and eax, 0xfff
mov dword [ebp - 0x64], eax
mov ecx, eax
mov eax, edx
shr eax, 0xc
mov dword [ebp - 0xa4], eax
and eax, 0x7f
mov dword [ebp - 0xa8], eax
add eax, 0xfffffff5
cmp eax, 0x69
ja case.0x1030461.12
movzx eax, byte [eax + 0x1030f60]
jmp dword [eax*4 + 0x1030fcc]
add ecx, 0xd
jmp 0x1030475
add ecx, 6
jmp 0x1030475
add ecx, 0x11
mov dword [ebp - 0x34], ecx
add ecx, 0xfff
and ecx, 0xfffff000
mov dword [ebp - 0x24], ecx
xor esi, esi
mov ecx, dword [ebp - 0x24]
push 0x40
push 0x1000
push ecx
push 0
add esi, 1
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x103054e
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x11
jb 0x1030489
mov edi, dword [0x104c8e0]
test edi, edi
je 0x1030487
xor esi, esi
xor eax, eax
test edi, edi
mov edx, edi
je 0x10304f7
mov ecx, dword [0x104c8dc]
jmp 0x10304d6
imul ecx, ecx, 0x343fd
add ecx, 0x269ec3
mov ebx, ecx
shr ebx, 0x10
shl eax, 0x10
or eax, ebx
shr edx, 0x10
jne 0x10304d6
mov dword [0x104c8dc], ecx
xor edx, edx
div edi
jmp 0x1030506
add esi, 1
mov ecx, 0x3cea0
lea edi, [edx*4 + 0x104cb20]
xor eax, eax
lock cmpxchg dword [edi], ecx
xor ebx, ebx
cmp eax, ebx
je 0x1030536
lea eax, [edx + 1]
xor edx, edx
div dword [0x104c8e0]
cmp esi, 9
jb 0x1030506
jmp 0x1030487
shl edx, 0xc
add edx, 0x1031000
mov edi, edx
cmp edi, ebx
mov dword [ebp - 0x58], edi
je 0x1030487
jmp 0x1030555
mov dword [ebp - 0x58], eax
mov edi, eax
xor ebx, ebx
mov eax, dword [0x104c8e0]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
je 0x1030664
cmp edi, 0x1031000
jb 0x1030664
shl eax, 0xc
add eax, 0x1031000
cmp edi, eax
ja 0x1030664
mov eax, edi
and eax, 0xfffff000
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x1030664
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
cmp edi, eax
jb 0x10305b3
lea esi, [edi + 0x1000]
lea edx, [eax + ecx]
cmp esi, edx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
jbe 0x1030627
cmp dword [ebp - 0x44], ebx
je 0x10305c7
lea edx, [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x4c]
push edx
push ecx
push eax
call esi
mov dword [ebp - 0x44], ebx
cmp dword [ebp - 0x48], ebx
je 0x10305da
push 0x104c8a0
mov dword [ebp - 0x48], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x24]
lea ecx, [edi + 0x1fff]
and ecx, 0xfffff000
sub ecx, eax
push 0x104c8a0
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x4c]
push edx
push 0x40
push eax
push ecx
mov dword [ebp - 0x48], 1
call esi
mov ecx, dword [ebp - 0x50]
cmp eax, ebx
mov eax, dword [ebp - 0x54]
je 0x103062b
mov dword [ebp - 0x44], 1
cmp edi, ebx
jne 0x1030664
cmp dword [ebp - 0x44], ebx
je 0x103063f
lea edx, [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x4c]
push edx
push ecx
push eax
call esi
mov dword [ebp - 0x44], ebx
cmp dword [ebp - 0x48], ebx
je 0x1030652
push 0x104c8a0
mov dword [ebp - 0x48], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ebx
jmp 0x103059c
mov eax, dword [0x100003c]
mov esi, dword [eax + 0x1000050]
sub esi, 0xfff
mov eax, ebx
mov edx, esi
je 0x10306a7
mov ecx, dword [0x104c8dc]
jmp 0x1030686
imul ecx, ecx, 0x343fd
add ecx, 0x269ec3
mov ebx, ecx
shr ebx, 0x10
shl eax, 0x10
or eax, ebx
shr edx, 0x10
jne 0x1030686
mov dword [0x104c8dc], ecx
xor edx, edx
div esi
lea eax, [edi + 3]
and eax, 0xfffffffc
mov ecx, 0x400
add edx, 0x1000003
and edx, 0xfffffffc
sub edx, eax
jmp 0x10306c6
mov esi, dword [edx + eax]
mov dword [eax], esi
add eax, 4
sub ecx, 1
jne 0x10306c6
mov ebx, dword [ebp - 0x8c]
mov ecx, 0x1001
sub ecx, dword [ebp - 0x34]
lea ebx, [ebx + 0x1000000]
mov dword [ebp - 0x38], ebx
mov eax, 0
mov esi, ecx
je 0x103072a
mov edx, dword [0x104c8dc]
jmp 0x1030706
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov edi, edx
shr edi, 0x10
shl eax, 0x10
or eax, edi
shr esi, 0x10
jne 0x1030706
mov edi, dword [ebp - 0x58]
mov dword [0x104c8dc], edx
xor edx, edx
div ecx
mov al, byte [ebp - 0x81]
mov ecx, dword [ebp - 0x8c]
mov byte [ebp - 0x15], 0xa5
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], 0
add edx, edi
sub ebx, edx
test al, 1
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x34], ebx
je 0x1030761
lea eax, [ebp - 0x88]
jmp 0x10309f5
movzx edi, word [ebp - 0x84]
mov ecx, dword [ebp - 0x88]
movzx esi, al
mov eax, 0x1000000
shr esi, 1
sub eax, dword [0x104c928]
lea ecx, [ecx + 0x1000000]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x40], eax
jne 0x10307d9
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
lea edx, [ebp - 0x40]
push edx
mov edx, dword [esi*4 + 0x104c930]
lea eax, [edi + ecx]
push eax
push ecx
lea ecx, [ebp - 0x60]
push ecx
mov byte [ebp - 0x40], 0
mov byte [ebp - 0x3f], 1
mov byte [ebp - 0x3e], 2
mov byte [ebp - 0x3d], 3
mov byte [ebp - 0x3c], 4
mov byte [ebp - 0x3b], 5
call edx
jmp 0x10309df
mov edx, dword [0x100003c]
mov eax, ecx
sub eax, 0x1000000
mov ecx, eax
mov ebx, eax
add eax, edi
mov edi, eax
and edi, 0xfffff000
sub eax, edi
mov dword [ebp - 0xa0], edi
mov edi, dword [edx + 0x10000a0]
mov dword [ebp - 0x9c], eax
mov eax, dword [edx + 0x10000a4]
add edi, 0x1000000
and ecx, 0xfffff000
add eax, edi
sub ebx, ecx
cmp edi, eax
mov dword [ebp - 0x98], eax
je 0x1030833
cmp dword [edi], ecx
jae 0x1030833
add edi, dword [edi + 4]
cmp edi, eax
jne 0x1030828
xor edx, edx
cmp edi, eax
je 0x103086d
cmp dword [edi], ecx
jne 0x103086d
mov ecx, dword [edi + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 0x20], ecx
je 0x103086d
jmp 0x1030856
movzx ecx, word [edi + edx*2 + 8]
and ecx, 0xfff
cmp ecx, ebx
jae 0x103086d
add edx, 1
cmp edx, dword [ebp - 0x20]
jne 0x1030856
mov ecx, dword [ebp - 0x30]
jmp 0x1030878
cmp edi, eax
je 0x1030992
mov ebx, dword [edi]
cmp ebx, dword [ebp - 0xa0]
ja 0x1030992
lea esp, [esp]
mov ebx, dword [edi + 4]
add ebx, 0xfffffff8
shr ebx, 1
cmp edx, ebx
jne 0x10308ba
add edi, dword [edi + 4]
cmp edi, eax
je 0x1030992
mov edx, dword [ebp - 0xa0]
cmp dword [edi], edx
ja 0x1030992
xor edx, edx
jmp 0x1030891
mov ebx, dword [edi]
cmp ebx, dword [ebp - 0xa0]
jne 0x10308da
movzx eax, word [edi + edx*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x9c]
jae 0x1030992
mov eax, edx
movzx eax, word [edi + eax*2 + 8]
add edx, 1
test eax, 0xf000
mov dword [ebp - 0x90], edx
je 0x1030f50
and eax, 0xfff
lea ebx, [eax + ebx + 0x1000000]
mov eax, 0x8421085
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
imul eax, eax, 0x7c
mov edx, esi
sub edx, eax
lea eax, [edx*4 + 0x104c930]
lea edx, [ebp - 0x74]
push edx
mov edx, dword [eax]
push ebx
push ecx
lea ecx, [ebp - 0x60]
push ecx
mov byte [ebp - 0x74], 0
mov byte [ebp - 0x73], 1
mov byte [ebp - 0x72], 2
mov byte [ebp - 0x71], 3
mov byte [ebp - 0x70], 4
mov byte [ebp - 0x6f], 5
mov dword [ebp - 0x20], eax
call edx
mov eax, dword [ebx]
sub eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
push ecx
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ecx]
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 0x2c], 0
mov byte [ebp - 0x2b], 1
mov byte [ebp - 0x2a], 2
mov byte [ebp - 0x29], 3
mov byte [ebp - 0x28], 4
mov byte [ebp - 0x27], 5
call edx
mov edx, dword [ebp - 0x90]
add esp, 0x20
lea ecx, [ebx + 4]
jmp 0x1030f50
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 - 0x30]
lea edx, [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x24]
add eax, edx
push eax
push ecx
mov ecx, dword [esi*4 + 0x104c930]
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 0x2c], 0
mov byte [ebp - 0x2b], 1
mov byte [ebp - 0x2a], 2
mov byte [ebp - 0x29], 3
mov byte [ebp - 0x28], 4
mov byte [ebp - 0x27], 5
call ecx
mov ebx, dword [ebp - 0x34]
or byte [ebp - 0x60], 1
or byte [ebp - 0x5e], 1
or byte [ebp - 0x5c], 1
add esp, 0x10
or byte [ebp - 0x5b], 1
lea eax, [ebp - 0x60]
mov edx, dword [eax]
mov ax, word [eax + 4]
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x64]
test eax, eax
mov dword [ebp - 0x20], edx
jbe 0x1030c00
add eax, 0xffffffff
mov dword [ebp - 0x30], eax
je 0x1030b77
mov ecx, eax
mov eax, dword [ebp - 0x38]
lea edi, [ecx + eax]
mov ecx, dword [ebp - 0x68]
sub ecx, eax
mov dword [ebp - 0x40], ecx
test byte [ebp - 0x30], 1
mov al, byte [edi]
je 0x1030ac7
mov cl, byte [ebp - 0x1d]
mov bl, cl
xor bl, al
and bl, 1
movzx edx, cl
movzx eax, al
je 0x1030a61
movzx ecx, byte [ebp - 0x1e]
mov esi, edx
shr esi, 1
shr ecx, 1
xor ecx, esi
mov esi, eax
xor esi, 0x100
sar esi, 1
xor ecx, esi
jmp 0x1030a67
mov ecx, eax
xor ecx, edx
shr ecx, 1
movzx esi, byte [edi - 1]
xor ecx, esi
test cl, 1
je 0x1030aa7
test bl, bl
je 0x1030a8b
movzx ecx, byte [ebp - 0x1e]
shr ecx, 1
shr edx, 1
xor eax, 0x100
xor ecx, edx
sar eax, 1
xor ecx, eax
jmp 0x1030a91
xor eax, edx
shr eax, 1
mov ecx, eax
movzx eax, byte [ebp - 0x1b]
shr eax, 1
xor ecx, esi
xor eax, 0x80
sar ecx, 1
xor eax, ecx
jmp 0x1030b5a
test bl, bl
je 0x1030b4e
movzx ecx, byte [ebp - 0x1e]
shr ecx, 1
shr edx, 1
xor eax, 0x100
xor ecx, edx
sar eax, 1
xor ecx, eax
jmp 0x1030b54
mov bl, byte [ebp - 0x1f]
movzx edx, byte [ebp - 0x1f]
xor bl, al
and bl, 1
movzx eax, al
je 0x1030af2
movzx ecx, byte [ebp - 0x20]
mov esi, edx
shr esi, 1
shr ecx, 1
xor ecx, esi
mov esi, eax
xor esi, 0x100
sar esi, 1
xor ecx, esi
jmp 0x1030af8
mov ecx, eax
xor ecx, edx
shr ecx, 1
movzx esi, byte [edi - 1]
xor ecx, esi
test cl, 1
je 0x1030b35
test bl, bl
je 0x1030b1c
movzx ecx, byte [ebp - 0x20]
shr ecx, 1
shr edx, 1
xor eax, 0x100
xor ecx, edx
sar eax, 1
xor ecx, eax
jmp 0x1030b22
xor eax, edx
shr eax, 1
mov ecx, eax
movzx eax, byte [ebp - 0x1c]
shr eax, 1
xor ecx, esi
xor eax, 0x80
sar ecx, 1
xor eax, ecx
jmp 0x1030b5a
test bl, bl
je 0x1030b4e
movzx ecx, byte [ebp - 0x20]
shr ecx, 1
shr edx, 1
xor eax, 0x100
xor ecx, edx
sar eax, 1
xor ecx, eax
jmp 0x1030b54
xor eax, edx
shr eax, 1
mov ecx, eax
xor ecx, esi
sar ecx, 1
mov eax, ecx
mov edx, dword [ebp - 0x40]
xor byte [ebp - 0x15], al
mov byte [edx + edi], al
mov eax, dword [ebp - 0x30]
sub eax, 1
sub edi, 1
test eax, eax
mov dword [ebp - 0x30], eax
ja 0x1030a29
mov eax, dword [ebp - 0x38]
mov al, byte [eax]
mov cl, byte [ebp - 0x1f]
mov bl, byte [ebp - 0x20]
mov dl, al
xor dl, cl
movzx eax, al
movzx ecx, cl
xor eax, ecx
shr eax, 1
and dl, 1
je 0x1030ba4
movzx ecx, bl
xor ecx, 0x100
sar ecx, 1
xor ecx, eax
jmp 0x1030ba6
mov ecx, eax
test cl, 1
je 0x1030bdc
test dl, dl
je 0x1030bcb
movzx ecx, bl
xor ecx, 0x100
sar ecx, 1
xor ecx, eax
movzx eax, byte [ebp - 0x1c]
xor eax, ecx
xor eax, 0x100
sar eax, 1
jmp 0x1030bf5
mov ecx, eax
movzx eax, byte [ebp - 0x1c]
xor eax, ecx
xor eax, 0x100
sar eax, 1
jmp 0x1030bf5
test dl, dl
je 0x1030bef
movzx ecx, bl
xor ecx, 0x100
sar ecx, 1
xor ecx, eax
jmp 0x1030bf1
mov ecx, eax
sar ecx, 1
mov eax, ecx
mov edx, dword [ebp - 0x68]
xor byte [ebp - 0x15], al
mov ebx, dword [ebp - 0x34]
mov byte [edx], al
mov eax, 0x1000000
sub eax, dword [0x104c928]
mov dword [ebp - 0x24], eax
jne 0x1030c18
test ebx, ebx
je 0x1030ccf
mov ecx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
mov esi, dword [0x103edac]
sub ebx, ecx
sub ecx, 0x1000000
lea edx, [eax + ecx]
xor edi, edi
add esi, 0xffffffff
mov dword [ebp - 0x40], edx
js 0x1030c67
lea eax, [esi + edi]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x103edb0]
and edx, 0xfffffff
cmp ecx, edx
jae 0x1030c5a
lea esi, [eax - 1]
jmp 0x1030c5f
jbe 0x1030c65
lea edi, [eax + 1]
cmp esi, edi
jge 0x1030c3c
jmp 0x1030c67
mov edi, eax
cmp edi, dword [0x103edac]
jae 0x1030ccf
lea ebx, [ebx]
mov eax, dword [edi*4 + 0x103edb0]
mov esi, eax
and esi, 0xfffffff
cmp esi, dword [ebp - 0x40]
jae 0x1030ccf
mov ecx, eax
add eax, eax
add eax, eax
sar eax, 0x1e
sar ecx, 0x1e
and eax, 3
and ecx, 3
xor edx, edx
sub eax, 1
je 0x1030cb2
sub eax, 1
je 0x1030cad
sub eax, 1
jne 0x1030cb8
mov edx, dword [ebp - 0x24]
jmp 0x1030cb8
mov edx, dword [ebp - 0x34]
jmp 0x1030cb8
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x34]
sub ecx, 2
jne 0x1030cc4
add dword [ebx + esi + 0x1000000], edx
add edi, 1
cmp edi, dword [0x103edac]
jb 0x1030c71
mov al, byte [ebp - 0x82]
xor al, byte [ebp - 0x15]
je 0x1030d86
call fcn.0103ed9c
mov esi, eax
mov eax, dword [ebp - 0x6c]
lea edi, [eax + 8]
and edi, 0xfffffffc
lea ecx, [edi + 0xfff]
mov dword [eax + 4], 0x1030fd8
mov edx, dword [0x104c8dc]
and esi, 0xfffff000
and ecx, 0xfffff000
xor eax, eax
mov dword [ebp - 0x24], 0xffff
jmp 0x1030d21
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov ebx, edx
shr ebx, 0x10
shl eax, 0x10
or eax, ebx
shr dword [ebp - 0x24], 0x10
jne 0x1030d21
mov dword [0x104c8dc], edx
xor edx, edx
mov ebx, 0xffff
div ebx
mov eax, edx
mov edx, dword [ebp - 0x6c]
add eax, 1
cmp edi, ecx
mov dword [edx - 0x1c], eax
mov dword [edx - 8], esi
jae 0x1030d6d
sub ecx, edi
sub ecx, 1
shr ecx, 2
add ecx, 1
xor eax, eax
rep stosd dword es:[edi], eax
pop edi
mov eax, 0x1030fd8
pop esi
mov dword [edx + 4], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100d61a
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xa8]
mov edx, dword [ebp - 0x64]
mov edi, dword [ebp - 0x68]
lea ecx, [esi - 0xb]
cmp ecx, 0x69
lea eax, [edx + edi]
ja case.0x1030da8.12
movzx ecx, byte [ecx + 0x1030ed8]
jmp dword [ecx*4 + 0x1030f44]
mov edx, dword [ebp - 0x80]
mov edi, edx
shr edi, 5
mov ebx, edx
and edi, 0x100000
mov ecx, edx
and edx, 0x100000
and ebx, 0x1e00000
or edi, ebx
shr edi, 5
or edi, edx
mov edx, dword [eax + 5]
and edx, 0xffffff80
or edx, esi
and edx, 0xfff0007f
shr edi, 1
or edi, edx
mov edx, dword [ebp - 0xa4]
shr ecx, 0x12
and edx, 0x80
or edi, edx
and ecx, 0x3f00
or edi, ecx
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 5], edi
mov edi, dword [ebp - 0x68]
mov dword [eax + 9], ecx
mov edx, 0x103d996
jmp 0x1030e49
mov ecx, dword [ebp - 0x80]
shr ecx, 0x15
xor cl, byte [eax + 5]
mov edx, 0x103c658
and cl, 0xf
xor byte [eax + 5], cl
jmp 0x1030e49
mov ecx, dword [ebp - 0x8c]
add edx, ecx
mov ecx, dword [eax + 0xd]
mov dword [eax + 5], edx
mov edx, dword [ebp - 0x7c]
and ecx, 0xffffff80
or ecx, esi
mov dword [eax + 9], edx
mov dword [eax + 0xd], ecx
mov edx, 0x103b000
sub edx, eax
sub edx, 5
mov byte [eax], 0xe8
mov dword [eax + 1], edx
mov eax, dword [0x104c8e0]
xor esi, esi
cmp eax, esi
je 0x1030eb3
mov ecx, dword [ebp - 0x58]
cmp ecx, 0x1031000
jb 0x1030eb3
shl eax, 0xc
add eax, 0x1031000
cmp ecx, eax
ja 0x1030eb3
and ecx, 0xfffff000
mov eax, ecx
cmp eax, esi
je 0x1030eb3
cmp dword [ebp - 0x44], esi
je 0x1030ea0
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x54]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x44], esi
cmp dword [ebp - 0x48], esi
je 0x1030eb3
push 0x104c8a0
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x6c]
add edi, dword [ebp - 0x78]
mov eax, edi
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100d61a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x98]
jmp 0x1030878