joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100391cd
Capabilities:
Check if file exists

Disassembly:
push 0x264
mov eax, 0x1007805b
call fcn.1005acb8
and word [ebp - 0x224], 0
push 0x208
lea eax, [ebp - 0x222]
push 0
push eax
call fcn.100541d0
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
push str.DownloadProxy.Downloader.1
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
sub esp, 0x10
lea esi, [ebp - 0x250]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp - 0x224]
movsd dword es:[edi], dword [esi]
call fcn.1003e223
add esp, 0x10
test eax, eax
je 0x1003942c
xor edi, edi
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], edi
mov word [ebp - 0x23c], di
lea eax, [ebp - 0x224]
push eax
mov dword [ebp - 4], edi
call fcn.10053c3b
pop ecx
lea ecx, [ebp - 0x224]
lea esi, [ebp - 0x240]
call fcn.1000238b
mov ebx, 0x100847dc
push ebx
call fcn.10053c3b
mov edx, dword [ebp - 0x22c]
cmp edx, edi
pop ecx
mov dword [ebp - 0x254], eax
jbe 0x100392df
cmp dword [ebp - 0x228], 8
mov ecx, dword [ebp - 0x23c]
jae 0x1003929c
lea ecx, [ebp - 0x23c]
cmp dword [ebp - 0x228], 8
lea edi, [ecx + edx*2]
mov ecx, dword [ebp - 0x23c]
jae 0x100392db
lea ecx, [ebp - 0x23c]
jmp 0x100392db
mov eax, dword [ebp - 0x254]
test eax, eax
mov edx, ebx
jbe 0x100392cf
movzx esi, word [ecx]
cmp word [edx], si
je 0x100392d1
inc edx
inc edx
dec eax
jne 0x100392c5
xor edx, edx
test edx, edx
je 0x1003935f
inc ecx
inc ecx
cmp ecx, edi
jb 0x100392b6
or ecx, 0xffffffff
push ecx
xor edi, edi
lea esi, [ebp - 0x240]
call fcn.100018f6
push ebx
call fcn.10053c3b
pop ecx
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
jbe 0x1003939a
or edx, 0xffffffff
cmp ecx, edx
ja 0x1003930f
lea edx, [ecx - 1]
cmp dword [ebp - 0x228], 8
mov ecx, dword [ebp - 0x23c]
jae 0x10039324
lea ecx, [ebp - 0x23c]
lea ecx, [ecx + edx*2]
test eax, eax
mov edi, eax
mov edx, ebx
jbe 0x1003933c
movzx esi, word [ecx]
cmp word [edx], si
je 0x1003933e
inc edx
inc edx
dec edi
jne 0x10039332
xor edx, edx
test edx, edx
je 0x1003937d
cmp dword [ebp - 0x228], 8
mov edx, dword [ebp - 0x23c]
jae 0x10039357
lea edx, [ebp - 0x23c]
cmp ecx, edx
je 0x1003939a
dec ecx
dec ecx
jmp 0x10039327
cmp dword [ebp - 0x228], 8
mov eax, dword [ebp - 0x23c]
jae 0x10039374
lea eax, [ebp - 0x23c]
sub ecx, eax
sar ecx, 1
jmp 0x100392e2
cmp dword [ebp - 0x228], 8
mov eax, dword [ebp - 0x23c]
jae 0x10039392
lea eax, [ebp - 0x23c]
sub ecx, eax
sar ecx, 1
mov eax, ecx
jmp 0x1003939d
or eax, 0xffffffff
push 0xffffffffffffffff
lea edi, [eax + 1]
lea esi, [ebp - 0x240]
call fcn.100018f6
lea eax, [ebp - 0x258]
mov ecx, esi
call fcn.10001964
mov esi, eax
lea eax, [ebp - 0x268]
lea ecx, [ebp - 0x240]
call fcn.10001984
mov edi, eax
lea eax, [ebp - 0x270]
lea ecx, [ebp - 0x240]
call fcn.10001964
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x260]
call fcn.10039cc6
mov eax, dword [ebp - 0x23c]
add esp, 0x18
cmp dword [ebp - 0x228], 8
jae 0x10039412
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
push 1
lea esi, [ebp - 0x240]
mov edi, eax
call fcn.10001ef7
mov eax, edi
call fcn.1005ad3b
ret
Function at 0x10039ff1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test eax, eax
je 0x1003a00f
cmp word [eax], 0
je 0x1003a00f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003a00f
and al, 0x10
cmp al, 0x10
setne al
ret
xor al, al
ret

Function at 0x1003a012
Capabilities:
Get file version info

Disassembly:
push 0x280
mov eax, 0x10075ccc
call fcn.1005acb8
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x22c], eax
mov esi, ecx
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], edi
push 0x20a
lea eax, [ebp - 0x224]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.100541d0
add esp, 0xc
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.10056fb6
pop ecx
pop ecx
push edi
lea eax, [ebp - 0x224]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jne 0x1003a0f7
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x228]
lea esi, [ebp - 0x23c]
mov dword [ebp - 0x228], edi
call fcn.1003d122
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], edi
call fcn.1003d122
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], edi
call fcn.1003d122
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], edi
call fcn.1003d122
mov eax, dword [ebp - 0x22c]
mov ebx, esi
call fcn.1003d072
call fcn.1003d0e9
jmp 0x1003a21d
push esi
call fcn.10053290
pop ecx
push esi
mov ebx, eax
push edi
push ebx
mov dword [ebp - 0x240], ebx
call fcn.100541d0
add esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 0x224]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, edi
jne 0x1003a13f
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 2
jmp 0x1003a096
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x244]
push eax
push 0x1007df90
push ebx
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x258], edi
call sub.VERSION.dll_VerQueryValueW
cmp eax, edi
jne 0x1003a183
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 3
jmp 0x1003a096
push 0x34
push dword [ebp - 0x244]
lea eax, [ebp - 0x28c]
push eax
call fcn.10054250
mov eax, dword [ebp - 0x284]
shr eax, 0x10
add esp, 0xc
lea ebx, [ebp - 0x228]
lea esi, [ebp - 0x254]
mov dword [ebp - 0x228], eax
call fcn.1003d122
movzx eax, word [ebp - 0x284]
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
call fcn.1003d122
mov eax, dword [ebp - 0x280]
shr eax, 0x10
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
call fcn.1003d122
movzx eax, word [ebp - 0x280]
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
call fcn.1003d122
push dword [ebp - 0x240]
call fcn.10056151
mov eax, dword [ebp - 0x22c]
pop ecx
mov ebx, esi
call fcn.1003d072
lea esi, [ebp - 0x254]
call fcn.1003d0e9
mov eax, dword [ebp - 0x22c]
call fcn.1005ad3b
ret
Function at 0x1003b961
Capabilities:
Print debug messages

Disassembly:
push 0x50
mov eax, 0x10078a88
call fcn.1005ac4f
xor esi, esi
cmp dword [ebx + 0x70], esi
je 0x1003b97b
xor eax, eax
jmp 0x1003baaf
mov eax, ebx
call fcn.1003a7aa
cmp byte [ebp + 8], 0
jne 0x1003b9a1
lea eax, [ebx + 0x84]
mov ecx, dword [eax]
cmp ecx, 1
ja 0x1003b9a1
inc ecx
mov dword [eax], ecx
mov ecx, ebx
call fcn.1003a5ba
jmp 0x1003b9ae
mov edi, ebx
call fcn.1003c2bc
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x18], eax
push dword [ebx + 0x88]
mov eax, ebx
call fcn.1003b628
push dword [ebx + 0x8c]
mov eax, ebx
call fcn.1003b6e5
cmp dword [ebx + 0x98], esi
je 0x1003b9de
lea eax, [ebx + 0x9c]
push eax
mov eax, ebx
call fcn.1003b86f
cmp dword [ebx + 0x90], esi
je 0x1003b9f3
push dword [ebx + 0x94]
mov eax, ebx
call fcn.1003b7a3
push 0x10087dd4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x24]
lea ecx, [ebx + 0x11e8]
push eax
call fcn.1003c9b2
lea edi, [ebx + 0x11f4]
mov dword [ebp - 4], esi
call fcn.1002a437
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov esi, dword [ebp - 0x20]
je 0x1003ba3a
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x18], eax
je 0x1003ba3f
call fcn.10053b4e
cmp dword [ebp - 0x14], esi
je 0x1003ba95
lea esi, [ebp - 0x18]
call fcn.1003d178
push dword [eax]
push 0
call fcn.1003d178
add eax, 4
push eax
push ebx
call fcn.1003a866
test eax, eax
jne 0x1003ba8b
push 0x38
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.100541d0
or dword [ebp - 0x5c], 0xffffffff
add esp, 0xc
call fcn.1003d178
lea ecx, [ebp - 0x5c]
push ecx
push dword [eax]
mov ecx, dword [ebx + 0x7c]
push 0x59
call fcn.10038700
lea esi, [ebp - 0x18]
call fcn.1003d6be
jmp 0x1003ba29
push str.ReloadDownloadtask_end
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24]
call fcn.1003d588
xor eax, eax
inc eax
call fcn.1005ad27
ret 4
Function at 0x1003e223
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x2f0
mov eax, dword [0x10098428]
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.100541d0
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.100572e3
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x26c]
push str.CLSID_sLocalServer32
push eax
call fcn.100572e3
add esp, 0x38
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x26c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1003e306
xor eax, eax
jmp 0x1003e34a
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 0x1003e33c
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.10053c51
add ebp, 0x68
leave
ret
Function at 0x1003e780
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x10076d53
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10098428]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, 0x10099714
mov ebp, 0x1009d494
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 3
lea ecx, [ecx]
push 0x44
call fcn.100539ba
add esp, 4
mov dword [esp + 0x20], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x40], ebx
je 0x1003e7ec
mov ecx, dword [edi + 4]
mov edx, dword [edi - 4]
push ecx
mov ecx, dword [edi]
push edx
push eax
call fcn.1003f1a0
mov esi, eax
jmp 0x1003e7ee
xor esi, esi
mov dword [esp + 0x40], 0xffffffff
mov ecx, dword [ebp]
cmp esi, ecx
je 0x1003e80c
cmp ecx, ebx
je 0x1003e809
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [ebp], esi
mov ecx, dword [ebp]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x24]
push edx
call eax
test al, al
je 0x1003e8c5
mov eax, dword [ebp]
lea ecx, [esp + 0x1c]
call fcn.1003e490
mov dword [esp + 0x40], 1
mov esi, dword [eax]
cmp esi, ebx
je 0x1003e85d
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x1003e888
lea edi, [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1003e884
test edi, edi
je 0x1003e87b
lea ecx, [edi - 4]
jmp 0x1003e87d
xor ecx, ecx
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov edi, dword [esp + 0x14]
mov dword [ebp + 0x10], esi
mov dword [esp + 0x40], 0xffffffff
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x1003e8f6
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1003e8f6
test esi, esi
je 0x1003e8ba
mov edx, dword [esi - 4]
mov eax, dword [edx + 0x18]
lea ecx, [esi - 4]
call eax
jmp 0x1003e8f6
xor ecx, ecx
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
jmp 0x1003e8f6
call fcn.100430bb
test al, al
je 0x1003e8e7
mov ecx, dword [esp + 0x30]
push ecx
push str.CreateThread_Failed__last_error_d
push 2
mov ebx, str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForTestqqpcmgr_projAsyncFrame_asyncframertapi.cpp
call fcn.10042e8b
add esp, 0xc
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
add edi, 0xc
add ebp, 4
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], edi
jne 0x1003e7c0
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x1003f780
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, 0x1009d238
push 0x1009d4b0
call ebx
mov esi, dword [edi]
test esi, esi
je 0x1003f7b8
cmp dword [esi + 0x14], 0
je 0x1003f7b8
push 0x1009d4b0
call ebp
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
sub edi, 4
cmp edi, 0x1009d22c
jne 0x1003f795
mov eax, dword [0x1009d328]
test eax, eax
jne 0x1003f81a
call fcn.100430bb
test al, al
je 0x1003f7e9
push str.Create_Thread_LocalPoint
push 0xb
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForTestqqpcmgr_projincludeAsyncFrame_MessageLoop.h
call fcn.10042f4a
add esp, 0xc
push 8
call fcn.100539ba
mov esi, eax
add esp, 4
test esi, esi
je 0x1003f813
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 0x1003f815
xor eax, eax
mov dword [0x1009d328], 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 0x1003f833
mov dword [eax + 0x68], 1
mov al, 1
ret

Function at 0x1003f850
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x1009d328]
test eax, eax
jne 0x1003f8b0
call fcn.100430bb
test al, al
je 0x1003f876
push str.Create_Thread_LocalPoint
push 0xb
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForTestqqpcmgr_projincludeAsyncFrame_MessageLoop.h
call fcn.10042f4a
add esp, 0xc
push esi
push 8
call fcn.100539ba
mov esi, eax
add esp, 4
test esi, esi
je 0x1003f8a6
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
mov eax, esi
mov dword [0x1009d328], eax
pop esi
ret
xor esi, esi
mov eax, esi
mov dword [0x1009d328], eax
pop esi
ret
Function at 0x1003f950
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10078a2d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10098428]
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 dword [esi + 0x88], edi
call fcn.1003f850
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push eax
call ebx
call fcn.1003f850
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x1003fa07
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x24
call fcn.100539ba
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov byte [esp + 0x20], 6
je 0x1003fa28
push eax
call fcn.10042340
mov ebp, eax
jmp 0x1003fa2a
xor ebp, ebp
cmp ebp, edi
mov byte [esp + 0x20], 5
je 0x1003fa39
lea eax, [ebp + 4]
push eax
call ebx
mov eax, dword [esi + 0x70]
cmp eax, edi
je 0x1003fa60
lea ebx, [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1003fa60
cmp ebx, edi
je 0x1003fa57
lea ecx, [ebx - 4]
jmp 0x1003fa59
xor ecx, ecx
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov dword [esi + 0x70], ebp
mov eax, esi
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 0x10042190
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10078958
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10098428]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 8]
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp dword [esi + 0x20], ebx
je 0x100421e5
call fcn.1003f850
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [esi + 0x20]
jne 0x100421e5
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x10042230
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10079690
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x10098428]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 8]
push edi
xor bl, bl
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x58], 0
cmp dword [esi + 0x20], 0
je 0x10042305
call fcn.1003f850
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [esi + 0x20]
je 0x10042305
push 0x38
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForTestqqpcmgr_projAsyncFrameMessageLoopProxyImpl.cpp
push str.qmbase::MessageLoopProxyImpl::OnDestruct
lea ecx, [esp + 0x20]
push ecx
call fcn.10020a7b
push esi
mov byte [esp + 0x5c], 1
mov edx, dword [esi + 0x20]
push eax
push edx
call fcn.10042460
cmp dword [esp + 0x48], 0x10
jb 0x100422c8
mov eax, dword [esp + 0x34]
push eax
call fcn.10053c60
add esp, 4
cmp dword [esp + 0x2c], 0x10
mov ebx, 0xf
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
jb 0x100422f2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10053c60
add esp, 4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov bl, 1
push edi
mov dword [esp + 0x5c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x10042323
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push 1
mov ecx, esi
call eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x4c
ret
Function at 0x10042340
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10078933
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x10098428]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esp + 0x10], eax
lea eax, [esi + 8]
push 0x7d0
push eax
mov dword [esi], vtable.qmbase::MessageLoopProxyImpl.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [esp + 0x10], 1
call fcn.1003f850
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi + 0x20], eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4

Function at 0x10042985
Capabilities:
Read file via mapping

Disassembly:
push edi
push str.GlobalFA6FBBB1_8C8E_43b1_B8EC_35573A94C231
xor edi, edi
push edi
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, edi
mov dword [esi], eax
jne 0x100429a0
xor eax, eax
pop edi
ret
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x100429bf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x1004299c
mov dword [esi + 8], eax
xor eax, eax
inc eax
pop edi
ret

Function at 0x10042a57
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
mov byte [0x1009d5b0], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10042ac3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push str.EnableLogToView
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10042aba
cmp dword [ebp - 8], 1
jne 0x10042aba
mov byte [0x1009d5b0], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret

Function at 0x10042d6c
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10098428]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [edi], ebx
mov word [ebp - 0x20c], bx
call fcn.100541d0
add esp, 0xc
mov esi, 0x103
push esi
lea eax, [ebp - 0x20c]
push eax
push str._APPDATA_TencentQQPCMgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10042df6
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
je 0x10042df6
lea eax, [ebp - 0x20c]
push eax
lea ebx, [edi + 4]
push esi
push ebx
call fcn.1005892e
push 0xffffffffffffffff
push str.ErrLogFile.log
push 0x104
push ebx
call fcn.1005a122
add esp, 0x1c
jmp 0x10042e09
push esi
push str.C:ErrLogFile.log
lea eax, [edi + 4]
push esi
push eax
call fcn.1005768b
add esp, 0x10
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, edi
pop ebx
call fcn.10053c51
leave
ret
Function at 0x10042e19
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [esi], edi
jne 0x10042e42
push edi
push 0x20
push 4
push edi
push 3
push 0xc0000000
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, edi
mov dword [esi], eax
je 0x10042e86
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x10042e86
cmp eax, 0x2800
ja 0x10042e86
push 2
lea eax, [ebp - 4]
push eax
push edi
push dword [esi]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], edi
call fcn.10053bb0
pop ecx
push eax
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
leave
ret 4

Function at 0x10043115
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWARETencentQQPCMgr
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1004313e
xor eax, eax
leave
ret
push esi
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret