joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4117cb
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 + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41182e
cmp dword [ebp + 0xc], 1
je 0x411807
cmp dword [ebp + 0xc], 2
je 0x411807
push 0xd
pop eax
jmp 0x41182e
test edi, edi
mov eax, dword [ebp - 4]
je 0x411828
test eax, eax
je 0x411824
test al, 1
jne 0x411802
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x411828
jmp 0x411802
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x4132f9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.004130df
push dword [esi]
lea eax, [ebp - 4]
push eax
push esi
call fcn.00413423
mov edi, dword [ebp - 4]
xor esi, esi
cmp dword [edi - 0xc], esi
je 0x41337d
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41337d
lea eax, [ebp - 0x14]
mov ebx, vtable.Gdiplus::PrivateFontCollection.0
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
call sub.gdiplus.dll_GdipNewPrivateFontCollection
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
call sub.gdiplus.dll_GdipPrivateAddFontFile
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call sub.gdiplus.dll_GdipGetFontCollectionFamilyCount
mov esi, dword [ebp - 8]
test esi, esi
mov dword [ebp - 0x10], eax
jg 0x41338c
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], ebx
call sub.gdiplus.dll_GdipDeletePrivateFontCollection
mov dword [ebp - 0x18], vtable.Gdiplus::FontCollection.0
lea eax, [edi - 0x10]
call fcn.0040153b
pop edi
pop esi
pop ebx
leave
ret 4
xor ecx, ecx
push 8
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x4133cf
mov dword [eax], esi
add eax, 4
lea edx, [esi - 1]
test edx, edx
mov ecx, eax
jl 0x4133d1
and dword [ecx], 0
and dword [ecx + 4], 0
add ecx, 8
dec edx
jns 0x4133c0
jmp 0x4133d1
xor eax, eax
test eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
jne 0x4133f6
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], ebx
call sub.gdiplus.dll_GdipDeletePrivateFontCollection
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], vtable.Gdiplus::FontCollection.0
add eax, 0xfffffff0
jmp 0x413380
push eax
push esi
lea edi, [ebp - 0xc]
lea eax, [ebp - 0x18]
call fcn.00413605
test eax, eax
jne 0x413419
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jle 0x413419
mov eax, dword [ebp + 8]
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
jmp 0x4133db
mov esi, dword [ebp + 8]
call fcn.004130df
jmp 0x4133db
Function at 0x413562
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x210], 0
push 0x20e
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.004923b0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp + 8]
call fcn.004019de
mov eax, dword [ebp + 8]
leave
ret 4
Function at 0x4155d7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
inc ebx
cmp eax, 0xf
push edi
mov esi, ecx
jne 0x415606
mov ecx, dword [ebp + 0x18]
lea eax, [esi + 0xac]
mov dword [eax], ebx
and dword [ecx], 0
cmp dword [eax], 0
je 0x41563d
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 2
jne 0x41565e
push dword [esi + 0x10]
mov dword [esi + 0xac], ebx
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x415637
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x415637
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [esi + 0xac], 0
jne 0x4155fd
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041d392
jmp 0x4155ff
cmp eax, 0x47
jne 0x415683
push dword [ebp + 0x14]
lea edi, [esi + 0xac]
mov eax, esi
mov dword [edi], ebx
call fcn.004156db
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [edi], 0
jmp 0x4155fb
cmp eax, 0x18
jne 0x41563d
push dword [ebp + 0x10]
mov dword [esi + 0xac], ebx
call fcn.004157b2
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x4156bb
push dword [esi + 8]
jmp 0x4156b1
mov ecx, dword [eax + 0x34]
shr ecx, 3
not ecx
test bl, cl
je 0x4156c5
push dword [eax + 8]
call fcn.0041e2dd
cmp eax, edi
pop ecx
jne 0x4156a2
mov eax, dword [ebp + 0x10]
mov ecx, esi
call fcn.0040ad19
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
cmp dword [esi + 0xac], edi
jne 0x4155fd
jmp 0x41563d

Function at 0x41e868
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
mov eax, esi
mov dword [edi], vtable.KAvVirusDetect.0
call fcn.0041e825
test eax, eax
je 0x41e892
mov eax, dword [esi]
test eax, eax
je 0x41e892
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, esi
call fcn.0041e825
test eax, eax
je 0x41e8ac
mov eax, dword [esi]
test eax, eax
je 0x41e8ac
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [edi + 0xc]
sub eax, 0x10
call fcn.0040153b
mov eax, dword [esi]
test eax, eax
je 0x41e8c7
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [esi], 0
pop edi
pop esi
ret
Function at 0x41ef43
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov esi, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.00425082
lea eax, [esp + 0x10]
mov dword [esp], str.btbg.gif
call fcn.004019de
lea eax, [esp + 0xc]
push eax
lea edi, [esp + 0x14]
call fcn.0040567f
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.0040153b
push str..kid
lea eax, [esp + 0x10]
call fcn.004019de
lea eax, [esp + 0xc]
push eax
call fcn.0040567f
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x41efdf
push str.scom.xml
mov eax, esi
lea ecx, [esp + 0x10]
call fcn.0041e7cc
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [esi]
xor edi, edi
inc edi
cmp dword [eax - 0xc], ebx
je 0x41f005
push eax
call fcn.0041f060
test eax, eax
je 0x41f005
push esi
push 0x41f37c
push ebx
push edi
push dword [esi]
call fcn.00424c49
add esp, 0x14
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], ebx
je 0x41f026
push eax
call fcn.0041f060
test eax, eax
je 0x41f026
push ebx
push ebx
push edi
push edi
push dword [esi + 4]
call fcn.00424c49
add esp, 0x14
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], ebx
je 0x41f047
push eax
call fcn.0041f060
test eax, eax
je 0x41f047
push ebx
push ebx
push edi
push edi
push dword [esi + 8]
call fcn.00424c49
add esp, 0x14
push edi
call fcn.00425082
pop ecx
lea esi, [esp + 0x10]
call fcn.00405f01
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f0f1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00424086
test eax, eax
je 0x41f1b3
push 0
call fcn.00425082
mov dword [esp], str.SYSTEMCurrentControlSet_services_bc
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00425211
push eax
push str.ClearBCDriver_delete_reg_return:_d
mov esi, 0x51b95c
call fcn.0044cc8c
add esp, 0x10
mov ebx, str.bc.sys
push ebx
lea edi, [ebp - 8]
call fcn.00424c8f
lea ecx, [ebp - 4]
call fcn.0041e7cc
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040153b
push ebx
lea edi, [ebp - 0x14]
call fcn.00424c8f
lea ecx, [ebp - 0x10]
call fcn.0041e7cc
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [ebp - 0xc]
push str.DeleteFile_return:_d__error:_d__path:_ws
call fcn.0044cc8c
mov eax, dword [ebp - 0x10]
add esp, 0x10
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040153b
push 1
call fcn.00425082
pop ecx
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x41f75b
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x41f7e3
test byte [0x51bfb8], 1
mov esi, 0x51bfb4
jne 0x41f79d
or dword [0x51bfb8], 1
push str.6EED6E3F_BDA6_490e_8F67_6ECDD0697AB2
mov eax, esi
call fcn.004019de
push 0x4e3180
call fcn.00494b1f
pop ecx
push esi
mov eax, edi
lea ecx, [ebp - 4]
call fcn.0041e6f7
pop ecx
push dword [eax]
call fcn.0047fb17
mov ebx, eax
mov eax, dword [ebp - 4]
pop ecx
add eax, 0xfffffff0
call fcn.0040153b
test ebx, ebx
je 0x41f7f8
push esi
mov eax, edi
lea ecx, [ebp + 8]
call fcn.0041e6f7
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040153b
jmp 0x41f819
mov eax, dword [edi]
push 6
push eax
call fcn.004946a6
test eax, eax
pop ecx
pop ecx
je 0x41f819
cmp eax, 2
je 0x41f819
push 1
push dword [edi]
call fcn.0048a983
pop ecx
pop ecx
push 0x80
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push edi
mov edi, dword [ebp + 8]
call fcn.0040567f
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41f820
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push str.programfiles
call fcn.00494ff8
pop ecx
push eax
lea eax, [ebp - 8]
call fcn.004019de
lea eax, [ebp - 8]
push eax
call fcn.00443489
lea eax, [ebp - 8]
mov dword [esp], str.kingsoft
push eax
call fcn.0040554e
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f918
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x41f918
push ebx
lea eax, [ebp - 8]
call fcn.0041f75b
lea eax, [ebp - 8]
push eax
mov ecx, ebx
call fcn.0041f541
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x41f89d
call fcn.00493406
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], ebx
mov esi, dword [ebx + 8]
cmp dword [ebx + 4], esi
jbe 0x41f8b3
call fcn.00493406
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x18]
lea esi, [ebp - 0x10]
call fcn.0045c60d
test al, al
je 0x41f910
call fcn.0044ec4c
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f906
call fcn.0044ec4c
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x41f8f9
call fcn.0044ec4c
push 1
push dword [eax]
call fcn.00489ea5
pop ecx
pop ecx
jmp 0x41f906
call fcn.0044ec4c
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea esi, [ebp - 0x10]
call fcn.0041f926
jmp 0x41f8a6
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
jmp 0x41f91b
lea eax, [esi - 0x10]
call fcn.0040153b
pop edi
pop esi
leave
ret 4
Function at 0x41f946
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
jne 0x41f9bd
xor eax, eax
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
je 0x41f9bd
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], esi
fild qword [ebp - 0x14]
fild qword [ebp - 0xc]
fchs
faddp st(1)
fmul qword [0x501cf8]
fcomp qword [0x501cd0]
fnstsw ax
test ah, 1
jne 0x41f9bd
inc esi
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x41fa5c
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
mov esi, eax
mov ecx, 0x519a54
call fcn.004016bf
lea edi, [ebp - 4]
call fcn.0041f9c3
mov edi, esi
call fcn.0040208c
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x41fb6e
lea eax, [ebp - 4]
call fcn.0041fb75
call fcn.0040208c
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x41fad8
call fcn.00424086
test eax, eax
mov eax, str.Program_Files__x86_
jne 0x41facf
mov eax, str.Program_Files
push eax
push esi
call fcn.0040554e
jmp 0x41fb57
lea eax, [ebp - 4]
call fcn.0041fc07
call fcn.0040208c
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jne 0x41fabc
push 0x206
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.004923b0
add esp, 0xc
push str.programfiles
call fcn.00494ff8
pop ecx
push eax
push esi
call fcn.00401b70
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x41fb57
push ebx
push 0x26
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebx
je 0x41fb4c
lea eax, [ebp - 0x210]
push eax
jmp 0x41fb51
push str.c:Program_Files
push esi
call fcn.00401b70
mov eax, esi
call fcn.004053c9
call fcn.00423728
push str.kingsoftkingsoft_antivirus_
push esi
call fcn.0040554e
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x41fc99
Capabilities:
Create thread

Disassembly:
push edi
push 0x3c
lea eax, [esi + 4]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push str.Global48411015_6EB4_4469_8D21_A8A9C8B7FB0D
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
cmp eax, edi
mov dword [esi + 8], eax
je 0x41fcd6
push edi
push edi
push esi
push 0x41fd10
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x41fcd6
inc edi
mov eax, edi
pop edi
ret
Function at 0x41fd5c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 8], 0
and word [ebp - 0x18], 0
push esi
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 7
call fcn.004250c3
push str.kpacket_info.dat
lea eax, [ebp - 0x1c]
push eax
call fcn.00401061
mov eax, dword [ebp - 0x18]
push 8
pop esi
cmp dword [ebp - 4], esi
jae 0x41fd98
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [ebp - 4], esi
mov eax, dword [ebp - 0x18]
jae 0x41fdaa
lea eax, [ebp - 0x18]
push eax
push str.http:__download.duba.net_2011_lf_detect360.ini
call fcn.00487cbc
mov edi, eax
test edi, edi
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
je 0x41fdde
cmp dword [ebp - 4], esi
jae 0x41fdc8
lea eax, [ebp - 0x18]
push edi
push eax
push str.KInsall::Is360AvInstalled_download_fail__file:_ws__nStatus:_d
mov esi, 0x51b95c
call fcn.0044cc8c
add esp, 0xc
jmp 0x41fdee
cmp dword [ebp - 4], esi
jae 0x41fde6
lea eax, [ebp - 0x18]
push eax
call fcn.0041fe00
mov edi, eax
push 0
push 1
lea esi, [ebp - 0x1c]
call fcn.00401105
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x41ffab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push str.cmd.exe
lea eax, [ebp - 4]
call fcn.004019de
push dword [ebp + 8]
lea eax, [ebp + 8]
call fcn.004019de
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004019de
mov edi, 0x4efd98
mov esi, 0x4efd9c
push edi
push esi
lea eax, [ebp + 0xc]
push eax
call fcn.00405254
test eax, eax
jne 0x41ffe1
push edi
push esi
lea eax, [ebp + 8]
push eax
call fcn.00405254
test eax, eax
jne 0x41fff0
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.004923b0
mov ebx, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x40], esi
mov esi, dword [ebp - 4]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x24], edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x34], str.open
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x3c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 8], 0
mov dword [ebp + 8], eax
je 0x42005b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [ebp - 8], 0
lea eax, [ebx - 0x10]
call fcn.0040153b
lea eax, [edi - 0x10]
call fcn.0040153b
lea eax, [esi - 0x10]
call fcn.0040153b
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42007d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [0x519a54]
mov ecx, 0x519a54
call dword [eax + 0xc]
mov esi, eax
add esi, 0x10
xor ebx, ebx
cmp dword [edi + 0x28], ebx
mov dword [ebp - 4], esi
je 0x4200cf
push dword [edi + 0x24]
push dword [edi + 0x20]
lea edi, [ebp - 8]
call fcn.00425808
pop ecx
mov eax, edi
pop ecx
lea edi, [ebp - 4]
call fcn.0040208c
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040153b
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], ebx
jne 0x420107
push str.InstallLocation
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall360SD
lea edi, [ebp - 8]
call fcn.00425808
pop ecx
pop ecx
lea edi, [ebp - 4]
call fcn.0040208c
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040153b
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], ebx
je 0x420192
push str.uninst.exe
lea eax, [ebp - 4]
push eax
call fcn.0040554e
push 0x4ed090
lea eax, [ebp - 0xc]
push str.cmd.exe__c__
push eax
lea eax, [ebp - 4]
call fcn.0042028e
pop ecx
pop ecx
lea ecx, [ebp - 8]
call fcn.0041e7cc
pop ecx
lea edi, [ebp - 4]
call fcn.0040208c
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040153b
push 0x206
lea eax, [ebp - 0x212]
push ebx
push eax
mov word [ebp - 0x214], bx
call fcn.004923b0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov esi, dword [ebp - 4]
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.0041ffab
lea eax, [esi - 0x10]
call fcn.0040153b
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x42034a
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x420378
push dword [esp + 0xc]
call fcn.004926b1
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x420378
inc edi
mov eax, edi
pop edi
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420ac9
test al, 0x10
jne 0x420ac9
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x420b41
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x420bca
cmp dword [ebp + 0xc], edi
je 0x420bca
push dword [ebp + 8]
call fcn.00420ab2
test al, al
pop ecx
je 0x420bca
push esi
push 0x1fe
lea eax, [ebp - 0x1fe]
push edi
push eax
mov esi, 0x80004005
mov word [ebp - 0x200], di
call fcn.004923b0
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x200]
push 0x100
push eax
push edi
push dword [ebp + 0xc]
push str.SPCfg
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x420bc5
lea eax, [ebp - 0x200]
push eax
call fcn.004926b1
mov esi, dword [ebp + 0x10]
pop ecx
lea ecx, [ebp - 0x200]
call fcn.004011e2
xor esi, esi
mov eax, esi
pop esi
jmp 0x420bcf
mov eax, 0x80004005
pop edi
leave
ret
Function at 0x420e05
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
cmp dword [ebp + 8], 0
push esi
mov esi, eax
jne 0x420e21
mov eax, 0x80004005
jmp 0x420eaf
push dword [ebp + 8]
call fcn.00420ab2
test al, al
pop ecx
je 0x420e17
and word [ebp - 0x800], 0
push edi
push 0x7fe
lea eax, [ebp - 0x7fe]
push 0
push eax
mov edi, 0x80004005
call fcn.004923b0
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push 0x400
push eax
push 0
mov eax, str.SPRoot
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x420eac
lea eax, [ebp - 0x800]
push eax
call fcn.004926b1
pop ecx
lea ecx, [ebp - 0x800]
call fcn.004011e2
mov eax, dword [esi + 0x14]
lea edi, [eax - 1]
mov eax, esi
call fcn.00427e7e
cmp word [eax], 0x5c
je 0x420eaa
push 0x4efd98
push esi
call fcn.00401061
xor edi, edi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x420f27
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x420fb0
cmp dword [ebp + 0xc], edi
je 0x420fb0
push dword [ebp + 8]
call fcn.00420ab2
test al, al
pop ecx
je 0x420fb0
push esi
push 0x7fe
lea eax, [ebp - 0x7fe]
push edi
push eax
mov esi, 0x80004005
mov word [ebp - 0x800], di
call fcn.004923b0
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push 0x400
push eax
push edi
push dword [ebp + 0xc]
push str.ProductInfo
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x420fab
lea eax, [ebp - 0x800]
push eax
call fcn.004926b1
mov esi, dword [ebp + 0x10]
pop ecx
lea ecx, [ebp - 0x800]
call fcn.004011e2
xor esi, esi
mov eax, esi
pop esi
jmp 0x420fb5
mov eax, 0x80004005
pop edi
leave
ret

Function at 0x421191
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
xor eax, eax
cmp dword [esp + 8], eax
je 0x4211e9
push edi
movzx ecx, byte [esi]
mov dx, ax
dec dword [esp + 0xc]
shr dx, 0xc
movzx edx, dl
shl eax, 4
mov edi, ecx
shr edi, 4
xor edx, edi
xor ax, word [edx*2 + 0x4f5de8]
and ecx, 0xf
movzx eax, ax
mov dx, ax
shr dx, 0xc
movzx edx, dl
shl eax, 4
xor edx, ecx
xor ax, word [edx*2 + 0x4f5de8]
inc esi
cmp dword [esp + 0xc], 0
movzx eax, ax
jne 0x42119d
pop edi
pop esi
ret