joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100120d0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [esp + 0x38]
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], vtable.CDAOContext.0
mov dword [esp + 0x10], esi
call fcn.10009750
lea ecx, [esp + 0x1c]
mov dword [esp + 8], vtable.CDAOVARGContext.0
mov word [esp + 0x18], 0
mov dword [esp + 0x14], 1
call fcn.10013930
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
call fcn.10013960
mov edx, dword [esp + 0x40]
push 0
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x4c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
lea ecx, [esp + 0x20]
mov word [esp + 0x30], 1
call fcn.1000a010
mov ecx, dword [esp + 0x50]
push 0
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x5c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x20]
mov dword [eax + 0xc], edx
call fcn.1000a010
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x100121e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x2c]
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 8]
mov dword [eax + 0x10], ecx
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.10054390
test eax, eax
je 0x100121e7
movzx eax, ax
or eax, 0x800a0000
mov dword [esp + 0x10], eax
mov esi, eax
jmp 0x10012290
call fcn.10020d20
test eax, eax
jl 0x10012216
mov ecx, dword [0x1007eed0]
push 0x1c0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.10069dc0
test eax, eax
jne 0x10012269
push 0x100202e0
call fcn.1005ad10
xor eax, eax
mov edx, dword [esp + 0x38]
mov ecx, dword [esi + 0x28]
push edx
push ecx
lea edx, [esp + 0xc]
push edx
push 0x100701f8
push 0
push eax
call fcn.10005db0
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jge 0x10012286
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10012272
mov eax, dword [eax + 8]
test eax, eax
je 0x10012272
push 2
push esi
push eax
call fcn.10019ba0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
push eax
call fcn.100573a0
mov esi, dword [esp + 0x10]
jmp 0x10012290
mov ecx, eax
call fcn.10011350
jmp 0x10012218
mov eax, dword [esp + 0x38]
push eax
mov dword [esp + 0x14], esi
call fcn.100573a0
mov esi, dword [esp + 0x10]
jmp 0x10012290
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 4]
mov dword [ecx], edx
lea ecx, [esp + 0x1c]
call fcn.10013940
lea ecx, [esp + 8]
call fcn.100097c0
mov eax, esi
pop esi
add esp, 0x30
ret 0x2c
Function at 0x100122b0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [esp + 0x38]
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], vtable.CDAOContext.0
mov dword [esp + 0x10], esi
call fcn.10009750
lea ecx, [esp + 0x1c]
mov dword [esp + 8], vtable.CDAOVARGContext.0
mov word [esp + 0x18], 0
mov dword [esp + 0x14], 1
call fcn.10013930
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
call fcn.10013960
mov edx, dword [esp + 0x40]
push 0
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x4c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
lea ecx, [esp + 0x20]
mov word [esp + 0x30], 1
call fcn.1000a010
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x1001238b
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x24]
push eax
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 8]
mov dword [eax + 0x10], ecx
push edx
lea eax, [esp + 0x58]
push eax
call fcn.100544f0
test eax, eax
je 0x10012392
movzx eax, ax
or eax, 0x800a0000
mov dword [esp + 0x10], eax
mov esi, eax
jmp 0x1001243b
call fcn.10020d20
test eax, eax
jl 0x100123c1
mov ecx, dword [0x1007eed0]
push 0x1c0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.10069dc0
test eax, eax
jne 0x10012414
push 0x100202e0
call fcn.1005ad10
xor eax, eax
mov edx, dword [esp + 0x38]
mov ecx, dword [esi + 0x28]
push edx
push ecx
lea edx, [esp + 0xc]
push edx
push 0x100701f8
push 0
push eax
call fcn.10005db0
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jge 0x10012431
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1001241d
mov eax, dword [eax + 8]
test eax, eax
je 0x1001241d
push 2
push esi
push eax
call fcn.10019ba0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
push eax
call fcn.100573a0
mov esi, dword [esp + 0x10]
jmp 0x1001243b
mov ecx, eax
call fcn.10011350
jmp 0x100123c3
mov eax, dword [esp + 0x38]
push eax
mov dword [esp + 0x14], esi
call fcn.100573a0
mov esi, dword [esp + 0x10]
jmp 0x1001243b
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 4]
mov dword [ecx], edx
lea ecx, [esp + 0x1c]
call fcn.10013940
lea ecx, [esp + 8]
call fcn.100097c0
mov eax, esi
pop esi
add esp, 0x30
ret 0x1c
Function at 0x10012460
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], vtable.CDAOContext.0
mov dword [esp + 0x10], esi
call fcn.10009750
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 8]
push 1
push eax
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x14], 0
call fcn.10054e80
test eax, eax
je 0x100124c0
movzx eax, ax
or eax, 0x800a0000
lea ecx, [esp + 8]
mov dword [esp + 0x10], eax
mov esi, eax
call fcn.100097c0
mov eax, esi
pop esi
add esp, 0x10
ret 0xc
call fcn.10020d20
test eax, eax
jl 0x100124ee
mov eax, dword [0x1007eed0]
push 0x1c0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.10069dc0
test eax, eax
jne 0x10012551
push 0x100202e0
call fcn.1005ad10
xor eax, eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push ecx
push 0x100701f8
push 0
push eax
call fcn.10005db0
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jge 0x1001257e
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1001255a
mov eax, dword [eax + 8]
test eax, eax
je 0x1001255a
push 2
push esi
push eax
call fcn.10019ba0
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x14], eax
call fcn.100573a0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 8]
call fcn.100097c0
mov eax, esi
pop esi
add esp, 0x10
ret 0xc
mov ecx, eax
call fcn.10011350
jmp 0x100124f0
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x14], esi
call fcn.100573a0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 8]
call fcn.100097c0
mov eax, esi
pop esi
add esp, 0x10
ret 0xc
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x20]
mov dword [eax], ecx
lea ecx, [esp + 8]
call fcn.100097c0
mov eax, esi
pop esi
add esp, 0x10
ret 0xc
Function at 0x100125a0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], vtable.CDAOContext.0
mov dword [esp + 0x10], esi
call fcn.10009750
mov eax, dword [esi + 8]
push 1
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.10054930
test eax, eax
je 0x100125f3
movzx eax, ax
or eax, 0x800a0000
lea ecx, [esp + 8]
mov dword [esp + 0x10], eax
mov esi, eax
call fcn.100097c0
mov eax, esi
pop esi
add esp, 0x10
ret 8
call fcn.10020d20
test eax, eax
jl 0x10012622
mov edx, dword [0x1007eed0]
push 0x1c0
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.10069dc0
test eax, eax
jne 0x10012685
push 0x100202e0
call fcn.1005ad10
xor eax, eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push ecx
push 0x100701f8
push 0
push eax
call fcn.10005db0
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jge 0x100126b2
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1001268e
mov eax, dword [eax + 8]
test eax, eax
je 0x1001268e
push 2
push esi
push eax
call fcn.10019ba0
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x14], eax
call fcn.100573a0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 8]
call fcn.100097c0
mov eax, esi
pop esi
add esp, 0x10
ret 8
mov ecx, eax
call fcn.10011350
jmp 0x10012624
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x14], esi
call fcn.100573a0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 8]
call fcn.100097c0
mov eax, esi
pop esi
add esp, 0x10
ret 8
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
lea ecx, [esp + 8]
call fcn.100097c0
mov eax, esi
pop esi
add esp, 0x10
ret 8
Function at 0x100126d0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [esp + 0x20]
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], vtable.CDAOContext.0
mov dword [esp + 0x10], esi
call fcn.10009750
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, 1
mov dword [esp + 0x14], eax
mov word [esp + 0x18], ax
push 0
lea eax, [esp + 0x2c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], vtable.CDAOVARGContext.0
mov dword [eax + 0xc], edx
call fcn.1000a010
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x1001276a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.10054270
test eax, eax
je 0x1001277e
movzx eax, ax
or eax, 0x800a0000
mov dword [esp + 0x10], eax
lea ecx, [esp + 8]
mov esi, eax
call fcn.100097c0
mov eax, esi
pop esi
add esp, 0x18
ret 0x1c
call fcn.10020d20
test eax, eax
jl 0x100127ad
mov edx, dword [0x1007eed0]
push 0x1c0
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.10069dc0
test eax, eax
jne 0x10012810
push 0x100202e0
call fcn.1005ad10
xor eax, eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push ecx
push 0x100701f8
push 0
push eax
call fcn.10005db0
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jge 0x1001283d
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10012819
mov eax, dword [eax + 8]
test eax, eax
je 0x10012819
push 2
push esi
push eax
call fcn.10019ba0
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x14], eax
call fcn.100573a0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 8]
call fcn.100097c0
mov eax, esi
pop esi
add esp, 0x18
ret 0x1c
mov ecx, eax
call fcn.10011350
jmp 0x100127af
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x14], esi
call fcn.100573a0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 8]
call fcn.100097c0
mov eax, esi
pop esi
add esp, 0x18
ret 0x1c
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x38]
mov dword [eax], ecx
lea ecx, [esp + 8]
call fcn.100097c0
mov eax, esi
pop esi
add esp, 0x18
ret 0x1c

Function at 0x10012950
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
call fcn.10020d20
test eax, eax
jl 0x10012984
mov eax, dword [0x1007eed0]
push 0x284
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.10069dc0
mov esi, eax
test esi, esi
jne 0x100129a9
push 0x100202e0
call fcn.1005ad10
xor esi, esi
mov edx, dword [edi + 0xc]
mov ecx, dword [esp + 0xc]
mov eax, dword [edx + 0x28]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
push eax
push ecx
push edx
push 0
push esi
call fcn.10005db0
pop edi
pop esi
ret 0xc
mov ecx, esi
call fcn.10011540
mov dword [esi], vtable.CDAODatabase.0
jmp 0x10012986
Function at 0x10012aa0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
call fcn.10020d20
test eax, eax
jl 0x10012ad4
mov eax, dword [0x1007eed0]
push 0x284
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.10069dc0
mov esi, eax
test esi, esi
jne 0x10012af9
push 0x100202e0
call fcn.1005ad10
xor esi, esi
mov edx, dword [edi + 0xc]
mov ecx, dword [esp + 0xc]
mov eax, dword [edx + 0x28]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
push eax
push ecx
push edx
push 0
push esi
call fcn.10005db0
pop edi
pop esi
ret 0xc
mov ecx, esi
call fcn.10011540
mov dword [esi], vtable.CDAODatabase.0
jmp 0x10012ad6
Function at 0x10012b50
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x58
push esi
mov esi, dword [esp + 0x60]
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], vtable.CDAOContext.0
mov dword [esp + 0x10], esi
call fcn.10009750
lea ecx, [esp + 0x3c]
mov dword [esp + 8], vtable.CDAOVARGContext.0
mov word [esp + 0x18], 0
mov dword [esp + 0x14], 1
call fcn.100139b0
lea ecx, [esp + 0x1c]
call fcn.100139b0
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
push 0
lea eax, [esp + 0x40]
push eax
push 8
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x8c]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x24]
mov dword [eax + 0xc], edx
call fcn.1000a1d0
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
push 0
lea eax, [esp + 0x20]
push eax
push 8
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x98]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x9c]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x24]
mov dword [eax + 0xc], edx
call fcn.1000a1d0
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x10012c81
mov eax, dword [esp + 0x2c]
movzx ecx, ax
and ecx, 0xffffbfff
cmp ecx, 8
jne 0x10012c37
test eax, 0x4000
je 0x10012c31
mov edx, dword [esp + 0x34]
mov ecx, dword [edx]
jmp 0x10012c39
mov ecx, dword [esp + 0x34]
jmp 0x10012c39
xor ecx, ecx
mov eax, dword [esp + 0x4c]
movzx edx, ax
and edx, 0xffffbfff
cmp edx, 8
jne 0x10012c5a
test eax, 0x4000
mov eax, dword [esp + 0x54]
je 0x10012c5c
mov eax, dword [eax]
jmp 0x10012c5c
xor eax, eax
mov edx, dword [esp + 0x18]
push edx
push ecx
push eax
mov eax, dword [esi + 8]
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.1004ebc0
test eax, eax
je 0x10012c88
movzx eax, ax
or eax, 0x800a0000
mov dword [esp + 0x10], eax
mov esi, eax
jmp 0x10012d34
call fcn.10020d20
test eax, eax
jl 0x10012cb7
mov edx, dword [0x1007eed0]
push 0x12c
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.10069dc0
test eax, eax
jne 0x10012d0a
push 0x100202e0
call fcn.1005ad10
xor eax, eax
mov ecx, dword [esp + 0x60]
mov edx, dword [esi + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push ecx
push 0x10070468
push 0
push eax
call fcn.10005db0
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jge 0x10012d27
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10012d13
mov eax, dword [eax + 8]
test eax, eax
je 0x10012d13
push 2
push esi
push eax
call fcn.10019ba0
mov edx, dword [esp + 0x60]
push edx
mov dword [esp + 0x14], eax
call fcn.100573a0
mov esi, dword [esp + 0x10]
jmp 0x10012d34
mov ecx, eax
call fcn.100058b0
jmp 0x10012cb9
mov edx, dword [esp + 0x60]
push edx
mov dword [esp + 0x14], esi
call fcn.100573a0
mov esi, dword [esp + 0x10]
jmp 0x10012d34
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 4]
mov dword [eax], ecx
lea ecx, [esp + 0x1c]
call fcn.10014290
lea ecx, [esp + 0x3c]
call fcn.10014290
lea ecx, [esp + 8]
call fcn.100097c0
mov eax, esi
pop esi
add esp, 0x58
ret 0x28
Function at 0x10012d60
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], vtable.CDAOContext.0
mov dword [esp + 0x10], esi
call fcn.10009750
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 8]
push 1
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.1004db80
test eax, eax
je 0x10012db8
movzx eax, ax
or eax, 0x800a0000
lea ecx, [esp + 8]
mov dword [esp + 0x10], eax
mov esi, eax
call fcn.100097c0
mov eax, esi
pop esi
add esp, 0x10
ret 0xc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10012e02
cmp dword [eax + 0x20], 0
je 0x10012e02
mov eax, dword [eax + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push 0x10070468
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x10012e72
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 4]
mov dword [ecx], edx
mov esi, dword [esp + 0x10]
lea ecx, [esp + 8]
call fcn.100097c0
mov eax, esi
pop esi
add esp, 0x10
ret 0xc
call fcn.10020d20
test eax, eax
jl 0x10012e31
mov ecx, dword [0x1007eed0]
push 0x12c
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.10069dc0
test eax, eax
jne 0x10012e81
push 0x100202e0
call fcn.1005ad10
xor eax, eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x28]
push edx
push ecx
lea edx, [esp + 0xc]
push edx
push 0x10070468
push 0
push eax
call fcn.10005db0
test eax, eax
mov dword [esp + 0x10], eax
jge 0x10012de2
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x10012e6e
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x10012e6e
push 2
push eax
push ecx
call fcn.10019ba0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push eax
call fcn.100573a0
jmp 0x10012dec
mov ecx, eax
call fcn.100058b0
jmp 0x10012e33

Function at 0x10014000
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x1007eed0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push 0
push eax
mov edi, esi
call ebx
mov ecx, dword [eax + 0xc]
push ecx
call fcn.10020420
test eax, eax
mov dword [esp + 0x14], eax
je 0x1001405e
test esi, esi
je 0x10014069
mov edx, dword [esp + 0x10]
push esi
push eax
push esi
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
mov eax, dword [esp + 0x14]
jne 0x10014069
mov ecx, dword [0x1007eed0]
push eax
push ecx
call ebx
mov edx, dword [eax + 0xc]
push edx
call fcn.10020440
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
ret 0xc
cmp edi, esi
mov word [eax + edi*2], 0
jae 0x100140a8
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysAllocStringLen]
test eax, eax
jne 0x100140a8
mov edx, dword [esp + 0x14]
mov eax, dword [0x1007eed0]
push edx
push eax
call ebx
mov ecx, dword [eax + 0xc]
push ecx
call fcn.10020440
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
ret 0xc
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
pop edi
pop esi
mov dword [edx], eax
xor eax, eax
pop ebx
ret 0xc
Function at 0x100140c0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0
push 0
push 0
push 0
push ebx
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
push edi
push 0
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov esi, eax
test esi, esi
je 0x10014121
test edi, edi
je 0x1001412d
push 0
push 0
push edi
push esi
push ebx
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1001412d
mov eax, dword [0x1007eed0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.10020440
pop edi
pop esi
pop ebp
mov eax, 0x8007000e
pop ebx
ret 0xc
mov edx, dword [esp + 0x1c]
mov byte [esi + edi], 0
pop edi
mov dword [edx], esi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
Function at 0x10015c10
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov ebx, ecx
call fcn.10020d20
test eax, eax
jl 0x10015c44
mov eax, dword [0x1007eed0]
push 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.10069dc0
mov esi, eax
test esi, esi
jne 0x10015c69
push 0x100202e0
call fcn.1005ad10
xor esi, esi
mov edx, dword [ebx + 0xc]
mov ecx, dword [esp + 0xc]
mov eax, dword [edx + 0x28]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
push eax
push ecx
push edx
push 0
push esi
call fcn.10005db0
pop esi
pop ebx
ret 0xc
push edi
mov ecx, esi
call fcn.10004980
lea edi, [esi + 0x74]
mov ecx, edi
mov dword [esi], vtable.CDAODocument.0
call fcn.10006b10
mov dword [edi], vtable.Document.0
lea edi, [esi + 0x88]
mov ecx, edi
call fcn.10006b10
mov dword [edi], vtable.DocumentW.0
pop edi
jmp 0x10015c46

Function at 0x100163d0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xc
push esi
push edi
mov esi, ecx
push str.StoreIniPath
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], vtable.CDAOContext.0
mov dword [esp + 0x10], esi
call fcn.10009750
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
test edi, edi
jne 0x10016455
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10016437
mov eax, dword [eax + 8]
test eax, eax
je 0x10016437
push 2
push 0x8007000e
push eax
call fcn.10019ba0
lea ecx, [esp + 8]
mov dword [esp + 0x10], eax
mov esi, eax
call fcn.100097c0
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret 4
mov eax, 0x8007000e
lea ecx, [esp + 8]
mov dword [esp + 0x10], eax
mov esi, eax
call fcn.100097c0
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret 4
mov eax, dword [esi + 0x74]
mov ecx, dword [0x1007eed0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax + 0x30]
mov eax, dword [edx]
push eax
call fcn.10020440
mov dword [esi + 0x74], edi
mov esi, dword [esp + 0x10]
lea ecx, [esp + 8]
call fcn.100097c0
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret 4