joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e9c0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0xa34], 0x8000
jne 0x47eabe
cmp dword [esi + 0x434], 0x200
jne 0x47eac1
push 0x599b50
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x47ea01
cmp byte [0x59d9c4], 0
je 0x47ea14
jmp 0x47ea4b
mov ecx, 0x599b50
call fcn.0047f4c0
cmp byte [0x59d9c4], 0
jne 0x47ea4b
cmp dword [0x5aac0c], 0
jne 0x47eac7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x47eaca
mov dword [0x59d970], eax
mov dword [0x5aac10], eax
mov dword [0x5aac0c], 0x47e7e0
mov byte [0x59d9c4], 1
push 0x599b50
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
lock cmpxchg dword [0x59d9c8], esi
jne 0x47eac4
mov dword [0x5aac14], 0x47eeb0
add esi, 0x48
mov eax, 0xffffffb0
jmp 0x47ea8e
xor ecx, ecx
mov byte [eax + 0x59d9c4], cl
add esi, 0x20
inc eax
je 0x47eabb
cmp dword [esi], 0
je 0x47ea80
mov edx, dword [esi + 0xc]
mov cl, 0x80
cmp edx, 0x81
jb 0x47ea82
mov cl, 0x40
cmp edx, 0x101
jb 0x47ea82
cmp edx, 0x201
setb cl
shl cl, 4
add cl, 0x10
jmp 0x47ea82
pop esi
pop ebp
ret
int3
int3
int3
int3
int3
Function at 0x4834c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x4834cf
pop ebp
jmp fcn.00482fa0
cmp dword [ebp + 0x10], 0
jne 0x4834e9
push 0
push 0
push 0x4b4420
push 0x5aac34
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
xor eax, eax
pop ebp
ret
Function at 0x48aec0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x48af05
mov ecx, dword [esi + 0x3f4]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [esi + 0x3f8]
jne 0x48af05
cmp dword [eax + ecx*8], 0
jne 0x48b073
mov edi, dword [esi + 0x3fc]
mov ecx, edi
shr ecx, 0xe
mov eax, 1
shl eax, cl
mov dword [ebp - 0x28], eax
mov eax, edi
shr eax, 0x13
mov dword [ebp - 0x24], eax
mov eax, dword [eax*4 + 0x59f9d0]
bt eax, ecx
jae 0x48afbe
push edi
call fcn.0042f0b8
add esp, 4
test edi, edi
je 0x48afd2
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x48af55
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.004aec10
add esp, 8
mov dword [ebp - 0x1c], esi
mov esi, dword [esi + 0x404]
test esi, esi
je 0x48b051
mov ecx, eax
mov edx, esi
shr edx, 1
and edx, 0x55555555
mov eax, esi
sub eax, edx
mov edx, eax
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov edx, eax
shr edx, 4
add edx, eax
and edx, 0xf0f0f0f
imul edx, edx, 0x1010101
shr edx, 0x18
cmp edx, 1
ja 0x48afd5
lea edi, [esi - 1]
and edi, ecx
mov ebx, dword [ebp - 0x1c]
jmp 0x48afee
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x5a79d0], 1
test edi, edi
jne 0x48af43
int3
cmp ecx, esi
mov ebx, dword [ebp - 0x1c]
jae 0x48afe0
mov edi, ecx
jmp 0x48afee
mov eax, ecx
mov dword [ebp - 0x18], edx
xor edx, edx
div esi
mov edi, edx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x48b051
mov ebx, dword [eax]
test ebx, ebx
je 0x48b051
lea eax, [esi - 1]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], edx
jmp 0x48b02e
mov eax, dword [ebp - 0x30]
cmp dword [ebx + 8], eax
je 0x48b085
mov ebx, dword [ebx]
test ebx, ebx
je 0x48b051
mov eax, dword [ebx + 4]
cmp eax, ecx
je 0x48b020
cmp edx, 1
ja 0x48b040
and eax, dword [ebp - 0x20]
jmp 0x48b04d
cmp eax, esi
jb 0x48b04d
xor edx, edx
div esi
mov eax, edx
mov edx, dword [ebp - 0x18]
cmp eax, edi
je 0x48b028
mov esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
test dword [ecx*4 + 0x59f9d0], eax
je 0x48b073
push esi
call fcn.0042f1aa
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
add ebx, 0xc
mov ecx, dword [ebp - 0x1c]
add ecx, 4
mov edx, ebx
push dword [ebp + 8]
call fcn.0048b0b0
int3
Function at 0x48b610
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x5aab98]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x48b6ed
mov esi, dword [ebp + 8]
mov ecx, 0x5aab90
call fcn.00462760
test eax, eax
je 0x48b651
mov ecx, 3
cmp dword [eax + 0x24], 3
je 0x48b689
mov eax, dword [0x5aab98]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x48b785
mov ecx, 0x5aab90
call fcn.00462760
xor ecx, ecx
test eax, eax
je 0x48b689
cmp dword [eax + 0x24], 1
sete cl
push ecx
push esi
call fcn.00458270
add esp, 8
mov eax, dword [0x5a8240]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x48b739
inc esi
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x48b6e2
mov ecx, dword [0x5a8238]
mov dword [eax + ecx*8], esi
mov ecx, dword [0x5a823c]
mov edx, dword [0x5a8238]
mov dword [eax + edx*8 + 4], ecx
pop esi
pop ebp
ret
test esi, esi
je 0x48b6df
call fcn.004625e0
jmp 0x48b6c6
push 0x5aab98
call fcn.00528497
add esp, 4
cmp dword [0x5aab98], 0xffffffff
jne 0x48b635
mov dword [0x5aab94], 0
mov dword [0x5aab90], 0xffffffff
mov ecx, 0x5aab90
push 0
call fcn.004624b0
push 0x5aab98
call fcn.0052850d
add esp, 4
jmp 0x48b635
push 0x5a8240
call fcn.00528497
add esp, 4
cmp dword [0x5a8240], 0xffffffff
jne 0x48b6b4
mov dword [0x5a8238], 0xffffffff
mov dword [0x5a823c], 0
mov ecx, 0x5a8238
push 0
call fcn.004624b0
push 0x5a8240
call fcn.0052850d
add esp, 4
jmp 0x48b6b4
push 0x5aab98
call fcn.00528497
add esp, 4
cmp dword [0x5aab98], 0xffffffff
jne 0x48b672
mov dword [0x5aab94], 0
mov dword [0x5aab90], 0xffffffff
mov ecx, 0x5aab90
push 0
call fcn.004624b0
push 0x5aab98
call fcn.0052850d
add esp, 4
jmp 0x48b672
Function at 0x48c010
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x10]
mov edx, dword [0x597010]
xor edx, ebp
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], 0
test cl, cl
je 0x48c068
lea ecx, [ebp - 0x18]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x48c08b
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x48c093
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp ebx, 0xffffffff
je 0x48c097
call fcn.004733d0
jmp 0x48c099
or esi, 8
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x48c08b
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
test esi, esi
jne 0x48c0dd
jmp 0x48c100
mov byte [edi], 0
jmp 0x48c13d
xor ebx, ebx
jmp 0x48c0a3
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], 0xffffffff
or esi, 8
lea eax, [ebp - 0x14]
push eax
push 2
push 1
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
mov esi, dword [ebp - 0x14]
cmovne eax, esi
mov dword [ebp - 0x18], eax
test eax, eax
je 0x48c124
lea eax, [ebx + 1]
cmp eax, 2
jae 0x48c151
mov dword [ebp - 0x14], 0
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [esi + 1]
cmp eax, 2
jb 0x48c0f7
mov dword [ebp - 0x14], esi
call fcn.004733d0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, ebx
mov byte [edi], 1
mov ecx, edi
add ecx, 4
lea eax, [ebp - 0x14]
push eax
call fcn.00433a10
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, 2
jb 0x48c13d
call fcn.004733d0
push dword [ebp - 0x14]
jmp 0x48c135
mov byte [edi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x48c13d
call fcn.004733d0
push ebx
call fcn.00456a60
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004733d0
push ebx
call fcn.00456a60
add esp, 4
jmp 0x48c07b

Function at 0x48c220
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00433a10
Function at 0x48cdf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [0x597010]
xor edx, ebp
mov dword [ebp - 0x10], edx
mov ecx, dword [ecx]
mov dword [ebp - 0x14], 0xffffffff
or eax, 8
lea edx, [ebp - 0x14]
push edx
push 1
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x48ce85
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x48ce85
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebx + 1]
cmp eax, 2
jb 0x48ce52
mov dword [ebp - 0x18], ebx
call fcn.004733d0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi], 1
mov ecx, esi
add ecx, 4
lea eax, [ebp - 0x18]
push eax
call fcn.00433a10
mov eax, dword [ebp - 0x18]
inc eax
cmp eax, 2
jb 0x48ce88
call fcn.004733d0
push dword [ebp - 0x18]
call fcn.00456a60
add esp, 4
jmp 0x48ce88
mov byte [esi], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x48cea0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [0x597010]
xor edi, ebp
mov dword [ebp - 0x10], edi
mov ecx, dword [ecx]
mov dword [ebp - 0x14], 0xffffffff
or eax, 8
lea edi, [ebp - 0x14]
push edi
push 2
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x48cf37
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x48cf37
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebx + 1]
cmp eax, 2
jb 0x48cf04
mov dword [ebp - 0x18], ebx
call fcn.004733d0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi], 1
mov ecx, esi
add ecx, 4
lea eax, [ebp - 0x18]
push eax
call fcn.00433a10
mov eax, dword [ebp - 0x18]
inc eax
cmp eax, 2
jb 0x48cf3a
call fcn.004733d0
push dword [ebp - 0x18]
call fcn.00456a60
add esp, 4
jmp 0x48cf3a
mov byte [esi], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x490d00
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x20], xmm0
lea eax, [ebp - 0x20]
push 0x10
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x490e1e
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
movzx edx, cx
shr ecx, 0x10
and ecx, 0x3fff
or ecx, 0x8000
mov edi, eax
and edi, 0xfff
or edi, 0x4000
shr eax, 0x10
lea ebx, [ebp - 0x2c]
push edx
push dword [ebp - 0x18]
push ecx
push edi
push eax
push dword [ebp - 0x1c]
push str._08x__04x__04x__04x__012llx
push ebx
call fcn.00465c20
add esp, 0x20
cmp byte [ebp - 0x21], 0
js 0x490da2
mov eax, dword [ebp - 0x24]
mov dword [esi + 8], eax
movq xmm0, qword [ebp - 0x2c]
movq qword [esi], xmm0
jmp 0x490e05
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
cmp edx, 0xa
ja 0x490db8
mov byte [esi + 0xb], dl
mov eax, esi
cmp eax, edi
jbe 0x490de8
jmp 0x490df0
cmp edx, 0x7ffffff0
jae 0x490e19
mov dword [ebp - 0x30], edx
mov ebx, dword [ebp - 0x30]
or ebx, 0xf
inc ebx
push ebx
call fcn.005283f4
add esp, 4
mov dword [esi], eax
or ebx, 0x80000000
mov dword [esi + 8], ebx
mov edx, dword [ebp - 0x30]
mov dword [esi + 4], edx
cmp eax, edi
ja 0x490df0
lea ecx, [eax + edx]
inc ecx
cmp ecx, edi
ja 0x490e21
inc edx
push edx
push edi
push eax
call fcn.0052bc90
add esp, 0xc
push edi
call fcn.00528424
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0053bf0b
int3
int3
Function at 0x492840
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
pxor xmm0, xmm0
movdqu xmmword [ebp - 0x64], xmm0
lea eax, [ebp - 0x64]
push 0x10
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x492903
mov word [ebp - 0x54], 0x401
mov dword [ebp - 0x52], 0
mov word [ebp - 0x4e], 0
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x3c], xmm0
movdqu xmmword [ebp - 0x2c], xmm0
movdqu xmmword [ebp - 0x20], xmm0
movups xmm0, xmmword [ebp - 0x64]
movups xmmword [ebp - 0x4c], xmm0
lea esi, [ebp - 0x54]
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x4928fc
push esi
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
test eax, eax
je 0x4928d9
js 0x4928fe
mov edi, eax
push eax
call fcn.005283f4
add esp, 4
mov esi, eax
mov ebx, edi
add ebx, eax
push edi
lea eax, [ebp - 0x54]
push eax
push esi
call fcn.0052bc90
add esp, 0xc
jmp 0x4928dd
xor ebx, ebx
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [edi], esi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, edi
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
call fcn.0053bf0b
int3
Function at 0x498910
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x5aab88]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x498a08
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x498a00
mov ecx, dword [0x5aab80]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x5aab84]
jne 0x498a00
mov esi, dword [eax + ecx*8]
test esi, esi
je 0x498a00
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x4989ea
movq xmm0, qword [esi]
mov eax, 1
lock xadd dword [ebx], eax
test eax, eax
jle 0x498a54
cmp eax, 0x7fffffff
je 0x498a57
pshufd xmm0, xmm0, 0x55
movd dword [ebp - 0x14], xmm0
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
call dword [section..00cfg]
push ebx
call ecx
add esp, 4
mov edi, edx
lock dec dword [ebx]
jne 0x4989cf
mov dword [ebp - 0x10], eax
mov ecx, dword [ebx + 8]
call dword [section..00cfg]
push ebx
call ecx
mov eax, dword [ebp - 0x10]
add esp, 4
mov ecx, dword [ebp - 0x14]
and ecx, 0xff000000
or edi, ecx
movd xmm0, edi
movd xmm1, eax
punpckldq xmm1, xmm0
movq qword [esi], xmm1
mov eax, dword [esi]
mov edx, dword [esi + 4]
nop
mov ecx, edx
or ecx, 0x40000000
mov ebx, eax
lock cmpxchg8b qword [esi]
jne 0x4989f0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5aab88
call fcn.00528497
add esp, 4
cmp dword [0x5aab88], 0xffffffff
jne 0x49893a
mov dword [0x5aab84], 0
mov dword [0x5aab80], 0xffffffff
mov ecx, 0x5aab80
push 0
call fcn.004624b0
push 0x5aab88
call fcn.0052850d
add esp, 4
jmp 0x49893a
int3
int3

Function at 0x498a80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
xor eax, eax
cmp dword [ebp + 0xc], 0
sete al
xor ecx, ecx
cmp dword [ebp + 8], 0
sete cl
push 0
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], 0
test eax, eax
je 0x498b02
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x498ad7
call fcn.004733d0
push dword [esi]
call fcn.00456a60
add esp, 4
mov dword [esi], 0
lea eax, [edi + 1]
cmp eax, 2
jb 0x498ae6
mov dword [esi], edi
call fcn.004733d0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 0
inc eax
cmp eax, 1
jbe 0x498b09
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov byte [esi + 4], 0
int3
int3
Function at 0x49a4a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov edi, dword [ecx + 0x20]
lea eax, [ecx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov ebx, dword [eax + 0x48]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push dword [ebp - 0x10]
call ebx
mov byte [esi + 0x19d], 1
mov edi, dword [esi + 0x20]
mov eax, dword [edi]
mov ebx, dword [eax + 0x28]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
call ebx
test eax, eax
je 0x49a52c
mov eax, dword [0x5aab98]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x49a53f
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x49a534
mov ecx, dword [0x5aab90]
mov dword [eax + ecx*8], esi
mov ecx, dword [0x5aab94]
mov edx, dword [0x5aab90]
mov dword [eax + edx*8 + 4], ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
test esi, esi
je 0x49a52c
call fcn.004625e0
jmp 0x49a513
push 0x5aab98
call fcn.00528497
add esp, 4
cmp dword [0x5aab98], 0xffffffff
jne 0x49a502
mov dword [0x5aab94], 0
mov dword [0x5aab90], 0xffffffff
mov ecx, 0x5aab90
push 0
call fcn.004624b0
push 0x5aab98
call fcn.0052850d
add esp, 4
jmp 0x49a502
Function at 0x4a0cd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ecx], 0x57b130
mov dword [ecx + 4], eax
mov eax, dword [0x5aad68]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4a0d95
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x4a0d5f
mov ecx, dword [0x5aad60]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x5aad64]
jne 0x4a0d5f
mov eax, dword [eax + ecx*8]
mov dword [esi + 8], eax
test eax, eax
je 0x4a0d66
mov eax, dword [0x5aad68]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4a0e29
mov ecx, 0x5aad60
push 0
call fcn.00462790
jmp 0x4a0d66
mov dword [esi + 8], 0
mov eax, dword [0x5aad68]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4a0de1
mov ecx, 0x5aad60
push esi
call fcn.00462790
mov eax, esi
pop esi
pop ebp
ret 4
push 0x5aad68
call fcn.00528497
add esp, 4
cmp dword [0x5aad68], 0xffffffff
jne 0x4a0d03
mov dword [0x5aad64], 0
mov dword [0x5aad60], 0xffffffff
mov ecx, 0x5aad60
push 0
call fcn.004624b0
push 0x5aad68
call fcn.0052850d
add esp, 4
jmp 0x4a0d03
push 0x5aad68
call fcn.00528497
add esp, 4
cmp dword [0x5aad68], 0xffffffff
jne 0x4a0d83
mov dword [0x5aad64], 0
mov dword [0x5aad60], 0xffffffff
mov ecx, 0x5aad60
push 0
call fcn.004624b0
push 0x5aad68
call fcn.0052850d
add esp, 4
jmp 0x4a0d83
push 0x5aad68
call fcn.00528497
add esp, 4
cmp dword [0x5aad68], 0xffffffff
jne 0x4a0d51
mov dword [0x5aad64], 0
mov dword [0x5aad60], 0xffffffff
mov ecx, 0x5aad60
push 0
call fcn.004624b0
push 0x5aad68
call fcn.0052850d
add esp, 4
jmp 0x4a0d51
Function at 0x4a1a80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov esi, ecx
mov eax, dword [0x597010]
xor eax, ebp
mov dword [esp + 0x28], eax
call fcn.00539d2c
mov eax, dword [eax]
mov dword [esp + 0x14], eax
call fcn.00539d2c
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov edi, dword [0x5aabb4]
cmp edi, 1
ja 0x4a1b1f
mov dword [esp], 0x5aabb4
call fcn.00473460
test al, al
je 0x4a1b19
mov dword [0x5aabbc], 0
mov dword [0x5aabb8], 0xffffffff
mov dword [esp], 0
mov edi, 0x5aabb8
mov ecx, 0x5aabb8
call fcn.004624b0
sub esp, 4
mov dword [0x5aabb4], edi
jmp 0x4a1b1f
mov edi, dword [0x5aabb4]
mov ebx, dword [esi + 4]
mov eax, dword [0x599b44]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
and eax, 0xfffffffc
je 0x4a1c43
mov ecx, dword [edi]
mov dword [eax + ecx*8], ebx
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [eax + ecx*8 + 4], edx
mov ebx, dword [esi]
test ebx, ebx
je 0x4a1b67
cmp dword [esi + 4], 0
jne 0x4a1b67
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
call fcn.00539d2c
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
cmp byte [esi + 0x10], 0
je 0x4a1be2
mov edi, dword [esi + 0x20]
test edi, edi
je 0x4a1bde
mov ecx, dword [0x599b40]
call dword [section..00cfg]
lea eax, [esp + 0x20]
mov dword [esp], eax
call ecx
movsd xmm0, qword [esi + 0x18]
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x18]
movsd qword [esp], xmm0
mov ecx, edi
call fcn.004a12e0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4a1bde
lock dec dword [ecx]
jne 0x4a1bde
call fcn.004a1c60
mov byte [esi + 0x10], 0
mov eax, dword [esi + 4]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59f9d0]
bt edx, ecx
jae 0x4a1c03
mov dword [esp], eax
call fcn.0042f1aa
mov dword [esi + 4], 0
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59f9d0]
bt edx, ecx
jae 0x4a1c2a
mov dword [esp], eax
call fcn.0042f1aa
mov dword [esi], 0
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.00528e13
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
je 0x4a1b4a
call fcn.004625e0
jmp 0x4a1b3c