joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c840
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45e094
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
mov eax, dword [0x472100]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [edi + 0x10]
or esi, 0xffffffff
cmp eax, esi
je 0x44c87e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x44c8f5
mov dword [edi + 0x10], esi
mov eax, dword [edi + 0x18]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], esi
jbe 0x44c8be
mov ecx, dword [edi + 0x14]
mov ebx, dword [esp + 0x38]
call fcn.0044bc40
test eax, eax
jne 0x44c8fa
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x14]
push 0x477020
push eax
mov ecx, esi
call dword [0x475bc4]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x1c], eax
cmp byte [edi + 0x28], 0
je 0x44c9ab
mov dword [esp + 0x10], esi
mov dword [esp + 0x30], 0
mov eax, dword [edi + 0x1c]
push eax
lea esi, [esp + 0x14]
call fcn.0042e300
test al, al
jne 0x44c90f
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x44c8f5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80004005
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
cmp ebp, dword [edi + 0x34]
ja 0x44c99b
jb 0x44c923
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [edi + 0x30]
jae 0x44c99b
mov eax, dword [edi + 0x14]
push 0
lea edx, [esp + 0x1c]
push edx
push 0x100000
push eax
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44c9e5
mov esi, dword [esp + 0x18]
test esi, esi
je 0x44c99b
mov ecx, dword [edi + 0x14]
mov ebx, dword [esp + 0x38]
mov eax, esi
call fcn.0044bc40
mov ebx, eax
test ebx, ebx
jne 0x44c9f3
mov edx, dword [edi + 0x14]
mov ecx, dword [esp + 0x14]
push 0x477020
push esi
call dword [0x475bc4]
add dword [esp + 0x1c], esi
mov dword [esp + 0x14], eax
adc ebp, ebx
cmp ebp, dword [edi + 0x34]
jb 0x44c923
ja 0x44c99b
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [edi + 0x30]
jb 0x44c923
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x44c9ab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
cmp dword [edi + 0x38], edx
jne 0x44c8f5
mov eax, dword [esp + 0x1c]
cmp eax, dword [edi + 0x30]
jne 0x44c8f5
cmp ebp, dword [edi + 0x34]
jne 0x44c8f5
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
lea esi, [esp + 0x10]
call fcn.00406a20
jmp 0x44c8f5
lea esi, [esp + 0x10]
call fcn.00406a20
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x44cb80
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, dword [esi + 0x14]
push eax
call fcn.00410615
mov ecx, dword [esi + 0x1c]
push ecx
call fcn.00410615
mov eax, dword [esi + 0x10]
add esp, 8
cmp eax, 0xffffffff
je 0x44cbaf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x44cbaf
mov dword [esi + 0x10], 0xffffffff
cmp byte [esi], 0
je 0x44cbee
push edi
mov edi, dword [esi + 4]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x44cbda
xor al, al
test al, al
mov eax, dword [esi + 4]
sete dl
pop edi
push eax
mov byte [esi], dl
call fcn.00410615
pop ecx
ret
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
sete dl
mov byte [esi], dl
pop edi
mov eax, dword [esi + 4]
push eax
call fcn.00410615
pop ecx
ret

Function at 0x44d5d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45d8cb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x472100]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov dword [esi + 4], vtable.ICompressSetInStream.0
mov dword [esi + 8], vtable.ISequentialInStream.0
mov dword [esi + 0xc], vtable.ICompressSetOutStream.0
mov dword [esi + 0x10], vtable.ISequentialOutStream.0
mov dword [esi + 0x14], vtable.IOutStreamFlush.0
mov dword [esi + 0x18], vtable.ICryptoSetPassword.0
mov dword [esi + 0x1c], vtable.ICompressSetCoderProperties.0
mov dword [esi + 0x20], vtable.ICompressWriteCoderProperties.0
mov dword [esi + 0x24], vtable.ICryptoResetInitVector.0
mov dword [esi + 0x28], vtable.ICompressSetDecoderProperties2.0
xor edi, edi
mov dword [esi + 0x2c], edi
mov dword [esi], vtable.CFilterCoder.0
mov dword [esi + 4], vtable.CFilterCoder.1.0
mov dword [esi + 8], vtable.CFilterCoder.2.0
mov dword [esi + 0xc], vtable.CFilterCoder.3.0
mov dword [esi + 0x10], vtable.CFilterCoder.4.0
mov dword [esi + 0x14], vtable.CFilterCoder.5.0
mov dword [esi + 0x18], vtable.CFilterCoder.6.0
mov dword [esi + 0x1c], vtable.CFilterCoder.7.0
mov dword [esi + 0x20], vtable.CFilterCoder.8.0
mov dword [esi + 0x24], vtable.CFilterCoder.9.0
mov dword [esi + 0x28], vtable.CFilterCoder.10.0
mov dword [esi + 0x34], edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
push 4
push 0x1000
push 0x20000
push edi
mov byte [esp + 0x28], 7
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, edi
mov dword [esi + 0x30], eax
jne 0x44d6e0
push 0x46c99c
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 1
call fcn.00413fcb
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4529b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x4529cc
mov eax, dword [ebp - 4]
jmp 0x452aa7
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x452a82
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
mov edi, edi
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x467528]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x467528]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x467528]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x467528]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x467528]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x467528]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x467528]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x467528]
dec ebp
jne 0x4529ec
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x452a9e
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x467528]
dec ecx
jne 0x452a8c
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x452ae0
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x20c
mov eax, dword [0x472100]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [esp + 0xe]
push ebx
push eax
mov word [esp + 0x14], bx
call fcn.00413cc0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x452b83
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push eax
push ebx
push 2
push ebx
push esi
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp esi, ebx
mov dword [edi], eax
je 0x452b7c
mov ecx, dword [edi + 8]
push ecx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [edi + 4], eax
je 0x452b7c
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x210]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00410ae1
add esp, 0x20c
ret
Function at 0x453010
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x45eb47
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x472100]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [0x474db4]
mov edx, dword [eax + 0xc]
xor esi, esi
mov ecx, 0x474db4
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], esi
mov ecx, dword [esp + 0x30]
lea ebx, [esp + 0x14]
xor eax, eax
call fcn.00452ba0
mov edi, eax
test edi, edi
je 0x4530f7
cmp dword [edi], 0x4034b50
jne 0x453083
call fcn.00459810
jmp 0x4530ac
push 0x28
call fcn.004122e2
add esp, 4
test eax, eax
jne 0x4530a6
xor al, al
mov byte [esp + 0x30], al
push 0x46ca5c
lea eax, [esp + 0x34]
push eax
call fcn.00413fcb
push eax
call fcn.0042ff30
mov esi, eax
test esi, esi
je 0x4530f7
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
mov ecx, dword [ecx]
push edx
push eax
push edi
push esi
call ecx
test eax, eax
je 0x4530f0
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4530ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x45313a
mov edi, 1
jmp 0x4530fb
mov edi, dword [esp + 0x18]
cmp dword [ebp - 0xc], 0
je 0x453108
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x453114
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push esi
call edx
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x453138
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x453150
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x420
mov eax, dword [0x472100]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
xor esi, esi
push 0x206
lea eax, [esp + 0x21e]
push esi
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov word [esp + 0x224], si
call fcn.00413cc0
push 0x206
lea ecx, [esp + 0x22]
push esi
push ecx
mov word [esp + 0x28], si
call fcn.00413cc0
add esp, 0x18
cmp ebx, esi
mov dword [esp + 0xc], 0x208
je 0x45335b
push ebp
push edi
push 0x208
push esi
push ebx
call fcn.00413cc0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
mov edi, 1
mov edi, edi
push edi
push str.SOFTWARETencentPlatForm_Type_List_d
lea edx, [esp + 0x228]
call fcn.00401ac0
add esp, 8
lea edx, [esp + 0xc]
push edx
push 1
push esi
lea eax, [esp + 0x22c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x453292
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x453292
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
push esi
push str.TypePath
push eax
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x453283
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x453253
push 0x467e8c
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x453283
lea eax, [esp + 0x18]
mov edx, ebx
mov ecx, eax
mov dword [esp + 0x10], 1
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x453274
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x453296
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
add edi, 1
cmp edi, 5
jle 0x4531d0
cmp dword [esp + 0x10], esi
jne 0x45333f
lea edx, [esp + 0xc]
push edx
push 1
push esi
push str.SOFTWARETencentQQ2009
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
cmp eax, esi
jne 0x453330
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x4532f0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
push esi
push str.Install
push eax
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x453330
push str.BinQQ.exe
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x453330
lea eax, [esp + 0x18]
mov edx, ebx
mov ecx, eax
mov dword [esp + 0x10], 1
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x453321
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x45333f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop esi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00410ae1
add esp, 0x420
ret
mov ecx, dword [esp + 0x420]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00410ae1
add esp, 0x420
ret
Function at 0x453380
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov esi, eax
mov edi, ecx
mov dword [esp + 0x10], 0
jmp 0x4533a0
push 0
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ebp
call ebx
test eax, eax
je 0x4533c9
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4533c9
sub esi, eax
add edi, eax
test esi, esi
jne 0x4533a0
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x4533e0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1008
call fcn.00420040
mov eax, dword [0x472100]
xor eax, esp
mov dword [esp + 0x1004], eax
push ebx
push esi
xor esi, esi
push esi
push esi
push esi
push edi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea eax, [esp + 0xc]
push eax
push 0x1000
lea ecx, [esp + 0x18]
push ecx
push edi
call ebx
test eax, eax
je 0x453458
mov eax, dword [esp + 8]
test eax, eax
je 0x453471
push eax
lea edx, [esp + 0x10]
push edx
push esi
call fcn.004529b0
add esp, 0xc
push 0
mov esi, eax
lea eax, [esp + 0xc]
push eax
push 0x1000
lea ecx, [esp + 0x18]
push ecx
push edi
call ebx
test eax, eax
jne 0x453427
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1004]
xor ecx, esp
call fcn.00410ae1
add esp, 0x1008
ret
mov ecx, dword [esp + 0x100c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00410ae1
add esp, 0x1008
ret
Function at 0x453950
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x472100]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, 1
test byte [0x475e28], al
mov dword [esp], 0
jne 0x4539a2
or dword [0x475e28], eax
mov eax, dword [0x474db4]
mov edx, dword [eax + 0xc]
mov ecx, 0x474db4
call edx
add eax, 0x10
push 0x460b90
mov dword [0x475e24], eax
call fcn.00410e71
add esp, 4
mov eax, dword [0x475e24]
cmp dword [eax - 0xc], 0
jne 0x453a12
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x453a0d
lea eax, [esp + 4]
lea edx, [eax + 2]
jmp 0x4539d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4539d0
sub eax, edx
sar eax, 1
push ebx
lea ecx, [esp + 8]
mov ebx, eax
push ecx
mov eax, 0x475e24
call fcn.00401960
mov eax, 0x475e24
call fcn.00453490
push 8
push str.drivers_
push 0x475e24
call fcn.00401850
pop ebx
mov eax, dword [0x475e24]
add eax, 0xfffffff0
call fcn.004018f0
mov ecx, dword [esp + 0x20c]
add eax, 0x10
mov dword [esi], eax
xor ecx, esp
mov eax, esi
call fcn.00410ae1
add esp, 0x210
ret
Function at 0x453f70
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x45e1c7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x472100]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00401b20
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x454069
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x454069
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x454069
lea ecx, [esp + 0x14]
call fcn.00453a40
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x45402b
add eax, 0xfffffff0
mov dword [esp + 0x20], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x454015
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push eax
call fcn.00453f70
add esp, 4
test eax, eax
jne 0x454057
lea eax, [esp + 0x14]
call fcn.00404a80
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0
push esi
call edi
test eax, eax
jne 0x454069
call ebx
cmp eax, 0xb7
jne 0x454038
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x45408a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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 0x455940
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push ebx
xor bl, bl
lea eax, [esp + 4]
push eax
mov byte [esi + 0x1c], bl
mov byte [esi + 0x32], 1
mov byte [esi + 0x33], bl
mov byte [esi + 0x34], bl
mov byte [esi + 0x35], bl
mov byte [esi + 0x36], bl
mov byte [esi + 0x37], 1
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x18]
or eax, 0xffffffff
mov byte [esi + 0x40], bl
mov byte [esi + 0x31], bl
mov byte [esi + 0x30], bl
mov dword [esi], ecx
mov dword [esi + 0x3c], 5
mov byte [esi + 0x38], 1
mov dword [esi + 4], 4
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
pop ebx
add esp, 0x24
ret
Function at 0x458ad0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, ebp
xor ebx, ebx
call fcn.00401000
mov eax, dword [esp + 0x14]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x458b87
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x458b90
mov eax, dword [ebp]
sub eax, 0x10
mov dword [esp + 0x10], ebx
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [edi + 1]
sub eax, ecx
or edx, eax
mov ebx, edi
jge 0x458b41
mov eax, ebp
call fcn.004015f0
mov ebp, dword [ebp]
mov dword [esp + 0x18], ebp
push 0
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x458b9a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x458b9a
sub ebx, eax
add ebp, eax
test ebx, ebx
jne 0x458b48
mov edx, dword [esp + 0x18]
mov byte [edx + edi], bl
mov edi, dword [esp + 0x1c]
call fcn.00401060
pop edi
pop esi
pop ebp
lea eax, [ebx + 1]
pop ebx
pop ecx
ret 8
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x45bc50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45e787
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x472100]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x472100]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
xor ebp, ebp
push 0x206
lea eax, [esp + 0x26]
push ebp
push eax
mov word [esp + 0x2c], bp
call fcn.00413cc0
mov edx, dword [0x474db4]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x474db4
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x234], ebp
mov edx, dword [0x474db4]
mov eax, dword [edx + 0xc]
mov ecx, 0x474db4
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x234], 1
mov eax, dword [0x475e00]
cmp eax, ebp
je 0x45bd92
lea ecx, [esp + 0x14]
push ecx
push str.installpath
push eax
call fcn.004021a0
test eax, eax
je 0x45bd92
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
call fcn.004018f0
lea edx, [esp + 0x20]
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.004534d0
add esp, 8
mov edi, 0x475db8
mov byte [esp + 0x234], 2
call fcn.00401500
mov byte [esp + 0x234], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45bd66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x475db8]
push ecx
call fcn.00453f70
add esp, 4
test eax, eax
je 0x45bd83
mov ebp, 1
jmp 0x45be40
mov edx, 0x467ad8
mov edi, 0x475db8
call fcn.00401ae0
lea edx, [esp + 0x20]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebp
je 0x45be36
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x45bdc0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x20]
mov ebx, eax
push ecx
mov eax, 0x475db8
call fcn.00401960
push 0x10
push str.TencentDownload_
push 0x475db8
call fcn.00401850
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._x_
lea edi, [esp + 0x20]
call fcn.00401750
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx - 0xc]
add esp, 8
push eax
push ebx
push 0x475db8
call fcn.00401850
mov edx, dword [0x475db8]
push edx
call fcn.00453f70
add esp, 4
test eax, eax
je 0x45be36
mov ebp, 1
jmp 0x45be40
mov esi, 0x475db8
call fcn.00401e90
mov byte [esp + 0x234], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45be68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x234], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45be8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00410ae1
add esp, 0x224
ret