Function at 0x420110
Capabilities:
Encode data using xor
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508e09
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b0
push ebx
mov ebx, ecx
mov byte [ebp - 0x15], dl
push esi
mov dword [ebp - 0x1c], ebx
push edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov byte [ebp - 4], 1
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
mov dword [ebp - 0x10], 1
cmp esi, edi
je 0x420183
nop
mov ecx, esi
call fcn.00402c80
add esi, 0x18
cmp esi, edi
jne 0x420170
mov eax, dword [ebx]
mov dword [ebx + 4], eax
mov dword [ebp - 0x14], 0x100c2bb
xor ecx, ecx
lea esp, [esp]
lea eax, [ecx - 0x19]
xor byte [ebp + ecx - 0x14], al
inc ecx
cmp ecx, 2
jb 0x420190
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x14]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4201b0
sub ecx, edx
mov eax, closesocket
mov edx, dword [ebp + 0x18]
sub eax, edx
cmp eax, ecx
jb 0x4204a9
cmp dword [ebp + 0x1c], 0xf
lea eax, [ebp + 8]
jbe 0x4201d7
mov eax, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x64]
call fcn.00470ea0
cmp dword [ebp - 0x50], 0xf
lea eax, [ebp - 0x64]
mov dword [ebp - 0x10], 3
jbe 0x4201fd
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x1bc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, 3
mov edi, eax
mov dword [ebp - 0x10], esi
and esi, 0xfffffffd
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00402c80
cmp edi, 0xffffffff
je 0x42047b
cmp byte [ebp - 0x15], 0
jne 0x420245
test byte [ebp - 0x1bc], 0x10
jne 0x42044f
jmp 0x420252
test byte [ebp - 0x1bc], 0x10
je 0x42044f
lea eax, [ebp - 0x190]
lea edx, [eax + 1]
jmp 0x420260
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420260
mov cl, byte [ebp - 0x190]
sub eax, edx
cmp eax, 1
jne 0x42027d
cmp cl, 0x2e
je 0x42044f
cmp eax, 2
jne 0x420293
cmp cl, 0x2e
jne 0x420293
cmp byte [ebp - 0x18f], cl
je 0x42044f
cmp byte [ebp + 0x20], 0
je 0x4203d3
mov word [ebp - 0x18], 0x5c
mov byte [ebp - 0x16], 0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x18]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4202b4
sub ecx, edx
mov eax, closesocket
mov edx, dword [ebp + 0x18]
sub eax, edx
cmp eax, ecx
jb 0x4204a9
cmp dword [ebp + 0x1c], 0xf
lea eax, [ebp + 8]
jbe 0x4202db
mov eax, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x7c]
call fcn.00470ea0
or esi, 4
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x190]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420301
sub ecx, edx
lea eax, [ebp - 0x190]
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.0046b590
mov edx, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
or esi, 8
mov ecx, dword [edx]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x34], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x30], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], ecx
mov ecx, ebx
push eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
mov dword [ebp - 0x10], esi
call fcn.00467940
and esi, 0xfffffff7
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x4203ad
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4203a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4204a4
push ecx
push edx
call fcn.004dfaf3
add esp, 8
and esi, 0xfffffffb
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
call fcn.00402c80
jmp 0x42044f
xor ecx, ecx
push eax
lea eax, [ebp - 0x190]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x4c]
push eax
call fcn.00402ea0
mov dword [ebp - 4], 5
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
call fcn.00467940
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x38]
cmp ecx, 0xf
jbe 0x42043d
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x420433
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4204a4
push ecx
push edx
call fcn.004dfaf3
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x1bc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x420230
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x420230
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402c80
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004e4d70
call fcn.004025a0
int3