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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0x1c], 0
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
je 0x503259
push 1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.004bc990
mov edi, eax
add esp, 0x10
lea eax, [ebp + 0xc]
cmp eax, edi
je 0x503223
cmp dword [ebp + 0x20], 8
jb 0x503206
push dword [ebp + 0xc]
call fcn.00412895
add esp, 4
xor eax, eax
mov dword [ebp + 0x20], 7
push edi
lea ecx, [ebp + 0xc]
mov dword [ebp + 0x1c], 0
mov word [ebp + 0xc], ax
call fcn.00440913
cmp dword [ebp - 4], 8
jb 0x503234
push dword [ebp - 0x18]
call fcn.00412895
add esp, 4
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call esi
test eax, eax
je 0x503259
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.004408de
jmp 0x503300
mov eax, dword [ebp + 0x24]
cmp dword [eax + 0x10], 0
je 0x5032dd
push 1
push eax
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.004bc990
mov edi, eax
add esp, 0x10
lea eax, [ebp + 0xc]
cmp eax, edi
je 0x5032aa
cmp dword [ebp + 0x20], 8
jb 0x50328d
push dword [ebp + 0xc]
call fcn.00412895
add esp, 4
xor eax, eax
mov dword [ebp + 0x20], 7
push edi
lea ecx, [ebp + 0xc]
mov dword [ebp + 0x1c], 0
mov word [ebp + 0xc], ax
call fcn.00440913
cmp dword [ebp - 4], 8
jb 0x5032bb
push dword [ebp - 0x18]
call fcn.00412895
add esp, 4
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call esi
test eax, eax
je 0x5032dd
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.004408de
jmp 0x503300
mov esi, dword [ebp + 8]
xor eax, eax
push eax
push 0x594314
mov ecx, esi
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
call fcn.00408679
cmp dword [ebp + 0x20], 8
jb 0x503311
push dword [ebp + 0xc]
call fcn.00412895
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5050b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push 0x1d
mov esi, ecx
mov dword [ebp - 4], 7
xor eax, eax
mov dword [ebp - 8], 0
push str.User_DataDefaultPreferences
lea ecx, [ebp - 0x18]
mov word [ebp - 0x18], ax
call fcn.00408679
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push 9
push eax
call fcn.004bc990
add esp, 0x10
cmp dword [ebp - 4], 8
jb 0x505101
push dword [ebp - 0x18]
call fcn.00412895
add esp, 4
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x50511e
mov byte [esi + 0x4dd], 1
cmp dword [ebp - 0x1c], 8
mov byte [esi + 0x4dd], 0
pop esi
jb 0x505137
push dword [ebp - 0x30]
call fcn.00412895
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x506810
Capabilities:
Check if file exists
Delete file
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push str.SOFTWARETencentQQBrowserModuleDll0508DF1F_2AB6_4fac_A99E_45BBBF24E1E6
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push 0x3a
xor eax, eax
mov dword [ebp - 0x1c], 7
push str.User_DataModuleDll0508DF1F_2AB6_4fac_A99E_45BBBF24E1E6
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
call fcn.00408679
push 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push 9
push eax
call fcn.004bc990
add esp, 0x10
cmp dword [ebp - 0x1c], 8
jb 0x50686e
push dword [ebp - 0x30]
call fcn.00412895
add esp, 4
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x506890
lea eax, [ebp - 0x48]
push eax
call fcn.004c3300
add esp, 4
push 0x34
xor eax, eax
mov dword [ebp - 0x1c], 7
push str.ModuleDll0508DF1F_2AB6_4fac_A99E_45BBBF24E1E6.qrx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
call fcn.00408679
push 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.004bc990
add esp, 0x10
cmp dword [ebp - 0x1c], 8
jb 0x5068d8
push dword [ebp - 0x30]
call fcn.00412895
add esp, 4
push 0
lea eax, [ebp - 0x60]
push 1
push eax
call fcn.004bc8f0
mov ecx, eax
add esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x5068f2
mov ecx, dword [ecx]
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
push ecx
cmovae eax, dword [ebp - 0x18]
push eax
call fcn.00450b1d
add esp, 8
cmp dword [ebp - 0x4c], 8
jb 0x506918
push dword [ebp - 0x60]
call fcn.00412895
add esp, 4
push 0xd
xor eax, eax
mov dword [ebp - 0x1c], 7
push str.manifest.json
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
call fcn.00408679
push 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x60]
push 1
push eax
call fcn.004bc990
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x506957
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x4c], 8
jb 0x50696f
push dword [ebp - 0x60]
call fcn.00412895
add esp, 4
xor eax, eax
mov dword [ebp - 0x4c], 7
cmp dword [ebp - 0x1c], 8
mov dword [ebp - 0x50], 0
mov word [ebp - 0x60], ax
jb 0x506994
push dword [ebp - 0x30]
call fcn.00412895
add esp, 4
cmp dword [ebp - 4], 8
jb 0x5069a5
push dword [ebp - 0x18]
call fcn.00412895
add esp, 4
xor eax, eax
mov dword [ebp - 4], 7
cmp dword [ebp - 0x34], 8
mov dword [ebp - 8], 0
mov word [ebp - 0x18], ax
jb 0x5069ca
push dword [ebp - 0x48]
call fcn.00412895
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x507470
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push 0xb
xor eax, eax
mov dword [ebp - 4], 7
push str.TsQBDrv.sys
mov dword [edi], 0
mov dword [ebp - 8], 0
mov word [ebp - 0x18], ax
call fcn.00408679
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push 0x13
push eax
call fcn.004bc990
add esp, 0x10
cmp dword [ebp - 4], 8
jb 0x5074ca
push dword [ebp - 0x18]
call fcn.00412895
add esp, 4
xor esi, esi
xor ebx, ebx
call fcn.004b2710
cmp eax, 0x40
jne 0x507503
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x507501
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x507501
push ebx
call esi
movzx ebx, al
jmp 0x507503
xor ebx, ebx
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x507553
mov dword [edi], 1
test ebx, ebx
je 0x5075ba
test esi, esi
jne 0x50754d
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32.dll
call eax
test eax, eax
je 0x5075ba
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x5075ba
push 1
call esi
jmp 0x5075ba
test ebx, ebx
je 0x507581
test esi, esi
jne 0x50757d
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32.dll
call eax
test eax, eax
je 0x507581
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x507581
push 1
call esi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push str..2E46F324_829A_4d67_A552_8FC694D6617E
mov dword [edi], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x5075ba
cmp eax, 0xffffffff
je 0x5075ba
push eax
mov dword [edi], 3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 8
pop edi
pop esi
pop ebx
jb 0x5075ce
push dword [ebp - 0x30]
call fcn.00412895
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x507f90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
push dword [esi + 0x74]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x507fb5
lea ecx, [esi + 0xc4]
call fcn.004f5600
test al, al
je 0x508030
mov ecx, esi
call fcn.00503cf0
test eax, eax
je 0x508030
lea ecx, [esi + 0xc4]
call fcn.004f5600
test al, al
jne 0x507ff4
push 0x594314
push 0
push dword [esi + 0x74]
push 1
push str.:Nnx
call fcn.004c0730
add esp, 0x14
cmp eax, 1
je 0x507ff4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.005076e0
push str.AutoRestoreTabs
lea ecx, [ebp - 0x18]
mov byte [esi + 0x4de], 1
call fcn.00408738
push 1
lea eax, [ebp - 0x18]
push eax
push 6
call fcn.004bfa00
add esp, 0xc
cmp dword [ebp - 4], 8
jb 0x508030
push dword [ebp - 0x18]
call fcn.00412895
add esp, 4
cmp dword [esi + 0x48], 0
jne 0x508050
push 0
push 0
push 0
push 0x509900
push 0
push 0
call fcn.00537b86
add esp, 0x18
mov dword [esi + 0x48], eax
xor eax, eax
cmp dword [esi + 0x48], eax
pop esi
setne al
mov esp, ebp
pop ebp
ret
Function at 0x50d040
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x60
test eax, eax
jne 0x50d051
mov esp, ebp
pop ebp
ret
push esi
push eax
lea ecx, [ebp - 0x18]
call fcn.00408738
push 2
push 0
push 0x5ab754
lea ecx, [ebp - 0x18]
call fcn.0043b15d
cmp eax, 0xffffffff
jne 0x50d091
push 2
push 0
push 0x581200
lea ecx, [ebp - 0x18]
call fcn.0043b15d
cmp eax, 0xffffffff
jne 0x50d091
cmp dword [ebp - 8], 3
ja 0x50d1c8
cmp dword [ebp + 0xc], 0
je 0x50d0fc
xor eax, eax
mov dword [ebp - 0x34], 7
push 2
push eax
mov word [ebp - 0x48], ax
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x38], 0
push eax
call fcn.0040759d
cmp dword [ebp - 4], 8
jb 0x50d0cb
push dword [ebp - 0x18]
call fcn.00412895
add esp, 4
xor eax, eax
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x48]
mov dword [ebp - 8], 0
push eax
call fcn.00440913
cmp dword [ebp - 0x34], 8
jb 0x50d0fc
push dword [ebp - 0x48]
call fcn.00412895
add esp, 4
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x50d1c8
xor eax, eax
mov dword [ebp - 0x1c], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x30], ax
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
push eax
call fcn.0040759d
push str.tmp_123abc456def789hij.tmp
lea ecx, [ebp - 0x60]
call fcn.00408738
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0043eb57
add esp, 8
cmp dword [ebp - 0x4c], 8
jb 0x50d168
push dword [ebp - 0x60]
call fcn.00412895
add esp, 4
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, dword [ebp - 0x30]
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x50d195
xor esi, esi
jmp 0x50d1b5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call fcn.0053b0cc
add esp, 4
mov esi, 1
cmp dword [ebp - 0x1c], 8
jb 0x50d1ca
push dword [ebp - 0x30]
call fcn.00412895
add esp, 4
jmp 0x50d1ca
xor esi, esi
cmp dword [ebp - 4], 8
jb 0x50d1db
push dword [ebp - 0x18]
call fcn.00412895
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x50dcd0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
push esi
mov esi, ecx
mov dword [ebp - 0x20], 0
xor eax, eax
cmp dword [esi + 4], eax
je 0x50de9d
push 0x13e
push eax
mov word [ebp - 0x1a8], ax
lea eax, [ebp - 0x1a6]
push eax
call fcn.00538910
add esp, 0xc
lea eax, [ebp - 0x1a8]
push 0xa0
push eax
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 0x64]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x1a8]
mov ecx, esi
push eax
call fcn.0050e050
test eax, eax
je 0x50de87
lea ecx, [ebp - 0x1a8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50dd44
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jb 0x50de87
cmp word [ebp - 0x1a6], 0x3a
jne 0x50de87
lea eax, [ebp - 0x1a8]
push 1
push eax
call fcn.0050d040
add esp, 8
test eax, eax
je 0x50de87
push ebx
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x50]
call fcn.00408738
xor eax, eax
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
mov ecx, esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0050c870
push 0x594350
lea ecx, [ebp - 0x68]
call fcn.00408738
lea eax, [ebp - 0x68]
mov ebx, 1
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0050dc60
add esp, 8
cmp eax, dword [0x5c82d4]
jg 0x50de0e
push 0x5a1f5c
lea ecx, [ebp - 0x38]
call fcn.00408738
lea eax, [ebp - 0x38]
mov ebx, 3
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0050dc60
add esp, 8
mov byte [ebp - 1], 0
cmp eax, dword [0x5c82d4]
jle 0x50de12
mov byte [ebp - 1], 1
test bl, 2
je 0x50de22
lea ecx, [ebp - 0x38]
and ebx, 0xfffffffd
call fcn.0040329c
test bl, 1
pop ebx
je 0x50de30
lea ecx, [ebp - 0x68]
call fcn.0040329c
cmp byte [ebp - 1], 0
je 0x50de4e
mov ecx, dword [esi + 4]
add ecx, 0x24
mov eax, dword [ecx]
call dword [eax + 8]
push eax
call fcn.00452e94
add esp, 4
xor esi, esi
jmp 0x50de70
lea eax, [ebp - 0x1c]
push eax
call fcn.004bca30
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.0044ae4c
add esp, 8
mov esi, 1
lea ecx, [ebp - 0x1c]
call fcn.0040329c
lea ecx, [ebp - 0x50]
call fcn.0040329c
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
add ecx, 0x24
mov eax, dword [ecx]
call dword [eax + 8]
push eax
call fcn.00452c4e
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x510600
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
test ebx, ebx
je 0x5107de
cmp dword [ebp + 0xc], esi
je 0x5107de
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp eax, dword [ebp + 0x14]
jl 0x510635
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
inc eax
lea ecx, [ebp - 0x30]
push ebx
mov dword [edi], eax
call fcn.00408738
push 0x59fbbc
lea ecx, [ebp - 0x30]
call fcn.00408ff9
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x280]
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp + 8], eax
test eax, eax
jne 0x510680
dec dword [edi]
xor esi, esi
jmp 0x5107c4
test byte [ebp - 0x280], 0x10
lea eax, [ebp - 0x254]
je 0x51071f
push 0x59fbc4
push eax
call fcn.005394fe
add esp, 8
test eax, eax
je 0x5107a1
lea eax, [ebp - 0x254]
push 0x59fbc8
push eax
call fcn.005394fe
add esp, 8
test eax, eax
je 0x5107a1
push ebx
lea ecx, [ebp - 0x18]
call fcn.00408738
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x18]
call fcn.00408ff9
push 0x594350
lea ecx, [ebp - 0x18]
call fcn.00408ff9
push dword [ebp + 0x18]
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
push dword [ebp + 0x14]
cmovae eax, dword [ebp - 0x18]
push edi
push dword [ebp + 0xc]
push eax
call fcn.00510600
add esp, 0x14
lea ecx, [ebp - 0x18]
test eax, eax
mov eax, 1
cmovne esi, eax
call fcn.0040329c
jmp 0x5107a1
push dword [ebp + 0xc]
push eax
call fcn.005394fe
add esp, 8
test eax, eax
jne 0x5107a1
push ebx
lea ecx, [ebp - 0x18]
call fcn.00408738
cmp word [ebp - 0x254], 0
jne 0x510746
xor eax, eax
jmp 0x51075f
lea eax, [ebp - 0x254]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x510750
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x18]
call fcn.00409102
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
push dword [ebp + 0x18]
cmovae eax, dword [ebp - 0x18]
push eax
call fcn.00510ae0
add esp, 8
test eax, eax
mov eax, 1
cmovne esi, eax
cmp dword [ebp - 4], 8
jb 0x5107a1
push dword [ebp - 0x18]
call fcn.00412895
add esp, 4
lea eax, [ebp - 0x280]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x510680
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
dec dword [edi]
cmp dword [ebp - 0x1c], 8
jb 0x5107d5
push dword [ebp - 0x30]
call fcn.00412895
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5107f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00538910
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x51083d
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push str.TencentQQBrowserUser_DataDefault_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0053b573
push 1
push 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push str.preferences
push eax
call fcn.00510600
push 0
mov esi, eax
lea eax, [ebp - 4]
push 2
push eax
lea eax, [ebp - 0x20c]
push str.bookmarks
push eax
call fcn.00510600
add eax, esi
xor ecx, ecx
add esp, 0x34
cmp eax, 2
sete cl
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x510ae0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x510af5
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push esi
lea ecx, [ebp - 0x34]
call fcn.00408738
push 3
push 0x58131c
lea ecx, [ebp - 0x34]
call fcn.00409102
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x510b86
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x510b7f
lea eax, [ebx + 1]
push eax
call fcn.0053b140
mov edi, eax
add esp, 4
test edi, edi
je 0x510b7f
lea eax, [ebx + 1]
push eax
push 0
push edi
call fcn.00538910
add esp, 0xc
mov dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x510ba2
push edi
call fcn.005363a4
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [ebp - 0x20], 8
pop edi
pop ebx
jb 0x510b9b
push dword [ebp - 0x34]
call fcn.00412895
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040ea84
push edi
call fcn.005363a4
add esp, 4
cmp byte [ebp + 0xc], 0
je 0x510bcf
lea eax, [ebp - 0x1c]
push eax
call fcn.0050fe40
add esp, 4
lea eax, [ebp - 0x1c]
push eax
call fcn.00451321
add esp, 4
test al, al
je 0x510c3e
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 0
cmovae eax, dword [ebp - 0x34]
push 0
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x510c3e
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 4]
push 0
push eax
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
inc eax
push eax
push ecx
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call ebx
lea ecx, [ebp - 0x1c]
call fcn.004032bc
jmp 0x510b88
lea ecx, [ebp - 0x1c]
xor esi, esi
call fcn.004032bc
jmp 0x510b88
Function at 0x5133a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa78
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x5133b7
mov eax, dword [esi]
jmp 0x5133b9
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5133c9
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x5815c0
push 1
push 0
push 0x583bfc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [ebp + 8]
js 0x5135b7
test eax, eax
je 0x5135b7
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
mov ecx, dword [eax]
push edx
push 0x5a0f90
push eax
call dword [ecx]
test eax, eax
jns 0x51341e
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x5135a6
mov eax, dword [ebp - 4]
test eax, eax
je 0x5135a6
cmp dword [esi + 0x14], 8
jb 0x513431
mov esi, dword [esi]
mov ecx, dword [eax]
push 2
push esi
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x5135a3
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x826]
push eax
call fcn.00538910
push 0x24c
lea eax, [ebp - 0xa74]
mov dword [ebp - 0xa78], 0
push 0
push eax
call fcn.00538910
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xa78]
add esp, 0x18
mov ecx, dword [eax]
push 6
push edx
push 0x104
lea edx, [ebp - 0x828]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x5135a3
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00538910
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x210]
add esp, 0xc
mov ecx, dword [eax]
push 0x104
push edx
push eax
call dword [ecx + 0x28]
test eax, eax
js 0x5135a3
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.00538910
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x418]
add esp, 0xc
mov ecx, dword [eax]
push 0x104
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x5135a3
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x61e]
push eax
call fcn.00538910
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
add esp, 0xc
mov dword [ebp - 8], 0
mov ecx, dword [eax]
push edx
push 0x104
lea edx, [ebp - 0x620]
push edx
push eax
call dword [ecx + 0x40]
test eax, eax
js 0x5135a3
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x828]
push eax
mov ecx, esi
call fcn.0041001f
lea eax, [ebp - 0x210]
push eax
lea ecx, [esi + 0x18]
call fcn.0041001f
lea eax, [ebp - 0x418]
push eax
lea ecx, [esi + 0x30]
call fcn.0041001f
lea eax, [ebp - 0x620]
push eax
lea ecx, [esi + 0x48]
call fcn.0041001f
mov eax, dword [ebp - 4]
mov esi, 1
jmp 0x5135a8
mov eax, dword [ebp - 4]
xor esi, esi
test eax, eax
je 0x5135b2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
jmp 0x5135b9
xor esi, esi
test eax, eax
je 0x5135c3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret