Function at 0x4a40bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x4a40c4
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a4a76
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 0xb
jne 0x4a40fd
lea edx, [ebp - 8]
mov eax, dword [0x4b1968]
mov eax, dword [eax]
call fcn.0040846c
jmp 0x4a410c
lea edx, [ebp - 8]
mov eax, dword [0x4b1714]
mov eax, dword [eax]
call fcn.0040846c
lea eax, [ebp - 8]
mov edx, 0x4a4a8c
call fcn.00404318
lea eax, [ebp - 8]
push eax
mov ecx, 0xc
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404570
mov eax, dword [ebp - 8]
call fcn.00404510
push eax
push 1
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.dcrf32.dll_dc_load_key_hex
test ax, ax
je 0x4a4162
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x409
jmp 0x4a4a4b
xor edi, edi
push ebp
push 0x4a4a44
push dword fs:[edi]
mov dword fs:[edi], esp
lea eax, [ebp - 0x34]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.dcrf32.dll_dc_card
test ax, ax
je 0x4a41af
mov eax, dword [0x4b17c8]
mov eax, dword [eax]
call fcn.0046a348
mov eax, dword [ebp - 4]
cmp dword [eax + 0x308], 0x406
jne 0x4a4170
call fcn.00403ab0
jmp 0x4a4a4b
push 1
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.dcrf32.dll_dc_authentication
test ax, ax
je 0x4a41de
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x409
call fcn.00403ab0
jmp 0x4a4a4b
mov ebx, 0x10
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x64]
mov byte [eax], 0
mov byte [edx], 0
mov byte [ecx], 0
inc ecx
inc edx
inc eax
dec ebx
jne 0x4a41ec
lea eax, [ebp - 0x44]
push eax
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.dcrf32.dll_dc_read
test ax, ax
je 0x4a422c
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40a
call fcn.00403ab0
jmp 0x4a4a4b
lea eax, [ebp - 0x54]
push eax
push 5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.dcrf32.dll_dc_read
test ax, ax
je 0x4a425d
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40a
call fcn.00403ab0
jmp 0x4a4a4b
lea eax, [ebp - 0x64]
push eax
push 6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.dcrf32.dll_dc_read
test ax, ax
je 0x4a428e
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40a
call fcn.00403ab0
jmp 0x4a4a4b
lea eax, [ebp - 8]
call fcn.00404050
mov ebx, 0xd
lea esi, [ebp - 0x44]
lea eax, [ebp - 0x68]
mov dl, byte [esi]
call fcn.00404238
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 8]
call fcn.00404318
inc esi
dec ebx
jne 0x4a429e
mov eax, dword [0x4b1658]
mov eax, dword [eax]
mov dl, 1
call fcn.0049f34c
test al, al
je 0x4a42d6
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0049f234
jmp 0x4a42e1
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.004087c4
lea eax, [ebp - 8]
call fcn.00404050
mov ebx, 0x10
lea esi, [ebp - 0x54]
lea eax, [ebp - 0x6c]
mov dl, byte [esi]
xor dl, 0x4d
call fcn.00404238
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 8]
call fcn.00404318
inc esi
dec ebx
jne 0x4a42f1
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.004040e8
lea eax, [ebp - 8]
call fcn.00404050
mov ebx, 0x10
lea esi, [ebp - 0x64]
lea eax, [ebp - 0x70]
mov dl, byte [esi]
call fcn.00404238
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 8]
call fcn.00404318
inc esi
dec ebx
jne 0x4a4328
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0049f220
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
cmp eax, 0xa
je 0x4a4369
dec eax
jne 0x4a444c
lea eax, [ebp - 0x74]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404570
mov eax, dword [ebp - 0x74]
mov edx, 0x4a4aa4
call fcn.0040445c
jne 0x4a43f7
lea eax, [ebp - 0x18]
push eax
mov ecx, 0xa
mov edx, 3
mov eax, dword [ebp - 0x14]
call fcn.00404570
lea eax, [ebp - 0x1c]
push eax
mov ecx, 4
mov edx, 0xd
mov eax, dword [ebp - 0x14]
call fcn.00404570
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.004a048c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
call fcn.0040445c
je 0x4a43e9
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x44b
call fcn.00403ab0
jmp 0x4a4a4b
mov eax, dword [ebp - 0x18]
call fcn.004a03e4
fistp qword [ebp - 0x30]
wait
jmp 0x4a444c
xor eax, eax
push ebp
push 0x4a4426
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x14]
call fcn.004087c4
mov eax, dword [ebp - 0x78]
call fcn.0040a700
fistp qword [ebp - 0x30]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a444c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 0xa
jne 0x4a44ad
mov eax, dword [ebp - 4]
add eax, 0x30c
mov edx, dword [ebp - 0x10]
call fcn.004040a4
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0xc]
call fcn.004087c4
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 4]
add eax, 0x310
call fcn.004040a4
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x318], edx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x31c], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x308], edx
call fcn.00403ab0
jmp 0x4a4a4b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
dec eax
je 0x4a4506
dec eax
je 0x4a451a
dec eax
je 0x4a4531
sub eax, 8
jne 0x4a453b
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x80]
xor eax, eax
call fcn.0049f234
mov edx, dword [ebp - 0x80]
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 0x4a4550
fild qword [ebp - 0x30]
mov eax, dword [ebp - 4]
fild qword [eax + 0x318]
faddp st(1)
fistp qword [ebp - 0x28]
wait
jmp 0x4a4550
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 0x4a4550
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
jmp 0x4a4550
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 [0x4a4aa8]
fnstsw ax
sahf
jae 0x4a4575
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x3f1
call fcn.00403ab0
jmp 0x4a4a4b
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x320]
test ebx, ebx
je 0x4a45b1
cmp ebx, 0xb
je 0x4a45b1
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x30c]
call fcn.0040445c
je 0x4a45b1
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x3f0
call fcn.00403ab0
jmp 0x4a4a4b
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x30c]
call fcn.0040445c
je 0x4a468e
mov eax, dword [ebp - 0x10]
mov edx, 0x4a4ab4
call fcn.0040445c
je 0x4a468e
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x10]
call fcn.004087c4
cmp dword [ebp - 0x84], 0
je 0x4a468e
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 0xb
jne 0x4a4641
push 0x4a4acc
push dword [ebp - 0x10]
push 0x4a4aec
push 0x4a4af8
lea eax, [ebp - 0x88]
mov edx, 4
call fcn.004043d0
mov eax, dword [ebp - 0x88]
mov dx, pe_nt_image_headers32
call fcn.0049ebd8
test al, al
jne 0x4a468e
call fcn.00403ab0
jmp 0x4a4a4b
push 0x4a4b18
push dword [ebp - 0x10]
push 0x4a4b38
push 0x4a4b50
mov eax, dword [ebp - 4]
push dword [eax + 0x30c]
push 0x4a4b60
lea eax, [ebp - 0x8c]
mov edx, 6
call fcn.004043d0
mov eax, dword [ebp - 0x8c]
mov dx, pe_nt_image_headers32
call fcn.0049ebd8
test al, al
jne 0x4a468e
call fcn.00403ab0
jmp 0x4a4a4b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
test eax, eax
je 0x4a46a0
cmp eax, 0xb
jne 0x4a46ec
lea ecx, [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov edx, 0x10
call fcn.0049f484
mov eax, dword [ebp - 8]
call fcn.00404510
push eax
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.dcrf32.dll_dc_write
test ax, ax
je 0x4a46ec
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40b
call fcn.00403ab0
jmp 0x4a4a4b
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 3
je 0x4a482d
fld xword [0x4a4b74]
fild qword [ebp - 0x28]
fcompp
fnstsw ax
sahf
jbe 0x4a4723
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x44c
call fcn.00403ab0
jmp 0x4a4a4b
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 8]
call fcn.004a05d8
lea eax, [ebp - 0x14]
call fcn.00404050
mov eax, dword [ebp - 8]
call fcn.00404310
mov esi, eax
test esi, esi
jle 0x4a4773
mov ebx, 1
lea eax, [ebp - 0x90]
mov edx, dword [ebp - 8]
mov dl, byte [edx + ebx - 1]
xor dl, 0x4d
call fcn.00404238
mov edx, dword [ebp - 0x90]
lea eax, [ebp - 0x14]
call fcn.00404318
inc ebx
dec esi
jne 0x4a474c
mov eax, dword [ebp - 0x14]
call fcn.00404510
push eax
push 5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.dcrf32.dll_dc_write
test ax, ax
je 0x4a47a9
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40c
call fcn.00403ab0
jmp 0x4a4a4b
lea eax, [ebp - 0x54]
push eax
push 5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.dcrf32.dll_dc_read
test ax, ax
je 0x4a47da
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x420
call fcn.00403ab0
jmp 0x4a4a4b
lea eax, [ebp - 8]
call fcn.00404050
mov ebx, 0x10
lea esi, [ebp - 0x54]
lea eax, [ebp - 0x94]
mov dl, byte [esi]
call fcn.00404238
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 8]
call fcn.00404318
inc esi
dec ebx
jne 0x4a47ea
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.0040445c
je 0x4a482d
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40f
call fcn.00403ab0
jmp 0x4a4a4b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
cmp eax, 3
je 0x4a4848
test eax, eax
je 0x4a4848
cmp eax, 0xb
jne 0x4a4956
lea ecx, [ebp - 0x98]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov edx, 8
call fcn.0049f484
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 8]
call fcn.0049f20c
mov eax, dword [ebp - 8]
call fcn.00404510
push eax
push 6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.dcrf32.dll_dc_write
test ax, ax
je 0x4a48a5
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40d
call fcn.00403ab0
jmp 0x4a4a4b
lea eax, [ebp - 0x54]
push eax
push 6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.dcrf32.dll_dc_read
test ax, ax
je 0x4a48d6
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x420
call fcn.00403ab0
jmp 0x4a4a4b
lea eax, [ebp - 8]
call fcn.00404050
mov ebx, 0x10
lea esi, [ebp - 0x54]
lea eax, [ebp - 0x9c]
mov dl, byte [esi]
call fcn.00404238
mov edx, dword [ebp - 0x9c]
lea eax, [ebp - 8]
call fcn.00404318
inc esi
dec ebx
jne 0x4a48e6
lea ecx, [ebp - 0xa4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov edx, 8
call fcn.0049f484
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.0049f20c
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 8]
call fcn.0040445c
je 0x4a4956
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x421
call fcn.00403ab0
jmp 0x4a4a4b
mov eax, dword [ebp - 4]
cmp dword [eax + 0x320], 0xb
jne 0x4a49d4
lea edx, [ebp - 8]
mov eax, dword [0x4b1714]
mov eax, dword [eax]
call fcn.0040846c
lea eax, [ebp - 8]
mov edx, 0x4a4a8c
call fcn.00404318
lea eax, [ebp - 8]
push eax
mov ecx, 0xc
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404570
lea eax, [ebp - 8]
mov edx, 0x4a4b88
call fcn.00404318
mov eax, dword [ebp - 8]
call fcn.00404510
push eax
push 7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.dcrf32.dll_dc_write_hex
test ax, ax
je 0x4a49d4
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 0x40e
call fcn.00403ab0
jmp 0x4a4a4b
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.dcrf32.dll_dc_beep
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4a4b
xor edx, edx
push ebp
push 0x4a4a39
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
test eax, eax
jle 0x4a4a2f
push 0xa
push eax
call sub.dcrf32.dll_dc_reset
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
push eax
call sub.dcrf32.dll_dc_exit
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a4a43
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4a7d
lea eax, [ebp - 0xa4]
mov edx, 0x10
call fcn.00404074
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00404074
ret