Function at 0x43e330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aba69
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
push ebx
push esi
push edi
mov eax, dword [0x62c2a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
test eax, eax
jne 0x43e5c2
lea ecx, [ebp - 0x138]
call fcn.00433f60
lea ecx, [ebp - 0xfc]
call fcn.00433f60
lea ecx, [ebp - 0xc0]
call fcn.00433f60
lea ecx, [ebp - 0x78]
call fcn.00433f60
push 0
push ecx
mov ecx, esp
mov byte [ebp - 4], 5
mov dword [ecx], 0
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
test eax, eax
je 0x43e3bd
inc dword [eax - 4]
mov ecx, edi
call fcn.004429c0
push str._SEQUENCE___SEQUENCE_
lea ecx, [ebp - 0xc0]
call fcn.004342e0
cmp dword [edi + 0x20], 0
je 0x43e404
lea eax, [ebp - 0xfc]
mov ecx, edi
push eax
call fcn.0043f220
lea ecx, [ebp - 0xfc]
call fcn.00434590
test eax, eax
je 0x43e404
push ecx
push eax
lea ecx, [ebp - 0xc0]
call fcn.00434500
cmp dword [edi + 0x10], 0
je 0x43e434
lea eax, [ebp - 0x138]
mov ecx, edi
push eax
call fcn.0043eb40
lea ecx, [ebp - 0x138]
call fcn.00434590
test eax, eax
je 0x43e434
push ecx
push eax
lea ecx, [ebp - 0xc0]
call fcn.00434500
cmp dword [ebp - 0xb4], 0
je 0x43e47a
lea ecx, [ebp - 0xc0]
call fcn.004374a0
mov esi, eax
push esi
call fcn.0046424b
add esp, 4
test eax, eax
jne 0x43e463
mov dword [ebp - 0xbc], 3
jmp 0x43e47a
push esi
push eax
lea ecx, [ebp - 0xc0]
call fcn.00437550
mov dword [ebp - 0x8c], 1
push str._SEQUENCE__INTEGER_0x03__INTEGER__SEQUENCE__OBJECT_IDENTIFIER_1.2.840.113549.1.7.1__OBJECT_IDENTIFIER__TAG_0_CLASS_2___OCTET_STRING_____TAG_0___SEQUENCE___SEQUENCE_
lea ecx, [ebp - 0x78]
call fcn.004342e0
push 0
push 0x5fdc38
lea ecx, [ebp - 0x78]
call fcn.00434cd0
push dword [ebp - 0xa4]
mov ecx, eax
push dword [ebp - 0xa8]
call fcn.00434b00
cmp dword [ebp - 0x6c], 0
je 0x43e4e0
lea ecx, [ebp - 0x78]
call fcn.004374a0
mov esi, eax
push esi
call fcn.0046424b
add esp, 4
test eax, eax
jne 0x43e4cf
mov dword [ebp - 0x74], 3
jmp 0x43e4e0
push esi
push eax
lea ecx, [ebp - 0x78]
call fcn.00437550
mov dword [ebp - 0x44], 1
lea eax, [ebp - 0x78]
mov ecx, edi
push eax
call fcn.0043fe10
cmp dword [ebp - 0x6c], 0
je 0x43e522
lea ecx, [ebp - 0x78]
call fcn.004374a0
mov esi, eax
push esi
call fcn.0046424b
add esp, 4
test eax, eax
jne 0x43e511
mov dword [ebp - 0x74], 3
jmp 0x43e522
push esi
push eax
lea ecx, [ebp - 0x78]
call fcn.00437550
mov dword [ebp - 0x44], 1
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43e5ad
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x5c]
jne 0x43e5ad
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], vtable.DASN1.0
call fcn.00434010
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xc0], vtable.DASN1.0
call fcn.00434010
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xfc], vtable.DASN1.0
call fcn.00434010
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x138]
mov dword [ebp - method.DASN1.virtual_0], vtable.DASN1.0
call fcn.00434010
mov dword [edi + 4], 0
jmp 0x43e808
push 0x6256a0
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0xe
push eax
call fcn.00586852
cmp eax, 1
jne 0x43e7de
lea ecx, [ebp - 0x78]
call fcn.00433f60
mov dword [ebp - 0x30], vtable.CDBase64.0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
lea ebx, [edi + 0x48]
mov byte [ebp - 4], 8
mov eax, dword [ebx]
xor esi, esi
test eax, eax
je 0x43e693
cmp dword [eax - 0xc], esi
je 0x43e693
mov edx, 0x5fdc20
mov ecx, ebx
call fcn.00433e60
test al, al
jne 0x43e693
push str._OBJECT_IDENTIFIER___
lea ecx, [ebp - 0x78]
call fcn.004342e0
mov eax, dword [ebx]
mov ecx, 0x5ef390
test eax, eax
push esi
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x78]
call fcn.00434c70
lea ecx, [ebp - 0x78]
call fcn.00434610
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x30]
push dword [ebp - 0x60]
call fcn.00438aa0
push str._____BEGIN_EC_PARAMETERS______n
lea ecx, [ebp - 0x14]
call fcn.00433400
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00433690
push 0x1d
push str._n_____END_EC_PARAMETERS______n
lea ecx, [ebp - 0x14]
call fcn.004336d0
push 0x1f
push str._____BEGIN_EC_PRIVATE_KEY______n
lea ecx, [ebp - 0x14]
call fcn.004336d0
jmp 0x43e6a0
push str._____BEGIN_RSA_PRIVATE_KEY______n
lea ecx, [ebp - 0x14]
call fcn.00433400
lea eax, [ebp - 0x78]
mov ecx, edi
push eax
call fcn.0043fa30
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x30]
push dword [ebp - 0x60]
call fcn.00438aa0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x43e72f
mov ecx, 0x40
mov edx, dword [ebp - 0x2c]
mov ebx, eax
sub ebx, esi
cmp ebx, 0x40
cmova ebx, ecx
lea eax, [edx + ebx]
add eax, esi
mov dword [ebp - 0x3c], eax
mov cl, byte [eax]
mov byte [ebp + 0x13], cl
mov byte [eax], 0
add edx, esi
je 0x43e707
cmp byte [edx], 0
je 0x43e707
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x38], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43e6f3
sub ecx, dword [ebp - 0x38]
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.004336d0
push 1
push 0x5fbee4
lea ecx, [ebp - 0x14]
call fcn.004336d0
mov eax, dword [ebp - 0x3c]
add esi, ebx
mov cl, byte [ebp + 0x13]
mov byte [eax], cl
mov ecx, 0x40
mov eax, dword [ebp - 0x28]
cmp esi, eax
jb 0x43e6c5
lea ebx, [edi + 0x48]
mov eax, dword [ebx]
test eax, eax
je 0x43e754
cmp dword [eax - 0xc], 0
je 0x43e754
mov edx, 0x5fdc20
mov ecx, ebx
call fcn.00433e60
test al, al
jne 0x43e754
push 0x1d
push str._____END_EC_PRIVATE_KEY______n
jmp 0x43e75b
push 0x1e
push str._____END_RSA_PRIVATE_KEY______n
lea ecx, [ebp - 0x14]
call fcn.004336d0
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x43e771
mov eax, dword [esi - 0xc]
mov ecx, esi
jmp 0x43e778
xor eax, eax
mov ecx, 0x5ef390
push 0
lea edx, [ebp - 0x1c]
push edx
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43e7c9
test esi, esi
je 0x43e796
mov eax, dword [esi - 0xc]
jmp 0x43e798
xor eax, eax
cmp dword [ebp - 0x1c], eax
jne 0x43e7c9
lea ecx, [ebp - 0x14]
call fcn.004331d0
lea ecx, [ebp - 0x30]
call fcn.00438a70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], vtable.DASN1.0
call fcn.00434010
mov dword [edi + 4], 0
jmp 0x43e808
push 0x6256a0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0xe
push eax
call fcn.00586852
push 0x6256a0
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0xb
push eax
call fcn.00586852
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x84]
mov dword [ecx + 4], eax
mov eax, 0x43e805
ret
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0043ea00
mov ecx, edi
call fcn.00443040
xor ebx, ebx
lea ecx, [ebp + 0xc]
cmp dword [edi + 4], ebx
sete bl
call fcn.004331d0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc