Function at 0x407c30
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], ecx
push ebx
push esi
push edi
test edx, edx
je 0x407ca8
xor esi, esi
cmp dword [0x40a0a0], esi
jbe 0x407ca8
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
xor edi, edi
nop dword [eax + eax]
mov ecx, dword [0x40a4fc]
xor eax, eax
add ecx, edi
je 0x407c77
cmp byte [ecx], al
je 0x407c77
inc eax
cmp byte [ecx + eax], 0
jne 0x407c70
push eax
push edx
push ecx
call ebx
test eax, eax
je 0x407c91
mov edx, dword [ebp - 0xc]
inc esi
add edi, 0x44
cmp esi, dword [0x40a0a0]
jb 0x407c60
jmp 0x407ca8
mov eax, dword [0x40a4fc]
mov ecx, esi
shl ecx, 4
add ecx, esi
lea eax, [eax + ecx*4]
test eax, eax
jne 0x408114
mov ecx, 0xf
lea edi, [ebp - 0x78]
mov esi, 0x4023b0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
cmp byte [ebp - 0x78], 0
je 0x407cca
inc esi
cmp byte [ebp + esi - 0x78], 0
jne 0x407cc2
xor edi, edi
nop dword [eax]
call fcn.004026d0
xor edx, edx
div esi
mov al, byte [ebp + edx - 0x78]
mov byte [ebp + edi - 0x28], al
inc edi
cmp edi, 0x10
jb 0x407cd0
lea edx, [ebp - 0x38]
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
call fcn.00407730
lea eax, [ebp - 0x28]
push eax
push 0x40a0cc
push 0x6d
push 0x401b10
lea eax, [ebp - 0x2c0]
push 0x1f4
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov ecx, dword [ebp + 0xc]
lea esi, [ebp - 0x2c0]
push dword [ebp - 0xc]
mov edi, eax
mov edx, 0x401b1d
add esi, edi
test ecx, ecx
cmovne edx, ecx
push edx
push 0x401bcc
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, eax
add esp, 0x28
xor ecx, ecx
test edx, edx
je 0x407d61
nop word [eax + eax]
mov eax, ecx
and eax, 0xf
mov al, byte [ebp + eax - 0x38]
xor byte [esi + ecx], al
inc ecx
cmp ecx, edx
jb 0x407d50
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [edx + edi]
push eax
lea eax, [ebp - 0x2c0]
push eax
push ecx
mov ecx, 0x40a10c
call fcn.00406850
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
je 0x408114
mov edx, eax
movsx esi, byte [edx]
mov ebx, edx
mov dword [ebp - 4], ebx
inc edx
mov eax, 0x401bd4
movsx ecx, byte [eax]
lea eax, [eax + 1]
test ecx, ecx
je 0x407db0
cmp esi, ecx
jne 0x407da0
jmp 0x407d92
test esi, esi
jne 0x407dc5
xor edx, edx
xor edi, edi
mov dword [0x40aec8], edx
xor eax, eax
jmp 0x407e7a
movsx esi, byte [edx]
mov edi, edx
inc edx
mov ecx, 0x401bd4
movsx eax, byte [ecx]
lea ecx, [ecx + 1]
cmp eax, esi
je 0x407de0
test eax, eax
jne 0x407dd0
jmp 0x407dc5
test esi, esi
jne 0x407de8
xor edx, edx
jmp 0x407deb
mov byte [edi], 0
mov dword [0x40aec8], edx
test edx, edx
jne 0x407e01
mov edx, dword [ebp - 4]
xor edi, edi
xor eax, eax
jmp 0x407e7a
mov dword [ebp - 4], ebx
movsx esi, byte [edx]
mov edi, edx
inc edx
mov ecx, 0x401bd4
nop
movsx eax, byte [ecx]
lea ecx, [ecx + 1]
test eax, eax
je 0x407e20
cmp esi, eax
jne 0x407e10
jmp 0x407e04
test esi, esi
jne 0x407e30
xor edi, edi
mov dword [0x40aec8], esi
xor eax, eax
jmp 0x407e77
movsx esi, byte [edx]
mov ebx, edx
inc edx
mov ecx, 0x401bd4
nop dword [eax + eax]
movsx eax, byte [ecx]
lea ecx, [ecx + 1]
cmp eax, esi
je 0x407e50
test eax, eax
jne 0x407e40
jmp 0x407e30
test esi, esi
jne 0x407e58
xor edx, edx
jmp 0x407e5b
mov byte [ebx], 0
xor eax, eax
mov dword [0x40aec8], edx
test edi, edi
je 0x407e77
cmp byte [edi], al
je 0x407e77
nop dword [eax + eax]
inc eax
cmp byte [edi + eax], 0
jne 0x407e70
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
lea ebx, [edi + 1]
mov ecx, dword [ebp - 8]
add ebx, eax
sub esi, ebx
add esi, ecx
test edx, edx
je 0x408102
test edi, edi
je 0x408102
mov eax, ebx
sub eax, dword [ebp - 0x10]
cmp eax, ecx
ja 0x408102
xor ecx, ecx
mov al, byte [ecx + edi]
mov byte [ebp + ecx - 0x28], al
inc ecx
cmp ecx, 0x10
jb 0x407ea8
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x28]
call fcn.00407730
xor ecx, ecx
test esi, esi
je 0x407ed7
mov eax, ecx
and eax, 0xf
mov al, byte [ebp + eax - 0x38]
xor byte [ebx + ecx], al
inc ecx
cmp ecx, esi
jb 0x407ec6
mov eax, dword [ebp - 0x14]
sub eax, 1
je 0x4080fb
sub eax, 1
je 0x4080f0
sub eax, 1
jne 0x408102
cmp dword [ebp + 8], eax
je 0x408102
xor edx, edx
cmp byte [0x40a0cc], dl
je 0x407f1a
nop dword [eax + eax]
inc edx
cmp byte [edx + 0x40a0cc], 0
jne 0x407f10
xor ecx, ecx
test edx, edx
je 0x407f32
mov al, byte [ecx + 0x40a0cc]
mov byte [ebp + ecx - 0xc8], al
inc ecx
cmp ecx, edx
jb 0x407f20
mov byte [ebp + edx - 0xc8], 0
xor esi, esi
nop dword [eax]
inc esi
cmp byte [esi + 0x401bd8], 0
jne 0x407f40
xor edx, edx
test esi, esi
je 0x407f62
mov al, byte [edx + 0x401bd8]
mov byte [ebp + edx - 0x88], al
inc edx
cmp edx, esi
jb 0x407f50
mov ecx, ebx
mov byte [ebp + esi - 0x88], 0
call fcn.00405a60
mov ebx, eax
test ebx, ebx
je 0x408102
mov ecx, dword [ebx + 0x3c]
xor esi, esi
mov edi, dword [ecx + ebx + 0x78]
mov ecx, dword [edi + ebx + 0x1c]
add edi, ebx
add ecx, ebx
mov dword [ebp - 4], ecx
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
add eax, ebx
add ecx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], ecx
cmp dword [edi + 0x18], esi
jbe 0x408102
nop dword [eax + eax]
mov eax, dword [eax + esi*4]
add eax, ebx
push 0x401be4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x407fd3
mov eax, dword [ebp - 0x14]
inc esi
cmp esi, dword [edi + 0x18]
jb 0x407fb0
jmp 0x408102
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + esi*2]
mov ecx, dword [ecx + eax*4]
add ecx, ebx
je 0x408102
mov edx, dword [ebp + 8]
xor eax, eax
cmp byte [edx], al
je 0x407ff8
inc eax
cmp byte [edx + eax], 0
jne 0x407ff1
mov edi, dword [ebp - 0xc]
lea esi, [ebp - 0xc8]
push 0x407930
push esi
push eax
push edx
push edi
call ecx
push 0x40a088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x40a0a0]
mov edx, dword [0x40a4fc]
test ecx, ecx
je 0x408045
mov eax, ecx
shl eax, 4
dec eax
add eax, ecx
lea eax, [edx + eax*4]
cmp dword [eax], 0
jne 0x40803f
sub eax, 0x44
sub ecx, 1
jne 0x408032
mov dword [0x40a0a0], ecx
xor eax, eax
test ecx, ecx
je 0x408064
mov esi, edx
nop dword [eax]
cmp dword [esi + 0x40], 0
je 0x408060
inc eax
add esi, 0x44
cmp eax, ecx
jb 0x408050
jmp 0x408064
test esi, esi
jne 0x4080ba
lea eax, [ecx + 1]
mov ecx, eax
shl ecx, 4
add ecx, eax
shl ecx, 2
push ecx
test edx, edx
jne 0x408087
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x408097
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
mov dword [0x40a4fc], edx
test edx, edx
je 0x4080e3
mov ecx, dword [0x40a0a0]
mov eax, ecx
shl eax, 4
add eax, ecx
inc ecx
mov dword [0x40a0a0], ecx
lea esi, [edx + eax*4]
xor edx, edx
mov dword [esi + 0x40], ebx
test edi, edi
je 0x4080df
cmp byte [edi], dl
je 0x4080ce
inc edx
cmp byte [edi + edx], 0
jne 0x4080c7
xor ecx, ecx
test edx, edx
je 0x4080df
mov al, byte [ecx + edi]
mov byte [ecx + esi], al
inc ecx
cmp ecx, edx
jb 0x4080d4
mov byte [edx + esi], 0
push 0x40a088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x408102
mov edx, esi
mov ecx, ebx
call fcn.00405ff0
jmp 0x408102
mov ecx, ebx
call fcn.00405c90
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret