Function at 0x47731c
Capabilities:
Create process on windows
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffff2d4
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, str.DLL
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x528]
push edx
push 0
push 0
push 0
push ebx
call fcn.004a51bc
add esp, 0x14
lea ecx, [esi + 0x701]
push ecx
lea eax, [ebp - 0x528]
push eax
call fcn.004a38bc
add esp, 8
test eax, eax
jne 0x477485
push 0
call sub.OLE32.DLL_CoInitialize
mov byte [ebp - 0x328], 0
lea edx, [ebp - 0x18]
push edx
push 0x4ca820
push 1
push 0
push 0x4ca830
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x477459
lea ecx, [ebp - 0x1c]
push ecx
push 0x4ca840
mov eax, dword [ebp - 0x18]
push eax
mov edx, dword [eax]
call dword [edx]
test eax, eax
jl 0x477450
push 0x104
lea ecx, [ebp - 0x1ab8]
push ecx
push 0xffffffffffffffff
push ebx
push 1
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push 0
lea eax, [ebp - 0x1ab8]
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
test eax, eax
jl 0x477447
push 0
mov eax, dword [0x4d3b7c]
push eax
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x4c]
test eax, eax
jl 0x477447
lea eax, [ebp - 0x1d2c]
push 0
push eax
lea edx, [ebp - 0x328]
push 0x104
push edx
mov ecx, dword [ebp - 0x18]
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jge 0x477422
mov byte [ebp - 0x328], 0
push 0x1000
push 0x4d5d88
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x28]
test eax, eax
jl 0x477440
xor eax, eax
mov dword [ebp + 0xc], eax
jmp 0x477447
mov byte [0x4d5d88], 0
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call sub.OLE32.DLL_CoUninitialize
cmp byte [ebp - 0x328], 0
jne 0x47747f
push ebx
lea ecx, [esi + 0x706]
push ecx
call sym._L__.exe__Error
add esp, 8
or eax, 0xffffffff
jmp 0x477a87
lea ebx, [ebp - 0x328]
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x120]
push eax
push edx
lea ecx, [esi + 0x417]
push 0x104
push ecx
push ebx
push 0
call sub.KERNEL32.DLL_SearchPathA
test eax, eax
jne 0x4774c0
push ebx
lea eax, [esi + 0x73f]
push eax
call sym._L__.exe__Error
add esp, 8
or eax, 0xffffffff
jmp 0x477a87
lea edx, [esi + 0x75a]
push edx
lea ecx, [ebp - 0x120]
push ecx
call fcn.004a5374
add esp, 8
mov edi, eax
test edi, edi
jne 0x4774e3
mov ebx, 1
jmp 0x4774e5
xor ebx, ebx
test ebx, ebx
jne 0x477507
push edi
push 0x40
push 1
lea eax, [ebp - 0x5a8]
push eax
call fcn.004a55d0
add esp, 0x10
cmp eax, 0x40
je 0x477507
mov ebx, 1
lea eax, [ebp - 0x5a8]
test ebx, ebx
jne 0x47751d
cmp word [eax], 0x5a4d
je 0x47751d
mov ebx, 2
test ebx, ebx
jne 0x477539
push 0
mov eax, dword [eax + 0x3c]
push eax
push edi
call fcn.004a5660
add esp, 0xc
test eax, eax
je 0x477539
mov ebx, 1
test ebx, ebx
jne 0x47755b
push edi
push 0x18
push 1
lea eax, [ebp - 0x5a8]
push eax
call fcn.004a55d0
add esp, 0x10
cmp eax, 0x18
je 0x47755b
mov ebx, 1
test ebx, ebx
jne 0x477570
cmp dword [ebp - 0x5a8], 0x4550
je 0x477570
mov ebx, 2
lea eax, [ebp - 0x5a4]
test ebx, ebx
mov dword [ebp - 0x14], eax
jne 0x47759a
mov edx, dword [ebp - 0x14]
cmp word [edx], 0x14c
je 0x47758c
mov ebx, 2
mov eax, dword [ebp - 0x14]
test byte [eax + 0x12], 2
jne 0x47759a
mov ebx, 2
xor eax, eax
test ebx, ebx
mov dword [ebp - 4], eax
jne 0x4775f7
mov edx, dword [ebp - 0x14]
cmp word [edx + 0x10], 0xe0
jne 0x4775f7
push edi
push 0xe0
push 1
lea ecx, [ebp - 0x1bdc]
push ecx
call fcn.004a55d0
add esp, 0x10
cmp eax, 0xe0
jne 0x4775f7
cmp word [ebp - 0x1b98], 3
jne 0x4775dd
mov dword [ebp - 4], 0x10
cmp dword [ebp - 0x1bbc], 0x1000
jae 0x4775f7
cmp dword [0x4d36d8], 2
je 0x4775f7
mov ebx, 3
test edi, edi
je 0x477602
push edi
call fcn.004a4ed8
pop ecx
cmp ebx, 1
jne 0x477625
lea eax, [ebp - 0x120]
push eax
lea edx, [esi + 0x75d]
push edx
call sym._L__.exe__Error
add esp, 8
or eax, 0xffffffff
jmp 0x477a87
cmp ebx, 2
jne 0x477676
lea edx, [ebp - 0x120]
push edx
lea ecx, [esi + 0x77e]
push ecx
lea eax, [ebp - 0x7ac]
push eax
call fcn.004a6c2c
add esp, 0xc
lea edx, [esi + 0x7cd]
lea ecx, [ebp - 0x7ac]
mov eax, dword [0x4d3b7c]
push 0x2124
push edx
push ecx
push eax
call sub.USER32.DLL_MessageBoxA
cmp eax, 6
je 0x477722
or eax, 0xffffffff
jmp 0x477a87
cmp ebx, 3
jne 0x4776c3
lea edx, [ebp - 0x120]
push edx
lea ecx, [esi + 0x7e1]
push ecx
lea eax, [ebp - 0x7ac]
push eax
call fcn.004a6c2c
add esp, 0xc
lea edx, [esi + 0x82e]
lea ecx, [ebp - 0x7ac]
mov eax, dword [0x4d3b7c]
push 0x2124
push edx
push ecx
push eax
call sub.USER32.DLL_MessageBoxA
cmp eax, 6
je 0x477722
or eax, 0xffffffff
jmp 0x477a87
mov edx, dword [ebp - 0x14]
test byte [edx + 0x13], 0x20
je 0x477722
cmp dword [ebp + 0xc], 0xffffffff
je 0x47771b
lea ecx, [ebp - 0x120]
push ecx
lea eax, [esi + 0x841]
push eax
lea edx, [ebp - 0x7ac]
push edx
call fcn.004a6c2c
add esp, 0xc
lea ecx, [esi + 0x89f]
lea eax, [ebp - 0x7ac]
mov edx, dword [0x4d3b7c]
push 0x2024
push ecx
push eax
push edx
call sub.USER32.DLL_MessageBoxA
cmp eax, 6
je 0x47771b
or eax, 0xffffffff
jmp 0x477a87
mov dword [ebp - 8], 1
push 1
call fcn.004758a4
pop ecx
test eax, eax
je 0x477736
or eax, 0xffffffff
jmp 0x477a87
call fcn.0047540c
test eax, eax
je 0x477754
lea edx, [esi + 0x8b3]
push edx
call sym._L__.exe__Error
pop ecx
or eax, 0xffffffff
jmp 0x477a87
mov edx, dword [ebp - 8]
xor ecx, ecx
mov dword [0x4d6ea0], edx
mov dword [0x4d6ea4], ecx
cmp dword [0x4d6ea0], 0
je 0x47778c
call fcn.0040f40c
test eax, eax
jge 0x47778c
lea eax, [esi + 0x8d4]
push eax
call sym._L__.exe__Error
pop ecx
or eax, 0xffffffff
jmp 0x477a87
xor eax, eax
push esi
lea edi, [ebp - 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, 0x4d5b80
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x120]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push 0
push 0x4d5a7c
push 0
push 0
push eax
call fcn.004a51bc
add esp, 0x14
push 0
push 0x4d5a7c
call fcn.00409370
add esp, 8
call fcn.0046b258
cmp byte [0x4d5c84], 0
je 0x477819
xor eax, eax
push esi
or ecx, 0xffffffff
mov edi, 0x4d5c84
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x224]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x477855
push 0
push 0
lea eax, [ebp - 0x428]
push eax
lea edx, [ebp - 0xb]
push edx
lea ecx, [ebp - 0x120]
push ecx
call fcn.004a51bc
add esp, 0x14
lea eax, [ebp - 0x428]
lea edx, [ebp - 0xb]
lea ecx, [ebp - 0x224]
push 0
push 0
push eax
push edx
push ecx
call fcn.004a5198
add esp, 0x14
mov dword [ebp - 0x1afc], 0x44
xor eax, eax
xor edx, edx
mov dword [ebp - 0x1af8], eax
xor ecx, ecx
mov dword [ebp - 0x1af4], edx
mov dword [ebp - 0x1af0], ecx
mov dword [ebp - 0x1ad0], 0x81
mov word [ebp - 0x1acc], 0xa
mov word [ebp - 0x1aca], 0
xor eax, eax
mov dword [ebp - 0x1ac8], eax
cmp dword [ebp + 0xc], 1
je 0x4778aa
cmp dword [0x4d6ea0], 0
je 0x4778b1
mov byte [0x4d5d88], 0
cmp dword [0x4d6ea0], 0
je 0x4778de
lea edx, [ebp - 0x120]
lea ecx, [esi + 0x958]
push edx
push 0x4d3868
push ecx
lea eax, [ebp - 0x18b0]
push eax
call fcn.004a6c2c
add esp, 0x10
jmp 0x477928
cmp byte [0x4d5d88], 0
je 0x47790b
push 0x4d5d88
lea edx, [ebp - 0x120]
push edx
lea ecx, [esi + 0x96c]
push ecx
lea eax, [ebp - 0x18b0]
push eax
call fcn.004a6c2c
add esp, 0x10
jmp 0x477928
lea edx, [ebp - 0x120]
push edx
lea ecx, [esi + 0x3c4]
push ecx
lea eax, [ebp - 0x18b0]
push eax
call fcn.004a6c2c
add esp, 0xc
lea edx, [ebp - 0x1bec]
lea ecx, [ebp - 0x1afc]
push edx
push ecx
lea eax, [ebp - 0x224]
lea ecx, [ebp - 0x18b0]
push eax
push 0
mov edx, dword [ebp - 4]
or edx, 0x4000022
push edx
push 0
push 0
push 0
push ecx
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x47797f
lea eax, [ebp - 0x120]
push eax
lea edx, [esi + 0x974]
push edx
call sym._L__.exe__Error
add esp, 8
or eax, 0xffffffff
jmp 0x477a87
mov edx, dword [ebp - 0x1bec]
mov dword [0x4d5a60], edx
mov ecx, dword [ebp - 0x1be8]
mov dword [0x4d5a64], ecx
mov dword [0x4d5a68], 6
mov dword [0x4d5a6c], 6
mov eax, dword [ebp - 0x1be4]
mov dword [0x4d5a70], eax
mov edx, dword [ebp - 0x1be0]
mov dword [0x4d5a74], edx
mov ecx, dword [ebp - 0x10]
push ecx
lea eax, [esi + 0x3a5]
push eax
lea edx, [esi + 0x98e]
push edx
lea ecx, [ebp - 0x120]
push ecx
call fcn.004a6c2c
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
mov edx, dword [0x4d3b7c]
push edx
call sub.USER32.DLL_SetWindowTextA
mov dword [0x4d5788], 1
xor ecx, ecx
mov dword [0x4d5794], ecx
lea eax, [esi + 0x14]
push eax
push 0
push 0
call sym._L__.exe__Addtolist
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x477a36
push 0x4d5b80
lea edx, [esi + 0x996]
push edx
push 0
call sym._L__.exe__Message
add esp, 0xc
jmp 0x477a4c
push 0x4d5b80
lea ecx, [esi + 0x9a8]
push ecx
push 0
call sym._L__.exe__Message
add esp, 0xc
cmp byte [0x4d5d88], 0
je 0x477a6b
push 0x4d5d88
lea eax, [esi + 0x9b2]
push eax
push 0
call sym._L__.exe__Message
add esp, 0xc
push 0x4d5d88
push 0x4d5b80
call fcn.00476e04
add esp, 8
push 3
call fcn.00431978
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret