joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4125ba
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x479f14]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x74], ax
xor ebx, ebx
lea eax, [ebp - 0x72]
push ebx
push eax
mov esi, ecx
call fcn.0043a190
add esp, 0xc
push 0x208
lea eax, [ebp - 0x74]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x462020
lea eax, [ebp - 0x74]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], eax
mov edi, 0xaa0
cmp dword [esi + 8], ebx
jbe 0x41264e
mov dword [ebp - 0x78], eax
push edi
push 0x444e3351
push dword [ebp - 0x78]
call fcn.0040fabe
add dword [ebp - 0x78], edi
add esp, 0xc
inc ebx
cmp ebx, dword [esi + 8]
jb 0x412634
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x412664
xor eax, eax
jmp 0x41267d
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0043bc40
mov eax, esp
push 3
push ebx
lea ecx, [ebp - 0x74]
push ecx
push eax
call fcn.004099a6
push 0x46203c
push eax
call fcn.0043cb67
pop ecx
pop ecx
mov dword [ebp - 0x78], eax
test eax, eax
je 0x4126c1
push eax
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x7c]
push 4
push eax
mov dword [ebp - 0x7c], ebx
call fcn.0043b375
push dword [ebp - 0x78]
push dword [esi + 8]
push edi
push dword [esi + 0xc]
call fcn.0043b375
push dword [ebp - 0x78]
call fcn.0043b197
add esp, 0x24
mov dword [ebp - 0x7c], ebx
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x4126e8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x78], eax
push edi
push 0x444e3351
push dword [ebp - 0x78]
call fcn.0040fabe
add dword [ebp - 0x78], edi
add esp, 0xc
inc ebx
cmp ebx, dword [esi + 8]
jb 0x4126ce
mov eax, dword [ebp - 0x7c]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x194]
xor ecx, ebp
call fcn.0043a7c3
add ebp, 0x198
leave
ret
Function at 0x4144a7
Capabilities:
Check if file exists

Disassembly:
push 0x210
mov eax, 0x45cb65
call fcn.0043acf4
mov eax, ecx
mov edi, dword [ebp + 8]
test edi, edi
jl 0x414571
lea esi, [eax + 0x10c]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x28
cdq
pop ecx
idiv ecx
cmp edi, eax
jge 0x414571
push edi
mov ecx, esi
call fcn.00411296
add eax, 0x1c
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402197
and dword [ebp - 4], 0
push edi
mov ecx, esi
call fcn.00411296
cmp dword [eax + 0x24], 0
mov esi, dword [ebp - 0x21c]
je 0x41451c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41451c
push 1
push esi
jmp 0x414562
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0043a190
add esp, 0xc
push esi
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.0040fe59
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004101be
pop ecx
pop ecx
lea ecx, [esi - 0x10]
call fcn.004014f1
call fcn.0043ad77
ret 4

Function at 0x415ece
Capabilities:
Check if file exists

Disassembly:
call fcn.004259f8
test eax, eax
je 0x415edc
jmp 0x4285f4
jmp 0x4285f4
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x479f14]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 4
mov eax, 0x45d4b1
call fcn.0043ac8b
xor eax, eax
push 0x206
mov word [ebp], ax
xor ebx, ebx
lea eax, [ebp + 2]
push ebx
push eax
call fcn.0043a190
add esp, 0xc
push 0x208
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str...360Baobiao.exe
lea eax, [ebp]
push eax
call esi
push 0x47bc90
lea ecx, [ebp - 0x10]
call fcn.00402172
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp]
push eax
mov dword [ebp - 4], ebx
call edi
test eax, eax
jne 0x4274b6
push 0x460c30
lea eax, [ebp]
push eax
call esi
push str.360DownloadGuard.exe
lea eax, [ebp]
push eax
call esi
jmp 0x4274c3
push str._funname_DownloadGuard
lea ecx, [ebp - 0x10]
call fcn.00404c6e
lea eax, [ebp]
push eax
call edi
test eax, eax
jne 0x4274fd
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004014f1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0043a7c3
add ebp, 0x20c
leave
ret
lea eax, [ebp]
push eax
call fcn.00426393
pop ecx
test eax, eax
je 0x427523
push 5
push ebx
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
push 0x461b54
push ebx
call fcn.00439fb0
add esp, 0x18
xor ebx, ebx
inc ebx
jmp 0x4274cd
jmp 0x42741f

Function at 0x415fc6
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, ecx
mov eax, dword [esi + 0xf8]
push 5
push dword [eax + 4]
call edi
mov eax, dword [esi + 0xfc]
push 0
push dword [eax + 4]
call edi
pop edi
pop esi
ret
Function at 0x415fed
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, ecx
mov eax, dword [esi + 0xf8]
push 0
push dword [eax + 4]
call edi
mov eax, dword [esi + 0xfc]
push 5
push dword [eax + 4]
call edi
pop edi
pop esi
ret

Function at 0x417231
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push dword [ecx + 4]
push 0x4171d9
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x41724d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
test ecx, ecx
je 0x41725a
lea esi, [ecx - 0x20]
jmp 0x41725c
xor esi, esi
cmp byte [ecx + 0x1c], 0
je 0x417290
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 0xc], 2
jne 0x417281
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x417296
cmp dword [ebp + 0xc], 0
jne 0x417290
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0xc], 1
je 0x4172ab
mov eax, dword [ebp + 0x10]
shr eax, 0x10
cwde
push eax
movsx eax, word [ebp + 0x10]
push eax
lea ecx, [esi + 0x20]
call fcn.00416d95
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x4177a8
Capabilities:
Hide graphical window

Disassembly:
push 0x10
mov eax, 0x45cfaf
call fcn.0043ac8b
mov esi, ecx
cmp dword [esi + 0x104], 0
je 0x417807
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x403
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push 0x424
push dword [esi + 4]
call edi
push 0
push eax
call ebx
push 0x400
push dword [esi + 4]
call edi
push 0
push eax
call ebx
push 0x41d
push dword [esi + 4]
call edi
push 0
push eax
call ebx
mov edi, 0x47bc90
push edi
lea ecx, [ebp - 0x18]
call fcn.00402172
and dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x14]
call fcn.00402172
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.004279df
pop ecx
pop ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.00402172
push str._._fsize_12_colorrgb_55_55_55___._
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00404c6e
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.00404266
mov edi, dword [ebp - 0x10]
push edi
push 0x400
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call fcn.0040f99d
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
lea ecx, [edi - 0x10]
mov dword [esi + 0x84], eax
call fcn.004014f1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004014f1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004014f1
call fcn.0043ad63
ret
Function at 0x4178af
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
push 0xda
lea ebp, [esi + 0x48]
mov edi, 0x3f3
push edi
mov ecx, ebp
call fcn.0040dcef
call fcn.004256d5
mov bl, al
call fcn.0042571a
mov byte [esp + 0x12], al
call fcn.0042575f
mov byte [esp + 0x13], al
call fcn.004257a4
test bl, bl
je 0x417931
cmp byte [esp + 0x12], 0
je 0x417972
cmp byte [esp + 0x13], 0
je 0x417972
test al, al
je 0x417972
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x444
push dword [esi + 4]
call ebx
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0xda
push edi
mov ecx, ebp
call fcn.0040dcef
push 0x814b
jmp 0x41799f
cmp byte [esp + 0x12], 0
jne 0x417972
cmp byte [esp + 0x13], 0
jne 0x417972
test al, al
jne 0x417972
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x444
push dword [esi + 4]
call ebx
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0xec
push edi
mov ecx, ebp
call fcn.0040dcef
push 0x814d
jmp 0x41799f
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x444
push dword [esi + 4]
call ebx
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0xdc
push edi
mov ecx, ebp
call fcn.0040dcef
push 0x814c
lea ecx, [esp + 0x18]
call fcn.004062be
mov edi, dword [eax]
push 0x3f4
push dword [esi + 4]
call ebx
push edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004014f1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x418293
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
je 0x4182a6
push 1
push dword [esp + 0x10]
lea ecx, [esi + 4]
call fcn.00415f0a
call fcn.004100a4
mov ecx, esi
mov dword [esi + 0x104], eax
call fcn.00417e41
mov ecx, esi
call fcn.004160a2
mov ecx, esi
call fcn.00417231
mov ecx, esi
call fcn.004179cf
call fcn.004257e9
test al, al
jne 0x4182ed
push 0x41d
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
inc eax
pop esi
ret 8

Function at 0x41848f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0043a190
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], str.properties
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor eax, eax
inc eax
leave
ret
Function at 0x4184d8
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
test eax, eax
jne 0x418529
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418529
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x418512
push dword [esi]
call edi
test eax, eax
jne 0x418529
push dword [esi]
call fcn.0040fec0
pop ecx
test eax, eax
jne 0x418529
push 4
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop edi
inc eax
pop esi
ret

Function at 0x418654
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x479f14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x4186ce
push edi
mov edi, 0x2b4
push edi
lea eax, [ebp - 0x2b8]
push ebx
push eax
call fcn.0043a190
push esi
call fcn.0043a6d4
add esp, 0x10
lea eax, [esi + eax*2 - 2]
jmp 0x41869d
cmp word [eax], 0x2e
je 0x4186a1
dec eax
dec eax
cmp eax, esi
ja 0x418695
cmp eax, esi
jne 0x4186aa
mov eax, 0x462358
push 0x110
push edi
lea ecx, [ebp - 0x2b8]
push ecx
push 0x80
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
pop edi
test eax, eax
jl 0x4186ce
mov ebx, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0043a7c3
leave
ret

Function at 0x419342
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x479f14]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0043a190
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41939b
cmp dword [ebp - 0x7c], 5
jae 0x419397
cmp dword [ebp - 0x7c], 4
jne 0x41939b
cmp dword [ebp - 0x78], 0x5a
jb 0x41939b
xor eax, eax
jmp 0x41939e
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0043a7c3
add ebp, 0x98
leave
ret

Function at 0x41ba6d
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
call fcn.00425acb
test eax, eax
jne 0x41baa2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41ba91
push 1
mov ecx, esi
call fcn.0041b729
jmp 0x41bac9
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x41bac9
push edi
lea edi, [esi + 0xd4]
cmp dword [edi], 0
jne 0x41bac0
push 0
push 0xc8
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi], eax
pop edi
xor eax, eax
inc eax
pop esi
ret 0x10
Function at 0x41bad0
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 4], 1
push esi
mov esi, ecx
jne 0x41bafa
push 3
xor eax, eax
push eax
push eax
push eax
push eax
push 0xfffffffffffffffe
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x41bb5b
cmp dword [esp + 8], 2
jne 0x41bb5b
push edi
lea edi, [esi + 0xd4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi]
add ecx, 0x3e8
cmp ecx, eax
jae 0x41bb2a
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
and dword [edi], 0
jmp 0x41bb5a
call fcn.00425acb
test eax, eax
jne 0x41bb5a
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41bb4b
push 1
mov ecx, esi
call fcn.0041b729
jmp 0x41bb5a
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
ret 4

Function at 0x41bad5
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 4], 1
push esi
mov esi, ecx
jne 0x41bafa
push 3
xor eax, eax
push eax
push eax
push eax
push eax
push 0xfffffffffffffffe
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x41bb5b
cmp dword [esp + 8], 2
jne 0x41bb5b
push edi
lea edi, [esi + 0xd4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi]
add ecx, 0x3e8
cmp ecx, eax
jae 0x41bb2a
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
and dword [edi], 0
jmp 0x41bb5a
call fcn.00425acb
test eax, eax
jne 0x41bb5a
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41bb4b
push 1
mov ecx, esi
call fcn.0041b729
jmp 0x41bb5a
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
ret 4

Function at 0x41bb6f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x41bbf8
push edi
push esi
call fcn.0043af83
mov edi, eax
pop ecx
test edi, edi
je 0x41bbf7
push edi
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41bbed
and dword [ebp + 8], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x460c20
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41bbed
mov eax, dword [ebp + 8]
test eax, eax
je 0x41bbed
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push 0x40
push dword [ebp + 0xc]
call fcn.00407505
add esp, 0x1c
push edi
call fcn.0043a3fc
xor eax, eax
pop ecx
inc eax
pop edi
pop esi
leave
ret 8
Function at 0x41bc99
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x479f14]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0043a190
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...360DTCleaner.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41bd0c
lea eax, [ebp - 0x20c]
push eax
call fcn.00401aac
neg eax
sbb eax, eax
pop ecx
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a7c3
leave
ret

Function at 0x41c692
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x479f14]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 4
mov eax, 0x45d4b1
call fcn.0043ac8b
push 0x208
xor esi, esi
lea eax, [ebp]
push esi
push eax
call fcn.0043a190
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...360DTCleaner.exe
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c746
lea eax, [ebp]
push eax
call fcn.00401aac
pop ecx
test eax, eax
je 0x41c746
push 0x47bc90
lea ecx, [ebp - 0x10]
call fcn.00402172
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push 0x46266c
push eax
mov dword [ebp - 4], esi
call fcn.00404c93
mov edi, dword [ebp - 0x10]
add esp, 0xc
push 0xa
push esi
push 0x462658
push edi
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [edi - 0x10]
call fcn.004014f1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0043a7c3
add ebp, 0x20c
leave
ret
Function at 0x421bb8
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x479f14]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push ebx
xor ebx, ebx
cmp dword [0x47bae4], ebx
jne 0x421db2
push edi
push str.WINTRUST.DLL
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x421da3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminAcquireContext
push edi
call esi
push str.CryptCATAdminReleaseContext
push edi
mov dword [0x47baa8], eax
call esi
push str.CryptCATAdminCalcHashFromFileHandle
push edi
mov dword [0x47baac], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push edi
mov dword [0x47bab0], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push edi
mov dword [0x47bab4], eax
call esi
push str.WinVerifyTrust
push edi
mov dword [0x47bab8], eax
call esi
mov dword [0x47babc], eax
cmp dword [0x47baa8], ebx
je 0x421da2
cmp dword [0x47baac], ebx
je 0x421da2
cmp dword [0x47bab0], ebx
je 0x421da2
cmp dword [0x47bab4], ebx
je 0x421da2
cmp dword [0x47bab8], ebx
je 0x421da2
cmp eax, ebx
je 0x421da2
xor eax, eax
push 0x206
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push ebx
push eax
call fcn.0043a190
add esp, 0xc
push ebx
push 0x25
lea eax, [ebp - 0x7c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jl 0x421cce
push str.Crypt32.dll
lea eax, [ebp - 0x7c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x421da2
push str.CryptMsgClose
push edi
call esi
push str.CertCloseStore
push edi
mov dword [0x47bac0], eax
call esi
push str.CryptMsgGetParam
push edi
mov dword [0x47bac4], eax
call esi
push str.CryptQueryObject
push edi
mov dword [0x47bac8], eax
call esi
push str.CryptDecodeObject
push edi
mov dword [0x47bacc], eax
call esi
push str.CertFreeCertificateContext
push edi
mov dword [0x47bad0], eax
call esi
push str.CertGetNameStringW
push edi
mov dword [0x47bad4], eax
call esi
push str.CertGetNameStringA
push edi
mov dword [0x47bad8], eax
call esi
push str.CertFindCertificateInStore
push edi
mov dword [0x47badc], eax
call esi
mov dword [0x47bae0], eax
cmp dword [0x47bac0], ebx
je 0x421da2
cmp dword [0x47bac4], ebx
je 0x421da2
cmp dword [0x47bac8], ebx
je 0x421da2
cmp dword [0x47bacc], ebx
je 0x421da2
cmp dword [0x47bad0], ebx
je 0x421da2
cmp dword [0x47bad4], ebx
je 0x421da2
cmp dword [0x47bad8], ebx
je 0x421da2
cmp dword [0x47badc], ebx
je 0x421da2
cmp eax, ebx
je 0x421da2
mov dword [ebp - 0x80], 1
pop esi
xor eax, eax
cmp dword [ebp - 0x80], ebx
pop edi
sete al
inc eax
mov dword [0x47bae4], eax
mov ecx, dword [ebp + 0x18c]
xor eax, eax
cmp dword [0x47bae4], 1
pop ebx
sete al
xor ecx, ebp
call fcn.0043a7c3
add ebp, 0x190
leave
ret
Function at 0x42252e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
mov edi, dword [esi + 8]
sub edi, eax
je 0x42254c
push edi
push eax
push dword [esi]
call fcn.0043cf50
add esp, 0xc
mov eax, dword [esi]
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
mov ecx, 0x1000
sub ecx, edi
mov dword [esi + 4], eax
add eax, edi
push ecx
push eax
push dword [esi + 0xc]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [ebp - 4]
je 0x422588
test eax, eax
je 0x422588
add dword [esi + 8], eax
cmp eax, dword [ebp + 8]
sbb eax, eax
inc eax
jmp 0x42258d
add dword [esi + 8], eax
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x4225d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
cmp eax, ecx
jne 0x4225e9
xor eax, eax
inc eax
jmp 0x422618
push 0
lea edx, [ebp - 4]
push edx
sub eax, ecx
push eax
push ecx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x422611
mov eax, dword [esi]
mov ecx, dword [esi + 4]
sub ecx, eax
cmp dword [ebp - 4], ecx
jne 0x422611
mov dword [esi + 4], eax
jmp 0x4225e4
mov eax, dword [esi]
mov dword [esi + 4], eax
xor eax, eax
pop esi
leave
ret

Function at 0x4226ea
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push dword [esp + 0x10]
push str.SOFTWARE360Safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x422734
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x479f14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, ecx
lea esi, [eax + 4]
cmp word [esi], 0
push edi
mov edi, dword [ebp + 0x10]
jne 0x422798
push 0x208
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x422785
xor ecx, ecx
mov word [eax], cx
push str.wd.ini
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test edi, edi
jne 0x4227a1
mov edi, str.general
push esi
push dword [ebp + 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043a7c3
leave
ret 0xc

Function at 0x422e40
Capabilities:
Get file size

Disassembly:
push esi
push edi
mov esi, ecx
push 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x422e5a
xor eax, eax
jmp 0x422e77
push 1
push 0
push 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x422e56
xor ecx, ecx
cmp edi, eax
sete cl
mov eax, ecx
pop edi
pop esi
ret