Function at 0x421273
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov eax, ecx
xor esi, esi
push edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], esi
push dword [eax + 0x10]
call dword [sym.imp.ntdll.dll_RtlNormalizeProcessParams]
mov edi, eax
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], eax
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x1c], esi
inc ecx
mov dword [ebp - 0x10], esi
inc eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], ecx
mov edx, esi
mov ebx, esi
test edi, edi
je 0x421388
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [edi + 0x40]
mov dword [ebp - 0xc], eax
cmp dword [eax + 4], esi
je 0x4212d3
cmp word [eax], si
jne 0x4212de
lea eax, [edi + 0x38]
mov dword [ebp - 0xc], eax
cmp dword [eax + 4], esi
je 0x42131e
mov ebx, dword [eax + 4]
movzx edi, word [eax]
mov dword [ebp - 4], edi
test edi, edi
je 0x42131b
cmp word [ebx], si
je 0x42131b
test edi, edi
je 0x42131b
movzx eax, word [ebx]
test ax, ax
je 0x421329
push eax
call dword [sym.imp.ntdll.dll_iswspace]
pop ecx
test eax, eax
je 0x421314
add ebx, 2
dec edi
sub edi, 1
mov dword [ebp - 4], edi
jne 0x4212f4
mov ecx, dword [ebp - 8]
test edi, edi
jne 0x42132c
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi + 0x48]
mov edx, esi
test ecx, ecx
je 0x42137f
jmp 0x42137a
mov ecx, dword [ebp - 8]
cmp word [ebx], si
je 0x4212e7
inc ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ecx
add ebx, 2
dec edi
sub edi, 1
je 0x421350
movzx eax, word [ebx]
push eax
call dword [sym.imp.ntdll.dll_iswspace]
pop ecx
test eax, eax
je 0x421338
mov ecx, dword [ebp - 0x10]
mov eax, ebx
sub eax, dword [ebp - 0x28]
sar eax, 1
lea ecx, [ecx + eax*2]
add ecx, 2
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 8]
jmp 0x4212e4
add ecx, 2
inc edx
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42136f
cmp word [ecx], si
jne 0x42136b
mov ecx, dword [ebp - 8]
lea eax, [edx + 1]
mov edx, dword [ebp - 0xc]
lea edi, [ecx + eax]
cmp edi, 2
jbe 0x4213c5
cmp ecx, 1
jbe 0x42139e
movzx ecx, word [edx]
mov ebx, dword [edx + 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x10]
shl edi, 2
add eax, edi
push eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, eax
mov dword [ebp - 0xc], edx
test edx, edx
jne 0x4213f3
mov esi, 0xc0000017
lea ebx, [ebp - 0x18]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4213d0
int3
test esi, esi
js 0x4213e5
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
push eax
push ebx
call fcn.0041c6d1
pop ecx
pop ecx
mov esi, eax
push esi
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 8], 1
mov dword [ebp - 0x24], edx
jbe 0x4214c2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add eax, edx
mov dword [ebp - 0x10], eax
add edi, edx
jmp 0x4214ba
cmp edi, eax
jae 0x4214c2
cmp word [ebx], si
je 0x4214c2
test ecx, ecx
je 0x4214c2
movzx eax, word [ebx]
test ax, ax
je 0x421457
push eax
call dword [sym.imp.ntdll.dll_iswspace]
pop ecx
mov ecx, dword [ebp - 4]
test eax, eax
je 0x42144e
add ebx, 2
dec ecx
sub ecx, 1
mov dword [ebp - 4], ecx
jne 0x42142b
mov edx, dword [ebp - 0xc]
test ecx, ecx
je 0x4214c2
jmp 0x42145a
mov edx, dword [ebp - 0xc]
cmp word [ebx], si
je 0x4214b7
mov dword [edx], edi
add edx, 4
inc dword [ebp - 0x1c]
mov dword [ebp - 0xc], edx
mov ax, word [ebx]
mov edx, edi
mov word [edi], ax
add ebx, 2
add edi, 2
mov dword [ebp - 0x2c], edx
dec ecx
sub ecx, 1
mov dword [ebp - 4], ecx
je 0x42149e
cmp edi, dword [ebp - 0x10]
jae 0x4214ad
movzx eax, word [ebx]
push eax
call dword [sym.imp.ntdll.dll_iswspace]
pop ecx
mov ecx, dword [ebp - 4]
test eax, eax
je 0x42146a
mov edx, dword [ebp - 0x2c]
cmp edi, dword [ebp - 0x10]
jae 0x4214ad
xor eax, eax
mov word [edi], ax
add edi, 2
jmp 0x4214b4
mov edi, edx
xor eax, eax
mov word [edi], ax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
test ecx, ecx
jne 0x421412
mov ecx, dword [ebp - 0x14]
lea ebx, [edx + 4]
mov dword [edx], esi
mov edx, ebx
mov ecx, dword [ecx + 0x48]
test ecx, ecx
je 0x4214ed
jmp 0x4214e8
mov dword [edx], ecx
add edx, 4
add ecx, 2
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4214dd
cmp word [ecx], si
jne 0x4214d5
mov dword [edx], esi
jmp 0x4213c8