Function at 0x10012390
Capabilities:
Delete file
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x1005400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
call fcn.10011a50
mov ecx, eax
test ecx, ecx
je 0x1001297f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
mov eax, 0xc
mov dword [ebp - 0x30], eax
xor ecx, ecx
mov dword [ebp - 0x2c], 0x400003
mov dword [ebp - 0x28], 0x130010
mov dword [ebp - 0x24], 0x400017
mov dword [ebp - 0x20], 0x150016
mov dword [ebp - 0x1c], 0x120014
mov dword [ebp - 0x18], 0x1b004b
mov dword [ebp - 0x14], 0x3a
nop
lea eax, [ecx + 0x2e]
xor word [ebp + ecx*2 - 0x2c], ax
inc ecx
mov eax, dword [ebp - 0x30]
cmp ecx, eax
jb 0x10012420
xor ecx, ecx
mov word [ebp + eax*2 - 0x2c], cx
lea eax, [ebp - 0x2c]
push dword [ebp + 8]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.1000dfc0
mov edi, dword [ebp - 0x34]
add esp, 0xc
add edi, 0xfffffff0
mov esi, esp
mov ecx, edi
mov dword [ebp - 0x130], esi
call fcn.1000dbd0
add eax, 0x10
mov dword [esi], eax
call fcn.10012020
push 0
push dword [ebp + 0xc]
call fcn.10027378
add esp, 0xc
test eax, eax
jne 0x100128f6
push 3
push dword [ebp + 0xc]
lea eax, [ebp - 0x1b0]
lea ecx, [ebp - 0x1b4]
mov dword [ebp - 0x1b4], eax
call fcn.10013a10
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x1b4]
call fcn.10028827
mov eax, dword [ebp - 0x1b4]
lea ecx, [ebp - 0x1b0]
add esp, 8
cmp eax, ecx
je 0x100124cb
push eax
call fcn.10025443
add esp, 4
mov edx, dword [ebp + 0xc]
cmp dword [edx - 4], 1
jle 0x100124e2
push dword [edx - 0xc]
lea ecx, [ebp + 0xc]
call fcn.1000df10
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x128], 0x1c1d0203
mov eax, 4
mov byte [ebp - 0x124], 0x32
mov dword [ebp - 0x12c], eax
mov word [ebp - 0x123], cx
mov byte [ebp - 0x121], cl
nop dword [eax]
lea eax, [ecx + 0x2e]
xor byte [ebp + ecx - 0x128], al
inc ecx
mov eax, dword [ebp - 0x12c]
cmp ecx, eax
jb 0x10012510
mov byte [ebp + eax - 0x128], 0
xor ecx, ecx
mov eax, 0xa
mov dword [ebp - 0x1c], 0xcf8cebe0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0x94e4c086
mov dword [ebp - 0x14], 0x388d95
nop dword [eax]
lea eax, [ecx + 0x2e]
xor byte [ebp + ecx - 0x1c], al
inc ecx
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jb 0x10012550
push edx
mov byte [ebp + eax - 0x1c], 0
lea edx, [ebp - 0x1c]
push dword [ebp - 0x108]
mov ecx, 0x10055808
call fcn.100146b0
mov ecx, eax
call fcn.10012b30
lea edx, [ebp - 0x128]
mov ecx, eax
call fcn.100146b0
mov ecx, eax
call fcn.10012990
push eax
call fcn.10014950
mov eax, dword [ebp - 0x108]
add esp, 4
add eax, 0xffffff69
cmp eax, 0xc6
ja 0x100128ed
mov dword [ebp - 0x12c], 3
xor ecx, ecx
mov dword [ebp - 0x128], 0x57005a
mov dword [ebp - 0x124], 0x310044
lea eax, [ecx + 0x2e]
xor word [ebp + ecx*2 - 0x128], ax
inc ecx
mov eax, dword [ebp - 0x12c]
cmp ecx, eax
jb 0x100125d2
xor ecx, ecx
mov word [ebp + eax*2 - 0x128], cx
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], ecx
jl 0x1001261b
lea eax, [ebp - 0x128]
push eax
push esi
call fcn.10018d94
mov esi, dword [ebp + 0xc]
add esp, 8
test eax, eax
je 0x1001261b
sub eax, esi
sar eax, 1
je 0x100128ed
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0xb8
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.100191f0
push esi
lea ecx, [ebp - 0xec]
call fcn.1000ae00
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xec]
call fcn.1000e340
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x100126f1
nop word [eax + eax]
mov ecx, 5
mov dword [ebp - 0x128], 0x5e425d6b
mov dword [ebp - 0x12c], ecx
xor eax, eax
mov dword [ebp - 0x124], 0x3340
lea ecx, [eax + 0x2e]
xor byte [ebp + eax - 0x128], cl
inc eax
mov ecx, dword [ebp - 0x12c]
cmp eax, ecx
jb 0x100126a1
push ecx
lea eax, [ebp - 0x128]
mov byte [ebp + ecx - 0x128], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.10012cd0
cmp eax, 0xffffffff
jne 0x100127d4
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xec]
call fcn.1000e340
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x10012680
lea ecx, [ebp - 0xdc]
call fcn.1000c4f0
test eax, eax
jne 0x10012729
mov eax, dword [ebp - 0xec]
lea ecx, [ebp - 0xec]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.100113d0
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xec], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xf0], eax
lea ecx, [ebp - 0xdc]
call fcn.1000aa90
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xec], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0xf0], eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 6
push eax
mov dword [ebp - 0x7c], vtable.std::ios_base.0
call fcn.10017794
mov byte [ebp - 4], 2
add esp, 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x100128db
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100128d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012989
jmp 0x100128d1
lea ecx, [ebp - 0xdc]
call fcn.1000c4f0
test eax, eax
jne 0x1001280c
mov eax, dword [ebp - 0xec]
lea ecx, [ebp - 0xec]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.100113d0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xec], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xf0], eax
lea ecx, [ebp - 0xdc]
call fcn.1000aa90
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xec], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0xf0], eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - 0x7c], vtable.std::ios_base.0
call fcn.10017794
mov byte [ebp - 4], 2
add esp, 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x100128bd
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100128b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012989
push ecx
push edx
call fcn.100159fe
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
jmp 0x100128ff
push ecx
push edx
call fcn.100159fe
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x11d], 1
jmp 0x10012906
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x11d], 0
or esi, 0xffffffff
mov byte [ebp - 4], 1
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10012921
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001293f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1001295e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x11d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100154d9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10011820
call fcn.10027683
int3