Function at 0x402be0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43a238
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x44a5d0]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a5d0]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xb4]
xor ebp, ebp
cmp eax, ebp
mov edi, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], ebp
jne 0x402c3d
push 0x441128
mov ecx, edi
call fcn.00405800
mov eax, edi
jmp 0x403231
mov ecx, eax
mov edx, dword [ecx + 0xc]
cmp edx, dword [ecx]
jl 0x402c2a
mov eax, dword [eax]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
add eax, 2
push eax
mov eax, dword [esi + 0x188]
push ebp
push 0x406
push eax
call ebx
mov ecx, dword [esi + 0x188]
push ebp
push ebp
push 0x402
push ecx
call ebx
mov edx, dword [esi + 0x188]
push ebp
push 1
push 0x404
push edx
call ebx
push 0x18
call fcn.00405cc4
mov edi, eax
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
add esp, 4
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
push edi
mov dword [edi + 0x10], eax
push 0x18
mov dword [edi + 0x14], eax
call dword [sym.imp.GDCA_API.dll_GDCA_GenRandom]
cmp eax, ebp
je 0x402cda
push edi
call fcn.00405cc9
add esp, 4
push ebp
push ebp
push 0x440e3c
mov ecx, esi
call fcn.0040b55e
mov esi, dword [esp + 0x1c]
push 0x441128
mov ecx, esi
call fcn.00405800
jmp 0x40322f
mov eax, dword [esi + 0xb4]
mov eax, dword [eax + 0x510]
cmp eax, ebp
je 0x402cff
push eax
call fcn.00405cc9
mov ecx, dword [esi + 0xb4]
add esp, 4
mov dword [ecx + 0x510], ebp
mov edx, dword [esi + 0xb4]
mov dword [edx + 0x510], edi
mov eax, dword [esi + 0xb4]
push ebp
push ebp
mov dword [eax + 0x514], 0x18
mov ecx, dword [esi + 0x188]
push 0x405
push ecx
call ebx
mov edx, dword [esi + 0xb4]
mov dword [esp + 0x20], ebp
cmp dword [edx], ebp
mov dword [esp + 0x14], ebp
jle 0x402e6e
mov ebx, 0x390
mov ebp, 0x10
jmp 0x402d50
push 0x1060
call fcn.00405cc4
push 0x1060
mov edi, eax
push 0
push edi
call fcn.004249b0
mov ecx, dword [esi + 0xb4]
mov eax, dword [ecx + ebp + 0x280]
mov edx, dword [eax]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x48], edx
mov eax, dword [eax + 0x14]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 0x510]
mov ecx, dword [eax]
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x5c], edx
mov ecx, dword [eax + 0x10]
add esp, 0x10
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 0x14]
mov eax, dword [esi + 0xb4]
lea ecx, [esp + 0x20]
push ecx
push edi
mov dword [esp + 0x5c], edx
mov ecx, dword [eax + ebp + 4]
push 0x30
lea edx, [esp + 0x34]
push edx
mov edx, dword [eax + ebp]
push 0x65
push ecx
push edx
call dword [sym.imp.GDCA_API.dll_GDCA_SealPkcs7Envelope]
test eax, eax
jne 0x402f40
mov eax, dword [esi + 0xb4]
mov eax, dword [ebx + eax]
test eax, eax
je 0x402e20
push eax
call fcn.00405cc9
mov ecx, dword [esi + 0xb4]
add esp, 4
mov dword [ebx + ecx], 0
mov edx, dword [esi + 0xb4]
mov dword [ebx + edx], edi
mov eax, dword [esi + 0xb4]
mov ecx, dword [esp + 0x20]
push 0
push 0
mov dword [ebx + eax + 4], ecx
mov edx, dword [esi + 0x188]
push 0x405
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xb4]
add eax, 1
add ebp, 8
add ebx, 0xc
cmp eax, dword [ecx]
mov dword [esp + 0x14], eax
jl 0x402d50
xor ebp, ebp
push 0x440e68
lea ecx, [esi + 0xbc]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00405000
mov dword [esp + 0x70], ebp
mov eax, dword [esp + 0x24]
push 0x440e74
push eax
call fcn.00422837
add esp, 0x14
cmp eax, ebp
mov dword [esp + 0x24], eax
jne 0x402fb9
mov ecx, dword [esi + 0xb4]
mov eax, dword [ecx + 0x510]
push eax
call fcn.00405cc9
mov edx, dword [esi + 0xb4]
mov dword [edx + 0x510], ebp
mov eax, dword [esi + 0xb4]
add esp, 4
xor ebx, ebx
cmp dword [eax], ebp
jle 0x402f01
mov edi, 0x390
mov eax, dword [eax + edi]
cmp eax, ebp
je 0x402ef1
push eax
call fcn.00405cc9
mov eax, dword [esi + 0xb4]
add esp, 4
mov dword [edi + eax], ebp
mov eax, dword [esi + 0xb4]
add ebx, 1
add edi, 0xc
cmp ebx, dword [eax]
jl 0x402ed8
push ebp
push ebp
push 0x440e78
mov ecx, esi
call fcn.0040b55e
mov esi, dword [esp + 0x1c]
push 0x441128
mov ecx, esi
call fcn.00405800
mov dword [esp + 0x64], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x403223
mov edx, dword [esi + 0xb4]
mov eax, dword [edx + 0x510]
push eax
call fcn.00405cc9
mov ecx, dword [esi + 0xb4]
push edi
mov dword [ecx + 0x510], 0
call fcn.00405cc9
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
jle 0x402fab
mov edi, 0x390
mov ebx, eax
lea ebx, [ebx]
mov edx, dword [esi + 0xb4]
mov eax, dword [edi + edx]
test eax, eax
je 0x402fa3
push eax
call fcn.00405cc9
mov eax, dword [esi + 0xb4]
add esp, 4
mov dword [edi + eax], 0
add edi, 0xc
sub ebx, 1
jne 0x402f80
push 0
push 0
push 0x440e54
jmp 0x402cbe
mov eax, dword [esi + 0xb4]
mov ecx, dword [eax]
xor edi, edi
cmp ecx, ebp
jle 0x402fde
add eax, 0x394
lea esp, [esp]
mov edx, dword [eax]
add eax, 0xc
sub ecx, 1
lea edi, [edi + edx + 0x45]
jne 0x402fd0
lea ebx, [edi + 0x20]
push ebx
call fcn.00405cc4
push ebx
xor ebx, ebx
mov ebp, eax
push ebx
push ebp
call fcn.004249b0
mov eax, dword [esi + 0xb4]
mov ecx, dword [eax]
mov dword [ebp], ecx
mov edx, dword [esi + 0xb4]
mov eax, dword [edx + 4]
mov dword [ebp + 4], eax
mov ecx, dword [esi + 0xb4]
mov edx, dword [ecx + 8]
mov dword [ebp + 8], edx
mov byte [ebp + 0xc], 1
mov dword [ebp + 0xd], edi
mov eax, dword [esi + 0xb4]
add esp, 0x10
cmp dword [eax], ebx
lea edi, [ebx + 0x11]
mov dword [esp + 0x14], ebx
jle 0x4030ce
jmp 0x403040
mov eax, dword [eax + ebx + 0x394]
add eax, 0x41
mov dword [edi + ebp], eax
mov eax, dword [esi + 0xb4]
add edi, 4
cmp dword [ebx + eax + 0x118], 0
setne cl
mov byte [edi + ebp], cl
mov eax, dword [esi + 0xb4]
mov edx, dword [eax + ebx + 0x114]
mov eax, dword [eax + ebx + 0x110]
push edx
add edi, 1
push eax
lea ecx, [edi + ebp]
push ecx
call fcn.0042daa0
mov eax, dword [esi + 0xb4]
mov edx, dword [eax + ebx + 0x394]
mov eax, dword [eax + ebx + 0x390]
push edx
add edi, 0x40
push eax
lea ecx, [edi + ebp]
push ecx
call fcn.0042daa0
mov eax, dword [esi + 0xb4]
mov ecx, dword [esp + 0x2c]
add edi, dword [eax + ebx + 0x394]
add ecx, 1
add esp, 0x18
add ebx, 0xc
cmp ecx, dword [eax]
mov dword [esp + 0x14], ecx
jl 0x403040
mov ebx, dword [esp + 0x24]
push ebx
push edi
push 1
push ebp
call fcn.004234f0
add esp, 0x10
cmp edi, eax
je 0x403177
push ebx
call fcn.00422db0
push ebp
call fcn.00405cc9
mov edx, dword [esi + 0xb4]
mov eax, dword [edx + 0x510]
push eax
call fcn.00405cc9
mov eax, dword [esi + 0xb4]
xor ebx, ebx
mov dword [eax + 0x510], ebx
mov eax, dword [esi + 0xb4]
add esp, 0xc
cmp dword [eax], ebx
jle 0x403152
mov edi, 0x390
mov eax, dword [eax + edi]
test eax, eax
je 0x403142
push eax
call fcn.00405cc9
mov ecx, dword [esi + 0xb4]
add esp, 4
mov dword [edi + ecx], 0
mov eax, dword [esi + 0xb4]
add ebx, 1
add edi, 0xc
cmp ebx, dword [eax]
jl 0x403125
push 0
push 0
push 0x440e8c
mov ecx, esi
call fcn.0040b55e
mov esi, dword [esp + 0x1c]
push 0x441128
mov ecx, esi
call fcn.00405800
jmp 0x403207
push ebp
call fcn.00405cc9
push ebx
call fcn.00422db0
mov ecx, dword [esi + 0x188]
add esp, 8
push 0
push 0
push 0x405
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x18]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x4031c7
cmp eax, dword [esi]
jne 0x4031c7
mov edi, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x4031fe
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x4031e0
jmp fcn.00405290
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004238df
add esp, 0x10
mov esi, dword [esp + 0x1c]
add edi, 0x10
mov dword [esi], edi
mov dword [esp + 0x64], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40322f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00421f10
add esp, 0x54
ret