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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x101d860f
cmp dword [ebp + 0xc], 0x20
jb 0x101d860f
push 0x400
lea eax, [ebp - 0x504]
mov dword [ebp - 0x50c], 1
push 0
push eax
mov dword [ebp - 0x508], 0x400
call fcn.101a08b0
add esp, 0xc
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x50c]
push eax
push 0x10233cbc
push str.SoftwareComMaster
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x101d860f
lea ecx, [ebp - 0x504]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101d8520
sub ecx, edx
cmp ecx, 0x40
jne 0x101d860f
lea edx, [ecx + 0x40]
push esi
lea ecx, [ebp - 0x84]
lea esi, [ebp - 0x504]
mov eax, ecx
sub esi, eax
lea eax, [edx - 0x60]
test eax, eax
je 0x101d855c
mov al, byte [esi + ecx]
test al, al
je 0x101d855c
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x101d8546
test edx, edx
lea eax, [ecx - 1]
lea esi, [ebp - 0x4e4]
mov edx, 0x80
cmovne eax, ecx
lea ecx, [ebp - 0x104]
mov byte [eax], 0
mov eax, ecx
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x101d8599
mov al, byte [esi + ecx]
test al, al
je 0x101d8599
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x101d8580
test edx, edx
lea eax, [ecx - 1]
push 0x400
cmovne eax, ecx
push 0
mov byte [eax], 0
lea eax, [ebp - 0x504]
push eax
call fcn.101a08b0
push 0x400
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.101d8620
add esp, 0x18
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
test eax, eax
jne 0x101d860f
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
push edi
call fcn.101d9340
neg eax
pop edi
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
Function at 0x101d8ee0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c10
call fcn.100d0310
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c10], eax
test eax, eax
je 0x101d904d
cmp dword [ebp + 0xc], 0
je 0x101d904d
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop dword [eax]
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.101d4f40
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x101d9030
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2c0c], 0
lea eax, [ebp - 0x2bfc]
movq qword [ebp - 0x2c08], xmm0
push 0
push eax
mov dword [ebp - 0x2c00], 0
mov dword [ebp - 0x2c08], 0
mov dword [ebp - 0x2c04], 0
call fcn.101a08b0
add esp, 0xc
lea eax, [ebp - 0x2c0c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2bfc]
push eax
push 0xc
lea eax, [ebp - 0x2c08]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x101d9025
push 0x3e8
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.101a08b0
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x2be4]
lea eax, [ebp - 0x2bfc]
push eax
call fcn.101d98b0
add esp, 0x1c
lea eax, [ebp - 0x4ec]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x2c10]
call fcn.101d9340
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x101d903a
inc esi
cmp esi, 0x10
jl 0x101d8f20
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
Function at 0x101d9060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x101d9148
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.101a08b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test edx, edx
je 0x101d9148
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101d90b7
sub ecx, esi
mov eax, 0x103
sar ecx, 1
sub eax, ecx
cmp edx, eax
jae 0x101d9148
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x101d90e0
mov eax, dword [0x10223a80]
mov esi, ebx
mov dword [edi], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x101d90f5
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x101d9110
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
Function at 0x101d9160
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.101a08b0
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.101d8620
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x101d91ca
mov al, byte [edi + ecx]
test al, al
je 0x101d91ca
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x101d91b1
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x101d91eb
inc eax
sub ecx, 1
jne 0x101d91e0
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x101d9240
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x101d9235
lea edi, [ebp - 0x84]
mov eax, SysReAllocString
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x101d9234
mov bl, byte [edi + ecx]
test bl, bl
je 0x101d9234
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x101d9220
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.101a08b0
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x10233cbc
push str.SoftwareComMaster
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x101d92fa
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x101d92c4
test cl, cl
je 0x101d92c0
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x101d92c4
add eax, 2
add esi, 2
test cl, cl
jne 0x101d92a4
xor eax, eax
jmp 0x101d92c9
sbb eax, eax
or eax, 1
test eax, eax
je 0x101d92fa
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101d92d6
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.SoftwareComMaster
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101d9303
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x10233cbc
push str.SoftwareComMaster
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
Function at 0x401740
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x43b198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
mov esi, ecx
call fcn.004232b0
mov ecx, eax
call fcn.00424310
mov edi, eax
call fcn.004232b0
mov ecx, eax
call fcn.00424320
mov byte [esp + 0xc], al
push edi
mov ecx, dword [esp + 0x10]
push 0x20
push 0
mov eax, dword [esi + 0x78]
push 0
and ecx, 0xff
push 0
push ecx
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esi + 0x70]
call sub.MFC42.DLL_CGdiObject::Attach
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x38]
push 0
push edx
mov dword [esp + 0x38], 0
call fcn.004232b0
mov ecx, eax
call fcn.00423b90
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [0x451000]
lea eax, [esp + 0x10]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
mov edx, dword [eax + 4]
push ecx
add edx, edi
mov ecx, esi
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x44]
push edx
push eax
mov eax, dword [esp + 0x14]
push 0x5000000b
push eax
call sub.MFC42.DLL_CButton::Create
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x10

Function at 0x403870
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 5
jne 0x4038a4
mov eax, dword [esp + 8]
test eax, eax
jne 0x4038a4
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret

Function at 0x4038b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 6
jne 0x4038e4
mov eax, dword [esp + 8]
test eax, eax
jne 0x4038e4
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret

Function at 0x4038f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 5
jne 0x40391d
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
je 0x40391f
xor eax, eax
add esp, 0x94
ret
Function at 0x403930
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.0043abc0
mov al, byte [0x451020]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x15]
mov esi, dword [esp + 0x2018]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
push ecx
push esi
stosb byte es:[edi], al
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
je 0x4039c2
cmp eax, 0x1fff
ja 0x4039c2
lea edx, [esp + 0x14]
push edx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4039c2
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x4500fc
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4039c2
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x201c]
pop edi
pop esi
mov ecx, dword [eax + 8]
mov eax, 1
shr ecx, 0x10
mov dword [edx], ecx
add esp, 0x200c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x200c
ret

Function at 0x403a40
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.0043abc0
mov al, byte [0x451020]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x15]
mov esi, dword [esp + 0x2018]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
push ecx
push esi
stosb byte es:[edi], al
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
je 0x403b20
cmp eax, 0x1fff
ja 0x403b20
lea edx, [esp + 0x14]
push edx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x403b20
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x4500fc
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x403b20
mov edx, dword [esp + 0x2020]
mov esi, dword [esp + 0x201c]
mov ecx, edx
push ebx
mov ebx, ecx
xor eax, eax
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
xor ecx, ecx
mov cx, word [eax + 8]
mov eax, dword [eax + 8]
shr eax, 0x10
push ecx
push eax
dec edx
push str._d._d._d._d
push edx
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
mov eax, 1
pop ebx
pop edi
pop esi
add esp, 0x200c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x200c
ret
Function at 0x403b30
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 8]
push esi
push edx
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], eax
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x403b7f
mov eax, dword [esp + 0x10]
push eax
push esi
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x403bad
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov dword [esp + 0x10], ecx
cmp byte [ecx + esi - 1], 0x5c
je 0x403ba5
mov byte [ecx + esi], 0x5c
mov ecx, dword [esp + 0x10]
mov byte [ecx + esi + 1], 0
mov eax, 1
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x403bc0
Capabilities:
Create process on windows
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4430f0
push 0x43abf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc34
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov byte [ebp - 0x418], bl
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x417]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [ebp + 8]
push esi
push str.__s_
push 0x400
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
push 5
push ebx
lea ecx, [ebp - 0x418]
push ecx
push str.Explorer
push 0x451020
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x403c57
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], ebx
mov dword [ebp - 0x41c], ebx
lea edx, [ebp - 0x41c]
push edx
push 0x447464
push 0x15
push ebx
push 0x447434
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x403d9f
mov eax, dword [ebp - 0x41c]
cmp eax, ebx
je 0x403d79
mov dword [ebp - 0xc30], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0xc30]
push edx
push eax
call dword [ecx + 0x94]
mov eax, dword [ebp - 0xc30]
cmp eax, ebx
je 0x403cc6
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 3
mov eax, dword [ebp - 0xc30]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403d6d
mov ecx, 0x200
lea edi, [ebp - 0xc1c]
rep stosd dword es:[edi], eax
push 0x7ff
lea ecx, [ebp - 0xc1c]
push ecx
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [ebp - 0xc2c], bx
mov word [ebp - 0xc40], 8
lea edx, [ebp - 0xc1c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0xc38], eax
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
lea edx, [ebp - 0xc2c]
push edx
lea edx, [ebp - 0xc2c]
push edx
lea edx, [ebp - 0xc2c]
push edx
lea edx, [ebp - 0xc2c]
push edx
lea edx, [ebp - 0xc40]
push edx
push eax
call dword [ecx + 0xd0]
mov dword [ebp - 0xc44], eax
mov eax, dword [ebp - 0xc38]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403f30
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x403f44
pop ecx
ret
test byte [esp], 7
jne 0x403f52
call fcn.00403e90
pop ecx
ret
mov eax, 1
pop ecx
ret
Function at 0x403f90
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov esi, ebp
cmp byte [ebp], 0
je 0x40400e
mov ebx, dword [sym.imp.MSVCRT.dll_strchr]
push 0x5c
push esi
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x40400e
sub eax, ebp
lea ecx, [esp + 0x10]
push eax
push ebp
push ecx
call fcn.00403f60
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jne 0x403fe8
cmp byte [esp + 0x11], 0x3a
je 0x404006
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x404006
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40401e
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x403faf
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
Function at 0x404690
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4046af
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4046f9
xor eax, eax
add esp, 0x14
ret
push 0x80020003
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret

Function at 0x404920
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov dl, byte [0x451020]
push ebx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], dl
mov byte [esp + 0x114], dl
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 + 0x115]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
xor ebx, ebx
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x20], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov al, byte [esp + 0x10]
test al, al
jne 0x404a20
push esi
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [esp + 0x118]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x404a17
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
lea edx, [esp + 0x118]
push 0x5c
push edx
call esi
add esp, 8
test eax, eax
je 0x404a17
mov byte [eax], bl
lea eax, [esp + 0x118]
push 0x5c
push eax
call esi
add esp, 8
test eax, eax
je 0x404a17
mov byte [eax], bl
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
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 al, byte [esp + 0x14]
pop esi
test al, al
je 0x404a9c
mov edx, dword [esp + 0x224]
test edx, edx
je 0x404a6b
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x404a6b
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x224]
push ecx
push str._s_s
push edx
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
mov eax, 1
pop edi
pop ebx
add esp, 0x210
ret
mov edx, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x10]
push ecx
push 0x45012c
push edx
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
mov eax, 1
pop edi
pop ebx
add esp, 0x210
ret
mov eax, ebx
pop edi
pop ebx
add esp, 0x210
ret
Function at 0x405700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43b7a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x24]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x2c]
sub esp, 0xc
mov esi, esp
lea eax, [esp + 0x14]
mov dword [esp + 0x30], esp
push eax
mov ecx, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], esi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
push ecx
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x1c]
lea ecx, [edi + 0x6c]
mov dword [esi + 8], edx
mov byte [esp + 0x28], 1
call fcn.00406020
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x18
ret 0xc
Function at 0x4074e0
Capabilities:
Check if file exists
Create directory
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
lea ecx, [esp + 0x114]
push eax
push ecx
push edx
push str.SavePath
push str.SOFTWARE360SafeLeak
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4075c5
mov al, byte [0x451020]
mov ecx, 0x40
mov byte [esp + 0x10], al
xor eax, eax
lea edi, [esp + 0x11]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x10]
push str...hotfix
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4075a5
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x114]
push edx
push 0x45012c
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea ecx, [esp + 0x114]
push ecx
lea ecx, [esi + 0x5d0]
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov edx, dword [esi + 0x5f0]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
add esp, 0x210
ret

Function at 0x4077a0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x5c8]
lea ecx, [esi + 0x300]
push edi
call sub.MFC42.DLL_CWnd::GetWindowTextA_1
mov edi, dword [edi]
mov eax, dword [edi - 8]
test eax, eax
jne 0x4077c8
push 0
push 0x98
jmp 0x4077d9
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4077f4
push eax
push 0x99
call fcn.004232b0
mov ecx, eax
call fcn.00423b90
push eax
push esi
call fcn.0040eeb0
add esp, 8
xor eax, eax
pop edi
pop esi
ret
lea eax, [esi + 0x5cc]
lea ecx, [esi + 0x5d0]
push eax
call sub.MFC42.DLL_CWnd::GetWindowTextA_1
pop edi
mov eax, 1
pop esi
ret