Function at 0x404cf0
Capabilities:
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x110
mov edi, edx
mov ebx, ecx
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [esp + 0x108], eax
test byte [ecx + 0x10], 4
jne 0x404d45
test edi, edi
je 0x404d45
mov ecx, ebx
mov ebx, edi
mov esi, edi
mov al, byte [edi]
cmp al, 0xff
je 0x4058dc
mov edi, esi
cmp al, 0xeb
je 0x4059f4
cmp esi, edi
jne 0x404d1f
mov edi, ebx
cmp esi, ebx
mov ebx, ecx
jne 0x405c10
mov dword [esp + 0x80], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], 0
mov dword [esp + 0x18], ebx
mov eax, dword [0x438404]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x404dbc
push 0x438404
call fcn.00409b1a
add esp, 4
cmp dword [0x438404], 0xffffffff
jne 0x404dbc
lea esi, [esp + 0xb0]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x1c]
mov dword [0x438400], eax
push 0x438404
call fcn.00409ad0
add esp, 4
mov eax, dword [0x438400]
mov dword [esp + 0xc], eax
xor ebx, ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ebx
mov eax, dword [0x43840c]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4056a4
push 0x438410
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esp + 0x58], 0
jne 0x4058f2
mov dword [esp + 0x10], 0
mov edi, dword [0x4383fc]
test edi, edi
jne 0x404e3d
mov esi, 0xc
push esi
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov edi, eax
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi], esi
mov dword [0x4383fc], edi
cmp byte [esp + 0x58], 0
jne 0x405929
cmp dword [edi + 4], 0
jne 0x404ea3
push 0x14
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov esi, eax
xorps xmm0, xmm0
movups xmmword [eax + 4], xmm0
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
jne 0x404e74
mov ecx, edi
call fcn.004063e0
mov eax, dword [edi + 4]
lea eax, [eax + eax*2]
mov ecx, dword [edi]
mov dword [ecx + eax*4 + 4], ebx
mov edx, dword [esp + 0x10]
mov dword [ecx + eax*4], edx
mov dword [ecx + eax*4 + 8], esi
inc dword [edi + 4]
mov edi, dword [0x4383fc]
test edi, edi
je 0x4059e9
cmp dword [edi + 4], 0
je 0x4059e9
mov esi, dword [edi]
cmp dword [esp + 0xc], 0
je 0x40585a
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x40585a
cmp dword [ebx + 4], 0
jne 0x404f67
mov edi, ebx
mov eax, dword [0x438404]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x404f1d
push 0x438404
call fcn.00409b1a
add esp, 4
cmp dword [0x438404], 0xffffffff
jne 0x404f1d
lea esi, [esp + 0xb0]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x1c]
mov dword [0x438400], eax
push 0x438404
call fcn.00409ad0
add esp, 4
mov ebx, dword [0x438400]
mov ecx, dword [esp + 0xc]
mov eax, ecx
xor edx, edx
div ebx
sub ebx, edx
test edx, edx
cmove ebx, edx
add ebx, ecx
mov dword [edi + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp byte [esp + 0x58], 0
jne 0x405c21
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x405ce9
mov ebx, edi
mov dword [edi + 4], eax
mov esi, dword [ebx + 8]
push 0x438410
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
cmove ebx, esi
je 0x405865
mov eax, dword [0x43840c]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4056ec
push 0x438410
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 4]
test eax, eax
je 0x405845
mov edi, dword [ebx + 0x10]
shl edi, 7
mov edx, edi
or edx, 0x7f
mov ecx, dword [ebx + 0xc]
cmp edx, ecx
jb 0x405041
cmp ecx, dword [ebx + 8]
jae 0x405845
mov eax, dword [0x438438]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x405776
mov eax, dword [ebx + 4]
add eax, dword [ebx + 0xc]
push 0x20
push 0x1000
push dword [0x438434]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x405845
mov eax, dword [0x438438]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4057b8
mov eax, dword [0x438434]
add dword [ebx + 0xc], eax
mov eax, dword [ebx + 4]
add edi, eax
lea eax, [esp + 0xb4]
mov dword [eax - 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov ecx, 0x80
mov dword [eax + 0x14], ecx
mov byte [eax + 0x18], 1
push eax
push 0x40
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x405a39
mov edx, dword [esp + 0xb0]
test edx, edx
je 0x405a49
mov edi, dword [esp + 0xb4]
mov esi, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
mov al, byte [esp + 0xcc]
mov dword [esp + 0xc], esi
test esi, esi
je 0x4050be
test ecx, ecx
je 0x4050be
test edi, edi
je 0x4050be
test al, al
je 0x4050be
inc dword [ebx + 0x10]
mov byte [esp + 0x24], al
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], ecx
mov esi, dword [esp + 0xc0]
mov dword [esp + 0x2c], esi
mov ebx, dword [esp + 0xc4]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], ebx
mov esi, dword [esp + 0xc8]
mov dword [esp + 0x28], esi
mov dword [esp + 0x68], esi
mov byte [esp + 0x6c], al
mov byte [esp + 0x70], 1
push 0x438410
mov ebx, ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dl, byte [esp + 0x24]
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], edi
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], eax
mov byte [esp + 0x4c], dl
xor eax, eax
mov dword [esp + 0x54], eax
mov byte [esp + 0x6c], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test esi, esi
je 0x405194
cmp dword [esp + 0x20], 0
je 0x405618
cmp dword [esp + 0xc], 0
je 0x405618
cmp dword [esp + 0x10], 0
je 0x405618
test dl, dl
je 0x405618
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov ecx, dword [esp + 0x40]
lea edx, [ecx + 4]
cmp dword [esp + 0x30], 0
je 0x405a6e
cmp edx, dword [esp + 0x48]
ja 0x405a77
mov edx, dword [esp + 0x38]
mov dword [edx + ecx], eax
add dword [esp + 0x40], 4
cmp dword [esp + 0x30], 0
je 0x4051fa
mov al, byte [esp + 0x4c]
cmp dword [esp + 0x38], 0
je 0x405618
cmp dword [esp + 0x3c], 0
je 0x405618
cmp dword [esp + 0x34], 0
je 0x405618
test al, al
je 0x405618
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
lea edi, [ecx + 4]
test edx, edx
je 0x405a83
cmp edi, dword [esp + 0x48]
ja 0x405acd
mov edx, dword [esp + 0x38]
mov dword [edx + ecx], eax
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x40]
add edi, 4
mov dword [esp + 0x40], edi
test eax, eax
je 0x405a87
mov dword [esp + 0xc], eax
mov al, byte [esp + 0x4c]
cmp dword [esp + 0x38], 0
je 0x40560c
cmp dword [esp + 0x3c], 0
je 0x40560c
cmp dword [esp + 0x34], 0
je 0x40560c
test al, al
je 0x40560c
mov dword [esp + 0x44], edi
xor eax, eax
dec eax
mov dword [esp + 0x18], eax
xor ebx, ebx
xor eax, eax
mov esi, ebx
mov ecx, dword [esp + 0x14]
mov cl, byte [ecx + esi]
mov edx, ecx
cmp cl, 0x63
jg 0x4052ba
add dl, 0x10
cmp dl, 3
ja 0x4052a0
cmp dl, 1
jne 0x405adf
add cl, 0xd2
cmp cl, 0x10
ja 0x4052d8
movzx ecx, cl
mov edx, 0x10101
bt edx, ecx
jae 0x4052d8
jmp 0x4057fa
add dl, 0x9c
cmp dl, 2
jb 0x4057fa
cmp cl, 0x66
je 0x40586c
cmp cl, 0x67
je 0x405878
test al, 0xc
jne 0x40560c
mov dword [esp + 0x88], esi
mov edx, dword [esp + 0x14]
mov al, byte [edx + esi]
mov ecx, eax
and cl, 0xfc
cmp cl, 0x88
jne 0x40532c
lea eax, [esi + 1]
mov dword [esp + 0x88], eax
movzx eax, byte [edx + esi + 1]
mov edx, eax
shr edx, 6
cmp edx, 3
jne 0x405812
add esi, 2
mov ebx, esi
mov dword [esp + 0x88], ebx
cmp ebx, 5
jb 0x40527d
jmp 0x40537c
cmp al, 0xe
jg 0x405341
cmp al, 0xa1
je 0x40580a
cmp al, 0xb8
jne 0x405351
jmp 0x40580a
cmp al, 0x33
je 0x405ba5
cmp al, 0xf
je 0x405bb9
mov ecx, eax
and cl, 0xf8
cmp cl, 0x40
je 0x405379
cmp al, 0x68
je 0x40580a
cmp al, 0x83
je 0x4058a7
mov ecx, eax
and cl, 0xf0
cmp cl, 0x50
jne 0x4058bf
inc esi
jmp 0x405318
lea eax, [edi + ebx]
cmp dword [esp + 0xc], 0
je 0x405aee
cmp eax, dword [esp + 0x48]
ja 0x405b01
add edi, dword [esp + 0x38]
push ebx
push dword [esp + 0x18]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x40]
add eax, ebx
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x405af2
mov dword [esp + 0xc], ecx
mov cl, byte [esp + 0x4c]
mov edi, eax
cmp dword [esp + 0x38], 0
je 0x40560c
cmp dword [esp + 0x3c], 0
je 0x40560c
cmp dword [esp + 0x34], 0
je 0x40560c
test cl, cl
je 0x40560c
xor ecx, ecx
mov eax, edi
cmp ebx, 0x64
ja 0x40560c
mov edx, dword [esp + 0x18]
test edx, edx
jns 0x405b0d
test cl, cl
jne 0x405b2b
cmp eax, dword [esp + 0x48]
jae 0x405b38
mov ecx, dword [esp + 0x38]
mov byte [ecx + eax], 0xe9
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
test ecx, ecx
je 0x405b2c
lea ecx, [eax + 4]
cmp ecx, dword [esp + 0x48]
ja 0x405b21
mov edx, dword [esp + 0x14]
add edx, ebx
sub edx, eax
sub edx, dword [esp + 0x3c]
add edx, 0xfffffffc
mov ecx, dword [esp + 0x38]
mov dword [ecx + eax], edx
add dword [esp + 0x40], 4
cmp byte [esp + 0x4c], 0
je 0x40560c
cmp dword [esp + 0x30], 0
je 0x40560c
mov edi, dword [esp + 0x44]
add edi, dword [esp + 0x3c]
je 0x40560c
xor ebx, ebx
lea ecx, [esp + 0x80]
lea esi, [esp + 0xb0]
mov edx, esi
push ebx
push ebx
call fcn.00405f80
add esp, 8
cmp dword [esi + 0x3c], ebx
je 0x4055ad
cmp byte [esp + 0xe0], 0
je 0x4055ad
lea esi, [esp + 0xc4]
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
mov ebx, dword [ebp + 8]
je 0x405b64
mov ecx, dword [esp + 0xc4]
mov byte [ecx + eax], 0xe9
mov ecx, dword [esp + 0xbc]
mov eax, dword [esp + 0xc8]
inc eax
mov dword [esp + 0xc8], eax
inc ecx
mov dword [esp + 0xbc], ecx
sub ebx, ecx
sub ebx, dword [esp + 0xb4]
lea ecx, [eax + 4]
cmp ecx, dword [esp + 0xcc]
ja 0x405b85
add ebx, 0xfffffffc
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov esi, dword [esp + 0xc4]
mov byte [esi + eax], bl
mov byte [esi + eax + 1], bh
mov byte [esi + eax + 2], cl
mov byte [esi + eax + 3], dl
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xec]
add eax, 4
mov dword [esp + 0xc8], eax
add dword [esp + 0xbc], 4
cmp byte [esp + 0xe0], 0
je 0x4055ad
test ecx, ecx
je 0x4055ad
test eax, eax
je 0x4055a8
mov ecx, dword [esp + 0xc0]
add ecx, dword [esp + 0xb4]
push eax
push dword [esp + 0xc8]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor esi, esi
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [esp + 0xc8]
add dword [esp + 0xc0], eax
mov dword [esp + 0xc8], esi
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [0x438438]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x405734
mov esi, dword [esp + 0xe8]
mov eax, dword [esp + 0xec]
test eax, eax
jne 0x405674
lea eax, [esp + 0xf4]
mov dword [eax - 8], 0
cmp esi, eax
jne 0x405b46
lea ecx, [esp + 0xd0]
mov eax, dword [ecx - 0xc]
cmp eax, ecx
jne 0x405b55
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x405a94
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
setne bl
mov eax, dword [esp + 0x38]
test eax, eax
je 0x405641
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x405641
lea edx, [esp + 0x34]
push edx
push ecx
push dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp byte [esp + 0x70], 0
je 0x40565c
mov eax, dword [esp + 0x58]
test eax, eax
je 0x40565c
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x405cfb
mov ecx, dword [esp + 0x108]
xor ecx, ebp
call fcn.0040a740
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [0x438434]
lea ebx, [esi + eax*8]
lea eax, [esp + 0x8c]
push eax
push dword [esi]
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esi, 8
cmp esi, ebx
jne 0x40567d
mov esi, dword [esp + 0xe8]
jmp 0x4055e4
push 0x43840c
call fcn.00409b1a
add esp, 4
cmp dword [0x43840c], 0xffffffff
jne 0x404df4
push 0x1000000
push 0xfa0
push 0x438410
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
mov byte [0x438408], 1
push 0x43840c
call fcn.00409ad0
add esp, 4
jmp 0x404df4
push 0x43840c
call fcn.00409b1a
add esp, 4
cmp dword [0x43840c], 0xffffffff
jne 0x404fa1
push 0x1000000
push 0xfa0
push 0x438410
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
mov byte [0x438408], 1
push 0x43840c
call fcn.00409ad0
add esp, 4
jmp 0x404fa1
push 0x438438
call fcn.00409b1a
add esp, 4
cmp dword [0x438438], 0xffffffff
jne 0x4055ce
lea esi, [esp + 0x8c]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x438434], eax
push 0x438438
call fcn.00409ad0
add esp, 4
jmp 0x4055ce
push 0x438438
call fcn.00409b1a
add esp, 4
cmp dword [0x438438], 0xffffffff
jne 0x404ff3
lea esi, [esp + 0xb0]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x438434], eax
push 0x438438
call fcn.00409ad0
add esp, 4
jmp 0x404ff3
push 0x438438
call fcn.00409b1a
add esp, 4
cmp dword [0x438438], 0xffffffff
jne 0x405036
lea esi, [esp + 0xb0]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x438434], eax
push 0x438438
call fcn.00409ad0
add esp, 4
jmp 0x405036
test al, 2
jne 0x40560c
or al, 2
inc esi
jmp 0x405281
add esi, 5
jmp 0x405318
test edx, edx
jne 0x405884
mov ecx, eax
and cl, 7
cmp cl, 5
je 0x40588e
cmp cl, 4
jne 0x405d2d
mov ecx, dword [esp + 0x14]
mov cl, byte [ecx + esi + 2]
and cl, 7
xor edx, edx
cmp cl, 5
sete dl
lea ecx, [edx*4 + 1]
jmp 0x405893
xorps xmm0, xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x70], 0
push 0x438410
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
jmp 0x40565c
test al, 4
jne 0x40560c
or al, 4
jmp 0x405804
test al, 8
jne 0x40560c
or al, 8
jmp 0x405804
mov ecx, 2
cmp edx, 1
je 0x405893
mov ecx, 5
and al, 7
xor edx, edx
cmp al, 4
sete dl
add edx, ecx
lea ebx, [esi + edx]
inc ebx
jmp 0x40531a
mov eax, dword [esp + 0x14]
mov al, byte [eax + esi + 1]
cmp al, 0xc0
jb 0x405bf0
add esi, 3
jmp 0x405318
cmp al, 0xe9
je 0x405d4c
cmp al, 0xff
je 0x405d35
cmp al, 0x6a
je 0x405315
jmp 0x40560c
cmp byte [esi + 1], 0x25
mov edi, esi
jne 0x404d35
mov eax, dword [esi + 2]
mov edi, dword [eax]
jmp 0x404d35
lea esi, [esp + 0x50]
lea ecx, [esp + 0xb0]
mov dword [ecx], esi
mov dword [ecx + 4], 0
call fcn.00409a90
mov dword [esp + 0x10], eax
cmp byte [esi + 8], 0
je 0x404e12
lea ecx, [esp + 0x50]
call fcn.0042df40
mov ebx, eax
jmp 0x404e12
mov esi, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], esi
mov eax, ecx
mov dword [esp + 0x1c], ecx
test ecx, ecx
jle 0x405976
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x10]
shr edx, 1
lea eax, [edx + edx*2]
cmp dword [esi + eax*4], ecx
jae 0x40596c
lea esi, [esi + eax*4]
add esi, 0xc
not edx
add edx, dword [esp + 0x24]
mov dword [esp + 0x24], edx
test edx, edx
jg 0x40594c
jmp 0x405976
jne 0x405962
cmp dword [esi + eax*4 + 4], ebx
jb 0x405956
jmp 0x405962
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax*2]
mov ecx, dword [esp + 0x20]
lea eax, [ecx + eax*4]
cmp esi, eax
je 0x405999
mov eax, dword [esp + 0x10]
cmp dword [esi], eax
ja 0x405999
cmp dword [esi + 4], ebx
jae 0x404ea5
lea ecx, [esp + 0xb0]
mov dword [ecx + 4], ebx
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
mov ebx, ecx
push 0x14
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
xorps xmm0, xmm0
movups xmmword [eax + 4], xmm0
mov dword [ebx + 8], eax
mov ecx, edi
mov edx, esi
push ebx
call fcn.0042df90
add esp, 4
mov esi, eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x404ea5
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x404ea5
int3
movsx eax, byte [esi + 1]
add eax, esi
add eax, 2
mov dword [esp + 0x14], eax
sub eax, esi
shl eax, 0x18
add eax, 0xfe000000
mov edi, esi
test eax, eax
jle 0x404d35
sar eax, 0x18
xor edi, edi
mov dl, 1
cmp byte [edi + esi + 2], 0x90
jne 0x405d58
movsx edi, dl
inc dl
cmp eax, edi
jg 0x405a1c
mov edi, dword [esp + 0x14]
jmp 0x404d35
mov dword [esp + 0xb4], 0
jmp 0x40507c
mov edi, dword [esp + 0xb4]
mov eax, dword [esp + 0xb8]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0xbc]
mov al, byte [esp + 0xcc]
jmp 0x4050bb
mov dword [esp + 0x40], edx
jmp 0x4051fa
mov byte [esp + 0x4c], 0
xor eax, eax
jmp 0x4051d1
mov dword [esp + 0x40], edi
mov dword [esp + 0xc], 0
jmp 0x405270
xor esi, esi
mov dword [esp + 0x40], esi
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov ecx, dword [esp + 0x40]
lea edx, [ecx + 4]
cmp dword [esp + 0x30], esi
je 0x405f5e
cmp edx, dword [esp + 0x48]
ja 0x405f67
mov edx, dword [esp + 0x38]
mov dword [edx + ecx], eax
add dword [esp + 0x40], 4
jmp 0x405618
mov dword [esp + 0xc], edx
mov byte [esp + 0x4c], 0
xor eax, eax
mov edi, ecx
jmp 0x405247
test al, 1
jne 0x40560c
or al, 1
jmp 0x405804
mov dword [esp + 0x40], eax
mov dword [esp + 0xc], 0
mov cl, 1
jmp 0x4053f3
mov byte [esp + 0x4c], 0
xor ecx, ecx
jmp 0x4053c6
mov eax, dword [esp + 0x44]
lea ecx, [edx + eax]
add ecx, 5
cmp ecx, dword [esp + 0x48]
jbe 0x405d10
mov byte [esp + 0x4c], 0
jmp 0x40545f
inc eax
add eax, 4
mov dword [esp + 0x40], eax
jmp 0x40545f
mov byte [esp + 0x4c], 0
mov ecx, dword [esp + 0xc]
jmp 0x40542f
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x4055fa
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x40560c
xor edx, edx
inc edx
mov ecx, esi
call fcn.00408210
test al, al
je 0x405f02
mov eax, dword [esp + 0xc8]
mov ebx, dword [ebp + 8]
jmp 0x4054cc
mov ecx, esi
mov edx, 4
call fcn.00408210
test al, al
je 0x405f20
mov eax, dword [esp + 0xc8]
jmp 0x40550e
mov eax, dword [esp + 0x14]
cmp byte [eax + esi + 1], 0xc0
jae 0x405315
jmp 0x40560c
mov eax, dword [esp + 0x14]
mov al, byte [eax + esi + 1]
and al, 0xfe
cmp al, 0x10
jne 0x40560c
lea eax, [esi + 2]
lea ecx, [esp + 0x80]
mov dword [ecx + 8], eax
call fcn.0042e2d0
test eax, eax
js 0x40560c
lea ebx, [eax + esi]
add ebx, 2
jmp 0x40531a
mov ecx, eax
and cl, 0xc0
cmp cl, 0x40
jne 0x40560c
and al, 7
cmp al, 4
je 0x40560c
add esi, 4
jmp 0x405318
mov ecx, esi
call fcn.0042ded0
test al, al
cmovne edi, esi
jmp 0x404d45
mov esi, eax
lea eax, [esp + 0x50]
lea ecx, [esp + 0xb0]
mov dword [ecx], eax
mov dword [ecx + 4], 0
call fcn.00409a90
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x50]
call fcn.0042df40
mov dword [esp + 0xc], eax
mov eax, dword [0x438430]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x405f2d
mov ecx, dword [0x43842c]
test ecx, ecx
je 0x405d5f
lea eax, [esp + 0x8c]
mov edx, dword [esp + 0x10]
mov dword [eax], edx
mov edx, dword [esp + 0xc]
mov dword [eax + 4], edx
xor edx, edx
mov dword [eax + 8], edx
xorps xmm0, xmm0
movaps xmmword [esp + 0xb0], xmm0
mov dword [esp + 0xb4], edx
xor edx, edx
inc edx
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb8], eax
call dword [section..00cfg]
xor edx, edx
inc edx
push edx
lea eax, [esp + 0xb4]
push eax
push edx
push 0x2000
push ebx
xor eax, eax
push eax
push esi
call ecx
mov ebx, edi
mov dword [edi + 4], eax
test eax, eax
jne 0x404f67
jmp 0x40585a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], 0
jmp 0x40585a
lea edx, [esp + 0x54]
push edx
push ecx
push dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x40565c
mov ecx, dword [esp + 0x18]
add ecx, eax
inc ecx
mov edx, dword [esp + 0x14]
sub edx, eax
sub edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
add dword [eax + ecx], edx
jmp 0x40545f
xor ecx, ecx
inc ecx
jmp 0x405893
mov eax, dword [esp + 0x14]
cmp byte [eax + esi + 1], 0x25
jne 0x40560c
add esi, 6
jmp 0x405318
lea ebx, [esi + 5]
mov dword [esp + 0x18], esi
jmp 0x40531a
mov edi, esi
jmp 0x404d35
mov eax, dword [esp + 0xc]
inc eax
mov ecx, esi
mov edx, ebx
mov dword [esp + 0xc], eax
push eax
push dword [esp + 0x14]
call fcn.0042e130
add esp, 8
test eax, eax
je 0x405cef
push 1
push 0x2000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x404f62
mov ecx, esi
mov edx, ebx
push dword [esp + 0xc]
push dword [esp + 0x14]
call fcn.0042e130
add esp, 8
test eax, eax
je 0x405cef
push 1
push 0x2000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x404f62
mov ecx, esi
mov edx, ebx
push dword [esp + 0xc]
push dword [esp + 0x14]
call fcn.0042e130
add esp, 8
test eax, eax
je 0x405cef
push 1
push 0x2000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x404f62
mov ecx, esi
mov edx, ebx
push dword [esp + 0xc]
push dword [esp + 0x14]
call fcn.0042e130
add esp, 8
test eax, eax
je 0x405cef
push 1
push 0x2000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x404f62
mov ecx, esi
mov edx, ebx
push dword [esp + 0xc]
push dword [esp + 0x14]
call fcn.0042e130
add esp, 8
test eax, eax
je 0x405cef
push 1
push 0x2000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x404f62
mov ecx, esi
mov edx, ebx
push dword [esp + 0xc]
push dword [esp + 0x14]
call fcn.0042e130
add esp, 8
test eax, eax
je 0x405cef
push 1
push 0x2000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x404f62
mov ecx, esi
mov edx, ebx
push dword [esp + 0xc]
push dword [esp + 0x14]
call fcn.0042e130
add esp, 8
test eax, eax
je 0x405cef
push 1
push 0x2000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x404f62
mov ecx, esi
mov edx, ebx
push dword [esp + 0xc]
push dword [esp + 0x14]
call fcn.0042e130
add esp, 8
test eax, eax
je 0x405cef
push 1
push 0x2000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x404f62
jmp 0x404f4a
mov byte [esp + 0xe0], 0
mov ecx, dword [esp + 0xbc]
mov eax, dword [esp + 0xc8]
mov ebx, dword [ebp + 8]
jmp 0x4054f5
mov byte [esp + 0xe0], 0
jmp 0x4055ad
push 0x438430
call fcn.00409b1a
add esp, 4
cmp dword [0x438430], 0xffffffff
jne 0x405c6e
call fcn.0042e0e0
push 0x438430
call fcn.00409ad0
add esp, 4
jmp 0x405c6e
mov dword [esp + 0x40], edx
jmp 0x405618
mov byte [esp + 0x4c], 0
jmp 0x405618