joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434470
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 4], 0xffffffff
jmp 0x434490
mov edi, 8
lea eax, [ebp - 0x14]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
mov edi, edi
lea ecx, [ebp - 8]
cmp edi, 0xffffffff
lea esi, [ebp - 4]
cmovbe esi, ecx
mov esi, dword [esi]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x4344c3
cmp byte [0x5605d4], al
jne 0x434507
int3
test bl, 1
je 0x4344d6
lea ecx, [ebp - 0xc4]
and ebx, 0xfffffffe
call fcn.00427630
mov eax, dword [ebp - 0xc]
sub edi, esi
add eax, esi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
test edi, edi
jne 0x4344a0
cmp dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x14]
jb 0x4344f9
ja 0x434490
cmp eax, 0xffff7fff
ja 0x434490
pop edi
pop esi
and eax, 0x7fff
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.004e6141
int3

Function at 0x436ae0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
push edi
mov edi, edx
test ebx, ebx
je 0x436b4a
cmp dword [0x560740], 0
jne 0x436b37
push 0x44
call fcn.004d9e06
add esp, 4
test eax, eax
je 0x436b18
mov ecx, eax
call fcn.00424270
mov edx, eax
jmp 0x436b1a
xor edx, edx
mov ecx, edx
mov esi, 0x560740
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x436b37
test edx, edx
je 0x436b37
push ecx
mov ecx, edx
call fcn.00424230
mov eax, dword [0x560740]
cmp dword [eax], 1
jl 0x436b4a
mov dword [ebp - 4], 0x10000
jmp 0x436b4c
xor ebx, ebx
push 0xc
call fcn.004d9e06
add esp, 4
mov esi, eax
push 0
push dword [ebp - 4]
mov dword [esi], edi
mov edi, dword [ebp + 8]
test edi, edi
push esi
push 0x4369e0
setne cl
push ebx
mov byte [esi + 4], cl
mov ecx, dword [ebp + 0xc]
push 0
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x436b95
push esi
call fcn.004d8fe0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x436ba4
mov dword [edi], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43b090
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
cmp dword [edi + 0x14], 8
jb 0x43b0a2
mov edi, dword [edi]
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x43b0b9
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 1
push ebx
call fcn.004dabea
mov esi, eax
add esp, 8
test esi, esi
je 0x43b132
push esi
push ebx
push dword [ebp - 8]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x43b129
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x43b129
cmp dword [ebp - 4], 0
je 0x43b129
push 0x10
call fcn.004d9e06
add esp, 4
test eax, eax
je 0x43b132
mov edx, dword [ebp - 4]
movzx ecx, word [edx + 2]
push ecx
movzx ecx, word [edx]
push ecx
push esi
mov ecx, eax
call fcn.0043aeb0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004dac2a
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43ba70
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov dword [ebp - 0x224], eax
movzx eax, word [edi + 8]
mov word [ebp - 0x14], ax
movzx eax, word [edi + 0xa]
mov word [ebp - 0x12], ax
call esi
mov word [ebp - 0x10], ax
movzx eax, word [edi + 0xa]
mov word [ebp - 0xe], ax
movzx eax, word [edi + 8]
mov word [ebp - 0xc], ax
mov eax, 0x4e4
mov word [ebp - 0xa], ax
call esi
mov word [ebp - 8], ax
xor esi, esi
mov eax, 0x4e4
mov word [ebp - 6], ax
lea ebx, [ebx]
movzx eax, word [ebp + esi*2 - 0x12]
movzx ecx, word [ebp + esi*2 - 0x14]
add esi, 2
push ebx
push eax
push ecx
push 0x549b90
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004dceb7
add esp, 0x1c
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [edi + 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x43bb44
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x43bb5e
cmp esi, 8
jb 0x43bae0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x43bb88
mov ecx, dword [ebp - 0x224]
xor eax, eax
push eax
push edx
call fcn.004063d0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43bb90
mov ecx, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.004063d0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9c43
mov esp, ebp
pop ebp
ret 8
Function at 0x43ea10
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], edi
lea ecx, [ebp - 4]
cmp dword [edi + 0x70], 0
je 0x43ea67
push dword [edi + 0x70]
mov eax, dword [edi + 0x74]
push ecx
call eax
add esp, 8
mov esi, dword [eax]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x43ea4e
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi + 4]
mov dword [edi + 4], 0
test ecx, ecx
je 0x43ea62
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 4], esi
jmp 0x43ea9b
mov edx, dword [edi + 8]
call fcn.0043e1d0
mov esi, dword [eax]
mov dword [eax], 0
mov ecx, dword [edi + 4]
mov dword [edi + 4], 0
test ecx, ecx
je 0x43ea8b
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 4]
mov dword [edi + 4], esi
test ecx, ecx
je 0x43ea9b
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.004405d0
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x43eab2
call fcn.00461250
push ebx
mov ebx, dword [edi + 0xb4]
lea esi, [ebx + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x34], 0
mov byte [ebx + 0x42], 1
je 0x43eadc
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov byte [ebx + 0x40], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call ebx
mov edi, dword [edi + 0xb8]
lea esi, [edi + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
mov dword [edi + 0xc], eax
call ebx
mov esi, dword [ebp - 8]
pop ebx
mov ecx, dword [esi + 0xb8]
mov dword [esi + 0xb8], 0
test ecx, ecx
je 0x43eb4c
add ecx, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x43eb4c
test ecx, ecx
je 0x43eb45
mov eax, dword [ecx - 4]
add ecx, 0xfffffffc
call dword [eax + 0xc]
mov ecx, esi
call fcn.0043ebf0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, esi
call fcn.0043ebf0
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43ebf0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
push edi
mov ecx, dword [esi + 0xc0]
mov dword [esi + 0xc0], 0
test ecx, ecx
je 0x43ec19
push ecx
call fcn.00440c80
push 4
mov dword [esi + 0xc0], 0
call fcn.004d9e06
mov edi, eax
add esp, 4
test edi, edi
je 0x43ec64
mov eax, dword [esi + 0xbc]
mov dword [edi], eax
test eax, eax
je 0x43ec4b
mov ecx, 1
add eax, 4
lock xadd dword [eax], ecx
call fcn.00460420
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x43ec66
call fcn.00461250
jmp 0x43ec66
xor edi, edi
mov ecx, dword [esi + 0xc0]
mov dword [esi + 0xc0], 0
test ecx, ecx
je 0x43ec80
push ecx
call fcn.00440c80
mov dword [esi + 0xc0], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x440c80
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.00460420
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x440ca8
call fcn.00461250
mov ecx, dword [esi]
test ecx, ecx
je 0x440cd0
add ecx, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x440cd0
test ecx, ecx
je 0x440cc9
add ecx, 0xfffffffc
jmp 0x440ccb
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
push esi
call fcn.004d8fe0
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x451130
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], ecx
xor ebx, ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
test esi, esi
je 0x45119c
mov dword [ebp - 8], 0xffffffff
push edi
lea edx, [ebp - 0xc]
cmp esi, 0xffffffff
lea eax, [ebp - 8]
cmovbe eax, edx
mov edi, dword [eax]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x451177
cmp byte [0x5605d4], al
jne 0x4511a2
int3
test bl, 1
je 0x45118a
lea ecx, [ebp - 0xbc]
and ebx, 0xfffffffe
call fcn.00427630
mov ecx, dword [ebp - 4]
sub esi, edi
add ecx, edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x451154
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.004e6141
int3

Function at 0x451c30
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.00452f10
mov eax, dword [0x55c814]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
test edx, edx
jne 0x451c51
call fcn.004893f0
mov edx, eax
mov eax, dword [0x5605b8]
cmp dword [edx + eax*4], 0
jne 0x451c99
push 0x70
call fcn.004d9e06
add esp, 4
test eax, eax
je 0x451c76
push esi
mov ecx, eax
call fcn.00451920
mov esi, eax
jmp 0x451c78
xor esi, esi
mov eax, dword [0x55c814]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x451c91
call fcn.004893f0
mov ecx, eax
mov eax, dword [0x5605b8]
mov dword [ecx + eax*4], esi
pop esi
ret
Function at 0x451ca0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5605b4]
push ebx
push esi
push edi
test eax, eax
jne 0x451cb0
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x55c814]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x451cc9
call fcn.004893f0
mov ecx, eax
mov eax, dword [0x5605b8]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x451d60
mov ecx, 0x560590
xor edi, edi
xor ebx, ebx
call fcn.00431d60
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x56058c]
test ecx, ecx
je 0x451d09
mov eax, dword [ecx + 4]
mov edi, ecx
mov dword [0x56058c], eax
mov dword [ecx + 4], ebx
jmp 0x451d16
mov ebx, dword [0x5605c4]
inc ebx
mov dword [0x5605c4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x451d3d
push 0x70
call fcn.004d9e06
add esp, 4
test eax, eax
je 0x451d3b
push ebx
mov ecx, eax
call fcn.00451a20
mov edi, eax
jmp 0x451d3d
xor edi, edi
mov eax, dword [0x55c814]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x451d56
call fcn.004893f0
mov ecx, eax
mov eax, dword [0x5605b8]
mov dword [ecx + eax*4], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x45fa30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [edx]
push edi
mov dword [esi], eax
mov eax, dword [edx + 4]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
mov dword [esi + 8], eax
mov eax, dword [edx + 0xc]
mov dword [esi + 0xc], eax
call fcn.00460420
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, 1
mov eax, dword [eax]
mov dword [esi + 0x10], eax
test eax, eax
je 0x45fa7d
mov ecx, ebx
add eax, 4
lock xadd dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov edx, dword [edx]
test edx, edx
je 0x45faa8
mov eax, ebx
lock xadd dword [edx], eax
mov ecx, dword [esi + 0x1c]
or edi, 0xffffffff
mov dword [esi + 0x1c], edx
test ecx, ecx
je 0x45facc
mov eax, edi
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x45facc
mov eax, dword [ecx + 4]
push ecx
call eax
add esp, 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x45fae2
lock xadd dword [eax], ebx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x14], eax
test ecx, ecx
je 0x45fb01
lock xadd dword [ecx], edi
dec edi
setne al
test al, al
jne 0x45fb01
mov eax, dword [ecx + 4]
push ecx
call eax
add esp, 4
mov eax, dword [ebp + 0x10]
pop edi
mov eax, dword [eax + 4]
mov dword [esi + 0x18], eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4692c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 4], 0x54c5a8
mov dword [edi], 0x54c584
mov dword [edi + 4], 0x54c58c
mov dword [edi + 8], ebx
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov eax, dword [ebx + 0x218]
mov dword [edi + 0x20], eax
call fcn.004405d0
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call esi
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], edi
mov edx, dword [eax + 0x5c]
lea ecx, [eax + 0x58]
mov eax, dword [ecx]
cmp eax, edx
je 0x46934f
lea esp, [esp]
cmp dword [eax], edi
je 0x46934b
add eax, 4
cmp eax, edx
jne 0x469340
cmp eax, edx
jne 0x469358
lea eax, [ebp + 8]
push eax
call fcn.004426b0
call fcn.00460420
push dword [eax]
call esi
mov esi, dword [eax]
mov dword [ebp - 8], esi
test esi, esi
je 0x469376
mov ecx, 1
lea eax, [esi + 4]
lock xadd dword [eax], ecx
mov eax, dword [0x5606ec]
test eax, eax
jne 0x469384
call fcn.00498570
lea ecx, [ebp - 8]
push ecx
lea ecx, [edi + 4]
push ecx
mov ecx, eax
call fcn.00497070
test esi, esi
je 0x4693b9
lea ecx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x4693b9
test ecx, ecx
je 0x4693b2
add ecx, 0xfffffffc
jmp 0x4693b4
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [0x560564]
lea ecx, [ebx + 0x1dc]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00475bc0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x469430
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
mov dword [esp + 8], 0
push esi
lea esi, [ebx + 4]
mov dword [esi], 0x54c58c
push edi
mov dword [ebx], 0x54c584
call fcn.004405d0
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call edi
push ebx
lea ecx, [eax + 0x54]
call fcn.004419f0
mov eax, dword [0x5606ec]
test eax, eax
jne 0x46947b
call fcn.00498570
push esi
mov ecx, eax
call fcn.00497130
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x4694ee
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
cmp ecx, 0xffffffff
jne 0x4694a7
cmp edx, 0x7fffffff
jne 0x4694a7
movsd xmm0, qword [0x55c4c8]
jmp 0x4694b4
call fcn.004dc27f
divsd xmm0, qword [0x54fe30]
movd xmm1, esi
cvtdq2pd xmm1, xmm1
divsd xmm0, xmm1
movsd qword [esp + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov ecx, ebx
lea eax, [esp + 0x10]
push eax
sub esp, 0xc
push 0
call fcn.004695c0
add esp, 4
mov edx, esi
mov ecx, eax
call fcn.004751d0
add esp, 0xc
mov esi, dword [ebx + 8]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0xc], 0
je 0x46952c
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x218]
cmp dword [ebx + 0x20], eax
jne 0x46952c
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebx + 0xc]
push ecx
mov edx, esp
mov dword [ebx + 0xc], 0
mov dword [edx], eax
mov eax, dword [ecx]
push dword [ebx + 0x10]
call dword [eax + 8]
call fcn.004405d0
push dword [eax]
call edi
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov eax, dword [ebx + 8]
push ecx
add eax, 0x1dc
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.00470280
mov edi, dword [esp + 0x20]
mov eax, edi
mov edx, dword [esp + 0x24]
cmp edi, edx
je 0x46956a
mov eax, dword [eax]
cmp eax, edx
jne 0x469564
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push edi
push eax
call fcn.00470220
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 8]
push 0
push dword [eax + 0x1d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x46959b
call fcn.00461250
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x4695a8
push ecx
call fcn.00470ac0
pop edi
pop esi
mov dword [ebx], method.ATL::CAcl::CAce.virtual_4
mov dword [ebx + 4], 0x54c5a8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46a280
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esi + 0x1d4]
call edi
test eax, eax
jne 0x46a2f6
call fcn.004405d0
push dword [eax]
call edi
test eax, eax
je 0x46a2f6
push dword [esi + 0x1d0]
call edi
mov edx, eax
test edx, edx
je 0x46a2c6
mov ecx, dword [edx + 0x20]
cmp ecx, dword [esi + 0x218]
je 0x46a2f6
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax + 4]
push 0x28
call fcn.004d9e06
add esp, 4
test eax, eax
je 0x46a2de
push esi
mov ecx, eax
call fcn.004692c0
jmp 0x46a2e0
xor eax, eax
push eax
push dword [esi + 0x1d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x46a2f6
call fcn.00461250
pop edi
pop esi
pop ecx
ret
Function at 0x46acd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, ecx
mov dword [ebp - 8], 0
push esi
push edi
mov dword [ebp - 4], ebx
lea esi, [ebx + 4]
mov dword [ebp - 0x14], 0
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
push edi
call fcn.0046aff0
mov ecx, dword [ebx + 0x154]
cmp dword [ebx + 0x34], 0
mov dword [ebp + 8], eax
je 0x46ad3f
push edi
lea ecx, [ebx + 0x160]
call fcn.00494510
mov ecx, ebx
call fcn.0046a4a0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [ebx + 0x44], 0
je 0x46ad55
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebx + 0x34], 1
cmp eax, ecx
je 0x46ad6d
mov ecx, ebx
mov dword [ebx + 0x154], eax
call fcn.0046c480
inc dword [ebx + 0x38]
lea ecx, [ebp - 0x4c]
push edi
call fcn.00493d80
push eax
lea ecx, [ebx + 0x160]
call fcn.00494000
lea ecx, [ebp - 0x4c]
call fcn.00493f10
mov ecx, ebx
call fcn.0046a4a0
mov ecx, ebx
call fcn.0046a550
test byte [ebp + 8], 4
je 0x46ae9c
push 0x1c
call fcn.004d9e06
add esp, 4
test eax, eax
je 0x46adbe
mov ecx, eax
call fcn.00492f40
mov edi, eax
jmp 0x46adc0
xor edi, edi
mov ecx, dword [ebx + 0x158]
mov dword [ebx + 0x158], 0
test ecx, ecx
je 0x46addb
mov eax, dword [ecx]
push 1
call dword [eax + 4]
sub esp, 8
mov dword [ebx + 0x158], edi
mov ecx, esp
call fcn.004752a0
push str.bucket0
push 0x55fe70
mov ecx, edi
call fcn.00493200
mov edi, dword [ebx + 0x158]
sub esp, 8
mov ecx, esp
call fcn.004752a0
push str.bucket1
push 0x55fe74
mov ecx, edi
call fcn.00493200
mov edi, dword [ebx + 0x158]
sub esp, 8
mov ecx, esp
call fcn.004752a0
push str.bucket2
push 0x55fe78
mov ecx, edi
call fcn.00493200
mov edi, dword [ebx + 0x158]
push 0xc
call fcn.004d9e06
add esp, 4
mov dword [ebp + 8], eax
mov dword [eax], edi
lea edi, [ebx + 0x15c]
push 0
push 0
push eax
push 0x4369e0
test edi, edi
mov dword [eax + 8], 1
push 0
setne cl
push 0
mov byte [eax + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x46ae8d
push dword [ebp + 8]
call fcn.004d8fe0
add esp, 4
jmp 0x46ae9c
test edi, edi
je 0x46ae95
mov dword [edi], eax
jmp 0x46ae9c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x48]
mov byte [ebx + 0x44], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.0046e630
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
xor edi, edi
sub eax, dword [ebp - 0x14]
sar eax, 2
test eax, eax
je 0x46aeda
mov ebx, dword [ebp - 0x14]
mov esi, eax
mov ecx, dword [ebx + edi*4]
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
cmp edi, esi
jb 0x46aec7
mov ebx, dword [ebp - 4]
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [ebx + 0x44], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x46aefc
push eax
call fcn.004d8fe0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8