joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008c430
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp edx, eax
je 0x1008c5a3
cmp dword [edx + 0x1c], 0x10
mov eax, dword [ecx + 4]
push esi
mov dword [ebp - 0x1c], eax
mov esi, edx
mov eax, dword [ecx + 0xc]
push edi
mov dword [ebp - 0x18], eax
lea edi, [edx + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x10]
jb 0x1008c46b
mov edi, dword [edi]
xor edx, edx
push ebx
mov ebx, 0x811c9dc5
test eax, eax
je 0x1008c494
mov ecx, eax
nop dword [eax]
movzx eax, byte [edx + edi]
inc edx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp edx, ecx
jb 0x1008c480
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x18]
and eax, ebx
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 4]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], eax
nop dword [eax]
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 8]
call fcn.10086a10
push 0x38
push edi
call fcn.100e476e
mov eax, dword [ebp - 8]
add esp, 8
dec dword [eax + 8]
cmp ebx, dword [ebp - 0x14]
je 0x1008c4fd
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x1008c4b0
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jne 0x1008c598
mov ecx, dword [ebp - 0x10]
pop ebx
pop edi
mov dword [ecx], esi
mov ecx, dword [ebp - 0xc]
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
jne 0x1008c50f
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x1008c512
mov eax, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
cmp esi, eax
je 0x1008c598
nop dword [eax]
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
mov ebx, dword [edx + 0x10]
jb 0x1008c52e
mov edx, dword [edx]
xor ecx, ecx
mov edi, 0x811c9dc5
test ebx, ebx
je 0x1008c551
nop dword [eax]
movzx eax, byte [ecx + edx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, ebx
jb 0x1008c540
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x18]
and eax, edi
lea eax, [ecx + eax*8]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 8]
call fcn.10086a10
push 0x38
push edi
call fcn.100e476e
mov ecx, dword [ebp - 8]
add esp, 8
mov eax, dword [ebp + 0xc]
dec dword [ecx + 8]
cmp ebx, dword [ebp - 0x14]
je 0x1008c5a9
cmp esi, eax
jne 0x1008c568
mov ecx, dword [ebp - 4]
mov dword [ecx], esi
mov ecx, dword [ebp - 0xc]
pop ebx
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0x1c]
mov dword [ecx], edi
mov dword [ecx + 4], edi
cmp esi, eax
jne 0x1008c520
mov ecx, dword [ebp - 0xc]
pop ebx
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10092b60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e15e5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x10284f40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10092bb5
push dword [ebp + 0xc]
push fcn.10092d60
push esi
call eax
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ecx + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x44], ecx
mov ecx, dword [eax + 8]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
movq xmm0, qword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x40], ecx
movq qword [ebp - 0x24], xmm0
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 0xf]
push dword [0x10295998]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10092c42
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10092c42
mov eax, dword [ecx + 8]
test eax, eax
je 0x10092c42
mov dword [ecx + 8], 0
mov cl, byte [eax]
cmp cl, 8
jb 0x10092c39
mov byte [eax + 0x20], cl
jmp 0x10092c50
push eax
call fcn.100e4769
add esp, 4
push 0x21
call fcn.100e430a
add esp, 4
mov byte [eax + 0x20], 8
mov ecx, dword [ebp - 0x10]
movq xmm0, qword [ebp - 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], edi
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], ecx
lea ecx, [ebp - 0x30]
mov dword [eax], 0x10094020
mov dword [ebp - 0x28], 0
mov dword [ebp + 8], eax
mov dword [ebp - 0x2c], 0
call fcn.10093920
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
push esi
call dword [ebp - 0x1c]
add esp, 8
mov dword [ebp - 4], 2
mov eax, dword [ebp + 8]
test eax, eax
je 0x10092cb8
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100934e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e1715
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10284f40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
test byte [edi + 8], 1
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], edi
jne 0x1009354b
mov eax, dword [edi]
push dword [0x10295998]
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1009354b
nop word [eax + eax]
cmp dword [eax], esi
je 0x1009358b
mov eax, dword [eax + 8]
test eax, eax
jne 0x10093540
push dword [0x10295998]
lea eax, [edi + 4]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100935fa
mov eax, dword [eax + 4]
test eax, eax
je 0x100935fa
mov esi, dword [eax]
test esi, esi
je 0x100935fa
mov dword [eax], 0
mov al, byte [esi]
cmp al, 0xa
jb 0x100935f1
mov byte [esi + 0x28], al
jmp 0x1009360a
cmp dword [eax + 4], 0
je 0x1009354b
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov dword [ebx], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.10085ec0
add esp, 8
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100936b8
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
jmp 0x100936b8
push esi
call fcn.100e4769
add esp, 4
push 0x29
call fcn.100e430a
mov esi, eax
add esp, 4
mov byte [esi + 0x28], 0xa
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x10093cd0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov eax, dword [ebx]
mov dword [esi + 0x20], eax
mov dword [ebx], 0
mov eax, dword [edi]
mov edi, dword [eax + 8]
lock inc dword [edi + 0x18]
push esi
push 0
push 0
mov dword [esi + 0x1c], 1
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x100936a2
lea ebx, [edi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x1009368b
mov dword [eax + 0x14], esi
jmp 0x1009368e
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
lea eax, [edi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.10093880
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100e40d6
mov esp, ebp
pop ebp
ret 4
Function at 0x100936e0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e175d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
push esi
push edi
mov eax, dword [0x10284f40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0xc], 0
jne 0x10093738
mov eax, dword [ebx + 0xc]
add eax, 0x14
push eax
push dword [ebx + 8]
call fcn.10094370
add esp, 8
jmp 0x10093846
sub esp, 8
lea eax, [ebp - 0x40]
push ecx
push eax
call fcn.10092d80
mov edi, eax
push dword [ebx + 8]
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x1009376b
push fcn.10094370
push edi
call eax
add esp, 0xc
jmp 0x10093831
mov eax, dword [ecx + 8]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x1c], eax
call fcn.10094300
mov byte [ebp - 4], 1
lea eax, [ebp - 0x11]
push dword [0x10295998]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100937bc
mov eax, dword [eax + 4]
test eax, eax
je 0x100937bc
mov esi, dword [eax + 8]
test esi, esi
je 0x100937bc
mov dword [eax + 8], 0
mov al, byte [esi]
cmp al, 0xe
jb 0x100937b3
mov byte [esi + 0x38], al
jmp 0x100937cc
push esi
call fcn.100e4769
add esp, 4
push 0x39
call fcn.100e430a
mov esi, eax
add esp, 4
mov byte [esi + 0x38], 0xe
lea eax, [ebp - 0x70]
mov dword [ebp - 0x20], 0
lea ecx, [esi + 4]
push eax
call fcn.10094300
mov dword [esi], 0x100944c0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], 0
call fcn.100943a0
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x1009380d
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x1009380d
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push edi
call dword [ebp - 0x1c]
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10093831
mov ecx, dword [eax]
push 0
push eax
call ecx
add esp, 8
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 4
push eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
call eax
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x10093880
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101db4b0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10284f40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x100938cc
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x20]
test eax, eax
je 0x100938c5
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10093908
push dword [0x10295998]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100938f8
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100938f8
cmp dword [ecx], 0
jne 0x100938f8
mov al, byte [esi + 0x28]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x10093901
push esi
call fcn.100e4769
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10093920
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x10093948
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x10093941
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x10093941
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x1009398e
push dword [0x10295998]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1009397e
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1009397e
cmp dword [ecx + 8], 0
jne 0x1009397e
mov al, byte [esi + 0x20]
mov byte [esi], al
mov dword [ecx + 8], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.100e4769
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x10094180
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e187d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
push esi
push edi
mov eax, dword [0x10284f40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 8
lea eax, [ebp - 0x44]
push ecx
push eax
call fcn.10092d80
mov dword [ebp - 0x1c], eax
push dword [ebx + 8]
mov dword [ebp - 4], 0
mov edx, dword [eax + 0x10]
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x100941ef
push fcn.100944a0
push eax
call ecx
add esp, 0xc
jmp 0x100942c9
mov eax, dword [edx + 8]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x20], eax
call fcn.10094420
mov byte [ebp - 4], 1
lea eax, [ebp - 0x11]
push dword [0x10295998]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10094240
mov eax, dword [eax + 4]
test eax, eax
je 0x10094240
mov esi, dword [eax + 8]
test esi, esi
je 0x10094240
mov dword [eax + 8], 0
mov al, byte [esi]
cmp al, 0x12
jb 0x10094237
mov byte [esi + 0x48], al
jmp 0x10094250
push esi
call fcn.100e4769
add esp, 4
push 0x49
call fcn.100e430a
mov esi, eax
add esp, 4
mov byte [esi + 0x48], 0x12
lea eax, [ebp - 0x80]
mov dword [ebp - 0x24], 0
lea ecx, [esi + 8]
push eax
call fcn.10094420
mov dword [esi], 0x10094660
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], 0
call fcn.100945d0
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x100942a3
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100942a3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100942a3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x1c]
call dword [ebp - 0x20]
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100942c9
mov ecx, dword [eax]
push 0
push eax
call ecx
add esp, 8
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 4
push eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
call eax
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8

Function at 0x100943a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x100943c8
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x100943c1
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x100943c1
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x1009440e
push dword [0x10295998]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100943fe
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100943fe
cmp dword [ecx + 8], 0
jne 0x100943fe
mov al, byte [esi + 0x38]
mov byte [esi], al
mov dword [ecx + 8], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.100e4769
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x100945d0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x1009460c
mov esi, dword [esi + 0x2c]
test esi, esi
je 0x10094605
push ebx
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10094604
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10094604
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop ebx
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10094652
push dword [0x10295998]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10094642
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10094642
cmp dword [ecx + 8], 0
jne 0x10094642
mov al, byte [esi + 0x48]
mov byte [esi], al
mov dword [ecx + 8], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.100e4769
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x10095a60
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x10095a86
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov dword [eax + 4], 0
add esp, 0x10
ret
cmp dword [esp + 4], 0
jg 0x10095a95
jl 0x10095a71
cmp dword [esp], 0
jbe 0x10095a71
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
xor esi, esi
call edi
test eax, eax
jne 0x10095ac1
nop word [eax + eax]
inc esi
cmp esi, 3
ja 0x10095b0c
lea eax, [esp + 0x10]
push eax
call edi
test eax, eax
je 0x10095ab0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
call fcn.100e4df0
mulsd xmm0, qword [0x1026e2c0]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
movsd qword [esp + 0x10], xmm0
call fcn.100e4df0
movsd xmm1, qword [esp + 0x10]
divsd xmm1, xmm0
movaps xmm0, xmm1
call fcn.100e4d40
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [ecx], eax
mov eax, ecx
mov dword [ecx + 4], edx
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], 0
mov dword [eax + 4], 0
add esp, 0x10
ret
Function at 0x10095bc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e19cd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10284f40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10282010]
cmp eax, 0xffffffff
jne 0x10095bf4
xor ebx, ebx
jmp 0x10095bfd
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x10095cf4
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x10095c20
cmp dword [ebx + 0xc], 0
je 0x10095cad
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x10095c6c
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x10095c52
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10095c27
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10095c16
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10095c8d
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10095c8d
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea ecx, [ebx + 0x14]
call fcn.10094f00
push 0x20
push eax
call fcn.100e476e
mov eax, dword [ebx + 0x18]
add esp, 8
test eax, eax
jne 0x10095c70
jmp 0x10095c12
push 0x10095470
push 0x10291880
call fcn.10095280
mov eax, dword [0x10282010]
add esp, 8
cmp eax, 0xffffffff
je 0x10095cd2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x10095cf4
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10095d10
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x10095d70
push 0
push 0
call fcn.100efc85
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x10095d39
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x10095d57
cmp eax, 0xffffffff
je 0x10095d57
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x1009cb30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10284f40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
push 0
push eax
call fcn.100e6b10
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x1009cb87
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e40d6
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
push eax
push str._s_postgresql
push dword [ebp + 0xc]
push esi
call fcn.101d4800
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov al, 1
pop esi
call fcn.100e40d6
mov esp, ebp
pop ebp
ret
Function at 0x1009f2b0
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x10284f40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x11c], esi
call ebx
movzx ecx, word [esi]
push 0
push 1
push ecx
mov dword [ebp - 0x118], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1009f300
mov eax, str.PQcancel______socket___failed:
jmp 0x1009f37b
mov eax, dword [ebp - 0x11c]
push dword [eax + 0x80]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x1009f328
call ebx
cmp eax, 0x2714
je 0x1009f300
mov eax, str.PQcancel______connect___failed:
jmp 0x1009f37b
mov eax, dword [ebp + 0xc]
bswap eax
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x10]
bswap eax
mov dword [ebp - 0x114], 0x10000000
mov dword [ebp - 0x110], 0x2e16d204
mov dword [ebp - 0x108], eax
push 0
push 0x10
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0x10
je 0x1009f404
call ebx
cmp eax, 0x2714
je 0x1009f352
mov eax, str.PQcancel______send___failed:
push dword [ebp + 0x18]
push eax
push edi
call fcn.101d6380
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009f390
mov eax, dword [ebp + 0x18]
sub ecx, edx
sub eax, ecx
sub eax, 2
js 0x1009f3d9
push eax
push 0x100
lea eax, [ebp - 0x104]
push eax
call ebx
push eax
call fcn.100a8b30
add esp, 0xc
push eax
push edi
call fcn.100fa690
add esp, 0xc
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x1009f3c6
mov ax, word [0x101e4fc4]
mov word [edi], ax
cmp esi, 0xffffffff
je 0x1009f3e5
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp - 0x118]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e40d6
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.WS2_32.dll_recv]
nop word [eax + eax]
push 0
push 1
lea eax, [ebp - 0x114]
push eax
push esi
call edi
test eax, eax
jns 0x1009f42b
call ebx
cmp eax, 0x2714
je 0x1009f410
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp - 0x118]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e40d6
mov esp, ebp
pop ebp
ret