Function at 0x100bfde0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov edi, dword [ebp + 0x14]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, 0x101c9f9d
push edi
push str.printPolicyFeedback
push esi
call sym.nss3.dll_NSSUTIL_ArgHasFlag
add esp, 0xc
mov dword [ebp - 0x30], eax
push edi
push str.policyCheckIdentifier
push esi
call sym.nss3.dll_NSSUTIL_ArgHasFlag
add esp, 0xc
xor ebx, ebx
test eax, eax
setne bl
push edi
push str.policyCheckValue
push esi
call sym.nss3.dll_NSSUTIL_ArgHasFlag
add esp, 0xc
lea edi, [ebx + 2]
test eax, eax
cmove edi, ebx
cmp dword [ebp + 0x18], 0
je 0x100c0365
call sym.nss3.dll_SECOID_Init
test eax, eax
jne 0x100bff34
push dword [ebp + 0x18]
push str.disallow
call sym.nss3.dll_NSSUTIL_ArgGetParamValue
add esp, 8
mov esi, eax
mov ecx, eax
xor edx, edx
push edi
push dword [ebp - 0x30]
call fcn.100c2050
add esp, 8
mov ebx, eax
test esi, esi
je 0x100bfe83
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test ebx, ebx
jne 0x100bff34
push dword [ebp + 0x18]
push 0x101c878c
call sym.nss3.dll_NSSUTIL_ArgGetParamValue
add esp, 8
mov ebx, eax
xor edx, edx
inc edx
mov ecx, eax
push edi
push dword [ebp - 0x30]
call fcn.100c2050
add esp, 8
mov esi, eax
test ebx, ebx
je 0x100bfebe
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test esi, esi
jne 0x100bff34
push dword [ebp + 0x18]
push str.disable
call sym.nss3.dll_NSSUTIL_ArgGetParamValue
add esp, 8
mov ebx, eax
mov ecx, eax
mov edx, 2
push edi
push dword [ebp - 0x30]
call fcn.100c2050
add esp, 8
mov esi, eax
test ebx, ebx
je 0x100bfef7
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test esi, esi
jne 0x100bff34
push dword [ebp + 0x18]
push str.enable
call sym.nss3.dll_NSSUTIL_ArgGetParamValue
add esp, 8
mov ebx, eax
mov ecx, eax
mov edx, 3
push edi
push dword [ebp - 0x30]
call fcn.100c2050
add esp, 8
mov esi, eax
test ebx, ebx
je 0x100bff30
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test esi, esi
je 0x100bff6e
xor ebx, ebx
cmp dword [ebp - 0x30], 0
je 0x100c0634
push str.NSS_POLICY_FAIL1
call sym.nss3.dll_PR_SetEnv
add esp, 4
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push dword [ebp + 0xc]
push str.NSS_POLICY_FAIL:_policy_config_parsing_failed__not_loading_module__s_n
push eax
call fcn.101a0be0
add esp, 0xc
jmp 0x100c0634
push dword [ebp + 0x18]
push str.ssl_lock
push 0x101c9f9d
call sym.nss3.dll_NSSUTIL_ArgHasFlag
add esp, 0xc
test eax, eax
je 0x100bffae
lea eax, [ebp - 0x28]
push eax
push 0xd
call sym.nss3.dll_NSS_OptionGet
add esp, 8
test eax, eax
jne 0x100bff34
mov eax, dword [ebp - 0x28]
or eax, 1
push eax
push 0xd
call sym.nss3.dll_NSS_OptionSet
add esp, 8
test eax, eax
jne 0x100bff34
push dword [ebp + 0x18]
push str.policy_lock
push 0x101c9f9d
call sym.nss3.dll_NSSUTIL_ArgHasFlag
add esp, 0xc
test eax, eax
je 0x100bffce
mov byte [0x101f39c0], 1
cmp dword [ebp - 0x30], 0
je 0x100c0365
push str.NSS_POLICY_LOADED1
call sym.nss3.dll_PR_SetEnv
add esp, 4
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x25
push str.NSS_POLICY_INFO:_LOADED_SUCCESSFULLY_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
xor esi, esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp + esi*4 - 0x28], 0
mov eax, esi
shl eax, 4
mov ebx, dword [eax + 0x101bd1ec]
mov edi, dword [eax + 0x101bd1e8]
cmp ebx, 2
mov eax, 1
cmovb ebx, eax
add edi, 0xc
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x2c]
push eax
push dword [edi - 4]
call sym.nss3.dll_NSS_GetAlgorithmPolicy
add esp, 8
test eax, eax
jne 0x100c033e
mov ecx, dword [edi]
xor eax, eax
test cl, 4
je 0x100c0098
test byte [ebp - 0x2c], 4
je 0x100c0098
inc dword [ebp - 0x38]
mov esi, dword [edi - 0xc]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push esi
mov esi, dword [ebp - 0x34]
push str.NSS_POLICY_INFO:__s_is_enabled_for_KX_n
push eax
call fcn.101a0be0
add esp, 0xc
mov ecx, dword [edi]
xor eax, eax
inc eax
test cl, 8
je 0x100c00cb
test byte [ebp - 0x2c], 8
je 0x100c00cb
inc dword [ebp - 0x40]
mov esi, dword [edi - 0xc]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push esi
mov esi, dword [ebp - 0x34]
push str.NSS_POLICY_INFO:__s_is_enabled_for_SSL_n
push eax
call fcn.101a0be0
add esp, 0xc
mov ecx, dword [edi]
xor eax, eax
inc eax
test cl, 1
je 0x100c00ff
mov ecx, dword [ebp - 0x2c]
not ecx
test cl, 0x21
jne 0x100c00ff
inc dword [ebp - 0x3c]
mov esi, dword [edi - 0xc]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push esi
mov esi, dword [ebp - 0x34]
push str.NSS_POLICY_INFO:__s_is_enabled_for_CERT_SIGNATURE_n
push eax
call fcn.101a0be0
add esp, 0xc
jmp 0x100c0103
test eax, eax
je 0x100c010e
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp + esi*4 - 0x28], eax
add edi, 0x10
dec ebx
jne 0x100c004a
inc esi
cmp esi, 6
jne 0x100c0019
mov edi, dword [ebp - 0x38]
test edi, edi
mov eax, 0x101d2a4f
mov esi, str.WARN
cmovne esi, eax
mov eax, 2
push eax
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call ebx
add esp, 4
push edi
push esi
push str.NSS_POLICY__s:_NUMBER_OF_SSL_ALG_KX:__u_n
push eax
call fcn.101a0be0
add esp, 0x10
mov edi, dword [ebp - 0x40]
test edi, edi
mov esi, str.WARN
mov eax, 0x101d2a4f
cmovne esi, eax
mov eax, 2
push eax
call ebx
add esp, 4
push edi
push esi
push str.NSS_POLICY__s:_NUMBER_OF_SSL_ALG:__u_n
push eax
call fcn.101a0be0
add esp, 0x10
mov edi, dword [ebp - 0x3c]
test edi, edi
mov esi, str.WARN
mov eax, 0x101d2a4f
cmovne esi, eax
mov eax, 2
push eax
call ebx
add esp, 4
push edi
push esi
push str.NSS_POLICY__s:_NUMBER_OF_CERT_SIG:__u_n
push eax
call fcn.101a0be0
add esp, 0x10
mov edi, dword [ebp - 0x28]
test edi, edi
mov esi, str.WARN
mov eax, 0x101d2a4f
cmovne esi, eax
mov eax, 2
push eax
call ebx
add esp, 4
mov ecx, str.NSS_POLICY__s:_NUMBER_OF__s:__u_n
mov dword [ebp - 0x30], edi
push edi
push 0x101d603a
push esi
push ecx
push eax
call fcn.101a0be0
add esp, 0x14
mov ebx, dword [ebp - 0x24]
test ebx, ebx
mov esi, str.WARN
mov eax, 0x101d2a4f
cmovne esi, eax
mov eax, 2
push eax
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call edi
add esp, 4
mov dword [ebp - 0x34], ebx
push ebx
push 0x101d3cd1
push esi
mov ecx, str.NSS_POLICY__s:_NUMBER_OF__s:__u_n
push ecx
push eax
call fcn.101a0be0
add esp, 0x14
mov ebx, dword [ebp - 0x20]
test ebx, ebx
mov esi, str.WARN
mov eax, 0x101d2a4f
cmovne esi, eax
mov eax, 2
push eax
call edi
add esp, 4
mov dword [ebp - 0x48], ebx
push ebx
push 0x101d66d4
push esi
mov ecx, str.NSS_POLICY__s:_NUMBER_OF__s:__u_n
push ecx
push eax
call fcn.101a0be0
add esp, 0x14
mov edi, dword [ebp - 0x1c]
test edi, edi
mov esi, str.WARN
mov eax, 0x101d2a4f
cmovne esi, eax
mov eax, 2
push eax
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call ebx
add esp, 4
mov dword [ebp - 0x44], edi
push edi
push 0x101d264b
push esi
mov ecx, str.NSS_POLICY__s:_NUMBER_OF__s:__u_n
push ecx
push eax
call fcn.101a0be0
add esp, 0x14
mov esi, dword [ebp - 0x18]
test esi, esi
mov edi, str.WARN
mov eax, 0x101d2a4f
cmovne edi, eax
mov eax, 2
push eax
call ebx
add esp, 4
push esi
push str.OTHER_KX
push edi
mov ecx, str.NSS_POLICY__s:_NUMBER_OF__s:__u_n
push ecx
push eax
call fcn.101a0be0
add esp, 0x14
mov edi, dword [ebp - 0x14]
test edi, edi
mov ebx, str.WARN
mov eax, 0x101d2a4f
cmovne ebx, eax
mov eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push edi
push str.OTHER_SIGN
push ebx
mov ecx, str.NSS_POLICY__s:_NUMBER_OF__s:__u_n
push ecx
push eax
call fcn.101a0be0
add esp, 0x14
test edi, edi
je 0x100c032f
test esi, esi
je 0x100c032f
cmp dword [ebp - 0x44], 0
je 0x100c032f
cmp dword [ebp - 0x48], 0
je 0x100c032f
cmp dword [ebp - 0x34], 0
je 0x100c032f
cmp dword [ebp - 0x30], 0
je 0x100c032f
cmp dword [ebp - 0x38], 0
je 0x100c032f
cmp dword [ebp - 0x40], 0
je 0x100c032f
cmp dword [ebp - 0x3c], 0
jne 0x100c0365
push str.NSS_POLICY_WARN1
call sym.nss3.dll_PR_SetEnv
add esp, 4
jmp 0x100c0365
push str.NSS_POLICY_FAIL1
call sym.nss3.dll_PR_SetEnv
add esp, 4
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push esi
push str.NSS_POLICY_FAIL:_internal_failure_with_NSS_GetAlgorithmPolicy_at__u_n
push eax
call fcn.101a0be0
add esp, 0xc
push 0x200
call sym.nss3.dll_PORT_NewArena_Util
add esp, 4
xor ebx, ebx
test eax, eax
je 0x100c0634
mov edi, eax
push pe_nt_image_headers32
push eax
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
test eax, eax
je 0x100c055e
mov esi, eax
mov dword [eax], edi
xorps xmm0, xmm0
movups xmmword [eax + 4], xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax + 0x28], xmm0
mov dword [eax + 0x24], 1
movups xmmword [eax + 0x40], xmm0
movups xmmword [eax + 0x50], xmm0
movups xmmword [eax + 0x5c], xmm0
mov dword [ebp - 0x34], eax
call sym.nss3.dll_PR_NewLock
mov dword [esi + 0x20], eax
test eax, eax
je 0x100c055e
mov eax, dword [ebp + 0xc]
test eax, eax
mov ebx, 0x101e0242
cmovne ebx, eax
mov dword [ebp - 0x30], esi
mov esi, dword [esi]
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
inc edi
push edi
push esi
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
test eax, eax
je 0x100c0405
push edi
push ebx
push eax
mov esi, eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, esi
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x30]
mov dword [esi + 0x14], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100c0449
mov ebx, dword [esi]
push ecx
mov esi, ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
inc edi
push edi
push ebx
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
mov ebx, eax
test eax, eax
je 0x100c0440
push edi
push esi
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov esi, dword [ebp - 0x30]
mov dword [esi + 0x10], ebx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x100c047e
mov ebx, dword [esi]
push edx
mov esi, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
inc edi
push edi
push ebx
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
mov ebx, eax
test eax, eax
je 0x100c0478
push edi
push esi
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov esi, dword [ebp - 0x30]
mov dword [esi + 0x48], ebx
mov ebx, 0x101c9f9d
mov edi, dword [ebp + 0x14]
push edi
push str.internal
push ebx
call sym.nss3.dll_NSSUTIL_ArgHasFlag
add esp, 0xc
mov dword [esi + 4], eax
push edi
push str.FIPS
push ebx
call sym.nss3.dll_NSSUTIL_ArgHasFlag
add esp, 0xc
mov dword [esi + 0xc], eax
push edi
push str.critical
push ebx
call sym.nss3.dll_NSSUTIL_ArgHasFlag
add esp, 0xc
mov dword [esi + 0x54], eax
push edi
push str.slotParams
call sym.nss3.dll_NSSUTIL_ArgGetParamValue
add esp, 8
mov edi, eax
mov ebx, dword [ebp - 0x34]
lea eax, [ebx + 0x34]
push eax
push edi
push dword [esi]
call sym.nss3.dll_NSSUTIL_ArgParseSlotInfo
add esp, 0xc
mov dword [esi + 0x30], eax
test edi, edi
je 0x100c04ef
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
lea eax, [ebx + 4]
mov dword [ebp - 0x38], eax
xor edi, edi
push edi
push 0x32
mov ebx, dword [ebp + 0x14]
push ebx
push str.trustOrder
call sym.nss3.dll_NSSUTIL_ArgReadLong
add esp, 0x10
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x60], eax
push edi
push edi
mov edi, ebx
mov ebx, ecx
push edi
push str.cipherOrder
call sym.nss3.dll_NSSUTIL_ArgReadLong
add esp, 0x10
mov dword [ebx + 0x64], eax
push edi
push str.moduleDB
mov esi, 0x101c9f9d
push esi
call sym.nss3.dll_NSSUTIL_ArgHasFlag
add esp, 0xc
mov dword [ebx + 0x58], eax
push edi
push str.moduleDBOnly
push esi
call sym.nss3.dll_NSSUTIL_ArgHasFlag
add esp, 0xc
mov dword [ebx + 0x5c], eax
test eax, eax
je 0x100c056e
mov dword [ebx + 0x58], 1
jmp 0x100c0574
push 0
push edi
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
jmp 0x100c0634
cmp dword [ebx + 0x58], 0
je 0x100c05d5
mov edi, 0x101c9f9d
push dword [ebp + 0x14]
push str.skipFirst
push edi
call sym.nss3.dll_NSSUTIL_ArgHasFlag
add esp, 0xc
test eax, eax
setne bh
add bh, bh
push dword [ebp + 0x14]
push str.defaultModDB
push edi
call sym.nss3.dll_NSSUTIL_ArgHasFlag
add esp, 0xc
test eax, eax
setne bl
shl bl, 2
or bl, bh
push dword [ebp + 0x14]
push str.policyOnly
push edi
mov edi, dword [ebp + 0x14]
call sym.nss3.dll_NSSUTIL_ArgHasFlag
add esp, 0xc
test eax, eax
setne al
shl al, 3
or al, bl
mov ebx, dword [ebp - 0x30]
or al, 1
movzx eax, al
mov dword [ebx + 0x58], eax
mov esi, dword [ebp - 0x34]
add esi, 0x40
mov eax, dword [ebp - 0x38]
cmp dword [eax], 0
je 0x100c0606
push edi
push 0x101c8e98
push 0x101c9f9d
call sym.nss3.dll_NSSUTIL_ArgHasFlag
add esp, 0xc
xor ecx, ecx
test eax, eax
setne cl
lea eax, [ecx + ecx]
inc eax
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
push edi
push str.ciphers
call sym.nss3.dll_NSSUTIL_ArgGetParamValue
add esp, 8
mov edi, eax
push eax
push esi
call sym.nss3.dll_NSSUTIL_ArgParseCipherFlags
add esp, 8
test edi, edi
je 0x100c062e
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
inc dword [0x101f33c4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, ebx
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret