joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc3d2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [edx]
push ebx
push esi
mov esi, dword [eax]
mov ebx, ecx
push edi
lea edi, [ebp - 0x14]
sub edx, esi
push 0x10
sub edi, esi
pop ecx
mov al, byte [edx + esi]
xor al, byte [esi]
mov byte [edi + esi], al
inc esi
sub ecx, 1
jne 0x4bc3f8
mov edi, dword [ebx]
xor eax, eax
xor esi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, esi
call fcn.004bc39e
and eax, reloc.WS2_32.dll_ntohs
jns 0x4bc423
dec eax
or eax, 0xfffffff0
inc eax
mov cl, byte [ebp + eax - 0x14]
mov eax, dword [ebx]
xor cl, byte [ebp + esi - 0x14]
mov byte [esi + eax], cl
inc esi
cmp esi, 0x10
jl 0x4bc410
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00542347
leave
ret

Function at 0x4bd7e0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x4bd83f
push 0x5ffb24
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4bd80c
mov eax, 1
jmp 0x4bd85d
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4bd83d
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
jmp 0x4bd85d
jmp 0x4bd858
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4bd858
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x4bd85d
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4f4e81
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0x38
mov eax, 0x5c8904
call fcn.00542a0f
mov edi, ecx
xor dl, dl
lea ecx, [ebp - 0x40]
xor ebx, ebx
call fcn.004f50a9
push ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ebx
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
push 3
push ebx
inc ecx
push ecx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4f4f50
xor eax, eax
lea ecx, [ebp - 0x28]
lea edx, [eax + 1]
call fcn.004f50a9
lea ecx, [ebp - 0x40]
call fcn.004f587e
test al, al
jne 0x4f4f23
lea ecx, [ebp - 0x28]
call fcn.004f587e
test al, al
je 0x4f4f23
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push ebx
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4f4f23
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00403f80
cmp esi, 0xffffffff
je 0x4f4f87
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x4f4f80
push ebx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
push eax
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f4f80
cmp dword [ebp - 0x44], 0x10
push 1
movzx ebx, bl
pop ecx
cmove ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.00403f80
mov al, bl
call fcn.005429be
ret

Function at 0x4f4f97
Capabilities:
Write file on windows

Disassembly:
push 0x38
mov eax, 0x5c8938
call fcn.00542a0f
mov edi, ecx
xor dl, dl
lea ecx, [ebp - 0x40]
xor ebx, ebx
call fcn.004f50a9
push ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ebx
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
push 2
push ebx
inc ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4f5015
xor eax, eax
lea ecx, [ebp - 0x28]
lea edx, [eax + 1]
call fcn.004f50a9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00403f80
cmp esi, 0xffffffff
je 0x4f503c
push ebx
lea eax, [ebp - 0x44]
push eax
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4f5035
cmp dword [ebp - 0x44], 0x10
push 1
movzx ebx, bl
pop ecx
cmove ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.00403f80
mov al, bl
call fcn.005429be
ret
Function at 0x4f50a9
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x234
mov eax, 0x5c8991
call fcn.00542a0f
mov bl, dl
mov esi, ecx
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x240], esi
xor ecx, ecx
mov dword [ebp - 0x23c], ecx
xor eax, eax
mov dword [esi], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
xor edi, edi
mov dword [ebp - 4], ecx
push ecx
lea eax, [ebp - 0x218]
inc edi
push eax
mov dword [ebp - 0x23c], edi
call fcn.00548bf0
add esp, 0xc
test bl, bl
push edi
push 0x23
pop eax
push 0x1a
pop ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4f51f8
and dword [ebp - 0x230], 0
lea ecx, [ebp - 0x230]
and dword [ebp - 0x220], 0
xor eax, eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 7
call fcn.00409240
lea eax, [ebp - 0x230]
mov dword [ebp - 4], edi
push eax
mov ecx, esi
call fcn.00447068
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4f51c3
mov ecx, dword [ebp - 0x230]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], ecx
cmp eax, 0x1000
jb 0x4f51ba
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00403fef
mov eax, dword [ebp - 0x238]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x234]
push eax
push ecx
call fcn.00541bf5
pop ecx
pop ecx
mov ecx, esi
test bl, bl
je 0x4f51d0
push str.TencentDeskUpdate
jmp 0x4f51d5
push str.TencentDesktop
call fcn.00409b6d
mov ecx, esi
call fcn.004f5200
test al, al
jne 0x4f51ec
mov ecx, esi
call fcn.004f52ed
push str.Global.db
mov ecx, esi
call fcn.00409b6d
mov eax, esi
call fcn.005429be
ret
Function at 0x4f775f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor eax, eax
push 3
pop esi
inc eax
mov dword [ebp - 0x10c], 0x104
mov dword [ebp - 0x110], eax
mov ebx, ecx
lea eax, [ebp - 0x11c]
xor ecx, ecx
push eax
push 0x20019
push ecx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], ecx
call edi
test eax, eax
jne 0x4f790d
push ebx
push str._sConnection
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.004f7d7c
add esp, 0x10
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4f7905
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.MediaSubType
push dword [ebp - 0x118]
call ebx
test eax, eax
jne 0x4f78fd
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 1
push eax
mov dword [ebp - 0x10c], 0x103
call fcn.00548bf0
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x118]
call ebx
test eax, eax
jne 0x4f78fd
mov eax, dword [ebp - 0x114]
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x4f78f7
push esi
lea eax, [ebp - 0x108]
push 0x6099e8
push eax
call fcn.00579cb0
add esp, 0xc
test eax, eax
jne 0x4f78c9
xor esi, esi
jmp 0x4f78fd
mov eax, dword [ebp - 0x114]
cmp eax, ebx
jne 0x4f78f7
push esi
lea eax, [ebp - 0x108]
push 0x6099e8
push eax
call fcn.00579cb0
add esp, 0xc
test eax, eax
je 0x4f78f1
push 2
pop esi
jmp 0x4f78fd
mov eax, dword [ebp - 0x114]
cmp eax, 2
cmove esi, ebx
push dword [ebp - 0x118]
call edi
push dword [ebp - 0x11c]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00542347
leave
ret
Function at 0x4f7b65
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa0
call fcn.00542070
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x20c]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.00548bf0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4f7bb4
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x4f7bf5
push 0x5c
pop eax
cmp ax, word [ebp + ecx*2 - 0x20e]
je 0x4f7bf5
mov word [ebp + ecx*2 - 0x20c], ax
lea ecx, [ecx*2 + 2]
cmp ecx, esi
jae 0x4f7d4e
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4f7bfe
sub ecx, edx
mov edx, 0x104
sar ecx, 1
mov eax, edx
sub eax, ecx
push eax
push str.iphlpapi.dll
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.005819a5
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2aa0], eax
test eax, eax
jne 0x4f7c4a
xor al, al
jmp 0x4f7d3f
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f7d16
lea ecx, [ebp - 0x2a9c]
mov dword [ebp - 0x2a9c], 0x2880
push ecx
lea ecx, [ebp - 0x2a8c]
push ecx
call eax
test eax, eax
jne 0x4f7d16
push 3
lea esi, [ebp - 0x2a8c]
pop ebx
lea ecx, [esi + 8]
call fcn.004f775f
mov dword [ebp - 0x2a98], eax
mov ecx, edi
xor eax, eax
mov dword [ebp - 0x2a94], eax
mov word [ebp - 0x2a90], ax
lea eax, [ebp - 0x2a94]
push eax
call fcn.004f772a
test al, al
jne 0x4f7ccd
cmp dword [esi + 0x1a0], 6
jne 0x4f7d0a
mov ecx, dword [ebp - 0x2a98]
cmp ebx, ecx
jle 0x4f7d0a
jmp 0x4f7cd3
mov ecx, dword [ebp - 0x2a98]
mov al, byte [esi + 0x194]
mov ebx, ecx
mov byte [edi], al
mov al, byte [esi + 0x195]
mov byte [edi + 1], al
mov al, byte [esi + 0x196]
mov byte [edi + 2], al
mov al, byte [esi + 0x197]
mov byte [edi + 3], al
mov al, byte [esi + 0x198]
mov byte [edi + 4], al
mov al, byte [esi + 0x199]
mov byte [edi + 5], al
mov esi, dword [esi]
test esi, esi
jne 0x4f7c89
xor ebx, ebx
push dword [ebp - 0x2aa0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x2a94]
mov dword [ebp - 0x2a94], ebx
push eax
mov ecx, edi
mov word [ebp - 0x2a90], bx
call fcn.004f772a
xor al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00542347
leave
ret
call fcn.00542639
int3
Function at 0x4f8c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
call fcn.00463137
cmp eax, 5
jle 0x4f8cad
push 0x1d
pop ecx
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
push 4
pop eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x80]
movsw word es:[edi], word [esi]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4f8cad
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
push ebx
push str.EnableLUA
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x90], 1
push dword [ebp - 0x84]
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00542347
leave
ret
Function at 0x4fa165
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push ebx
push edx
call dword [eax + 0x10]
cmp dword [ebp - 8], 0
je 0x4fa195
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4fa195
mov bl, 1
jmp 0x4fa197
xor bl, bl
lea ecx, [ebp - 0x18]
call fcn.00403f80
mov al, bl
pop ebx
leave
ret

Function at 0x4fa1a9
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ecx]
lea edx, [ebp - 0x38]
push ebx
push esi
push edi
push edx
call dword [eax + 0x10]
cmp dword [ebp - 0x28], 0
je 0x4fa2fd
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4fa2fd
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4fa219
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x5ff3c8
call fcn.0044114c
jmp 0x4fa2ea
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4fa23c
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x5ff3c8
call fcn.0044114c
jmp 0x4fa2e6
push ebx
lea eax, [edi + 1]
mov dword [ebp - 0x20], ebx
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0xf
call fcn.00444b19
cmp dword [ebp - 0xc], 0x10
lea ecx, [ebp - 4]
push ebx
push ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
cmovae eax, dword [ebp - 0x20]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fa293
cmp edi, dword [ebp - 4]
jne 0x4fa293
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
call fcn.004410c0
jmp 0x4fa2a2
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x5ff3c8
call fcn.0044114c
mov eax, dword [ebp - 0xc]
cmp eax, 0x10
jb 0x4fa2d9
mov ecx, dword [ebp - 0x20]
inc eax
mov dword [ebp - 8], ecx
mov dword [ebp + 8], eax
cmp eax, 0x1000
jb 0x4fa2d0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00403fef
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
push eax
push ecx
call fcn.00541bf5
pop ecx
pop ecx
mov byte [ebp - 0x20], bl
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
test esi, esi
je 0x4fa2f1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x38]
call fcn.00403f80
mov eax, edi
jmp 0x4fa315
mov ecx, dword [ebp + 8]
push 0x5ff3c8
call fcn.0044114c
lea ecx, [ebp - 0x38]
call fcn.00403f80
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4fa937
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
cmp dword [esi + 0x14], 8
jb 0x4fa950
mov eax, dword [esi]
push 0x5d019c
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x4faacf
mov ebx, dword [ebp + 0x14]
xor edi, edi
cmp dword [ebx], edi
je 0x4faacf
push 0x800
lea eax, [ebp - 0x830]
push edi
push eax
call fcn.00548bf0
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4fa990
mov eax, dword [esi]
push eax
push 0x400
lea eax, [ebp - 0x830]
push eax
push edi
push 0x5ff8d0
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x830], di
je 0x4faacf
push 0x14
call fcn.00415ffa
pop ecx
test eax, eax
je 0x4fa9d0
mov ecx, eax
call fcn.0043cccc
mov edi, eax
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040921d
push 0x5cffb4
lea ecx, [ebp - 0x30]
call fcn.0040921d
lea eax, [ebp - 0x18]
push eax
call fcn.0043d062
pop ecx
push eax
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.0043d6e7
lea ecx, [ebp - 0x30]
call fcn.00403f80
lea ecx, [ebp - 0x18]
call fcn.00403f80
push str.title
lea ecx, [ebp - 0x18]
call fcn.0040921d
sub esp, 0x18
xor eax, eax
mov ecx, esp
push esi
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.00408766
lea eax, [ebp - 0x30]
push eax
call fcn.005af7b0
push eax
call fcn.0043d062
add esp, 0x20
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0043d6e7
lea ecx, [ebp - 0x30]
call fcn.00403f80
lea ecx, [ebp - 0x18]
call fcn.00403f80
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], 0
je 0x4faa93
push str.path
lea ecx, [ebp - 0x18]
call fcn.0040921d
push esi
call fcn.0043d062
pop ecx
push eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0043d6e7
lea ecx, [ebp - 0x18]
call fcn.00403f80
push 0x5cffc8
lea ecx, [ebp - 0x18]
call fcn.0040921d
push dword [ebp + 0x10]
call fcn.0043d062
pop ecx
push eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0043d6e7
lea ecx, [ebp - 0x18]
call fcn.00403f80
mov ecx, dword [ebx]
push edi
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
sar eax, 2
push eax
call fcn.0043e0c8
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4fb19e
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x28], ebx
je 0x4fb1c5
lea eax, [edi + 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.004065d3
mov al, 1
jmp 0x4fb2ae
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4fb1cf
mov eax, dword [edi]
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4fb1f4
test eax, eax
je 0x4fb1f4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
jmp 0x4fb1b6
push 0x250
lea eax, [ebp - 0x268]
push ebx
push eax
call fcn.00548bf0
add esp, 0xc
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4fb213
mov eax, dword [edi]
push esi
lea ecx, [ebp - 0x268]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov esi, ebx
push eax
cmovne esi, dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x1400000
ja 0x4fb29b
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push 0x5d01cc
push esi
push eax
add edi, 0x18
call fcn.0044a2d9
add esp, 0xc
mov ecx, edi
push eax
call fcn.00446faf
lea ecx, [ebp - 0x18]
call fcn.00403f80
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x4fb26f
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4fb279
mov eax, dword [esi]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4fb29f
mov esi, 0x5f9b84
push esi
call fcn.00553a47
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00407f20
xor al, al
jmp 0x4fb2ad
push edi
mov ecx, esi
call fcn.004065d3
cmp dword [esi + 0x10], ebx
setne al
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x4fda3f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
lea eax, [ebp - 0x214]
push ebx
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4fdacc
and dword [ebp - 8], 0
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4fdacc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x4fdacc
push edi
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x214]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x5fb124
push edi
call sub.VERSION.dll_VerQueryValueW
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
jmp 0x4fdace
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4fe82e
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
jne 0x4fe846
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x1c
pop edi
mov ebx, eax
lea eax, [ebp - 0x1c]
push edi
push 0
push eax
mov dword [ebp + 8], ebx
call fcn.00548bf0
add esp, 0xc
mov dword [ebp - 0x1c], edi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
test edi, edi
je 0x4fe8c4
lea eax, [ebp - 0x1c]
push eax
push edi
call sub.KERNEL32.dll_Thread32First
jmp 0x4fe8b9
cmp esi, dword [ebp - 0x10]
jne 0x4fe8af
cmp ebx, dword [ebp - 0x14]
je 0x4fe8af
push dword [ebp - 0x14]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x4fe8ac
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x4fe881
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4ff23c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
lea eax, [ebp - 0x258]
push ebx
push 0x208
xor ebx, ebx
push ebx
push eax
call fcn.00548bf0
lea eax, [ebp - 0x258]
push eax
call fcn.004ff19f
add esp, 0x10
test al, al
je 0x4ff33d
lea eax, [ebp - 0x258]
push eax
call fcn.004fe427
xor eax, eax
mov dword [esp], 0x104
mov word [ebp - 0x258], ax
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040921d
call fcn.004fda3f
mov ecx, eax
test ecx, ecx
jne 0x4ff2be
mov dword [ebp - 0x40], ebx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], ebx
cmp dword [ebp - 8], 8
lea ebx, [ebp - 0x1c]
movzx eax, word [ecx + 0x12]
cmovae ebx, dword [ebp - 0x1c]
push esi
movzx esi, word [ecx + 0x16]
push edi
movzx edi, word [ecx + 0x10]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
push 0xffffffffffffffff
push 0
push 0x804
push 1
push 1
push esi
push edi
push dword [ebp - 4]
push eax
push ebx
push 0x5ffb9c
push str.QQBrowserPC
call fcn.004fdc34
add esp, 0x34
cmp byte [ebp + 8], 0
push 0x20
pop eax
pop edi
pop esi
jne 0x4ff320
cmp byte [ebp + 0xc], 0
push 0x22
pop eax
push 0x2b
pop ecx
cmove eax, ecx
mov ecx, eax
or ecx, 0x10
cmp byte [ebp + 0x10], 0
cmove ecx, eax
push ecx
call fcn.004fe40b
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00403f80
mov al, 1
pop ebx
leave
ret