Function at 0x4a569c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x16
push 0
push 0
dec ecx
jne 0x4a56a4
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a60b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 0xb
jne 0x4a56e1
lea ecx, [ebp - 0x10]
mov edx, dword [0x4b1968]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.004a28b0
jmp 0x4a56f4
lea ecx, [ebp - 0x10]
mov edx, dword [0x4b1714]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.004a28b0
mov bl, 6
lea eax, [ebp - 0xa]
mov byte [eax], 0xff
inc eax
dec bl
jne 0x4a56f9
mov eax, dword [ebp - 0x10]
call fcn.00404310
test al, al
jbe 0x4a5729
mov byte [ebp - 0x2d], al
mov bl, 1
lea eax, [ebp - 0xa]
xor edx, edx
mov dl, bl
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx + edx - 1]
mov byte [eax], dl
inc ebx
inc eax
dec byte [ebp - 0x2d]
jne 0x4a5715
mov bl, 0x10
lea eax, [ebp - 0x6d]
mov byte [eax], 0xff
inc eax
dec bl
jne 0x4a572e
mov byte [ebp - 0x66], 7
mov byte [ebp - 0x65], 0x80
mov byte [ebp - 0x64], 0x69
lea eax, [ebp - 0xa]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32_Usb.dll_rf_load_key_1
test ax, ax
je 0x4a5770
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x409
jmp 0x4a608c
xor ecx, ecx
push ebp
push 0x4a6085
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0x2c]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32_Usb.dll_rf_card_1
test ax, ax
je 0x4a57af
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x41f
call fcn.00403ab0
jmp 0x4a608c
push 1
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32_Usb.dll_rf_authentication_1
test ax, ax
je 0x4a57de
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x409
call fcn.00403ab0
jmp 0x4a608c
mov byte [ebp - 0xb], 4
lea eax, [ebp - 0x3d]
push eax
xor eax, eax
mov al, byte [ebp - 0xb]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32_Usb.dll_rf_read_1
test ax, ax
je 0x4a5817
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40a
call fcn.00403ab0
jmp 0x4a608c
mov byte [ebp - 0xb], 5
lea eax, [ebp - 0x4d]
push eax
xor eax, eax
mov al, byte [ebp - 0xb]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32_Usb.dll_rf_read_1
test ax, ax
je 0x4a5850
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40a
call fcn.00403ab0
jmp 0x4a608c
mov byte [ebp - 0xb], 6
lea eax, [ebp - 0x5d]
push eax
xor eax, eax
mov al, byte [ebp - 0xb]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32_Usb.dll_rf_read_1
test ax, ax
je 0x4a5889
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40a
call fcn.00403ab0
jmp 0x4a608c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 0xb
jne 0x4a58ce
mov byte [ebp - 0xb], 7
lea eax, [ebp - 0x6d]
push eax
xor eax, eax
mov al, byte [ebp - 0xb]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32_Usb.dll_rf_read_1
test ax, ax
je 0x4a58ce
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40a
call fcn.00403ab0
jmp 0x4a608c
lea eax, [ebp - 0x10]
call fcn.00404050
mov bl, 0xd
lea esi, [ebp - 0x3d]
lea eax, [ebp - 0x74]
mov dl, byte [esi]
call fcn.00404238
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x10]
call fcn.00404318
inc esi
dec bl
jne 0x4a58db
mov eax, dword [0x4b1658]
mov eax, dword [eax]
mov dl, 1
call fcn.0049f34c
test al, al
je 0x4a5914
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.0049f234
jmp 0x4a591f
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.004087c4
lea eax, [ebp - 0x10]
call fcn.00404050
mov byte [ebp - 0xb], 0x4d
mov bl, 0x10
lea esi, [ebp - 0x4d]
lea eax, [ebp - 0x78]
mov dl, byte [esi]
xor dl, byte [ebp - 0xb]
call fcn.00404238
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x10]
call fcn.00404318
inc esi
dec bl
jne 0x4a5930
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.004040e8
lea eax, [ebp - 0x10]
call fcn.00404050
mov bl, 0x10
lea esi, [ebp - 0x5d]
lea eax, [ebp - 0x7c]
mov dl, byte [esi]
call fcn.00404238
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x10]
call fcn.00404318
inc esi
dec bl
jne 0x4a5965
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0049f220
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 0xa
jne 0x4a5a5b
xor eax, eax
push ebp
push 0x4a59c9
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x1c]
call fcn.004087c4
mov eax, dword [ebp - 0x80]
call fcn.0040a700
fistp qword [ebp - 0x28]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a59ef
mov eax, dword [ebp - 4]
add eax, 0x30c
mov edx, dword [ebp - 0x18]
call fcn.004040a4
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x14]
call fcn.004087c4
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 4]
add eax, 0x310
call fcn.004040a4
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x318], edx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x31c], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x308], edx
push 0xa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32_Usb.dll_rf_beep_1
call fcn.00403ab0
jmp 0x4a608c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
dec eax
je 0x4a5ac9
dec eax
je 0x4a5b38
dec eax
je 0x4a5b4f
sub eax, 8
jne 0x4a5b59
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x88]
xor eax, eax
call fcn.0049f234
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 4]
add eax, 0x30c
call fcn.004040a4
mov eax, dword [ebp - 4]
add eax, 0x310
call fcn.00404050
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x318], edx
mov dword [eax + 0x31c], edx
jmp 0x4a5b6e
xor eax, eax
push ebp
push 0x4a5afe
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x1c]
call fcn.004087c4
mov eax, dword [ebp - 0x8c]
call fcn.0040a700
fistp qword [ebp - 0x28]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a5b24
fild qword [ebp - 0x28]
mov eax, dword [ebp - 4]
fild qword [eax + 0x318]
faddp st(1)
fistp qword [ebp - 0x28]
wait
jmp 0x4a5b6e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x318]
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 0x31c]
mov dword [ebp - 0x24], edx
jmp 0x4a5b6e
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
jmp 0x4a5b6e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x318]
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 0x31c]
mov dword [ebp - 0x24], edx
fild qword [ebp - 0x28]
fcomp dword [0x4a60c8]
fnstsw ax
sahf
jae 0x4a5b93
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x3f1
call fcn.00403ab0
jmp 0x4a608c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x320]
test ebx, ebx
je 0x4a5bcf
cmp ebx, 0xb
je 0x4a5bcf
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x30c]
call fcn.0040445c
je 0x4a5bcf
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x3f0
call fcn.00403ab0
jmp 0x4a608c
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x30c]
call fcn.0040445c
je 0x4a5cbc
mov eax, dword [ebp - 0x18]
mov edx, 0x4a60d4
call fcn.0040445c
je 0x4a5cbc
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0x18]
call fcn.004087c4
cmp dword [ebp - 0x90], 0
je 0x4a5cbc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 0xb
jne 0x4a5c62
push 0x4a60ec
push dword [ebp - 0x18]
push 0x4a610c
push 0x4a6118
push 0x4a6124
lea eax, [ebp - 0x94]
mov edx, 5
call fcn.004043d0
mov eax, dword [ebp - 0x94]
xor edx, edx
call fcn.0049ebd8
test al, al
jne 0x4a5cbc
call fcn.00403ab0
jmp 0x4a608c
push 0x4a6140
push dword [ebp - 0x18]
push 0x4a610c
push 0x4a6158
push 0x4a6164
mov eax, dword [ebp - 4]
push dword [eax + 0x30c]
push 0x4a617c
push 0x4a6158
push 0x4a6188
lea eax, [ebp - 0x98]
mov edx, 9
call fcn.004043d0
mov eax, dword [ebp - 0x98]
xor edx, edx
call fcn.0049ebd8
test al, al
jne 0x4a5cbc
call fcn.00403ab0
jmp 0x4a608c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
test eax, eax
je 0x4a5cce
cmp eax, 0xb
jne 0x4a5d22
mov byte [ebp - 0xb], 4
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov edx, 0x10
call fcn.0049f484
mov eax, dword [ebp - 0x10]
call fcn.00404510
push eax
xor eax, eax
mov al, byte [ebp - 0xb]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32_Usb.dll_rf_write_1
test ax, ax
je 0x4a5d22
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40b
call fcn.00403ab0
jmp 0x4a608c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 3
je 0x4a5e64
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea edx, [ebp - 0x9c]
mov eax, 0x4a619c
call fcn.0040a5d0
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x10]
mov edx, 0x10
call fcn.0049f484
lea eax, [ebp - 0x1c]
call fcn.00404050
mov byte [ebp - 0xb], 0x4d
mov eax, dword [ebp - 0x10]
call fcn.00404310
test al, al
jbe 0x4a5da5
mov byte [ebp - 0x2d], al
mov bl, 1
lea eax, [ebp - 0xa0]
xor edx, edx
mov dl, bl
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx + edx - 1]
xor dl, byte [ebp - 0xb]
call fcn.00404238
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 0x1c]
call fcn.00404318
inc ebx
dec byte [ebp - 0x2d]
jne 0x4a5d78
mov byte [ebp - 0xb], 5
mov eax, dword [ebp - 0x1c]
call fcn.00404510
push eax
xor ebx, ebx
mov bl, byte [ebp - 0xb]
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32_Usb.dll_rf_write_1
test ax, ax
je 0x4a5de3
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40c
call fcn.00403ab0
jmp 0x4a608c
lea eax, [ebp - 0x4d]
push eax
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32_Usb.dll_rf_read_1
test ax, ax
je 0x4a5e13
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x420
call fcn.00403ab0
jmp 0x4a608c
lea eax, [ebp - 0x10]
call fcn.00404050
mov bl, 0x10
lea esi, [ebp - 0x4d]
lea eax, [ebp - 0xa4]
mov dl, byte [esi]
call fcn.00404238
mov edx, dword [ebp - 0xa4]
lea eax, [ebp - 0x10]
call fcn.00404318
inc esi
dec bl
jne 0x4a5e20
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040445c
je 0x4a5e64
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40f
call fcn.00403ab0
jmp 0x4a608c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
cmp eax, 3
je 0x4a5e7f
test eax, eax
je 0x4a5e7f
cmp eax, 0xb
jne 0x4a5f92
lea ecx, [ebp - 0xa8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov edx, 8
call fcn.0049f484
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0x10]
call fcn.0049f20c
mov byte [ebp - 0xb], 6
mov eax, dword [ebp - 0x10]
call fcn.00404510
push eax
xor ebx, ebx
mov bl, byte [ebp - 0xb]
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32_Usb.dll_rf_write_1
test ax, ax
je 0x4a5ee4
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40d
call fcn.00403ab0
jmp 0x4a608c
lea eax, [ebp - 0x4d]
push eax
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32_Usb.dll_rf_read_1
test ax, ax
je 0x4a5f14
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x420
call fcn.00403ab0
jmp 0x4a608c
lea eax, [ebp - 0x10]
call fcn.00404050
mov bl, 0x10
lea esi, [ebp - 0x4d]
lea eax, [ebp - 0xac]
mov dl, byte [esi]
call fcn.00404238
mov edx, dword [ebp - 0xac]
lea eax, [ebp - 0x10]
call fcn.00404318
inc esi
dec bl
jne 0x4a5f21
lea ecx, [ebp - 0xb4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov edx, 8
call fcn.0049f484
mov eax, dword [ebp - 0xb4]
lea edx, [ebp - 0xb0]
call fcn.0049f20c
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0x10]
call fcn.0040445c
je 0x4a5f92
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x421
call fcn.00403ab0
jmp 0x4a608c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 0xb
jne 0x4a6019
lea ecx, [ebp - 0x10]
mov edx, dword [0x4b1714]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.004a28b0
mov eax, dword [ebp - 0x10]
call fcn.00404310
test al, al
jbe 0x4a5fe3
mov byte [ebp - 0x2d], al
mov bl, 1
lea eax, [ebp - 0x6d]
xor edx, edx
mov dl, bl
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx + edx - 1]
mov byte [eax], cl
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx + edx - 1]
mov byte [eax + 0xa], dl
inc ebx
inc eax
dec byte [ebp - 0x2d]
jne 0x4a5fc5
mov byte [ebp - 0xb], 7
lea eax, [ebp - 0x6d]
push eax
xor eax, eax
mov al, byte [ebp - 0xb]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32_Usb.dll_rf_write_1
test ax, ax
je 0x4a6019
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40e
call fcn.00403ab0
jmp 0x4a608c
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x308], edx
push 0xa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32_Usb.dll_rf_beep_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a608c
xor eax, eax
push ebp
push 0x4a607a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32_Usb.dll_rf_halt_1
push 0xa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32_Usb.dll_rf_reset_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a6084
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a60be
lea eax, [ebp - 0xb4]
mov edx, 0x11
call fcn.00404074
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404074
ret