Function at 0x41d54c
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push 0x7c
pop edi
xor ebx, ebx
cmp word [eax + 2], bx
push edi
push dword [ebp + 0x10]
setne al
mov byte [ebp - 0x2c], al
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x41d5b2
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
call fcn.0043a4ba
lea eax, [ebp - 0x10]
push eax
call fcn.00435b50
test al, al
pop ecx
jle 0x41d5a7
push 0x2b
pop edi
push edi
push dword [ebp + 0x10]
call esi
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x10]
call fcn.00428a48
mov eax, dword [ebp - 0xc]
or dword [ebp - 0x3c], 0xffffffff
or dword [ebp - 0x38], 0xffffffff
cmp eax, ebx
mov esi, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
je 0x41d617
mov word [eax], bx
add dword [ebp - 0xc], 2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.00432f9a
mov eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
pop ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
cmp di, word [eax]
pop ecx
mov dword [ebp - 0x30], edx
jne 0x41d60d
add dword [ebp - 0xc], 2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00432f9a
pop ecx
pop ecx
mov eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call fcn.0043a4ba
cmp esi, ebx
je 0x41d62b
mov word [esi], 0x2b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x28], ebx
call fcn.00435a13
mov byte [ebp - 0x1c], al
mov eax, dword [ebp + 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x18]
sar eax, 0x10
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.00402bdd
push ebx
push ebx
push 3
push ebx
push 7
push 0x80000000
push dword [ebp - 0x14]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.00404073
cmp dword [ebp - 8], ebx
je 0x41d955
cmp byte [ebp - 0x1c], bl
je 0x41d695
push dword [ebp - 0x1c]
push dword [ebp - 8]
call fcn.0042c008
pop ecx
jmp 0x41d69d
push dword [ebp - 8]
call fcn.0040b1e1
cmp edx, ebx
pop ecx
mov esi, eax
jl 0x41d955
jg 0x41d6b2
cmp esi, ebx
jbe 0x41d955
cmp edx, dword [ebp - 0x30]
jl 0x41d955
jg 0x41d6c6
cmp esi, dword [ebp - 0x34]
jb 0x41d955
cmp dword [ebp - 0x30], ebx
jl 0x41d6d8
jg 0x41d6d2
cmp dword [ebp - 0x34], ebx
jbe 0x41d6d8
sub esi, dword [ebp - 0x34]
sbb edx, dword [ebp - 0x30]
cmp edx, ebx
jl 0x41d6eb
mov eax, 0x10000000
jg 0x41d6e7
cmp esi, eax
jbe 0x41d6eb
mov esi, eax
xor edx, edx
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jl 0x41d70a
jg 0x41d6f9
cmp dword [ebp - 0x3c], ebx
jbe 0x41d70a
cmp edx, eax
jl 0x41d70a
jg 0x41d704
cmp esi, dword [ebp - 0x3c]
jbe 0x41d70a
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
lea edi, [esi + 0x10]
push edi
lea ecx, [ebp - 0x4c]
call fcn.0042e092
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x41d730
lea ecx, [ebp - 8]
call fcn.00402abc
mov esi, dword [ebp + 0x1c]
jmp 0x41d960
cmp dword [ebp - 0x30], ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], edi
jl 0x41d753
jg 0x41d742
cmp dword [ebp - 0x34], ebx
jbe 0x41d753
push ebx
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push ebx
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 0x1c]
cmp esi, ebx
jge 0x41d771
xor esi, esi
mov eax, dword [ebp - 0x20]
push 0x10
add eax, esi
push ebx
push eax
call fcn.00470340
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.00402abc
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
call fcn.0042e232
mov ecx, dword [ebp + 0x14]
push 0x485fc4
call fcn.0042e232
push ebx
push esi
push dword [ebp - 0x4c]
call fcn.0042b070
add esp, 0xc
mov byte [ebp - 1], al
cmp al, bl
mov eax, dword [ebp - 0x4c]
je 0x41d802
mov dword [ebp - 0x40], eax
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], esi
call fcn.004314af
push dword [ebp - 0x40]
call fcn.00428a1a
movsx esi, byte [ebp - 1]
or esi, dword [ebp + 0x1c]
add esp, 0x10
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], esi
call fcn.00428a48
jmp 0x41d814
dec esi
cmp esi, ebx
jl 0x41d811
inc esi
mov cl, byte [ebp - 0x10]
xor byte [eax], cl
inc eax
dec esi
jne 0x41d808
mov esi, dword [ebp + 0x1c]
or esi, 3
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.0044244b
push dword [ebp - 0x10]
push dword [ebp - 0x4c]
call fcn.0040d3f8
mov edi, dword [ebp + 0x18]
mov esi, eax
mov ax, word [edi + 0x50]
mov word [ebp - 0x20], ax
add esp, 0x10
lea eax, [esi + esi + 0x22]
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], esi
call fcn.0040ab72
mov eax, dword [ebp - 0x4c]
lea eax, [eax + esi*2]
push 0xf
mov word [eax + 0x20], bx
pop ecx
mov dx, word [ebp - 0x10]
mov word [eax + ecx*2], dx
dec ecx
jns 0x41d85c
mov eax, dword [ebp - 0x4c]
push dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
call fcn.0041477c
mov eax, dword [ebp - 0x10]
pop ecx
mov ecx, dword [ebp - 0x20]
cmp word [eax], cx
jne 0x41d888
xor esi, esi
jmp 0x41d960
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, ebx
je 0x41d89e
push ecx
push eax
call fcn.0040d3f8
pop ecx
pop ecx
mov edi, eax
jmp 0x41d8a0
xor edi, edi
mov eax, dword [ebp - 0x10]
mov ax, word [eax + esi*2 - 2]
mov ecx, dword [ebp + 0x18]
cmp ax, word [ecx + 0x58]
mov dword [ebp + 0x1c], ebx
je 0x41d8bb
mov dword [ebp + 0x1c], 1
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
add eax, esi
add eax, edi
mov dword [ebp - 0x1c], eax
add eax, 0x10
push eax
call fcn.0040aba3
cmp dword [ebp + 0xc], edi
jle 0x41d8d9
mov dword [ebp + 0xc], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp edi, ecx
mov eax, dword [eax]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x2c], eax
jle 0x41d905
sub edi, ecx
mov ecx, dword [ebp + 0x1c]
shl edi, 1
push edi
push eax
add ecx, esi
lea eax, [eax + ecx*2]
push eax
call fcn.004708c0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp + 0x1c], ebx
je 0x41d915
mov ecx, dword [ebp + 0x18]
mov cx, word [ecx + 0x58]
mov word [eax + esi*2], cx
push esi
push dword [ebp - 0x10]
push eax
call fcn.00403fda
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov cx, word [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov word [eax + edx*2], cx
push dword [ebp - 0x4c]
call fcn.00428a1a
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push edi
call fcn.0041d2c6
movzx esi, ax
add esp, 0x24
or esi, dword [ebp - 0x18]
jmp 0x41d960
lea ecx, [ebp - 8]
call fcn.00402abc
or esi, 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00428a48
lea ecx, [ebp - 0x14]
call fcn.00428a48
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret