Function at 0x549f40
Capabilities:
Encrypt data using dpapi
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x564941
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x78]
mov eax, dword [esi + 0x14]
mov edx, dword [eax + 0x14]
add esi, 0x14
push ebx
mov ecx, esi
call edx
mov eax, edi
call fcn.00499c50
test al, al
je 0x549fa8
mov esi, dword [esp + 0x7c]
mov ecx, esi
call fcn.004992d0
mov dword [esp + 0x70], ebx
mov dword [esp + 0x18], 1
jmp 0x54a241
mov eax, edi
call fcn.00408130
mov ebp, eax
mov eax, edi
mov dword [esp + 0x1c], ebp
call fcn.00499c00
mov ebx, eax
mov eax, 0x68445c
call fcn.00499c00
lea ecx, [esp + 0x20]
push ecx
mov edx, eax
mov ecx, edi
call fcn.00499840
mov edi, 1
mov dword [esp + 0x70], edi
mov edx, 0x68445c
call fcn.0049a630
mov byte [esp + 0x17], al
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x20]
call fcn.00499450
cmp byte [esp + 0x17], 0
je 0x54a020
mov eax, 0x68445c
call fcn.00499c00
lea edx, [ebp + eax*2]
mov eax, 0x68445c
mov dword [esp + 0x1c], edx
call fcn.00499c00
sub ebx, eax
test bl, 1
je 0x54a07f
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push 0xe1040047
mov ecx, esi
call edx
mov eax, dword [esp + 0x78]
mov edx, dword [esi]
add eax, 4
call fcn.00408130
push eax
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x3c]
mov ecx, esi
call eax
push eax
push 0x612f10
call fcn.0054b570
mov esi, dword [esp + 0x84]
add esp, 8
mov ecx, esi
call fcn.004992d0
mov dword [esp + 0x70], 0
mov dword [esp + 0x18], edi
jmp 0x54a241
mov eax, ebx
shr eax, 1
push eax
mov dword [esp + 0x28], eax
call sub.mfc90u.dll_new_1
lea edi, [ebx - 1]
add esp, 4
mov ebp, eax
xor edx, edx
mov dword [esp + 0x28], ebp
test edi, edi
jbe 0x54a134
mov ebx, dword [esp + 0x1c]
movzx eax, word [ebx + edx*2]
lea ecx, [eax - 0x30]
cmp cx, 9
ja 0x54a0bc
movzx eax, ax
sub eax, 0x30
jmp 0x54a0e1
lea ecx, [eax - 0x61]
cmp cx, 5
ja 0x54a0cd
movzx eax, ax
sub eax, 0x57
jmp 0x54a0e1
lea ecx, [eax - 0x41]
cmp cx, 5
ja 0x54a0de
movzx eax, ax
sub eax, 0x37
jmp 0x54a0e1
or eax, 0xffffffff
mov ecx, edx
shr ecx, 1
shl al, 4
add ecx, ebp
mov byte [ecx], al
movzx eax, word [ebx + edx*2 + 2]
lea ebx, [eax - 0x30]
cmp bx, 9
ja 0x54a102
movzx eax, ax
sub eax, 0x30
jmp 0x54a127
lea ebx, [eax - 0x61]
cmp bx, 5
ja 0x54a113
movzx eax, ax
sub eax, 0x57
jmp 0x54a127
lea ebx, [eax - 0x41]
cmp bx, 5
ja 0x54a124
movzx eax, ax
sub eax, 0x37
jmp 0x54a127
or eax, 0xffffffff
or byte [ecx], al
add edx, 2
cmp edx, edi
jb 0x54a0a3
lea edx, [esp + 0x2c]
push edx
push 1
push 0
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x54a1f2
mov ecx, dword [0x67f9a0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.0049c100
mov dword [esp + 0x70], 2
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push 0xe1040046
mov ecx, esi
call edx
mov eax, dword [esp + 0x78]
mov edx, dword [esi]
add eax, 4
call fcn.00408130
push eax
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
mov edi, dword [esi]
lea ecx, [esp + 0x34]
add edi, 0x28
call fcn.0049c6c0
mov edx, dword [edi]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
mov ecx, esi
call edx
push eax
push 0x612f10
call fcn.0054b570
push ebp
call sub.mfc90u.dll_delete_1
mov esi, dword [esp + 0x88]
add esp, 0xc
mov ecx, esi
call fcn.004992d0
mov dword [esp + 0x18], 1
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x34]
call fcn.0049c2c0
jmp 0x54a241
push ebp
call sub.mfc90u.dll_delete_1
mov eax, dword [esp + 0x34]
add esp, 4
push 0
or edi, 0xffffffff
lea esi, [esp + 0x7c]
call fcn.004993c0
mov dword [esp + 0x70], 3
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov esi, dword [esp + 0x7c]
call fcn.004992f0
mov dword [esp + 0x18], 1
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x78]
call fcn.00499450
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8