Function at 0x40d55f
Capabilities:
Delete directory
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409c2a
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x41607c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esi], ebx
mov dword [ebp - 0xbc], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 4], 1
push 0xa
push 0x12c
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x40d728
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xb8], eax
cmp eax, ebx
je 0x40d728
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40d728
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xb4], eax
cmp eax, ebx
je 0x40d728
mov edi, dword [ebp - 0xb8]
add edi, 0xffffffd8
push edi
lea ecx, [ebp - 0xb0]
call fcn.0040a713
mov eax, dword [ebp - 0xb4]
push edi
mov edi, dword [ebp - 0xb0]
add eax, 0x28
push eax
push edi
call fcn.0040da19
mov edx, dword [ebp - 0xac]
mov ecx, edx
add esp, 0xc
xor eax, eax
sub ecx, edi
je 0x40d658
lea esp, [esp]
xor byte [edi + eax], 0x37
inc eax
cmp eax, ecx
jb 0x40d64f
mov ecx, dword [ebp - 0xbc]
push ecx
push edx
push edi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.0040a35c
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
call fcn.0040829c
mov byte [ebp - 4], 3
push str._tmppack.exe
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.0040a620
add esp, 0xc
mov byte [ebp - 4], 4
lea edx, [ebp - 0x64]
push edx
push eax
mov ecx, esi
call fcn.00401eb8
test al, al
sete byte [ebp - 0x9d]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x34], 8
jb 0x40d6cd
mov eax, dword [ebp - 0x48]
push eax
call fcn.00401b22
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp byte [ebp - 0x9d], bl
je 0x40d736
mov dword [esi], 0xfffffffe
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
jb 0x40d701
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00401b22
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], 0x10
jb 0x40d8b9
mov ecx, dword [ebp - 0x64]
push ecx
jmp 0x40d8b1
mov dword [esi], 0xffffffff
mov byte [ebp - 4], bl
jmp 0x40d8d6
push str._tmppack.exe
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.0040a620
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov ecx, esi
call fcn.0040ceab
mov byte [ebp - 4], 3
cmp dword [ebp - 0x34], 8
jb 0x40d771
mov edx, dword [ebp - 0x48]
push edx
call fcn.00401b22
add esp, 4
push str.ins
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x80]
xor eax, eax
push edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
call fcn.0040a620
mov byte [ebp - 4], 6
push 0x411348
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00401d1a
mov byte [ebp - 4], 7
push str.ler.pak
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.00401d1a
add esp, 0x24
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x54]
lea edx, [ecx + ecx*4]
push edx
push eax
mov ecx, esi
call fcn.0040ecfc
test al, al
sete byte [ebp - 0x9d]
mov byte [ebp - 4], 7
cmp dword [ebp - 0x34], 8
jb 0x40d7f1
mov eax, dword [ebp - 0x48]
push eax
call fcn.00401b22
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
mov byte [ebp - 4], 6
cmp dword [ebp - 0x88], 8
jb 0x40d81d
mov edx, dword [ebp - 0x9c]
push edx
call fcn.00401b22
add esp, 4
xor eax, eax
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x6c], 8
jb 0x40d84c
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00401b22
add esp, 4
xor edx, edx
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
cmp byte [ebp - 0x9d], bl
je 0x40d86a
mov dword [esi], 0xfffffffd
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40d876
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
jb 0x40d893
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00401b22
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], 0x10
jb 0x40d8b9
mov edx, dword [ebp - 0x64]
push edx
call fcn.00401b22
add esp, 4
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
mov byte [ebp - 4], bl
cmp edi, ebx
je 0x40d8d6
push edi
call fcn.00401b22
add esp, 4
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401b13
mov esp, ebp
pop ebp
ret