joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b300
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43de80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1010
call fcn.0043abc0
mov al, byte [0x451020]
push ebx
push esi
push edi
mov byte [ebp - 0x1020], al
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x101f]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ecx
lea edx, [ebp - 0x18]
push ebx
stosw word es:[edi], ax
push edx
push str.E2A91EC5_8DF7_4d9c_9723_509CBC1015CB
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
stosb byte es:[edi], al
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x41b47a
lea eax, [ebp - 0x1c]
push 4
push eax
push 4
push str.E2A91EC5_8DF7_4d9c_9723_509CBC1015CB
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push ecx
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41b3d1
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x41b3d1
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1020]
push 0x1000
push eax
mov dword [ebp - 4], ebx
call fcn.0041b090
add esp, 8
call fcn.0041aee0
cmp eax, ebx
je 0x41b41e
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1020]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0041af20
cmp eax, ebx
je 0x41b45e
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1020]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x41b45e
push str.E2A91EC5_8DF7_4d9c_9723_509CBC1015CB
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
cmp byte [ebp - 0x1020], bl
jne 0x41b4aa
mov edi, str.Mid2Failed
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1020]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x1020]
push edx
push eax
call fcn.0041b140
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423390
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43e747
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x445c3c
mov dword [esp + 0x14], 4
call fcn.00423f20
mov ecx, esi
call fcn.00423e90
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x14]
push eax
mov dword [esp + 0xc], eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x423f90
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43e7db
push eax
mov eax, 0x8008
mov dword fs:[0], esp
call fcn.0043abc0
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_3
mov al, byte [esi + 0x20]
mov dword [esp + 0x8014], 0
test al, al
jne 0x423fe8
lea ecx, [esp + 4]
mov dword [esp + 0x8014], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4240b3
mov eax, dword [esp + 0x801c]
lea ecx, [esp + 4]
push eax
push str.Dialog__d
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0x38]
add esp, 0xc
lea edx, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push 0x8000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
test eax, eax
mov dword [esp + 8], eax
lea esi, [esp + 0xc]
lea ecx, [esp + 0xc]
jle 0x42409a
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
push edi
mov edi, dword [esp + 0x802c]
mov al, byte [esi]
cmp al, 0x43
je 0x42406c
cmp al, 0x63
je 0x42406c
cmp al, 0x30
jl 0x42405b
cmp al, 0x39
jg 0x42405b
mov al, byte [esi + 1]
inc esi
cmp al, 0x30
jge 0x42404f
mov byte [esi], 0
inc esi
push esi
push ecx
call ebp
add esp, 4
push eax
push edi
call ebx
jmp 0x424077
add esi, 2
push esi
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp byte [esi], 0
je 0x424084
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x42407c
inc esi
lea eax, [esp + 0x18]
mov edx, esi
mov ecx, esi
sub edx, eax
mov eax, dword [esp + 0x14]
cmp edx, eax
jl 0x424041
pop edi
pop ebp
pop ebx
lea ecx, [esp + 4]
mov dword [esp + 0x8014], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x800c]
pop esi
mov dword fs:[0], ecx
add esp, 0x8014
ret 8

Function at 0x424330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
and ecx, 0xffff
push eax
push ecx
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
jne 0x42435c
pop esi
pop ebp
pop ebx
ret 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x42436e
pop esi
pop ebp
pop ebx
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x424381
pop esi
pop ebp
pop ebx
ret 0x10
push 0x48
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x424398
pop esi
pop ebp
pop ebx
ret 0x10
push edi
mov edx, dword [esp + 0x18]
mov ecx, 0x12
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
mov ax, word [esp + 0x20]
push ecx
push esi
push ebx
mov ecx, ebp
mov dword [esi], edx
mov word [esi + 4], ax
call fcn.004243e0
test eax, eax
pop edi
jne 0x4243d8
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
ret 0x10
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x426250
Capabilities:
Create thread
Suspend thread
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x43ec16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push ebx
push esi
push edi
mov esi, ecx
mov edi, 1
lea ecx, [esp + 0xc]
mov dword [0x451094], edi
call sub.MFC42.DLL_CString::CString_3
xor ebx, ebx
push ebx
push 0x7c
mov dword [esp + 0x458], ebx
call fcn.004232b0
mov ecx, eax
call fcn.00423b90
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
push esi
lea ecx, [esp + 0x20]
call fcn.0040e150
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x454], 1
mov dword [esi + 0x484], eax
call fcn.0040e470
lea edx, [esp + 0x14]
mov dword [esp + 0x444], edi
push edx
push ebx
push esi
push 0x425b90
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
lea ecx, [esp + 0x1c]
mov edi, eax
call sub.MFC42.DLL_CDialog::DoModal
cmp dword [esp + 0x438], ebx
je 0x42632b
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x42632b
cmp dword [esp + 0x10], 0x103
jne 0x42632b
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x451094], ebx
mov dword [esi + 0x484], ebx
lea ecx, [esp + 0x43c]
mov byte [esp + 0x450], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x434]
mov byte [esp + 0x450], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x35c]
mov byte [esp + 0x450], 3
call fcn.004011d0
lea ecx, [esp + 0x31c]
mov byte [esp + 0x450], 2
call sub.MFC42.DLL_CProgressCtrl::CProgressCtrl
lea ecx, [esp + 0x310]
mov dword [esp + 0x310], 0x442be0
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x310]
mov byte [esp + 0x450], 0xa
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x224]
mov dword [esp + 0x310], 0x442bcc
mov byte [esp + 0x450], 8
call fcn.00419250
lea ecx, [esp + 0x150]
mov byte [esp + 0x450], 7
call fcn.00419250
lea ecx, [esp + 0x7c]
mov byte [esp + 0x450], 6
call fcn.00419250
lea ecx, [esp + 0x1c]
mov byte [esp + 0x450], bl
call sub.MFC42.DLL_CDialog::CDialog
lea ecx, [esp + 0xc]
mov dword [esp + 0x450], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x448]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x448
ret
Function at 0x4289c0
Capabilities:
Create thread
Suspend thread
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x43f2f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push ebx
push esi
push edi
mov esi, ecx
mov edi, 1
lea ecx, [esp + 0xc]
mov dword [0x451094], edi
call sub.MFC42.DLL_CString::CString_3
xor ebx, ebx
push ebx
push 0x84
mov dword [esp + 0x458], ebx
call fcn.004232b0
mov ecx, eax
call fcn.00423b90
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
push esi
lea ecx, [esp + 0x20]
call fcn.0040e150
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x454], 1
mov dword [esi + 0x80], eax
call fcn.0040e470
lea edx, [esp + 0x14]
mov dword [esp + 0x444], edi
push edx
push ebx
push esi
push 0x428940
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
lea ecx, [esp + 0x1c]
mov edi, eax
call sub.MFC42.DLL_CDialog::DoModal
cmp dword [esp + 0x438], ebx
je 0x428a9e
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x428a9e
cmp dword [esp + 0x10], 0x103
jne 0x428a9e
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x451094], ebx
mov dword [esi + 0x80], ebx
lea ecx, [esp + 0x43c]
mov byte [esp + 0x450], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x434]
mov byte [esp + 0x450], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x35c]
mov byte [esp + 0x450], 3
call fcn.004011d0
lea ecx, [esp + 0x31c]
mov byte [esp + 0x450], 2
call sub.MFC42.DLL_CProgressCtrl::CProgressCtrl
lea ecx, [esp + 0x310]
mov dword [esp + 0x310], 0x442be0
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x310]
mov byte [esp + 0x450], 0xa
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x224]
mov dword [esp + 0x310], 0x442bcc
mov byte [esp + 0x450], 8
call fcn.00419250
lea ecx, [esp + 0x150]
mov byte [esp + 0x450], 7
call fcn.00419250
lea ecx, [esp + 0x7c]
mov byte [esp + 0x450], 6
call fcn.00419250
lea ecx, [esp + 0x1c]
mov byte [esp + 0x450], bl
call sub.MFC42.DLL_CDialog::CDialog
lea ecx, [esp + 0xc]
mov dword [esp + 0x450], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x448]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x448
ret
Function at 0x4293f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
xor esi, esi
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call edi
test eax, eax
jne 0x42943f
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call edi
test eax, eax
jne 0x42943f
pop edi
xor ax, ax
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x42952a
dec eax
je 0x4294de
dec eax
je 0x429464
xor esi, esi
pop edi
mov ax, si
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0xc]
cmp eax, 4
ja 0x429472
mov esi, 4
cmp eax, 5
jne 0x4294c0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x429490
mov esi, 5
pop edi
mov ax, si
pop esi
add esp, 0x9c
ret
cmp eax, 1
jne 0x4294a6
mov esi, 6
pop edi
mov ax, si
pop esi
add esp, 0x9c
ret
cmp eax, 2
jne 0x42952f
mov esi, 8
pop edi
mov ax, si
pop esi
add esp, 0x9c
ret
cmp eax, 6
jne 0x42952f
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x42952f
mov esi, 7
pop edi
mov ax, si
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0xc], 4
jne 0x42952f
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4294fe
mov esi, 2
pop edi
mov ax, si
pop esi
add esp, 0x9c
ret
cmp eax, 0xa
jne 0x429514
mov esi, 2
pop edi
mov ax, si
pop esi
add esp, 0x9c
ret
cmp eax, 0x5a
jne 0x42952f
mov esi, 3
pop edi
mov ax, si
pop esi
add esp, 0x9c
ret
mov esi, 1
mov ax, si
pop edi
pop esi
add esp, 0x9c
ret

Function at 0x429540
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push esi
push edi
xor eax, eax
mov ecx, 6
lea edi, [esp + 0xc]
push 0xf003f
mov dword [esp + 0xc], 0
push eax
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x42959c
push 0xf01ff
push str.CryptSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x42959c
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, dword [esp + 0x28]
mov ecx, 7
lea esi, [esp + 8]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x42f2e0
Capabilities:
Get common file path
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x4401bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x451020
lea ecx, [esp + 0x10]
xor esi, esi
stosb byte es:[edi], al
call fcn.0043a78c
lea eax, [esp + 0x28]
push 0x104
push eax
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x42f35c
mov esi, 1
movsx ecx, byte [esp + 0x28]
push ecx
lea edx, [esp + 0x10]
push 0x450d4c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
cmp esi, ebx
je 0x42f3b1
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x42f3b1
cmp dword [esp + 0x14], ebx
jl 0x42f3af
jg 0x42f3a8
cmp dword [esp + 0x10], 0x6400000
jb 0x42f3af
mov esi, 1
jmp 0x42f3b1
xor esi, esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret

Function at 0x42f3e0
Capabilities:
Modify service
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x10]
push 0xf003f
mov dword [esp + 0x10], ebx
push ebx
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebx
je 0x42f47d
mov eax, dword [esp + 0x2c]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebx
je 0x42f47d
lea ecx, [esp + 0xc]
push ebp
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x42f470
cmp dword [esp + 0x14], 1
jne 0x42f46d
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x42f459
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x42f46d
mov ebx, 1
push esi
call ebp
push edi
call ebp
pop ebp
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x1c
ret
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x430000
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, 4
lea ecx, [esp]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp + 4]
lea edx, [esp + 8]
push eax
push ecx
push edx
push str.NoNotiLeak
push str.SOFTWARE360Safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov ecx, dword [esp]
xor eax, eax
test ecx, ecx
sete al
add esp, 0xc
ret

Function at 0x430050
Capabilities:
Check if file exists
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x440388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 1
call sub.MFC42.DLL_CWnd::UpdateData
push 0x451020
lea ecx, [esp + 0x18]
call fcn.0043a78c
mov eax, dword [ebx + 0xc0]
push 0
push 0
push 0xf0
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x4300c0
push str.pathtype
push str.SOFTWARE360SafeLeak
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
jmp 0x4301be
mov ecx, dword [ebx + 0x3d8]
lea esi, [ebx + 0x3d8]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4300df
push 0
push 0x11c
jmp 0x4301ee
mov ebp, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push str.pathtype
push str.SOFTWARE360SafeLeak
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 1
call ebp
mov ecx, esi
call sub.MFC42.DLL_CString::TrimLeft
mov ecx, esi
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esi]
push 2
push 0x450458
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x43013b
mov edi, dword [esi]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 5
jae 0x43016e
mov eax, dword [esi]
push 7
push str.http:__
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x430161
mov edi, dword [esi]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
ja 0x43016e
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4301e7
mov esi, dword [esi]
mov eax, dword [esi - 8]
push eax
push esi
push 1
push str.netpath
push str.SOFTWARE360SafeLeak
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
mov eax, dword [ebx + 0x3d0]
test eax, eax
je 0x43019c
push str.faildstop
jmp 0x4300ab
lea eax, [esp + 0x10]
push 4
push eax
push 4
push str.faildstop
push str.SOFTWARE360SafeLeak
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 1
call ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push 0
push 0x11d
call fcn.004232b0
mov ecx, eax
call fcn.00423b90
push eax
push ebx
call fcn.0040eeb0
add esp, 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x430230
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov dword [esp], 1
test eax, eax
je 0x430263
mov ecx, dword [esp + 8]
lea eax, [esp]
push 4
push eax
push 4
push ecx
push str.SOFTWARE360Safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
pop ecx
ret 8
mov edx, dword [esp + 8]
push edx
push str.SOFTWARE360Safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
pop ecx
ret 8
Function at 0x433bf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x433c0a
call fcn.00433bc0
call sub.MFC42.DLL_AfxGetModuleState
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
and edx, 0xffff
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x433cdf
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x433cdf
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x433cdf
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov ecx, esi
push edi
push ebx
call fcn.00433cf0
test eax, eax
je 0x433c83
mov dword [esp + 0xc], 1
mov eax, dword [esi + 4]
mov dword [esi + 0xc], edi
test eax, eax
je 0x433cd1
mov ecx, dword [eax]
lea edi, [esi + 8]
push edi
push eax
call dword [ecx + 0x1c]
mov eax, dword [esi + 4]
add esi, 0x10
push esi
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x9ec
push 0x60
push eax
call ebx
mov ecx, dword [esi]
push 0x9ec
push 0x60
push ecx
mov dword [edi], eax
call ebx
mov dword [esi], eax
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
ret 8
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x434900
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x214
mov al, byte [0x451020]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
stosb byte es:[edi], al
push ecx
lea eax, [esp + 0x10]
push edx
push eax
push str.PartnerName
push str.SOFTWARE360SafeCoop
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x104
call esi
mov eax, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 8]
push ecx
lea eax, [esp + 0x10]
push edx
push eax
push str.userid
push str.Software360Safe
push SysReAllocStringLen
call esi
mov al, byte [esp + 0x14]
test al, al
jne 0x434a49
lea ecx, [esp + 0x118]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x118]
push str...360oemoeminfo.ini
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x118]
lea ecx, [esp + 0x14]
push eax
push 0x103
push ecx
push 0
push 0x450f08
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x434a1b
mov al, byte [esp + 0x14]
test al, al
je 0x434a23
lea edx, [esp + 0x118]
push edx
push 1
push 0x450efc
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esp + 8], eax
mov al, byte [esp + 0x14]
test al, al
jne 0x434a49
mov edi, str.h_home
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 8]
pop edi
test eax, eax
pop esi
jne 0x434a5b
mov dword [esp], 1
call fcn.0041b4e0
mov edx, dword [esp]
lea ecx, [esp + 0xc]
push eax
push ecx
push edx
push str.uid_dpid_sm_s
push 0x451060
call sub.MFC42.DLL_CString::Format
add esp, 0x228
ret