joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474c00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4e44b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
push edi
mov dword [ebp - 0x24], 0
lea edi, [esi + 4]
jb 0x474c2a
mov ebx, dword [edi]
jmp 0x474c2c
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x474c4e
pop edi
shr al, 4
pop esi
and al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495cb8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00475e20
cmp dword [esi + 0x18], 8
mov eax, dword [esi + 0x14]
jb 0x474c64
mov edi, dword [edi]
mov ecx, dword [ebp - 0xc]
push eax
push edi
push ecx
push 0
lea ecx, [ebp - 0x20]
call fcn.00411610
test eax, eax
jne 0x474c93
lea ecx, [ebp - 0x20]
call fcn.00475620
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495cb8
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20]
push edx
call fcn.00474c00
add esp, 4
test al, al
je 0x474c78
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x474cca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x474c78
push esi
call fcn.00473b80
add esp, 4
test al, al
je 0x474c78
lea ecx, [ebp - 0x20]
call fcn.00475620
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00495cb8
mov esp, ebp
pop ebp
ret
Function at 0x4751d0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [0x4e44b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x148], ebx
mov dword [esi], ebx
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00475180
push 0x118
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x11c]
push ebx
push eax
mov dword [ebp - 0x120], 0x11c
call fcn.00499a30
add esp, 0x10
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
cmp eax, 5
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x114]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
jne 0x47526d
test ecx, ecx
jle 0x4752f2
xor eax, eax
cmp ecx, 1
setne al
add eax, 1
mov dword [esi], eax
jmp 0x4752f2
cmp eax, 6
jne 0x47529d
cmp byte [ebp - 6], 1
jne 0x475295
sub ecx, ebx
je 0x47528d
sub ecx, 1
je 0x475285
mov dword [esi], eax
jmp 0x4752f2
mov dword [esi], 5
jmp 0x4752f2
mov dword [esi], 3
jmp 0x4752f2
mov dword [esi], 4
jmp 0x4752f2
jle 0x4752f2
cmp dword [0x4e8f68], 1
jne 0x4752dc
call fcn.004722e0
cmp eax, 3
jg 0x4752dc
push 3
push 0x39
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_basewinwindows_version.cc
lea ecx, [ebp - 0x1dc]
mov ebx, 1
call fcn.00473160
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.004041d0
add esp, 8
test bl, 1
je 0x4752ec
lea ecx, [ebp - 0x1dc]
call fcn.00472c30
mov dword [esi], 7
movzx ecx, word [ebp - 0xc]
movzx edx, word [ebp - 0xa]
xor eax, eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x144]
push eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [ebp - 0x144], 0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x144]
test eax, eax
je 0x475370
cmp eax, 6
je 0x475367
cmp eax, 9
jne 0x475377
mov dword [esi + 0x18], 1
jmp 0x475377
mov dword [esi + 0x18], 2
jmp 0x475377
mov dword [esi + 0x18], 0
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x128]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x20], edx
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00495cb8
mov esp, ebp
pop ebp
ret
Function at 0x47a850
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
lea eax, [ebp - 0x58]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.00499a30
mov esi, dword [ebp + 0xc]
add esp, 0xc
cmp byte [esi + 8], 0
mov dword [ebp - 0x58], 0x44
je 0x47a886
mov dword [ebp - 0x50], 0x4cadec
mov cl, byte [esi + 1]
neg cl
mov dword [ebp - 0x2c], 1
sbb ecx, ecx
and ecx, 0xfffffffb
add ecx, 5
xor edi, edi
cmp dword [esi + 0xc], edi
mov word [ebp - 0x28], cx
je 0x47a8aa
mov edi, 0x1000004
mov eax, dword [esi + 4]
test eax, eax
je 0x47a91d
push 0
push eax
lea edx, [ebp + 0xc]
push edx
or edi, 0x400
mov dword [ebp + 0xc], 0
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x47a915
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x47a8dd
mov eax, dword [eax + 4]
jmp 0x47a8e0
add eax, 4
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x58]
push edx
movzx edx, byte [esi + 2]
push 0
push ecx
push edi
push edx
push 0
push 0
push eax
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ecx, dword [ebp + 0xc]
push ecx
mov edi, eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test edi, edi
jne 0x47a951
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x47a92b
mov eax, dword [eax + 4]
jmp 0x47a92e
add eax, 4
lea edx, [ebp - 0x14]
push edx
movzx edx, byte [esi + 2]
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0
push edi
push edx
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x47a99c
mov eax, dword [esi + 0xc]
test eax, eax
je 0x47a9ae
mov ecx, dword [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x47a9a4
mov eax, dword [ebp - 0x14]
push 1
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
test al, al
je 0x47a98a
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x10]
push eax
call esi
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
cmp byte [esi], 0
je 0x47a9cb
mov eax, dword [ebp - 0x14]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x47a9df
mov ecx, dword [ebp - 0x14]
pop edi
mov dword [eax], ecx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
push edx
call edi
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47b8a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
push 0
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
add eax, 1
pop ebp
ret 4
Function at 0x47bcf0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
xor ebx, ebx
mov esi, 1
cmp dword [0x4e8f68], esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
jne 0x47bd48
call fcn.004722e0
cmp eax, 3
jg 0x47bd48
cmp dword [edi], ebx
jne 0x47bd48
push 3
push 0x84
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_basewin_registry.cc
lea ecx, [ebp - 0x98]
mov ebx, esi
call fcn.00473160
add eax, 4
push str.Check_failed:_key_.
push eax
call fcn.004041d0
add esp, 8
test bl, 1
je 0x47bd5b
lea ecx, [ebp - 0x98]
and ebx, 0xfffffffe
call fcn.00472c30
cmp dword [0x4e8f68], esi
mov esi, dword [ebp + 8]
jne 0x47bd9f
call fcn.004722e0
cmp eax, 3
jg 0x47bd9f
test esi, esi
jne 0x47bd9f
push 3
push 0x85
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_basewin_registry.cc
lea ecx, [ebp - 0x98]
or ebx, 2
call fcn.00473160
add eax, 4
push str.Check_failed:_name.
push eax
call fcn.004041d0
add esp, 8
test bl, 2
je 0x47bdaf
lea ecx, [ebp - 0x98]
call fcn.00472c30
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x47bdd0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
xor ebx, ebx
mov esi, 1
cmp dword [0x4e8f68], esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
jne 0x47be28
call fcn.004722e0
cmp eax, 3
jg 0x47be28
cmp dword [edi], ebx
jne 0x47be28
push 3
push 0x8c
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_basewin_registry.cc
lea ecx, [ebp - 0x98]
mov ebx, esi
call fcn.00473160
add eax, 4
push str.Check_failed:_key_.
push eax
call fcn.004041d0
add esp, 8
test bl, 1
je 0x47be3b
lea ecx, [ebp - 0x98]
and ebx, 0xfffffffe
call fcn.00472c30
cmp dword [0x4e8f68], esi
mov esi, dword [ebp + 8]
jne 0x47be7f
call fcn.004722e0
cmp eax, 3
jg 0x47be7f
test esi, esi
jne 0x47be7f
push 3
push 0x8d
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_basewin_registry.cc
lea ecx, [ebp - 0x98]
or ebx, 2
call fcn.00473160
add eax, 4
push str.Check_failed:_value_name.
push eax
call fcn.004041d0
add esp, 8
test bl, 2
je 0x47be8f
lea ecx, [ebp - 0x98]
call fcn.00472c30
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47beb0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10a4
call fcn.0049b530
mov eax, dword [0x4e44b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x1008], ebx
cmp dword [0x4e8f68], 1
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x100c], eax
jne 0x47bf28
call fcn.004722e0
cmp eax, 3
jg 0x47bf28
cmp dword [ebp - 0x100c], ebx
jne 0x47bf28
push 3
push 0xb5
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_basewin_registry.cc
lea ecx, [ebp - 0x10a4]
mov ebx, 1
call fcn.00473160
add eax, 4
push str.Check_failed:_out_value.
push eax
call fcn.004041d0
add esp, 8
test bl, 1
je 0x47bf38
lea ecx, [ebp - 0x10a4]
call fcn.00472c30
lea ecx, [ebp - 0x1008]
push ecx
mov ecx, dword [esi]
lea edx, [ebp - 0x804]
push edx
lea eax, [ebp - 0x1010]
push eax
push 0
push edi
push ecx
mov dword [ebp - 0x1010], 1
mov dword [ebp - 0x1008], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x47bfa9
mov eax, dword [ebp - 0x1010]
cmp eax, 1
jne 0x47bfbe
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47bf87
mov ecx, dword [ebp - 0x100c]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x804]
push edx
call fcn.00405680
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495cb8
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
jne 0x47c019
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
mov dword [ebp - 0x1008], eax
je 0x47c001
cmp eax, 0x400
ja 0x47c001
mov ecx, dword [ebp - 0x100c]
lea edx, [ebp - 0x1004]
push edx
call fcn.0040cc80
jmp 0x47bfa9
pop edi
pop esi
mov eax, 0xea
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495cb8
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x3f4
pop ebx
call fcn.00495cb8
mov esp, ebp
pop ebp
ret 8

Function at 0x47c040
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
xor ebx, ebx
cmp dword [0x4e8f68], 1
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov dword [ebp - 4], ebx
jne 0x47c09f
call fcn.004722e0
cmp eax, 3
jg 0x47c09f
cmp dword [ebp + 0xc], ebx
jne 0x47c09f
test edi, edi
je 0x47c09f
push 3
push 0x10b
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_basewin_registry.cc
lea ecx, [ebp - 0x98]
mov ebx, 1
call fcn.00473160
add eax, 4
push str.Check_failed:_data___dsize.
push eax
call fcn.004041d0
add esp, 8
test bl, 1
je 0x47c0af
lea ecx, [ebp - 0x98]
call fcn.00472c30
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push edi
push eax
mov eax, dword [esi]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47fc20
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
cmp dword [eax + 0x18], 8
jb 0x47fc34
mov eax, dword [eax + 4]
jmp 0x47fc37
add eax, 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x47fc57
or eax, 0xffffffff
or edx, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
test ecx, ecx
mov eax, dword [ebp - 8]
mov edx, ecx
jg 0x47fc71
jl 0x47fc69
test eax, eax
jae 0x47fc71
or eax, 0xffffffff
mov edx, closesocket
mov esp, ebp
pop ebp
ret

Function at 0x480570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 4], 0
jbe 0x480598
call fcn.004753f0
cmp eax, 1
jl 0x480598
mov dword [ebp - 4], 0x10000
jmp 0x48059a
xor edi, edi
push 8
call fcn.00495ce0
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
add esp, 4
push 0
mov esi, eax
mov eax, dword [ebp + 0xc]
push edx
push esi
push 0x480540
test ebx, ebx
push edi
setne cl
push 0
mov dword [esi], eax
mov byte [esi + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4805e1
push esi
call fcn.00495fd1
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4805f0
pop edi
mov dword [ebx], eax
pop esi
mov al, 1
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 0x48bf40
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push ebx
push eax
xor ebx, ebx
push edx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x48bfa7
call fcn.004722e0
cmp eax, 4
jg 0x48bf97
push 4
push 0x24
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_base_threading_thread_local_win.cc
lea ecx, [ebp - 0x98]
mov ebx, 1
call fcn.00473160
add eax, 4
push str.Failed_to_TlsSetValue__.
push eax
call fcn.004041d0
add esp, 8
test bl, 1
je 0x48bfa7
lea ecx, [ebp - 0x98]
call fcn.00472c30
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48bfb0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp + 8], 0xffffffff
jne 0x48c004
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [ebp + 8]
push eax
push ecx
call fcn.0047a770
add esp, 0xc
test eax, eax
je 0x48c004
push eax
push 0x12
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_base_threading_thread_local_win.cc
lea ecx, [ebp - 0x94]
call fcn.004731b0
lea ecx, [ebp - 0x94]
call fcn.00472c30
mov esp, ebp
pop ebp
ret
Function at 0x494750
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
xor ebx, ebx
cmp dword [0x4e42dc], 0xffffffff
push esi
push edi
mov dword [ebp - 4], ebx
jne 0x4947e1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp dword [0x4e8f68], 1
mov esi, eax
jne 0x4947b4
call fcn.004722e0
cmp eax, 3
jg 0x4947b4
cmp esi, 0xffffffff
jne 0x4947b4
push 3
push 0x37
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_base_threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x98]
mov ebx, 1
call fcn.00473160
add eax, 4
push str.Check_failed:_value___TLS_OUT_OF_INDEXES.
push eax
call fcn.004041d0
add esp, 8
test bl, 1
je 0x4947c7
lea ecx, [ebp - 0x98]
and ebx, 0xfffffffe
call fcn.00472c30
push 0xffffffffffffffff
push esi
push 0x4e42dc
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 0xffffffff
je 0x4947e1
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
cmp dword [0x4e8f68], 1
jne 0x49482c
call fcn.004722e0
cmp eax, 3
jg 0x49482c
mov eax, dword [0x4e42dc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49482c
push 3
push 0x43
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_base_threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x98]
or ebx, 2
call fcn.00473160
add eax, 4
push str.Check_failed:__TlsGetValue_tls_key__.
push eax
call fcn.004041d0
add esp, 8
test bl, 2
je 0x49483c
lea ecx, [ebp - 0x98]
call fcn.00472c30
push 0x100
lea ecx, [ebp - 0x198]
push 0
push ecx
call fcn.00499a30
mov eax, dword [0x4e42dc]
add esp, 0xc
lea edx, [ebp - 0x198]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x100
call fcn.00494ec8
mov ebx, eax
add esp, 4
mov ecx, 0x40
lea esi, [ebp - 0x198]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4e42dc]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4948a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x4e42dc]
cmp eax, 0xffffffff
mov dword [ebp - 4], 0
je 0x4949b3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x4949b2
push esi
push edi
mov ecx, 0x40
mov esi, ebx
lea edi, [ebp - 0x104]
lea eax, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4e42dc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.004961ac
add esp, 4
mov ebx, 0x40
mov esi, dword [0x4e42e0]
add esi, 0xffffffff
xor edi, edi
xor dl, dl
cmp esi, edi
jle 0x494940
mov eax, dword [ebp + esi*4 - 0x104]
cmp eax, edi
je 0x494939
mov ecx, dword [esi*4 + 0x4e9ca0]
cmp ecx, edi
je 0x494939
push eax
mov dword [ebp + esi*4 - 0x104], edi
call ecx
add esp, 4
mov dl, 1
sub esi, 1
cmp esi, edi
jg 0x494914
sub ebx, 1
cmp ebx, edi
jle 0x49494d
test dl, dl
jne 0x494903
jmp 0x4949a2
cmp dword [0x4e8f68], 1
jne 0x49498f
call fcn.004722e0
cmp eax, 3
jg 0x49498f
push 3
push 0xbe
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_base_threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x198]
mov ebx, 1
call fcn.00473160
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.004041d0
add esp, 8
jmp 0x494992
mov bl, byte [ebp - 4]
test bl, 1
je 0x4949a2
lea ecx, [ebp - 0x198]
call fcn.00472c30
mov edx, dword [0x4e42dc]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4949e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x4e42dc]
cmp eax, 0xffffffff
push esi
mov esi, ecx
je 0x494a07
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x494a0c
call fcn.00494750
push 0x4e42e0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub eax, 1
mov dword [esi + 4], eax
cmp dword [0x4e8f68], 1
jne 0x494a76
call fcn.004722e0
cmp eax, 3
jg 0x494a76
mov eax, dword [esi + 4]
cmp eax, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
jg 0x494a76
push str.slot____0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00476970
add esp, 0xc
cmp eax, ebx
je 0x494a76
push eax
push 3
push 0x65
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_base_threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x9c]
call fcn.00473250
lea ecx, [ebp - 0x9c]
call fcn.00472c30
mov eax, dword [esi + 4]
cmp eax, 0x40
jl 0x494ad5
cmp dword [0x4e8f68], 1
jne 0x494abb
call fcn.004722e0
cmp eax, 3
jg 0x494abb
push 3
push 0x67
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_base_threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x130]
mov ebx, 1
call fcn.00473160
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.004041d0
add esp, 8
test bl, 1
je 0x494acb
lea ecx, [ebp - 0x130]
call fcn.00472c30
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
mov dword [eax*4 + 0x4e9ca0], edx
mov byte [esi], 1
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x494af0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4e42dc]
sub esp, 0x9c
push esi
push edi
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x494b16
call fcn.00494750
mov edi, eax
cmp dword [0x4e8f68], 1
jne 0x494bd8
call fcn.004722e0
cmp eax, 3
jg 0x494b77
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], eax
jg 0x494b77
push str.slot____0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00476970
add esp, 0xc
test eax, eax
je 0x494b77
push eax
push 3
push 0x7f
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_base_threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x9c]
call fcn.00473250
lea ecx, [ebp - 0x9c]
call fcn.00472c30
cmp dword [0x4e8f68], 1
jne 0x494bd8
call fcn.004722e0
cmp eax, 3
jg 0x494bd8
mov eax, dword [esi + 4]
cmp eax, 0x40
mov dword [ebp - 4], 0x40
mov dword [ebp - 8], eax
jl 0x494bd8
push str.slot____kThreadLocalStorageSize
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00476970
add esp, 0xc
test eax, eax
je 0x494bd8
push eax
push 3
push 0x80
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_base_threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x9c]
call fcn.00473250
lea ecx, [ebp - 0x9c]
call fcn.00472c30
mov edx, dword [esi + 4]
mov eax, dword [edi + edx*4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x494bf0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4e42dc]
sub esp, 0x9c
push esi
push edi
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x494c16
call fcn.00494750
mov edi, eax
cmp dword [0x4e8f68], 1
jne 0x494cdb
call fcn.004722e0
cmp eax, 3
jg 0x494c7a
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], eax
jg 0x494c7a
push str.slot____0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00476970
add esp, 0xc
test eax, eax
je 0x494c7a
push eax
push 3
push 0x88
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_base_threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x9c]
call fcn.00473250
lea ecx, [ebp - 0x9c]
call fcn.00472c30
cmp dword [0x4e8f68], 1
jne 0x494cdb
call fcn.004722e0
cmp eax, 3
jg 0x494cdb
mov eax, dword [esi + 4]
cmp eax, 0x40
mov dword [ebp - 4], 0x40
mov dword [ebp - 8], eax
jl 0x494cdb
push str.slot____kThreadLocalStorageSize
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00476970
add esp, 0xc
test eax, eax
je 0x494cdb
push eax
push 3
push 0x89
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_base_threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x9c]
call fcn.00473250
lea ecx, [ebp - 0x9c]
call fcn.00472c30
mov edx, dword [esi + 4]
mov eax, dword [ebp + 8]
mov dword [edi + edx*4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x495cb8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e44b4]
jne 0x495cc2
repz ret
jmp fcn.004a0952