Function at 0x414a20
Capabilities:
Copy file
Create directory
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x47c070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp eax, 1
jne 0x414cf2
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push str.C:winning_sso_starter
call esi
push 0
push str.C:winning_sso_starterlog
call esi
lea ecx, [ebp - 0x68]
call fcn.00413270
cmp dword [eax + 0x14], 0x10
jb 0x414a84
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push str.C:winning_sso_starterwinning_sso_starter.exe
push eax
call esi
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
jb 0x414aa9
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.004036e0
lea ecx, [ebp - 0x68]
call fcn.004133f0
push str.winning_sso_open.exe
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0040f550
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x414ad2
mov eax, dword [eax]
push 0
push str.C:winning_sso_starterwinning_sso_open.exe
push eax
call esi
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x414af1
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.004036e0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp eax, 0x10
jb 0x414b1f
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.004036e0
lea ecx, [ebp - 0x68]
call fcn.004133f0
push 0x4729c4
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.0040f550
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x414b48
mov eax, dword [eax]
push 0
push str.C:winning_sso_startercross_domain_access.bat
push eax
call esi
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x414b67
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.004036e0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp eax, 0x10
jb 0x414b95
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.004036e0
call fcn.004131e0
push 0x16
push str.C:winning_sso_starter
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
call fcn.004030c0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x80]
push 0x17
push str.cross_domain_access.bat
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
call fcn.004030c0
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.00413c50
mov esi, eax
lea edx, [ebp - 0x80]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x98]
call fcn.00413c50
cmp dword [esi + 0x14], 8
jb 0x414c0e
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x414c16
mov eax, dword [eax]
push 1
push esi
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x84]
mov esi, eax
cmp ecx, 8
jb 0x414c46
inc ecx
push ecx
push dword [ebp - 0x98]
lea ecx, [ebp - 0x98]
call fcn.00403680
xor eax, eax
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x88], 0
cmp eax, 8
jb 0x414c78
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.00403680
xor eax, eax
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x58], 0
cmp eax, 0x10
jb 0x414ca1
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
call fcn.004036e0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
cmp eax, 0x10
jb 0x414ccf
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.004036e0
cmp esi, 0x20
ja 0x414ce3
mov ecx, str.cross_domain_access.bat_open_fail_
call fcn.00413600
jmp 0x414d9f
mov ecx, str.cross_domain_access.bat_open_success_
call fcn.00413600
jmp 0x414d9f
jle 0x414d9f
push 0
push 0x471428
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
call fcn.004030c0
mov dword [ebp - 4], 5
mov edx, dword [esi + 4]
cmp byte [edx], 0
jne 0x414d2c
xor ecx, ecx
jmp 0x414d3a
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414d31
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.004030c0
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x38]
mov edi, dword [ebp - 0x38]
cmp esi, 0x10
mov edx, dword [ebp - 0x28]
push 0x11
cmovae ecx, edi
push str.start_http_server
call fcn.004054c0
add esp, 8
test eax, eax
jne 0x414d8d
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x472884
mov dword [ebp - 0x1c], 0x4147b0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x38]
cmp esi, 0x10
jb 0x414d9f
lea eax, [esi + 1]
push eax
push edi
lea ecx, [ebp - 0x38]
call fcn.004036e0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004381bc
mov esp, ebp
pop ebp
ret