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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c51f
mov eax, dword fs:[0]
push eax
sub esp, 0x56c
mov eax, dword [0x5d0000]
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 0x406576
test dx, dx
je 0x406572
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406576
add eax, 4
add ecx, 4
test dx, dx
jne 0x406550
xor esi, esi
jmp 0x40657b
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 0x40659f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x4065b2
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.0042d02f
mov ecx, eax
mov byte [ebp - 4], 4
test ecx, ecx
je 0x40725a
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x4cc], edi
mov byte [ebp - 4], 8
call fcn.0042d02f
mov ecx, eax
mov byte [ebp - 4], 7
test ecx, ecx
je 0x407264
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
mov byte [ebp - 4], 0xb
call fcn.0042d02f
mov ecx, eax
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x40726e
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.0040e200
push ecx
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x4bc]
push dword [ebp - 0x4ec]
call fcn.0040e2e0
test eax, eax
je 0x407165
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 0x4069c8
cmp word [ebp - 0x48c], 0x2e
jne 0x4066e7
mov cx, word [ebp - 0x48a]
test cx, cx
je 0x40714c
cmp cx, 0x2e
jne 0x4066e7
cmp word [ebp - 0x488], 0
je 0x40714c
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 0x406772
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40675d
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40675d
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 0x406752
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 0x40676c
push dword [ecx - 0xc]
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 0x40678d
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.0040e450
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 0x40681e
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x406809
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x406809
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 0x4067fe
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 0x40681e
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 0x40683f
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 0x4068a3
cmp dword [edi + 0xc], 0
jl 0x406894
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x406894
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 0x406889
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 0x4068a3
push dword [eax - 0xc]
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 0x406929
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.0042d02f
mov ecx, eax
mov byte [ebp - 4], 0x15
test ecx, ecx
je 0x40725a
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.0040a000
test al, al
jne 0x40698e
test edi, edi
jne 0x40696d
xor eax, eax
jmp 0x406981
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406972
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.00406500
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 0x407152
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x407152
xor ecx, ecx
cmp word [ebp - 0x48c], 0x2e
jne 0x4069f4
mov ax, word [ebp - 0x48a]
test ax, ax
je 0x4069ef
cmp ax, 0x2e
jne 0x4069f4
cmp word [ebp - 0x488], cx
jne 0x4069f4
mov ecx, 1
test ecx, ecx
jne 0x40714c
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 0x406a8d
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x406a72
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x406a72
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 0x406a67
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 0x406a87
push dword [eax - 0xc]
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 0x406aa8
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.0040e450
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 - 0x4c0], eax
mov dword [ebp - 0x4c8], ecx
cmp eax, ecx
je 0x406b3e
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x406b29
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x406b29
push dword [ebp - 0x4c0]
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 0x406b1e
mov esi, dword [ebp - 0x4c8]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x4c0]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
jmp 0x406b3e
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 0x406b5f
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.0040e880
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 0x406bf8
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
mov dword [ebp - 0x4c8], edi
mov edi, dword [ebp - 0x4cc]
jl 0x406bec
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x406bec
mov eax, dword [ebp - 0x4c0]
push eax
call fcn.0040a460
mov dword [ebp - 0x4c0], eax
add esp, 4
mov eax, dword [ebp - 0x4c8]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406bde
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 0x406bf8
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 0x406c15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x558]
call fcn.00407280
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 0x406c9d
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x4c0], eax
jl 0x406c8e
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x406c8e
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 0x406c83
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 0x406c9d
push dword [esi - 0xc]
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 0x406d2e
cmp dword [edx + 0xc], 0
lea esi, [edx + 0xc]
mov dword [ebp - 0x4c8], esi
mov esi, dword [ebp - 0x4d0]
jl 0x406d1f
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x406d1f
mov ecx, dword [ebp - 0x4c0]
push ecx
call fcn.0040a460
mov dword [ebp - 0x4c0], eax
add esp, 4
mov eax, dword [ebp - 0x4c8]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406d0e
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 0x406d2e
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 0x406da4
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x4c0], eax
jl 0x406d95
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x406d95
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 0x406d8a
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 0x406da4
push dword [edi - 0xc]
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.0055648e
push 1
push dword [ebp - 0x4f4]
mov dword [ebp - 0x4c8], eax
call fcn.0055648e
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 0x406f02
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.0054f9f0
mov eax, dword [ebp - 0x53c]
add esp, 0xc
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x4e0], ecx
mov ecx, dword [ebp - 0x540]
mov ecx, dword [ecx - 0xc]
mov dword [ebp - 0x4c4], ecx
jle 0x406f54
push dword [eax - 0xc]
lea ecx, [ebp - 0x53c]
call fcn.0040a2c0
mov ecx, dword [ebp - 0x4c4]
mov eax, dword [ebp - 0x4e0]
lea eax, [eax*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.0054f9f0
mov eax, dword [ebp - 0x540]
push dword [eax - 8]
push eax
call fcn.00552d16
mov ecx, eax
add esp, 0x14
test ecx, ecx
js 0x407250
mov eax, dword [ebp - 0x540]
cmp ecx, dword [eax - 8]
jg 0x407250
mov dword [eax - 0xc], ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x53c]
push dword [eax - 8]
push eax
call fcn.00552d16
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x407250
mov eax, dword [ebp - 0x53c]
cmp ecx, dword [eax - 8]
jg 0x407250
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.0054f9f0
mov eax, dword [ebp - 0x4f4]
add esp, 0xc
xor edx, edx
test eax, eax
je 0x407050
mov ebx, dword [ebp - 0x4c0]
mov esi, edx
mov edi, eax
nop
mov al, byte [esi + 0x5b2a20]
xor ecx, ecx
xor byte [edx + ebx], al
inc edx
cmp esi, 0x17
lea eax, [esi + 1]
cmovne ecx, eax
mov esi, ecx
cmp edx, edi
jb 0x407020
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 al, byte [ebp - 0x4c2]
xor al, cl
mov byte [ebp - 0x4c3], cl
xor byte [ebp - 0x4c1], al
mov byte [ebp - 0x4c2], al
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 [0x5d26d8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4f4]
test eax, eax
je 0x4070d5
push 0
lea ecx, [ebp - 0x570]
push ecx
push eax
push dword [ebp - 0x4c0]
push dword [0x5d26d8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4c8]
push eax
call fcn.00552bd3
push dword [ebp - 0x4c0]
call fcn.00552bd3
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 0x407110
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 0x40712d
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 0x407158
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x407158
mov esi, dword [ebp - 0x4d0]
mov edi, dword [ebp - 0x4cc]
cmp dword [ebp - 0x4f0], 0
jne 0x406680
mov eax, dword [ebp - 0x4bc]
test eax, eax
je 0x407180
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 0x40719a
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 0x4071b7
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 0x4071ce
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 0x4071e5
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 0x407202
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 0x40721c
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 0x407234
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.0054d6d8
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