Function at 0x100f7860
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x245c
call fcn.10451050
mov eax, dword [0x11ad127c]
xor eax, esp
mov dword [esp + 0x2458], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x45c]
push edi
push 0x800
mov ebx, ecx
mov dword [esp + 0x24], esi
push 0
push eax
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x1a], 0
call fcn.10425c00
add esp, 0xc
lea eax, [ebx + 0x156c]
mov dword [esp + 0x44], eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1046c200
push esi
call fcn.1043ab70
add esp, 8
test eax, eax
sete byte [esp + 0xf]
test esi, esi
je 0x100f7fc9
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100f78e0
sub ecx, edx
je 0x100f7fc9
cmp dword [ebx + 0xd60], 0
je 0x100f793c
lea edi, [ebx + 0xd65]
mov ecx, esi
mov dword [esp + 0x2c], edi
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100f7926
test dl, dl
je 0x100f7922
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100f7926
add eax, 2
add ecx, 2
test dl, dl
jne 0x100f7906
xor eax, eax
jmp 0x100f792b
sbb eax, eax
or eax, 1
test eax, eax
je 0x100f7fc4
mov ecx, ebx
call fcn.100f83a0
jmp 0x100f7946
lea eax, [ebx + 0xd65]
mov dword [esp + 0x2c], eax
cmp dword [ebx + 0xd54], 0
jne 0x100f7998
push 0x10
push 0x98
call fcn.10434a32
add esp, 8
test eax, eax
je 0x100f79bc
mov ecx, eax
call fcn.10018610
mov esi, eax
mov dword [ebx + 0xd54], esi
test esi, esi
je 0x100f79c6
push 0
mov ecx, esi
call fcn.1001a400
test eax, eax
je 0x100f7994
cmp eax, 1
je 0x100f79c6
push 1
mov ecx, esi
call fcn.1001a400
test eax, eax
jne 0x100f79c6
mov esi, dword [esp + 0x20]
cmp byte [esp + 0xf], 0
mov byte [ebx + 0xd5c], 0
mov dword [esp + 0x34], 0
je 0x100f79f4
mov eax, dword [ebx + 0xd54]
mov edi, dword [eax + 0x34]
jmp 0x100f7f89
mov dword [ebx + 0xd54], 0
mov esi, dword [ebx + 0xd54]
test esi, esi
je 0x100f79e5
mov ecx, esi
call fcn.10018760
push 0x98
push esi
call fcn.1045088a
add esp, 8
mov dword [ebx + 0xd54], 0
jmp 0x100f7fc9
push 0xffffffffffffffff
push esi
push 0x400
lea eax, [esp + 0x46c]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.1043b2ed
xor eax, eax
lea ecx, [esp + 0x474]
add esp, 0x14
cmp word [esp + 0x460], ax
je 0x100f7a35
cmp eax, 0xfff
jae 0x100f7a35
add ecx, 2
inc eax
cmp word [ecx], 0
jne 0x100f7a24
lea edi, [eax + 1]
xor ecx, ecx
mov eax, edi
mov dword [esp + 0x5c], edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10450898
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x58], esi
test esi, esi
jne 0x100f7a6d
xor edi, edi
mov dword [esp + 0x5c], edi
jmp 0x100f7a8d
lea eax, [edi*2 - 2]
push eax
lea eax, [esp + 0x464]
push eax
push esi
call fcn.10425d60
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 - 2], ax
mov ecx, esi
xor edx, edx
test ecx, ecx
je 0x100f7ac4
cmp word [esi], dx
je 0x100f7ac4
nop word [eax + eax]
cmp edx, edi
jae 0x100f7ac0
movzx esi, word [ecx]
lea eax, [esi - 0x41]
cmp ax, 0x19
ja 0x100f7ab6
lea eax, [esi + 0x20]
mov word [ecx], ax
add ecx, 2
inc edx
cmp word [ecx], 0
jne 0x100f7aa0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x34]
push eax
push edi
mov ecx, ebx
call fcn.100f7ff0
test al, al
jne 0x100f7f74
cmp byte [ebp + 0xc], al
je 0x100f7f65
push 0x800
lea eax, [esp + 0xc64]
push 0
push eax
call fcn.10425c00
add esp, 0xc
lea eax, [esp + 0x1460]
push 0x800
push 0
push eax
call fcn.10425c00
add esp, 0xc
lea eax, [esp + 0x1c60]
push 0x800
push 0
push eax
call fcn.10425c00
lea edx, [esp + 0x6c]
add esp, 0xc
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x100f7b33
lea eax, [esp + 0x60]
push 0x2e
push eax
call fcn.10425990
add esp, 8
test eax, eax
je 0x100f7b56
mov byte [eax], 0
push 0xffffffffffffffff
lea eax, [esp + 0x64]
push eax
push 0x400
lea eax, [esp + 0xc6c]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.1043b2ed
xor eax, eax
lea ecx, [esp + 0xc74]
add esp, 0x14
cmp word [esp + 0xc60], ax
je 0x100f7ba1
nop word [eax + eax]
cmp eax, 0xfff
jae 0x100f7ba1
add ecx, 2
inc eax
cmp word [ecx], 0
jne 0x100f7b90
lea ebx, [eax + 1]
xor ecx, ecx
mov eax, ebx
mov dword [esp + 0x3c], ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10450898
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], edi
test edi, edi
jne 0x100f7bd9
xor ebx, ebx
mov dword [esp + 0x3c], ebx
jmp 0x100f7bf9
lea eax, [ebx*2 - 2]
push eax
lea eax, [esp + 0xc64]
push eax
push edi
call fcn.10425d60
add esp, 0xc
xor eax, eax
mov word [edi + ebx*2 - 2], ax
push 2
mov dword [esp + 0x58], 1
call fcn.10450898
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], eax
test eax, eax
jne 0x100f7c1d
mov dword [esp + 0x54], eax
jmp 0x100f7c22
xor ecx, ecx
mov word [eax], cx
push 2
mov dword [esp + 0x50], 1
call fcn.10450898
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
mov dword [esp + 0x48], esi
test esi, esi
jne 0x100f7c48
mov dword [esp + 0x4c], eax
jmp 0x100f7c4d
xor eax, eax
mov word [esi], ax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0xd54]
mov dword [esp + 0x10], ecx
test ebx, ebx
je 0x100f7f27
cmp word [edi], 0
je 0x100f7f27
xor eax, eax
test ebx, ebx
je 0x100f7c83
cmp word [edi + eax*2], 0x2c
je 0x100f7f27
inc eax
cmp eax, ebx
jb 0x100f7c73
lea eax, [ecx + 0x2c]
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
call fcn.10015760
test eax, eax
jne 0x100f7f27
xor edx, edx
mov esi, 0x32f54a96
test ebx, ebx
je 0x100f7cc1
movzx eax, word [edi + edx*2]
inc edx
imul ecx, eax, 0xc5
imul eax, esi, 0x34c3
shr esi, 2
add ecx, eax
xor esi, ecx
cmp edx, ebx
jb 0x100f7ca5
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], esi
mov edx, dword [eax]
mov eax, edx
test eax, eax
je 0x100f7d03
cmp esi, dword [eax + 4]
je 0x100f7ce6
jae 0x100f7cdd
mov eax, dword [eax + 0x10]
jmp 0x100f7ce0
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x100f7cd1
jmp 0x100f7d03
inc esi
mov eax, edx
mov dword [esp + 0x14], esi
nop dword [eax]
cmp esi, dword [eax + 4]
je 0x100f7ce6
jae 0x100f7cfc
mov eax, dword [eax + 0x10]
jmp 0x100f7cff
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x100f7cf0
push 0x10
push 0x48
call fcn.10434a32
mov edi, eax
add esp, 8
test edi, edi
je 0x100f7f1f
lea eax, [edi + 0x14]
mov dword [edi], 0
or eax, 1
mov dword [edi + 4], 0
lea edx, [edi + 0x10]
mov dword [edi + 0xc], 0
mov dword [edx], eax
lea ecx, [esp + 0x38]
lea eax, [edi + 0x2c]
mov dword [edi + 0x18], 0xffffffff
or edx, 2
mov dword [edi + 0x1c], 5
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0x3f400000
mov dword [edi + 0x28], 0x3e000000
mov dword [edi + 0x14], edx
mov dword [eax], 0
mov dword [eax + 4], 0
cmp eax, ecx
je 0x100f7db1
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10450898
mov ecx, eax
add esp, 4
mov dword [edi + 0x2c], ecx
test ecx, ecx
je 0x100f7db1
lea eax, [ebx + ebx]
mov dword [edi + 0x30], ebx
push eax
push dword [esp + 0x1c]
push ecx
call fcn.10425d60
add esp, 0xc
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x18]
mov dword [edi + 0x40], 0x10000
push eax
lea ecx, [ebx + 0x2c]
mov word [edi + 0x45], 1
mov dword [edi + 0x38], esi
mov dword [edi + 0x34], ebx
mov byte [edi + 0x44], 0
mov dword [edi + 0x3c], 0
call fcn.10015890
mov esi, dword [ebx]
xor ebx, ebx
push 0x10
push 0x18
call fcn.10434a32
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x100f7e65
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
mov edx, dword [esp + 0x14]
mov dword [ecx], edi
mov dword [ecx + 4], edx
test esi, esi
je 0x100f7e29
cmp edx, dword [esi + 4]
je 0x100f7e42
mov ebx, esi
jae 0x100f7e22
mov esi, dword [esi + 0x10]
jmp 0x100f7e25
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x100f7e14
mov eax, dword [esp + 0x10]
mov dword [ecx + 0xc], ebx
mov byte [ecx + 8], 1
test ebx, ebx
je 0x100f7e54
cmp edx, dword [ebx + 4]
jae 0x100f7e4f
mov dword [ebx + 0x10], ecx
jmp 0x100f7e56
push 0x18
push ecx
call fcn.1045088a
add esp, 8
jmp 0x100f7e65
mov dword [ebx + 0x14], ecx
jmp 0x100f7e56
mov dword [eax], ecx
push ecx
mov ecx, eax
call fcn.10017210
mov eax, dword [esp + 0x10]
inc dword [eax + 4]
push 0
push 0
push 0
push 0
push 1
push 0
lea eax, [esp + 0x60]
mov byte [edi + 0x40], 1
push eax
lea eax, [esp + 0x6c]
mov ecx, edi
push eax
lea eax, [esp + 0x78]
push eax
call fcn.10012770
test eax, eax
mov eax, dword [esp + 0x24]
je 0x100f7edc
test eax, eax
je 0x100f7ea0
push eax
call fcn.10450877
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100f7eb1
push eax
call fcn.10450877
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100f7ec2
push eax
call fcn.10450877
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100f7fc9
push eax
call fcn.10450877
add esp, 4
jmp 0x100f7fc9
mov ebx, dword [esp + 0x30]
mov byte [ebx + 0xd5c], 1
mov byte [ebx + 0xd64], 1
test eax, eax
je 0x100f7efb
push eax
call fcn.10450877
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100f7f0c
push eax
call fcn.10450877
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100f7f78
push eax
call fcn.10450877
add esp, 4
jmp 0x100f7f78
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
test esi, esi
je 0x100f7f34
push esi
call fcn.10450877
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100f7f45
push eax
call fcn.10450877
add esp, 4
test edi, edi
je 0x100f7f52
push edi
call fcn.10450877
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100f7fc9
push eax
call fcn.10450877
add esp, 4
jmp 0x100f7fc9
test esi, esi
je 0x100f7fc9
push esi
call fcn.10450877
add esp, 4
jmp 0x100f7fc9
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100f7f89
push eax
call fcn.10450877
add esp, 4
cmp byte [ebx + 0xd5c], 1
mov dword [ebx + 0xd60], edi
jne 0x100f7fac
push 1
push 0x701eb457
mov ecx, ebx
call fcn.100f8980
mov eax, dword [esp + 0x2c]
jmp 0x100f7fb2
lea eax, [ebx + 0xd65]
push dword [esp + 0x20]
push 0x400
push eax
call fcn.1043c4a1
add esp, 0xc
mov byte [esp + 0xe], 1
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x2464]
mov al, byte [esp + 0xe]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 0x18