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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc4
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.0044d370
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0043e1d0
mov ecx, dword [0x4c6060]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x2d
push 0x200
mov ecx, eax
call fcn.00402380
lea edx, [esp + 0x10]
push edx
mov ecx, eax
mov word [eax + 4], 0x200
call fcn.0043dfb0
mov edi, eax
lea ecx, [esi + 0xd0]
mov eax, ecx
sub eax, esi
mov ebx, esi
sub ebx, edi
mov edx, 0x12
lea eax, [eax + edi + 8]
mov dword [esp + 0xc], ebx
mov ebx, dword [ecx]
mov dword [eax - 8], ebx
mov ebx, dword [ecx + 4]
mov dword [eax - 4], ebx
mov ebx, dword [esp + 0xc]
mov ebx, dword [ebx + eax]
mov dword [eax], ebx
mov ebx, dword [ecx + 0xc]
mov dword [eax + 4], ebx
sub edx, 1
add ecx, 0x10
add eax, 0x10
test edx, edx
jg 0x43e410
cmp dword [esi + 0x1e8], 0
je 0x43e4b3
mov ecx, dword [0x4c6060]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x2e
push 0x120
mov ecx, eax
call fcn.00402380
mov word [eax + 4], 0x120
mov word [eax + 6], 1
mov dword [eax + 0x118], 0
mov dword [eax], vtable.hkpMaxSizeMotion.0
mov dword [edi + 0x1e8], eax
mov ecx, dword [esi + 0x1e8]
mov edx, 0x12
add eax, 8
jmp 0x43e490
mov ebx, dword [ecx]
mov dword [eax - 8], ebx
mov ebx, dword [ecx + 4]
mov dword [eax - 4], ebx
mov ebx, dword [ecx + 8]
mov dword [eax], ebx
mov ebx, dword [ecx + 0xc]
mov dword [eax + 4], ebx
sub edx, 1
add eax, 0x10
add ecx, 0x10
test edx, edx
jg 0x43e490
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
push esi
mov ecx, edi
mov dword [edi + 0x18], eax
call fcn.0043e9c0
mov ecx, dword [esi + 0x70]
mov dword [edi + 0x70], ecx
mov edx, dword [esi + 0xc]
mov dword [edi + 0xc], edx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43e9c0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
mov eax, dword [esi + 0x7c]
push edi
mov edi, eax
and edi, 0x3fffffff
cmp edi, dword [ebx + 0x78]
jge 0x43ea29
test eax, eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
js 0x43e9fd
mov eax, dword [0x4c6060]
push eax
call ebp
mov ecx, dword [esi + 0x74]
push 0x17
shl edi, 4
push edi
push ecx
mov ecx, eax
call fcn.004023e0
mov edx, dword [0x4c6060]
push edx
call ebp
mov ecx, dword [ebx + 0x78]
shl ecx, 4
push 0x17
push ecx
mov ecx, eax
call fcn.00402380
mov edx, dword [esi + 0x7c]
and edx, 0x40000000
mov dword [esi + 0x74], eax
or edx, dword [ebx + 0x78]
pop ebp
mov dword [esi + 0x7c], edx
mov edx, dword [ebx + 0x78]
test edx, edx
mov eax, dword [esi + 0x74]
mov dword [esi + 0x78], edx
mov ecx, dword [ebx + 0x74]
jle 0x43ea62
sub ecx, eax
jmp 0x43ea40
mov esi, dword [ecx + eax]
mov dword [eax], esi
mov esi, dword [ecx + eax + 4]
mov dword [eax + 4], esi
mov esi, dword [ecx + eax + 8]
mov dword [eax + 8], esi
mov esi, dword [ecx + eax + 0xc]
mov dword [eax + 0xc], esi
add eax, 0x10
sub edx, 1
jne 0x43ea40
pop edi
pop esi
pop ebx
ret 4
Function at 0x43eff0
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
mov dword [ecx + 0x80], 0
mov ecx, dword [ecx + 0x7c]
jmp fcn.00451cd0

Function at 0x43f0a0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4c6060]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push eax
call esi
push 0x22
push 0xc
mov ecx, eax
call fcn.00402380
push ebp
mov ecx, eax
mov word [eax + 4], 0xc
call fcn.004536d0
mov ecx, dword [0x4c6060]
push ecx
mov edi, eax
call esi
push 0x22
push 0xc
mov ecx, eax
call fcn.00402380
push ebp
mov ecx, eax
mov word [eax + 4], 0xc
call fcn.00452be0
mov edx, dword [0x4c6060]
push edx
mov ebp, eax
call esi
push 4
push 0x14
mov ecx, eax
call fcn.00402380
mov esi, eax
mov eax, 1
mov word [esi + 4], 0x14
mov word [esi + 6], ax
mov dword [esi], vtable.hkpNullContactMgrFactory.0
push eax
push edi
mov ecx, ebx
mov word [esi + 0xe], ax
mov dword [esi + 0x10], 3
mov dword [esi + 8], vtable.hkpNullContactMgr.0
call fcn.00481900
push 2
push ebp
mov ecx, ebx
call fcn.00481900
push 3
push esi
mov ecx, ebx
call fcn.00481900
or ebx, 0xffffffff
cmp word [edi + 4], 0
je 0x43f174
add word [edi + 6], bx
movzx eax, word [edi + 6]
test ax, ax
jne 0x43f174
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
cmp word [ebp + 4], 0
je 0x43f193
add word [ebp + 6], bx
movzx eax, word [ebp + 6]
test ax, ax
jne 0x43f193
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
cmp word [esi + 4], 0
je 0x43f1b1
add word [esi + 6], bx
movzx eax, word [esi + 6]
test ax, ax
jne 0x43f1b1
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x440250
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 8
push edi
mov edi, ecx
cmp dword [edi + 0x84], 0
je 0x440286
mov eax, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
mov ecx, edi
mov byte [esp + 8], 2
mov dword [esp + 0xc], eax
call fcn.0043f010
mov eax, dword [esp + 0x10]
mov byte [eax], 0
pop edi
add esp, 8
ret 8
push ebx
push esi
mov esi, dword [esp + 0x1c]
push esi
push edi
mov dword [edi + 0x84], 1
call fcn.00449fc0
push esi
push edi
call fcn.0044c2f0
push esi
call fcn.0044b9f0
push esi
push edi
mov byte [edi + 0x8d], 0
call fcn.00449180
mov ebx, dword [esi + 0x54]
add esp, 0x1c
test ebx, ebx
je 0x4402ec
mov edx, dword [0x4c6060]
push ebp
movzx ebp, word [esi + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 2
shl ebp, 5
push ebp
push ebx
mov ecx, eax
call fcn.004023e0
xor eax, eax
mov dword [esi + 0x54], eax
mov word [esi + 0x50], ax
pop ebp
cmp word [esi + 4], 0
jne 0x4402fc
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
mov ecx, esi
call fcn.00453f80
add dword [edi + 0x84], 0xffffffff
pop esi
mov byte [edi + 0x8d], 1
pop ebx
jne 0x44032e
cmp byte [edi + 0x8c], 0
jne 0x44032e
cmp dword [edi + 0x80], 0
je 0x44032e
mov ecx, edi
call fcn.0043eff0
mov eax, dword [esp + 0x10]
mov byte [eax], 1
pop edi
add esp, 8
ret 8
Function at 0x4417f0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi + 0x84], 0
je 0x441842
mov eax, dword [0x4c6060]
push eax
mov byte [esp + 8], 0x1f
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 4
push 0x20
mov ecx, eax
call fcn.00402380
mov ecx, dword [esp + 0x1c]
push 0x20
push ecx
push eax
mov dword [esp + 0x14], eax
call fcn.00406220
add esp, 0xc
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.0043f010
pop esi
add esp, 0x14
ret 4
mov ecx, dword [esi + 0x54]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], bind
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
push edx
call eax
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x4418aa
jmp 0x441880
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + esi*8 + 4]
movsx eax, byte [ecx + 5]
add eax, ecx
cmp byte [eax + 0x18], 1
jne 0x4418a1
movsx ecx, byte [eax + 0x10]
add ecx, eax
je 0x4418a1
call fcn.00445eb0
add esi, 1
cmp esi, dword [esp + 0x10]
jl 0x441880
mov eax, dword [esp + 0x14]
test eax, eax
js 0x4418dc
mov edx, dword [0x4c6060]
and eax, 0x3fffffff
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0xc]
push 0x17
lea ecx, [esi*8]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
pop esi
add esp, 0x14
ret 4
Function at 0x443ab0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x84], ebx
mov dword [esp + 8], esi
je 0x443ae8
mov eax, dword [esp + 0x30]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov byte [esp + 0xc], 0xa
mov dword [esp + 0x10], eax
call fcn.0043f010
pop esi
xor eax, eax
pop ebx
add esp, 0x24
ret 4
push edi
mov edi, dword [esp + 0x34]
cmp word [edi + 4], bx
je 0x443af8
add word [edi + 6], 1
add dword [esi + 0x84], 1
mov eax, dword [edi]
push ebp
lea edx, [esp + 0x24]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x10]
push ecx
mov ecx, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], reloc.WSOCK32.dll_connect
call edx
xor ebp, ebp
cmp dword [esp + 0x1c], ebx
mov dword [edi + 8], esi
jle 0x443bb4
mov eax, dword [esp + 0x18]
mov esi, dword [eax + ebx*4]
mov cx, word [esi + 0x1fe]
add esi, 0x1f8
and cx, 0x3fff
cmp word [esi + 4], cx
jne 0x443b5b
push 4
push esi
call fcn.00469ef0
add esp, 8
movzx edx, word [esi + 4]
mov eax, dword [esi]
mov dword [eax + edx*4], edi
add word [esi + 4], 1
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + ebx*4]
mov ecx, dword [eax + 0xb8]
cmp word [ecx + 0x20], 0xffff
je 0x443ba3
test ebp, ebp
jne 0x443b8c
push edi
mov ebp, eax
call fcn.00455a10
jmp 0x443ba3
cmp dword [ebp + 0xb8], ecx
je 0x443ba3
mov edx, dword [esp + 0x10]
push eax
push ebp
push edx
call fcn.0044a340
add esp, 0xc
add ebx, 1
cmp ebx, dword [esp + 0x1c]
jl 0x443b31
test ebp, ebp
mov esi, dword [esp + 0x10]
jne 0x443bc6
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0xb8]
push edi
call fcn.00455a10
add dword [esi + 0x84], 0xffffffff
pop ebp
jne 0x443be9
cmp byte [esi + 0x8c], 0
jne 0x443be9
cmp dword [esi + 0x80], 0
je 0x443be9
mov ecx, esi
call fcn.0043eff0
push edi
push esi
call fcn.0044c0e0
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
js 0x443c25
mov edx, dword [0x4c6060]
and eax, 0x3fffffff
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x14]
push 0x17
lea ecx, [esi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
Function at 0x443c30
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
xor ebp, ebp
cmp word [esi + 4], bp
push edi
mov ebx, ecx
je 0x443c4a
add word [esi + 6], 1
add dword [ebx + 0x84], 1
push esi
push ebx
call fcn.0044c190
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x24]
mov dword [esp + 0x18], eax
add esp, 8
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], reloc.WSOCK32.dll_connect
call edx
cmp dword [esp + 0x14], ebp
jle 0x443ce9
jmp 0x443c90
mov eax, dword [esp + 0x10]
mov eax, dword [eax + ebp*4]
movzx edx, word [eax + 0x1fc]
xor ecx, ecx
test edx, edx
jle 0x443cbe
mov edi, dword [eax + 0x1f8]
lea ebx, [ebx]
cmp dword [edi], esi
je 0x443cc1
add ecx, 1
add edi, 4
cmp ecx, edx
jl 0x443cb0
or ecx, 0xffffffff
add word [eax + 0x1fc], 0xffff
movzx edx, word [eax + 0x1fc]
mov eax, dword [eax + 0x1f8]
movzx edx, dx
mov edx, dword [eax + edx*4]
add ebp, 1
mov dword [eax + ecx*4], edx
cmp ebp, dword [esp + 0x14]
jl 0x443c90
mov ebp, dword [esi + 0xc]
push esi
mov ecx, ebp
call fcn.004556e0
cmp word [esi + 4], 0
mov dword [esi + 8], 0
je 0x443d1a
add word [esi + 6], 0xffff
movzx eax, word [esi + 6]
test ax, ax
jne 0x443d1a
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
cmp word [ebp + 0x22], 0xffff
mov eax, dword [ebp + 0x18]
jne 0x443d55
mov cx, word [eax + 0x44]
lea edi, [eax + 0x40]
mov word [ebp + 0x22], cx
mov edx, dword [edi + 8]
and edx, 0x3fffffff
cmp dword [edi + 4], edx
jne 0x443d49
push 4
push edi
call fcn.00402730
add esp, 8
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [ecx + eax*4], ebp
add dword [edi + 4], 1
mov eax, dword [esp + 0x18]
test eax, eax
js 0x443d87
mov edx, dword [0x4c6060]
and eax, 0x3fffffff
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x10]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
or edi, 0xffffffff
add dword [ebx + 0x84], edi
jne 0x443dab
cmp byte [ebx + 0x8c], 0
jne 0x443dab
cmp dword [ebx + 0x80], 0
je 0x443dab
mov ecx, ebx
call fcn.0043eff0
cmp word [esi + 4], 0
je 0x443dc9
add word [esi + 6], di
movzx eax, word [esi + 6]
test ax, ax
jne 0x443dc9
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x444e40
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 8
cmp dword [ecx + 0x84], 0
je 0x444e68
mov eax, dword [esp + 0xc]
lea edx, [esp]
push edx
mov byte [esp + 4], 0xb
mov dword [esp + 8], eax
call fcn.0043f010
add esp, 8
ret 4
add esp, 8
jmp fcn.00443c30

Function at 0x4453b0
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [esi + 0x24], 0
je 0x4453f8
mov ecx, 0x4c6080
call fcn.00404790
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4453e0
mov edx, dword [esi + 0x24]
mov dword [eax + 0x24], edx
or eax, 0xffffffff
push 0x4c6080
mov dword [0x4c6098], eax
mov dword [0x4c609c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test byte [esp + 8], 1
je 0x445433
test esi, esi
je 0x445433
mov eax, dword [0x4c6060]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x5c]
cmp ecx, dword [eax + 0x34]
jl 0x445427
push esi
push 4
mov ecx, eax
call fcn.004022b0
mov eax, esi
pop esi
ret 4
mov edx, dword [eax + 0x58]
add dword [eax + 0x5c], 1
mov dword [esi], edx
mov dword [eax + 0x58], esi
mov eax, esi
pop esi
ret 4

Function at 0x445c30
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, dword [esi + 0x54]
xor ebx, ebx
cmp ebp, ebx
push edi
je 0x445c64
mov eax, dword [0x4c6060]
movzx edi, word [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 2
shl edi, 5
push edi
push ebp
mov ecx, eax
call fcn.004023e0
mov word [esi + 0x50], bx
mov dword [esi + 0x54], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x445cf5
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x445cf5
mov edx, dword [ecx + 0xc]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + edx*4 + 0x110]
xor bl, bl
test eax, 0x100
je 0x445c97
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
jmp 0x445ca7
test eax, 0x200
je 0x445cf5
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov bl, 1
mov cl, byte [esi + 0xd8]
cmp cl, 7
je 0x445cb7
cmp cl, 6
jne 0x445cbb
test bl, bl
jne 0x445cf5
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov edi, eax
mov word [esi + 0x50], di
mov ecx, dword [0x4c6060]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 2
shl edi, 5
push edi
mov ecx, eax
call fcn.00402380
mov dword [esi + 0x54], eax
mov dword [esi + 0x30], 1
mov dword [esi + 0x40], 0
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x4468b0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
push esi
mov dword [esi], vtable.hkpEntity.0
call fcn.0044bce0
mov ebx, dword [esi + 0xcc]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
add esp, 4
test ebx, ebx
je 0x446903
mov ecx, ebx
call fcn.00446af0
mov eax, dword [0x4c6060]
push eax
call edi
mov ecx, dword [eax + 0x4c]
cmp ecx, dword [eax + 0x34]
jl 0x4468f7
push ebx
push 2
mov ecx, eax
call fcn.004022b0
jmp 0x446903
mov edx, dword [eax + 0x48]
add dword [eax + 0x4c], 1
mov dword [ebx], edx
mov dword [eax + 0x48], ebx
movzx eax, word [esi + 0x1fe]
test eax, 0x8000
jne 0x446938
and eax, 0x3fff
mov ebx, eax
mov eax, dword [0x4c6060]
push eax
call edi
mov edx, dword [esi + 0x1f8]
push 0x17
lea ecx, [ebx*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
movzx eax, word [esi + 0x1f6]
test eax, 0x8000
jne 0x44696d
and eax, 0x3fff
mov ebx, eax
mov eax, dword [0x4c6060]
push eax
call edi
mov edx, dword [esi + 0x1f0]
push 0x17
lea ecx, [ebx*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
lea ecx, [esi + 0xd0]
call fcn.004477e0
mov eax, dword [esi + 0xb4]
test eax, eax
js 0x4469a2
and eax, 0x3fffffff
mov ebx, eax
mov eax, dword [0x4c6060]
push eax
call edi
mov ecx, dword [esi + 0xac]
push 0x17
push ebx
push ecx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esi + 0xa8]
test eax, eax
js 0x4469d4
mov edx, dword [0x4c6060]
and eax, 0x3fffffff
push edx
mov ebx, eax
call edi
mov edx, dword [esi + 0xa0]
push 0x17
lea ecx, [ebx*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
movzx eax, word [esi + 0x9e]
test eax, 0x8000
jne 0x446a08
and eax, 0x3fff
mov ebx, eax
mov eax, dword [0x4c6060]
push eax
call edi
mov edx, dword [esi + 0x98]
push 0x17
lea ecx, [ebx + ebx*2]
shl ecx, 4
push ecx
push edx
mov ecx, eax
call fcn.004023e0
pop edi
mov ecx, esi
pop esi
pop ebx
jmp fcn.00446a20

Function at 0x446a20
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x10]
test ecx, ecx
push edi
mov dword [esi], vtable.hkpWorldObject.0
je 0x446a4f
cmp word [ecx + 4], 0
je 0x446a4f
add word [ecx + 6], 0xffff
movzx eax, word [ecx + 6]
test ax, ax
jne 0x446a4f
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esi + 0x7c]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
js 0x446a7c
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call ebx
mov ecx, dword [esi + 0x74]
push 0x17
shl edi, 4
push edi
push ecx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esi + 0x64]
test eax, eax
js 0x446aa8
mov edx, dword [0x4c6060]
and eax, 0x3fffffff
push edx
mov edi, eax
call ebx
mov edx, dword [esi + 0x5c]
push 0x17
lea ecx, [edi*8]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
pop edi
mov dword [esi], vtable.hkBaseObject.0
pop esi
pop ebx
ret
Function at 0x4481d0
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 8]
mov cl, byte [eax + 0x25]
and cl, 0xfd
or cl, 1
mov byte [eax + 0x25], cl
cmp dword [esi + 0x84], 0
je 0x448218
cmp dword [esp + 0x14], 0
je 0x44820c
cmp dword [esi + 0x118], 0
je 0x44820c
push edi
push esi
call fcn.0044c710
add esp, 8
push edi
call fcn.00459c90
add esp, 4
pop edi
pop esi
ret
cmp dword [esp + 0x14], 0
mov dword [esi + 0x84], 1
je 0x44823c
cmp dword [esi + 0x118], 0
je 0x44823c
push edi
push esi
call fcn.0044c710
add esp, 8
push edi
call fcn.00459c90
add esp, 4
add dword [esi + 0x84], 0xffffffff
jne 0x448215
cmp byte [esi + 0x8c], 0
jne 0x448215
cmp dword [esi + 0x80], 0
je 0x448215
pop edi
mov ecx, esi
pop esi
jmp fcn.0043eff0

Function at 0x4483d0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x18]
cmp byte [ebp + 0xd8], 7
push esi
mov esi, dword [esp + 0x18]
mov dword [ebp + 8], esi
jne 0x4483f8
mov ecx, dword [esi + 0x20]
push ebp
call fcn.00455760
pop esi
pop ebp
add esp, 0xc
ret
cmp byte [esi + 0xb8], 0
push ebx
push edi
je 0x448524
cmp dword [esp + 0x28], 1
sete al
test al, al
mov byte [esp + 0x13], al
je 0x4484f7
mov edx, dword [esi + 0x2c]
lea edi, [esi + 0x28]
xor ebx, ebx
lea eax, [edx - 0xa]
test eax, eax
setl bl
mov dword [esp + 0x18], edx
sub edx, 1
sub ebx, 1
and ebx, eax
cmp edx, ebx
jl 0x44847e
mov ebp, dword [edi]
lea ebp, [ebp + edx*4]
mov esi, dword [ebp]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x4c]
add eax, 3
add ecx, 1
cmp ecx, eax
jle 0x448456
mov eax, ecx
test byte [esi + 0x26], 0xc
je 0x44846c
mov ecx, dword [esp + 0x20]
cmp eax, dword [ecx + 0xa4]
jl 0x4484fc
sub edx, 1
sub ebp, 4
cmp edx, ebx
jge 0x448441
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov ecx, dword [0x4c6060]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x32
push 0x6c
mov ecx, eax
call fcn.00402380
push esi
mov ecx, eax
mov word [eax + 4], 0x6c
call fcn.00455d80
mov esi, eax
mov al, byte [esp + 0x13]
mov dl, byte [esi + 0x26]
and al, 3
mov cl, al
add cl, cl
and dl, 0xf3
add cl, cl
or dl, cl
and dl, 0xfc
or dl, al
mov byte [esi + 0x26], dl
mov dx, word [edi + 4]
movzx eax, dl
mov word [esi + 0x20], dx
mov byte [esi + 0x24], al
mov ecx, dword [edi + 8]
and ecx, 0x3fffffff
cmp dword [edi + 4], ecx
jne 0x4484e9
push 4
push edi
call fcn.00402730
add esp, 8
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov dword [eax + edx*4], esi
add dword [edi + 4], 1
jmp 0x448529
lea edi, [esi + 0x34]
jmp 0x44847e
mov edx, dword [edi]
mov eax, dword [esp + 0x18]
mov ecx, dword [edx + eax*4 - 4]
mov dl, byte [ecx + 0x25]
mov eax, dword [esp + 0x24]
and dl, 0xf7
or dl, 4
push eax
mov byte [ecx + 0x25], dl
call fcn.00455760
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xc
ret
mov ecx, dword [esi + 0x28]
mov esi, dword [ecx]
push ebp
mov ecx, esi
call fcn.00455760
mov dl, byte [ebp + 0xc0]
pop edi
pop ebx
mov byte [esi + 0x24], dl
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x449d60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x34
mov ecx, dword [ebp + 0xc]
push ebx
add ecx, 0x10
xor eax, eax
cmp dword [ecx], eax
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x449e94
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x2f8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [0x4c6060]
push eax
mov dword [esp + 0x1c], bind
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x20]
lea edx, [esi*8 + 0x10]
and edx, 0xfffffff0
lea edi, [ecx + edx]
cmp edi, dword [eax + 0x2c]
ja 0x449dc1
mov dword [eax + 0x20], edi
mov eax, ecx
jmp 0x449dcb
mov edi, dword [eax]
push edx
mov edx, dword [edi + 0x14]
mov ecx, eax
call edx
mov ecx, dword [ebx + 0x6c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
push 1
lea eax, [ebp + 0xc]
push eax
or esi, 0x80000000
push ecx
mov dword [esp + 0x24], esi
call fcn.00456ef0
mov esi, dword [ebp + 0xc]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
add esi, 0x30
mov ecx, 8
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x54]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
add eax, 0x14
push eax
call edx
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x449e41
mov ecx, dword [ebx + 0x70]
test ecx, ecx
je 0x449e30
add ecx, 8
jmp 0x449e32
xor ecx, ecx
push ecx
mov ecx, dword [ebx + 0x58]
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.00481290
mov ecx, dword [0x4c6060]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [esp + 0x1c]
push ecx
call edi
cmp esi, dword [eax + 0x28]
mov dword [eax + 0x20], esi
jne 0x449e66
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
push esi
call eax
mov eax, dword [esp + 0x18]
test eax, eax
js 0x449e94
mov ecx, dword [0x4c6060]
and eax, 0x3fffffff
push ecx
mov esi, eax
call edi
mov ecx, dword [esp + 0x10]
push 0x17
lea edx, [esi*8]
push edx
push ecx
mov ecx, eax
call fcn.004023e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret