Function at 0x41b9d4
Capabilities:
Encode data using xor
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
lea ebx, [ecx - 0x23a3]
push edi
lea edi, [ecx + 0x205]
xor esi, 0x775
lea ecx, [eax - 0x24f7]
mov dword [esp + 0x10], edi
lea edx, [eax + 0x40]
mov dword [esp + 0x20], esi
lea eax, [ebx + 0x237e]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
mov ebp, ecx
cmp edi, eax
jl 0x41bf10
mov esi, dword [esp + 0x2c]
cmp edi, dword [esp + 0x24]
jl 0x41bb9b
lea eax, [ecx + 0x25a8]
cmp edi, eax
jl 0x41bb38
mov eax, dword [0x645dfc]
add ebp, 0x237e
cmp eax, dword [esi + 0x34]
jb 0x41ba51
add dword [esi + 0x3c], 0x13
mov ecx, dword [0x645d9c]
sub edi, 0x22a
mov eax, dword [0x645e74]
xor ebx, 0x24c3
add eax, 0x1bfa8
mov dword [esp + 0x10], edi
add dword [ecx + 0x3c], eax
mov eax, dword [0x645e2c]
mov ecx, dword [esi + 0x3c]
add eax, 0x3793e
add ecx, eax
mov eax, dword [esi + 0x108]
add eax, 0x12a6d1
xor ecx, eax
cmp dword [esi + 0xcc], 0x183bb
mov dword [esi + 0x3c], ecx
je 0x41bace
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x74]
sub ecx, dword [esi + 0x24]
xor eax, 0xdb1fe
push eax
add ecx, 0x1e6a2b
push ecx
push dword [0x645ddc]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add eax, 0x3800
mov dword [esi + 0xfc], eax
add dword [esp + 0x20], 0x47
mov ecx, dword [esi + 4]
cmp ecx, dword [0x645dcc]
je 0x41baec
mov eax, dword [0x645d9c]
add ecx, 0xfffffff6
mov dword [eax + 0x84], ecx
mov eax, dword [0x645e9c]
mov ecx, dword [esi + 0x34]
add dword [esp + 0x1c], 0x2370
add ecx, 0x273c
mov dword [esi + 0xa4], eax
mov eax, dword [0x645d9c]
mov dword [eax + 0x114], ecx
mov eax, dword [0x645d9c]
mov ecx, dword [esp + 0x1c]
cmp dword [eax + 0xc4], 0x8317
ja 0x41bbea
mov dword [esi + 0x6c], 0xfafafafb
jmp 0x41bbea
imul eax, dword [esi + 0xcc], 0x2537
cmp dword [esi + 0x20], eax
jb 0x41bbea
mov eax, dword [0x645d9c]
mov ecx, dword [esi + 0xbc]
add ecx, dword [esi + 0x2c]
or ecx, dword [eax + 0x20]
cmp edx, ecx
jbe 0x41bbe8
mov eax, dword [esi + 0xa8]
or eax, edx
cmp edx, eax
jae 0x41bbe8
mov ecx, edi
mov edi, edx
xor ecx, 0x5c
or ecx, 0x23a3
mov eax, dword [0x645d9c]
xor dword [eax + 0xe0], ecx
inc edi
mov eax, dword [esi + 0xa8]
or eax, edx
cmp edi, eax
jb 0x41bb7d
mov edi, dword [esp + 0x10]
jmp 0x41bbe8
mov eax, dword [0x645d9c]
mov eax, dword [eax + 0x108]
or eax, ebp
cmp dword [esi + 0x118], eax
jne 0x41bbea
lea eax, [edi + edx]
push eax
mov eax, dword [esi + 0x108]
xor eax, dword [esi + 0xb4]
sub eax, 0x24c3
push eax
mov eax, dword [esi + 0x120]
and eax, dword [esp + 0x28]
and eax, 0x23c0
push eax
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, ebp
imul eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, ebp
mov eax, edi
xor eax, 0x190
cmp dword [esp + 0x20], eax
je 0x41c014
lea eax, [ecx + 0x187]
cmp ebx, eax
jge 0x41bea0
xor ebp, ebp
mov dword [esi + 0xa0], 0x41d190
mov edi, ebp
mov eax, dword [0x645d9c]
mov eax, dword [eax + 0x98]
sub dword [esi + 0xec], eax
mov ecx, dword [0x645d9c]
mov eax, dword [esi + 0x118]
xor eax, dword [esi + 0x4c]
sub eax, 0x43
imul eax, dword [ecx + 0xcc]
mov dword [ecx + 0xcc], eax
mov eax, dword [0x645e48]
mov ecx, dword [0x645d9c]
inc eax
imul eax, dword [0x645ea8]
mov dword [0x645ea8], eax
mov eax, 0xfffe5195
sub eax, dword [0x645e74]
add dword [ecx + 0xd8], eax
mov eax, dword [0x645d9c]
mov eax, dword [eax + 0xa0]
mov edx, dword [edi + eax]
add edi, 4
mov eax, dword [esi + 0x4c]
sub eax, 0x45
or dword [esi + 0x98], eax
mov eax, 0xbe3d7
sub eax, dword [0x645e98]
mov ecx, dword [0x645d9c]
add dword [ecx + 0x98], eax
mov ecx, dword [0x645d9c]
mov eax, dword [esi + 0x20]
mov ebx, dword [esi + 0x6c]
xor eax, 1
imul ebx, edx
imul eax, dword [ecx + 0x108]
mov edx, ebx
mov dword [ecx + 0x108], eax
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0xa4]
shr edx, 0x10
mov byte [ecx + eax], dl
mov eax, 0xdb1be
inc dword [esi + 0x84]
mov edx, ebx
sub eax, dword [esi + 0x74]
add dword [0x645dc4], eax
mov eax, dword [0x645d9c]
shr edx, 8
mov ecx, dword [eax + 0xa4]
mov eax, dword [esi + 0x84]
mov byte [ecx + eax], dl
inc dword [esi + 0x84]
mov ecx, dword [esi + 0xa4]
mov eax, dword [0x645e24]
mov byte [eax + ecx], bl
inc dword [0x645e24]
cmp edi, 0x99a90
jl 0x41bc17
mov eax, dword [esi + 0x10]
xor eax, dword [esi + 0xf8]
xor eax, 0x918c9cc0
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x4c]
cmp eax, dword [0x645e48]
jne 0x41bd59
mov eax, dword [esi + 0xdc]
xor eax, 0x9f
or dword [esi + 0x118], eax
jmp 0x41bd63
mov dword [esi + 0xa0], section..data
mov edi, dword [esp + 0x10]
mov eax, dword [0x645d9c]
mov ecx, dword [esi + 0x118]
add ecx, 0xfff41c28
mov eax, dword [eax + 0xa0]
mov ebx, dword [eax + ebp]
add ebp, 4
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x4c]
sub eax, 0x10349
xor dword [esi + 0x2c], eax
mov edx, dword [0x645d9c]
mov eax, dword [esi + 0xf8]
add eax, ecx
movzx ecx, bl
xor dword [edx + 0xb0], eax
mov eax, dword [0x645e2c]
xor eax, 0x10
sub dword [esi + 0x20], eax
mov eax, dword [0x645d9c]
movzx edx, byte [eax + 0x6c]
mov eax, dword [esi + 0x84]
imul edx, ecx
mov ecx, dword [esi + 0xa4]
mov byte [ecx + eax], dl
inc dword [esi + 0x84]
mov edx, dword [0x645d9c]
mov eax, dword [0x645e10]
add eax, 0xfff24e42
add eax, dword [esi + 0x74]
imul eax, dword [edx + 0x78]
mov dword [edx + 0x78], eax
mov edx, dword [0x645d9c]
mov eax, dword [esi + 0x108]
mov ecx, dword [edx + 0x10]
add ecx, 0xf87cfa7e
add eax, ecx
xor dword [edx + 0xb0], eax
mov eax, dword [0x645dec]
mov ecx, dword [esi + 0x74]
add eax, 0xffed1c2f
add ecx, dword [esi + 0x124]
add eax, ecx
mov dword [0x645dec], eax
mov eax, dword [0x645eb8]
dec eax
add dword [esi + 0xd8], eax
xor eax, eax
inc eax
sub eax, dword [0x645e8c]
add dword [0x645db0], eax
mov eax, dword [esi + 0xcc]
imul eax, dword [esi + 0x98]
mov dword [esi + 0x98], eax
mov eax, dword [0x645d9c]
mov ecx, dword [0x645e74]
sub ecx, dword [eax + 0x74]
mov eax, dword [esi + 0x34]
xor ecx, 0xfff09fd6
imul ecx, dword [esi + 0xd4]
add dword [esi + 0x5c], eax
mov dword [esi + 0xd4], ecx
cmp ebp, 0x112a10
jl 0x41bd67
mov ecx, dword [esi + 0xec]
mov eax, dword [0x645d9c]
add ecx, 0x3dc85
mov dword [eax + 0x6c], ecx
jmp 0x41c014
mov eax, dword [0x645d9c]
sub ebx, edi
mov ecx, dword [eax + 0xa8]
cmp ecx, ebx
je 0x41c014
mov edi, dword [esp + 0x20]
mov eax, ebp
or eax, 0x23ff
add eax, 0xffffdc49
sub ebx, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xe8]
add eax, 0x237e
xor eax, 0x2405
push eax
mov eax, dword [esi + 0x12c]
or eax, ebp
xor eax, 0x24f7
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [0x645de0]
xor eax, edi
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
sub ebx, 1
jne 0x41becb
mov edi, dword [esp + 0x10]
jmp 0x41c014
mov edi, dword [esp + 0x2c]
mov eax, dword [0x645dc0]
xor eax, ebp
cmp dword [edi + 0x90], eax
mov edi, dword [esp + 0x10]
jne 0x41bfc4
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 4]
or eax, esi
xor eax, ecx
cmp dword [ebx + 0xcc], eax
jbe 0x41bf63
mov eax, dword [ebx + 0xc8]
add eax, 0x243f
add eax, ebp
push eax
mov eax, dword [0x645e68]
xor eax, 0x2474
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp + 0x14]
mov ecx, ebp
lea eax, [edi - 0x23c0]
push eax
mov eax, dword [0x645da8]
sub eax, ecx
imul eax, ecx
push eax
mov eax, ecx
imul eax, esi
push eax
mov eax, dword [0x645e74]
imul eax, edx
push eax
mov eax, dword [0x645d9c]
mov eax, dword [eax + 0x70]
or eax, dword [ebx + 0x7c]
push eax
lea eax, [ecx - 0x243f]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [0x645e34]
or eax, dword [esp + 0x14]
add eax, ebp
push eax
mov eax, dword [0x645d9c]
mov eax, dword [eax + 0x70]
xor eax, dword [esp + 0x18]
sub eax, dword [0x645eb8]
push eax
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
jmp 0x41c014
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x2c]
imul ebx, edx
mov ecx, dword [eax + 0x108]
mov eax, dword [0x645d9c]
mov eax, dword [eax + 0x38]
xor eax, dword [edi + 0xd8]
push eax
mov eax, ebp
xor eax, edx
sub eax, ecx
push eax
mov eax, edi
mov edi, dword [esp + 0x18]
or ecx, edi
mov eax, dword [eax + 0x40]
and eax, esi
push eax
lea eax, [ebp - 0x24db]
push eax
imul eax, edi, 0x23c0
xor eax, 0x2537
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edi, 0x77b
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret