joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404310
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4611f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [0x46f42c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x68]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
test esi, esi
mov byte [esp + 0x5c], 1
jne 0x404358
xor ebp, ebp
jmp 0x40435d
push esi
call ebx
mov ebp, eax
push ebp
lea ecx, [esp + 0x18]
call fcn.00408340
test eax, eax
je 0x40439c
lea eax, [ebp + ebp]
lea ecx, [ebp + ebp + 2]
cmp ecx, eax
jb 0x40438b
mov edi, dword [esp + 0x14]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], ebp
mov edx, dword [esp + 0x14]
mov word [eax + edx], 0
mov esi, dword [esp + 0x6c]
test esi, esi
jne 0x4043a8
xor ebp, ebp
jmp 0x4043ad
push esi
call ebx
mov ebp, eax
push ebp
lea ecx, [esp + 0x14]
call fcn.00408340
test eax, eax
je 0x4043ec
lea eax, [ebp + ebp]
lea ecx, [ebp + ebp + 2]
cmp ecx, eax
jb 0x4043db
mov edi, dword [esp + 0x10]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], ebp
mov edx, dword [esp + 0x10]
mov word [eax + edx], 0
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x18]
mov edx, dword [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x20], 0x40
mov dword [esp + 0x28], str.runas
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 1
xor esi, esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x404485
mov edx, dword [esp + 0x50]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x68]
push eax
push ecx
mov dword [esp + 0x70], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x68], 0x457
jne 0x404485
mov esi, 1
mov eax, dword [esp + 0x10]
mov edx, dword [0x46f430]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4044b6
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4044b6
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004535f0
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x46f430]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4044e1
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4044e1
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004535f0
add esp, 4
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret
Function at 0x404b20
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x461260
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x46f42c]
push esi
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], 0
test ecx, ecx
je 0x404c90
push ebx
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.00408910
add esp, 4
mov ebx, dword [eax]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x20], 1
mov esi, 0x3e8
mov ecx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp ecx, 1
jg 0x404b8e
cmp dword [eax - 4], esi
jge 0x404bd4
mov edi, dword [eax - 8]
cmp edi, esi
jle 0x404ca9
test edi, edi
mov esi, edi
jne 0x404ca9
mov eax, dword [0x46f42c]
lea edx, [edi + edi + 2]
lea ecx, [ebp + 0xc]
push edx
lea edx, [esi + esi + 2]
push ecx
push edx
push eax
mov dword [esp + 0x20], eax
call fcn.00407060
mov eax, dword [esp + 0x20]
add esp, 0x10
push ebp
mov dword [eax - 8], edi
call fcn.00408420
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push ebx
push 0x3e8
push eax
push 0x47a15c
push ecx
push str.FileDate
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x46f430]
pop ebp
mov byte [esp + 0x1c], 0
lea edx, [eax - 0xc]
pop ebx
cmp edx, ecx
je 0x404c26
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404c26
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.004535f0
add esp, 4
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 0xc]
lea esi, [ecx - 0xc]
cmp eax, 1
jle 0x404c70
lea ecx, [esp + 8]
call fcn.004083e0
mov edx, dword [esi + 4]
lea ecx, [esp + 8]
push edx
call fcn.00408040
test eax, eax
je 0x404c70
mov eax, dword [esi + 4]
add esi, 0xc
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 8]
push ecx
push esi
mov edx, dword [eax - 4]
lea ecx, [edx + edx + 2]
push ecx
push eax
call fcn.00407060
add esp, 0x10
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 8]
mov dword [ecx - 8], eax
mov edx, dword [esp + 8]
mov word [edx + eax*2], 0
mov eax, dword [esp + 8]
mov edx, dword [eax - 0xc]
mov esi, dword [esp + 0x20]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x404cdc
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x404cfa
lea ecx, [esi + esi + 0xe]
push ecx
call fcn.00455403
add esp, 4
test eax, eax
je 0x404cd5
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
jmp 0x404ba8
xor eax, eax
jmp 0x404bd4
mov ecx, dword [0x46f42c]
mov edi, eax
test eax, eax
mov dword [esi], ecx
je 0x404cf1
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, esi
call fcn.004080a0
mov eax, dword [esp + 8]
mov ecx, dword [0x46f430]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x404d29
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404d29
mov eax, dword [esp + 8]
add eax, 0xfffffff4
push eax
call fcn.004535f0
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x404de0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x461280
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x46f42c]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebx
push ecx
call fcn.00408910
add esp, 4
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x24], 1
mov dword [esp + 0x18], edx
mov ecx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp ecx, 1
mov esi, 0x3e8
jg 0x404e40
cmp dword [eax - 4], esi
jge 0x404e86
mov edi, dword [eax - 8]
cmp edi, esi
jle 0x404f5c
cmp edi, ebx
mov esi, edi
jne 0x404f5c
mov eax, dword [0x46f42c]
lea ecx, [edi + edi + 2]
lea edx, [ebp + 0xc]
push ecx
lea ecx, [esi + esi + 2]
push edx
push ecx
push eax
mov dword [esp + 0x20], eax
call fcn.00407060
mov edx, dword [esp + 0x20]
add esp, 0x10
push ebp
mov dword [edx - 8], edi
call fcn.00408420
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ecx
push 0x3e8
push eax
push 0x47a15c
push str.OEMID
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x46f430]
mov byte [esp + 0x24], bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x404ed9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404ed9
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.004535f0
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
lea esi, [ecx - 0xc]
cmp eax, 1
jle 0x404f23
lea ecx, [esp + 0x10]
call fcn.004083e0
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push edx
call fcn.00408040
test eax, eax
je 0x404f23
mov eax, dword [esi + 4]
add esi, 0xc
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push ecx
push esi
mov edx, dword [eax - 4]
lea ecx, [edx + edx + 2]
push ecx
push eax
call fcn.00407060
add esp, 0x10
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
call edi
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov word [edx + eax*2], bx
mov eax, dword [esp + 0x10]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, ebx
jl 0x404f8d
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x404fab
lea eax, [esi + esi + 0xe]
push eax
call fcn.00455403
add esp, 4
cmp eax, ebx
je 0x404f86
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], bx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
jmp 0x404e5a
xor eax, eax
jmp 0x404e86
mov ecx, dword [0x46f42c]
cmp eax, ebx
mov dword [esi], ecx
mov ebp, eax
jne 0x404f9f
xor eax, eax
jmp 0x404fa2
push eax
call edi
push ebp
push eax
mov ecx, esi
call fcn.004080a0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x46f430]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x404fda
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404fda
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004535f0
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x405440
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x7c
mov eax, dword [esp + 0x80]
push ebx
push ebp
xor ebp, ebp
push ebp
push ebp
push 3
push ebp
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405470
pop ebp
xor eax, eax
pop ebx
add esp, 0x7c
ret
push esi
push edi
mov edi, dword [esp + 0x98]
cmp edi, ebp
jne 0x405487
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x200000
jae 0x405556
mov eax, dword [esp + 0x94]
cmp eax, ebp
je 0x4054a8
push ebp
push ebp
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [edi + 1]
push ecx
call fcn.0045525f
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x405556
lea edx, [esp + 0x10]
push ebp
push edx
push edi
push esi
push ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40554d
lea eax, [esp + 0x24]
push 0
push eax
mov byte [esi + edi], 0
call fcn.0042a200
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push ecx
push esi
push edx
call fcn.0042a260
lea eax, [esp + 0x38]
push eax
call fcn.0042aca0
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x38], ecx
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00405370
add esp, 0x24
mov ebp, 1
push esi
call fcn.00455176
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
Function at 0x4063d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4612fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x46f42c]
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x10], eax
push str.liveupdate.ini
lea ecx, [esp + 0x18]
push 0x47afc0
push ecx
mov dword [esp + 0x230], edi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [esp + 0x10]
mov esi, 0x104
mov ecx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp ecx, 1
jg 0x406433
cmp dword [eax - 4], esi
jge 0x406482
mov ebx, dword [eax - 8]
cmp ebx, esi
jle 0x406528
cmp ebx, edi
mov esi, ebx
jne 0x406528
mov edi, dword [0x46f42c]
lea ecx, [ebx + ebx + 2]
lea eax, [esi + esi + 2]
cmp eax, ecx
mov dword [esp + 0x10], edi
jb 0x406473
mov edx, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
push ebp
mov dword [edi - 8], ebx
call fcn.00408420
mov eax, dword [esp + 0x10]
xor edi, edi
lea ecx, [esp + 0x14]
push ecx
push 0x104
push eax
push str.H_HOME
push 0x46fd88
push str.Coop
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
lea esi, [edx - 0xc]
cmp eax, 1
jle 0x4064ec
lea ecx, [esp + 0x10]
call fcn.004083e0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.00408040
test eax, eax
je 0x4064ec
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x10]
add esi, 0xc
lea edx, [ecx + ecx + 2]
mov ecx, dword [eax - 4]
push edx
push esi
lea edx, [ecx + ecx + 2]
push edx
push eax
call fcn.00407060
add esp, 0x10
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x22c]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov word [edx + eax*2], di
mov eax, dword [esp + 0x10]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, edi
jl 0x406559
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x40659a
lea edx, [esi + esi + 0xe]
push edx
call fcn.00455403
add esp, 4
cmp eax, edi
je 0x406552
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], di
mov dword [eax + 4], esi
mov dword [eax + 8], esi
lea edi, [eax + 0xc]
jmp 0x40644e
xor eax, eax
jmp 0x406482
mov ecx, dword [0x46f42c]
cmp eax, edi
mov dword [esi], ecx
mov ebp, eax
je 0x40656c
push eax
call ebx
mov edi, eax
push edi
mov ecx, esi
call fcn.00408340
test eax, eax
je 0x40659a
mov eax, dword [esi]
lea ebx, [edi + edi]
push ebx
lea edx, [edi + edi + 2]
push ebp
push edx
push eax
call fcn.00407060
mov ecx, dword [esi]
add esp, 0x10
mov dword [ecx - 8], edi
mov edx, dword [esi]
mov word [ebx + edx], 0
mov eax, dword [esp + 0x10]
mov edx, dword [0x46f430]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4065c9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4065c9
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004535f0
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x218
ret
Function at 0x4065f0
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push 1
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40664f
mov eax, dword [esp + 0x28]
push ebp
push edi
push 4
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x406642
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40663f
cmp dword [esp + 0x14], 4
jne 0x40663f
mov ebx, 1
push edi
call ebp
push esi
call ebp
pop edi
pop ebp
mov eax, ebx
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, ebx
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x406ce0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x208
lea eax, [esp]
push str.GuardField.exe
push 0x47abb0
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406d29
push 5
push 0
lea edx, [esp + 8]
push 0
push edx
call fcn.00403b80
add esp, 0x10
mov eax, 1
add esp, 0x208
ret
xor eax, eax
add esp, 0x208
ret
Function at 0x40b190
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4666e8
push 0x4557b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, edx
mov dword [ebp - 4], 0
test ecx, ecx
jne 0x40b1df
or edx, 0xffffffff
mov eax, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or edx, 0xffffffff
cmp dword [ecx + 0x20], edx
mov esi, dword [ecx + 0xc]
jne 0x40b1f9
add esi, 0x11
imul esi, eax
mov dword [esi + ecx + 0x34], edx
mov dword [ecx + 0x20], eax
jmp 0x40b214
add esi, 0x11
imul esi, dword [ecx + 0x24]
mov dword [esi + ecx + 0x30], eax
mov esi, dword [ecx + 0xc]
add esi, 0x11
imul esi, eax
mov edi, dword [ecx + 0x24]
mov dword [esi + ecx + 0x34], edi
mov esi, dword [ecx + 0xc]
add esi, 0x11
imul esi, eax
mov dword [esi + ecx + 0x2c], 2
mov esi, dword [ecx + 0xc]
add esi, 0x11
imul esi, eax
mov dword [esi + ecx + 0x30], edx
mov dword [ecx + 0x24], eax
inc dword [ecx + 0x1c]
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b270
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4666f8
push 0x4557b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, edx
mov dword [ebp - 4], 0
test ecx, ecx
jne 0x40b2bf
or edx, 0xffffffff
mov eax, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or edx, 0xffffffff
cmp dword [ecx + 0x14], edx
jne 0x40b2cc
mov dword [ecx + 0x14], eax
jmp 0x40b2ea
mov esi, dword [ecx + 0xc]
add esi, 0x11
imul esi, dword [ecx + 0x18]
mov dword [esi + ecx + 0x30], eax
mov esi, dword [ecx + 0xc]
add esi, 0x11
imul esi, eax
mov edi, dword [ecx + 0x18]
mov dword [esi + ecx + 0x34], edi
mov esi, dword [ecx + 0xc]
add esi, 0x11
imul esi, eax
mov dword [esi + ecx + 0x2c], 1
mov esi, dword [ecx + 0xc]
add esi, 0x11
imul esi, eax
mov dword [esi + ecx + 0x30], edx
mov dword [ecx + 0x18], eax
inc dword [ecx + 0x10]
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dbe0
Capabilities:
Check if file exists
Create directory
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x418
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, ecx
push 0x208
push ebx
push 0
call edi
mov ebp, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push ebx
call ebp
mov eax, dword [esp + 0x42c]
lea esi, [ebx + 0x208]
push 0x208
push esi
push eax
call edi
push esi
call ebp
lea ecx, [esp + 0x14]
lea edi, [ebx + 0x410]
push ecx
lea edx, [esp + 0x14]
push edi
push edx
push str.path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x40dc8f
mov edx, 0x104
mov eax, edi
sub esi, edi
mov cx, word [esi + eax]
test cx, cx
je 0x40dc7b
mov word [eax], cx
add eax, 2
dec edx
jne 0x40dc67
jmp 0x40dc7f
test edx, edx
jne 0x40dc82
sub eax, 2
push 0x46f964
push edi
mov word [eax], 0
call ebp
mov ax, word [0x47a15c]
mov ecx, 0x81
mov word [esp + 0x18], ax
xor eax, eax
lea edi, [esp + 0x1a]
push str.dpath.ini
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x224]
push ebx
push ecx
stosw word es:[edi], ax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x220]
lea eax, [esp + 0x18]
push edx
push 0x104
push eax
push 0x47a15c
push str.datapath
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dd2c
lea edx, [esp + 0x18]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40dd2c
lea eax, [ebx + 0x618]
mov edx, ebx
mov esi, 0x104
sub edx, eax
mov cx, word [edx + eax]
test cx, cx
je 0x40dd26
mov word [eax], cx
add eax, 2
dec esi
jne 0x40dd12
jmp 0x40dd55
test esi, esi
jne 0x40dd58
jmp 0x40dd55
lea eax, [ebx + 0x618]
lea edx, [esp + 0x18]
mov esi, 0x104
sub edx, eax
mov cx, word [edx + eax]
test cx, cx
je 0x40dd51
mov word [eax], cx
add eax, 2
dec esi
jne 0x40dd3d
jmp 0x40dd55
test esi, esi
jne 0x40dd58
sub eax, 2
add ebx, 0x820
push 0
push 0x25
push ebx
push 0
mov word [eax], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.drivers
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret 4
Function at 0x40ecf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x461718
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 4]
push ecx
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push edx
push eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x40ed8b
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.004092c0
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 4
mov eax, dword [esi + 0x7c]
push ebp
cmp eax, ebx
push edi
je 0x40edf5
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov dword [esi + 0x80], eax
mov eax, dword [esp + 0x1c]
sub eax, ecx
mov ecx, dword [esp + 0x18]
sub ecx, ebp
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi + 0x84], eax
push eax
mov eax, dword [esi + 0x80]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, eax
push edi
call ebp
test eax, eax
je 0x40edeb
xor edi, edi
cmp edi, ebx
mov dword [esi + 0x7c], ebx
je 0x40edf5
push edi
call ebp
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
push 0xcc0020
push ebx
push ebx
push ecx
mov ecx, dword [esp + 0x24]
mov edi, dword [sym.imp.GDI32.dll_BitBlt]
sub edx, ecx
mov ecx, dword [esi + 0x80]
sub eax, ebp
push edx
push eax
push ebx
push ebx
push ecx
call edi
mov edx, dword [esi + 0x80]
mov ecx, esi
push edx
call fcn.0040eea0
mov ecx, dword [esi + 0x80]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x80]
mov esi, dword [esp + 0x10]
push 0xcc0020
sub eax, ecx
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push edx
mov edx, dword [esp + 0x30]
sub ecx, esi
push eax
push ecx
push ebx
push ebx
push edx
call edi
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0x68]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4