joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022b3b
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push 0x1c
mov eax, 0x1006e054
call fcn.1005218d
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
jne 0x10022b84
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10011a8a
xor eax, eax
call fcn.10052265
ret 8
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x10022ba0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10022b6f
mov ecx, dword [ebp - 0x24]
add eax, 1
mov esi, eax
adc ecx, ebx
push esi
mov dword [ebp - 0x1c], ecx
call fcn.1004c552
mov edi, eax
pop ecx
mov dword [ebp - 0x10], edi
cmp edi, ebx
jne 0x10022bd5
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10011a8a
mov eax, ebx
jmp 0x10022b7c
push esi
push ebx
push edi
call fcn.10051a60
add esp, 0xc
push ebx
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 0x18]
inc edi
push edi
mov dword [ebp - 0x1c], edi
call fcn.1004dde9
mov esi, eax
pop ecx
cmp esi, ebx
je 0x10022c1b
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.1002fb5e
mov edi, dword [ebp - 0x1c]
pop ecx
pop ecx
push dword [ebp - 0x10]
call fcn.1004d030
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], ebx
cmp esi, ebx
je 0x10022c9e
lea eax, [edi + edi]
push eax
mov dword [ebp - 0x10], eax
call fcn.1004c552
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x10022c93
push dword [ebp - 0x10]
push ebx
push eax
call fcn.10051a60
sub dword [ebp - 0x10], 2
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
mov edx, edi
mov ecx, esi
call fcn.10025d2f
push esi
mov dword [ebp - 0x14], eax
call fcn.1004dd0c
add esp, 0xc
xor esi, esi
cmp dword [ebp - 0x14], ebx
je 0x10022c8a
push dword [ebp - 0x1c]
mov edi, dword [ebp + 8]
call fcn.10022a65
mov dword [ebp - 0x14], eax
push dword [ebp - 0x1c]
call fcn.1004d030
pop ecx
cmp esi, ebx
je 0x10022c9e
push esi
call fcn.1004dd0c
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [ebp - 0x14]
jmp 0x10022bc6
Function at 0x10022e51
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10022ea8
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10022e9a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x10022e96
cmp edi, eax
jae 0x10022e9a
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x10022e88
cmp edi, eax
jb 0x10022e9e
xor eax, eax
jmp 0x10022ea7
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10023130
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1008f210]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.10051a60
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
mov ecx, dword [ebp - 4]
sbb al, al
xor ecx, ebp
inc al
call fcn.1004c55d
leave
ret
Function at 0x10023394
Capabilities:
Check if file exists

Disassembly:
push 0x84
mov eax, 0x1006f01c
call fcn.100521f6
lea eax, [ebp - 0x6c]
push eax
call fcn.100241f8
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x60]
cmp esi, dword [ebp - 0x5c]
jbe 0x100233bf
call fcn.1004cee2
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], esi
mov esi, dword [ebp - 0x5c]
cmp dword [ebp - 0x60], esi
jbe 0x100233d5
call fcn.1004cee2
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], esi
lea edi, [ebp - 0x74]
lea esi, [ebp - 0x54]
mov dword [ebp - 0x74], eax
call fcn.10004957
test al, al
je 0x1002352e
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 1
call fcn.1001ce5e
push eax
lea esi, [ebp - 0x4c]
call fcn.10004103
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x38]
add eax, 0xfffffffc
push eax
mov eax, esi
push ebx
push eax
lea esi, [ebp - 0x90]
call fcn.10004135
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.1000426a
xor edi, edi
push ebx
inc edi
push edi
mov byte [ebp - 4], 2
call fcn.1000457f
push str.QQBrowserLiveup
lea eax, [ebp - 0x4c]
call fcn.10004b80
lea ecx, [ebp - 0x30]
test eax, eax
jne 0x10023495
mov eax, 0x10094a30
call fcn.100042f6
push str.LiveupTempQQBrowserLiveup.exe
lea esi, [ebp - 0x90]
call fcn.100040e3
lea eax, [ebp - 0x30]
push eax
mov eax, esi
mov byte [ebp - 4], 4
call fcn.1002770a
pop ecx
push ebx
push edi
mov byte [ebp - 4], 2
call fcn.1000457f
jmp 0x100234d0
mov eax, 0x10094c38
call fcn.100042f6
lea esi, [ebp - 0x54]
call fcn.1001ce5e
lea ecx, [ebp - 0x30]
push ecx
call fcn.1002770a
lea eax, [ebp - 0x4c]
mov dword [esp], str.BugReport
call fcn.10004b80
test eax, eax
jne 0x100234d0
mov eax, str.QQBrowserBugReport
lea ecx, [ebp - 0x4c]
call fcn.100042f6
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x100234dc
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002350a
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x100234f3
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x100234ff
lea eax, [ebp - 0x48]
push ebx
push ecx
push eax
call fcn.10023187
add esp, 0xc
push ebx
push edi
lea esi, [ebp - 0x4c]
call fcn.1000457f
push ebx
push edi
lea esi, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.1000457f
lea esi, [ebp - 0x54]
call fcn.1000bdc7
jmp 0x100233c8
lea esi, [ebp - 0x6c]
call fcn.10004651
push dword [ebp - 0x6c]
call fcn.1004dd0c
pop ecx
call fcn.10052279
ret
Function at 0x10023949
Capabilities:
Check if file exists

Disassembly:
push 0xa4
mov eax, 0x1006ef70
call fcn.100521f6
xor ebx, ebx
push 6
push ebx
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x58], eax
cmp eax, 0x80010106
je 0x10023978
cmp eax, ebx
jl 0x10023b3c
lea edi, [ebp - 0x4c]
call fcn.100236ed
cmp eax, ebx
jl 0x10023b3c
lea eax, [ebp - 0x70]
push eax
call fcn.100241f8
pop ecx
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x64]
cmp esi, dword [ebp - 0x60]
jbe 0x100239a2
call fcn.1004cee2
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], esi
mov esi, dword [ebp - 0x60]
cmp dword [ebp - 0x64], esi
jbe 0x100239b8
call fcn.1004cee2
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], esi
lea edi, [ebp - 0x78]
lea esi, [ebp - 0x54]
mov dword [ebp - 0x78], eax
call fcn.10004957
test al, al
je 0x10023b27
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
call fcn.1001ce5e
push eax
lea esi, [ebp - 0x48]
call fcn.10004103
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
add eax, 0xfffffffc
push eax
mov eax, esi
push ebx
push eax
lea esi, [ebp - 0xb0]
call fcn.10004135
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.1000426a
xor edi, edi
push ebx
inc edi
push edi
mov byte [ebp - 4], 2
call fcn.1000457f
push str.QQBrowserLiveup
lea eax, [ebp - 0x48]
call fcn.10004b80
lea ecx, [ebp - 0x2c]
test eax, eax
jne 0x10023a78
mov eax, 0x10094a30
call fcn.100042f6
push str.LiveupTempQQBrowserLiveup.exe
lea esi, [ebp - 0x94]
call fcn.100040e3
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
mov byte [ebp - 4], 4
call fcn.1002770a
pop ecx
push ebx
push edi
mov byte [ebp - 4], 2
call fcn.1000457f
jmp 0x10023ab3
mov eax, 0x10094c38
call fcn.100042f6
lea esi, [ebp - 0x54]
call fcn.1001ce5e
lea ecx, [ebp - 0x2c]
push ecx
call fcn.1002770a
lea eax, [ebp - 0x48]
mov dword [esp], str.BugReport
call fcn.10004b80
test eax, eax
jne 0x10023ab3
mov eax, str.QQBrowserBugReport
lea ecx, [ebp - 0x48]
call fcn.100042f6
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10023abf
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10023af2
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x10023ad6
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10023ae2
lea eax, [ebp - 0x28]
push ecx
push eax
mov eax, dword [ebp - 0x4c]
call fcn.100237f6
cmp eax, ebx
pop ecx
pop ecx
jl 0x10023b13
push ebx
push edi
lea esi, [ebp - 0x48]
call fcn.1000457f
push ebx
push edi
lea esi, [ebp - 0x2c]
call fcn.1000457f
lea esi, [ebp - 0x54]
call fcn.1000bdc7
jmp 0x100239ab
push ebx
push edi
lea esi, [ebp - 0x48]
call fcn.1000457f
push ebx
push edi
lea esi, [ebp - 0x2c]
call fcn.1000457f
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x70]
call fcn.10004651
push dword [ebp - 0x70]
call fcn.1004dd0c
pop ecx
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
je 0x10023b49
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x58], ebx
jl 0x10023b54
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.10052279
ret
Function at 0x10023d4f
Capabilities:
Check if file exists

Disassembly:
push 0x28
mov eax, 0x1006b7cc
call fcn.100521f6
and dword [ebp - 0x30], 0
push 6
push 0
mov esi, ecx
mov ebx, edx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x34], eax
cmp eax, 0x80010106
je 0x10023d7b
test eax, eax
jl 0x10023de1
lea edi, [ebp - 0x30]
call fcn.100236ed
test eax, eax
jl 0x10023de1
push esi
lea esi, [ebp - 0x2c]
call fcn.10004103
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10023da1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10023dd2
cmp dword [ebx + 0x18], 8
jb 0x10023db7
mov ebx, dword [ebx + 4]
jmp 0x10023dba
add ebx, 4
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10023dc6
lea eax, [ebp - 0x28]
push ebx
push eax
mov eax, dword [ebp - 0x30]
call fcn.100237f6
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea esi, [ebp - 0x2c]
call fcn.1000457f
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10023dee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x34], 0
jl 0x10023dfa
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.10052279
ret
Function at 0x10024461
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
mov eax, dword [0x1008f210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0xc08], eax
xor eax, eax
mov esi, 0x3fe
push esi
mov word [ebp - 0x404], ax
xor ebx, ebx
lea eax, [ebp - 0x402]
push ebx
mov edi, 0x200
push eax
mov dword [ebp - 0xc0c], edi
call fcn.10051a60
xor eax, eax
push esi
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push ebx
push eax
call fcn.10051a60
xor eax, eax
push esi
mov word [ebp - 0xc04], ax
lea eax, [ebp - 0xc02]
push ebx
push eax
call fcn.10051a60
mov esi, dword [ebp - 0xc08]
xor eax, eax
mov word [esi], ax
add esp, 0x24
lea eax, [ebp - 0xc08]
push eax
lea eax, [ebp - 0x404]
push eax
mov dword [ebp - 0xc08], edi
mov dword [ebp - 0xc14], edi
mov dword [ebp - 0xc10], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x10024595
lea eax, [ebp - 0x404]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1002451c
sub eax, edx
sar eax, 1
inc eax
mov dword [ebp - 0xc08], eax
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x10024595
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x10024595
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0xc0c]
mov ebx, esi
call fcn.10024342
pop ecx
test eax, eax
je 0x10024595
xor eax, eax
inc eax
jmp 0x10024597
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004c55d
leave
ret

Function at 0x100246d2
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
mov eax, str.mutex_qqbrowser
jne 0x100246e5
mov eax, str.mutex_qqbrowser_uninstall
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
jne 0x100246f7
inc eax
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
pop ebp
ret

Function at 0x1002470b
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
mov eax, str.mutex_qqbrowser
jne 0x1002471e
mov eax, str.mutex_qqbrowser_uninstall
push esi
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
jne 0x10024742
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10024742
xor eax, eax
jmp 0x1002474c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebp
ret
Function at 0x10025c96
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp - 4]
push dword [eax + str.37k_IF__y_d]
call esi
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x10
mov dword [ebp + ecx - 0x14], eax
jl 0x10025cb8
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 8]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x10]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x14]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
sub ebx, edx
add eax, 0x61c88647
dec ecx
jne 0x10025cdc
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 8]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret

Function at 0x1002740a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.10061610
mov eax, dword [0x1008f210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
lea edx, [ebp - 0x1008]
push edx
lea edx, [ebp - 0x100c]
push edx
lea edx, [ebp - 0x804]
push edx
push ecx
mov dword [ebp - 0x1008], 1
mov dword [ebp - 0x100c], 0x800
call fcn.100273de
test al, al
je 0x100274ab
cmp dword [ebp - 0x1008], 1
jne 0x10027469
lea eax, [ebp - 0x804]
jmp 0x100274a0
cmp dword [ebp - 0x1008], 2
jne 0x100274ab
mov esi, 0x400
push esi
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x100274ab
cmp eax, esi
ja 0x100274ab
lea eax, [ebp - 0x1004]
mov ecx, edi
call fcn.100042f6
mov al, 1
jmp 0x100274ad
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1004c55d
leave
ret 4

Function at 0x10027878
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, eax
push esi
call fcn.1002789f
cmp dword [esi + 0x18], 8
pop ecx
jb 0x1002788d
mov esi, dword [esi + 4]
jmp 0x10027890
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
pop esi
ret
Function at 0x1002789f
Capabilities:
Delete directory

Disassembly:
push 0x58
mov eax, 0x1006ee93
call fcn.100521f6
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x64]
push eax
call fcn.100041d1
and dword [ebp - 4], 0
lea eax, [ebp - 0x4c]
push eax
call fcn.100041d1
push ebx
lea edi, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.10027bf2
pop ecx
push ebx
lea edi, [ebp - 0x4c]
call fcn.10027c61
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x58]
pop ecx
cdq
push 0x1c
pop ecx
idiv ecx
xor edi, edi
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
cdq
idiv ecx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x34], edi
jbe 0x10027947
push ebx
lea esi, [ebp - 0x2c]
call fcn.10004103
push edi
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.1000bbd1
lea ecx, [ebp - 0x2c]
push ecx
call fcn.1002770a
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x1002792a
lea eax, [ebp - 0x28]
push eax
call fcn.1004c9f8
pop ecx
push 0
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1000457f
inc edi
cmp edi, dword [ebp - 0x34]
jb 0x100278fe
xor edi, edi
cmp dword [ebp - 0x30], edi
jbe 0x100279a1
push ebx
lea esi, [ebp - 0x2c]
call fcn.10004103
push edi
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.1000bbd1
lea ecx, [ebp - 0x2c]
push ecx
call fcn.1002770a
pop ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.1002789f
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x10027984
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1000457f
inc edi
cmp edi, dword [ebp - 0x30]
jb 0x1002794e
lea esi, [ebp - 0x4c]
call fcn.10004651
push dword [ebp - 0x4c]
call fcn.1004dd0c
pop ecx
lea esi, [ebp - 0x64]
call fcn.10004651
push dword [ebp - 0x64]
call fcn.1004dd0c
pop ecx
mov al, 1
call fcn.10052279
ret
Function at 0x100279cb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b727
mov eax, dword fs:[0]
push eax
mov eax, 0x102c
call fcn.10061610
mov eax, dword [0x1008f210]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x1038], 0
mov esi, ecx
push 8
xor eax, eax
cmp dword [esi + 0x18], 8
pop ecx
lea edi, [ebp - 0x1034]
rep stosd dword es:[edi], eax
mov ebx, edx
lea edi, [esi + 4]
jb 0x10027a22
mov eax, dword [edi]
jmp 0x10027a24
mov eax, edi
lea ecx, [ebp - 0x1038]
push ecx
push eax
call fcn.10050992
pop ecx
pop ecx
test eax, eax
je 0x10027a3e
xor al, al
jmp 0x10027ada
cmp dword [ebp - 0x1024], 0xfffffffe
jae 0x10027a37
and dword [ebp - 0x1014], 0
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 8
jb 0x10027a5a
mov edi, dword [edi]
push 0x1007b298
lea eax, [ebp - 0x1014]
push edi
push eax
call fcn.1004f8c6
add esp, 0xc
cmp dword [ebp - 0x1014], 0
je 0x10027a37
mov eax, dword [ebp - 0x1024]
mov esi, ebx
call fcn.10027eeb
mov esi, 0x1000
jmp 0x10027a9b
push eax
lea eax, [ebp - 0x1010]
push eax
mov eax, ebx
call fcn.10027e50
push dword [ebp - 0x1014]
lea eax, [ebp - 0x1010]
push esi
push 1
push eax
call fcn.100500e2
add esp, 0x10
test eax, eax
ja 0x10027a8c
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebp - 0x1024]
sete bl
cmp dword [ebp - 0x1014], 0
je 0x10027ad8
push dword [ebp - 0x1014]
call fcn.1004faac
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004c55d
leave
ret

Function at 0x10027af4
Capabilities:
Enumerate files on windows

Disassembly:
push 0x294
mov eax, 0x1006e6f9
call fcn.100521f6
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x268], ecx
jb 0x10027b17
mov eax, dword [eax + 4]
jmp 0x10027b1a
add eax, 4
lea ecx, [ebp - 0x264]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ebx, ebx
mov edi, eax
inc ebx
cmp edi, 0xffffffff
je 0x10027be3
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x10078b7c
lea eax, [ebp - 0x238]
push eax
call esi
test eax, eax
je 0x10027bcd
push 0x10078b80
lea eax, [ebp - 0x238]
push eax
call esi
test eax, eax
je 0x10027bcd
cmp byte [ebp + 0xc], 0
je 0x10027b95
test byte [ebp - 0x264], 0x10
je 0x10027bcd
lea eax, [ebp - 0x238]
push eax
lea esi, [ebp - 0x284]
call fcn.100040e3
and dword [ebp - 4], 0
mov eax, esi
push eax
mov eax, dword [ebp - 0x268]
call fcn.1000bbf5
jmp 0x10027bc1
test byte [ebp - 0x264], 0x10
jne 0x10027bcd
lea eax, [ebp - 0x238]
push eax
lea esi, [ebp - 0x2a0]
call fcn.100040e3
mov eax, esi
push eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 4], ebx
call fcn.1000bbf5
or dword [ebp - 4], 0xffffffff
push 0
push ebx
call fcn.1000457f
lea eax, [ebp - 0x264]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
je 0x10027b36
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
call fcn.10052279
ret
Function at 0x10027cd3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1008f210]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.10051a60
add esp, 0xc
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x10027d20
xor al, al
jmp 0x10027d2f
lea eax, [ebp - 0x210]
mov ecx, edi
call fcn.100042f6
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c55d
leave
ret

Function at 0x10027db0
Capabilities:
Check if file exists
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x1008f210]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x2b8], 0
push edi
push 0x2b0
lea eax, [ebp - 0x2b4]
push 0
push eax
call fcn.10051a60
add esp, 0xc
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x10027dee
mov eax, dword [edi]
jmp 0x10027df0
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10027e1b
cmp dword [esi + 0x18], 8
jb 0x10027e03
mov edi, dword [edi]
push 0x110
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0x80
jmp 0x10027e36
cmp dword [esi + 0x18], 8
jb 0x10027e23
mov edi, dword [edi]
push 0x100
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2b8]
xor ecx, ebp
pop edi
call fcn.1004c55d
leave
ret
Function at 0x10028c87
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x80c
mov eax, 0x1006bcf8
call fcn.100521f6
xor esi, esi
mov dword [ebp - 0x814], esi
lea eax, [ebp - 0x814]
push eax
push 0x20019
push esi
push str.SoftwareTencentQQBrowser
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10028cda
cmp dword [ebp - 0x814], esi
je 0x10028cd6
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x10028d4a
xor eax, eax
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push esi
push eax
call fcn.10051a60
add esp, 0xc
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x810]
push eax
push esi
push esi
push str.Version
push dword [ebp - 0x814]
mov dword [ebp - 0x818], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10028cc2
lea eax, [ebp - 0x810]
mov ecx, edi
call fcn.100042f6
cmp dword [ebp - 0x814], esi
je 0x10028d48
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
call fcn.10052279
ret

Function at 0x10028f12
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push 0
push str.SupplyID
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10028f78
cmp dword [ebp + 8], 1
je 0x10028f50
cmp dword [ebp + 8], 2
je 0x10028f50
push 0xd
pop eax
jmp 0x10028f78
mov eax, dword [ebp - 4]
test edi, edi
je 0x10028f72
test eax, eax
je 0x10028f6d
test al, 1
jne 0x10028f4b
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x10028f72
jmp 0x10028f4b
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 4