Function at 0x406490
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c34f
mov eax, dword fs:[0]
push eax
sub esp, 0x56c
mov eax, dword [0x5cf000]
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
push 1
lea eax, [ebp - 0x4d8]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp + 8]
call fcn.004098a0
mov eax, dword [eax]
mov ecx, 0x5afbe8
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406506
test dx, dx
je 0x406502
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406506
add eax, 4
add ecx, 4
test dx, dx
jne 0x4064e0
xor esi, esi
jmp 0x40650b
sbb esi, esi
or esi, 1
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x4d8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40652f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x406542
push 1
push 0x5afbe8
lea ecx, [ebp + 8]
call fcn.0040a6c0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.0040a460
add eax, 0x10
add esp, 4
mov dword [ebp - 0x4ec], eax
mov byte [ebp - 4], 5
call fcn.0042d054
mov ecx, eax
mov byte [ebp - 4], 4
test ecx, ecx
je 0x407218
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x4cc], edi
mov byte [ebp - 4], 8
call fcn.0042d054
mov ecx, eax
mov byte [ebp - 4], 7
test ecx, ecx
je 0x407222
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
mov byte [ebp - 4], 0xb
call fcn.0042d054
mov ecx, eax
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x40722c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4d4], eax
push 3
push 0x5aff9c
lea ecx, [ebp - 0x4ec]
mov byte [ebp - 4], 0xc
call fcn.0040a6c0
lea ecx, [ebp - 0x4bc]
call fcn.0040e1f0
push ecx
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x4bc]
push dword [ebp - 0x4ec]
call fcn.0040e2d0
test eax, eax
je 0x407123
nop dword [eax + eax]
lea eax, [ebp - 0x268]
mov ecx, 0x94
lea esi, [ebp - 0x268]
lea edi, [ebp - 0x4b8]
push eax
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x4bc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test byte [ebp - 0x4b8], 0x10
mov dword [ebp - 0x4f0], eax
je 0x406966
cmp word [ebp - 0x48c], 0x2e
jne 0x406677
mov cx, word [ebp - 0x48a]
test cx, cx
je 0x40710a
cmp cx, 0x2e
jne 0x406677
cmp word [ebp - 0x488], 0
je 0x40710a
lea eax, [ebp - 0x48c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4e4]
push eax
call fcn.004092d0
add esp, 0xc
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x4e4]
mov esi, dword [ebp - 0x4cc]
add esi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x406706
mov eax, dword [esi + 0xc]
lea edi, [esi + 0xc]
shr eax, 0x1f
test al, al
jne 0x4066f1
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4066f1
push edx
call fcn.0040a460
add esp, 4
mov dword [ebp - 0x4c0], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4066e6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x4c0]
add eax, 0x10
mov dword [ebp - 0x4cc], eax
jmp 0x406700
push dword [edx + 4]
push ecx
lea ecx, [ebp - 0x4cc]
call fcn.0040a5a0
mov ecx, dword [ebp - 0x4e4]
mov byte [ebp - 4], 0xd
lea edx, [ecx - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406721
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
push 0x5afbe8
lea ecx, [ebp - 0x4cc]
call fcn.0040a6c0
lea eax, [ebp - 0x55c]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.0040e440
mov byte [ebp - 4], 0x13
mov ecx, dword [eax]
mov esi, dword [ebp - 0x4d0]
lea edx, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp edx, edi
je 0x4067b6
mov eax, dword [edi + 0xc]
lea esi, [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x4067a1
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4067a1
push edx
call fcn.0040a460
add esp, 4
mov dword [ebp - 0x4c0], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x406796
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x4c0]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
jmp 0x4067b6
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x4d0]
call fcn.0040a5a0
mov esi, dword [ebp - 0x4d0]
mov byte [ebp - 4], 0xd
mov eax, ebx
mov edx, dword [ebp - 0x55c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4067d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x4d4]
add edi, 0xfffffff0
lea edx, [eax - 0x10]
cmp edx, edi
je 0x40683f
mov ecx, dword [edi + 0xc]
shr ecx, 0x1f
test cl, cl
jne 0x406830
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x406830
push edx
call fcn.0040a460
add esp, 4
mov dword [ebp - 0x4c0], eax
mov ecx, ebx
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406825
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x4c0]
add eax, 0x10
mov dword [ebp - 0x4d4], eax
jmp 0x40683f
push dword [edx + 4]
lea ecx, [ebp - 0x4d4]
push eax
call fcn.0040a5a0
push dword [esi - 0xc]
lea ecx, [ebp - 0x4d4]
push esi
call fcn.0040a6c0
push 1
push 0x5afbe8
lea ecx, [ebp - 0x4d4]
call fcn.0040a6c0
mov eax, dword [ebp - 0x4d4]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x4e0], esp
mov edi, esp
push eax
mov dword [ebp - 0x4c0], edi
call fcn.0040a460
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x48c]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4dc]
push eax
call fcn.004092d0
add esp, 0x10
mov byte [ebp - 4], 0x15
mov edi, dword [ebp - 0x4dc]
cmp dword [edi - 4], 1
jle 0x4068c5
push dword [edi - 0xc]
lea ecx, [ebp - 0x4dc]
call fcn.0040a2c0
mov edi, dword [ebp - 0x4dc]
push ecx
mov dword [ebp - 0x4d8], esp
mov byte [ebp - 4], 0x16
call fcn.0042d054
mov ecx, eax
mov byte [ebp - 4], 0x15
test ecx, ecx
je 0x407218
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x4d8]
add eax, 0x10
mov dword [ecx], eax
push edi
mov byte [ebp - 4], 0x17
call fcn.0040a010
test al, al
jne 0x40692c
test edi, edi
jne 0x406909
xor eax, eax
jmp 0x40691f
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406910
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x4d8]
push eax
push edi
call fcn.0040a5a0
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 0x18
call fcn.00406490
mov byte [ebp - 4], 0xd
add esp, 8
mov edx, dword [ebp - 0x4dc]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407110
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x407110
xor ecx, ecx
cmp word [ebp - 0x48c], 0x2e
jne 0x406992
mov ax, word [ebp - 0x48a]
test ax, ax
je 0x40698d
cmp ax, 0x2e
jne 0x406992
cmp word [ebp - 0x488], cx
jne 0x406992
mov ecx, 1
test ecx, ecx
jne 0x40710a
lea eax, [ebp - 0x48c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4e8]
push eax
call fcn.004092d0
add esp, 0xc
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x4e8]
mov edi, dword [ebp - 0x4cc]
lea edx, [eax - 0x10]
lea esi, [edi - 0x10]
cmp edx, esi
je 0x406a2f
mov ecx, dword [esi + 0xc]
lea edi, [esi + 0xc]
shr ecx, 0x1f
test cl, cl
jne 0x406a14
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x406a14
push edx
call fcn.0040a460
add esp, 4
mov dword [ebp - 0x4c0], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x406a09
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x4c0]
lea edi, [eax + 0x10]
mov dword [ebp - 0x4cc], edi
jmp 0x406a29
push dword [edx + 4]
lea ecx, [ebp - 0x4cc]
push eax
call fcn.0040a5a0
mov edi, dword [ebp - 0x4cc]
mov eax, dword [ebp - 0x4e8]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0xd
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406a4a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x560]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.0040e440
mov byte [ebp - 4], 0xf
mov edx, dword [eax]
mov esi, dword [ebp - 0x4d0]
lea eax, [edx - 0x10]
lea ecx, [esi - 0x10]
mov dword [ebp - 0x4c8], ecx
cmp eax, ecx
je 0x406ae8
lea eax, [ecx + 0xc]
mov dword [ebp - 0x4c0], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x406ad3
mov eax, dword [edx - 0x10]
lea esi, [edx - 0x10]
cmp eax, dword [ecx]
jne 0x406ad3
push esi
call fcn.0040a460
mov edx, dword [ebp - 0x4c0]
add esp, 4
mov dword [ebp - 0x4c4], eax
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406ac8
mov esi, dword [ebp - 0x4c8]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x4c4]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
jmp 0x406ae8
push dword [edx - 0xc]
lea ecx, [ebp - 0x4d0]
push edx
call fcn.0040a5a0
mov esi, dword [ebp - 0x4d0]
mov byte [ebp - 4], 0xd
mov eax, ebx
mov edx, dword [ebp - 0x560]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406b09
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x564]
call fcn.0040e890
mov byte [ebp - 4], 0x10
mov edx, dword [eax]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov dword [ebp - 0x4c4], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x4c0], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x406b9f
lea eax, [ecx + 0xc]
mov dword [ebp - 0x4c8], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x406b93
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x406b93
push dword [ebp - 0x4c0]
call fcn.0040a460
mov edx, dword [ebp - 0x4c8]
add esp, 4
mov dword [ebp - 0x4c0], eax
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406b8b
mov eax, dword [ebp - 0x4c4]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x4c0]
add eax, 0x10
mov dword [ebp + 0xc], eax
jmp 0x406b9f
push dword [edx - 0xc]
lea ecx, [ebp + 0xc]
push edx
call fcn.0040a5a0
mov edx, dword [ebp - 0x564]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406bbc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x558]
call fcn.00407240
mov byte [ebp - 4], 0x11
lea edx, [esi - 0x10]
mov ecx, dword [ebp - 0x540]
add ecx, 0xfffffff0
mov dword [ebp - 0x4c8], ecx
cmp edx, ecx
je 0x406c47
lea eax, [ecx + 0xc]
mov dword [ebp - 0x4c0], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x406c38
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x406c38
push edx
call fcn.0040a460
mov edx, dword [ebp - 0x4c0]
add esp, 4
mov dword [ebp - 0x4c4], eax
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406c2d
mov eax, dword [ebp - 0x4c8]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x4c4]
add eax, 0x10
mov dword [ebp - 0x540], eax
jmp 0x406c47
push dword [edx + 4]
lea ecx, [ebp - 0x540]
push esi
call fcn.0040a5a0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x53c]
add edx, 0xfffffff0
mov dword [ebp - 0x4c4], edx
lea ecx, [eax - 0x10]
mov dword [ebp - 0x4c0], ecx
lea ecx, [eax - 0x10]
cmp ecx, edx
je 0x406cd5
lea ecx, [edx + 0xc]
mov dword [ebp - 0x4c8], ecx
mov ecx, dword [ecx]
shr ecx, 0x1f
test cl, cl
jne 0x406cc6
mov ecx, dword [eax - 0x10]
cmp ecx, dword [edx]
jne 0x406cc6
push dword [ebp - 0x4c0]
call fcn.0040a460
mov edx, dword [ebp - 0x4c8]
add esp, 4
mov dword [ebp - 0x4c0], eax
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406cbb
mov eax, dword [ebp - 0x4c4]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x4c0]
add eax, 0x10
mov dword [ebp - 0x53c], eax
jmp 0x406cd5
push dword [eax - 0xc]
lea ecx, [ebp - 0x53c]
push eax
call fcn.0040a5a0
mov ecx, dword [ebp - 0x4f8]
lea edx, [edi - 0x10]
add ecx, 0xfffffff0
cmp edx, ecx
je 0x406d4e
lea eax, [ecx + 0xc]
mov dword [ebp - 0x4c0], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x406d3f
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x406d3f
push edx
call fcn.0040a460
mov edx, dword [ebp - 0x4c0]
add esp, 4
mov dword [ebp - 0x4c8], eax
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406d34
mov eax, dword [ebp - 0x4f8]
add eax, 0xfffffff0
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x4c8]
lea edx, [eax + 0x10]
mov dword [ebp - 0x4f8], edx
jmp 0x406d4e
push dword [edx + 4]
lea ecx, [ebp - 0x4f8]
push edi
call fcn.0040a5a0
mov ecx, dword [ebp - 0x4f8]
lea eax, [ebp - 0x578]
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x548], 0
lea eax, [ebp - 0x518]
movlpd qword [ebp - 0x550], xmm0
push eax
lea edx, [ebp - 0x520]
movlpd qword [ebp - 0x558], xmm0
movlpd qword [ebp - 0x528], xmm0
call fcn.0040d5c0
mov eax, dword [ebp - 0x53c]
mov ecx, dword [ebp - 0x540]
push 1
mov eax, dword [eax - 0xc]
add eax, dword [ecx - 0xc]
lea eax, [eax*2 + 0x48]
push eax
mov dword [ebp - 0x4f4], eax
call fcn.005562b1
push 1
push dword [ebp - 0x4f4]
mov dword [ebp - 0x4c8], eax
call fcn.005562b1
mov edx, dword [ebp - 0x554]
add esp, 0x18
mov ecx, dword [ebp - 0x558]
mov dword [ebp - 0x4c0], eax
mov eax, dword [ebp - 0x4c8]
mov dword [ebp - 0x544], 0
mov dword [eax], ecx
mov ecx, dword [ebp - 0x550]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x54c]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x534]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x4c8]
mov eax, dword [ebp - 0x548]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x538]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x530]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x528]
mov dword [edx + 0x20], ecx
mov ecx, dword [ebp - 0x52c]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x520]
mov dword [edx + 0x28], ecx
mov ecx, dword [ebp - 0x524]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x518]
mov dword [edx + 0x30], ecx
mov ecx, dword [ebp - 0x51c]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 0x540]
mov dword [edx + 0x38], ecx
mov ecx, dword [ebp - 0x514]
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 2
mov dword [edx + 0x40], ecx
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x4c4], ecx
jle 0x406eac
push ecx
lea ecx, [ebp - 0x540]
call fcn.0040a2c0
mov edx, dword [ebp - 0x4c8]
mov ecx, dword [ebp - 0x4c4]
lea eax, [ecx*2 + 2]
push eax
push dword [ebp - 0x540]
lea eax, [edx + 0x44]
push eax
call fcn.0054f810
mov eax, dword [ebp - 0x53c]
add esp, 0xc
mov ecx, dword [ebp - 0x540]
cmp dword [eax - 4], 1
mov edx, dword [eax - 0xc]
mov ecx, dword [ecx - 0xc]
mov dword [ebp - 0x4c4], edx
mov dword [ebp - 0x4e0], ecx
jle 0x406f02
push edx
lea ecx, [ebp - 0x53c]
call fcn.0040a2c0
mov edx, dword [ebp - 0x4c4]
mov ecx, dword [ebp - 0x4e0]
lea eax, [edx*2 + 2]
push eax
mov eax, dword [ebp - 0x53c]
push eax
mov eax, dword [ebp - 0x4c8]
lea eax, [eax + ecx*2]
add eax, 0x46
push eax
call fcn.0054f810
mov eax, dword [ebp - 0x540]
add esp, 0xc
test eax, eax
jne 0x406f34
xor ecx, ecx
jmp 0x406f50
push dword [eax - 8]
push eax
call fcn.00552b36
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40720e
mov eax, dword [ebp - 0x540]
cmp ecx, dword [eax - 8]
jg 0x40720e
xor edx, edx
mov dword [eax - 0xc], ecx
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x53c]
test eax, eax
jne 0x406f70
xor ecx, ecx
jmp 0x406f8c
push dword [eax - 8]
push eax
call fcn.00552b36
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40720e
mov eax, dword [ebp - 0x53c]
cmp ecx, dword [eax - 8]
jg 0x40720e
push dword [ebp - 0x4f4]
mov dword [eax - 0xc], ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x4c8]
push eax
push dword [ebp - 0x4c0]
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
call fcn.0054f810
mov eax, dword [ebp - 0x4f4]
add esp, 0xc
xor edx, edx
test eax, eax
je 0x407010
mov ebx, dword [ebp - 0x4c0]
mov esi, edx
mov edi, eax
nop word [eax + eax]
mov al, byte [esi + 0x5b29f0]
xor ecx, ecx
xor byte [ebx + edx], al
inc edx
cmp esi, 0x17
lea eax, [esi + 1]
cmovne ecx, eax
mov esi, ecx
cmp edx, edi
jb 0x406fe0
mov esi, dword [ebp - 0x4d0]
or ebx, 0xffffffff
mov edi, dword [ebp - 0x4cc]
mov eax, dword [ebp - 0x4f4]
add eax, 0x315e4
mov dword [ebp - 0x4c4], eax
not al
mov cl, byte [ebp - 0x4c3]
xor cl, al
mov byte [ebp - 0x4c4], al
mov byte [ebp - 0x4c3], cl
xor cl, byte [ebp - 0x4c2]
xor byte [ebp - 0x4c1], cl
mov byte [ebp - 0x4c2], cl
mov eax, dword [ebp - 0x4c4]
push 0
mov dword [ebp - 0x568], eax
lea eax, [ebp - 0x56c]
push eax
push 4
lea eax, [ebp - 0x568]
push eax
push dword [0x5d16c8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4f4]
test eax, eax
je 0x407093
push 0
lea ecx, [ebp - 0x570]
push ecx
push eax
push dword [ebp - 0x4c0]
push dword [0x5d16c8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4c8]
push eax
call fcn.005529f3
push dword [ebp - 0x4c0]
call fcn.005529f3
mov byte [ebp - 4], 0xd
add esp, 8
mov edx, dword [ebp - 0x4f8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4070ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x53c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4070eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x540]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407116
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x407116
mov esi, dword [ebp - 0x4d0]
mov edi, dword [ebp - 0x4cc]
cmp dword [ebp - 0x4f0], 0
jne 0x406610
mov eax, dword [ebp - 0x4bc]
test eax, eax
je 0x40713e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x4bc], 0
mov edx, dword [ebp - 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407158
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x4d4]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407175
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40718c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4071a3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x4ec]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4071c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4071da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4071f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0054d63f
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402740
push 0x80004005
call fcn.00402740
push 0x80004005
call fcn.00402740
push 0x80004005
call fcn.00402740
int3