Function at 0x6f501f70
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
test edi, edi
je 0x6f502330
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov esi, ebx
mov ebx, ecx
cmp ecx, eax
mov dword [ebp - 0x3c], edx
mov ecx, esi
sbb ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
jae 0x6f502330
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], esi
add eax, ebx
adc edx, esi
mov ecx, eax
mov eax, dword [ebp - 0x40]
mov ebx, edx
mov edx, dword [ebp - 0x3c]
cmp eax, ecx
mov eax, edx
sbb eax, ebx
jae 0x6f501ffc
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x68]
sbb edx, dword [ebp - 0x64]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x6f5025a0
mov edx, dword [edi + 0x4d8]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
test edx, edx
je 0x6f50233e
lea esi, [esi]
lea esi, [esi]
mov eax, dword [ebp - 0x38]
xor ebx, ebx
cmp ebx, eax
sbb ebx, dword [ebp - 0x34]
jge 0x6f50233e
mov eax, dword [ebp - 0x74]
mov ebx, dword [edi + 0x4d0]
mov esi, dword [edi + 0x4d4]
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
add edx, dword [eax]
adc ecx, dword [eax + 4]
mov eax, edx
mov dword [esp + 8], ebx
mov edx, ecx
lea ecx, [ebp - 0x30]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.___udivmoddi4
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], edx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x38]
sub ebx, dword [ebp - 0x40]
mov dword [ebp - 0x3c], ecx
mov ecx, ebx
sbb esi, dword [ebp - 0x3c]
mov ebx, esi
cmp edx, ecx
mov esi, ecx
mov ecx, eax
sbb ecx, ebx
cmovb esi, edx
cmovae eax, ebx
lea ebx, [edi + 0x34]
mov dword [ebp - 0x94], esi
lea esi, [edi + 0x1c]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x7c], esi
mov dword [esp], esi
mov esi, dword [sym.imp.kernel32.dll_EnterCriticalSection]
call esi
sub esp, 4
mov dword [esp], ebx
call esi
mov eax, dword [edi + 0x4f8]
mov ecx, dword [ebp - 0x4c]
sub esp, 4
mov edx, dword [ebp - 0x50]
mov dword [esp + 8], eax
sar eax, 0x1f
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov dword [esp], edx
call sym.___umoddi3
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov esi, edx
mov dword [ebp - 0x88], edx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x80], edx
mov edx, dword [edi + 0x4f4]
xor ecx, dword [edx + eax*8 + 4]
xor esi, dword [edx + eax*8]
or ecx, esi
jne 0x6f502133
mov edx, dword [edi + 0x4f0]
mov eax, dword [edx + eax*4]
test eax, eax
jne 0x6f502558
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [esp], ebx
mov dword [ebp - 0x84], eax
call eax
mov eax, dword [edi + 0x4e8]
sub esp, 4
test eax, eax
je 0x6f502690
mov eax, dword [edi + 0x4d0]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
add eax, 0x1800
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x90], eax
call eax
mov ebx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0x4e4]
sub esp, 0xc
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov dword [esp + 4], esi
call sym.___umoddi3
mov ecx, dword [edi + 0x4ec]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x54], eax
mov eax, ecx
cdq
mov dword [ebp - 0x78], ecx
mov ecx, ebx
mov ebx, esi
sub ecx, dword [ebp - 0x48]
sbb ebx, dword [ebp - 0x44]
cmp dword [ebp - 0x78], ecx
mov ecx, edx
sbb ecx, ebx
jb 0x6f5021f3
mov ecx, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
cmp ecx, eax
mov esi, ebx
sbb esi, edx
jb 0x6f5021f3
mov ebx, ecx
sub ebx, dword [ebp - 0x78]
mov dword [ebp - 0x54], ebx
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x6f5023e8
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x78]
mov ebx, eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x28]
sub ebx, ecx
mov dword [ebp - 0x58], eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x9c], eax
jmp 0x6f502307
mov eax, ebx
xor edx, edx
div dword [edi + 0x4f8]
mov eax, dword [edi + 0x4f4]
mov dword [eax + edx*8], ebx
mov dword [eax + edx*8 + 4], 0
mov eax, dword [edi + 0x4f0]
lea esi, [eax + edx*4]
mov eax, dword [esi]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x6f5023a0
mov eax, dword [ebp - 0x5c]
xor edx, edx
mov ecx, edx
mov edx, ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
mov eax, edi
call sym.__chm_get_cmpblock_bounds
test eax, eax
je 0x6f502360
cmp dword [edi], 0xffffffff
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
je 0x6f502350
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov eax, edi
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x40]
call sym.__chm_fetch_bytes.part.0
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
xor eax, ecx
xor edx, esi
or edx, eax
jne 0x6f502360
mov eax, dword [edi + 0x4d0]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x4e8]
mov dword [esp], eax
call sym._LZXdecompress
test eax, eax
jne 0x6f502360
mov dword [edi + 0x4ec], ebx
inc ebx
cmp ebx, dword [ebp - 0x54]
je 0x6f502400
mov esi, dword [edi + 0x4ec]
cmp ebx, esi
je 0x6f5022f7
mov eax, ebx
xor edx, edx
div dword [edi + 0x4e4]
test edx, edx
jne 0x6f502230
mov eax, dword [edi + 0x4e8]
mov dword [esp], eax
call sym._LZXreset
jmp 0x6f502230
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x6c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
xor edx, edx
xor edx, esi
xor eax, ecx
or edx, eax
je 0x6f5022c3
mov ebx, dword [ebp - 0x40]
mov dword [esp + 4], 0
xor esi, esi
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
xor ebx, ebx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x48], 0
xor ecx, ecx
sub esp, 0xc
jmp 0x6f5024e1
mov eax, dword [edi + 0x4d0]
mov dword [esp + 4], 0
mov dword [ebp - 0x48], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x90]
call eax
mov edx, dword [ebp - 0x48]
mov dword [esi], eax
mov eax, dword [edi + 0x4f0]
sub esp, 0xc
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x48], eax
jmp 0x6f502261
lea ebx, [ebp - 0x20]
mov dword [ebp - 0x5c], ebx
lea ebx, [ebp - 0x28]
mov dword [ebp - 0x58], ebx
mov ebx, dword [ebp - 0x44]
or ebx, dword [ebp - 0x48]
je 0x6f5025e0
mov eax, dword [edi + 0x4f8]
mov edx, dword [ebp - 0x4c]
mov dword [esp + 8], eax
sar eax, 0x1f
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.___umoddi3
mov ecx, dword [ebp - 0x88]
mov ebx, eax
mov eax, dword [edi + 0x4f4]
mov dword [eax + ebx*8], ecx
mov ecx, dword [ebp - 0x8c]
mov dword [eax + ebx*8 + 4], ecx
mov eax, dword [edi + 0x4f0]
lea edx, [eax + ebx*4]
mov esi, dword [edx]
test esi, esi
je 0x6f5026c8
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
mov eax, edi
call sym.__chm_get_cmpblock_bounds
test eax, eax
je 0x6f5024af
cmp dword [edi], 0xffffffff
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
je 0x6f5026b8
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
mov eax, edi
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x40]
call sym.__chm_fetch_bytes.part.0
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
xor edx, ebx
xor eax, ecx
or edx, eax
je 0x6f5025f8
mov ebx, dword [ebp - 0x40]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
xor ebx, ebx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x48], 0
xor ecx, ecx
sub esp, 0xc
mov eax, dword [ebp - 0x48]
add esi, dword [ebp - 0x80]
mov dword [ebp - 0x40], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x3c], ebx
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0x7c]
mov dword [esp], eax
mov eax, dword [ebp - 0x84]
call eax
mov ecx, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
sub esp, 4
mov eax, ebx
or eax, ecx
je 0x6f50233e
add dword [ebp - 0x70], ecx
adc dword [ebp - 0x6c], ebx
sub dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
sbb dword [ebp - 0x34], ebx
mov edx, dword [ebp - 0x34]
add dword [ebp - 0x68], ecx
adc dword [ebp - 0x64], ebx
add dword [ebp - 0x60], ecx
mov ecx, edx
or ecx, eax
jne 0x6f502030
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x6c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x60]
add esi, eax
mov eax, dword [ebp - 0x94]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
call sym._memcpy
mov dword [esp], ebx
mov ebx, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
call ebx
mov ecx, dword [ebp - 0x7c]
sub esp, 4
mov dword [esp], ecx
call ebx
mov ecx, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x98]
sub esp, 4
jmp 0x6f502517
cmp dword [edi], 0xffffffff
je 0x6f502330
mov esi, dword [ebp - 0x74]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp + 0x14], edx
mov edx, dword [ebp - 0x64]
add eax, dword [esi]
adc edx, dword [esi + 4]
add eax, dword [edi + 0x60]
adc edx, dword [edi + 0x64]
mov dword [ebp + 0xc], edx
mov edx, dword [ebp - 0x60]
mov dword [ebp + 8], eax
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
jmp sym.__chm_fetch_bytes.part.0
mov eax, dword [edi + 0x4e8]
mov dword [esp], eax
call sym._LZXreset
jmp 0x6f502400
mov eax, dword [edi + 0x4d0]
mov ebx, dword [ebp - 0x40]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 0x10], eax
mov dword [esp + 4], ebx
mov eax, dword [edi + 0x4e8]
mov dword [esp], eax
call sym._LZXdecompress
test eax, eax
jne 0x6f5024af
mov eax, dword [ebp - 0x50]
mov dword [edi + 0x4ec], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [edi + 0x4d0]
mov ebx, dword [ebp - 0x94]
mov edx, dword [edi + 0x4d4]
mov ecx, dword [ebp - 0x98]
sub esp, 0xc
cmp ebx, eax
sbb ecx, edx
mov ecx, ebx
cmovae ecx, eax
mov eax, dword [ebp - 0x98]
cmovae eax, edx
mov dword [ebp - 0x48], ecx
mov ebx, eax
jmp 0x6f5024e1
mov dword [edi + 0x4ec], 0xffffffff
mov eax, dword [edi + 0x4dc]
mov dword [esp], eax
call sym._LZXinit
mov dword [edi + 0x4e8], eax
jmp 0x6f502154
xor eax, eax
xor edx, edx
jmp 0x6f5024a3
mov ecx, dword [edi + 0x4d0]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x48], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x90]
call eax
mov edx, dword [ebp - 0x48]
sub esp, 0xc
mov dword [edx], eax
mov eax, dword [edi + 0x4f0]
mov esi, dword [eax + ebx*4]
jmp 0x6f502451