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

Disassembly:
sub esp, 0x800
push ebx
push ebp
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x401533
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x800
ret 4
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
mov edi, eax
add esp, 8
test edi, edi
jne 0x401556
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x800
ret 4
add edi, 2
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edx, edi
lea eax, [esp + 0x10]
sub edx, eax
mov ebx, 0x400
sar edx, 1
mov word [edi], 0
sub ebx, edx
mov esi, 0x41804c
mov ecx, dword [esi]
push ebx
push ecx
push edi
call ebp
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4015a1
lea eax, [esp + 0x10]
push eax
call fcn.00406930
add esp, 4
test eax, eax
je 0x4015be
add esi, 4
cmp esi, 0x418058
jb 0x40157a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x800
ret 4
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x818]
call fcn.00411ff2
lea edx, [esp + 0x10]
push edx
push str.VerifyFiles___The_file__s_is_not_signed._n
call fcn.00401f00
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x800
ret 4
Function at 0x4015f0
Capabilities:
Access peb ldr_data
Copy file
Get kernel32 base address
Get number of processors
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4128e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push esi
xor esi, esi
push edi
lea eax, [esp + 0x14]
push esi
push eax
call fcn.004013d0
add esp, 8
push str.repair.exe
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x238], esi
call sub.MFC42u.DLL_operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x22c], 2
call sub.MFC42u.DLL_CString::CString
lea edx, [esp + 0x18]
push edx
call fcn.004017d0
add esp, 4
push str.repair.exe
push eax
lea eax, [esp + 0x10]
mov byte [esp + 0x234], 3
push eax
call sub.MFC42u.DLL_operator_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x22c], 5
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
call fcn.00401760
mov eax, dword [eax]
add esp, 4
lea ecx, [esp + 0x1c]
push eax
push 0x104
push ecx
push str._URL:http:__pinst.360.cn_360sd_360sd_min.cab
push str.repair
push str.Installer
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString
lea edx, [esp + 0xc]
push esi
push edx
call fcn.004013d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
push esi
push 0x64
push eax
lea eax, [esp + 0x30]
push eax
push ecx
push esi
mov byte [esp + 0x24c], 6
call fcn.00403df0
add esp, 0x20
mov esi, eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x22c], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x22c], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x22c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x224]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x228
ret

Function at 0x4017d0
Capabilities:
Get common file path

Disassembly:
push ecx
cmp word [0x41a4bc], 0
mov dword [esp], 0
jne 0x40180a
push 0x41a4bc
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, 0x5c
cmp word [eax*2 + 0x41a4ba], cx
je 0x40180a
mov word [eax*2 + 0x41a4bc], cx
push esi
mov esi, dword [esp + 0xc]
push 0x41a4bc
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
mov eax, esi
pop esi
pop ecx
ret
Function at 0x401ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4129f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ebx
push eax
push 0x20019
push ebx
push 0x418224
push 0x80000002
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov edi, 1
jne 0x401d37
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push ebx
push 0x4144ec
push ecx
mov dword [esp + 0x2c], 0x208
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x20]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [esp + 0xc]
push 0x41a6c4
push ecx
mov dword [esp + 0x238], edi
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
cmp eax, ebx
je 0x401d71
push 0x418220
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::operator_1
mov esi, dword [esp + 0x238]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_2
mov dword [esp + 0x18], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x230], bl
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x228]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x401dc0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x412a25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ebx
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetServices360SelfProtection
push 0x80000002
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov edi, 1
jne 0x401e57
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push ebx
push str.RULE_360SD
push ecx
mov dword [esp + 0x2c], 0x208
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x20]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0xc]
mov dword [esp + 0x230], edi
call sub.MFC42u.DLL_CString::MakeLower
push str.360sdu.dat
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
je 0x401e9c
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx - 8]
sub ecx, eax
push ecx
push eax
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Delete
push str.___
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
je 0x401ebf
cmp eax, ebx
jne 0x401ebf
push 4
push ebx
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Delete
mov esi, dword [esp + 0x238]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_2
mov dword [esp + 0x18], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x230], bl
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x228]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret

Function at 0x401f10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x44
push esi
mov esi, dword [esp + 0x4c]
push esi
mov dword [esi], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x401fd3
push edi
mov ecx, 0xf
lea edi, [esp + 0xd]
mov byte [esp + 0xc], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x50]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
push str.CurrentVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [esp + 0x20], 1
mov dword [esp + 0x68], 0x40
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x401fa6
movsx eax, byte [esp + 8]
lea ecx, [esp + 0xa]
sub eax, 0x30
push ecx
mov dword [esi + 0x10], 2
mov dword [esi + 4], eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esi + 8], eax
mov eax, 1
pop esi
add esp, 0x44
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov ecx, eax
mov dl, ah
and ecx, 0xff
mov eax, 4
and edx, 0xff
cmp eax, ecx
mov dword [esi + 4], ecx
sbb ecx, ecx
mov dword [esi + 8], edx
neg ecx
inc ecx
mov dword [esi + 0x10], ecx
mov eax, 1
pop esi
add esp, 0x44
ret
Function at 0x4021d0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x400c
call fcn.00412270
mov ax, word [0x41a6c4]
push esi
mov esi, dword [esp + 0x4014]
push edi
mov word [esp + 0x14], ax
mov ecx, 0xfff
xor eax, eax
lea edi, [esp + 0x16]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
push esi
stosw word es:[edi], ax
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x402294
cmp eax, 0x3fff
ja 0x402294
lea edx, [esp + 0x14]
push edx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x402294
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x418220
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x402294
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x401c]
pop edi
pop esi
mov ecx, dword [eax + 8]
shr ecx, 0x10
mov word [edx], cx
mov edx, dword [esp + 0x4018]
mov cx, word [eax + 8]
mov word [edx], cx
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x401c]
shr ecx, 0x10
mov word [edx], cx
mov ecx, dword [esp + 0x4020]
mov ax, word [eax + 0xc]
mov word [ecx], ax
mov eax, 1
add esp, 0x400c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x400c
ret

Function at 0x402640
Capabilities:
Get disk information

Disassembly:
sub esp, 0x3a0
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0x222]
mov word [esp + 0x220], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x220]
push eax
push 0xc7
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x402760
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
mov dx, word [0x418aa0]
mov ebx, dword [esp + 0x3b4]
rep stosd dword es:[edi], eax
mov ecx, dword [0x418a9c]
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
stosw word es:[edi], ax
mov dword [esp + 0x10], ecx
mov word [esp + 0x14], dx
lea edi, [esp + 0x220]
mov ax, word [edi]
lea ecx, [esp + 0x18]
push 0x104
lea edx, [esp + 0x14]
push ecx
push edx
mov word [esp + 0x1c], ax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40270c
lea eax, [esp + 0x18]
push eax
call ebp
mov esi, eax
add esp, 4
lea ecx, [esp + 0x18]
mov word [esp + esi*2 + 0x18], 0x5c
inc esi
push esi
push ecx
push ebx
mov word [esp + esi*2 + 0x24], 0
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x40272a
mov dx, word [edi]
add edi, 2
test dx, dx
je 0x402722
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x402717
cmp word [edi], 0
je 0x402760
jmp 0x4026bf
mov eax, dword [esp + 0x3bc]
lea ecx, [ebx + esi*2]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x3bc]
push edx
push 0x418a90
push eax
push ecx
call fcn.00406400
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3a0
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3a0
ret
Function at 0x403360
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
push esi
mov esi, dword [esp + 0x21c]
mov ecx, esi
call sub.MFC42u.DLL_CString::Empty
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0x20019
push 0
push 0x414690
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40340d
push edi
mov ecx, 0x81
lea edi, [esp + 0x16]
mov word [esp + 0x14], ax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
stosw word es:[edi], ax
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0x414710
push ecx
mov dword [esp + 0x24], 0x208
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call fcn.00411ff2
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi]
xor eax, eax
pop edi
pop esi
mov edx, dword [ecx - 8]
test edx, edx
setne al
add esp, 0x214
ret
xor eax, eax
pop esi
add esp, 0x214
ret

Function at 0x403760
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x412b38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::CString_4
lea eax, [esp + 4]
mov dword [esp + 0x14], 0
push eax
call fcn.00403360
add esp, 4
test eax, eax
je 0x4037ce
lea ecx, [esp + 4]
push str.360leakfixer.exe
lea edx, [esp + 0xc]
push ecx
push edx
call sub.MFC42u.DLL_operator_2
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 8]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
test esi, esi
je 0x4037ce
mov esi, 1
jmp 0x4037d0
xor esi, esi
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x403df0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], eax
call fcn.00402770
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
neg eax
sbb eax, eax
mov dword [esp + 0x18], ecx
and eax, str.runas
lea ecx, [esp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
push ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 1
xor esi, esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x403e99
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x403e83
mov ecx, dword [esp + 0x40]
push eax
push ecx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x3c
ret
mov eax, esi
pop edi
pop esi
add esp, 0x3c
ret
Function at 0x404040
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
mov dword [esp + 0xc], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
mov dword [esp + 8], esi
push eax
push 0x20019
push esi
push 0x414728
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4040c0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push esi
push 0x41471c
push ecx
mov dword [esp + 0x28], 0x208
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x220]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
mov eax, esi
pop edi
pop esi
add esp, 0x214
ret

Function at 0x4040e0
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x412c57
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea eax, [esp + 0x20]
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, 0x103
sub edx, eax
lea eax, [esp + 0x20]
push edx
push 0x418e88
push eax
call dword [sym.imp.MSVCRT.dll_wcsncat]
mov ecx, dword [esp + 0x244]
add esp, 0x10
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_3
mov esi, eax
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
mov dword [esp + 0x230], 0
call sub.MFC42u.DLL_CString::CString_3
push eax
lea eax, [esp + 0x10]
push 0x418e84
push eax
mov byte [esp + 0x238], 1
call sub.MFC42u.DLL_operator
push 0x418e7c
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x238], 2
call sub.MFC42u.DLL_operator_2
push esi
lea edx, [esp + 0xc]
push eax
push edx
mov byte [esp + 0x238], 3
call sub.MFC42u.DLL_operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x22c], 8
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x22c], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x22c], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x22c], 5
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 8]
push 0
push 0
push eax
call fcn.004054c0
add esp, 0xc
mov dword [esp + 0x22c], 0xffffffff
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x224]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x404600
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x40
mov eax, dword [esp + 0x44]
push ebp
mov ebp, dword [esp + 0x4c]
push esi
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push eax
mov dword [ebp], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40463c
pop esi
xor eax, eax
pop ebp
add esp, 0x40
ret
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x58]
lea edx, [esp + 0x10]
push ecx
push 0x40
push edx
push esi
stosw word es:[edi], ax
mov dword [esp + 0x68], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x54]
pop edi
cmp eax, 0x40
jne 0x404691
cmp word [esp + 8], 0x5a4d
jne 0x404691
mov dword [ebp], 1
pop esi
mov eax, 1
pop ebp
add esp, 0x40
ret

Function at 0x4046a0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x412c78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x4046d7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ebp, dword [sym.imp.MSVCRT.dll_wcschr]
push 0x5c
push edi
call ebp
mov esi, eax
add esp, 8
test esi, esi
jne 0x4046fe
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esi, 2
lea eax, [edi + eax*2]
push 0x5c
push esi
mov dword [esp + 0x1c], eax
call ebp
mov esi, eax
add esp, 0xc
test esi, esi
je 0x404774
mov eax, dword [esp + 0x10]
lea ebx, [esi + 2]
cmp ebx, eax
jae 0x404774
sub esi, edi
lea ecx, [esp + 0x24]
sar esi, 1
push esi
push edi
call fcn.00412064
mov ecx, dword [esp + 0x24]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404755
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4047a3
push 0x5c
push ebx
call ebp
add esp, 8
lea ecx, [esp + 0x24]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
test esi, esi
jne 0x40471d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4047c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4047c9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4051c0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x412cc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x484
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x62]
mov word [esp + 0x60], bx
mov dword [esp + 0x49c], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x14], eax
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3c], ebx
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4a4]
push str.360rp.exe
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42u.DLL_operator_2
mov eax, dword [eax]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
lea edx, [esp + 0x18]
push edx
push ebx
push eax
call ebp
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40530d
mov ecx, 0x8a
xor eax, eax
lea edi, [esp + 0x26c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x268]
mov dword [esp + 0x268], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
cmp eax, ebx
je 0x405306
mov eax, dword [esp + 0x270]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x4052ed
lea ecx, [esp + 0x60]
push 0x104
push ecx
push eax
call fcn.00402580
add esp, 0xc
lea edx, [esp + 0x3c]
lea eax, [esp + 0x60]
push edx
push ebx
push eax
call ebp
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x5c]
cmp ecx, eax
jne 0x4052ed
mov eax, dword [esp + 0x4a4]
lea edx, [esp + 0x60]
mov ecx, dword [eax - 8]
push ecx
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x405301
lea eax, [esp + 0x268]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
cmp eax, ebx
jne 0x405297
jmp 0x405306
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x4a4]
mov dword [esp + 0x49c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x494]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x490
ret
Function at 0x4054c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x412ce8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x64]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x74]
call sub.MFC42u.DLL_CString::CString_3
xor esi, esi
push 0x400
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], esi
call sub.MFC42u.DLL_CString::GetBuffer
mov edx, eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0x10], ecx
push eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x20]
push ecx
push eax
push esi
push esi
push esi
push esi
push esi
push edx
push esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x44], 0x44
mov word [esp + 0x74], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
cmp ebx, esi
je 0x405598
mov ecx, dword [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebp
mov edi, dword [esp + 0x7c]
cmp edi, 0x3e8
jbe 0x405590
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e8
push edx
call esi
cmp eax, 0x102
jne 0x405590
mov eax, dword [esp + 0x10]
add edi, 0xfffffc18
push edi
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call ebp
pop ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x74]
call sub.MFC42u.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x70]
mov dword [esp + 0x68], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x60]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret