Function at 0x4088c0
Capabilities:
Encode data using xor
Hash data using fnv
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ee94
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x500
mov eax, dword [0x67f3c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x300], eax
mov eax, dword [ebx + 0xc]
push 0x240
mov dword [ebp - 0x304], eax
lea eax, [ebp - 0x2f8]
push 0
push eax
mov dword [ebp - 0x2fc], edx
call fcn.00513df0
add esp, 0xc
lea ecx, [ebp - 0x2f8]
call fcn.00434920
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
call fcn.0041c9e0
add esp, 4
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.004058c0
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x309], al
mov byte [ebp - 4], 0
call fcn.00413120
cmp byte [ebp - 0x309], 0
jne 0x40899a
push 0
push str.Error
push str.Injection_failed:_stage_1
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 0x309], 0
jmp 0x408ea1
mov eax, dword [0x6800e8]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea ecx, [eax - 9]
cmp eax, ecx
jb 0x408ed0
cmp dword [0x6800ec], 8
mov eax, 0x6800d8
push 9
cmovae eax, dword [0x6800d8]
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0x50]
call fcn.00408810
mov byte [ebp - 4], 2
mov eax, dword [0x6800e8]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [eax - 9]
cmp eax, ecx
jb 0x408ed5
cmp dword [0x6800ec], 8
mov eax, 0x6800d8
push 9
cmovae eax, dword [0x6800d8]
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408810
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
push 9
push str.Dofus.exe
call fcn.00415530
xor ecx, ecx
add esp, 8
test eax, eax
sete cl
mov dword [ebp - 0x310], ecx
lea ecx, [ebp - 0x2c]
call fcn.00413120
push 0
push 0x574e2c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00408810
sub esp, 8
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x2f8]
push eax
sub esp, 0xc
call fcn.00434e20
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
mov esi, eax
call fcn.00413120
test esi, esi
jns 0x408ac4
push 0
push str.Error
push str.Injection_failed:_process_creation_failed
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x408e92
sub esp, 0x20
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x130]
push eax
call fcn.0042e7d0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x24], 0
jl 0x408e42
cmp byte [ebp - 0x18], 0
je 0x408e42
push 0x574e2c
push str.HookProcess
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x2e8]
call fcn.004357a0
mov byte [ebp - 4], 5
cmp dword [ebp - 0xb8], 0
jge 0x408b5d
cmp byte [ebp - 0x70], 0
je 0x408b5d
push 0
push dword [ebp - 0x2f8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push str.Error
push str.Injection_failed:_stage_3
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp byte [ebp - 0x70], 0
je 0x408e64
lea ecx, [ebp - 0xb0]
call fcn.00416e70
jmp 0x408e64
mov ecx, dword [ebp - 0xac]
sub esp, 8
mov edx, dword [ebp - 0xb0]
mov eax, esp
xorps xmm0, xmm0
movups xmmword [ebp - 0x68], xmm0
push ecx
movq qword [ebp - 0x58], xmm0
lea ecx, [ebp - 0x68]
mov dword [eax], 0
mov dword [eax + 4], 0
lea eax, [ebp - 0x2f8]
push edx
push eax
call fcn.00408f20
cmp dword [0x682b44], 8
lea ecx, [ebp - 0x510]
mov eax, 0x682b30
cmovae eax, dword [0x682b30]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call fcn.004161c0
lea eax, [ebp - 0x2fc]
push eax
lea ecx, [ebp - 0x4c8]
call fcn.00416290
mov eax, dword [0x67fe7c]
lea ecx, [ebp - 0x480]
mov dword [ebp - 0x2fc], eax
inc eax
mov dword [0x67fe7c], eax
lea eax, [ebp - 0x2fc]
push eax
call fcn.004156f0
lea eax, [ebp - 0x300]
push eax
lea ecx, [ebp - 0x438]
call fcn.00416290
lea eax, [ebp - 0x304]
push eax
lea ecx, [ebp - 0x3f0]
call fcn.00416290
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebp - 0x3a8]
call fcn.00416350
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x360]
call fcn.004156f0
lea eax, [ebp - 0x510]
mov dword [ebp - 0x308], 0
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x318]
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x304], 0
lea eax, [ebp - 0x314]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x38]
call fcn.00412140
sub esp, 8
mov byte [ebp - 4], 9
mov eax, esp
lea ecx, [ebp - 0x68]
mov dword [eax], 0
mov dword [eax + 4], 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.00412730
lea ecx, [ebp - 0x38]
call fcn.004136e0
mov byte [ebp - 4], 6
push 0x405e90
push 7
push 0x48
lea eax, [ebp - 0x510]
push eax
call fcn.00511e79
mov edi, dword [ebp - 0x54]
or esi, 0xffffffff
test edi, edi
je 0x408ce9
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x408ce9
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x408ce9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp byte [ebp - 0x70], 0
je 0x408cfa
lea ecx, [ebp - 0xb0]
call fcn.00416e70
mov byte [ebp - 4], 2
cmp byte [ebp - 0x18], 0
je 0x408d29
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x408d29
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x408d29
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x408d29
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
call fcn.004347a0
push 0xf
mov esi, eax
mov dword [ebp - 0x2c], 0
push 0x667904
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x310], esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.0040db70
mov byte [ebp - 4], 0xa
call fcn.00449440
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
mov edi, dword [ebp - 0x2c]
mov edx, 0x811c9dc5
setae byte [ebp - 0x309]
cmovae esi, edi
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
jbe 0x408da2
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [ebp - 0x1c]
jb 0x408d90
mov esi, dword [ebp - 0x310]
lea eax, [ebp - 0x2c]
push edx
push eax
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00435240
mov eax, dword [eax + 4]
test eax, eax
je 0x408deb
cmp eax, dword [esi + 4]
je 0x408deb
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x310], eax
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x310]
test eax, eax
je 0x408df5
push dword [ebp - 0x2f8]
call eax
jmp 0x408df5
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x309], 0
mov byte [ebp - 4], 2
je 0x408e2e
mov ecx, dword [ebp - 0x18]
mov eax, edi
inc ecx
cmp ecx, 0x1000
jb 0x408e24
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408eda
push ecx
push edi
call fcn.005121df
add esp, 8
lea ecx, [ebp - 0x2f8]
call fcn.00434fc0
mov byte [ebp - 0x309], 1
jmp 0x408e99
push 0
push dword [ebp - 0x2f8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push str.Error
push str.Injection_failed:_stage_2
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp byte [ebp - 0x18], 0
je 0x408e92
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x408e92
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x408e92
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x408e92
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 0x309], 0
lea ecx, [ebp - 0x50]
call fcn.00413120
lea ecx, [ebp - 0x2f8]
call fcn.00434cb0
mov al, byte [ebp - 0x309]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00511a59
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00413d60
call fcn.00413d60
call fcn.00520c6d
int3