Function at 0x4a35b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x16
push 0
push 0
dec ecx
jne 0x4a35bc
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a3fcf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 0xb
jne 0x4a35f9
lea ecx, [ebp - 0x10]
mov edx, dword [0x4b1968]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.004a28b0
jmp 0x4a360c
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 0x4a3611
mov eax, dword [ebp - 0x10]
call fcn.00404310
test al, al
jbe 0x4a3641
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 0x4a362d
mov bl, 0x10
lea eax, [ebp - 0x6d]
mov byte [eax], 0xff
inc eax
dec bl
jne 0x4a3646
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.dll_rf_load_key_2
test ax, ax
je 0x4a3688
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x409
jmp 0x4a3fa4
xor ecx, ecx
push ebp
push 0x4a3f9d
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.dll_rf_card_2
test ax, ax
je 0x4a36c7
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x41f
call fcn.00403ab0
jmp 0x4a3fa4
push 1
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32.dll_rf_authentication_2
test ax, ax
je 0x4a36f6
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x409
call fcn.00403ab0
jmp 0x4a3fa4
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.dll_rf_read_2
test ax, ax
je 0x4a372f
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40a
call fcn.00403ab0
jmp 0x4a3fa4
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.dll_rf_read_2
test ax, ax
je 0x4a3768
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40a
call fcn.00403ab0
jmp 0x4a3fa4
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.dll_rf_read_2
test ax, ax
je 0x4a37a1
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40a
call fcn.00403ab0
jmp 0x4a3fa4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 0xb
jne 0x4a37e6
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.dll_rf_read_2
test ax, ax
je 0x4a37e6
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40a
call fcn.00403ab0
jmp 0x4a3fa4
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 0x4a37f3
mov eax, dword [0x4b1658]
mov eax, dword [eax]
mov dl, 1
call fcn.0049f34c
test al, al
je 0x4a382c
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.0049f234
jmp 0x4a3837
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 0x4a3848
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 0x4a387d
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0049f220
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 0xa
jne 0x4a3973
xor eax, eax
push ebp
push 0x4a38e1
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 0x4a3907
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.dll_rf_beep_2
call fcn.00403ab0
jmp 0x4a3fa4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
dec eax
je 0x4a39e1
dec eax
je 0x4a3a50
dec eax
je 0x4a3a67
sub eax, 8
jne 0x4a3a71
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 0x4a3a86
xor eax, eax
push ebp
push 0x4a3a16
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 0x4a3a3c
fild qword [ebp - 0x28]
mov eax, dword [ebp - 4]
fild qword [eax + 0x318]
faddp st(1)
fistp qword [ebp - 0x28]
wait
jmp 0x4a3a86
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 0x4a3a86
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
jmp 0x4a3a86
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 [0x4a3fe0]
fnstsw ax
sahf
jae 0x4a3aab
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x3f1
call fcn.00403ab0
jmp 0x4a3fa4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x320]
test ebx, ebx
je 0x4a3ae7
cmp ebx, 0xb
je 0x4a3ae7
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x30c]
call fcn.0040445c
je 0x4a3ae7
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x3f0
call fcn.00403ab0
jmp 0x4a3fa4
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x30c]
call fcn.0040445c
je 0x4a3bd4
mov eax, dword [ebp - 0x18]
mov edx, 0x4a3fec
call fcn.0040445c
je 0x4a3bd4
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0x18]
call fcn.004087c4
cmp dword [ebp - 0x90], 0
je 0x4a3bd4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 0xb
jne 0x4a3b7a
push 0x4a4004
push dword [ebp - 0x18]
push 0x4a4024
push 0x4a4030
push 0x4a403c
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 0x4a3bd4
call fcn.00403ab0
jmp 0x4a3fa4
push 0x4a4058
push dword [ebp - 0x18]
push 0x4a4024
push 0x4a4070
push 0x4a407c
mov eax, dword [ebp - 4]
push dword [eax + 0x30c]
push 0x4a4094
push 0x4a4070
push 0x4a40a0
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 0x4a3bd4
call fcn.00403ab0
jmp 0x4a3fa4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
test eax, eax
je 0x4a3be6
cmp eax, 0xb
jne 0x4a3c3a
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.dll_rf_write_2
test ax, ax
je 0x4a3c3a
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40b
call fcn.00403ab0
jmp 0x4a3fa4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 3
je 0x4a3d7c
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea edx, [ebp - 0x9c]
mov eax, 0x4a40b4
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 0x4a3cbd
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 0x4a3c90
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.dll_rf_write_2
test ax, ax
je 0x4a3cfb
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40c
call fcn.00403ab0
jmp 0x4a3fa4
lea eax, [ebp - 0x4d]
push eax
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32.dll_rf_read_2
test ax, ax
je 0x4a3d2b
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x420
call fcn.00403ab0
jmp 0x4a3fa4
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 0x4a3d38
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040445c
je 0x4a3d7c
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40f
call fcn.00403ab0
jmp 0x4a3fa4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
cmp eax, 3
je 0x4a3d97
test eax, eax
je 0x4a3d97
cmp eax, 0xb
jne 0x4a3eaa
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.dll_rf_write_2
test ax, ax
je 0x4a3dfc
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40d
call fcn.00403ab0
jmp 0x4a3fa4
lea eax, [ebp - 0x4d]
push eax
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32.dll_rf_read_2
test ax, ax
je 0x4a3e2c
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x420
call fcn.00403ab0
jmp 0x4a3fa4
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 0x4a3e39
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 0x4a3eaa
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x421
call fcn.00403ab0
jmp 0x4a3fa4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 0xb
jne 0x4a3f31
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 0x4a3efb
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 0x4a3edd
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.dll_rf_write_2
test ax, ax
je 0x4a3f31
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40e
call fcn.00403ab0
jmp 0x4a3fa4
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.dll_rf_beep_2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3fa4
xor eax, eax
push ebp
push 0x4a3f92
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32.dll_rf_halt_2
push 0xa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwrf32.dll_rf_reset_2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a3f9c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3fd6
lea eax, [ebp - 0xb4]
mov edx, 0x11
call fcn.00404074
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404074
ret