Function at 0x424870
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x495e98
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4248b1
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0x4c], 0
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4248e3
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x4c], 1
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x424912
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x4c], 2
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x424941
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push 0x4a6a9c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 3
call fcn.00404740
xor ecx, ecx
mov byte [esp + 0x4c], 4
mov dword [esp + 0x1c], ecx
lea ebx, [ecx + 1]
mov edx, dword [esp + 0x58]
mov eax, dword [edx + 8]
cmp eax, ecx
jle 0x424a0d
test ecx, ecx
jl 0x424a18
cmp ecx, eax
jge 0x424a18
mov edx, dword [edx + 4]
mov ebp, dword [edx + ecx*4]
xor edi, edi
test ebx, ebx
je 0x4249fa
lea ecx, [ecx]
cmp dword [ebp + 0x14], edi
jle 0x4249fa
test edi, edi
jl 0x424a18
cmp edi, dword [ebp + 0x14]
jge 0x424a18
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + edi*4]
test esi, esi
je 0x4249ef
test dword [esi + 0xc], 0xe
je 0x4249ef
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
test eax, eax
je 0x4249ef
mov eax, dword [esi + 0xc]
test eax, 0x40000000
je 0x4249ef
test eax, 0x200
je 0x4249ef
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call edx
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
add edi, 1
test ebx, ebx
jne 0x4249a0
add ecx, 1
test ebx, ebx
mov dword [esp + 0x1c], ecx
jne 0x424972
mov edx, dword [esp + 0x58]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
lea ebp, [ecx + 1]
jmp 0x424a24
call fcn.00455154
lea ecx, [ecx]
mov edx, dword [esp + 0x58]
mov eax, dword [edx + 8]
cmp eax, ecx
jle 0x424c04
test ecx, ecx
jl 0x424a18
cmp ecx, eax
jge 0x424a18
mov eax, dword [edx + 4]
mov edi, dword [eax + ecx*4]
xor ebx, ebx
test ebp, ebp
mov dword [esp + 0x30], edi
je 0x424bf5
jmp 0x424a50
cmp dword [edi + 0x14], ebx
jle 0x424bf5
test ebx, ebx
jl 0x424a18
cmp ebx, dword [edi + 0x14]
jge 0x424a18
mov ecx, dword [edi + 0x10]
mov esi, dword [ecx + ebx*4]
test esi, esi
je 0x424be6
test dword [esi + 0xc], 0xe
je 0x424be6
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
test eax, eax
je 0x424be6
mov eax, dword [esi + 0xc]
test eax, 0x40000000
je 0x424be6
test eax, 0x200
je 0x424ac3
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call edx
test eax, eax
je 0x424ac3
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
call fcn.00405560
lea eax, [esp + 0x24]
mov ecx, esi
call fcn.0043a1a0
test eax, eax
je 0x424be6
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
and eax, 0x40000
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov eax, 0
jne 0x424af4
test eax, eax
je 0x424b23
mov edx, dword [esp + 0x24]
push edx
call fcn.004334c0
add esp, 4
test eax, eax
je 0x424b23
call fcn.00434a50
mov edi, eax
test edi, edi
je 0x424b23
push edi
lea ecx, [esp + 0x28]
call fcn.00404a80
push edi
call fcn.0045505b
add esp, 4
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov edi, eax
call fcn.0043ea50
test edi, edi
jne 0x424be2
test eax, eax
je 0x424be2
mov edi, dword [esp + 0x54]
push edi
lea eax, [esp + 0x1c]
call fcn.00424d80
mov ebp, eax
test ebp, ebp
je 0x424be2
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], 0
call fcn.004023f0
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x60]
call fcn.00402350
push eax
push esi
call fcn.0043a240
push 0x4a6ac8
push 0x4a6ad0
lea edx, [esp + 0x30]
push edx
call fcn.0041d640
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
lea eax, [esp + 0x2c]
push 0x4a6ad4
push eax
call fcn.004045e0
add esp, 0x14
push 0x4a19ec
lea ecx, [esp + 0x24]
call fcn.00409c40
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [esp + 0x38]
push edx
mov edx, dword [edi + 4]
add ecx, ecx
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
add ebx, 1
test ebp, ebp
jne 0x424a50
add ecx, 1
test ebp, ebp
mov dword [esp + 0x1c], ecx
jne 0x424a20
mov esi, dword [esp + 0x54]
mov eax, dword [esi + 4]
xor ebx, ebx
test eax, eax
setne bl
test ebx, ebx
je 0x424ca0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x18]
mov dword [esi + 4], 0
cmp dword [edi - 4], 1
jle 0x424c43
mov eax, dword [edi - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404510
mov edi, dword [esp + 0x18]
call fcn.00430330
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x424c54
xor eax, eax
jmp 0x424c75
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424c60
sub eax, esi
sar eax, 1
js 0x424d74
cmp eax, dword [edx - 8]
jg 0x424d74
push 4
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0x1c]
push 0
push 0
mov word [ecx + eax*2], 0
mov edx, dword [esp + 0x24]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [esp + 0x4c], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424cc5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424cea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424d0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424d34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424d5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0xc
push 0x80070057
call fcn.004022b0
int3