Function at 0x403270
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x1bc], edx
push esi
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x1b8], ecx
xor edi, edi
mov dword [ebp - 0x1c8], 0
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x198], eax
movups xmmword [ebp - 0x4c], xmm0
movups xmmword [ebp - 0x3c], xmm0
test edx, edx
je 0x403c2a
test ecx, ecx
je 0x403c2a
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x200
push ecx
call dword [0x4db44c]
test eax, eax
jns 0x403327
push eax
push str.Cannot_enumerate_values:0x_X
push 1
call fcn.00408d60
add esp, 0xc
jmp 0x403bf8
xor eax, eax
mov dword [ebp - 0x170], 0x11c
push 0xfe
push eax
mov word [ebp - 0x15c], ax
lea eax, [ebp - 0x15a]
push eax
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
call fcn.004ad600
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov word [ebp - 0x5a], ax
mov dword [ebp - 0x58], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
lea eax, [ebp - 0x170]
mov dword [ebp - 0x16c], 6
xor ecx, ecx
mov dword [ebp - 0x168], ebx
push eax
mov word [ebp - 0x5c], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov esi, eax
mov dword [ebp - 0x1c4], esi
test esi, esi
jne 0x4033c3
mov ecx, dword [ebp - 0x17c]
mov dword [ebp - 0x1a8], ecx
jmp 0x4033cb
mov edi, dword [ebp - 0x17c]
xor ecx, ecx
mov dword [ebp - 0x1ac], ebx
cmp dword [ebp - 0x28], ebx
jbe 0x403bb0
lea edx, [edi + 0x18]
mov dword [ebp - 0x1b0], edx
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x1a0]
test esi, esi
mov dword [ebp - 0x1c0], eax
mov esi, 0xc
je 0x40344d
lea edi, [edx - 0x18]
mov edx, 0x4d9a70
mov ecx, edi
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x403b5d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x403410
lea eax, [ebp - 0x174]
push eax
mov eax, dword [ebp - 0x1b0]
push 0
push 0
push dword [eax + 8]
push dword [eax]
push dword [eax - 4]
push edi
push dword [ebp - 0x1b8]
call dword [0x4db454]
jmp 0x40348b
mov edx, 0x4d9a70
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x403b5d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x403452
lea eax, [ebp - 0x178]
push eax
mov eax, dword [ebp - 0x1a8]
push 0
push 0
push dword [eax + 0x18]
push dword [eax + 0x14]
push eax
push dword [ebp - 0x1b8]
call dword [0x4db450]
test eax, eax
js 0x403b9e
test ebx, ebx
je 0x4034cf
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4034a0
sub ecx, edx
mov eax, ebx
sar ecx, 1
add ecx, ecx
je 0x4034c0
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4034b5
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
dec dword [0x4de7b4]
xor ebx, ebx
cmp dword [ebp - 0x1c4], 0
mov esi, 0xc000000d
mov dword [ebp - 0x19c], esi
je 0x403817
mov eax, dword [ebp - 0x174]
cmp dword [eax + 0x14], 0
je 0x4037fc
cmp dword [eax + 0x18], 0
je 0x4037fc
mov esi, dword [eax + 0x1c]
test esi, esi
je 0x4037f6
mov esi, dword [esi + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x1a4], 0
movlpd qword [ebp - 0x18c], xmm0
mov dword [ebp - 0x180], 0
movups xmmword [ebp - 0x14], xmm0
test esi, esi
je 0x4037d2
mov ecx, dword [0x4db45c]
xor edi, edi
test ecx, ecx
jne 0x4035a7
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
jne 0x403574
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_load_ad_lib:0x_X
push 1
call fcn.00408d60
add esp, 0xc
mov ecx, edi
jmp 0x4036d1
push str.SystemFunction007
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x4db45c], ecx
test ecx, ecx
jne 0x4035a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_get_h_function:0x_X
push 1
call fcn.00408d60
add esp, 0xc
jmp 0x4036a7
mov ebx, edi
mov dword [ebp - 0x188], esi
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4035b2
sub esi, edx
sar esi, 1
lea eax, [esi + esi]
mov word [ebp - 0x18c], ax
add eax, 2
mov word [ebp - 0x18a], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18c]
push eax
call ecx
test eax, eax
jns 0x403601
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_get_hash:0x_X
push 1
call fcn.00408d60
add esp, 0xc
jmp 0x4036a3
mov esi, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
lea eax, [ebp - 0x180]
push eax
push 0
push 1
push 0x10
lea eax, [ebp - 0x14]
push eax
call esi
mov eax, dword [ebp - 0x180]
test eax, eax
jne 0x40363c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_get_size_of_base64_string:0x_X
push 1
call fcn.00408d60
add esp, 0xc
jmp 0x4036a3
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
inc dword [0x4de7b4]
mov edi, eax
test edi, edi
jne 0x40366b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_allocate_memory_for_base64_string:0x_X
push 1
call fcn.00408d60
add esp, 0xc
jmp 0x4036a3
lea eax, [ebp - 0x180]
push eax
push edi
push 1
push 0x10
lea eax, [ebp - 0x14]
push eax
call esi
test eax, eax
jne 0x403699
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_convert_to_base64:0x_X
push 1
call fcn.00408d60
add esp, 0xc
jmp 0x4036a3
mov dword [ebp - 0x1a4], 1
test ebx, ebx
je 0x4036ae
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x1a4]
mov eax, edi
mov esi, ecx
test ecx, ecx
jne 0x4036d1
test eax, eax
je 0x4036d1
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
dec dword [0x4de7b4]
mov ecx, esi
xor edi, edi
mov ebx, edi
test ecx, ecx
je 0x4037e1
mov ecx, dword [ebp - 0x174]
xor edx, edx
push dword [ecx + 0x28]
mov eax, dword [ecx + 0x18]
push dword [ecx + 0x24]
push dword [ecx + 0x28]
push dword [ecx + 0x24]
push edi
push dword [eax + 0x10]
mov eax, dword [ecx + 0x14]
lea ecx, [ebp - 0x4c]
push dword [eax + 0x10]
push str.Edge
call fcn.00408ef0
xor ecx, ecx
add esp, 0x20
test eax, eax
mov esi, 0xc000000d
cmovne esi, ecx
mov dword [ebp - 0x19c], esi
je 0x4037fc
inc dword [ebp - 0x1a0]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0xc
push 0x40
call ebx
inc dword [0x4de7b4]
mov esi, eax
test esi, esi
jne 0x403749
mov esi, str.Error_creating_a_new_list_entry:0x_X
jmp 0x4037a4
push 0x24
push 0x40
call ebx
inc dword [0x4de7b4]
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
je 0x40379f
movups xmm0, xmmword [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [ebp - 0x3c]
movups xmmword [ecx + 0x10], xmm0
mov dword [ecx + 0x20], eax
mov ecx, dword [ebp - 0x1bc]
cmp dword [ecx + 4], 0
jne 0x40378a
inc dword [ecx]
mov ebx, edi
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
jmp 0x4037f6
mov eax, dword [ecx + 8]
mov ebx, edi
mov dword [esi + 4], eax
mov eax, dword [ecx + 8]
mov dword [eax + 8], esi
inc dword [ecx]
mov dword [ecx + 8], esi
jmp 0x4037f6
mov esi, str.Error_copying_list_value:0x_X
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 1
call fcn.00408d60
add esp, 0xc
push str.Cannot_add_new_login
push 1
call fcn.00408d60
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x1a0], eax
jmp 0x4037ed
push str.NULL_parameters
push 1
call fcn.00408d60
add esp, 8
push str.Cannot_convert_pw_to_unicode
push 2
call fcn.00408d60
add esp, 8
inc dword [ebp - 0x198]
mov esi, dword [ebp - 0x19c]
push dword [ebp - 0x174]
call dword [0x4db440]
mov dword [ebp - 0x174], 0
jmp 0x403b42
mov eax, dword [ebp - 0x178]
cmp dword [eax + 0x14], 0
je 0x403b2c
cmp dword [eax + 0x18], 0
je 0x403b2c
mov esi, dword [eax + 0x1c]
test esi, esi
je 0x403b26
mov esi, dword [esi + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x1a4], 0
movlpd qword [ebp - 0x194], xmm0
mov dword [ebp - 0x184], 0
movups xmmword [ebp - 0x24], xmm0
test esi, esi
je 0x403b02
mov ecx, dword [0x4db45c]
xor edi, edi
test ecx, ecx
jne 0x4038d7
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
jne 0x4038a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_load_ad_lib:0x_X
push 1
call fcn.00408d60
add esp, 0xc
mov ecx, edi
jmp 0x403a01
push str.SystemFunction007
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x4db45c], ecx
test ecx, ecx
jne 0x4038d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_get_h_function:0x_X
push 1
call fcn.00408d60
add esp, 0xc
jmp 0x4039d7
mov ebx, edi
mov dword [ebp - 0x190], esi
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4038e2
sub esi, edx
sar esi, 1
lea eax, [esi + esi]
mov word [ebp - 0x194], ax
add eax, 2
mov word [ebp - 0x192], ax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x194]
push eax
call ecx
test eax, eax
jns 0x403931
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_get_hash:0x_X
push 1
call fcn.00408d60
add esp, 0xc
jmp 0x4039d3
mov esi, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
lea eax, [ebp - 0x184]
push eax
push 0
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call esi
mov eax, dword [ebp - 0x184]
test eax, eax
jne 0x40396c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_get_size_of_base64_string:0x_X
push 1
call fcn.00408d60
add esp, 0xc
jmp 0x4039d3
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
inc dword [0x4de7b4]
mov edi, eax
test edi, edi
jne 0x40399b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_allocate_memory_for_base64_string:0x_X
push 1
call fcn.00408d60
add esp, 0xc
jmp 0x4039d3
lea eax, [ebp - 0x184]
push eax
push edi
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
jne 0x4039c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_convert_to_base64:0x_X
push 1
call fcn.00408d60
add esp, 0xc
jmp 0x4039d3
mov dword [ebp - 0x1a4], 1
test ebx, ebx
je 0x4039de
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x1a4]
mov eax, edi
mov esi, ecx
test ecx, ecx
jne 0x403a01
test eax, eax
je 0x403a01
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
dec dword [0x4de7b4]
mov ecx, esi
xor edi, edi
mov ebx, edi
test ecx, ecx
je 0x403b11
mov ecx, dword [ebp - 0x178]
xor edx, edx
push dword [ecx + 0x24]
mov eax, dword [ecx + 0x18]
push dword [ecx + 0x20]
push dword [ecx + 0x24]
push dword [ecx + 0x20]
push edi
push dword [eax + 0x10]
mov eax, dword [ecx + 0x14]
lea ecx, [ebp - 0x4c]
push dword [eax + 0x10]
push str.Edge
call fcn.00408ef0
xor ecx, ecx
add esp, 0x20
test eax, eax
mov esi, 0xc000000d
cmovne esi, ecx
mov dword [ebp - 0x19c], esi
je 0x403b2c
inc dword [ebp - 0x1a0]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0xc
push 0x40
call ebx
inc dword [0x4de7b4]
mov esi, eax
test esi, esi
jne 0x403a79
mov esi, str.Error_creating_a_new_list_entry:0x_X
jmp 0x403ad4
push 0x24
push 0x40
call ebx
inc dword [0x4de7b4]
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
je 0x403acf
movups xmm0, xmmword [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [ebp - 0x3c]
movups xmmword [ecx + 0x10], xmm0
mov dword [ecx + 0x20], eax
mov ecx, dword [ebp - 0x1bc]
cmp dword [ecx + 4], 0
jne 0x403aba
inc dword [ecx]
mov ebx, edi
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
jmp 0x403b26
mov eax, dword [ecx + 8]
mov ebx, edi
mov dword [esi + 4], eax
mov eax, dword [ecx + 8]
mov dword [eax + 8], esi
inc dword [ecx]
mov dword [ecx + 8], esi
jmp 0x403b26
mov esi, str.Error_copying_list_value:0x_X
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 1
call fcn.00408d60
add esp, 0xc
push str.Cannot_add_new_login
push 1
call fcn.00408d60
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x1a0], eax
jmp 0x403b1d
push str.NULL_parameters
push 1
call fcn.00408d60
add esp, 8
push str.Cannot_convert_pw_to_unicode
push 2
call fcn.00408d60
add esp, 8
inc dword [ebp - 0x198]
mov esi, dword [ebp - 0x19c]
push dword [ebp - 0x178]
call dword [0x4db440]
mov dword [ebp - 0x178], 0
test esi, esi
jns 0x403b63
push dword [ebp - 0x1ac]
push str.Cannot_fill_login_data_on_index__d
push 1
call fcn.00408d60
add esp, 0xc
jmp 0x403b63
inc dword [ebp - 0x198]
mov eax, dword [ebp - 0x1ac]
mov edx, dword [ebp - 0x1b0]
inc eax
mov ecx, dword [ebp - 0x1a8]
add edx, 0x38
add ecx, 0x34
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1b0], edx
mov dword [ebp - 0x1a8], ecx
cmp eax, dword [ebp - 0x28]
jae 0x403bb0
mov esi, dword [ebp - 0x1c4]
jmp 0x4033f0
push eax
push str.Could_not_get_item:0x_X
push 1
call fcn.00408d60
add esp, 0xc
jmp 0x403bba
mov dword [ebp - 0x1c8], 1
test ebx, ebx
je 0x403bf8
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403bc3
sub ecx, edx
mov eax, ebx
sar ecx, 1
add ecx, ecx
je 0x403beb
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x403be0
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
dec dword [0x4de7b4]
push dword [ebp - 0x198]
push dword [ebp - 0x1a0]
push str.Edge___Number_of_logins_processed:__d__discarded:__d
push 3
call fcn.00408d60
mov eax, dword [ebp - 0x1c8]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
push str.NULL_parameters
push 1
call fcn.00408d60
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret