Function at 0x46d5a0
Capabilities:
Create directory
Encode data using xor
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4d4b
mov eax, dword fs:[0]
push eax
mov eax, 0x42f4
call fcn.0049fe60
mov eax, dword [0x5010c0]
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
mov dword [ebp - 0x42a4], edx
mov esi, ecx
push 0x4018
lea eax, [ebp - 0x4260]
mov dword [ebp - 0x42a0], 0
xorps xmm0, xmm0
mov dword [ebp - 0x4264], 0
push 0
push eax
movq qword [ebp - 0x429c], xmm0
call fcn.004a15c0
push 0x4c
lea eax, [ebp - 0x42fc]
mov dword [ebp - 0x4300], 0
push 0
push eax
call fcn.004a15c0
add esp, 0x18
mov dword [ebp - 0x4294], 0xffffffff
xor eax, eax
mov dword [ebp - 0x426c], 0x470970
xor edi, edi
mov dword [ebp - 0x4280], eax
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x4270], edi
push esi
mov dword [ebp - 0x4274], edi
mov dword [ebp - 0x42a8], eax
mov dword [ebp - 0x4268], 0x470990
mov dword [ebp - 0x42b0], 0x470970
mov dword [ebp - 0x42ac], 0x470990
call fcn.00425ca0
lea edx, [ebp - 0x230]
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x248]
call fcn.0046d470
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x46d6db
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46d6d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46dd69
push ecx
push edx
call fcn.0049f7fe
add esp, 8
push 0
push 0x80
push 3
xor eax, eax
mov dword [ebp - 0x220], 0
cmp dword [ebp - 0x234], 0xf
push 0
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x248]
cmova eax, dword [ebp - 0x248]
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x21c], 7
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4298], eax
cmp eax, 0xffffffff
je 0x46d73a
xor ebx, ebx
jmp 0x46d73e
call esi
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x234]
cmp ecx, 0xf
jbe 0x46d77f
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46d775
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46dd6e
push ecx
push edx
call fcn.0049f7fe
add esp, 8
test ebx, ebx
jne 0x46dc04
lea eax, [ebp - 0x42a0]
mov dword [ebp - 0x42a0], 0x4708c0
mov dword [ebp - 0x429c], 0x4708e0
xor edx, edx
mov dword [ebp - 0x4264], 0x470a10
mov dword [ebp - 0x4260], 0x470a70
mov dword [ebp - 0x425c], 0x470a80
mov dword [ebp - 0x4258], 0x470ad0
mov dword [ebp - 0x4254], eax
mov dword [ebp - 0x424c], ebx
mov dword [ebp - 0x4250], ebx
nop dword [eax]
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [edx*4 + 0x516e20], eax
inc edx
cmp edx, 0x100
jb 0x46d7e0
cmp edx, 0x800
jae 0x46d8a6
mov ecx, dword [edx*4 + 0x516a20]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x516e20]
mov dword [edx*4 + 0x516e20], ecx
inc edx
cmp edx, 0x800
jb 0x46d882
mov dword [0x516494], 0x4718c0
call fcn.00471a50
test eax, eax
jne 0x46d8c3
mov dword [0x516494], 0x471960
lea ecx, [ebp - 0x4300]
call fcn.0046e0a0
lea eax, [ebp - 0x42b0]
push eax
lea eax, [ebp - 0x426c]
push eax
lea edx, [ebp - 0x4264]
call fcn.0046ffb0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46d906
lea edx, [ebp - 0x426c]
lea ecx, [ebp - 0x4300]
call fcn.0046e110
jmp 0x46dc04
xor eax, eax
mov dword [ebp - 0x4278], ebx
mov dword [ebp - 0x4288], eax
cmp dword [ebp - 0x42e4], eax
jbe 0x46dbd2
mov eax, dword [ebp - 0x42f0]
add eax, 0x19
mov dword [ebp - 0x427c], eax
nop
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a15c0
push dword [ebp - 0x42a4]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004b5d9b
mov ebx, dword [ebp - 0x4288]
xor eax, eax
mov dword [ebp - 0x428c], eax
add esp, 0x18
mov dword [ebp - 0x4284], eax
mov eax, dword [ebp - 0x42c0]
mov esi, dword [eax + ebx*4 + 4]
sub esi, dword [eax + ebx*4]
cmp esi, dword [ebp - 0x4274]
jbe 0x46d9c7
push edi
call fcn.004a4ca0
add esp, 4
mov dword [ebp - 0x4274], esi
add esi, esi
je 0x46dbef
push esi
call fcn.004ac106
mov edi, eax
add esp, 4
mov dword [ebp - 0x4270], edi
test edi, edi
je 0x46dbf1
mov eax, dword [ebp - 0x42c0]
mov edx, dword [eax + ebx*4 + 4]
mov ecx, dword [eax + ebx*4]
sub edx, ecx
jmp 0x46d9d4
mov edx, dword [eax + ebx*4 + 4]
mov ecx, dword [eax + ebx*4]
sub edx, ecx
test edi, edi
je 0x46d9f5
mov eax, dword [ebp - 0x42bc]
lea esi, [eax + ecx*2]
test edx, edx
je 0x46d9f5
mov ecx, edi
sub esi, edi
mov ax, word [esi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x46d9e5
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [ebp - 0x427c]
cmp byte [esi], 0
jne 0x46da64
lea eax, [ebp - 0x42b0]
push eax
lea eax, [ebp - 0x426c]
push eax
lea eax, [ebp - 0x4284]
push eax
lea eax, [ebp - 0x428c]
push eax
lea eax, [ebp - 0x42a8]
push eax
lea eax, [ebp - 0x4280]
push eax
lea eax, [ebp - 0x4294]
push eax
push ebx
lea edx, [ebp - 0x4264]
lea ecx, [ebp - 0x4300]
call fcn.004705f0
mov ebx, eax
add esp, 0x20
mov dword [ebp - 0x4278], ebx
test ebx, ebx
jne 0x46dbcc
mov ax, word [ebp - 0x218]
xor edi, edi
test ax, ax
je 0x46dad5
xor ecx, ecx
movzx edx, ax
lea esi, [ebp - 0x218]
nop dword [eax]
movzx eax, dx
cmp eax, 0x2f
je 0x46da92
mov edx, 0x2f2f
cmp ax, dx
jne 0x46dab9
cmp ecx, 0x208
jae 0x46dd73
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 0x5c
mov word [esi], ax
inc edi
lea esi, [ebp - 0x218]
lea ecx, [edi + edi]
add esi, ecx
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x46da80
mov esi, dword [ebp - 0x427c]
cmp byte [esi], 0
mov edi, dword [ebp - 0x4274]
mov ebx, dword [ebp - 0x4270]
push 0
je 0x46dafa
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x46db9a
push 0x80
xor eax, eax
push 2
push eax
push eax
mov dword [ebp - 0x4278], eax
lea eax, [ebp - 0x218]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46db30
mov dword [ebp - 0x4278], 1
jmp 0x46db94
push 0
lea eax, [ebp - 0x4290]
mov dword [ebp - 0x4290], 0
push eax
push dword [ebp - 0x4284]
mov eax, dword [ebp - 0x428c]
add eax, dword [ebp - 0x4280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4284]
mov dword [ebp - 0x4270], ebx
mov dword [ebp - 0x4274], edi
cmp dword [ebp - 0x4290], eax
je 0x46db8d
mov dword [ebp - 0x4278], 1
mov dword [ebp - 0x4270], ebx
mov dword [ebp - 0x4274], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x427c]
mov ebx, dword [ebp - 0x4278]
mov edi, dword [ebp - 0x4270]
test ebx, ebx
jne 0x46dbcc
mov eax, dword [ebp - 0x4288]
add esi, 0x20
inc eax
mov dword [ebp - 0x427c], esi
mov dword [ebp - 0x4288], eax
cmp eax, dword [ebp - 0x42e4]
jb 0x46d930
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x4280]
cmp eax, 0x470990
jne 0x46dbf8
call fcn.004a4ca0
add esp, 4
jmp 0x46dc04
xor edi, edi
mov ebx, 1
jmp 0x46dbcc
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x42d0]
cmp eax, 0x470990
jne 0x46dc21
call fcn.004a4ca0
add esp, 4
jmp 0x46dc2d
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x42cc]
cmp eax, 0x470990
jne 0x46dc4a
call fcn.004a4ca0
add esp, 4
jmp 0x46dc56
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x42c8]
cmp eax, 0x470990
jne 0x46dc73
call fcn.004a4ca0
add esp, 4
jmp 0x46dc7f
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x42c4]
cmp eax, 0x470990
jne 0x46dc9c
call fcn.004a4ca0
add esp, 4
jmp 0x46dca8
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x42c0]
cmp eax, 0x470990
jne 0x46dcc5
call fcn.004a4ca0
add esp, 4
jmp 0x46dcd1
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x42bc]
cmp eax, 0x470990
jne 0x46dcee
call fcn.004a4ca0
add esp, 4
jmp 0x46dcfa
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
lea edx, [ebp - 0x426c]
mov dword [ebp - 0x42bc], 0
lea ecx, [ebp - 0x4300]
mov dword [ebp - 0x42b8], 0
call fcn.0046df20
lea ecx, [ebp - 0x4300]
call fcn.0046e0a0
push edi
call fcn.004a4ca0
mov eax, dword [ebp - 0x4298]
add esp, 4
cmp eax, 0xffffffff
je 0x46dd4b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46dd4b
call esi
mov eax, ebx
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.0049fb4b
mov esp, ebp
pop ebp
ret
call fcn.004a4b9f
call fcn.004a4b9f
call fcn.0049fd7a
int3