Function at 0x40d520
Capabilities:
Create process on windows
Create process suspended
Link many functions at runtime
Resume thread

Disassembly:
push ebp
lea ebp, [esp - 0x1a24]
mov eax, 0x1a24
call fcn.004536f0
push 0xffffffffffffffff
push 0x4708a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x49ab20]
xor eax, ebp
mov dword [ebp + 0x1a20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1a30]
mov edi, dword [ebp + 0x1a2c]
mov esi, dword [ebp + 0x1a34]
mov ebx, ecx
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp + 0x181a]
push edx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x4c], esi
mov word [ebp + 0x1818], cx
call fcn.00451660
add esp, 8
mov ecx, esp
mov dword [ebp - 0x30], esp
push edi
call fcn.00405330
call fcn.00416b50
add esp, 4
test eax, eax
je 0x40d5c7
mov eax, dword [ebp - 0x1c]
push esi
push eax
push edi
mov ecx, ebx
call fcn.0040b970
jmp 0x40de7d
call fcn.0041f980
push eax
lea ecx, [ebp + 0x1818]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.ODMHook.dll
lea edx, [ebp + 0x1818]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.NtSuspendProcess
push 0x4765d0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.NtResumeProcess
push 0x4765d0
mov dword [ebp - 0x28], eax
call edi
push eax
call ebx
push str.OpenDoc_Start_
mov dword [ebp - 0x30], eax
call fcn.00414dc0
xor edi, edi
add esp, 4
cmp esi, edi
jne 0x40d634
mov dword [ebp - 0x24], edi
jmp 0x40d661
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40d648
mov dword [ebp - 0x24], edi
jmp 0x40d661
lea edi, [eax + eax]
mov eax, edi
call fcn.004522f0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.00402960
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x1c]
xor esi, esi
cmp edi, esi
jne 0x40d66f
mov dword [ebp - 0x14], esi
jmp 0x40d69c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40d683
mov dword [ebp - 0x14], esi
jmp 0x40d69c
lea esi, [eax + eax]
mov eax, esi
call fcn.004522f0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00402960
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x10]
test edi, edi
jne 0x40d6a7
xor eax, eax
jmp 0x40d6d0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40d6ba
xor eax, eax
jmp 0x40d6d0
lea esi, [eax + eax]
mov eax, esi
call fcn.004522f0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00402960
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
push ecx
push edx
push eax
push str.OpenDoc
call fcn.00414dc0
add esp, 0x10
lea eax, [ebp + 0x1818]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x40d79f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.1178_errorLoadLibrary
call fcn.00414dc0
add esp, 4
push 1
lea ecx, [ebp - 0x20]
push ecx
mov ecx, 0x49e48c
call fcn.0041eb80
mov esi, eax
push 0x33
lea edx, [ebp - 0x10]
push edx
mov ecx, 0x49e48c
mov dword [ebp - 4], 0
call fcn.0041eb80
mov esi, dword [esi]
mov eax, dword [eax]
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d768
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d78e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 0x1818]
push ecx
push 0x476e50
jmp 0x40de73
push str.CControlDll_Add
push esi
call ebx
push str.CControlDll_GetNum
push esi
mov dword [ebp - 0x14], eax
call ebx
push str.CControlDll_Del
push esi
mov dword [ebp - 0x18], eax
call ebx
push str.CControlDll_GetByPwd
push esi
mov dword [ebp - 0x20], eax
call ebx
xor ebx, ebx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], ebx
je 0x40ddd6
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x40ddd6
cmp dword [ebp - 0x20], ebx
je 0x40ddd6
cmp eax, ebx
je 0x40ddd6
call ecx
cmp eax, 8
jl 0x40d861
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
lea edx, [ebp - 0x20]
push edx
mov ecx, 0x49e48c
call fcn.0041eb80
mov esi, eax
push 0x37
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x49e48c
mov dword [ebp - 4], 2
call fcn.0041eb80
mov esi, dword [esi]
mov eax, dword [eax]
push 0x10
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x10]
call fcn.0040ab90
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ab90
push 0x476e30
call fcn.00414dc0
add esp, 4
jmp 0x40de7b
push edi
call fcn.00412370
mov ecx, dword [ebp - 0x2c]
add esp, 4
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x38], eax
call fcn.0040ac00
test eax, eax
jne 0x40d897
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.StartODMHookExe_error
call fcn.00414dc0
add esp, 4
jmp 0x40de7b
push 0x3fe
lea edx, [ebp + 0x141a]
xor ecx, ecx
push ebx
push edx
mov word [ebp + 0x1418], cx
call fcn.00451660
mov eax, dword [ebp - 0x1c]
add esp, 0xc
push eax
lea ecx, [ebp + 0x1418]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x40
lea edx, [ebp - 0xc8]
push ebx
push edx
call fcn.00451660
mov eax, 5
mov word [ebp - 0x9c], ax
xor eax, eax
push 0x476e04
mov dword [ebp - 0xcc], 0x44
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
call fcn.00414dc0
push 0x7fe
lea edx, [ebp + 0xc1a]
xor ecx, ecx
push ebx
push edx
mov word [ebp + 0xc18], cx
call fcn.00451660
lea eax, [ebp + 0x1418]
push eax
push edi
lea ecx, [ebp + 0xc18]
push str._s__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x2c
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0xcc]
push eax
push 0x4858d4
push ebx
push 4
push ebx
push ebx
push ebx
lea ecx, [ebp + 0xc18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea edx, [ebp + 0xc18]
push edx
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40d981
xor eax, eax
jmp 0x40d9a0
add eax, eax
mov dword [ebp - 0x18], eax
call fcn.004522f0
mov ecx, dword [ebp - 0x18]
mov eax, esp
push 3
push ecx
lea edx, [ebp + 0xc18]
push edx
push eax
call fcn.00402960
push eax
push str.CreateProcess
call fcn.00414dc0
add esp, 8
cmp dword [ebp - 0x34], ebx
je 0x40daa6
mov ebx, dword [ebp - 0x40]
push ebx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x40d9d1
or ebx, 0xffffffff
jmp 0x40d9d8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x44]
push 0x476dc0
mov dword [ebp - 0x24], eax
call fcn.00414dc0
add esp, 4
cmp ebx, 0xffffffff
jne 0x40dad7
xor ebx, ebx
push 0x476dac
call fcn.00414dc0
push 0x3c
lea edx, [ebp - 0x88]
push ebx
push edx
call fcn.00451660
lea eax, [ebp + 0x1418]
push 0x476d98
mov dword [ebp - 0x88], 0x3c
mov dword [ebp - 0x84], 0x40
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], str.open
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], 0x4858d4
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
call fcn.00414dc0
add esp, 0x14
lea ecx, [ebp - 0x88]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40dabf
mov edx, dword [ebp - 0x50]
push edx
call dword [ebp - 0x28]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x2c]
push eax
call fcn.00409760
mov ebx, eax
push 1
push ebx
call fcn.004019a0
mov ecx, dword [ebp - 0x50]
push str.ShellExecuteEx
mov dword [ebp - 0x1c], ecx
call fcn.00414dc0
add esp, 0xc
jmp 0x40dad7
lea ecx, [ebp + 0xc18]
push ecx
push 0x476d64
call fcn.00414dc0
add esp, 8
jmp 0x40d9f6
lea edx, [ebp + 0x1418]
push edx
push edi
push 0x476d44
call fcn.00414dc0
add esp, 0xc
or ebx, 0xffffffff
push 0x476d30
call fcn.00414dc0
add esp, 4
cmp ebx, 0xffffffff
jne 0x40db56
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x49e48c
call fcn.0041eb80
mov esi, eax
push 0x34
lea ecx, [ebp - 0x28]
push ecx
mov ecx, 0x49e48c
mov dword [ebp - 4], 3
call fcn.0041eb80
mov esi, dword [esi]
mov eax, dword [eax]
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x28]
call fcn.0040ab90
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.0040ab90
lea edx, [ebp + 0x1418]
push edx
push edi
push 0x476d10
call fcn.00414dc0
add esp, 0xc
jmp 0x40de7b
push 1
push ebx
call fcn.004019a0
mov esi, dword [ebp - 0x2c]
lea edi, [esi + 0x220]
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x40db75
xor eax, eax
jmp 0x40dba1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40db88
xor eax, eax
jmp 0x40dba1
add eax, eax
mov dword [ebp - 0x28], eax
call fcn.004522f0
mov ecx, dword [ebp - 0x28]
mov eax, esp
push 3
push ecx
push edi
push eax
call fcn.00402960
push eax
push 0x476cf0
call fcn.00414dc0
push 0x60c
xor edi, edi
lea edx, [ebp + 0x60c]
push edi
push edx
call fcn.00451660
movzx eax, byte [esi + 0x753]
mov ecx, dword [esi + 0x74b]
add esp, 0x14
lea edx, [esi + 0x754]
mov dword [ebp + 0x61c], eax
push edx
lea eax, [ebp + 0xa70]
push eax
mov dword [ebp + 0x60c], edi
mov dword [ebp + 0x610], edi
mov dword [ebp + 0x618], edi
mov dword [ebp + 0x614], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x2c]
mov dl, byte [eax + 0x8c5]
add esi, 0x854
mov ecx, 0x17
lea edi, [ebp + 0xb70]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x8b0]
movzx eax, byte [eax + 0x74f]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp + 0xbcc], ecx
mov ecx, dword [ebp - 0x4c]
mov byte [ebp + 0xbd0], dl
push ecx
lea edx, [ebp + 0x620]
push edx
mov dword [ebp + 0xbd4], eax
call esi
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp + 0xa20]
push ecx
call esi
lea edx, [ebp + 0x60c]
push edx
mov dword [ebp + 0x610], ebx
call dword [ebp - 0x14]
add esp, 4
cmp dword [ebp - 0x38], 0
je 0x40dc91
push ebx
push str.InjectDll_PID_d
call fcn.00414dc0
lea eax, [ebp + 0x1818]
push eax
push ebx
call fcn.00412600
add esp, 0x10
push ebx
push 0x476cb0
call fcn.00414dc0
add esp, 8
push ebx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40dcbd
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40dcce
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40dcce
push ecx
call eax
mov eax, dword [ebp - 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40dcde
push eax
call edi
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x40dce8
push eax
call edi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40dcf2
push eax
call edi
test ebx, ebx
jne 0x40dd43
push 1
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x49e48c
call fcn.0041eb80
mov esi, eax
push 0x34
lea edx, [ebp - 0x18]
push edx
mov ecx, 0x49e48c
mov dword [ebp - 4], 4
call fcn.0041eb80
mov ecx, dword [esi]
mov edx, dword [eax]
push 0x10
push ecx
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x18]
call fcn.0040ab90
lea ecx, [ebp - 0x14]
call fcn.0040ab90
jmp 0x40de7b
push ebx
call edi
push 0x60c
lea eax, [ebp]
push 0
push eax
call fcn.00451660
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
lea edx, [ebp + 0x414]
push edx
call esi
lea eax, [ebp]
push eax
call dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x40ddbf
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 4]
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40ddbf
mov edx, dword [ebp + 4]
push edx
push 0x476c98
call fcn.00414dc0
add esp, 8
push 0xffffffffffffffff
push esi
call ebx
push esi
call edi
lea eax, [ebp]
push eax
call dword [ebp - 0x20]
lea ecx, [ebp]
push ecx
call dword [ebp - 0x10]
add esp, 8
test eax, eax
jne 0x40dd7a
push str.OpenDoc_Finsh_
call fcn.00414dc0
add esp, 4
mov eax, 1
jmp 0x40de7d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.1201_FreeLibrary_error
call fcn.00414dc0
add esp, 4
push 1
lea edx, [ebp - 0x38]
push edx
mov ecx, 0x49e48c
call fcn.0041eb80
mov esi, eax
push 0x33
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x49e48c
mov dword [ebp - 4], 1
call fcn.0041eb80
mov esi, dword [esi]
mov eax, dword [eax]
push 0x10
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 0x1818]
push ecx
push 0x476c50
call fcn.00414dc0
add esp, 8
xor eax, eax
lea esp, [ebp - 0xdc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1a20]
xor ecx, ebp
call fcn.004522e0
add ebp, 0x1a24
mov esp, ebp
pop ebp
ret 0xc