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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6e20
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x4618cd
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4618ea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push str.InstallDir
lea ecx, [ebp - 0x10]
call fcn.0043fa60
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
jne 0x46193b
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00461750
mov edi, eax
neg edi
sbb edi, edi
neg edi
jmp 0x46197a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46194a
xor edi, edi
jmp 0x46197a
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push str.Version
call fcn.0043fa60
mov edi, eax
test edi, edi
je 0x46197a
lea ecx, [ebp - 0x14]
call fcn.00487500
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ecx + 0x58]
call fcn.0041c740
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x461996
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4619a4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x461fc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6ef6
mov eax, dword fs:[0]
push eax
mov eax, 0x1484
call fcn.004a5780
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x1048
lea eax, [ebp - 0x1058]
mov dword [ebp - 0x1490], 1
push 0
push eax
mov dword [ebp - 0x148c], 0
call fcn.004a73c0
add esp, 0xc
mov dword [ebp - 0x1480], 0
lea eax, [ebp - 0x1478]
mov dword [ebp - 0x147c], 0
mov dword [ebp - 0x126c], 0
mov dword [ebp - 0x1488], str.8CEFC9E6_A2B4_4c2a_823C_6903A31139FA
push 0x20a
push 0
push eax
mov dword [ebp - 0x1484], 0x26
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x1268]
push 0x20a
push 0
push eax
call fcn.004a73c0
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1488]
call fcn.00496140
lea eax, [ebp - 0x148c]
push eax
push 4
lea eax, [ebp - 0x1490]
push eax
push str.IELockHomepage
lea ecx, [ebp - 0x1488]
call fcn.00496300
cmp dword [esi + 0x38], 0
lea eax, [ebp - 0x1058]
push 0xffffffffffffffff
je 0x4620c1
push str.http:__hao.qq.com__unco400493_1s2
jmp 0x4620c6
push str.http:__hao.qq.com__unco400493_1s1
push 0x824
push eax
call fcn.004b586c
add esp, 0x10
lea eax, [ebp - 0x148c]
lea ecx, [ebp - 0x1488]
push eax
push 0x1048
lea eax, [ebp - 0x1058]
push eax
push str.IEHomepage
call fcn.00496300
mov eax, dword [0x511ea4]
cmp eax, 0xffffffff
jne 0x46213d
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4621ff
push 0x511ea4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x4621ff
mov eax, dword [0x511ea4]
test eax, eax
je 0x4621cf
push 0
lea eax, [ebp - 0x148c]
mov dword [ebp - 0x148c], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov eax, dword [ebp - 0x148c]
jne 0x4621c4
test eax, eax
je 0x4621cf
lea edx, [ebp - 0x1058]
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x462190
sub edx, esi
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
lea ecx, [ebp - 0x1058]
push ecx
push 1
push 0
push str.Start_Page
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x148c]
test eax, eax
je 0x4621cf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1480]
test eax, eax
je 0x4621e0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
mov dword [0x511ea4], 0
jmp 0x4621cf
Function at 0x462630
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7000
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x64]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [edx], ax
jne 0x46267c
xor ecx, ecx
jmp 0x462690
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462681
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.004393e0
mov dword [ebp - 4], 0
xor eax, eax
mov edx, dword [esi + 0x64]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x4626c1
xor ecx, ecx
jmp 0x4626d5
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4626c6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004393e0
push str.package.dat
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0048d880
push str.pkgdll.dat
lea ecx, [ebp - 0x28]
call fcn.0048d880
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x46274b
push dword [esi + 0xa4]
mov edx, dword [esi + 0xa8]
mov ecx, edi
call fcn.004595b0
add esp, 4
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x46275d
push 0x4f652c
push 0x515408
call fcn.0048be90
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x462784
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00433850
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x4627ad
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00433850
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.004a474b
mov esp, ebp
pop ebp
ret
Function at 0x4627d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3e78
mov eax, dword fs:[0]
push eax
mov eax, dword [0x511070]
push ecx
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
je 0x462819
push str.Acl_Exist__RunMaster_By_Reg
push 0x515408
call fcn.0048be90
add esp, 8
push 1
push str.QQPCMgr
call fcn.0045d990
jmp 0x46288a
lea edx, [ecx + 0x64]
push str.QQPCTray.exe
lea ecx, [ebp + 8]
call fcn.0041c030
add esp, 4
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x462868
push str.Run_QQPCMgr__and_wait_500_ms
push 0x515408
call fcn.0048be90
mov ecx, dword [ebp + 8]
mov edx, str._showui__setup
push 0
push 1
push 0x1f4
call fcn.00458a10
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46288a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4628a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7048
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x511070]
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, ecx
push str.UpdateTrayIcon.exe
lea edx, [edi + 0x6c]
lea ecx, [ebp - 0x30]
call fcn.0041c030
add esp, 4
mov dword [ebp - 4], 0
mov edx, dword [eax]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x462905
xor ecx, ecx
jmp 0x46291f
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462910
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004393e0
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x30]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46294a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x462a16
push str._t_QQPCTray.exe__c_1__p_1
lea ecx, [ebp - 0x2c]
call fcn.0041c9e0
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 3
je 0x46299c
push str.CheckRtp
push 0x515408
call fcn.0048be90
add esp, 8
lea ecx, [ebp - 0x2c]
push 0xc
push str.__CheckRtp_1
call fcn.0041c4b0
push 5
push str.__d__
lea ecx, [ebp - 0x2c]
call fcn.0041c4b0
mov eax, dword [edi + 0x64]
lea ecx, [ebp - 0x2c]
push dword [eax - 0xc]
push eax
call fcn.0041c4b0
push 1
push 0x4edd30
lea ecx, [ebp - 0x2c]
call fcn.0041c4b0
push dword [ebp - 0x2c]
push str.UpdateTrayIcon.exe__ws
push 0x515408
call fcn.0048be90
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
push 0
push 0
push 0
call fcn.00458a10
mov byte [ebp - 4], 2
add esp, 0xc
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x462a16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x462a2b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00433850
mov eax, 1
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.004a474b
mov esp, ebp
pop ebp
ret 8
Function at 0x462a50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2718
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edx, [ecx + 0x64]
mov esi, 0xa
push str.QQPCTray.exe
lea ecx, [ebp - 0x10]
call fcn.0041c030
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
call fcn.00458c00
test eax, eax
jne 0x462afd
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop dword [eax]
test esi, esi
jle 0x462afd
push 0x3e8
call edi
dec esi
test esi, esi
jg 0x462af1
push 0x4f6624
push 0x515408
call fcn.0048be90
add esp, 8
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x462af1
mov ecx, dword [ebp - 0x10]
mov edx, str._regrun
push 0
push 0
push 0
call fcn.00458a10
add esp, 0xc
mov ecx, dword [ebp - 0x10]
call fcn.00458c00
test eax, eax
je 0x462ab0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x462b1f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7110
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x4630b1
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0x110]
sub eax, 1
je 0x463145
sub eax, 1
jne 0x4631ad
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SoftwareSogouExplorer
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4631ad
lea eax, [ebp - 0x10]
push eax
push 0x4ec230
lea ecx, [ebp - 0x14]
call fcn.0043fa60
test eax, eax
je 0x4631aa
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.0041c740
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [eax], 0x32c8
call fcn.00487500
push str.SogouExplorer.exe
jmp 0x4631a2
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x20019
push 0
push str.SOFTWARETencentQQBrowser
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4631ad
lea eax, [ebp - 0x10]
push eax
push str.InstallDir
lea ecx, [ebp - 0x14]
call fcn.0043fa60
test eax, eax
je 0x4631aa
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.0041c740
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [eax], 0x2af8
call fcn.00487500
push str.QQBrowser.exe
lea ecx, [ebp - 0x10]
call fcn.0041c1b0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
je 0x4631cc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4631ca
test al, 0x10
jne 0x4631ca
mov edi, 1
jmp 0x4631cc
xor edi, edi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4631da
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x463200
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
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x463990
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 1
push 2
mov dword [ebp - 0x12c], edi
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4639c9
xor eax, eax
jmp 0x463aed
test edi, edi
je 0x463a25
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4639d2
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x124], eax
cmp eax, 0x3fffffff
jg 0x463a25
add eax, eax
call fcn.004a5180
mov esi, esp
test esi, esi
je 0x463a25
mov ecx, dword [ebp - 0x124]
push 0
push 0
mov byte [esi], 0
lea eax, [ecx + ecx]
push eax
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x463a27
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edi, dword [ebp + 0xc]
mov ecx, 2
push edi
mov word [ebp - 0x14], cx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x128]
push eax
push 0x8004667e
push ebx
mov dword [ebp - 0x128], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
movzx ecx, di
push ecx
push dword [ebp - 0x12c]
push str.CheckConnectIPPort_ip___s__port___d__iRetCode___d__errno___d
push 0x515408
call fcn.0048c0f0
add esp, 0x18
cmp esi, 0xffffffff
jne 0x463ae8
lea eax, [ebp - 0x134]
mov dword [ebp - 0x11c], ebx
push eax
push 0
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 1
push eax
push 0
lea eax, [ebx + 1]
mov dword [ebp - 0x134], 2
push eax
mov dword [ebp - 0x130], 0
call dword [sym.imp.WS2_32.dll_select]
xor ecx, ecx
test eax, eax
setg cl
mov eax, ecx
jmp 0x463aed
mov eax, 1
lea esp, [ebp - 0x140]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret 8
Function at 0x463b10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7048
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x511070]
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, ecx
push str.UpdateTrayIcon.exe
lea edx, [edi + 0x6c]
lea ecx, [ebp - 0x30]
call fcn.0041c030
add esp, 4
mov dword [ebp - 4], 0
mov edx, dword [eax]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
je 0x463b85
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x463b76
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x28]
call fcn.004393e0
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x30]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x463bb0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x463c55
push str._DoRollback_1
lea ecx, [ebp - 0x2c]
call fcn.0041c9e0
push 5
push str.__d__
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0041c4b0
mov eax, dword [edi + 0x64]
lea ecx, [ebp - 0x2c]
push dword [eax - 0xc]
push eax
call fcn.0041c4b0
push 1
push 0x4edd30
lea ecx, [ebp - 0x2c]
call fcn.0041c4b0
push dword [ebp - 0x2c]
push str.UpdateTrayIcon.exe__ws
push 0x515408
call fcn.0048be90
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
push 0
push 0
push 0
call fcn.00458a10
mov byte [ebp - 4], 2
add esp, 0xc
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x463c55
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x463c6a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00433850
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.004a474b
mov esp, ebp
pop ebp
ret
Function at 0x463c90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7220
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0041c6e0
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 1
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x463d06
lea eax, [ecx - 1]
test eax, eax
js 0x463d1d
cmp eax, ecx
jg 0x463d1d
movzx eax, word [esi + eax*2]
cmp eax, 0x5c
je 0x463d06
cmp eax, 0x2f
je 0x463d06
push str.0s
lea ecx, [ebp - 0x10]
call fcn.0041c1b0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x463d27
test eax, 0x4800
je 0x463d27
xor edi, edi
jmp 0x463d63
push 0x80070057
call fcn.0041ce60
lea ecx, [ebp - 0x10]
call fcn.00487540
lea ecx, [ebp - 0x10]
call fcn.004875f0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x463d47
mov edi, 1
jmp 0x463d63
push ecx
mov edi, esp
lea ecx, [esi - 0x10]
mov dword [ebp - 0x14], edi
call fcn.0041c6e0
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
call fcn.00463c90
mov edi, eax
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x463d81
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x463da0
mov ecx, dword [eax]
push eax
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
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x463dc0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x4fcb60]
lea eax, [ebp - 0x2c]
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x28], xmm0
push eax
movaps xmm0, xmmword [0x4fcb70]
push SysReAllocString
movups xmmword [ebp - 0x18], xmm0
mov word [ebp - 8], 0x5c
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x463e64
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], 4
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 4
push eax
push esi
push 0x4f6cf8
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x463e64
mov eax, dword [ebp - 0x30]
push 0x4f6cf8
push dword [ebp - 0x2c]
mov dword [edi], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, 1
jmp 0x463e6e
mov eax, 2
cmp esi, eax
cmove esi, eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x463e7c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004a474b
mov esp, ebp
pop ebp
ret 8