joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100534aa
Capabilities:
Print debug messages

Disassembly:
push 0x58
mov eax, 0x100b80c6
call fcn.10076188
xor esi, esi
cmp dword [ebx + 0x70], esi
je 0x100534c4
xor eax, eax
jmp 0x10053610
mov eax, ebx
call fcn.10052245
cmp byte [ebp + 8], 0
jne 0x100534ea
lea eax, [ebx + 0x84]
mov ecx, dword [eax]
cmp ecx, 1
ja 0x100534ea
inc ecx
mov dword [eax], ecx
mov ecx, ebx
call fcn.1005204b
jmp 0x100534f7
mov edi, ebx
call fcn.10053bd8
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x18], eax
push dword [ebx + 0x88]
mov eax, ebx
call fcn.10053171
push dword [ebx + 0x8c]
mov eax, ebx
call fcn.1005322e
cmp dword [ebx + 0x98], esi
je 0x10053527
lea eax, [ebx + 0x9c]
push eax
mov eax, ebx
call fcn.100533b8
cmp dword [ebx + 0x90], esi
je 0x1005353c
push dword [ebx + 0x94]
mov eax, ebx
call fcn.100532ec
push 0x100cd7c4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x2c]
lea ecx, [ebx + 0x11e8]
push eax
call fcn.10054280
lea edi, [ebx + 0x11f4]
mov dword [ebp - 4], esi
call fcn.10051522
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
lea ecx, [ebp - 0x18]
call fcn.1001f937
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.1001f937
cmp dword [ebp - 0x18], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
je 0x10053599
cmp dword [ebp - 0x18], eax
je 0x1005359e
call fcn.1006e161
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
je 0x100535f6
lea esi, [ebp - 0x18]
call fcn.10054b06
push dword [eax]
push 0
call fcn.10054b06
add eax, 4
push eax
push ebx
call fcn.10052307
test eax, eax
jne 0x100535ec
push 0x38
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.10070f00
or dword [ebp - 0x64], 0xffffffff
add esp, 0xc
call fcn.10054b06
push dword [eax]
mov ecx, dword [ebx + 0x7c]
push 0x59
lea edx, [ebp - 0x64]
call fcn.1004faac
lea esi, [ebp - 0x18]
call fcn.100553a9
jmp 0x1005357a
push str.ReloadDownloadtask_end
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
call fcn.10054f7e
xor eax, eax
inc eax
call fcn.10076227
ret 4
Function at 0x1005635a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x2f0
mov eax, dword [0x100e03e0]
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.10070f00
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.1007282b
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x26c]
push str.CLSID_sLocalServer32
push eax
call fcn.1007282b
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 0x1005643d
xor eax, eax
jmp 0x10056481
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 0x10056473
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.1006e261
add ebp, 0x68
leave
ret
Function at 0x10056820
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x100b6b83
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100e03e0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, 0x100fc468
mov ebp, 0x100f7e6c
mov dword [esp + 0x14], 3
lea esp, [esp]
push 0x44
call fcn.1006dfcd
add esp, 4
mov dword [esp + 0x1c], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x3c], ebx
je 0x1005688e
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
push ecx
mov ecx, dword [ebp - 4]
push edx
push ecx
push eax
call fcn.10057290
mov edi, eax
jmp 0x10056890
xor edi, edi
mov dword [esp + 0x3c], 0xffffffff
mov ecx, dword [esi]
cmp edi, ecx
je 0x100568ac
cmp ecx, ebx
je 0x100568aa
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], ebx
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x20]
push eax
call edx
test al, al
je 0x1005691c
mov eax, dword [esi]
lea ecx, [esp + 0x18]
call fcn.100565c0
mov dword [esp + 0x3c], 1
mov edi, dword [eax]
cmp edi, ebx
je 0x100568f7
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x10056906
lea ecx, [eax + 4]
call fcn.100350c1
lea ecx, [esp + 0x18]
mov dword [esi + 0x10], edi
mov dword [esp + 0x3c], 0xffffffff
call fcn.10035010
jmp 0x1005694d
call fcn.1005b2b4
test al, al
je 0x1005693e
mov ecx, dword [esp + 0x2c]
push ecx
push str.CreateThread_Failed__last_error_d
push 2
mov ebx, str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForDComqqpcmgr_projAsyncFrame_asyncframertapi.cpp
call fcn.1005b084
add esp, 0xc
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
add ebp, 0xc
add esi, 4
sub dword [esp + 0x14], 1
jne 0x10056860
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 0x10057840
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, 0x100fc188
push 0x100fc484
call ebx
mov esi, dword [edi]
test esi, esi
je 0x10057878
cmp dword [esi + 0x14], 0
je 0x10057878
push 0x100fc484
call ebp
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
sub edi, 4
cmp edi, 0x100fc17c
jne 0x10057855
mov eax, dword [0x100fc28c]
test eax, eax
jne 0x100578da
call fcn.1005b2b4
test al, al
je 0x100578a9
push str.Create_Thread_LocalPoint
push 0xb
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForDComqqpcmgr_projincludeAsyncFrame_MessageLoop.h
call fcn.1005b143
add esp, 0xc
push 8
call fcn.1006dfcd
mov esi, eax
add esp, 4
test esi, esi
je 0x100578d3
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 0x100578d5
xor eax, eax
mov dword [0x100fc28c], 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 0x100578f3
mov dword [eax + 0x68], 1
mov al, 1
ret

Function at 0x10057910
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x100fc28c]
test eax, eax
jne 0x10057970
call fcn.1005b2b4
test al, al
je 0x10057936
push str.Create_Thread_LocalPoint
push 0xb
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForDComqqpcmgr_projincludeAsyncFrame_MessageLoop.h
call fcn.1005b143
add esp, 0xc
push esi
push 8
call fcn.1006dfcd
mov esi, eax
add esp, 4
test esi, esi
je 0x10057966
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 [0x100fc28c], eax
pop esi
ret
xor esi, esi
mov eax, esi
mov dword [0x100fc28c], eax
pop esi
ret
Function at 0x10057a10
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100b806d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100e03e0]
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.10057910
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push eax
call ebx
call fcn.10057910
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x10057ac7
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x24
call fcn.1006dfcd
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov byte [esp + 0x20], 6
je 0x10057ae8
push eax
call fcn.1005a5d0
mov ebp, eax
jmp 0x10057aea
xor ebp, ebp
cmp ebp, edi
mov byte [esp + 0x20], 5
je 0x10057af9
lea eax, [ebp + 4]
push eax
call ebx
mov eax, dword [esi + 0x70]
cmp eax, edi
je 0x10057b08
lea ecx, [eax + 4]
call fcn.100350c1
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 0x1005a470
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100b7f98
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100e03e0]
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 0x1005a4c5
call fcn.10057910
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [esi + 0x20]
jne 0x1005a4c5
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 0x1005a510
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100b88d0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x100e03e0]
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 0x1005a59a
call fcn.10057910
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [esi + 0x20]
je 0x1005a59a
push 0x38
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForDComqqpcmgr_projAsyncFrameMessageLoopProxyImpl.cpp
push str.qmbase::MessageLoopProxyImpl::OnDestruct
lea ecx, [esp + 0x20]
call fcn.10034d91
push esi
mov byte [esp + 0x5c], 1
mov ecx, dword [esi + 0x20]
push eax
push ecx
call fcn.1005a6f0
lea ecx, [esp + 0x14]
call fcn.10034ef3
mov bl, 1
push edi
mov dword [esp + 0x5c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x1005a5b8
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 0x1005a5d0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100b7f73
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x100e03e0]
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.10057910
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 0x1005ab87
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 0x1005aba2
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 0x1005abc1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x1005ab9e
mov dword [esi + 8], eax
xor eax, eax
inc eax
pop edi
ret

Function at 0x1005ac50
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 [0x100fc5b8], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1005acbc
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 0x1005acb3
cmp dword [ebp - 8], 1
jne 0x1005acb3
mov byte [0x100fc5b8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100e03e0]
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.10070f00
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 0x1005afef
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
je 0x1005afef
lea eax, [ebp - 0x20c]
push eax
lea ebx, [edi + 4]
push esi
push ebx
call fcn.10072001
push 0xffffffffffffffff
push str.ErrLogFile.log
push 0x104
push ebx
call fcn.100753e2
add esp, 0x1c
jmp 0x1005b002
push esi
push str.C:ErrLogFile.log
lea eax, [edi + 4]
push esi
push eax
call fcn.10072215
add esp, 0x10
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, edi
pop ebx
call fcn.1006e261
leave
ret
Function at 0x1005b012
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 0x1005b03b
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 0x1005b07f
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x1005b07f
cmp eax, 0x2800
ja 0x1005b07f
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.1006e1c0
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 0x1005b30e
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.SOFTWARETencentQQPC2Mgr
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1005b337
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
Function at 0x1005c827
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
and dword [ebp - 0x2c], 0
push edi
push 7
xor eax, eax
test edx, edx
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
jne 0x1005c845
jmp 0x1005c9b6
push ebx
push esi
lea eax, [edx + 0x20]
mov esi, eax
push 8
pop ebx
mov ecx, ebx
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [edx + 0x40]
mov ecx, 0x4d34d34d
add esi, ecx
add dword [eax], esi
mov eax, dword [eax]
cmp eax, dword [ebp - 0x4c]
mov eax, 0x2cb2cb2d
sbb esi, esi
neg esi
sub esi, eax
add dword [edx + 0x24], esi
mov esi, dword [edx + 0x24]
cmp esi, dword [ebp - 0x48]
mov esi, 0x34d34d34
sbb edi, edi
neg edi
add edi, esi
add dword [edx + 0x28], edi
mov edi, dword [edx + 0x28]
cmp edi, dword [ebp - 0x44]
mov dword [ebp - 0xc], ebx
sbb edi, edi
neg edi
add edi, ecx
add dword [edx + 0x2c], edi
mov edi, dword [edx + 0x2c]
cmp edi, dword [ebp - 0x40]
sbb edi, edi
neg edi
sub edi, eax
add dword [edx + 0x30], edi
mov edi, dword [edx + 0x30]
cmp edi, dword [ebp - 0x3c]
sbb edi, edi
neg edi
add edi, esi
add dword [edx + 0x34], edi
mov esi, dword [edx + 0x34]
cmp esi, dword [ebp - 0x38]
sbb esi, esi
neg esi
add esi, ecx
add dword [edx + 0x38], esi
mov ecx, dword [edx + 0x38]
cmp ecx, dword [ebp - 0x34]
mov esi, edx
sbb ecx, ecx
neg ecx
sub ecx, eax
add dword [edx + 0x3c], ecx
mov eax, dword [edx + 0x3c]
cmp eax, dword [ebp - 0x30]
mov dword [ebp - 8], esi
sbb eax, eax
neg eax
mov dword [edx + 0x40], eax
lea eax, [ebp - 0x2c]
sub eax, edx
mov ecx, dword [esi + 0x20]
add ecx, dword [esi]
movzx edi, cx
mov esi, ecx
shr esi, 0x10
mov dword [ebp - 4], esi
imul esi, edi
mov ebx, edi
imul ebx, edi
shr ebx, 0x11
add ebx, esi
mov esi, dword [ebp - 4]
imul esi, esi
shr ebx, 0xf
add ebx, esi
mov esi, ecx
imul esi, ecx
xor ebx, esi
mov esi, dword [ebp - 8]
mov dword [eax + esi], ebx
add esi, 4
dec dword [ebp - 0xc]
mov dword [ebp - 8], esi
jne 0x1005c8ee
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
mov esi, eax
rol esi, 0x10
add esi, ecx
rol edi, 0x10
add edi, esi
mov esi, ecx
rol esi, 8
add esi, dword [ebp - 0x28]
mov dword [edx], edi
add esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x28]
mov dword [edx + 4], esi
mov esi, dword [ebp - 0x24]
rol edi, 0x10
add edi, esi
rol ecx, 0x10
add ecx, edi
mov edi, dword [ebp - 0x20]
mov dword [edx + 8], ecx
mov ecx, esi
rol ecx, 8
add ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x28]
rol edi, 0x10
rol esi, 0x10
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0x1c]
add edi, ecx
add esi, edi
mov dword [edx + 0x10], esi
mov esi, ecx
rol esi, 8
add esi, dword [ebp - 0x18]
add esi, dword [ebp - 0x20]
mov dword [edx + 0x14], esi
mov esi, dword [ebp - 0x18]
rol esi, 0x10
add esi, eax
rol ecx, 0x10
add ecx, esi
rol eax, 8
add eax, dword [ebp - 0x18]
pop esi
add eax, dword [ebp - 0x10]
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], eax
xor eax, eax
inc eax
pop ebx
pop edi
leave
ret
Function at 0x1005c9fe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
test esi, esi
jne 0x1005ca0b
xor eax, eax
leave
ret
push ebx
push edi
push 0xc
mov edi, str.QQPCMgrLibrary_s
pop ecx
mov eax, edi
call fcn.1005c9b9
mov ebx, eax
push 8
pop ecx
mov eax, edi
call fcn.1005c9b9
mov dword [ebp - 8], eax
push 4
pop ecx
mov eax, edi
call fcn.1005c9b9
mov dword [ebp - 4], eax
xor ecx, ecx
mov eax, edi
call fcn.1005c9b9
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [esi + 0x10], ecx
shr ecx, 0x10
mov edi, eax
shl edi, 0x10
or edi, ecx
mov dword [esi + 4], edi
mov ecx, eax
shr ecx, 0x10
mov edi, ebx
shl edi, 0x10
or ecx, edi
mov dword [esi + 0xc], ecx
mov ecx, edx
shl ecx, 0x10
mov edi, ebx
shr edi, 0x10
or ecx, edi
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 4]
shl ecx, 0x10
mov edi, edx
shr edi, 0x10
or ecx, edi
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 4]
rol ecx, 0x10
mov dword [esi + 0x20], ecx
mov ecx, eax
rol ecx, 0x10
mov dword [esi + 0x28], ecx
mov ecx, ebx
rol ecx, 0x10
mov edi, edx
mov dword [esi + 0x30], ecx
mov ecx, edx
xor edi, ebx
rol ecx, 0x10
mov dword [esi + 0x38], ecx
mov ecx, 0xffff
and edi, ecx
xor edi, ebx
mov dword [esi + 0x24], edi
mov edi, dword [ebp - 4]
xor edi, edx
mov dword [esi + 8], edx
and edi, ecx
xor edi, edx
mov edx, eax
xor edx, dword [ebp - 4]
mov dword [esi], ebx
and edx, ecx
xor edx, dword [ebp - 4]
mov dword [esi + 0x18], eax
mov dword [esi + 0x34], edx
mov edx, eax
xor edx, ebx
mov dword [esi + 0x2c], edi
and edx, ecx
xor edx, eax
and dword [esi + 0x40], 0
push 4
mov dword [esi + 0x3c], edx
pop edi
mov edx, esi
call fcn.1005c827
dec edi
jne 0x1005cae9
push 0xfffffffffffffffc
pop edx
push 8
mov ecx, esi
pop edi
mov ebx, dword [ecx]
mov eax, edx
and eax, 7
lea eax, [esi + eax*4 + 0x20]
xor dword [eax], ebx
add ecx, 4
inc edx
dec edi
jne 0x1005cafb
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret