Function at 0x4a4ba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x16
push 0
push 0
dec ecx
jne 0x4a4ba8
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a55b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 0xb
jne 0x4a4be5
lea ecx, [ebp - 0x10]
mov edx, dword [0x4b1968]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.004a28b0
jmp 0x4a4bf8
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 0x4a4bfd
mov eax, dword [ebp - 0x10]
call fcn.00404310
test al, al
jbe 0x4a4c2d
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 0x4a4c19
mov bl, 0x10
lea eax, [ebp - 0x6d]
mov byte [eax], 0xff
inc eax
dec bl
jne 0x4a4c32
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.mwhrf_bj.dll_rf_load_key
test ax, ax
je 0x4a4c74
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x409
jmp 0x4a5586
xor ecx, ecx
push ebp
push 0x4a557f
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.mwhrf_bj.dll_rf_card
test ax, ax
je 0x4a4cb3
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x41f
call fcn.00403ab0
jmp 0x4a5586
push 1
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwhrf_bj.dll_rf_authentication
test ax, ax
je 0x4a4ce2
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x409
call fcn.00403ab0
jmp 0x4a5586
mov byte [ebp - 0xb], 4
lea eax, [ebp - 0x3d]
push eax
mov al, byte [ebp - 0xb]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwhrf_bj.dll_rf_read
test ax, ax
je 0x4a4d19
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40a
call fcn.00403ab0
jmp 0x4a5586
mov byte [ebp - 0xb], 5
lea eax, [ebp - 0x4d]
push eax
mov al, byte [ebp - 0xb]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwhrf_bj.dll_rf_read
test ax, ax
je 0x4a4d50
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40a
call fcn.00403ab0
jmp 0x4a5586
mov byte [ebp - 0xb], 6
lea eax, [ebp - 0x5d]
push eax
mov al, byte [ebp - 0xb]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwhrf_bj.dll_rf_read
test ax, ax
je 0x4a4d87
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40a
call fcn.00403ab0
jmp 0x4a5586
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 0xb
jne 0x4a4dca
mov byte [ebp - 0xb], 7
lea eax, [ebp - 0x6d]
push eax
mov al, byte [ebp - 0xb]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwhrf_bj.dll_rf_read
test ax, ax
je 0x4a4dca
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40a
call fcn.00403ab0
jmp 0x4a5586
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 0x4a4dd7
mov eax, dword [0x4b1658]
mov eax, dword [eax]
mov dl, 1
call fcn.0049f34c
test al, al
je 0x4a4e10
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.0049f234
jmp 0x4a4e1b
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 0x4a4e2c
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 0x4a4e61
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0049f220
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 0xa
jne 0x4a4f57
xor eax, eax
push ebp
push 0x4a4ec5
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 0x4a4eeb
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.mwhrf_bj.dll_rf_beep
call fcn.00403ab0
jmp 0x4a5586
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
dec eax
je 0x4a4fc5
dec eax
je 0x4a5034
dec eax
je 0x4a504b
sub eax, 8
jne 0x4a5055
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 0x4a506a
xor eax, eax
push ebp
push 0x4a4ffa
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 0x4a5020
fild qword [ebp - 0x28]
mov eax, dword [ebp - 4]
fild qword [eax + 0x318]
faddp st(1)
fistp qword [ebp - 0x28]
wait
jmp 0x4a506a
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 0x4a506a
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
jmp 0x4a506a
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 [0x4a55c0]
fnstsw ax
sahf
jae 0x4a508f
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x3f1
call fcn.00403ab0
jmp 0x4a5586
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x320]
test ebx, ebx
je 0x4a50cb
cmp ebx, 0xb
je 0x4a50cb
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x30c]
call fcn.0040445c
je 0x4a50cb
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x3f0
call fcn.00403ab0
jmp 0x4a5586
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x30c]
call fcn.0040445c
je 0x4a51b8
mov eax, dword [ebp - 0x18]
mov edx, 0x4a55cc
call fcn.0040445c
je 0x4a51b8
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0x18]
call fcn.004087c4
cmp dword [ebp - 0x90], 0
je 0x4a51b8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 0xb
jne 0x4a515e
push 0x4a55e4
push dword [ebp - 0x18]
push 0x4a5604
push 0x4a5610
push 0x4a561c
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 0x4a51b8
call fcn.00403ab0
jmp 0x4a5586
push 0x4a5638
push dword [ebp - 0x18]
push 0x4a5604
push 0x4a5650
push 0x4a565c
mov eax, dword [ebp - 4]
push dword [eax + 0x30c]
push 0x4a5674
push 0x4a5650
push 0x4a5680
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 0x4a51b8
call fcn.00403ab0
jmp 0x4a5586
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
test eax, eax
je 0x4a51ca
cmp eax, 0xb
jne 0x4a521c
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
mov al, byte [ebp - 0xb]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwhrf_bj.dll_rf_write
test ax, ax
je 0x4a521c
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40b
call fcn.00403ab0
jmp 0x4a5586
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 3
je 0x4a535f
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea edx, [ebp - 0x9c]
mov eax, 0x4a5694
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 0x4a529f
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 0x4a5272
mov byte [ebp - 0xb], 5
mov eax, dword [ebp - 0x1c]
call fcn.00404510
push eax
mov al, byte [ebp - 0xb]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwhrf_bj.dll_rf_write
test ax, ax
je 0x4a52db
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40c
call fcn.00403ab0
jmp 0x4a5586
lea eax, [ebp - 0x4d]
push eax
mov al, byte [ebp - 0xb]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwhrf_bj.dll_rf_read
test ax, ax
je 0x4a530e
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x420
call fcn.00403ab0
jmp 0x4a5586
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 0x4a531b
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040445c
je 0x4a535f
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40f
call fcn.00403ab0
jmp 0x4a5586
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
cmp eax, 3
je 0x4a537a
test eax, eax
je 0x4a537a
cmp eax, 0xb
jne 0x4a548e
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
mov al, byte [ebp - 0xb]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwhrf_bj.dll_rf_write
test ax, ax
je 0x4a53dd
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40d
call fcn.00403ab0
jmp 0x4a5586
lea eax, [ebp - 0x4d]
push eax
mov al, byte [ebp - 0xb]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwhrf_bj.dll_rf_read
test ax, ax
je 0x4a5410
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x420
call fcn.00403ab0
jmp 0x4a5586
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 0x4a541d
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 0x4a548e
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x421
call fcn.00403ab0
jmp 0x4a5586
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 0xb
jne 0x4a5513
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 0x4a54df
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 0x4a54c1
mov byte [ebp - 0xb], 7
lea eax, [ebp - 0x6d]
push eax
mov al, byte [ebp - 0xb]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwhrf_bj.dll_rf_write
test ax, ax
je 0x4a5513
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40e
call fcn.00403ab0
jmp 0x4a5586
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.mwhrf_bj.dll_rf_beep
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5586
xor eax, eax
push ebp
push 0x4a5574
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwhrf_bj.dll_rf_halt
push 0xa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.mwhrf_bj.dll_rf_reset
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a557e
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a55b8
lea eax, [ebp - 0xb4]
mov edx, 0x11
call fcn.00404074
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404074
ret