joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489783
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x489820
push ebx
push esi
call fcn.0048974c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004896e0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4897cd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x48981f
push edi
push eax
call fcn.0048a3a0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4897ed
call fcn.00488241
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x48981e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004896e0
add esp, 0x20
test eax, eax
jne 0x48980c
push edi
call fcn.00488241
jmp 0x489814
push ebx
call fcn.00488241
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x48ab1d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4aeab0
push 0x4aeaa8
push str.FlsAlloc
push 0x1f
call fcn.0048a9dc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48ab51
push dword [ebp + 8]
mov ecx, esi
call dword [0x491130]
call esi
jmp 0x48ab57
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48ab9b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4aeac0
push 0x4aeab8
push str.FlsGetValue
push 0x21
call fcn.0048a9dc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48abd2
push dword [ebp + 8]
mov ecx, esi
call dword [0x491130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x48abda
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4aeac8
push 0x4aeac0
push str.FlsSetValue
push 0x22
call fcn.0048a9dc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48ac14
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x491130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x490080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4900ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4900ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406520
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b1d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x44
call fcn.00406a60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x54
call fcn.00406a60
mov byte [ebp - 4], 1
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x64
call fcn.00406a60
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0
push 0x28
push 0
mov edx, dword [ebp - 0x1c]
add edx, 8
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x14
push 0
mov eax, dword [ebp - 0x1c]
add eax, 0x30
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0xda36a4
Capabilities:
Encode data using xor

Disassembly:
jmp 0xda36ae
pushal
call 0xda36b4
pop ebp
sub ebp, 0x10
sub ebp, 0x9a36a4
jmp 0xda36ca
mov eax, 0x9a36a4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5e4
mov edx, 0x4476f10
xor byte [eax], dl
inc eax
dec ecx
jne 0xda36e1
jmp 0xda36f4
wait
fstp qword [ebx + 0x10102c99]
adc byte [ecx + 0x1010e8d1], dl
adc byte [ebx], dl
invalid
Function at 0x40ce90
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x48
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040cb00
add esp, 8
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 8]
push eax
call fcn.004947e0
add esp, 4
mov ecx, eax
call fcn.00499860
cmp dword [eax + 4], 0
je 0x40cecb
mov esi, dword [eax]
jmp 0x40ced0
mov esi, 0x60f5ec
call fcn.004a26b0
mov ecx, eax
call fcn.004a5030
push esi
push eax
lea eax, [esp + 0x14]
push str.unreal_v_i__s.dmp
push eax
call fcn.004116b0
mov esi, dword [esp + 0x1c]
add esp, 0x10
cmp dword [esp + 0x10], 0
mov ecx, 0x60f5ec
mov edx, 0x6bf710
cmovne ecx, esi
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40cf10
test esi, esi
je 0x40cf2d
push esi
call fcn.0043f8f0
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40cf3e
push eax
call fcn.0043f8f0
add esp, 4
lea eax, [esp + 0x24]
push eax
call fcn.0040cf80
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40cf5e
push eax
call fcn.0043f8f0
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40cf6f
push eax
call fcn.0043f8f0
add esp, 4
mov eax, esi
pop esi
add esp, 0x48
ret

Function at 0x40dfe0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x6ab4cc], 0
jne 0x40dff0
call fcn.006092e0
nop
int3
push esi
mov esi, dword [esp + 8]
xor eax, eax
test esi, esi
jle 0x40e040
push edi
mov edi, dword [esp + 0x10]
movzx edx, word [edi]
lea edi, [edi + 2]
lea ecx, [edx - 0x61]
cmp ecx, 0x1a
sbb ecx, ecx
and ecx, 0x20
sub dx, cx
movzx edx, dx
mov ecx, edx
shr edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6ab4c8]
xor edx, eax
shr eax, 8
movzx ecx, dl
xor eax, dword [ecx*4 + 0x6ab4c8]
sub esi, 1
jne 0x40e000
pop edi
pop esi
ret
Function at 0x40e240
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ecx]
push esi
push edi
test ebx, ebx
je 0x40e36c
or eax, 0xffffffff
lock xadd dword [ebx + 0x34], eax
dec eax
jne 0x40e36c
lea esi, [ebx + 8]
xor eax, eax
xor edx, edx
xor edi, edi
xor ecx, ecx
push ebx
mov ebx, edi
lock cmpxchg8b qword [esi]
mov edi, ebx
pop ebx
and eax, 0x4000000
mov dword [esp + 0x14], edx
or eax, ecx
jne 0x40e2a7
xor edx, edx
push ebx
mov ebx, edi
lock cmpxchg8b qword [esi]
mov edi, ebx
pop ebx
and eax, 0x4000000
mov dword [esp + 0x14], edx
or eax, ecx
jne 0x40e2a7
call fcn.006094e0
nop
int3
mov eax, dword [ebx + 0x28]
lea esi, [ebx + 0x18]
mov edi, dword [ebx + 0x2c]
test eax, eax
cmovne esi, eax
test edi, edi
je 0x40e2d2
nop dword [eax]
mov ecx, esi
call fcn.0040e240
add esi, 4
sub edi, 1
jne 0x40e2c0
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x40e2df
push eax
call fcn.0043f8f0
add esp, 4
push dword [0x6bab68]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x40e326
push 0xc
call fcn.0040cad0
mov esi, eax
add esp, 4
test esi, esi
je 0x40e317
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
jmp 0x40e319
xor esi, esi
push esi
push dword [0x6bab68]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [esi + 8], 0x20
jl 0x40e361
mov eax, dword [esi]
test eax, eax
je 0x40e33d
push eax
mov ecx, 0x6bab70
call fcn.00411920
mov eax, dword [esi + 4]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebx], eax
inc dword [esi + 8]
mov dword [esi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov dword [ebx], eax
inc dword [esi + 8]
mov dword [esi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ed50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov ecx, 0x6bac28
jmp fcn.004114f0

Function at 0x410400
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push dword [0x6bac28]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x410448
push 0xc
call fcn.0040cad0
mov esi, eax
add esp, 4
test esi, esi
je 0x410439
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
jmp 0x41043b
xor esi, esi
push esi
push dword [0x6bac28]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [esi + 8], 0x40
jl 0x410472
mov eax, dword [esi]
test eax, eax
je 0x41045f
push eax
mov ecx, 0x6bac30
call fcn.00411810
mov eax, dword [esi + 4]
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov edx, dword [esp + 8]
test edx, edx
jne 0x41047e
xor ecx, ecx
jmp 0x410495
mov eax, edx
mov ecx, edx
shr eax, 0xe
and ecx, 0x3fff
shl ecx, 4
add ecx, dword [eax*4 + 0x6bad3c]
mov eax, dword [ecx + 4]
and dword [ecx], 0xfc000000
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], 0
mov eax, dword [esi + 4]
mov dword [ecx + 8], eax
inc dword [esi + 8]
mov dword [esi + 4], edx
pop esi
ret
Function at 0x4114f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x411537
push 0xc
call fcn.0040cad0
mov edi, eax
add esp, 4
test edi, edi
je 0x41152c
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
jmp 0x41152e
xor edi, edi
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [edi + 4]
test esi, esi
jne 0x411673
mov eax, dword [edi]
test eax, eax
je 0x411552
mov dword [edi + 4], eax
mov dword [edi], esi
jmp 0x411661
lea ecx, [ebx + 8]
call fcn.004113a0
mov dword [edi + 4], eax
test eax, eax
jne 0x411661
mov esi, 0x40
mov eax, 0x6bacf8
lock xadd dword [eax], esi
lea ebx, [esi + 0x40]
mov dword [esp + 0x14], esi
cmp ebx, 0x4000000
jbe 0x4115a7
push 0x4000000
push str.Consumed__d_lock_free_links__there_are_no_more.
push 1
push 0x700908
push 0x30
push str.D:_build_Portal_Sync_Engine_Source_Runtime_Core_Private_Containers_LockFreeList.cpp
call fcn.0047fa60
add esp, 0x18
call fcn.00483d90
push ebp
mov ebp, esi
cmp esi, ebx
jae 0x411619
mov esi, ebx
mov eax, ebp
mov ebx, ebp
shr eax, 0xe
and ebx, 0x3fff
cmp dword [eax*4 + 0x6bad3c], 0
lea eax, [eax*4 + 0x6bad3c]
mov dword [esp + 0x10], eax
jne 0x411605
push 0
push 0x40000
call fcn.00448ff0
mov edx, dword [esp + 0x18]
mov ecx, eax
mov dword [esp + 0x1c], eax
add esp, 8
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x411601
push dword [esp + 0x14]
call fcn.0043f8f0
add esp, 4
mov eax, dword [esp + 0x10]
shl ebx, 4
inc ebp
add ebx, dword [eax]
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
cmp ebp, esi
jb 0x4115b0
mov esi, dword [esp + 0x18]
mov edx, 0x40
pop ebp
nop
test esi, esi
jne 0x411628
xor eax, eax
jmp 0x41163e
mov ecx, esi
mov eax, esi
shr ecx, 0xe
and eax, 0x3fff
shl eax, 4
add eax, dword [ecx*4 + 0x6bad3c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 0xc], 0
mov ecx, dword [edi + 4]
mov dword [eax + 8], ecx
mov dword [edi + 4], esi
inc esi
sub edx, 1
jne 0x411620
mov esi, dword [edi + 4]
mov dword [edi + 8], 0x40
test esi, esi
jne 0x411673
xor edx, edx
jmp 0x41168a
mov eax, esi
mov edx, esi
shr eax, 0xe
and edx, 0x3fff
shl edx, 4
add edx, dword [eax*4 + 0x6bad3c]
mov ecx, dword [edx + 8]
mov eax, esi
dec dword [edi + 8]
mov dword [edi + 4], ecx
pop edi
pop esi
mov dword [edx + 8], 0
pop ebx
add esp, 0xc
ret
Function at 0x411a40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
add edi, 8
xor edx, edx
xor ecx, ecx
mov esi, eax
push ebx
mov ebx, esi
lock cmpxchg8b qword [edi]
mov esi, ebx
pop ebx
mov esi, dword [ebp + 8]
and eax, 0x4000000
or eax, ecx
mov dword [esp + 0xc], edx
jne 0x411a9a
xor eax, eax
xor edx, edx
mov esi, eax
push ebx
mov ebx, esi
lock cmpxchg8b qword [edi]
mov esi, ebx
pop ebx
and eax, 0x4000000
mov dword [esp + 0xc], edx
or eax, esi
mov esi, dword [ebp + 8]
jne 0x411a9a
call fcn.006094e0
nop
int3
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x18]
mov edi, dword [ecx + 0x14]
test eax, eax
mov esi, ecx
cmovne esi, eax
test edi, edi
je 0x411ac7
nop
mov ecx, esi
call fcn.0040e240
add esi, 4
sub edi, 1
jne 0x411ab0
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x28]
jmp 0x411aca
mov edi, dword [ebp + 8]
test eax, eax
je 0x411ad7
push eax
call fcn.0043f8f0
add esp, 4
push dword [0x6bab68]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x411b1e
push 0xc
call fcn.0040cad0
mov esi, eax
add esp, 4
test esi, esi
je 0x411b0f
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
jmp 0x411b11
xor esi, esi
push esi
push dword [0x6bab68]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [esi + 8], 0x20
jl 0x411b58
mov eax, dword [esi]
test eax, eax
je 0x411b35
push eax
mov ecx, 0x6bab70
call fcn.00411920
mov eax, dword [esi + 4]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [edi], eax
inc dword [esi + 8]
mov dword [esi + 4], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov dword [edi], eax
inc dword [esi + 8]
mov dword [esi + 4], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41d470
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
test ebp, ebp
je 0x41d488
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x20], edi
jmp 0x41d490
mov dword [esp + 0x20], 0
call fcn.004104d0
mov ebx, eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41d4d6
push 0xc
call fcn.0040cad0
mov esi, eax
add esp, 4
test esi, esi
je 0x41d4cb
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
jmp 0x41d4cd
xor esi, esi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [esi + 4]
test edi, edi
jne 0x41d572
mov edi, dword [esi]
test edi, edi
je 0x41d4fe
mov dword [esi + 4], edi
mov eax, 0x20
mov dword [esi], 0
mov dword [esi + 8], 0x20
jmp 0x41d575
lea ecx, [ebx + 8]
call fcn.004113a0
xor edi, edi
test eax, eax
je 0x41d52f
mov ecx, eax
mov edx, eax
shr ecx, 0xe
and edx, 0x3fff
shl edx, 4
push eax
add edx, dword [ecx*4 + 0x6bad3c]
mov edi, dword [edx + 8]
call fcn.00410400
add esp, 4
mov dword [esi + 4], edi
test edi, edi
jne 0x41d564
push edi
push 0x2000
call fcn.00449020
add esp, 8
mov dword [esi + 4], eax
mov edx, 0x1f
nop dword [eax]
lea ecx, [eax + 0x100]
mov dword [eax], ecx
mov eax, ecx
sub edx, 1
jne 0x41d550
mov dword [ecx], edx
mov edi, dword [esi + 4]
mov dword [esi + 8], 0x20
mov eax, 0x20
jmp 0x41d575
mov eax, dword [esi + 8]
mov edx, dword [edi]
add eax, 0xffffffff
mov dword [esi + 4], edx
mov dword [esi + 8], eax
js 0x41d594
xor ecx, ecx
test eax, eax
setne cl
xor eax, eax
test edx, edx
setne al
cmp ecx, eax
je 0x41d59b
call fcn.006095e0
nop
int3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
inc eax
mov dword [edi], 0x610898
mov dword [edi + 4], 0xff
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [edi + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [edi], 0x61fedc
mov byte [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [eax], edi
pop edi
pop esi
mov dword [eax + 4], ebp
pop ebp
mov dword [eax + 8], ecx
pop ebx
add esp, 8
ret
Function at 0x432fe0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push esi
not eax
movzx ecx, word [edx]
add edx, 2
mov si, cx
mov dword [esp + 0xc], ecx
test si, si
je 0x433058
nop dword [eax]
xor ecx, eax
shr si, 8
movzx ecx, cl
lea edx, [edx + 2]
shr eax, 8
mov word [esp + 0xc], si
xor eax, dword [ecx*4 + 0x6a94c8]
mov ecx, dword [esp + 0xc]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6a94c8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x6a94c8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x6a94c8]
movzx ecx, word [edx - 2]
mov si, cx
mov dword [esp + 0xc], ecx
test si, si
jne 0x433000
not eax
pop esi
ret

Function at 0x434540
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, ecx
lea esi, [edi + 0xc]
mov dword [edi], 0x620dc8
push esi
mov dword [edi + 4], eax
mov byte [edi + 8], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0xfa0
push esi
call dword [sym.imp.KERNEL32.dll_SetCriticalSectionSpinCount]
lea eax, [edi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeSRWLock]
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0x80
mov dword [edi + 0x54], 0xffffffff
mov dword [edi + 0x58], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0
push eax
mov dword [edi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x43f960
Capabilities:
Set thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x30], eax
je 0x43f976
call fcn.0060af30
nop
int3
mov eax, dword [0x6dfc44]
cmp eax, 0xffffffff
jne 0x43f98c
call fcn.0060b110
nop
int3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x43f9bb
mov ecx, dword [esi]
test ecx, ecx
je 0x43f9ae
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], 0
add esi, 4
cmp esi, edi
jne 0x43f9a2
pop edi
pop esi
ret

Function at 0x43fe60
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x20]
cmp dword [edi], 0xffffffff
jne 0x43fe97
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43fe82
call fcn.0060b0d0
nop
int3
mov ecx, esi
or eax, 0xffffffff
lock cmpxchg dword [edi], ecx
cmp eax, 0xffffffff
je 0x43fe97
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
push dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
test eax, eax
jne 0x43ff38
push ebp
lea ecx, [esp + 0x1c]
call fcn.0040f030
push dword [esp + 0x20]
call dword [esp + 0x20]
add esp, 4
mov ebp, eax
push dword [0x6dfc44]
call esi
test eax, eax
je 0x43ff2c
mov ecx, dword [eax + 0x20]
lea esi, [eax + 0x20]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ebp
mov dword [esp + 0xc], eax
cmp eax, ecx
jb 0x43ff0b
mov eax, dword [esi + 8]
lea eax, [ecx + eax*4]
lea ecx, [esp + 0x24]
cmp ecx, eax
jae 0x43ff0b
lea eax, [esp + 0xc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
call fcn.00609110
add esp, 4
nop
int3
push ebx
mov ebx, dword [esi + 4]
lea eax, [ebx + 1]
mov dword [esi + 4], eax
cmp eax, dword [esi + 8]
jle 0x43ff22
push ebx
mov ecx, esi
call fcn.0044c6e0
mov ecx, dword [esi]
mov eax, dword [esp + 0x28]
mov dword [ecx + ebx*4], eax
pop ebx
push ebp
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, ebp
pop ebp
pop edi
pop esi
add esp, 0xc
ret
Function at 0x455690
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
push ebp
push edi
mov edi, ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0
cmp dword [edi + 0x20], 0
lea ecx, [edi + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], 0
jge 0x4556d7
call fcn.00609320
nop
int3
cmp dword [ecx + 0x14], 0
je 0x4556ea
lea ecx, [esp + 8]
call fcn.00410370
mov ecx, dword [esp + 0x10]
movups xmm0, xmmword [esp + 8]
mov eax, dword [esp + 0x18]
mov edx, edi
mov dword [esp + 0x20], edx
movups xmmword [esp + 0x24], xmm0
movq xmm0, qword [esp + 0x18]
movq qword [esp + 0x34], xmm0
cmp eax, dword [ecx + 0x14]
jge 0x45578e
mov ecx, dword [esp + 0x34]
push ebx
push esi
nop word [eax + eax]
imul esi, ecx, 0x84
add esi, dword [edx]
mov dword [esi + 0x78], 0
mov eax, dword [esi + 0x74]
test eax, eax
je 0x45573f
push eax
call fcn.0043f8f0
add esp, 4
lea ecx, [esi + 0x40]
call fcn.004353c0
mov dword [esi + 0x3c], 0
mov eax, dword [esi + 0x38]
test eax, eax
je 0x45575e
push eax
call fcn.0043f8f0
add esp, 4
lea ecx, [esi + 4]
call fcn.004353c0
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
not eax
and dword [esp + 0x38], eax
call fcn.00410370
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [eax + 0x14]
jge 0x45578c
mov edx, dword [esp + 0x28]
jmp 0x455720
pop esi
pop ebx
cmp dword [edi + 8], 0
mov dword [edi + 4], 0
je 0x4557a4
push 0
mov ecx, edi
call fcn.00471cf0
mov dword [edi + 0x28], 0xffffffff
mov dword [edi + 0x2c], 0
mov eax, dword [edi + 0x24]
mov dword [edi + 0x20], 0
test eax, eax
js 0x4557c7
cmp eax, 0x80
jle 0x4557d8
push 0
lea ecx, [edi + 0xc]
mov dword [edi + 0x24], 0x80
call fcn.00411980
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4557e8
push eax
call fcn.0043f8f0
add esp, 4
mov eax, dword [edi]
pop edi
pop ebp
test eax, eax
je 0x4557f9
push eax
call fcn.0043f8f0
add esp, 4
add esp, 0x34
ret