joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402449
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x464074]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x78], 0
push ebx
push esi
lea edx, [ebp - 0x78]
push edx
push 0x40
mov dword [ebp - 0x88], ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp + 0x10]
push edi
push eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], ecx
call ecx
cmp dword [ebp - 0x78], 0x40
jne 0x402542
cmp word [ebp - 0x74], 0x5a4d
jne 0x402542
mov eax, dword [ebp - 0x38]
and dword [ebp - 0x78], 0
lea ebx, [edi + eax]
lea eax, [ebp - 0x78]
push eax
mov esi, 0xf8
push esi
lea eax, [ebp - 0x184]
push eax
push ebx
push dword [ebp - 0x80]
call dword [ebp - 0x84]
cmp dword [ebp - 0x78], esi
jne 0x402542
cmp dword [ebp - 0x184], 0x4550
jne 0x402542
cmp word [ebp - 0x180], 0x14c
jne 0x402542
cmp word [ebp - 0x16c], 0x10b
jne 0x402542
and dword [ebp - 0x7c], 0
add ebx, esi
cmp word [ebp - 0x17e], 0
jbe 0x402542
mov esi, 0x20000020
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push 0x28
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [ebp - 0x80]
call dword [ebp - 0x84]
cmp dword [ebp - 0x78], 0x28
jne 0x402542
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x402542
mov ecx, dword [ebp - 0xc]
and ecx, esi
cmp ecx, esi
je 0x402552
movzx eax, word [ebp - 0x17e]
inc dword [ebp - 0x7c]
cmp dword [ebp - 0x7c], eax
jb 0x402505
xor eax, eax
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ba38
leave
ret
mov ecx, dword [ebp - 0x88]
add eax, edi
mov dword [ecx], eax
mov ecx, dword [ebp - 0x20]
add eax, ecx
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x402544
Function at 0x406763
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x464074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov edi, ecx
push 2
mov dword [ebp - 0x65c], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x660], eax
jne 0x40679c
xor eax, eax
jmp 0x4068e9
lea ecx, [ebp - 0x658]
push ecx
push eax
mov dword [ebp - 0x658], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4068da
mov ebx, 0x104
and word [ebp - 0x218], 0
mov esi, 0x208
push esi
lea eax, [ebp - 0x216]
push 0
push eax
call fcn.0042b930
add esp, 0xc
push 0x103
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0042e4dc
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0042e75f
and word [ebp - 0x428], 0
push esi
lea eax, [ebp - 0x426]
push 0
push eax
call fcn.0042b930
lea eax, [ebp - 0x218]
add esp, 0x24
push eax
call fcn.0042ba47
pop ecx
add eax, eax
push eax
lea esi, [ebp - 0x428]
lea ecx, [ebp - 0x218]
call fcn.0041d4f0
test al, al
pop ecx
je 0x4068c0
mov eax, esi
push eax
lea eax, [ebp - 0x66c]
push eax
call fcn.0040120d
push eax
lea eax, [ebp - 0x668]
push eax
push edi
call fcn.0040699a
mov eax, dword [ebp - 0x66c]
add eax, 0xfffffff0
call fcn.00401550
mov eax, dword [edi + 4]
mov dword [ebp - 0x674], edi
lea edi, [ebp - 0x674]
lea esi, [ebp - 0x668]
mov dword [ebp - 0x670], eax
call fcn.00413b58
test al, al
jne 0x4068ba
mov edi, dword [ebp - 0x668]
test edi, edi
jne 0x4068a3
call fcn.0042e4cc
mov esi, dword [ebp - 0x664]
cmp esi, dword [edi + 4]
jne 0x4068b3
call fcn.0042e4cc
mov dword [esi + 0x10], 1
mov edi, dword [ebp - 0x65c]
lea eax, [ebp - 0x658]
push eax
push dword [ebp - 0x660]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4067c0
push dword [ebp - 0x660]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ba38
leave
ret

Function at 0x407099
Capabilities:
Hash data with md5

Disassembly:
push 0x5c
push 0
push esi
call fcn.0042b930
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
ret
Function at 0x407b03
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 ebx, eax
push dword [ebx]
call esi
push dword [ebx + 4]
mov edi, eax
call esi
and dword [ebp - 4], 0
mov ebx, 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 0x407b25
push 0x10
xor eax, eax
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0x10]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x14]
sub eax, 0x61c88647
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 8]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
dec ecx
jne 0x407b46
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp + 8]
push ebx
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407b99
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 0x407bbb
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 0x407bdf
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 0x4084fc
Capabilities:
Get disk information

Disassembly:
push 0xb0
mov eax, 0x452811
call fcn.0044729e
mov eax, dword [ebp + 8]
push 9
pop ecx
mov esi, str..PhysicalDriveN
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x41], bl
mov word [ebp - 0x18], 0x20
mov word [ebp - 0x16], 0x3a
mov word [ebp - 0x14], 0x5c
mov word [ebp - 0x12], bx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ecx, ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ebx
or edi, 0xffffffff
cmp byte [ebp - 0x41], bl
jne 0x40871d
mov edx, dword [ebp - 0x64]
xor eax, eax
inc eax
shl eax, cl
test edx, eax
je 0x40870d
lea eax, [ebp - 0x18]
add ecx, 0x41
push eax
mov word [ebp - 0x18], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x408593
cmp eax, 6
jne 0x40870d
mov eax, dword [ebp - 0x50]
push ebx
push ebx
push 3
push ebx
add eax, 0x30
inc dword [ebp - 0x50]
push 7
mov word [ebp - 0x1e], ax
push 0xc0000000
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, edi
mov dword [ebp - 0x48], eax
je 0x40870d
push 0x18
lea eax, [ebp - 0xa0]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
call fcn.0042b930
add esp, 0xc
push ebx
lea eax, [ebp - 0x5c]
push eax
push 0x18
lea eax, [ebp - 0xa0]
push eax
push ebx
push ebx
push 0x74080
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x408704
push 0x221
call fcn.0042f3fb
mov esi, eax
cmp esi, ebx
pop ecx
mov dword [ebp - 0x4c], esi
je 0x408704
push ebx
lea eax, [ebp - 0x58]
push eax
push 0x221
push esi
push 0x21
push esi
push 0x7c088
push dword [ebp - 0x48]
mov byte [esi + 0xa], 0xec
mov dword [ebp - 0x58], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4086fd
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
add esi, 0x10
cmp esi, ebx
je 0x4086fa
cmp eax, 0x2e
jbe 0x4086fa
push 0x13
push esi
push 0xa
pop ecx
lea edx, [ebp - 0x88]
call fcn.00408075
pop ecx
pop ecx
mov ecx, dword [ebp - 0x60]
push edi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00404b07
push ebx
push 1
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], edi
call fcn.00404bb6
push 0x2e
push esi
push 0x1b
pop ecx
lea edx, [ebp - 0x88]
call fcn.00408075
pop ecx
pop ecx
mov ecx, dword [ebp - 0x68]
push edi
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.00404b07
push ebx
push 1
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], edi
call fcn.00404bb6
push 0x1a
push esi
push 0x17
pop ecx
lea edx, [ebp - 0xbc]
call fcn.00408075
pop ecx
pop ecx
mov ecx, dword [ebp - 0x6c]
push edi
push ebx
push eax
mov dword [ebp - 4], 2
call fcn.00404b07
push ebx
push 1
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], edi
call fcn.00404bb6
mov byte [ebp - 0x41], 1
mov esi, dword [ebp - 0x4c]
push esi
call fcn.0042e314
pop ecx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x54]
inc ecx
cmp ecx, 0x20
mov dword [ebp - 0x54], ecx
jl 0x40855b
mov al, byte [ebp - 0x41]
call fcn.00447321
ret
Function at 0x409229
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x464074]
xor eax, ebp
mov dword [ebp + 0xa0], eax
mov eax, dword [ebp + 0xac]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
mov edi, 0x20019
push edi
push ebx
push 0x457ba0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x78], 0x104
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x70], ebx
call esi
test eax, eax
jne 0x40939c
push dword [ebp - 0x80]
lea eax, [ebp - 0x64]
push 0x457bf0
push 0x103
push eax
call fcn.0040e646
add esp, 0x10
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x7c]
call esi
test eax, eax
jne 0x409393
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0x457c00
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x40938a
push 0x104
xor edi, edi
lea eax, [ebp - 0x64]
push ebx
inc edi
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0x103
call fcn.0042b930
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0x457c10
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x40938a
cmp dword [ebp - 0x70], edi
jne 0x40937a
mov esi, 0x457c20
push esi
call fcn.0042e0a0
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0042f7be
add esp, 0x10
test eax, eax
jne 0x409354
mov dword [ebp - 0x6c], ebx
jmp 0x40938a
cmp dword [ebp - 0x70], edi
jne 0x40937a
push esi
call fcn.0042e0a0
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0042f7be
add esp, 0x10
test eax, eax
je 0x40937a
mov dword [ebp - 0x6c], 2
jmp 0x40938a
xor eax, eax
cmp dword [ebp - 0x70], 2
setne al
lea eax, [eax + eax + 1]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xa0]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ba38
add ebp, 0xa4
leave
ret
Function at 0x409633
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0x44
mov eax, 0x452788
call fcn.0044729e
xor ebx, ebx
push ebx
lea edi, [ebp - 0x48]
mov byte [ebp - 0x49], bl
call fcn.00409855
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x40965d
lea eax, [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x409708
push 1
lea edi, [ebp - 0x2c]
call fcn.00409855
pop ecx
lea eax, [ebp - 0x48]
push eax
call fcn.00409ce6
test al, al
pop ecx
jne 0x4096db
mov eax, edi
push eax
call fcn.00409ce6
test al, al
pop ecx
je 0x4096db
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x4096af
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4096bb
lea eax, [ebp - 0x28]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4096db
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4096d4
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4096e7
lea eax, [ebp - 0x28]
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
push eax
call esi
push ebx
push 1
lea esi, [ebp - 0x2c]
mov edi, eax
call fcn.0040a106
cmp edi, 0xffffffff
je 0x40973d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x10
jb 0x409736
push ebx
lea eax, [ebp - 0x50]
push eax
push esi
push 0x467514
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409736
cmp dword [ebp - 0x50], esi
jne 0x409736
mov byte [ebp - 0x49], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.0040a106
mov al, byte [ebp - 0x49]
call fcn.00447321
ret

Function at 0x409751
Capabilities:
Write file on windows

Disassembly:
push 0x44
mov eax, 0x452788
call fcn.0044729e
xor esi, esi
push esi
lea edi, [ebp - 0x48]
mov byte [ebp - 0x49], 0
call fcn.00409855
pop ecx
mov dword [ebp - 4], esi
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x40977c
lea eax, [ebp - 0x44]
push esi
push esi
push 2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 1
mov ebx, 0x40000000
push ebx
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4097d0
push 1
lea edi, [ebp - 0x2c]
call fcn.00409855
cmp dword [ebp - 0x14], 8
pop ecx
mov ecx, dword [ebp - 0x28]
jae 0x4097b0
lea ecx, [ebp - 0x28]
xor eax, eax
push eax
push eax
push 2
push eax
push 1
push ebx
push ecx
call esi
push 0
push 1
lea esi, [ebp - 0x2c]
mov edi, eax
call fcn.0040a106
cmp edi, 0xffffffff
je 0x4097f9
push 0
lea eax, [ebp - 0x50]
push eax
push 0x10
push 0x467514
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4097f2
cmp dword [ebp - 0x50], 0x10
jne 0x4097f2
mov byte [ebp - 0x49], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
lea esi, [ebp - 0x48]
call fcn.0040a106
mov al, byte [ebp - 0x49]
call fcn.00447321
ret
Function at 0x409855
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x230
mov eax, 0x45274d
call fcn.0044729e
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov dword [ebp - 0x220], edi
mov word [edi + 4], bx
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push ebx
mov dword [ebp - 4], ebx
inc esi
push eax
mov dword [ebp - 0x21c], esi
call fcn.0042b930
mov al, byte [ebp + 8]
add esp, 0xc
neg al
push esi
sbb eax, eax
and eax, 0xfffffff7
add eax, 0x23
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x409925
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x23c]
call fcn.00409d4b
push 0xffffffffffffffff
mov dword [ebp - 4], esi
push ebx
mov esi, edi
call fcn.0040a1d5
push ebx
push 1
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.0040a106
cmp byte [ebp + 8], bl
je 0x4098fd
push 0x457c2c
jmp 0x409902
push 0x457c54
push edi
call fcn.00409d90
mov ecx, edi
call fcn.0040992d
test al, al
jne 0x40991a
mov ecx, edi
call fcn.004099f9
push 0x457c78
push edi
call fcn.00409d90
mov eax, edi
call fcn.00447321
ret

Function at 0x40a6cd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x40a6e0
push 0x80004005
call fcn.00401568
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 1
push 0
push dword [ebp + 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebp
ret 0xc

Function at 0x40a744
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x464074]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0042b930
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x40a798
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x40a7a9
cmp dword [ebp - 0x7c], 6
jne 0x40a7a9
cmp dword [ebp - 0x78], 0
jne 0x40a7a9
xor eax, eax
inc eax
jmp 0x40a7ab
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.0042ba38
add ebp, 0xa0
leave
ret

Function at 0x40a7c1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x464074]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0042b930
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x40a815
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x40a823
cmp dword [ebp - 0x7c], 6
jne 0x40a823
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jae 0x40a825
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.0042ba38
add ebp, 0xa0
leave
ret
Function at 0x40aabd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x464074]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 0x1c
mov eax, 0x45301b
call fcn.00447235
mov eax, dword [ebp + 0x218]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x21c]
mov dword [ebp - 0x10], eax
xor edi, edi
push 0x20a
lea eax, [ebp + 2]
push edi
push eax
mov word [ebp], di
call fcn.0042b930
mov esi, 0x104
add esp, 0xc
mov dword [ebp - 0x24], esi
call fcn.0040a744
test eax, eax
jne 0x40ab21
call fcn.0040a7c1
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
push str.SOFTWARETencentQQPCMgrDownloader
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40ab64
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.0042ba38
add ebp, 0x210
leave
ret
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp - 0x20]
xor ebx, ebx
push dword [ebp - 0x14]
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40ab99
xor ebx, ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40ab41
cmp dword [ebp - 0x10], edi
je 0x40ab8a
push esi
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call fcn.0042f8ab
add esp, 0xc
jmp 0x40ab8c
Function at 0x40ac68
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x48
mov eax, 0x452fb8
call fcn.0044729e
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
call fcn.0040a744
test eax, eax
jne 0x40ac9c
call fcn.0040a7c1
test eax, eax
je 0x40ad7d
cmp byte [ebp + 8], bl
je 0x40ad7d
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], bx
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 1
call fcn.0040a83b
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 2
call fcn.00409f00
xor edi, edi
push edi
push 1
lea esi, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.0040a106
push 0x456bd0
lea eax, [ebp - 0x2c]
push eax
call fcn.00409d90
push str.SOFTWARETencentQQPCMgrDownloader
lea eax, [ebp - 0x2c]
push eax
call fcn.00409d90
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40ad0b
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x30]
push ecx
push 0x2001f
push edi
push eax
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40ad70
push dword [ebp - 0x38]
mov ebx, dword [ebp - 0x30]
push dword [ebp - 0x34]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], ebx
call fcn.0040a672
cmp ebx, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
je 0x40ad4e
push ebx
call edi
xor ebx, ebx
xor eax, eax
test esi, esi
sete al
push 0
push 1
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call fcn.0040a106
test ebx, ebx
je 0x40ad6b
push ebx
call edi
mov eax, dword [ebp - 0x34]
jmp 0x40adce
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.0040a106
jmp 0x40ad9b
lea eax, [ebp - 0x30]
push eax
push 0x20019
push ebx
push str.SOFTWARETencentQQPCMgrDownloader
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40ad9f
xor eax, eax
jmp 0x40adce
push 4
pop eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push edi
lea eax, [ebp - 0x38]
push eax
push ebx
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x30]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
call fcn.00447321
ret

Function at 0x40ae83
Capabilities:
Delete registry value

Disassembly:
push 0xc
mov eax, 0x452f48
call fcn.0044729e
mov edi, ecx
call fcn.0040a744
test eax, eax
jne 0x40ae9f
call fcn.0040a7c1
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x2001f
push 0
push str.SOFTWARETencentQQPCMgrDownloader
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40aef2
mov esi, dword [ebp - 0x14]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
je 0x40aede
push esi
call edi
xor esi, esi
xor eax, eax
test ebx, ebx
sete al
test esi, esi
mov ebx, eax
je 0x40aeee
push esi
call edi
mov eax, ebx
jmp 0x40aef4
xor eax, eax
call fcn.00447321
ret