joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417210
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, dword [ebp + 0xc]
mov eax, dword [0x5cc440]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
lea edi, [esp + 8]
push 0x4c
push str....._base_file_version_info_win.cc
push str.CreateFileVersionInfoWin
push edi
call fcn.00407310
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push edi
call fcn.0041d890
mov dword [esp + 4], 0xffffffff
cmp dword [esi + 0x14], 8
jb 0x41727b
mov esi, dword [esi]
mov ebx, dword [ebp + 8]
lea eax, [esp + 4]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4172bd
js 0x41740e
mov edi, eax
cmp eax, 0x1000
jb 0x4172ca
lea eax, [edi + 0x23]
push eax
call fcn.00503246
add esp, 4
test eax, eax
je 0x417413
mov ebx, eax
add ebx, 0x23
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4172d5
mov dword [ebx], 0
mov esi, ebx
jmp 0x4173f0
push edi
call fcn.00503246
add esp, 4
mov ebx, eax
push edi
push 0
push ebx
call fcn.005050d0
add esp, 0xc
push ebx
push edi
push dword [esp + 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4173bf
mov dword [esp + 8], 0
mov dword [esp + 0x1c], 0xffffffff
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0xc]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4173bf
mov esi, dword [esp + 8]
test esi, esi
je 0x4173bf
add edi, ebx
push 0x1c
call fcn.00503246
add esp, 4
mov ecx, dword [esi]
mov dword [eax], 0x575db0
movd xmm0, edi
mov edi, eax
movd xmm1, ebx
punpckldq xmm1, xmm0
pshufd xmm0, xmm1, 0x14
movdqu xmmword [eax + 4], xmm0
mov dword [eax + 0x14], ecx
mov dword [esp + 8], 0
mov dword [esp + 0x1c], 0xffffffff
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0xc]
push eax
push 0x575fa6
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4173b1
mov esi, edi
lea edi, [esp + 0x18]
push str.::VerQueryValue_data__kRoot__fixed_file_info__dummy_size_
push 0x29
push str....._base_file_version_info_win.cc
push edi
call fcn.00407bc0
add esp, 0x10
mov ecx, edi
call fcn.00407cf0
mov ecx, edi
mov edi, esi
call fcn.00407d00
mov eax, dword [esp + 8]
mov dword [edi + 0x18], eax
mov esi, dword [ebp + 8]
mov dword [esi], edi
jmp 0x4173f0
mov esi, dword [ebp + 8]
mov dword [esi], 0
test ebx, ebx
je 0x4173f0
cmp edi, 0x1000
jb 0x4173e6
mov eax, dword [ebx - 4]
add ebx, 0xfffffffc
sub ebx, eax
cmp ebx, 0x20
jae 0x417413
add edi, 0x23
mov ebx, eax
push edi
push ebx
call fcn.00503276
add esp, 8
lea ecx, [esp + 0x20]
call fcn.0041d8b0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.005035b5
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004054c0
call fcn.005099a6
int3
Function at 0x41a400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp + 0xc]
mov eax, dword [0x5cc440]
xor eax, ebp
mov dword [esp + 0x48], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
lea edi, [esp + 0x20]
mov dword [esp + 0x10], edi
movsd xmm0, qword [0x576250]
movsd qword [esp + 0x14], xmm0
mov eax, dword [0x5d7de4]
mov ecx, dword [0x5da474]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x41a4fe
lea eax, [esp + 0x10]
mov dword [esp + 8], eax
movsd qword [esp], xmm1
mov dword [esp + 0xc], 0
mov ecx, 0x5d7dc0
call fcn.0043090e
sub esp, 0x10
mov ebx, dword [esp + 0x18]
mov dword [esi], 0
movsd xmm0, qword [0x574ae0]
movsd qword [esi + 0x10], xmm0
mov byte [esi], 0
cmp ebx, 0xf
jbe 0x41a4ca
mov al, byte [esp + 0x1c]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], ebx
mov ecx, esi
call fcn.00407350
sub esp, 0xc
mov ebx, dword [esp + 0x18]
test ebx, ebx
jns 0x41a4e1
jmp 0x41a4e9
mov dword [esi + 0x10], ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00504b50
mov byte [esi + ebx], 0
mov eax, dword [esp + 0x10]
mov byte [eax + ebx], 0
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.005035b5
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], 0x5d7de4
call fcn.00503551
movsd xmm1, qword [ebp + 0xc]
cmp dword [0x5d7de4], 0xffffffff
jne 0x41a466
mov dword [0x5d7dc0], 1
xorps xmm0, xmm0
movlps qword [0x5d7dc4], xmm0
mov byte [0x5d7dcc], 0x65
movaps xmm0, xmmword [0x576260]
movups xmmword [0x5d7dd0], xmm0
mov dword [0x5d7de0], 0
mov dword [esp], 0x5d7de4
call fcn.00503500
movsd xmm1, qword [ebp + 0xc]
jmp 0x41a466
Function at 0x425c92
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 8]
mov ecx, dword [0x5cc440]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [edx], 0xffffffff
mov esi, 5
cmp eax, 3
jne 0x425d33
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x14], 8
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
jb 0x425cd6
mov esi, dword [esi]
mov ebx, dword [ebx]
push 0
push edx
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
je 0x425d20
mov esi, eax
lea eax, [ebp - 0x14]
mov dword [eax], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
push 3
push edi
push edi
lea ecx, [ebp - 0x14]
push ecx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
sbb edi, edi
lea eax, [ebp - 0x14]
or edi, dword [eax]
jmp 0x425d23
xor edi, edi
dec edi
mov eax, dword [ebp + 0x2c]
mov dword [eax], edi
xor eax, eax
cmp edi, 0xffffffff
sete al
lea esi, [eax + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005035b5
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x426e40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov ebx, ecx
mov al, byte [ebp + 8]
mov ecx, dword [0x5cc440]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
test al, al
je 0x426e90
xor edi, edi
inc edi
mov esi, 0x576822
mov ecx, ebx
push 0
push 0x437560
push edi
push str.NtMapViewOfSection
push esi
call fcn.00426642
mov ecx, ebx
push edi
push 0x4377a0
push edi
push str.NtUnmapViewOfSection
push esi
call fcn.00426642
jmp 0x426e9a
cmp dword [ebx + 8], 0
je 0x42700e
mov eax, dword [ebx]
mov edi, dword [eax]
sub esp, 0x14
movdqa xmm0, xmmword [0x5767b0]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x6c], eax
mov esi, dword [ebx + 8]
shl esi, 6
lea eax, [esi + 0x50]
mov dword [ebp - 0x70], eax
push eax
call fcn.0042624c
add esp, 4
mov dword [ebp - 0x74], ebx
mov ebx, eax
mov ecx, 0xfffff000
and eax, ecx
add eax, dword [ebp - 0x6c]
and ebx, 0xfff
add esi, 0x104f
and esi, ecx
push 0x40
push 0x1000
push esi
push eax
mov dword [ebp - 0x6c], edi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test eax, eax
jne 0x426f2f
lea esi, [ebp - 0x60]
push str.thunk_base
push 0x183
push str....._sandboxwin_srcinterception.cc
push esi
call fcn.00407bc0
add esp, 0x10
mov ecx, esi
call fcn.00407cf0
mov ecx, esi
call fcn.00407d00
add edi, ebx
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x60]
movdqu xmmword [esi + 8], xmm0
xor eax, eax
dec eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x48], eax
movdqu xmmword [esi + 0x38], xmm0
movdqu xmmword [esi + 0x28], xmm0
movdqu xmmword [esi + 0x18], xmm0
mov eax, dword [ebp - 0x70]
mov dword [esi], eax
mov dword [esi + 0xc], 0
mov dword [esi + 4], 0x10
pxor xmm0, xmm0
movdqu xmmword [0x5d7e8c], xmm0
movdqu xmmword [0x5d7e9c], xmm0
movdqu xmmword [0x5d7eac], xmm0
movdqu xmmword [0x5d7ebc], xmm0
movdqu xmmword [0x5d7ecc], xmm0
movdqu xmmword [0x5d7edc], xmm0
movdqu xmmword [0x5d7ee8], xmm0
mov ecx, dword [ebp - 0x74]
push esi
push eax
push edi
call fcn.00427286
mov ebx, eax
test eax, eax
jne 0x427010
lea eax, [ebp - 0x64]
mov dword [eax], 0xffffffff
push eax
push 0x10
push esi
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, 0x2a
test eax, eax
je 0x427010
cmp dword [ebp - 0x64], 0x10
jne 0x427010
lea eax, [ebp - 0x68]
mov dword [eax], 0xffffffff
push eax
push 0x20
push dword [ebp - 0x70]
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push 0x6c
push 0x5d7e8c
push str.g_originals
call fcn.00411714
mov ebx, eax
jmp 0x427010
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005035b5
mov eax, ebx
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x427d90
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x5cc440]
xor ecx, ebp
mov dword [ebp - 8], ecx
test eax, eax
je 0x427ddc
push eax
push dword [ebp + 8]
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x427ddc
lea esi, [ebp - 0xc]
push 0x5769aa
push 0x20
push str....._base_rand_util_win.cc
push esi
call fcn.00407bc0
add esp, 0x10
mov ecx, esi
call fcn.00407cf0
mov ecx, esi
call fcn.00407d00
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005035b5
add esp, 8
pop esi
pop ebp
ret
Function at 0x42d21c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x42d339
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x3c]
cmp dword [eax + edx + 0x74], 0
je 0x42d339
cmp word [eax + edx + 0x14], 0x68
jb 0x42d339
mov eax, dword [eax + edx + 0x78]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
mov esi, ecx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x57044c]
mov dword [ebp - 0x14], esi
mov ecx, esi
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x42d339
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
cmp ecx, 0xffff
jbe 0x42d37b
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 0x14]
mov esi, eax
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x57044c]
mov ecx, edi
push dword [ebp - 0x10]
call ebx
mov ecx, eax
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x42d339
lea edi, [ecx + eax*4]
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov edx, ecx
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edi
sub edi, edx
mov eax, edi
sar eax, 2
shr edi, 0x1f
add edi, eax
and edi, 0xfffffffe
mov dword [ebp - 0x18], edx
mov eax, dword [edx + edi*2]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x57044c]
mov ecx, esi
push dword [ebp - 0x10]
call ebx
mov ecx, dword [ebp + 8]
mov cl, byte [ecx]
test cl, cl
je 0x42d30f
mov edx, dword [ebp - 0x28]
cmp cl, byte [eax]
jne 0x42d311
inc eax
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x42d303
xor ecx, ecx
mov edx, dword [ebp - 0x18]
lea edi, [edx + edi*2]
movzx eax, byte [eax]
cmp cl, al
je 0x42d345
movzx ecx, cl
cmp ecx, eax
lea eax, [edi + 4]
cmovg edx, eax
mov eax, dword [ebp - 0x2c]
cmovs eax, edi
mov edi, eax
xor eax, eax
cmp edx, edi
jne 0x42d2c8
jmp 0x42d33b
xor eax, eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x14]
mov eax, dword [esi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x57044c]
mov ecx, esi
push dword [ebp - 0x10]
call ebx
sub edi, dword [ebp - 0x24]
sar edi, 1
movzx eax, word [eax + edi]
mov ecx, dword [ebp - 0x1c]
add ax, word [ecx + 0x10]
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x20]
mov word [ebx], ax
mov al, 1
jmp 0x42d33b

Function at 0x42e110
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042e120
Function at 0x4303e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x290
mov eax, dword [0x5cc440]
xor eax, ebp
mov dword [esp + 0x288], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x270], xmm0
movdqa xmmword [esp + 0x260], xmm0
movdqa xmmword [esp + 0x250], xmm0
movdqa xmmword [esp + 0x240], xmm0
lea ebx, [esp + 0x38]
push 0x3bb
push str....._base_files_file_util_win.cc
push 0x57701e
push ebx
call fcn.00407310
add esp, 0x10
lea ecx, [esp + 0x240]
push 0
push ebx
call fcn.0041d890
lea eax, [esp + 0x3a]
push 0x206
push 0xff
push eax
call fcn.005050d0
add esp, 0xc
mov word [esp + 0x38], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
add esi, 0xfffffefb
cmp esi, 0xfffffefc
jb 0x4304c3
push ebx
call fcn.0050a652
add esp, 4
lea edi, [esp + 8]
mov ecx, edi
push eax
push ebx
call fcn.004054f0
lea ebx, [esp + 0x20]
mov ecx, edi
push ebx
call fcn.004064d0
mov ecx, dword [ebp + 8]
push ebx
call fcn.00405640
mov ecx, ebx
call fcn.004055e0
mov ecx, edi
call fcn.004055e0
cmp esi, 0xfffffefc
setae bl
lea ecx, [esp + 0x240]
call fcn.0041d8b0
mov ecx, dword [esp + 0x288]
xor ecx, ebp
call fcn.005035b5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4304f0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, dword [ebp + 8]
mov eax, dword [0x5cc440]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
mov ebx, esp
push 0x3cb
push str....._base_files_file_util_win.cc
push 0x577033
push ebx
call fcn.00407310
add esp, 0x10
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push ebx
call fcn.0041d890
cmp dword [edi + 0x14], 8
jb 0x430556
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov ecx, esi
call fcn.0041d8b0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.005035b5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4310e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x140c
call fcn.00503970
mov eax, dword [0x5cc440]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5cc038]
cmp eax, 0xffffffff
je 0x43124b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x43124b
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.00504b50
add esp, 0xc
mov ecx, dword [0x5cc038]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.00444530
add esp, 8
test ebx, ebx
je 0x43115b
push ebx
call fcn.0050395f
add esp, 4
mov eax, dword [0x5d8b14]
mov ecx, dword [0x5da474]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x43126c
mov esi, dword [0x5d8b10]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x431260
lea eax, [ebp - 0x1410]
push 0xc00
push 0x5d7f10
push eax
call fcn.00504b50
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov al, 1
mov ecx, 0x101
jmp 0x4311c9
mov ecx, dword [ebp - 0x1418]
dec ecx
je 0x43123b
test al, 1
je 0x43123b
mov dword [ebp - 0x1418], ecx
mov ebx, 8
xor eax, eax
lea edi, [ebp - 0x810]
jmp 0x4311fe
add ebx, 0xc
add edi, 8
cmp ebx, 0xc08
je 0x4311c0
mov esi, dword [edi]
test esi, esi
je 0x4311f0
cmp dword [ebp + ebx - 0x1418], 0
je 0x4311f0
mov ecx, dword [edi + 4]
cmp ecx, dword [ebp + ebx - 0x1410]
jne 0x4311f0
mov ecx, dword [ebp + ebx - 0x1414]
test ecx, ecx
je 0x4311f0
mov dword [edi], 0
call dword [0x57044c]
push esi
call ecx
add esp, 4
mov al, 1
jmp 0x4311f0
push 2
push dword [ebp - 0x1414]
call fcn.00444530
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005035b5
add esp, 0x140c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.0041a180
jmp 0x431191
push 0x5d8b14
call fcn.00503551
add esp, 4
cmp dword [0x5d8b14], 0xffffffff
jne 0x43117c
push 4
call fcn.00503246
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.0041a170
mov dword [0x5d8b10], esi
push 0x5d8b14
call fcn.00503500
add esp, 4
jmp 0x43117c

Function at 0x4312c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5cc038]
cmp eax, 0xffffffff
je 0x4312e0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4312f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
mov eax, dword [0x5cc440]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5cc038]
cmp eax, 0xffffffff
je 0x43131a
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x43131f
call fcn.004314a0
mov eax, dword [0x5d8b14]
mov ecx, dword [0x5da474]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x431459
mov edi, dword [0x5d8b10]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x43144d
mov ecx, dword [0x5d7f0c]
inc ecx
mov edx, 0x100
nop word cs:[eax + eax]
movzx ebx, cl
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x5d7f10], 0
je 0x43139d
lea eax, [ecx + 1]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x5d7f10], 0
je 0x43139d
add ecx, 2
add edx, 0xfffffffe
jne 0x431370
jmp 0x4313cd
lea ecx, [eax*4 + 0x5d7f10]
mov dword [ecx], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x5d7f14], ecx
mov dword [0x5d7f0c], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x5d7f18]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov dword [ebp - 0x14], 0xffffffff
mov esi, dword [esi]
cmp esi, 0x100
jb 0x431439
push 0x100
call fcn.00411c70
add esp, 4
mov edi, eax
push esi
call fcn.00411c70
add esp, 4
lea esi, [ebp - 0x14]
mov ecx, esi
push edi
push eax
push str.slot____kThreadLocalStorageSize
call fcn.00412100
cmp dword [ebp - 0x14], 0
je 0x431439
lea edi, [ebp - 0x18]
push esi
push 0x1c7
push str....._base_threading_thread_local_storage.cc
push edi
call fcn.00407c20
add esp, 0x10
mov ecx, edi
call fcn.00407cf0
mov ecx, edi
call fcn.00407d00
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005035b5
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, edi
call fcn.0041a180
jmp 0x431355
push 0x5d8b14
call fcn.00503551
add esp, 4
cmp dword [0x5d8b14], 0xffffffff
jne 0x431340
push 4
call fcn.00503246
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.0041a170
mov dword [0x5d8b10], edi
push 0x5d8b14
call fcn.00503500
add esp, 4
jmp 0x431340
Function at 0x4314a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x80c
mov eax, dword [0x5cc440]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [0x5cc038]
mov dword [ebp - 0x810], eax
cmp eax, 0xffffffff
jne 0x43158e
lea edi, [ebp - 0x810]
push edi
call fcn.00444500
add esp, 4
test al, al
jne 0x431508
lea esi, [ebp - 0x80c]
push str.PlatformThreadLocalStorage::AllocTLS_key_
push 0x101
push str....._base_threading_thread_local_storage.cc
push esi
call fcn.00407bc0
add esp, 0x10
mov ecx, esi
call fcn.00407cf0
mov ecx, esi
call fcn.00407d00
mov ecx, dword [ebp - 0x810]
cmp ecx, 0xffffffff
jne 0x431565
push edi
call fcn.00444500
add esp, 4
test al, al
je 0x431529
cmp dword [ebp - 0x810], 0xffffffff
jne 0x431555
lea esi, [ebp - 0x80c]
push str.PlatformThreadLocalStorage::AllocTLS_key___key___PlatformThreadLocalStorage::TLS_KEY_OUT_OF_INDEXES
push 0x10b
push str....._base_threading_thread_local_storage.cc
push esi
call fcn.00407bc0
add esp, 0x10
mov ecx, esi
call fcn.00407cf0
mov ecx, esi
call fcn.00407d00
push 0xffffffffffffffff
call fcn.00444520
add esp, 4
mov ecx, dword [ebp - 0x810]
mov eax, 0xffffffff
lock cmpxchg dword [0x5cc038], ecx
mov eax, dword [ebp - 0x810]
je 0x43158e
push eax
call fcn.00444520
add esp, 4
mov eax, dword [0x5cc038]
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x80c], 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
and esi, 3
je 0x431600
push 0
call fcn.00411ba0
add esp, 4
mov edi, eax
push esi
call fcn.00411ba0
add esp, 4
lea esi, [ebp - 0x80c]
mov ecx, esi
push edi
push eax
push str.GetTlsVectorStateAndValue_key___TlsVectorState::kUninitialized
call fcn.00412100
cmp dword [ebp - 0x80c], 0
je 0x431600
lea edi, [ebp - 0x814]
push esi
push 0x11d
push str....._base_threading_thread_local_storage.cc
push edi
call fcn.00407c20
add esp, 0x10
mov ecx, edi
call fcn.00407cf0
mov ecx, edi
call fcn.00407d00
lea edi, [ebp - 0x80c]
push 0x800
push 0
push edi
call fcn.005050d0
add esp, 0xc
lea eax, [ebp - 0x809]
push eax
push dword [ebp - 0x810]
call fcn.00444530
add esp, 8
push 0x800
call fcn.00503964
add esp, 4
mov esi, eax
push 0x800
push edi
push eax
call fcn.00504b50
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x810]
call fcn.00444530
add esp, 8
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005035b5
mov eax, esi
add esp, 0x80c
pop esi
pop edi
pop ebp
ret

Function at 0x4340a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5d8b68]
mov ecx, dword [0x5da474]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x4340cb
mov ecx, 0x5d8b60
pop ebp
jmp fcn.00431680
push 0x5d8b68
call fcn.00503551
add esp, 4
cmp dword [0x5d8b68], 0xffffffff
jne 0x4340c0
mov dword [0x5d8b64], 0
mov dword [0x5d8b60], 0
mov ecx, 0x5d8b60
push 0
call fcn.004316f0
push 0x5d8b68
call fcn.00503500
add esp, 4
jmp 0x4340c0