Function at 0x40da40
Capabilities:
Accept command line arguments
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4141e0
push 0x412230
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, 0x1604
call fcn.004121f0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0xb40], edi
lea ecx, [ebp - 0xb3c]
call fcn.004014a0
mov dword [ebp - 0x128], edi
mov dword [ebp - 4], edi
push 0x419f10
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov dword [ebp - 0x124], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
mov dword [ebp - 0x120], ebx
push 0x104
lea eax, [ebp - 0x11c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov byte [ebp - 0x19], 0
push edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0xb44], eax
cmp eax, edi
jge 0x40dafa
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push edi
push edi
push 2
push 2
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0xb44], eax
cmp eax, edi
jl 0x40e300
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x419f2c], eax
cmp eax, edi
jne 0x40db3d
mov dword [ebp - 0xb40], 1
jmp 0x40e300
mov dword [ebp - 0x15ac], 0
mov dword [0x419ef8], 0x416568
mov dword [0x41967c], 0x419e88
mov dword [0x419e88], 0x84
mov dword [0x419eec], 0x300
push esi
push 0x418c68
push 0x419e88
mov edi, dword [sym.imp.ATL.DLL_AtlModuleInit]
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x419f0c], eax
push str._UnRegServer
push ebx
call fcn.0040d920
add esp, 8
test eax, eax
jne 0x40e1cc
push 0x418d88
push ebx
call fcn.0040d920
add esp, 8
test eax, eax
jne 0x40e1cc
push str._RegServer
push ebx
call fcn.0040d920
add esp, 8
test eax, eax
jne 0x40def6
push 0x418d70
push ebx
call fcn.0040d920
add esp, 8
test eax, eax
jne 0x40def6
push str._Embedding
push ebx
call fcn.0040d920
add esp, 8
test eax, eax
jne 0x40de39
push 0x418d58
push ebx
call fcn.0040d920
add esp, 8
test eax, eax
jne 0x40de39
push 0xfffffffffffffff5
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
call esi
mov dword [ebp - 0xb58], eax
cmp eax, 0xffffffff
je 0x40dc49
test eax, eax
je 0x40dc49
push 0
lea ecx, [ebp - 0xb54]
push ecx
push 0
push 0x418d54
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40de09
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x40de09
mov ebx, 1
push ebx
push 0x40d980
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x40dc77
mov dword [ebp - 0xb40], ebx
jmp 0x40e300
push 0xfffffffffffffff5
call esi
mov esi, eax
mov dword [ebp - 0xb58], esi
call fcn.00401250
test eax, eax
je 0x40dcbd
lea edx, [ebp - 0xb70]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov eax, 0x3c
cmp word [ebp - 0xb6e], ax
jge 0x40dcaf
mov word [ebp - 0xb6e], ax
mov eax, dword [ebp - 0xb70]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push ecx
push 0x418d50
push str.CONIN_
mov esi, dword [sym.imp.MSVCRT.dll_freopen]
call esi
mov edx, dword [sym.imp.MSVCRT.dll__iob]
add edx, 0x20
push edx
push 0x418d44
push str.CONOUT_
call esi
add esp, 0x18
call fcn.0040aa70
mov dword [ebp - 0xb40], eax
mov eax, dword [0x419f2c]
xor edi, edi
cmp eax, edi
je 0x40dd0c
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [ebp - 0x1584]
call fcn.004014a0
push 0x4e79
lea eax, [ebp - 0x1584]
push eax
call fcn.00401540
add esp, 8
xor esi, esi
mov dword [ebp - 0x1590], esi
lea ecx, [ebp - 0x157c]
test ecx, ecx
je 0x40ddb7
mov dword [ebp - 0x15e0], ebx
mov dword [ebp - 0x15d8], edi
mov dword [ebp - 0x15d0], edi
mov dword [ebp - 0x15d0], ebx
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
lea edx, [ebp - 0x157c]
push edx
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call ebx
mov esi, eax
mov dword [ebp - 0x15d4], esi
test esi, esi
je 0x40ddaf
inc esi
mov dword [ebp - 0x15d4], esi
push esi
call fcn.004121e6
add esp, 4
mov dword [ebp - 0x15dc], eax
mov edi, eax
mov dword [ebp - 0x15d8], edi
test eax, eax
je 0x40ddaf
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x157c]
push eax
push 0
push 0
call ebx
mov esi, edi
mov dword [ebp - 0x1590], esi
push esi
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
test esi, esi
je 0x40ddd4
mov dword [ebp - 0x15e4], esi
push esi
call fcn.004121e0
add esp, 4
mov eax, dword [0x419f2c]
test eax, eax
je 0x40dde6
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push ecx
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
call esi
mov edx, dword [sym.imp.MSVCRT.dll__iob]
add edx, 0x20
push edx
call esi
add esp, 8
jmp 0x40e300
push 1
push 0x40d980
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x40de29
mov dword [ebp - 0xb40], 1
jmp 0x40e300
call fcn.0040aa70
mov dword [ebp - 0xb40], eax
jmp 0x40e300
push 0
push 0
mov edi, 1
push edi
push 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
call esi
mov dword [0x419f34], eax
test eax, eax
jne 0x40de61
mov dword [ebp - 0xb40], edi
jmp 0x40e300
push 0
push 0
push edi
push 0
call esi
mov dword [0x419f38], eax
test eax, eax
jne 0x40de7e
mov dword [ebp - 0xb40], edi
jmp 0x40e300
push 0
push 4
push 0x419e88
call dword [sym.imp.ATL.DLL_AtlModuleRegisterClassObjects]
mov dword [ebp - 0xb44], eax
mov eax, dword [0x419f38]
mov dword [ebp - 0xb50], eax
mov ecx, dword [0x419f34]
mov dword [ebp - 0xb4c], ecx
push 0x1d4c0
push 0
lea edx, [ebp - 0xb50]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, edi
jne 0x40dee6
call fcn.0040aa70
mov ecx, dword [0x419f28]
test ecx, ecx
je 0x40ded8
call fcn.0040ffd0
push 0xffffffffffffffff
mov eax, dword [0x419f38]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x419e88
call dword [sym.imp.ATL.DLL_AtlModuleRevokeClassObjects]
jmp 0x40e300
xor edi, edi
push edi
push edi
push 1
push 0x64
push 0x419e88
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
push edi
push 1
push 0x419e88
call dword [sym.imp.ATL.DLL_AtlModuleRegisterServer]
mov dword [ebp - 0xb40], eax
cmp eax, edi
jl 0x40e106
call fcn.00401250
test eax, eax
je 0x40e300
mov dword [ebp - 0x15bc], edi
mov dword [ebp - 0x15b4], edi
mov ecx, 0x419e68
call fcn.0040e3b0
mov dword [ebp - 0x15c4], edi
lea ecx, [ebp - 0x15bc]
test ecx, ecx
je 0x40df5e
mov dword [ebp - 0x15bc], edi
lea edx, [ebp - 0x15b4]
test edx, edx
je 0x40df6e
mov dword [ebp - 0x15b4], edi
lea eax, [ebp - 0x15c4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x15c8], eax
cmp eax, edi
jne 0x40dfc8
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x40dfb6
call ebx
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov dword [ebp - 0x15c0], esi
mov dword [ebp - 0x15b8], esi
jmp 0x40e006
xor eax, eax
mov esi, eax
mov dword [ebp - 0x15c0], esi
mov dword [ebp - 0x15b8], esi
jmp 0x40e006
lea ecx, [ebp - 0x15b4]
push ecx
lea edx, [ebp - 0x15bc]
push edx
mov eax, dword [ebp - 0x15c4]
push eax
call fcn.0040e6d0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x15c0], esi
mov ecx, dword [ebp - 0x15c4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x15b8], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
jl 0x40e042
push edi
mov edx, dword [ebp - 0x15bc]
push edx
mov ecx, 0x419e68
call fcn.0040e490
mov esi, eax
mov dword [ebp - 0x15b8], esi
cmp esi, edi
jl 0x40e042
push edi
mov eax, dword [ebp - 0x15b4]
push eax
mov ecx, 0x419e68
call fcn.0040e5b0
mov esi, eax
mov dword [ebp - 0x15b8], esi
mov eax, dword [ebp - 0x15bc]
cmp eax, edi
je 0x40e056
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [ebp - 0x15b4]
cmp eax, edi
je 0x40e06a
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, esi
mov dword [ebp - 0xb40], eax
cmp esi, edi
jl 0x40e106
mov ecx, dword [0x419e68]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
mov dword [ebp - 0xb48], eax
push eax
call fcn.004121e6
add esp, 4
mov esi, eax
mov dword [ebp - 0x1588], esi
mov dword [ebp - 0x128], esi
cmp esi, edi
jne 0x40e0b5
mov eax, 0x8007000e
mov dword [ebp - 0xb40], eax
jmp 0x40e106
lea edx, [ebp - 0xb48]
push edx
push esi
mov eax, dword [0x419e68]
push eax
call dword [sym.imp.ADVAPI32.dll_MakeSelfRelativeSD]
test eax, eax
jne 0x40e0d7
call ebx
mov dword [ebp - 0xb40], eax
jmp 0x40e106
mov ecx, dword [ebp - 0xb48]
push ecx
push esi
push str.LaunchPermission
push str.AppID08b0b2da_3fb3_11d3_a4de_00c04f610189
push SQLAllocStmt
call fcn.004011b0
add esp, 0x14
mov dword [ebp - 0xb40], eax
cmp eax, edi
jge 0x40e300
xor edi, edi
push eax
push 0x4e89
lea edx, [ebp - 0xb3c]
push edx
call fcn.00401540
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x1598], esi
lea eax, [ebp - 0xb34]
test eax, eax
je 0x40e1a5
xor edi, edi
mov dword [ebp - 0x15fc], edi
mov dword [ebp - 0x15f4], edi
mov dword [ebp - 0x15ec], edi
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
lea ecx, [ebp - 0xb34]
push ecx
push edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call ebx
mov esi, eax
mov dword [ebp - 0x15f0], esi
test esi, esi
je 0x40e19b
inc esi
mov dword [ebp - 0x15f0], esi
push esi
call fcn.004121e6
add esp, 4
mov dword [ebp - 0x15f8], eax
mov edi, eax
mov dword [ebp - 0x15f4], edi
test eax, eax
je 0x40e19b
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
lea edx, [ebp - 0xb34]
push edx
push 0
push 0
call ebx
mov esi, edi
mov dword [ebp - 0x1598], esi
xor edi, edi
push 0x1030
lea eax, [ebp - 0x11c]
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, edi
je 0x40e300
mov dword [ebp - 0x1600], esi
jmp 0x40e2f7
mov dword [ebp - 0x15b0], 0
mov dword [0x419ef8], 0x416568
mov dword [0x41967c], 0x419e88
mov dword [0x419e88], 0x84
mov dword [0x419eec], 0x300
push esi
push 0x418cb0
push 0x419e88
call edi
push 0
push 0
push 0
push 0x64
push 0x419e88
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
push 0
push 0x419e88
call dword [sym.imp.ATL.DLL_AtlModuleUnregisterServer]
mov dword [ebp - 0xb40], eax
test eax, eax
jge 0x40e300
mov ecx, eax
push ecx
push 0x4e88
lea edx, [ebp - 0xb3c]
push edx
call fcn.00401540
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x15a0], esi
lea eax, [ebp - 0xb34]
test eax, eax
je 0x40e2d8
mov dword [ebp - 0x1618], esi
xor edi, edi
mov dword [ebp - 0x1610], edi
mov dword [ebp - 0x1608], esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
lea ecx, [ebp - 0xb34]
push ecx
push esi
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call ebx
mov esi, eax
mov dword [ebp - 0x160c], esi
test esi, esi
je 0x40e2d0
inc esi
mov dword [ebp - 0x160c], esi
push esi
call fcn.004121e6
add esp, 4
mov dword [ebp - 0x1614], eax
mov edi, eax
mov dword [ebp - 0x1610], edi
test eax, eax
je 0x40e2d0
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
lea edx, [ebp - 0xb34]
push edx
push 0
push 0
call ebx
mov esi, edi
mov dword [ebp - 0x15a0], esi
push 0x1030
lea eax, [ebp - 0x11c]
push eax
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test esi, esi
je 0x40e300
mov dword [ebp - 0x161c], esi
push esi
call fcn.004121e0
add esp, 4
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x40e319
mov dword [ebp - 0x15a4], eax
push eax
call fcn.004121e0
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x419f34]
test eax, eax
je 0x40e333
push eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x40e339
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x419f2c]
test eax, eax
je 0x40e345
push eax
call esi
mov eax, dword [0x419f38]
test eax, eax
je 0x40e351
push eax
call esi
push 0x419f10
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x419e88
call dword [sym.imp.ATL.DLL_AtlModuleTerm]
jmp 0x40e38a
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xb40]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret