Function at 0x4746d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov ax, word [0x4a1e68]
push ebx
xor ecx, ecx
push esi
mov word [ebp - 0x18], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x16], ecx
push edi
xor edi, edi
test eax, 0x80000000
mov dword [ebp - 0x12], ecx
lea edx, [ebp - 4]
mov word [ebp - 0xe], cx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x30], edx
je 0x47470e
mov dword [ebp - 0xc], 1
xor ecx, ecx
push ecx
push 0x10000080
push 3
push ecx
push dword [ebp - 0xc]
je 0x47471f
pop fs
mov al, byte [0xff00d0c1]
jne 0x474737
mov eax, dword [0xd0c1a0]
push dword [ebp + 0x10]
xor eax, 0xffffffff
push dword [ebp + 8]
call eax
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
or eax, 0xffffffff
cmp ecx, eax
jne 0x47474d
invalid
mov dword [0xecc270], 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [ebp + 0x10], ebx
mov esi, 0xd0b15c
mov eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x474777
add esi, 0x104
inc edi
cmp esi, 0xd0c19c
jl 0x474757
jmp 0x474784
mov ebx, dword [edi*4 + 0xecc228]
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0xc], edi
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
test ebx, ebx
jne 0x474a52
mov eax, dword [0xecc274]
mov ecx, dword [eax*4 + 0xecc228]
test ecx, ecx
je 0x4747b9
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0xecc274]
mov dword [eax*4 + 0xecc228], ebx
mov edx, dword [ebp + 8]
mov ecx, eax
shl ecx, 6
loope 0x4747c7
push edx
add ecx, eax
lea edx, [ecx*4 + 0xd0b15c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esp
mov cl, 0xd0
add byte [edx - 1], dl
adc eax, sym.imp.KERNEL32.dll_lstrcpyA
lea eax, [ebp - 0x18]
mov dword [ebp + 0x10], 0xd0c228
mov dword [ebp - 0xc], eax
xor ebx, ebx
push 0
je 0x4747e6
jnp 0xd108e408
mov ebx, dword [0xd0c19c]
push dword [ebp - 0x30]
add bh, bh
jne 0x4747bf
push 0xc
xor ebx, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp - 8]
call ebx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x47480f
mov ecx, dword [ebp - 8]
push ecx
jmp 0x474c06
push 6
lea edx, [ebp - 0x18]
push str.WARC_1.7
push edx
call fcn.00450430
add esp, 0xc
test eax, eax
je 0x47483a
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x12], 0x2e
mov eax, dword [ebp - 0x13]
jne 0x474864
mov edx, dword [ebp - 0x11]
and eax, 0xff
lea ecx, [eax + eax*4]
and edx, 0xff
lea eax, [edx + ecx*2]
lea eax, [eax + eax*4]
lea ecx, [eax + eax - 0x14a0]
push ecx
jmp 0x47488b
and eax, 0xff
lea edx, [eax + eax*4]
mov eax, dword [ebp - 0x12]
and eax, 0xff
lea eax, [eax + edx*2]
mov edx, dword [ebp - 0x11]
lea ecx, [eax + eax*4]
and edx, 0xff
lea eax, [edx + ecx*2 - 0x14d0]
push eax
call fcn.00475d20
mov edi, dword [ebp - 0x10]
xor edi, 0xf182ad82
add esp, 4
mov dword [ebp - 0xc], edi
xor esi, esi
push 0
push esi
je 0x4748a7
push 0xb158358b
rol byte [eax], 1
mov esi, dword [0xd0b158]
push dword [ebp - 0xc]
xor esi, 0xffffffff
push dword [ebp - 8]
call esi
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x4748ca
mov ecx, dword [ebp - 8]
push ecx
jmp 0x474c06
mov esi, 0xe0000
mov dword [ebp - 0x2c], esi
xor ecx, ecx
push 0
je 0x4748d9
push 0xc19c0d8b
rol byte [eax], 1
mov ecx, dword [0xd0c19c]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
xor ecx, 0xffffffff
push dword [ebp + 0x10]
push dword [ebp - 8]
call ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x474c02
push esi
push 0xd0c228
call fcn.00475a20
add esp, 8
mov eax, 0xd0c228
xor dword [eax], edi
add eax, 4
cmp eax, 0xdec228
jb 0x474911
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4d490c]
mov ecx, eax
shl ecx, 8
add ecx, eax
shl ecx, 8
add ecx, eax
shl ecx, 8
add ecx, eax
push ecx
push 0xdfff8
push 0xd0c230
push 0xdec228
mov dword [ebp - 4], esi
call fcn.004762e0
add esp, 0x14
test eax, eax
je 0x474c02
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0xecc274]
mov dword [ecx*4 + 0xecc228], eax
mov ecx, dword [ebp - 4]
mov edx, ecx
shr ecx, 2
mov edi, eax
mov esi, 0xdec228
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, 0xdec228
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [0xecc274]
mov ebx, dword [ecx*4 + 0xecc228]
mov eax, 0x24924925
mul esi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
xor edi, edi
test esi, esi
mov dword [ebp + 0x10], ebx
mov dword [ecx*4 + 0xd0c1e8], esi
jle 0x474a07
mov esi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
test eax, eax
jle 0x4749f2
mov bl, byte [esi + ecx]
mov dl, cl
inc dl
xor bl, dl
mov byte [esi + ecx], bl
inc ecx
cmp ecx, eax
jl 0x4749e1
mov ecx, dword [0xecc274]
mov eax, dword [ecx*4 + 0xd0c1e8]
inc edi
add esi, 0x38
cmp edi, eax
jl 0x4749d4
mov esi, ecx
inc ecx
cmp ecx, 0x10
mov dword [ebp - 0xc], esi
mov dword [0xecc274], ecx
jb 0x474a22
mov dword [0xecc274], 0
mov eax, dword [esi*4 + 0xd0c1e8]
mov edx, dword [esi*4 + 0xecc228]
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 3
push ecx
push edx
call fcn.00476510
add esp, 8
and eax, 0xffff
mov dword [esi*4 + 0xd0c1a8], eax
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [ebp - 0x158]
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0xc]
mov esi, eax
lea eax, [edx*4 + 0xd0c1e8]
mov dword [ebp - 0x54], eax
mov eax, dword [eax]
lea ecx, [ebp - 0x158]
dec esi
push ecx
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_CharUpperA]
xor eax, eax
inc esi
test esi, esi
jle 0x474aca
mov cl, byte [ebp + eax - 0x158]
mov dl, al
inc dl
xor cl, dl
mov byte [ebp + eax - 0x25c], cl
inc eax
cmp eax, esi
jl 0x474ab1
lea edx, [ebp - 0x25c]
mov byte [ebp + eax - 0x25c], 0
mov dword [ebp - 0x2c], edx
pushfd
cld
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ax, word [esi]
add esi, 2
mov ebx, edi
cmp word [edi], ax
jne 0x474b01
mov ecx, dword [ebp + 8]
add edi, 2
push esi
or ecx, ecx
repe cmpsb byte [esi], byte es:[edi]
pop esi
je 0x474b09
lea edi, [ebx + 0x38]
dec edx
jne 0x474aec
xor ebx, ebx
mov dword [ebp - 0x30], ebx
popfd
mov edi, dword [ebp - 0x30]
test edi, edi
jne 0x474b1d
mov eax, dword [ebp - 8]
push eax
jmp 0x474c06
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx]
mov esi, dword [ebp - 0xc]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esi*4 + 0xecc228]
shl edx, 3
push edx
push eax
call fcn.00476510
mov ecx, dword [esi*4 + 0xd0c1a8]
add esp, 8
and eax, 0xffff
cmp ecx, eax
je 0x474b5b
mov ecx, dword [ebp - 8]
push ecx
jmp 0x474c06
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov esi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x50]
push ecx
call esi
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x40]
push eax
call esi
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
push 0
sub ecx, ebx
push 0x2710
sbb edx, esi
push edx
push ecx
call fcn.0044f600
test edx, edx
jl 0x474bb0
jg 0x474baa
cmp eax, 0x7800
jbe 0x474bb0
mov eax, dword [ebp - 8]
push eax
jmp 0x474c06
mov eax, dword [ebp + 0x20]
test eax, eax
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
mov dword [ebp - 0xc], ecx
je 0x474bc2
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x474bcb
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x474bd4
mov dword [eax], edx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x474be0
mov ecx, dword [edi + 0x28]
mov dword [eax], ecx
xor ebx, ebx
push 0
push ebx
je 0x474be8
jnp 0xd0f8a40a
mov ebx, dword [0xd0b158]
push dword [ebp - 0xc]
add bh, bh
jne 0x474be5
xor ebx, 0xffffffff
push dword [ebp - 8]
call ebx
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0xffffffff
jne 0x474c20
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0xecc270], 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret