joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10040716
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x10040739
jmp 0x100407c0
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
mov eax, dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 1
je 0x10040760
jmp 0x100407c0
mov ecx, dword [ebp + 0xc]
call fcn.10004773
mov eax, dword [ebp - 0xc]
shr eax, 1
inc eax
push eax
mov ecx, dword [ebp + 0xc]
call fcn.100044c9
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
mov eax, dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100407a2
jmp 0x100407c0
mov eax, dword [ebp - 0xc]
shr eax, 1
mov ecx, dword [ebp - 4]
and word [ecx + eax*2], 0
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.10009d3c
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x100407c7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x100407e0
jmp 0x1004080e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10040807
jmp 0x1004080e
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x10040815
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
and dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x1004082e
jmp 0x1004085a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 3
push 0
push dword [ebp + 8]
mov eax, dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10040853
jmp 0x1004085a
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
leave
ret 0xc
Function at 0x100408ea
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bf24c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x100eb3e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.1004039b
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.10040a55
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CQQChannelDownload.0
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], vtable.CQQChannelDownload.1.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.100016b4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
and dword [eax + 0xc], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
call dword [eax + 8]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x10]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x30], 0
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 8
Function at 0x10040bbb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x100eb3e0]
xor eax, ebp
mov dword [ebp - 0x28], eax
push edi
cmp dword [0x10107510], 0
jne 0x10040d53
mov word [ebp - 0x88], 0x47
mov word [ebp - 0x86], 0x6c
mov word [ebp - 0x84], 0x6f
mov word [ebp - 0x82], 0x62
mov word [ebp - 0x80], 0x61
mov word [ebp - 0x7e], 0x6c
mov word [ebp - 0x7c], 0x5c
mov word [ebp - 0x7a], 0x7b
mov word [ebp - 0x78], 0x30
mov word [ebp - 0x76], 0x43
mov word [ebp - 0x74], 0x35
mov word [ebp - 0x72], 0x43
mov word [ebp - 0x70], 0x41
mov word [ebp - 0x6e], 0x34
mov word [ebp - 0x6c], 0x35
mov word [ebp - 0x6a], 0x39
mov word [ebp - 0x68], 0x2d
mov word [ebp - 0x66], 0x32
mov word [ebp - 0x64], 0x33
mov word [ebp - 0x62], 0x45
mov word [ebp - 0x60], 0x44
mov word [ebp - 0x5e], 0x2d
mov word [ebp - 0x5c], 0x34
mov word [ebp - 0x5a], 0x65
mov word [ebp - 0x58], 0x39
mov word [ebp - 0x56], 0x32
mov word [ebp - 0x54], 0x2d
mov word [ebp - 0x52], 0x42
mov word [ebp - 0x50], 0x30
mov word [ebp - 0x4e], 0x42
mov word [ebp - 0x4c], 0x34
mov word [ebp - 0x4a], 0x2d
mov word [ebp - 0x48], 0x35
mov word [ebp - 0x46], 0x33
mov word [ebp - 0x44], 0x42
mov word [ebp - 0x42], 0x44
mov word [ebp - 0x40], 0x42
mov word [ebp - 0x3e], 0x46
mov word [ebp - 0x3c], 0x42
mov word [ebp - 0x3a], 0x44
mov word [ebp - 0x38], 0x31
mov word [ebp - 0x36], 0x36
mov word [ebp - 0x34], 0x38
mov word [ebp - 0x32], 0x42
mov word [ebp - 0x30], 0x7d
and word [ebp - 0x2e], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0xc
mov byte [ebp - 0x14], 0
xor eax, eax
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10037140
pop ecx
pop ecx
test eax, eax
je 0x10040d3a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x88]
push eax
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x10107510], eax
xor eax, eax
cmp dword [0x10107510], 0
setne al
pop edi
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.10070dd1
leave
ret

Function at 0x10040dda
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100eb3e0]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [0x1010753c]
test eax, eax
jne 0x10040e5b
mov byte [0x1010753c], 1
push 0x101045d8
call fcn.1004137f
pop ecx
push 0x101045e8
call fcn.1004137f
pop ecx
and word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.10073a50
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 4
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10070dd1
leave
ret
Function at 0x10050209
Capabilities:
Create thread

Disassembly:
push 0x10
mov eax, 0x100c2796
call fcn.10078eed
mov esi, ecx
push str.CDownload::Init__
push 3
call fcn.1005301d
xor edi, edi
cmp dword [esi + 0xc], edi
pop ecx
pop ecx
je 0x10050234
xor eax, eax
inc eax
jmp 0x100502be
cmp dword [esi + 0x64], edi
mov dword [esi + 0xb8], 0x5dc
jne 0x1005027c
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x68], eax
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x6c], eax
call ebx
mov dword [esi + 0x70], eax
lea eax, [esi + 0x74]
push eax
push edi
push esi
push 0x1005193f
push edi
push edi
call fcn.1007466a
add esp, 0x18
mov dword [esi + 0x64], eax
lea eax, [esi + 0x8c]
mov dword [ebp - 0x10], eax
add eax, 4
push eax
mov dword [ebp - 0x14], vtable.QQDectector::fund::lock::scoped_lock_class_QQDectector::fund::lock::critical_section_.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
lea eax, [ebp - 0x1c]
xor edi, edi
push eax
inc edi
lea eax, [esi + 0x78]
mov dword [ebp - 0x1c], edi
call fcn.10051f91
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea esi, [ebp - 0x14]
call fcn.100524a7
mov eax, edi
call fcn.10078f8c
ret

Function at 0x1005033f
Capabilities:
Print debug messages
Terminate thread

Disassembly:
push 0x10
mov eax, 0x100c2796
call fcn.10078eed
push str.CDownload::Uninit__
push 3
call fcn.1005301d
pop ecx
lea eax, [edi + 0x8c]
mov dword [ebp - 0x10], eax
pop ecx
add eax, 4
push eax
mov dword [ebp - 0x14], vtable.QQDectector::fund::lock::scoped_lock_class_QQDectector::fund::lock::critical_section_.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [edi + 0x78]
mov dword [ebp - 0x1c], 2
call fcn.10051f91
push dword [edi + 0x70]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
call ebx
lea esi, [ebp - 0x14]
call fcn.100524a7
push dword [edi + 0x68]
call ebx
push dword [edi + 0x70]
call ebx
cmp dword [edi + 0x64], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x100503e7
push 0x7530
push dword [edi + 0x6c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100503de
push 0x3ff
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.Uninit::TerminateThread
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [edi + 0x64]
call esi
and dword [edi + 0x64], 0
push dword [edi + 0x70]
call esi
push dword [edi + 0x68]
call esi
push dword [edi + 0x6c]
call esi
call fcn.10078f8c
ret
Function at 0x10051c57
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x238
lea ebp, [esp - 4]
mov eax, dword [0x100eb3e0]
xor eax, ebp
mov dword [ebp + 0x238], eax
push 0x20
mov eax, 0x100c12d1
call fcn.10078eed
and word [ebp + 0x2c], 0
push 0x208
lea eax, [ebp + 0x2e]
push 0
push eax
call fcn.10073a50
add esp, 0xc
lea eax, [ebp]
push eax
push str.DownloadProxy.Downloader.1
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
sub esp, 0x10
lea esi, [ebp]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp + 0x2c]
movsd dword es:[edi], dword [esi]
call fcn.100575c8
add esp, 0x10
test eax, eax
je 0x10051d56
lea ecx, [ebp + 0x10]
call fcn.100016b4
and dword [ebp - 4], 0
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x10]
call fcn.10009d66
lea edi, [ebp + 0x10]
call fcn.10051d79
push eax
push 0
mov ecx, edi
call fcn.1000178c
push 0xffffffffffffffff
mov ebx, edi
call fcn.10051dda
inc eax
push eax
mov ecx, edi
call fcn.1000178c
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.10001825
mov esi, eax
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.10001847
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.10001825
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.10052d9a
add esp, 0x1c
mov ecx, ebx
call fcn.10004cd2
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, ebx
mov esi, eax
call fcn.1000174b
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x238]
xor ecx, ebp
call fcn.10070dd1
add ebp, 0x23c
leave
ret

Function at 0x10053163
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test eax, eax
je 0x10053181
cmp word [eax], 0
je 0x10053181
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10053181
and al, 0x10
cmp al, 0x10
setne al
ret
xor al, al
ret
Function at 0x10054c34
Capabilities:
Print debug messages

Disassembly:
push 0x58
mov eax, 0x100c1986
call fcn.10078eed
xor esi, esi
cmp dword [ebx + 0x70], esi
je 0x10054c4e
xor eax, eax
jmp 0x10054d9a
mov eax, ebx
call fcn.100539d1
cmp byte [ebp + 8], 0
jne 0x10054c74
lea eax, [ebx + 0x84]
mov ecx, dword [eax]
cmp ecx, 1
ja 0x10054c74
inc ecx
mov dword [eax], ecx
mov ecx, ebx
call fcn.100537d7
jmp 0x10054c81
mov edi, ebx
call fcn.10055362
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x18], eax
push dword [ebx + 0x88]
mov eax, ebx
call fcn.100548fb
push dword [ebx + 0x8c]
mov eax, ebx
call fcn.100549b8
cmp dword [ebx + 0x98], esi
je 0x10054cb1
lea eax, [ebx + 0x9c]
push eax
mov eax, ebx
call fcn.10054b42
cmp dword [ebx + 0x90], esi
je 0x10054cc6
push dword [ebx + 0x94]
mov eax, ebx
call fcn.10054a76
push 0x100d8464
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x2c]
lea ecx, [ebx + 0x11e8]
push eax
call fcn.100559f2
lea edi, [ebx + 0x11f4]
mov dword [ebp - 4], esi
call fcn.10052cae
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
lea ecx, [ebp - 0x18]
call fcn.1001b790
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
call fcn.1001b790
cmp dword [ebp - 0x18], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
je 0x10054d23
cmp dword [ebp - 0x18], eax
je 0x10054d28
call fcn.10070ccd
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
je 0x10054d80
lea esi, [ebp - 0x18]
call fcn.1005621c
push dword [eax]
push 0
call fcn.1005621c
add eax, 4
push eax
push ebx
call fcn.10053a93
test eax, eax
jne 0x10054d76
push 0x38
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.10073a50
or dword [ebp - 0x64], 0xffffffff
add esp, 0xc
call fcn.1005621c
push dword [eax]
mov ecx, dword [ebx + 0x7c]
push 0x59
lea edx, [ebp - 0x64]
call fcn.10051224
lea esi, [ebp - 0x18]
call fcn.100568da
jmp 0x10054d04
push str.ReloadDownloadtask_end
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
call fcn.10056694
xor eax, eax
inc eax
call fcn.10078f8c
ret 4
Function at 0x100575c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x2f0
mov eax, dword [0x100eb3e0]
xor eax, ebp
mov dword [ebp + 0x64], eax
push esi
push edi
lea esi, [ebp + 0x70]
lea edi, [ebp - 0x27c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x64
xor edi, edi
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.10073a50
movzx eax, byte [ebp - 0x270]
movzx ecx, byte [ebp - 0x26f]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x26e]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x26d]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x271]
push eax
movzx eax, byte [ebp - 0x272]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x273]
push eax
movzx eax, byte [ebp - 0x274]
shl eax, 8
or eax, ecx
push eax
movzx eax, word [ebp - 0x276]
push eax
movzx eax, word [ebp - 0x278]
push eax
push dword [ebp - 0x27c]
lea eax, [ebp - 0x64]
push str._X__X__X__X__X_X
push eax
call fcn.1007537b
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x26c]
push str.CLSID_sLocalServer32
push eax
call fcn.1007537b
add esp, 0x38
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x26c]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x100576ab
xor eax, eax
jmp 0x100576ef
lea eax, [ebp - 0x288]
push eax
push ebx
lea eax, [ebp - 0x284]
push eax
push edi
push edi
push dword [ebp - 0x280]
xor esi, esi
inc esi
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x288], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100576e1
xor esi, esi
push dword [ebp - 0x280]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp + 0x64]
pop edi
xor ecx, ebp
pop esi
call fcn.10070dd1
add ebp, 0x68
leave
ret
Function at 0x10057a90
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x100c0403
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100eb3e0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, 0x10107444
mov ebx, 0x10102e64
mov dword [esp + 0x14], 3
xor ebp, ebp
jmp 0x10057ad0
push 0x44
call fcn.10070b17
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov dword [esp + 0x3c], ebp
je 0x10057afb
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx - 4]
push edx
push ecx
push eax
call fcn.100584d0
mov edi, eax
jmp 0x10057afd
xor edi, edi
mov dword [esp + 0x3c], 0xffffffff
mov ecx, dword [esi]
cmp edi, ecx
je 0x10057b19
cmp ecx, ebp
je 0x10057b17
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi], edi
mov ecx, dword [esi]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ebp
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x20]
push eax
call edx
test al, al
je 0x10057b89
mov eax, dword [esi]
lea ecx, [esp + 0x18]
call fcn.10057830
mov dword [esp + 0x3c], 1
mov edi, dword [eax]
cmp edi, ebp
je 0x10057b64
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x10057b73
lea ecx, [eax + 4]
call fcn.10034ca2
lea ecx, [esp + 0x18]
mov dword [esi + 0x10], edi
mov dword [esp + 0x3c], 0xffffffff
call fcn.10034b5c
jmp 0x10057b98
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
add ebx, 0xc
add esi, 4
sub dword [esp + 0x14], 1
jne 0x10057ad0
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret

Function at 0x10058a80
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
push edi
mov edi, 0x10107138
push 0x10107460
call ebx
mov esi, dword [edi]
test esi, esi
je 0x10058ab8
cmp dword [esi + 0x14], 0
je 0x10058ab8
push 0x10107460
call ebp
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
sub edi, 4
cmp edi, 0x1010712c
jne 0x10058a95
mov eax, dword [0x10107254]
test eax, eax
jne 0x10058afd
push 8
call fcn.10070b17
mov esi, eax
add esp, 4
test esi, esi
je 0x10058af6
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
mov eax, esi
jmp 0x10058af8
xor eax, eax
mov dword [0x10107254], eax
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x10058b16
mov dword [eax + 0x68], 1
mov al, 1
ret
Function at 0x10058c10
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100bf7dd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100eb3e0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
xor edi, edi
mov dword [esi], vtable.qmbase::MessageLoop.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
lea eax, [esi + 0x2c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov byte [esp + 0x20], 5
mov eax, dword [0x10107254]
cmp eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 0x88], edi
jne 0x10058cdd
push 8
call fcn.10070b17
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x10058cd6
mov dword [ebp], edi
mov dword [ebp + 4], 0xffffffff
call ebx
mov dword [ebp + 4], eax
mov eax, ebp
jmp 0x10058cd8
xor eax, eax
mov dword [0x10107254], eax
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x10107254]
cmp eax, edi
jne 0x10058d17
push 8
call fcn.10070b17
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x10058d10
mov dword [ebp], edi
mov dword [ebp + 4], 0xffffffff
call ebx
mov dword [ebp + 4], eax
mov eax, ebp
jmp 0x10058d12
xor eax, eax
mov dword [0x10107254], eax
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x10058d27
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x24
call fcn.10070b17
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov byte [esp + 0x20], 6
je 0x10058d48
push eax
call fcn.1005b750
mov ebp, eax
jmp 0x10058d4a
xor ebp, ebp
cmp ebp, edi
mov byte [esp + 0x20], 5
je 0x10058d5d
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0x70]
cmp eax, edi
je 0x10058d6c
lea ecx, [eax + 4]
call fcn.10034ca2
mov eax, esi
mov dword [esi + 0x70], ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x10058dc0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100c10c2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100eb3e0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov dword [edi], vtable.qmbase::MessageLoop.0
mov dword [esp + 0x20], 5
xor ebp, ebp
jmp 0x10058e00
push edi
call fcn.10058fd0
mov esi, edi
call fcn.10059640
push edi
call fcn.10058fd0
test al, al
je 0x10058e1f
add ebp, 1
cmp ebp, 0x64
jl 0x10058e00
cmp dword [edi + 0x70], 0
lea ebx, [edi + 0x70]
je 0x10058e4c
mov ecx, ebx
call fcn.1002ffe8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
mov eax, dword [ebx]
test eax, eax
je 0x10058e46
lea ecx, [eax + 4]
call fcn.10034ca2
mov dword [ebx], 0
mov eax, dword [0x10107254]
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_TlsAlloc]
jne 0x10058e88
push 8
call fcn.10070b17
mov esi, eax
add esp, 4
test esi, esi
je 0x10058e81
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call ebp
mov dword [esi + 4], eax
mov eax, esi
jmp 0x10058e83
xor eax, eax
mov dword [0x10107254], eax
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
je 0x10058e9e
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x10107254]
test eax, eax
jne 0x10058ecf
push 8
call fcn.10070b17
mov esi, eax
add esp, 4
test esi, esi
je 0x10058ec8
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call ebp
mov dword [esi + 4], eax
mov eax, esi
jmp 0x10058eca
xor eax, eax
mov dword [0x10107254], eax
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
xor ebp, ebp
test eax, eax
jne 0x10058f07
cmp esi, ebp
je 0x10058f01
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x10058ef8
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [esi + 4], 0xffffffff
push esi
call fcn.10070de0
add esp, 4
mov dword [0x10107254], ebp
lea esi, [edi + 0x74]
call fcn.1005a830
mov ecx, ebx
mov byte [esp + 0x20], 3
call fcn.10034b5c
mov eax, dword [edi + 0x48]
cmp eax, ebp
je 0x10058f2b
push eax
call fcn.10070de0
add esp, 4
lea ecx, [edi + 0x2c]
push ecx
mov dword [edi + 0x48], ebp
mov dword [edi + 0x4c], ebp
mov dword [edi + 0x50], ebp
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea esi, [edi + 0x18]
call fcn.1005a830
lea esi, [edi + 4]
call fcn.1005a830
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x10058f70
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push esi
mov esi, dword [0x10107254]
test esi, esi
jne 0x10058fbb
push 8
call fcn.10070b17
mov esi, eax
add esp, 4
test esi, esi
je 0x10058fb3
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
push eax
mov dword [0x10107254], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
ret
xor esi, esi
mov dword [0x10107254], esi
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
ret