Function at 0x522e9c
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x522ea4
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x5234a3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp bl, 0x2b
jne 0x523456
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
mov edx, edi
call fcn.004044cc
mov edx, dword [ebp - 8]
mov eax, 0x5234bc
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x52347b
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0xc]
call fcn.00408bdc
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x5234bc
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x52347b
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x10]
call fcn.00408bdc
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x5234bc
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x52347b
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
mov eax, dword [ebp - 0x38]
mov edx, 0x5234c8
call fcn.00404840
sete bl
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x5234bc
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x52347b
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
mov eax, dword [ebp - 0x3c]
mov edx, 0x5234c8
call fcn.00404840
sete byte [ebp - 0x11]
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x5234bc
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x52347b
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x5234bc
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x52347b
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x5234bc
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x52347b
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x5234bc
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x52347b
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x5234bc
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x52347b
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x5234bc
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x52347b
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
cmp dword [ebp - 0xc], 0
je 0x52347b
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x5c
je 0x523175
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, 0x5234d4
call fcn.00404740
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.004fb59c
cmp dword [ebp - 8], 0
je 0x523191
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.004044cc
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x24]
call fcn.00408bdc
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x24]
call fcn.004044cc
cmp dword [ebp - 0x24], 0
je 0x5231d3
mov eax, dword [ebp - 0x24]
cmp byte [eax], 0x5c
je 0x5231c5
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, 0x5234d4
call fcn.00404740
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.00404740
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x2c]
call fcn.00408bdc
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
call fcn.004044cc
cmp dword [ebp - 0x2c], 0
je 0x523215
mov eax, dword [ebp - 0x2c]
cmp byte [eax], 0x5c
je 0x523207
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, 0x5234d4
call fcn.00404740
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404740
mov edx, dword [0x5b2bb8]
mov edx, dword [edx]
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
call fcn.00404740
mov eax, dword [ebp - 0x48]
call fcn.00409430
test al, al
je 0x523338
push dword [ebp - 0x10]
push 0x5234d4
mov edx, dword [0x5b2bb8]
mov edx, dword [edx]
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
call fcn.00404740
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.00409930
push dword [ebp - 0x4c]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004047b4
mov eax, dword [ebp - 0x10]
call fcn.00409430
xor al, 1
or bl, al
je 0x523416
cmp byte [ebp - 0x11], 0
je 0x5232f1
mov eax, dword [ebp - 0x20]
mov edx, 0x5234e0
call fcn.00404840
jne 0x5232b7
push 0x40
mov eax, dword [ebp - 0x18]
call fcn.004048f4
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004048f4
mov edx, eax
mov eax, dword [0x5b29d8]
mov eax, dword [eax]
pop ecx
call fcn.004a1678
mov eax, dword [ebp - 0x20]
mov edx, 0x5234ec
call fcn.00404840
jne 0x5232f1
push 0x44
mov eax, dword [ebp - 0x18]
call fcn.004048f4
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004048f4
mov edx, eax
mov eax, dword [0x5b29d8]
mov eax, dword [eax]
pop ecx
call fcn.004a1678
cmp eax, 6
jne 0x52347b
mov eax, dword [ebp - 0x10]
call fcn.00409430
test al, al
je 0x523307
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00409588
push 0
mov eax, dword [ebp - 0x10]
call fcn.004048f4
push eax
mov edx, dword [0x5b2bb8]
mov edx, dword [edx]
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
call fcn.00404740
mov eax, dword [ebp - 0x54]
call fcn.004048f4
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x523416
mov edx, dword [0x5b2bb8]
mov edx, dword [edx]
lea eax, [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
call fcn.00404740
mov eax, dword [ebp - 0x58]
call fcn.00409440
test al, al
je 0x52347b
push ebp
mov edx, dword [0x5b2bb8]
mov edx, dword [edx]
lea eax, [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
call fcn.00404740
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x10]
call fcn.00522c08
pop ecx
xor al, 1
or al, bl
je 0x523416
cmp byte [ebp - 0x11], 0
je 0x5233f6
mov eax, dword [ebp - 0x20]
mov edx, 0x5234e0
call fcn.00404840
jne 0x5233bc
push 0x40
mov eax, dword [ebp - 0x18]
call fcn.004048f4
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004048f4
mov edx, eax
mov eax, dword [0x5b29d8]
mov eax, dword [eax]
pop ecx
call fcn.004a1678
mov eax, dword [ebp - 0x20]
mov edx, 0x5234ec
call fcn.00404840
jne 0x5233f6
push 0x44
mov eax, dword [ebp - 0x18]
call fcn.004048f4
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004048f4
mov edx, eax
mov eax, dword [0x5b29d8]
mov eax, dword [eax]
pop ecx
call fcn.004a1678
cmp eax, 6
jne 0x52347b
mov edx, dword [0x5b2bb8]
mov edx, dword [edx]
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
call fcn.00404740
mov eax, dword [ebp - 0x60]
mov ecx, ebx
mov edx, dword [ebp - 0x10]
call fcn.005228f4
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x24]
call fcn.00408bdc
cmp dword [ebp - 0x64], 0
je 0x523450
push 1
mov eax, dword [ebp - 0x2c]
call fcn.004048f4
push eax
mov eax, dword [ebp - 0x28]
call fcn.004048f4
push eax
mov eax, dword [ebp - 0x24]
call fcn.004048f4
push eax
push 0x5234f0
push 0
call sub.shell32.dll_ShellExecuteA
mov byte [ebp - 1], 1
jmp 0x52347b
xor ecx, ecx
mov dl, 1
mov eax, dword [0x52270c]
call fcn.00499a48
mov esi, eax
mov ecx, ebx
mov edx, edi
mov eax, esi
call fcn.005234f8
mov byte [ebp - 1], al
mov eax, esi
call fcn.00403600
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5234aa
lea eax, [ebp - 0x64]
mov edx, 0x14
call fcn.00404458
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404458
ret