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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x54], edx
mov ebp, ecx
xorps xmm0, xmm0
mov dword [esp + 0x14], ebp
lea eax, [esp + 0x2c]
movlpd qword [esp + 0x58], xmm0
push 0
push eax
mov edx, 0x1b
movlpd qword [esp + 0x68], xmm0
mov dword [esp + 0x34], 0
call fcn.100ebda0
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
mov esi, edi
mov dword [esp + 0x38], edi
test edi, edi
jne 0x100f9ccc
mov eax, dword [ebp + 0x120]
mov esi, dword [esp + 0x2c]
cdq
push edx
push eax
push 1
push esi
call fcn.10056380
mov eax, dword [ebp + 0x104]
cdq
push edx
push eax
push 2
push esi
call fcn.10056380
mov eax, dword [esp + 0x7c]
add esp, 0x20
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
nop
xor ebx, ebx
test esi, esi
je 0x100f9bd8
cmp dword [esi], ebx
jne 0x100f99b2
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.100296a0
add esp, 8
lea eax, [ebx + 1]
jmp 0x100f99b4
xor eax, eax
test eax, eax
jne 0x100f9be7
mov eax, dword [esi]
mov dword [esp + 0x24], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100f99d3
push eax
call dword [0x10177b98]
add esp, 4
mov ecx, esi
call fcn.10054980
mov edi, eax
cmp edi, 0x11
jne 0x100f9a23
mov eax, ebx
inc ebx
cmp eax, 0x32
jge 0x100f9a1f
mov edi, dword [esi + 0x20]
mov ecx, esi
call fcn.1009d980
mov ebp, eax
test ebp, ebp
jne 0x100f9aa3
push esi
call fcn.10053c90
add esp, 4
test edi, edi
js 0x100f9a11
mov byte [esi + 0x95], 0xfe
mov ecx, esi
call fcn.10054980
mov edi, eax
cmp edi, 0x11
je 0x100f99e1
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x100f9a38
push eax
call dword [0x10177ba0]
add esp, 4
cmp edi, 0x64
jne 0x100f9c07
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100f9a54
push eax
call dword [0x10177b98]
add esp, 4
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x100f9a66
xor eax, eax
cmp ax, word [esi + 0x90]
jb 0x100f9a7e
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.1002a360
mov ecx, 0x10161a88
call fcn.1004d340
mov ecx, dword [esi]
mov ebx, eax
mov edx, dword [esi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x100f9b6e
test edx, edx
jne 0x100f9b6e
xor eax, eax
jmp 0x100f9b73
mov ebx, dword [esp + 0x24]
mov ecx, dword [ebx + 0x124]
test ecx, ecx
jne 0x100f9ab5
xor edi, edi
jmp 0x100f9ae4
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x100f9ad2
cmp byte [ecx + 0x12], 1
jne 0x100f9ad2
mov edi, dword [ecx + 8]
jmp 0x100f9ae4
test dl, 1
je 0x100f9adb
xor edi, edi
jmp 0x100f9ae4
mov dl, 1
call fcn.1004e000
mov edi, eax
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x100f9af2
mov ecx, ebx
call fcn.10026a90
cmp byte [ebx + 0x57], 0
jne 0x100f9b56
test edi, edi
jne 0x100f9b00
xor eax, eax
jmp 0x100f9b3c
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100f9b05
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, ebx
push eax
mov dword [esp + 0x58], eax
call fcn.10026f30
add esp, 8
mov dword [esp + 0x4c], eax
test eax, eax
je 0x100f9b3c
push dword [esp + 0x50]
push edi
push eax
call fcn.10139d00
mov eax, dword [esp + 0x58]
add esp, 0xc
mov edx, ebp
mov dword [esi + 0x7c], eax
mov ecx, ebx
call fcn.100272e0
mov ebp, dword [esp + 0x14]
mov edi, eax
mov dword [esi + 0x24], edi
jmp 0x100f9a27
mov ebp, dword [esp + 0x14]
mov edi, 7
mov dword [esi + 0x7c], 0
mov dword [esi + 0x24], edi
jmp 0x100f9a27
call fcn.100272e0
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100f9b89
push eax
call dword [0x10177ba0]
add esp, 4
xor edi, edi
cmp dword [ebp + 0x104], edi
jle 0x100f9bca
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x38]
mov edx, ebx
push eax
push edi
mov ecx, ebp
call fcn.100f96c0
xor dword [esp + 0x38], eax
inc edi
add esp, 8
xor esi, edx
cmp edi, dword [ebp + 0x104]
jl 0x100f9b97
mov edi, dword [esp + 0x38]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x10], edi
jmp 0x100f9bce
mov edi, dword [esp + 0x10]
test edi, edi
je 0x100f9990
jmp 0x100f9c0b
push str.API_called_with_NULL_prepared_statement
push 0x15
call fcn.100296a0
add esp, 8
push 0x10166fc4
push 0x160fd
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.100296a0
add esp, 0x14
jmp 0x100f9c0b
mov edi, dword [esp + 0x10]
test esi, esi
je 0x100f9cc0
mov edi, dword [esi]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x100f9c26
push eax
call dword [0x10177b98]
add esp, 4
cmp dword [esi + 0x8c], 0
jl 0x100f9c43
jg 0x100f9c3a
cmp dword [esi + 0x88], 0
jbe 0x100f9c43
mov edx, esi
mov ecx, edi
call fcn.10053af0
mov ecx, esi
call fcn.10051730
mov byte [esi + 0x97], 1
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0
mov word [esi + 0x94], 0xff02
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x1c], 1
mov dword [esi + 0x30], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
cmp byte [edi + 0x57], 0
jne 0x100f9ca0
test eax, eax
jne 0x100f9ca0
xor esi, esi
jmp 0x100f9cab
mov edx, eax
mov ecx, edi
call fcn.100272e0
mov esi, eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x100f9cbc
push eax
call dword [0x10177ba0]
add esp, 4
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x100fa30a
mov edi, esi
jmp 0x100f9cdc
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], eax
test esi, esi
jne 0x100fa30a
mov eax, dword [ebp + 0x24]
xor ebx, ebx
push dword [ebp + 0xe0]
mov dword [esp + 0x1c], ebx
push str.SELECT__s
mov eax, dword [eax]
mov dword [esp + 0x54], eax
call fcn.100294e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x100f9d26
mov eax, dword [esp + 0x60]
mov edi, 7
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
jmp 0x100fa249
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x18]
push 0
push eax
push 0
push 0x80
push 0xffffffffffffffff
mov edx, esi
call fcn.1009d7f0
add esp, 0x14
mov edi, eax
mov dword [esp + 0x10], edi
cmp dword [0x10177b48], ebx
je 0x100f9d97
mov ecx, dword [0x1017ad00]
test ecx, ecx
je 0x100f9d65
push ecx
call dword [0x10177b98]
add esp, 4
push esi
call dword [0x10177b74]
sub dword [0x1017ab88], eax
add esp, 4
dec dword [0x1017abac]
push esi
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x100f9da1
push eax
call dword [0x10177ba0]
jmp 0x100f9d9e
push esi
call dword [0x10177b6c]
add esp, 4
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x100fa249
mov dword [esp + 0x20], ebp
nop dword [eax]
xor edi, edi
test ebx, ebx
je 0x100fa214
cmp dword [ebx], edi
jne 0x100f9de2
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.100296a0
add esp, 8
lea eax, [edi + 1]
jmp 0x100f9de4
xor eax, eax
test eax, eax
jne 0x100fa223
mov ebp, dword [ebx]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100f9dff
push eax
call dword [0x10177b98]
add esp, 4
mov ecx, ebx
call fcn.10054980
mov esi, eax
cmp esi, 0x11
jne 0x100f9f1c
mov ecx, edi
inc edi
cmp ecx, 0x32
jge 0x100f9f1c
mov esi, dword [ebx + 0x20]
mov ecx, ebx
call fcn.1009d980
mov ebx, eax
test ebx, ebx
jne 0x100f9e58
mov ebx, dword [esp + 0x18]
push ebx
call fcn.10053c90
add esp, 4
test esi, esi
js 0x100f9e45
mov byte [ebx + 0x95], 0xfe
mov ecx, ebx
call fcn.10054980
mov esi, eax
cmp esi, 0x11
je 0x100f9e11
jmp 0x100f9f1c
mov ecx, dword [ebp + 0x124]
test ecx, ecx
jne 0x100f9e66
xor esi, esi
jmp 0x100f9e95
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x100f9e83
cmp byte [ecx + 0x12], 1
jne 0x100f9e83
mov esi, dword [ecx + 8]
jmp 0x100f9e95
test dl, 1
je 0x100f9e8c
xor esi, esi
jmp 0x100f9e95
mov dl, 1
call fcn.1004e000
mov esi, eax
mov edx, dword [esp + 0x18]
mov edx, dword [edx + 0x7c]
test edx, edx
je 0x100f9ea7
mov ecx, ebp
call fcn.10026a90
cmp byte [ebp + 0x57], 0
jne 0x100f9f09
test esi, esi
jne 0x100f9eb5
xor edi, edi
jmp 0x100f9ef1
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100f9ec0
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, ebp
push eax
mov dword [esp + 0x58], eax
call fcn.10026f30
mov edi, eax
add esp, 8
test edi, edi
je 0x100f9ef1
push dword [esp + 0x50]
push esi
push edi
call fcn.10139d00
add esp, 0xc
mov eax, dword [esp + 0x18]
mov edx, ebx
mov ecx, ebp
mov dword [eax + 0x7c], edi
call fcn.100272e0
mov ebx, dword [esp + 0x18]
mov esi, eax
jmp 0x100f9f19
mov ebx, dword [esp + 0x18]
mov esi, 7
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x24], esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100f9f2d
push eax
call dword [0x10177ba0]
add esp, 4
cmp esi, 0x64
jne 0x100fa241
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100f9f49
push eax
call dword [0x10177b98]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x100f9f5b
xor eax, eax
cmp ax, word [ebx + 0x90]
jb 0x100f9f73
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.1002a360
mov ecx, 0x10161a88
call fcn.1004d340
mov ecx, dword [ebx]
mov dword [esp + 0x40], edx
mov edx, dword [ebx + 0x24]
mov dword [esp + 0x44], eax
cmp byte [ecx + 0x57], 0
jne 0x100f9f93
test edx, edx
jne 0x100f9f93
xor eax, eax
jmp 0x100f9f98
call fcn.100272e0
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100f9fae
push eax
call dword [0x10177ba0]
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], 0
cmp dword [eax + 0x2c], 0
je 0x100f9fd6
mov eax, dword [eax + 0x18]
inc eax
push eax
push ebx
call fcn.10055880
mov dword [esp + 0x2c], eax
add esp, 8
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
xor ebp, ebp
mov esi, 0x28
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x50], esi
nop dword [eax]
cmp ebp, dword [eax + 0x18]
jge 0x100f9dc0
mov eax, dword [eax + 0x20]
cmp byte [eax + ebp], 0
jne 0x100fa1fb
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100fa019
push eax
call dword [0x10177b98]
add esp, 4
mov edx, dword [ebx + 0x78]
test edx, edx
je 0x100fa03d
movzx eax, word [ebx + 0x90]
lea ecx, [ebp + 1]
cmp ecx, eax
jge 0x100fa03d
test ecx, ecx
js 0x100fa03d
lea ecx, [edx + esi]
test ecx, ecx
jne 0x100fa055
xor esi, esi
jmp 0x100fa084
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.1002a360
mov ecx, 0x10161a88
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x100fa072
cmp byte [ecx + 0x12], 1
jne 0x100fa072
mov esi, dword [ecx + 8]
jmp 0x100fa084
test dl, 1
je 0x100fa07b
xor esi, esi
jmp 0x100fa084
mov dl, 1
call fcn.1004e000
mov esi, eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x100fa097
test edx, edx
jne 0x100fa097
xor eax, eax
jmp 0x100fa09c
call fcn.100272e0
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100fa0b2
push eax
call dword [0x10177ba0]
add esp, 4
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push 0xffffffffffffffff
push esi
mov esi, dword [esp + 0x30]
mov edx, esi
mov ecx, dword [ecx + 0x24]
mov dword [esp + 0x34], 0
call fcn.100e7410
mov edi, eax
add esp, 0xc
mov eax, dword [esp + 0x28]
test edi, edi
jne 0x100fa1da
nop word [eax + eax]
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], 0
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x64], 0
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x60], 0
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x44], 0
push ecx
lea ecx, [esp + 0x58]
push ecx
push eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x14]
call eax
mov edi, eax
add esp, 0x18
mov dword [esp + 0x10], edi
test edi, edi
jne 0x100fa1cc
push dword [esp + 0x38]
mov ecx, dword [esp + 0x4c]
push ebp
push dword [esp + 0x48]
mov ebp, dword [esp + 0x48]
mov edx, ebp
push dword [esp + 0x50]
push eax
push esi
call fcn.100f9610
xor dword [esp + 0x34], eax
lea esi, [edi + 1]
mov eax, dword [esp + 0x2c]
add esp, 0x18
xor dword [esp + 0x20], edx
mov ebx, dword [eax + 0x104]
cmp ebx, esi
jle 0x100fa1c2
mov edi, dword [eax + 0x108]
add edi, 0x18
mov edx, dword [edi]
cmp edx, ebp
jg 0x100fa1b6
push dword [esp + 0x38]
mov ecx, dword [esp + 0x4c]
push dword [esp + 0x30]
push dword [esp + 0x48]
push dword [esp + 0x50]
push esi
push dword [esp + 0x38]
call fcn.100f9610
xor dword [esp + 0x34], eax
add esp, 0x18
xor dword [esp + 0x20], edx
inc esi
add edi, 0x18
cmp esi, ebx
jl 0x100fa187
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
test edi, edi
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
je 0x100fa0f0
mov ebx, dword [esp + 0x18]
test eax, eax
je 0x100fa1eb
push eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x10]
call eax
add esp, 4
mov esi, dword [esp + 0x50]
xor eax, eax
cmp edi, 0x65
cmove edi, eax
mov dword [esp + 0x10], edi
inc ebp
add esi, 0x28
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x50], esi
test edi, edi
jne 0x100fa245
mov eax, dword [esp + 0x14]
jmp 0x100f9ff0
push str.API_called_with_NULL_prepared_statement
push 0x15
call fcn.100296a0
add esp, 8
push 0x10166fc4
push 0x160fd
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.100296a0
add esp, 0x14
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
test ebx, ebx
je 0x100fa27d
mov esi, dword [ebx]
test esi, esi
jne 0x100fa2a9
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.100296a0
push 0x10166fc4
push 0x15deb
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.100296a0
add esp, 0x1c
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], eax
jne 0x100fa317
cmp dword [esp + 0x34], ebp
jne 0x100fa317
mov eax, dword [esp + 0x54]
mov dword [eax], 1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100fa2ba
push eax
call dword [0x10177b98]
add esp, 4
cmp dword [ebx + 0x8c], 0
jl 0x100fa2d7
jg 0x100fa2ce
cmp dword [ebx + 0x88], 0
jbe 0x100fa2d7
mov edx, ebx
mov ecx, esi
call fcn.10053af0
mov ecx, ebx
call fcn.10051730
mov ecx, ebx
mov edi, eax
call fcn.10051810
cmp byte [esi + 0x57], 0
jne 0x100fa2f1
test edi, edi
je 0x100fa2fa
mov edx, edi
mov ecx, esi
call fcn.100272e0
mov ecx, esi
call fcn.100d7a10
mov edi, dword [esp + 0x10]
jmp 0x100fa27d
mov ebp, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
jmp 0x100fa281
mov eax, dword [esp + 0x54]
mov dword [eax], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret