joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d50
Capabilities:
Get common file path
Get file attributes
Persist via appinit_dlls registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x524
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
mov ebp, ecx
push 0x80000002
mov dword [esp + 0x30], 0x40
mov byte [esp + 0x34], 0
mov byte [esp + 0x138], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401e7c
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], al
lea edx, [esp + 0x228]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0x41c208
push ecx
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401e7c
lea eax, [esp + 0x430]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x228]
lea esi, [esp + 0x228]
test ecx, ecx
je 0x401e7c
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp byte [esi], 0
je 0x401e7c
push 0x2c
push esi
call fcn.0040d6b7
mov edi, eax
add esp, 8
test edi, edi
je 0x401e22
mov byte [edi], 0
inc edi
lea edx, [esp + 0x430]
push esi
push edx
push 0x41c0b0
lea eax, [esp + 0x130]
push 0x104
push eax
call fcn.0040d57a
add esp, 0x14
lea ecx, [esp + 0x124]
push ecx
call ebx
test al, 0x10
jne 0x401e76
push 0x104
lea edx, [esp + 0x24]
push esi
push edx
call fcn.0040d61d
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [ebp + 0x64]
push eax
push ecx
mov ecx, ebp
call fcn.00402000
test edi, edi
mov esi, edi
jne 0x401e08
mov eax, dword [ebp + 0x68]
test eax, eax
jne 0x401e8e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x524
ret
mov ecx, dword [ebp + 0x6c]
pop edi
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov eax, edx
pop esi
shr eax, 0x1f
add edx, eax
pop ebp
mov eax, edx
pop ebx
add esp, 0x524
ret
Function at 0x401ec0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x320
push ebp
lea eax, [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push 0x41c25c
mov ebp, ecx
push 0x80000002
mov dword [esp + 0x2c], 0x20
mov byte [esp + 0x30], 0
mov byte [esp + 0x134], 0
call esi
test eax, eax
jne 0x401fc9
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push 0x104
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x401fbd
lea ecx, [esp + 0x20]
lea edx, [esp + 0x228]
push ecx
push str.SYSTEMCurrentControlSetServices_s
push 0x104
push edx
call fcn.0040d57a
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x228]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call esi
test eax, eax
jne 0x401fb4
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x124]
push edx
push eax
push 0
push 0
push str.ImagePath
push ecx
mov dword [esp + 0x30], 0x104
call ebx
test eax, eax
jne 0x401fa9
lea edx, [esp + 0x1c]
lea eax, [ebp + 0x54]
push edx
push eax
mov ecx, ebp
call fcn.00402000
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0xc]
jmp 0x401f10
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, dword [ebp + 0x58]
test eax, eax
jne 0x401fd9
pop esi
pop ebp
add esp, 0x320
ret
mov ecx, dword [ebp + 0x5c]
pop esi
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov eax, edx
pop ebp
shr eax, 0x1f
add edx, eax
mov eax, edx
add esp, 0x320
ret
Function at 0x4040c0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x108
push ebp
mov ebp, dword [esp + 0x110]
test ebp, ebp
jne 0x4040dc
xor eax, eax
pop ebp
add esp, 0x108
ret
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push esi
push edi
mov edi, dword [esp + 0x120]
mov dword [esp + 0x10], 0
mov esi, 0x43
push esi
push 0x41c83c
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.00401200
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call ebx
test eax, eax
je 0x404138
push edi
lea edx, [esp + 0x18]
push ebp
push edx
call fcn.00404150
add esp, 0xc
test eax, eax
je 0x40413e
cmp eax, 1
jne 0x404138
mov dword [esp + 0x10], eax
inc esi
cmp esi, 0x5a
jb 0x4040f9
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x108
ret

Function at 0x404150
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x248
mov eax, dword [esp + 0x24c]
push ebx
push ebp
push eax
push str._s.
lea ecx, [esp + 0x14]
push 0x104
push ecx
or ebp, 0xffffffff
call fcn.00401200
lea edx, [esp + 0x1c]
push 0x5c
push edx
call fcn.0040d8e8
add esp, 0x18
mov ebx, eax
lea eax, [esp + 0x110]
lea ecx, [esp + 0xc]
push eax
push ecx
inc ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
je 0x4042da
push esi
push edi
mov edi, dword [esp + 0x260]
lea edx, [esp + 0x144]
mov esi, 0x104
mov eax, ebx
sub edx, ebx
mov cl, byte [edx + eax]
test cl, cl
je 0x4041d1
mov byte [eax], cl
inc eax
dec esi
jne 0x4041c2
jmp 0x4041d5
test esi, esi
jne 0x4041d6
dec eax
mov byte [eax], 0
mov al, byte [esp + 0x118]
test al, 0x10
jne 0x404281
lea edx, [esp + 0x144]
push 0x2e
push edx
call fcn.0040d8e8
mov esi, eax
add esp, 8
test esi, esi
je 0x404264
push 0x41c850
push esi
call fcn.0040e3f0
add esp, 8
test eax, eax
je 0x404236
push str..log
push esi
call fcn.0040e3f0
add esp, 8
test eax, eax
je 0x404236
push str..bak
push esi
call fcn.0040e3f0
add esp, 8
test eax, eax
jne 0x404264
lea eax, [esp + 0x14]
push eax
call fcn.004060c0
add esp, 4
test eax, eax
je 0x404264
test edi, edi
je 0x4042a7
mov ecx, dword [esp + 0x264]
lea edx, [esp + 0x14]
push ecx
push 1
push edx
call edi
test eax, eax
jne 0x4042a7
xor ebp, ebp
jmp 0x4042a7
test edi, edi
je 0x4042a7
mov eax, dword [esp + 0x264]
lea ecx, [esp + 0x14]
push eax
push 0
push ecx
call edi
test eax, eax
jne 0x4042a7
xor ebp, ebp
jmp 0x4042a7
cmp byte [esp + 0x144], 0x2e
je 0x4042a7
mov edx, dword [esp + 0x264]
lea eax, [esp + 0x14]
push edx
push edi
push eax
call fcn.00404150
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x4042c2
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x118]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4041b2
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x248
ret
mov eax, ebp
pop ebp
pop ebx
add esp, 0x248
ret
Function at 0x4046e0
Capabilities:
Create directory
Delete directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4180fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
push edi
lea ecx, [esp + 8]
call fcn.00401000
mov esi, dword [esp + 0x224]
lea eax, [esp + 0xc]
push esi
push str.._s_nul.dll_
push 0x104
push eax
mov dword [esp + 0x22c], 0
call fcn.00401200
add esp, 0x10
lea ecx, [esp + 0x110]
push esi
push 0x41c8a8
push 0x104
push ecx
call fcn.00401200
mov eax, dword [esp + 0x238]
add esp, 0x10
test eax, eax
jne 0x40479b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push esi
call edi
lea edx, [esp + 0xc]
push 0
push edx
call edi
lea eax, [esp + 0x110]
push 0
push eax
call edi
push 0x1f01ff
push 0
push esi
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00401290
push 1
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x4047fb
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push 0x80
push esi
call edi
push 0x1f01ff
push 0
push esi
lea ecx, [esp + 0x18]
call fcn.00401270
lea ecx, [esp + 0x10]
push 0x80
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea edx, [esp + 0x10]
push edx
call ebx
lea eax, [esp + 0x114]
push 0x80
push eax
call edi
lea ecx, [esp + 0x114]
push ecx
call ebx
push 0x80
push esi
call edi
push esi
call ebx
mov edi, eax
pop ebx
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00401030
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret
Function at 0x404830
Capabilities:
Get common file path
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x310
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x104
lea eax, [esp + 0x14]
cmp byte [eax], 0
je 0x404860
inc eax
dec ecx
jne 0x404855
jmp 0x4048a4
test ecx, ecx
je 0x4048a4
lea edx, [esp + 0x10]
test edx, edx
je 0x404875
mov eax, 0x104
sub eax, ecx
jmp 0x404879
mov eax, dword [esp + 0x10]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0x14]
je 0x4048a4
mov esi, str.driversetchosts
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x40489c
mov byte [eax], cl
inc eax
dec edx
jne 0x40488d
jmp 0x4048a0
test edx, edx
jne 0x4048a1
dec eax
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x14]
push 0x80
push ecx
mov ebp, eax
call ebx
lea edx, [esp + 0x14]
push 0x41ca18
push edx
call fcn.0040ea0d
mov esi, eax
add esp, 8
test esi, esi
je 0x40496b
push esi
call fcn.0040e859
mov edi, eax
push esi
lea eax, [esp + 0x120]
push 0x104
push eax
call fcn.0040e7f7
add esp, 0x10
test eax, eax
je 0x404944
lea ecx, [esp + 0x118]
push 0x41c9e4
push ecx
mov byte [esp + 0x223], 0
call fcn.0040e585
add esp, 8
test eax, eax
jne 0x404980
push esi
call fcn.0040e859
push esi
lea edx, [esp + 0x120]
push 0x104
push edx
mov edi, eax
call fcn.0040e7f7
add esp, 0x10
test eax, eax
jne 0x404901
push 0x41c990
push esi
call fcn.0040e7bb
add esp, 8
push str.127.0.0.1__gxgxy.net_r_n127.0.0.1__c0mo.com_r_n_
push esi
call fcn.0040e7bb
push esi
call fcn.0040e73e
add esp, 0xc
mov edi, 1
lea eax, [esp + 0x14]
push ebp
push eax
call ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret
push 0
push edi
push esi
call fcn.0040e685
add esp, 0xc
push 0x41c8dc
jmp 0x404949

Function at 0x4049a0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x110
mov eax, dword [0x41c830]
mov ecx, dword [0x41c834]
mov dl, byte [0x41c838]
mov dword [esp], eax
lea eax, [esp + 0xc]
push 0x104
push eax
mov dword [esp + 0xc], ecx
mov byte [esp + 0x10], dl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404a0c
test al, 0x10
je 0x404a0c
call fcn.00404a20
test eax, eax
je 0x404a0c
mov eax, 1
add esp, 0x110
ret
xor eax, eax
add esp, 0x110
ret
Function at 0x404a20
Capabilities:
Get common file path
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x310
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push 0x104
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x104
lea eax, [esp + 0x10]
cmp byte [eax], 0
je 0x404a55
inc eax
dec ecx
jne 0x404a4a
jmp 0x404a99
test ecx, ecx
je 0x404a99
lea edx, [esp + 0xc]
test edx, edx
je 0x404a6a
mov eax, 0x104
sub eax, ecx
jmp 0x404a6e
mov eax, dword [esp + 0xc]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0x10]
je 0x404a99
mov esi, str.driversetchosts
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x404a91
mov byte [eax], cl
inc eax
dec edx
jne 0x404a82
jmp 0x404a95
test edx, edx
jne 0x404a96
dec eax
mov byte [eax], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x10]
push 0x80
push ecx
mov edi, eax
call ebp
lea edx, [esp + 0x10]
push 0x41c4ac
push edx
call fcn.0040ea0d
mov esi, eax
add esp, 8
test esi, esi
je 0x404b38
push esi
lea eax, [esp + 0x118]
push 0x208
push eax
call fcn.0040e7f7
add esp, 0xc
test eax, eax
je 0x404b2f
lea ecx, [esp + 0x114]
push 0x41c9e4
push ecx
mov byte [esp + 0x21f], 0
call fcn.0040e585
add esp, 8
test eax, eax
jne 0x404b27
push esi
lea edx, [esp + 0x118]
push 0x208
push edx
call fcn.0040e7f7
add esp, 0xc
test eax, eax
jne 0x404aea
jmp 0x404b2f
mov dword [esp + 0xc], 1
push esi
call fcn.0040e73e
add esp, 4
lea eax, [esp + 0x10]
push edi
push eax
call ebp
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x310
ret
Function at 0x404b50
Capabilities:
Copy file
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x414
lea eax, [esp + 4]
push ebx
push esi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x104
lea eax, [esp + 0xc]
cmp byte [eax], 0
je 0x404b7c
inc eax
dec ecx
jne 0x404b71
jmp 0x404bc0
test ecx, ecx
je 0x404bc0
lea edx, [esp + 8]
test edx, edx
je 0x404b91
mov eax, 0x104
sub eax, ecx
jmp 0x404b95
mov eax, dword [esp + 8]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0xc]
je 0x404bc0
mov esi, str.driversetchosts
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x404bb8
mov byte [eax], cl
inc eax
dec edx
jne 0x404ba9
jmp 0x404bbc
test edx, edx
jne 0x404bbd
dec eax
mov byte [eax], 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0xc]
push 0x80
push ecx
call ebx
lea edx, [esp + 0xc]
lea eax, [esp + 0x110]
push edx
push str._s.360
push 0x104
push eax
call fcn.00401200
add esp, 0x10
lea ecx, [esp + 0x110]
lea edx, [esp + 0xc]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x404d15
push ebp
lea eax, [esp + 0x10]
push 0x41ca18
push eax
call fcn.0040ea0d
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x404d06
push edi
lea ecx, [esp + 0x118]
push 0x41c4ac
push ecx
xor esi, esi
call fcn.0040ea0d
mov edi, eax
add esp, 8
test edi, edi
je 0x404cfc
push esi
push esi
push ebp
call fcn.0040e685
push edi
lea edx, [esp + 0x22c]
push 0x208
push edx
call fcn.0040e7f7
add esp, 0x18
test eax, eax
je 0x404cf3
lea eax, [esp + 0x21c]
push 0x41c9e4
push eax
mov byte [esp + 0x327], 0
call fcn.0040e585
add esp, 8
test eax, eax
je 0x404ca2
mov esi, 1
jmp 0x404cd9
lea ecx, [esp + 0x21c]
push 0x41ca30
push ecx
call fcn.0040e585
add esp, 8
test eax, eax
je 0x404cbf
xor esi, esi
jmp 0x404cd9
test esi, esi
jne 0x404cd9
lea edx, [esp + 0x21c]
push edx
push 0x41c294
push ebp
call fcn.0040e7bb
add esp, 0xc
push edi
lea eax, [esp + 0x220]
push 0x208
push eax
call fcn.0040e7f7
add esp, 0xc
test eax, eax
jne 0x404c7a
push edi
call fcn.0040e73e
add esp, 4
push ebp
call fcn.0040e73e
add esp, 4
pop edi
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebp
lea edx, [esp + 0xc]
push 0x80
push edx
call ebx
pop esi
mov eax, 1
pop ebx
add esp, 0x414
ret
Function at 0x404d30
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp + 0x104]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [esp + 0x218]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, 0x419310
mov eax, dword [esi]
mov cl, byte [eax]
cmp cl, 0x30
jne 0x404d82
inc eax
lea ecx, [esp + 0x110]
push eax
push ecx
push 0x41c0b0
lea edx, [esp + 0x18]
push 0x104
push edx
jmp 0x404d9f
cmp cl, 0x31
je 0x404da7
push eax
lea eax, [esp + 0x114]
push eax
push 0x41c0b0
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.00401200
add esp, 0x14
lea edx, [esp + 0xc]
push edx
call ebx
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004046e0
add esi, 4
add esp, 8
cmp esi, 0x419318
jb 0x404d5e
test edi, edi
pop edi
pop esi
pop ebx
jne 0x404ddf
call fcn.00404830
mov eax, 1
add esp, 0x208
ret
call fcn.00404b50
mov eax, 1
add esp, 0x208
ret

Function at 0x404f30
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x208
test eax, eax
jne 0x404fbb
push edi
lea eax, [esp + 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x108]
lea edx, [esp + 4]
push ecx
push str.__s___check
push 0x104
push edx
call fcn.00401200
add esp, 0x10
push str.killdummycom
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
lea edi, [esp + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 4]
push ecx
push eax
push 1
push str.killdummycom4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
pop edi
add esp, 0x208
ret
push str.killdummycom4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
add esp, 0x208
ret
Function at 0x404fe0
Capabilities:
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
push 0
call fcn.00408790
push 0
call fcn.00408700
add esp, 8
lea eax, [esp + 0x10]
mov dword [0x41c7dc], 1
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10]
push 0x41c830
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00408b60
push 0
call fcn.00404d30
add esp, 0xc
call fcn.00407d70
call fcn.00408820
mov edi, dword [esp + 0x118]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExA]
xor esi, esi
mov eax, dword [edi + 4]
test eax, eax
je 0x405088
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x405088
mov edx, dword [eax + esi*4]
push 0x80
push edx
call ebx
mov eax, dword [edi + 4]
push 4
push 0
mov ecx, dword [eax + esi*4]
push ecx
call ebp
inc esi
jmp 0x40505a
mov edi, dword [esp + 0x11c]
xor esi, esi
mov eax, dword [edi + 4]
test eax, eax
je 0x4050bf
mov edx, dword [edi + 8]
sub edx, eax
sar edx, 2
cmp esi, edx
jae 0x4050bf
mov eax, dword [eax + esi*4]
push 0x80
push eax
call ebx
mov ecx, dword [edi + 4]
push 4
push 0
mov edx, dword [ecx + esi*4]
push edx
call ebp
inc esi
jmp 0x405091
push 1
call fcn.00408790
push 1
call fcn.00408700
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x4050e0
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea esi, [esp + eax + 0xc]
mov edx, str.dnsq.dll
mov edi, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x40511a
mov byte [eax], cl
inc eax
dec edi
jne 0x40510b
jmp 0x40511e
test edi, edi
jne 0x40511f
dec eax
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0xc]
push 0
push ecx
mov byte [eax], 0
call ebx
mov edx, str.commfc42.dll
mov edi, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x40514e
mov byte [eax], cl
inc eax
dec edi
jne 0x40513f
jmp 0x405152
test edi, edi
jne 0x405153
dec eax
lea edx, [esp + 0xc]
push 0
push edx
mov byte [eax], 0
call ebx
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x405240
Capabilities:
Download url
Get common file path
Read .ini file
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x41813b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x21c]
stosb byte es:[edi], al
call fcn.00405a60
mov edi, dword [esp + 0x43c]
lea eax, [esp + 0x14]
push 0x104
push eax
push ebx
mov dword [esp + 0x440], ebx
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x220]
call fcn.00405ad0
test eax, eax
je 0x405433
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x224]
call fcn.00405b90
test eax, eax
je 0x405433
cmp dword [esp + 0xc], ebx
je 0x405433
lea ecx, [esp + 0x14]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x118]
lea eax, [esp + 0x14]
push edx
push ebx
push str.killerset
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebx
lea ecx, [esp + 0x11c]
push ebx
push ecx
push str.http:__update.360safe.com_safe_fixtool.ini
push ebx
call sub.urlmon.dll_URLDownloadToFileA
cmp eax, ebx
jl 0x405433
mov edx, dword [esp + 0xc]
xor ecx, ecx
cmp byte [edx], bl
je 0x40536a
mov al, byte [edx]
cmp al, 0x20
je 0x405362
cmp al, 0x2c
je 0x40535c
mov byte [esp + ecx + 0x14], al
jmp 0x405361
mov byte [esp + ecx + 0x14], 0x2e
inc ecx
mov al, byte [edx + 1]
inc edx
cmp al, bl
jne 0x40534c
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x118]
push edx
lea eax, [esp + 0x32c]
push 0x104
push eax
push str.2.2.0.0
push 0x41cb40
push 0x41c754
mov byte [esp + ecx + 0x2c], bl
call esi
test eax, eax
jbe 0x405433
lea ecx, [esp + 0x118]
push ecx
push ebx
push str.update
push 0x41c754
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [edi], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x328]
push edx
push eax
call fcn.0040ea20
add esp, 8
test eax, eax
jle 0x405433
mov edx, dword [esp + 0x444]
mov eax, dword [esp + 0x440]
lea ecx, [esp + 0x118]
push ecx
push edx
push eax
push str.http:__dl.360safe.com_killer_dummycom.exe
push 0x41cb08
push 0x41c754
call esi
lea ecx, [esp + 0x21c]
mov dword [esp + 0x434], 0xffffffff
call fcn.00405aa0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x420]
mov dword fs:[0], ecx
add esp, 0x42c
ret
lea ecx, [esp + 0x21c]
mov dword [esp + 0x434], 0xffffffff
call fcn.00405aa0
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x42c
ret
Function at 0x405ad0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
push eax
mov edi, ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x405b81
mov eax, dword [edi + 0x108]
test eax, eax
je 0x405b04
push eax
call fcn.0040ebef
add esp, 4
push esi
call fcn.0040ecd8
add esp, 4
mov dword [edi + 0x108], eax
test eax, eax
je 0x405b81
push eax
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x405b81
mov eax, dword [edi + 0x108]
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
push ecx
push edx
push str.VarFileInfoTranslation
push eax
mov dword [esp + 0x28], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x405b81
mov eax, dword [esp + 0xc]
xor edx, edx
add edi, 4
mov ecx, dword [eax]
mov dx, word [eax]
shr ecx, 0x10
push ecx
push edx
push str.StringFileInfo_04x_04x
push 0x104
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 8
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4