joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ee70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
push edi
mov edi, ecx
test ebx, ebx
jle 0x47eec9
mov eax, dword [edi + 8]
test eax, eax
je 0x47ee8d
cmp byte [eax], 0
je 0x47eec9
mov eax, dword [edi + 8]
test eax, eax
je 0x47ee99
cmp byte [eax], 0
je 0x47eed2
push 0
mov ecx, edi
call fcn.0047ed60
test al, al
je 0x47eed2
mov ecx, dword [edi]
cmp ecx, 0xffffffff
je 0x47eed2
mov eax, dword [ebp + 8]
push 0
sub eax, esi
push esi
add eax, ebx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x47eed2
sub esi, eax
test esi, esi
jg 0x47ee81
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
Function at 0x4803d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e54e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
cmp byte [0x5541e8], 0
jne 0x480422
push 0x3ff
push 0x5541e8
push str._ALLUSERSPROFILE_Application_DataTencentQQP3C4Mgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov edi, dword [ebp + 8]
mov ecx, 0x5541e8
mov dword [edi], 0
lea edx, [ecx + 1]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x480444
sub ecx, edx
push ecx
push 0x5541e8
mov ecx, edi
call fcn.0044c0b0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
cmp dword [ebx + 0x14], 0x10
jb 0x480475
mov ecx, dword [ebx]
mov esi, dword [edi + 0x14]
mov eax, esi
mov edx, dword [edi + 0x10]
sub eax, edx
mov ebx, dword [ebx + 0x10]
cmp ebx, eax
ja 0x4804a9
lea eax, [edx + ebx]
mov dword [edi + 0x10], eax
mov eax, edi
cmp esi, 0x10
jb 0x480495
mov eax, dword [edi]
push ebx
lea esi, [eax + edx]
push ecx
push esi
call fcn.004df940
add esp, 0xc
mov byte [esi + ebx], 0
jmp 0x4804ba
push ebx
push ecx
mov byte [ebp + 0xc], 0
mov ecx, edi
push dword [ebp + 0xc]
push ebx
call fcn.0044ff20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4808a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, edi
cmp dword [edi + 0x14], 0x10
jb 0x4808c2
mov ecx, dword [edi]
call fcn.00480810
test eax, eax
je 0x480978
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x480978
mov dword [ebx + 0x468], 0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
lea ecx, [ebx + 0x2c]
mov esi, eax
call fcn.00481df0
mov edi, dword [ebp - 0x24]
push edi
mov dword [eax], edi
mov dword [eax + 4], esi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
mov dword [ebp - 0x20], 0
mov edx, 0x535ba0
mov dword [ebp - 0x10], 0
cmovne edx, eax
mov dword [ebp - 0xc], 0xf
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x480933
sub eax, esi
lea ecx, [ebp - 0x20]
push eax
push edx
call fcn.0044c0b0
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x48099a
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48096c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4809af
push edx
push ecx
call fcn.004de0ea
add esp, 8
jmp 0x48099a
inc dword [ebx + 0x468]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
lea ecx, [ebx + 0x2c]
mov esi, eax
call fcn.00481df0
xor edi, edi
mov dword [eax], 0
mov dword [eax + 4], esi
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de0fd
mov esp, ebp
pop ebp
ret 4
call fcn.004e32da
int3
Function at 0x484540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f244
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0
lea ecx, [ebp - 0x1c]
call fcn.004dcb0f
mov dword [ebp - 4], 0
mov edi, dword [0x5547f0]
mov eax, dword [0x5545e8]
mov dword [ebp - 0x18], eax
test edi, edi
jne 0x4845bf
push edi
lea ecx, [ebp - 0x14]
call fcn.004dcb0f
cmp dword [0x5547f0], edi
jne 0x4845b1
mov eax, dword [0x553220]
inc eax
mov dword [0x553220], eax
mov dword [0x5547f0], eax
lea ecx, [ebp - 0x14]
call fcn.004dcb67
mov edi, dword [0x5547f0]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
cmp edi, dword [ecx + 0xc]
jae 0x4845da
mov eax, dword [ecx + 8]
mov esi, dword [eax + edi*4]
test esi, esi
jne 0x48466a
jmp 0x4845dc
xor esi, esi
cmp byte [ecx + 0x14], 0
je 0x4845f2
call fcn.004dcd16
cmp edi, dword [eax + 0xc]
jae 0x4845f6
mov eax, dword [eax + 8]
mov esi, dword [eax + edi*4]
test esi, esi
jne 0x48466a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x484601
mov esi, eax
jmp 0x48466a
push 8
call fcn.004de0ba
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x48462a
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x48462f
lea eax, [ecx + 0x1c]
jmp 0x48462f
mov eax, 0x535ba0
push eax
lea ecx, [ebp - 0x50]
call fcn.00457d50
lea ecx, [ebp - 0x50]
mov dword [esi + 4], 0
mov dword [esi], vtable.std::codecvt_char__char__struct__Mbstatet_.0
call fcn.00457e00
mov dword [ebp + 8], esi
push esi
mov byte [ebp - 4], 2
call fcn.004dccea
mov eax, dword [esi]
add esp, 4
mov ecx, esi
call dword [eax + 4]
mov dword [0x5545e8], esi
lea ecx, [ebp - 0x1c]
call fcn.004dcb67
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x48469a
mov dword [ebx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x38], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp + 8], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp + 8]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x484980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x484a68
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x484a57
jg 0x4849c0
test edx, edx
je 0x484a57
nop dword [eax]
call fcn.0045ade0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x484a14
jg 0x4849d7
test esi, esi
je 0x484a14
cmp ebx, eax
jg 0x4849e7
jl 0x4849e1
cmp edi, esi
jae 0x4849e7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.004df940
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x484a3b
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x484a51
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x4849c0
jl 0x484a51
test edi, edi
jne 0x4849c0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x484a8a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x484a8c
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x484b0a
jg 0x484a9f
test esi, esi
je 0x484b0a
test eax, eax
jl 0x484aee
jg 0x484aa9
test ebx, ebx
je 0x484aee
cmp edi, eax
jg 0x484ab9
jl 0x484ab3
cmp esi, ebx
jae 0x484ab9
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.004df940
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x484b0a
jg 0x484af1
test esi, esi
je 0x484b0a
jmp 0x484af1
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x484b0a
push eax
push esi
push 1
push edx
call fcn.004f5c5c
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x485060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x485090
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4850cc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4850cc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4851b4
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4850f4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x485127
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004f556f
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x485187
sub eax, 1
je 0x485187
sub eax, 2
jne 0x4851b4
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.004f556f
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4851a4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004f5c5c
add esp, 0x10
cmp edi, eax
jne 0x4851b4
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4850b7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de0fd
mov esp, ebp
pop ebp
ret 4
Function at 0x4854a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x48555a
cmp byte [esi + 0x3d], 0
je 0x48555a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x485548
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x485510
sub eax, 1
je 0x485514
sub eax, 2
jne 0x485548
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x485531
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004f5c5c
add esp, 0x10
cmp edi, eax
jne 0x485548
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004de0fd
mov esp, ebp
pop ebp
ret

Function at 0x485a70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x485a8c
test al, 0x10
jne 0x485a8c
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x486de0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
test esi, esi
je 0x486e53
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x486e53
test al, 0x10
jne 0x486e53
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x486e26
test al, 0x10
jne 0x486e26
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x486e32
push 5
jmp 0x486e28
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
push ebx
push edi
push esi
push str.MoveFileEx_lpszSourceFile:_s__lpszDestFile:_s__bRet:_d
push 0x550bb8
call fcn.0048d900
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push str.lpszSourceFile:_s_not_exist
push 0x550bb8
call fcn.0048d900
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4871b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x20a
xor esi, esi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004dfec0
add esp, 0xc
push str.TSKSP
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
mov edx, str..Global_s
mov ecx, str.._s
lea eax, [ebp - 0x210]
cmovae ecx, edx
push ecx
push 0x104
push eax
call fcn.0048d0d0
add esp, 0x10
lea eax, [ebp - 0x210]
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x48725a
push esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
push eax
push esi
push esi
push 4
lea eax, [ebp + 8]
push eax
push 0x22e05c
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp + 8]
push str.UpdateSelfProtect__Leave__bEnable_d__bResult_d
push 0x550bb8
call fcn.0048d900
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.004de0fd
mov esp, ebp
pop ebp
ret

Function at 0x487290
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x554600], 0
jne 0x48738d
push esi
push edi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [0x554600], 1
push 0
push eax
call fcn.004dfec0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x487348
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x487341
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
mov ecx, dword [ebp - 0x228]
cmp ecx, edi
je 0x487330
test ecx, ecx
je 0x487330
cmp ecx, 4
je 0x487330
lea eax, [ebp - 0x20c]
push str.360tray.exe
push eax
call fcn.004e3717
add esp, 8
test eax, eax
je 0x487367
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x487305
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [0x550c10], 2
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [0x550c10], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [0x550c10]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
Function at 0x487620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f590
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x487743
push 0x80
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004dfec0
push 0x80
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004dfec0
mov eax, dword [ebp - 0x114]
add esp, 0x18
mov dword [ebp - 0x118], 0x40
test eax, eax
je 0x487749
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x11c]
push ecx
push 0
push str.Version
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x487743
lea eax, [ebp - 0x90]
push eax
call fcn.004e8f13
mov esi, eax
add esp, 4
cmp esi, 9
jne 0x48773b
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x487756
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x11c]
push ecx
push 0
push str.svcVersion
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48773b
lea eax, [ebp - 0x110]
push eax
call fcn.004e8f13
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x114]
jmp 0x48774b
mov eax, dword [ebp - 0x114]
xor esi, esi
test eax, eax
je 0x487756
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
Function at 0x487780
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f5cd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4877d0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0044a770
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48787b
test al, 0x10
je 0x487868
test al, 2
je 0x487826
push 0x90
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x487826
push str.CreateDeepDirectory__failed_to_SetFileAttributes.
push 0x550bb8
call fcn.0048d5c0
add esp, 8
mov esi, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4878fd
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4878f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487919
jmp 0x4878f3
push 1
push esi
call fcn.00487970
add esp, 8
test eax, eax
jne 0x48787b
xor esi, esi
jmp 0x48782b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x487826
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x487826
lea eax, [ebp - 0x28]
push eax
call fcn.00487470
add esp, 4
cmp dword [ebp - 0x18], 0
jne 0x4878ab
xor esi, esi
jmp 0x48782b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00487780
add esp, 4
test eax, eax
jne 0x4878ca
xor esi, esi
jmp 0x48782b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x487826
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x487826
xor esi, esi
jmp 0x48782b
push edx
push ecx
call fcn.004de0ea
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
call fcn.004e32da
int3
Function at 0x4891f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f84b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x220], edi
call fcn.004dfec0
add esp, 0xc
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x489374
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
push 0
push 0x23
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4892e8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489290
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0044f580
push 0x21
push str.Application_DataTencentQQPCMgr_
lea ecx, [ebp - 0x21c]
call fcn.0048c830
mov esi, dword [ebp - 0x21c]
push esi
call fcn.00487780
add esp, 4
test eax, eax
jne 0x4892e8
lea ecx, [ebp - 0x21c]
call fcn.0044f770
mov esi, dword [ebp - 0x21c]
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x48937e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push esi
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0044f3f0
test al, al
jne 0x489338
test esi, esi
jne 0x489319
xor ecx, ecx
jmp 0x48932f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489320
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0044f580
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x489357
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00450260
push 0x80004005
call fcn.00450260
int3