joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000443d
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 8
mov eax, 0x100bd0c2
call fcn.1008c851
mov edi, ecx
xor esi, esi
lea ecx, [ebp - 0x14]
push edi
mov dword [ebp - 0x14], esi
call fcn.1000564f
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100044b5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100044b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100044b5
lea ecx, [ebp - 0x14]
call fcn.100043b5
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], esi
je 0x100044b8
mov ecx, eax
call fcn.1000443d
test eax, eax
je 0x100044b8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100044b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100044b8
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.100018f3
mov eax, esi
call fcn.1008c7fb
ret

Function at 0x10004712
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov ebx, 0x412
mov dword [ebp - 0x424], eax
xor edi, edi
lea eax, [ebp - 0x418]
push ebx
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x420], edi
call fcn.1008f060
add esp, 0xc
mov dword [ebp - 0x41c], 0x208
lea eax, [ebp - 0x420]
push eax
push 0x20119
push edi
push str.SoftwareMicrosoftInternet_ExplorerMain
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004885
push ebx
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], 0x208
push edi
push eax
call fcn.1008f060
add esp, 0xc
lea eax, [ebp - 0x41c]
lea esi, [ebp - 0x418]
mov ebx, edi
push eax
mov eax, esi
push eax
push edi
push edi
jmp 0x1000480a
inc ebx
cmp ebx, 4
ja 0x1000483d
mov eax, dword [ebp - 0x41c]
add eax, 0x209
mov dword [ebp - 0x41c], eax
test esi, esi
je 0x100047e3
lea ecx, [ebp - 0x418]
cmp ecx, esi
je 0x100047e3
push esi
call fcn.10096af0
mov eax, dword [ebp - 0x41c]
pop ecx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10096c2c
mov esi, eax
pop ecx
test esi, esi
je 0x10004838
lea eax, [ebp - 0x41c]
push eax
push esi
push 0
push 0
push str.Start_Page
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 0xea
je 0x100047ad
test edi, edi
jne 0x10004840
test esi, esi
je 0x10004840
push esi
call fcn.10001a48
pop ecx
push eax
push esi
jmp 0x1000484e
push 8
pop edi
jmp 0x10004825
push 8
pop edi
mov ebx, 0x100d2a54
push ebx
call fcn.10001a48
pop ecx
push eax
push ebx
mov ecx, dword [ebp - 0x424]
call fcn.10001ddf
test esi, esi
je 0x1000486e
lea eax, [ebp - 0x418]
cmp eax, esi
je 0x1000486e
push esi
call fcn.10096af0
pop ecx
cmp dword [ebp - 0x420], 0
je 0x10004883
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
Function at 0x10004ce3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xc
mov eax, 0x100bd22b
call fcn.1008c851
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1000159b
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x10004d43
lea eax, [ecx - 1]
test eax, eax
js 0x10004da9
cmp eax, ecx
jg 0x10004da9
movzx eax, word [esi + eax*2]
cmp eax, 0x5c
je 0x10004d43
cmp eax, 0x2f
je 0x10004d43
push 1
push 0x100d3d18
lea ecx, [ebp - 0x14]
call fcn.10003991
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10004d56
test eax, 0x4800
jne 0x10004d8e
lea ecx, [ebp - 0x14]
call fcn.10004c7e
lea ecx, [ebp - 0x14]
call fcn.100043b5
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], ebx
je 0x10004d8b
push ecx
mov edi, esp
lea ecx, [esi - 0x10]
mov dword [ebp - 0x18], edi
call fcn.1000159b
add eax, 0x10
mov dword [edi], eax
call fcn.10004ce3
pop ecx
test eax, eax
je 0x10004d8e
xor ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.100018f3
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.100018f3
mov eax, ebx
call fcn.1008c7fb
ret
push 0x80070057
call fcn.10001e58
int3

Function at 0x10004db4
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
jb 0x10004dcc
mov ecx, dword [ecx]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x10004dea
or edx, 0xffffffff
mov eax, edx
jmp 0x10004e02
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
test edx, edx
jg 0x10004e02
jl 0x10004dfa
test eax, eax
jae 0x10004e02
or eax, 0xffffffff
mov edx, closesocket
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
Function at 0x10005156
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x238], edx
push edi
push 2
mov dword [ebp - 0x234], ecx
mov esi, edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10005193
xor eax, eax
jmp 0x1000525e
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10005255
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x228], eax
je 0x100051d5
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100051b3
jmp 0x100051db
mov esi, dword [ebp - 0x218]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100051f6
mov eax, esi
jmp 0x1000525e
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x1000521c
cmp dword [ebp - 0x228], esi
je 0x10005222
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10005206
jmp 0x10005253
mov esi, dword [ebp - 0x228]
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, di
jne 0x10005231
sub edx, ecx
lea eax, [ebp - 0x20c]
mov ecx, dword [ebp - 0x238]
sar edx, 1
push edx
push eax
call fcn.10005c3c
mov edi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008bb47
mov esp, ebp
pop ebp
ret

Function at 0x1000619f
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push dword [esi]
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
call edi
mov dword [ebp - 4], eax
xor esi, esi
mov dword [ebp - 8], 0x10
push dword [esi + 0x100d4380]
call edi
mov dword [ebp + esi - 0x1c], eax
add esi, 4
cmp esi, 0x10
jl 0x100061c8
mov ebx, dword [ebp - 0xc]
mov esi, 0xe3779b90
mov edx, dword [ebp - 4]
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [esi + ebx]
xor ecx, eax
sub edx, ecx
mov ecx, edx
mov eax, edx
shl ecx, 4
add ecx, dword [ebp - 0x1c]
shr eax, 5
add eax, dword [ebp - 0x18]
xor ecx, eax
lea eax, [esi + edx]
xor ecx, eax
lea esi, [esi + 0x61c88647]
sub ebx, ecx
sub dword [ebp - 8], 1
jne 0x100061e7
mov edi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
mov dword [ebp - 4], edx
call edi
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp - 4]
push eax
call edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100065af
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebx], esi
mov dword [edi + 8], eax
test eax, eax
js 0x100065cd
cmp eax, 3
jl 0x100065d0
mov dword [edi + 8], esi
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1000664d
cmp ecx, 0x1869f
ja 0x1000664d
mov eax, dword [ebp + 0x14]
push esi
push esi
push esi
push esi
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x10006608
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x1e8480
mov dword [ebx], eax
jmp 0x10006655
push esi
push esi
push edi
push 0x1000665e
push esi
push esi
call fcn.100974fc
add esp, 0x18
mov dword [edi + 0x18], eax
test eax, eax
jne 0x10006636
push esi
push esi
push edi
push 0x1000665e
push esi
push esi
call fcn.100974fc
add esp, 0x18
mov dword [edi + 0x18], eax
cmp dword [edi + 0x18], esi
jne 0x10006648
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x2dc6c0
jmp 0x10006604
xor esi, esi
inc esi
jmp 0x10006655
add ecx, 0xf4240
mov dword [ebx], ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x10006b67
Capabilities:
Get common file path

Disassembly:
push 0x43c
mov eax, 0x100bd39b
call fcn.1008c851
mov ebx, ecx
mov esi, 0x20a
lea eax, [ebp - 0x430]
push esi
xor edi, edi
push edi
push eax
call fcn.1008f060
add esp, 0xc
lea eax, [ebp - 0x220]
push esi
push edi
push eax
call fcn.1008f060
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x220]
push eax
push edi
push edi
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edi, [ebx + 0x20]
cmp dword [edi], 0
jne 0x10006bd7
push edi
call fcn.100b36e0
mov ecx, dword [edi]
test ecx, ecx
je 0x10006c79
mov esi, dword [ecx]
lea eax, [ebx + 4]
mov edx, ebx
neg edx
sbb edx, edx
and edx, eax
push edx
call dword [esi + 4]
xor ecx, ecx
mov dword [ebp - 0x434], 7
xor eax, eax
mov dword [ebp - 0x438], ecx
mov word [ebp - 0x448], ax
lea eax, [ebp - 0x448]
mov dword [ebp - 4], ecx
push eax
mov ecx, ebx
call fcn.1000676f
lea edx, [ebp - 0x220]
lea ecx, [ebx + 0x28]
xor ebx, ebx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x10006c2c
sub edx, esi
lea eax, [ebp - 0x220]
sar edx, 1
push edx
push eax
call fcn.10005c3c
mov ecx, dword [edi]
lea edx, [ebp - 0x448]
cmp dword [ebp - 0x434], 8
lea esi, [ebp - 0x220]
push esi
cmovae edx, dword [ebp - 0x448]
mov eax, dword [ecx]
push edx
call dword [eax + 0xc]
push ebx
push 1
lea ecx, [ebp - 0x448]
call fcn.10001f53
call fcn.1008c7fb
ret
Function at 0x10006dcf
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
test esi, esi
je 0x10006ef5
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10006ef5
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
test ebx, ebx
je 0x10006ef3
cmp ebx, 0xffffffff
je 0x10006ef3
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp dword [ebp - 8], edi
jne 0x10006eec
lea ecx, [esi - 1]
cmp ecx, 0x27ff
ja 0x10006eec
push esi
call fcn.1008beb9
mov edi, eax
pop ecx
test edi, edi
je 0x10006eec
lea eax, [esi + 0x40]
push eax
mov dword [ebp - 0x14], eax
call fcn.1008beb9
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
jne 0x10006e83
push edi
call fcn.1008bec2
jmp 0x10006eeb
push esi
push 0
push edi
call fcn.1008f060
lea eax, [esi + 0x40]
push eax
push 0
push dword [ebp - 0x10]
call fcn.1008f060
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
add esp, 0x18
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10006edc
cmp dword [ebp - 0xc], esi
jne 0x10006edc
lea eax, [ebp - 0x14]
mov edx, esi
push eax
push dword [ebp - 0x10]
push ecx
mov ecx, edi
call fcn.10006246
add esp, 0xc
test al, al
je 0x10006edc
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
call fcn.1001b747
push edi
call fcn.1008bec2
push dword [ebp - 0x10]
call fcn.1008bec2
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1008bb47
mov esp, ebp
pop ebp
ret 8
Function at 0x10007af0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
cmp dword [ebp + 8], ebx
je 0x10007baf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
cmp dword [esi + 4], ebx
je 0x10007bc9
xor ecx, ecx
lea eax, [esi + 0xc]
inc ecx
cmp dword [eax], ebx
je 0x10007bc9
push 0x4ff
push 0x64
push ebx
push eax
push ecx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x10007bab
cmp eax, 0xffffffff
je 0x10007bc9
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [ebp - 0x20]
inc edi
push edi
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x10007b87
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x1c], 0x12
cmove eax, edi
mov dword [ebp - 0x24], eax
jmp 0x10007b8a
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10007b9e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
cmp eax, 0x2710
ja 0x10007bc9
lea eax, [esi + 0xc]
push 1
pop ecx
cmp dword [esi + 4], ebx
jne 0x10007b2b
jmp 0x10007bc9
xor eax, eax
jmp 0x10007bc6
cmp dword [esi + 0xc], ebx
je 0x10007bc9
push 0xbb8
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb al, al
lea ebx, [eax + 1]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008bb47
mov esp, ebp
pop ebp
ret 4
Function at 0x1000838a
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x48c], ecx
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x42
mov edi, eax
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.1008f060
add esp, 0xc
cmp edi, 0xffffffff
je 0x100084b0
test edi, edi
je 0x100084b0
mov ebx, 0x22c
lea eax, [ebp - 0x488]
push ebx
push esi
push eax
call fcn.1008f060
add esp, 0xc
mov dword [ebp - 0x488], ebx
lea eax, [ebp - 0x488]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x1000849c
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
test ebx, ebx
je 0x1000848e
push 0x208
lea eax, [ebp - 0x258]
push esi
push eax
call fcn.1008f060
add esp, 0xc
lea eax, [ebp - 0x258]
push 0x103
push ebx
push eax
call fcn.10096be9
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
lea edx, [ebp - 0x258]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x10008455
sub edx, ecx
lea eax, [ebp - 0x50]
sar edx, 1
lea ecx, [ebp - 0x258]
push eax
add edx, edx
call fcn.1004ce17
pop ecx
test al, al
je 0x1000848e
push dword [ebp - 0x48c]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100084a6
lea eax, [ebp - 0x488]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10008402
jmp 0x100084a9
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008bb47
mov esp, ebp
pop ebp
ret

Function at 0x1000850c
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
cmp ecx, 3
je fcn.100085b4
cmp ecx, 0xe
je fcn.10008834
cmp ecx, 1
je fcn.1000852a
xor eax, eax
ret

Function at 0x1000852a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20c
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.1008f060
lea eax, [ebp - 0x210]
mov edx, str.InstallDir
push eax
mov ecx, str.SOFTWARETencentQQPCMgr
call fcn.1001ae46
add esp, 0x10
test eax, eax
je 0x100085a6
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.QQPCTray.exe
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.1009715a
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
Function at 0x100085b4
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0x224
mov eax, 0x100bd602
call fcn.1008c851
lea eax, [ebp - 0x22c]
xor esi, esi
push eax
push 0x20019
push esi
push str.SOFTWAREkingsoftAntivirus
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x22c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10008708
mov edi, 0x20a
mov dword [ebp - 0x228], esi
push edi
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.1008f060
add esp, 0xc
mov dword [ebp - 0x224], 0x208
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x228]
push eax
push esi
push str.ProgramPath
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10008708
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x1000864e
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
cmp word [ebp + ecx*2 - 0x21e], ax
je 0x1000868b
mov word [ebp + ecx*2 - 0x21c], ax
lea ecx, [ecx*2 + 2]
cmp ecx, edi
jae 0x10008710
xor eax, eax
mov word [ebp + ecx - 0x21c], ax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esi
push eax
lea ecx, [ebp - 0x220]
call fcn.1000564f
push str.kxetray.exe
lea edx, [ebp - 0x220]
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x230]
call fcn.10001474
pop ecx
xor ebx, ebx
lea ecx, [ebp - 0x220]
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.10005601
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.100018f3
push dword [ebp - 0x220]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push dword [ebp - 0x22c]
test eax, eax
cmovne esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.100018f3
mov eax, esi
call fcn.1008c7fb
ret
call fcn.1008c026
int3

Function at 0x10008b5f
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x110]
xor esi, esi
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x110], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10008c27
push edi
mov edi, 0x100
mov dword [ebp - 0x10c], esi
push edi
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.1008f060
add esp, 0xc
mov dword [ebp - 0x108], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push str.KAVINSTALLNEEDREBOOT
push dword [ebp - 0x110]
call edi
test eax, eax
je 0x10008c17
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push str.KAV7NEEDREBOOT
push dword [ebp - 0x110]
call edi
test eax, eax
jne 0x10008c1a
xor esi, esi
inc esi
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
Function at 0x10009060
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x10009094
call fcn.10011411
test eax, eax
js 0x1000909e
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1008bb47
mov esp, ebp
pop ebp
ret 4
Function at 0x10012f51
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
push dword [esi]
push 1
push dword [esi + 8]
push dword [ebp + 8]
call fcn.1009fddf
mov ecx, dword [esi + 8]
add esp, 0x10
lea ebx, [eax - 1]
mov eax, ecx
neg ebx
cdq
sbb bl, bl
idiv dword [esi + 0x18]
inc bl
mov dword [ebp - 0x10], ebx
mov dword [esi + 0x1c], eax
test bl, bl
je 0x100130be
add dword [esi + 0x14], ecx
push 0xffffffffffffffff
push eax
lea eax, [esi + 0x38]
cmp dword [eax + 0x14], 8
push ecx
mov ecx, esp
jb 0x10012fa2
mov eax, dword [eax]
push ecx
mov dword [ecx], eax
mov eax, esp
push 0x18
lea ecx, [esi + 0x20]
pop edx
mov dword [eax], str.read
call fcn.10011699
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov edx, dword [esi + 0x18]
add esp, 0x10
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
test eax, eax
je 0x10013074
mov ebx, ecx
dec eax
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dword [ebp - 8], 1
jne 0x10012fe6
cmp byte [edi], al
jmp 0x10012fee
xor ebx, ebx
cmp word [edi], bx
mov ebx, dword [ebp - 4]
sete al
test eax, eax
je 0x1001301b
test ecx, ecx
je 0x10013011
cmp edi, ecx
je 0x10013011
mov eax, edi
imul edx, ebx
sub eax, ecx
push eax
push ecx
sub ecx, edx
push ecx
call fcn.1008dd30
add esp, 0xc
mov edx, dword [esi + 0x18]
inc ebx
mov dword [ebp - 4], ebx
lea ecx, [edx + edi]
mov eax, dword [ebp - 0xc]
add edi, edx
test eax, eax
jne 0x10012fd6
mov ebx, dword [ebp - 0x10]
test ecx, ecx
je 0x10013049
cmp edi, ecx
je 0x10013049
mov eax, dword [esi + 0x18]
sub edi, ecx
push edi
mov edi, dword [ebp - 4]
imul eax, edi
push ecx
sub ecx, eax
push ecx
call fcn.1008dd30
add esp, 0xc
jmp 0x1001304c
mov edi, dword [ebp - 4]
test edi, edi
je 0x10013074
push 0xffffffffffffffff
push edi
push ecx
mov eax, esp
xor ecx, ecx
push ecx
xor edx, edx
inc edx
mov dword [eax], ecx
mov eax, esp
lea ecx, [esi + 0x20]
mov dword [eax], str.nulls_removed
call fcn.10011699
add esp, 0x10
sub dword [esi + 0x1c], edi
cmp dword [esi + 0x18], 1
jle 0x100130c5
test byte [esi + 4], 0x80
je 0x100130c5
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x1001309b
mov edx, dword [ebp + 8]
dec ecx
movzx eax, word [edx + ecx*2]
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x1001308a
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
xor ecx, ecx
push ecx
mov edx, ecx
mov dword [eax], ecx
mov eax, esp
lea ecx, [esi + 0x20]
mov dword [eax], str.endian_swap
call fcn.10011699
add esp, 0x10
jmp 0x100130c5
mov ecx, esi
call fcn.10012a8e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4