Function at 0x4216f0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4318f6
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x44100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x148], ecx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x124], eax
mov dword [eax + 0x14], 0
test edx, edx
jle 0x421a74
mov dword [ebp - method.CWString.virtual_0], 0x434560
mov dword [ebp - method.CWString.virtual_0], vtable.CVolObject.0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 4], 0
mov dword [ebp - method.CWString.virtual_0], vtable.CVolMem.0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x128], 0x40
mov dword [ebp - 4], 1
test edi, edi
je 0x4218a5
cmp word [edi], 0
je 0x4218a5
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4217c4
push 0
push 0
sub ecx, edx
push 0
sar ecx, 1
push 0
lea eax, [ecx + 1]
push eax
push edi
push 0
push 0
mov dword [ebp - 0x144], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp - 0x134], 0
mov ebx, eax
je 0x42180f
push ebx
lea ecx, [ebp - 0x140]
call fcn.0041f580
mov dword [ebp - 0x11c], eax
jmp 0x421882
test ebx, ebx
jne 0x42181d
xor eax, eax
mov dword [ebp - 0x11c], eax
jmp 0x421882
mov esi, dword [ebp - 0x128]
mov eax, 0x40
test esi, esi
cmovle esi, eax
mov eax, ebx
cdq
idiv esi
mov eax, dword [ebp - 0x140]
sub esi, edx
add esi, ebx
push esi
mov eax, dword [eax]
cmp eax, method.CWString.virtual_0
jne 0x421862
mov ecx, 0x442de8
call fcn.0041fef0
mov dword [ebp - 0x11c], eax
test eax, eax
jne 0x421870
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea ecx, [ebp - 0x140]
call eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x12c], ebx
push 0
push 0
push ebx
push eax
push dword [ebp - 0x144]
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x4218a5
mov ecx, dword [ebp - 0x11c]
jmp 0x4218b0
mov ecx, 0x4345cb
mov dword [ebp - 0x11c], ecx
mov edi, ecx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4218b5
sub edi, edx
xor eax, eax
mov byte [ebp + eax - 0x114], al
inc eax
cmp eax, 0x100
jl 0x4218c0
xor al, al
mov word [ebp - 0x14], 0
xor bh, bh
mov byte [ebp - 0x115], al
test edi, edi
jle 0x421944
xor dl, dl
xor ah, ah
xor ebx, ebx
nop dword [eax]
movzx esi, dl
mov dl, byte [ebp + ebx - 0x114]
mov al, byte [esi + ecx]
lea ecx, [ebp - 0x114]
add al, dl
add ah, al
mov byte [ebp - 0x115], ah
movzx eax, ah
add ecx, eax
mov al, byte [ecx]
mov byte [ebp + ebx - 0x114], al
lea eax, [esi + 1]
mov byte [ecx], dl
inc ebx
mov ecx, dword [ebp - 0x11c]
cdq
idiv edi
mov ah, byte [ebp - 0x115]
cmp ebx, 0x100
jl 0x4218f0
mov al, byte [ebp - 0x13]
mov bh, byte [ebp - 0x14]
mov byte [ebp - 0x115], al
mov edi, dword [ebp - 0x124]
mov esi, dword [ebp - 0x120]
cmp dword [edi + 0xc], 0
je 0x421962
push esi
mov ecx, edi
call fcn.0041f580
mov edi, eax
jmp 0x421997
mov ecx, dword [edi + 0x18]
mov eax, 0x40
test ecx, ecx
cmovle ecx, eax
mov eax, esi
xor edx, edx
div ecx
mov eax, dword [edi]
sub esi, edx
add esi, ecx
mov ecx, edi
push esi
call dword [eax]
mov edi, eax
mov eax, dword [ebp - 0x124]
mov dword [eax + 0x10], esi
mov esi, dword [ebp - 0x120]
mov dword [eax + 0xc], edi
mov dword [eax + 0x14], esi
push esi
push dword [ebp - 0x148]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor esi, esi
nop dword [eax]
inc bh
lea edx, [ebp - 0x114]
movzx eax, bh
lea ecx, [ebp - 0x114]
add edx, eax
mov al, byte [ebp - 0x115]
mov bl, byte [edx]
add al, bl
mov byte [ebp - 0x115], al
movzx eax, al
add ecx, eax
mov al, byte [ecx]
mov byte [edx], al
mov byte [ecx], bl
mov al, byte [edx]
add al, bl
movzx eax, al
mov al, byte [ebp + eax - 0x114]
xor byte [esi + edi], al
inc esi
cmp esi, dword [ebp - 0x120]
jl 0x4219b0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.CWString.virtual_0], vtable.CVolMem.0
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x134]
test edx, edx
je 0x421a3f
mov eax, dword [ebp - 0x140]
push edx
mov eax, dword [eax + 0xc]
cmp eax, method.CWString.virtual_12
jne 0x421a37
mov ecx, 0x442de8
call fcn.0041ffe0
jmp 0x421a3f
lea ecx, [ebp - 0x140]
call eax
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x124]
mov dword [ebp - method.CWString.virtual_0], vtable.CVolObject.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b759
mov esp, ebp
pop ebp
ret