Function at 0x428e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dba72
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5400e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push ebx
push 0x4fa770
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x38], ebx
call fcn.00415540
push 0x38
xor eax, eax
mov dword [ebp - 0x14], 7
push str.EosCryptoSvc_automatically_generated_config_file_r_n
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.00415540
push 0x16
push str._r_n_Service_settings__r_n
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.0041b780
push dword [edi + 4]
lea eax, [ebp - 0x28]
push 0x4ff654
push eax
call fcn.00428c50
cmp dword [edi + 0x20], 8
lea eax, [edi + 0xc]
jb 0x428ea8
mov eax, dword [eax]
push eax
push str.LogFile
lea eax, [ebp - 0x28]
push eax
call fcn.00428d30
movzx eax, byte [edi + 8]
push eax
push 0x4ff674
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
movzx eax, byte [edi + 0x24]
push eax
push 0x4ff690
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
movzx eax, byte [edi + 0x25]
push eax
push 0x4ff6cc
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
movzx eax, byte [edi + 0x26]
push eax
push 0x4ff6f0
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
movzx eax, byte [edi + 0x28]
push eax
push 0x4ff714
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
movzx eax, byte [edi + 0x29]
push eax
push 0x4ff750
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
movzx eax, byte [edi + 0x44]
push eax
push 0x4ff788
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
movzx eax, byte [edi + 0x45]
push eax
push 0x4ff7a0
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
push dword [edi + 0x48]
lea eax, [ebp - 0x28]
push 0x4ff7b8
push eax
call fcn.00428c50
push dword [edi + 0x4c]
lea eax, [ebp - 0x28]
push 0x4ff7cc
push eax
call fcn.00428c50
movzx eax, byte [edi + 0x46]
push eax
push 0x4ff7e0
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
movzx eax, byte [edi + 0x47]
push eax
push 0x4ff810
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
movzx eax, byte [edi + 0x50]
push eax
push 0x4ff844
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
movzx eax, byte [edi + 0x51]
push eax
push 0x4ff85c
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
movzx eax, byte [edi + 0x52]
push eax
push 0x4ff888
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
movzx eax, byte [edi + 0x53]
push eax
push 0x4ff8b0
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
cmp dword [edi + 0x68], 8
lea eax, [edi + 0x54]
jb 0x428fee
mov eax, dword [eax]
push eax
push 0x4ff8f0
lea eax, [ebp - 0x28]
push eax
call fcn.00428d30
cmp dword [edi + 0x7c], 0x28
jne 0x429008
lea eax, [edi + 0x6c]
jmp 0x42907c
lea edx, [edi + 0x6c]
sub esp, 0x18
cmp dword [edx + 0x10], 0x10
jbe 0x429038
mov eax, esp
mov ecx, edx
push 0x10
push 0
push eax
call fcn.00425fb0
lea ecx, [ebp - 0x50]
call fcn.004406b0
add esp, 0x18
mov byte [ebp - 4], 1
mov ebx, 1
jmp 0x429079
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x429052
mov eax, dword [ecx]
jmp 0x429054
mov eax, ecx
push 0xffffffffffffffff
xor esi, esi
push esi
push edx
mov word [eax], si
call fcn.00415640
lea ecx, [ebp - 0x70]
call fcn.004406b0
add esp, 0x18
mov dword [ebp - 4], 2
mov ebx, 2
mov dword [ebp - 0x38], ebx
cmp dword [eax + 0x14], 8
jb 0x429084
mov eax, dword [eax]
push eax
push 0x4ff90c
lea eax, [ebp - 0x28]
push eax
call fcn.00428d30
test bl, 2
je 0x4290c4
mov eax, dword [ebp - 0x5c]
and ebx, 0xfffffffd
cmp eax, 8
jb 0x4290b0
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00417730
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov dword [ebp - 4], 0
test bl, 1
je 0x4290e5
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x4290e5
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.00417730
movzx eax, byte [edi + 0x84]
push eax
push 0x4ff928
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
cmp dword [edi + 0x9c], 8
lea eax, [edi + 0x88]
jb 0x42910c
mov eax, dword [eax]
push eax
push 0x4ff940
lea eax, [ebp - 0x28]
push eax
call fcn.00428d30
movzx eax, byte [edi + 0xa0]
push eax
push 0x4ff954
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
cmp dword [edi + 0xb8], 8
lea eax, [edi + 0xa4]
jb 0x429142
mov eax, dword [eax]
push eax
push 0x4ff968
lea eax, [ebp - 0x28]
push eax
call fcn.00428d30
cmp dword [edi + 0xd0], 8
lea eax, [edi + 0xbc]
jb 0x429162
mov eax, dword [eax]
push eax
push 0x4ff984
lea eax, [ebp - 0x28]
push eax
call fcn.00428d30
cmp dword [edi + 0xe8], 8
lea eax, [edi + 0xd4]
jb 0x429182
mov eax, dword [eax]
push eax
push 0x4ff99c
lea eax, [ebp - 0x28]
push eax
call fcn.00428d30
cmp dword [edi + 0x100], 8
lea eax, [edi + 0xec]
jb 0x4291a2
mov eax, dword [eax]
push eax
push 0x4ff9b8
lea eax, [ebp - 0x28]
push eax
call fcn.00428d30
push dword [edi + 0x104]
lea eax, [ebp - 0x28]
push 0x4ff9d4
push eax
call fcn.00428c50
push dword [edi + 0x108]
lea eax, [ebp - 0x28]
push 0x4ff9e8
push eax
call fcn.00428c50
push dword [edi + 0x10c]
lea eax, [ebp - 0x28]
push 0x4ff9fc
push eax
call fcn.00428c50
push dword [edi + 0x110]
lea eax, [ebp - 0x28]
push 0x4ffa14
push eax
call fcn.00428c50
push dword [edi + 0x114]
lea eax, [ebp - 0x28]
push 0x4ffa2c
push eax
call fcn.00428c50
push dword [edi + 0x118]
lea eax, [ebp - 0x28]
push 0x4ffa4c
push eax
call fcn.00428c50
movzx eax, byte [edi + 0x27]
push eax
push 0x4ffa64
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
cmp dword [edi + 0x130], 8
lea eax, [edi + 0x11c]
jb 0x42924d
mov eax, dword [eax]
push eax
push 0x4ffa8c
lea eax, [ebp - 0x28]
push eax
call fcn.00428d30
cmp dword [edi + 0x148], 8
lea eax, [edi + 0x134]
jb 0x42926d
mov eax, dword [eax]
push eax
push 0x4ffaa8
lea eax, [ebp - 0x28]
push eax
call fcn.00428d30
movzx eax, byte [edi + 0x14c]
push eax
push 0x4ffabc
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
cmp dword [edi + 0x164], 8
lea eax, [edi + 0x150]
jb 0x4292a3
mov eax, dword [eax]
push eax
push 0x4ffad8
lea eax, [ebp - 0x28]
push eax
call fcn.00428d30
push dword [edi + 0x168]
lea eax, [ebp - 0x28]
push 0x4ffaf0
push eax
call fcn.00428c50
cmp dword [edi + 0x180], 8
lea eax, [edi + 0x16c]
jb 0x4292d7
mov eax, dword [eax]
push eax
push 0x4ffb08
lea eax, [ebp - 0x28]
push eax
call fcn.00428d30
lea esi, [edi + 0x19c]
push esi
call fcn.0042cff0
push 0x14
push str._r_n_Dll_extensions__r_n
lea ecx, [ebp - 0x28]
call fcn.0041b780
sub esp, 0xc
mov ecx, esp
push esi
call fcn.0042d780
lea eax, [ebp - 0x50]
push eax
call fcn.0042cdf0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00415760
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x42933f
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.00417730
push 0x15
push str._r_n_Custom_CDP_list__r_n
lea ecx, [ebp - 0x28]
call fcn.0041b780
sub esp, 0xc
lea eax, [edi + 0x1a8]
mov ecx, esp
push eax
call fcn.0042d780
lea eax, [ebp - 0x50]
push eax
call fcn.0042cdf0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00415760
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x429392
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.00417730
push 0x1b
push str._r_n_Custom_error_handlers__r_n
lea ecx, [ebp - 0x28]
call fcn.0041b780
sub esp, 0xc
lea eax, [edi + 0x1b4]
mov ecx, esp
push eax
call fcn.0042d780
lea eax, [ebp - 0x50]
push eax
call fcn.0042cdf0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00415760
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x4293e5
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.00417730
push 0x17
push str._r_n_mod_spki_settings__r_n
lea ecx, [ebp - 0x28]
call fcn.0041b780
push dword [edi + 0x184]
lea eax, [ebp - 0x28]
push str.EncryptionAlg
push eax
call fcn.00428c50
movzx eax, byte [edi + 0x188]
push eax
push str.UpdateCrl
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
movzx eax, byte [edi + 0x198]
push eax
push str.UseAIACDP
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
movzx eax, byte [edi + 0x189]
push eax
push str.LoadAnyProfile
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
movzx eax, byte [edi + 0x199]
push eax
push str.InitVerifyContext
lea eax, [ebp - 0x28]
push eax
call fcn.00428c50
push 0x2a
push str._r_n_mod_spki_Update_Crl_Enabled_Profiles__r_n
lea ecx, [ebp - 0x28]
call fcn.0041b780
sub esp, 0xc
lea eax, [edi + 0x18c]
mov ecx, esp
push eax
call fcn.0042d780
lea eax, [ebp - 0x50]
push eax
call fcn.0042cdf0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.00415760
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x4294af
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.00417730
xorps xmm0, xmm0
xor esi, esi
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
push dword [ebp - 0x58]
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42952d
call fcn.0042fbe0
test eax, eax
jns 0x429532
cmp dword [0x540eac], 0x419
mov edx, dword [str.Failed_to_write_new_config_file_]
cmove edx, dword [0x4fca90]
cmp word [edx], si
jne 0x429519
xor ecx, ecx
push ecx
mov ecx, dword [ebp - 0x54]
push edx
call fcn.00415540
xor bl, bl
jmp 0x4295b6
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429520
jmp 0x4295a2
mov esi, eax
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x34]
push 0
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, eax
push eax
push ecx
push esi
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4295b4
call fcn.0042fbe0
test eax, eax
jns 0x4295b4
cmp dword [0x540eac], 0x419
mov edx, dword [str.Failed_to_write_new_config_file_]
cmove edx, dword [0x4fca90]
cmp word [edx], 0
jne 0x429592
xor ecx, ecx
push ecx
mov ecx, dword [ebp - 0x54]
push edx
call fcn.00415540
xor bl, bl
jmp 0x4295b6
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429597
sub ecx, edi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x54]
push edx
call fcn.00415540
xor bl, bl
jmp 0x4295b6
mov bl, 1
test esi, esi
je 0x4295c1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4295d6
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00417730
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004981af
mov esp, ebp
pop ebp
ret 8