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

Disassembly:
mov edx, dword [ecx + 0x10c]
test edx, edx
jne 0x418c2f
xor eax, eax
ret 4
lea eax, [ecx + 4]
push 0x104
push eax
mov dword [ecx + 0x108], 0x104
mov byte [eax], 0
mov eax, dword [esp + 0xc]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
neg eax
sbb eax, eax
inc eax
ret 4

Function at 0x41a610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x424828
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov al, byte [esp + 0x24]
push ebp
mov byte [esp + 4], al
xor eax, eax
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], eax
push ecx
push 1
push eax
lea ecx, [esp + 0x18]
call fcn.0041abe0
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0041a6c0
mov esi, dword [esp + 0x10]
mov ebp, eax
mov eax, dword [esp + 0x14]
cmp esi, eax
mov edi, eax
je 0x41a694
push ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push esi
call ebx
add esi, 0x10
cmp esi, edi
jne 0x41a685
mov esi, dword [esp + 0x14]
pop ebx
push esi
call fcn.00420d62
mov ecx, dword [esp + 0x20]
add esp, 4
mov eax, ebp
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0xc
Function at 0x41b760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x424915
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 4], ebx
mov dword [esp + 0x1c], esi
mov dword [esi + 0x18], ebx
lea ebp, [esi + 0x24]
mov dword [esp + 0x2c], ebx
mov ecx, ebp
mov dword [esp + 0x18], ebp
call fcn.0041db70
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov word [ebp + 0x14], bx
mov byte [ebp + 0x16], bl
mov eax, 0x425a28
mov ecx, 1
mov dword [ebp + 0xc], eax
cmp word [0x425a28], 0xffff
mov byte [esp + 0x2c], cl
je 0x41b7d0
add eax, 4
inc ecx
cmp word [eax], 0xffff
jne 0x41b7c5
lea edi, [ecx*8]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
add esp, 4
cmp edx, ebx
mov dword [ebp + 0x10], edx
je 0x41b7fd
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 0x1c], 0x425a24
mov dword [esi + 0x20], 0x425a20
mov eax, dword [0x42a2c0]
mov dword [esi + 0x40], eax
lea ecx, [esi + 0x44]
mov byte [esp + 0x2c], 3
call fcn.00418ee0
mov dl, byte [esp + 0x13]
lea ecx, [esi + 0x8c]
mov dword [esp + 0x20], ecx
mov byte [ecx], dl
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov al, byte [esp + 0x13]
lea edi, [ecx + 0x10]
mov byte [edi], al
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dl, byte [esp + 0x13]
lea ebp, [ecx + 0x20]
mov byte [ebp], dl
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dl, byte [esp + 0x13]
lea eax, [ecx + 0x30]
mov dword [esp + 0x14], eax
mov byte [eax], dl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dl, byte [esp + 0x13]
lea eax, [ecx + 0x40]
mov dword [esp + 0x18], eax
mov byte [eax], dl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 4]
push eax
push edx
mov byte [esp + 0x34], 9
mov dword [ecx + 0x50], ebx
call fcn.0041ddb0
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
push ecx
mov ecx, edi
call fcn.0041ddb0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
push edx
push eax
mov ecx, ebp
call fcn.0041ddb0
mov ecx, dword [esp + 0x14]
call fcn.0041dc00
mov ecx, dword [esp + 0x18]
call fcn.0041dd10
mov ecx, dword [esp + 0x24]
mov dword [esi], 0x425a14
mov dword [esi + 0x1c], 0x425a10
mov dword [esi + 0x20], 0x425a0c
mov dword [esi + 0x88], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x41bb40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x424999
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [edi], 0x425a14
mov dword [edi + 0x1c], 0x425a10
mov dword [edi + 0x20], 0x425a0c
xor ebp, ebp
mov dword [esp + 0x20], ebp
lea ebx, [edi + 0x8c]
mov dword [esp + 0x14], ebx
mov ecx, ebx
mov byte [esp + 0x20], 8
call fcn.00412d90
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x44]
lea esi, [ebx + 0x40]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x28], 7
call fcn.00417310
mov eax, dword [esi + 4]
push eax
call fcn.00420d62
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x34]
lea esi, [ebx + 0x30]
add esp, 4
mov ecx, esi
mov byte [esp + 0x20], 6
push edx
push eax
call fcn.004170d0
mov eax, dword [esi + 4]
push eax
call fcn.00420d62
add esp, 4
lea ecx, [ebx + 0x20]
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov byte [esp + 0x20], 5
call fcn.0041db80
lea ecx, [ebx + 0x10]
mov byte [esp + 0x20], 4
call fcn.0041db80
mov ecx, ebx
mov byte [esp + 0x20], 3
call fcn.0041db80
lea ecx, [edi + 0x44]
mov byte [esp + 0x20], 2
call fcn.00418f40
mov eax, dword [edi + 0x40]
mov edx, dword [0x42a2c4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41bc4a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41bc4a
mov edx, dword [edi + 0x40]
sub edx, 0xc
push edx
call fcn.00420d62
add esp, 4
cmp edi, ebp
je 0x41bc53
lea ebx, [edi + 0x24]
jmp 0x41bc55
xor ebx, ebx
mov esi, dword [ebx + 0xc]
cmp esi, ebp
je 0x41bc95
mov edi, dword [ebx + 0x10]
cmp edi, ebp
je 0x41bc95
cmp word [esi], 0xffff
je 0x41bc89
test byte [edi + 1], 0x20
je 0x41bc7c
mov eax, dword [edi + 4]
push eax
call fcn.00420d62
add esp, 4
add esi, 4
add edi, 8
cmp word [esi], 0xffff
jne 0x41bc6a
mov ecx, dword [ebx + 0x10]
push ecx
call fcn.00420d62
add esp, 4
mov eax, dword [ebx]
cmp eax, ebp
je 0x41bca7
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebx], ebp
mov ecx, dword [esp + 0x18]
mov dword [ebx + 4], ebp
pop edi
mov dword [ebx + 8], ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x41d6f0
Capabilities:
Check internet connectivity via wininet
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x424a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x42a2c0]
push ebx
mov ebx, ecx
push esi
mov ecx, 0x42f83c
push edi
test ecx, ecx
mov dword [esp + 0xc], eax
je 0x41d776
mov edx, ecx
shr edx, 0x10
jne 0x41d737
xor eax, eax
mov ax, cx
lea ecx, [esp + 0xc]
push eax
call fcn.00402630
jmp 0x41d776
push 0x42f83c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x41d776
push esi
lea ecx, [esp + 0x10]
call fcn.00402890
test eax, eax
je 0x41d776
lea edx, [esi + 1]
cmp edx, esi
jb 0x41d776
mov edi, dword [esp + 0xc]
mov ecx, esi
mov eax, ecx
mov esi, 0x42f83c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push 0
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x41d796
test byte [esp + 0x10], 7
jne 0x41d79f
call fcn.0041d850
test eax, eax
je 0x41d7c0
mov edx, dword [ebx + 4]
push 0x3e8
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, ebx
call fcn.0041bcf0
jmp 0x41d80d
mov eax, dword [ebx + 4]
push 0x3e8
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esp + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.CanNotConnectInternetPrompt
call fcn.00404410
lea ecx, [ebx + 0x8c]
call fcn.00412fb0
mov edx, dword [esp + 0xc]
mov eax, dword [ebx + 4]
push edx
push 0x3e8
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [esp + 0xc]
mov edx, dword [0x42a2c4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41d83c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41d83c
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.00420d62
add esp, 4
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret
Function at 0x41ebc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa08
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x208]
test eax, eax
je 0x41ec8e
mov ecx, str.modules360Inst.exe
mov byte [ebp - 0x208], 0
test ecx, ecx
je 0x41ec8e
mov ecx, 0x200
xor eax, eax
lea edi, [ebp - 0xa08]
push str.modules360Inst.exe
rep stosd dword es:[edi], eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
test eax, eax
je 0x41ec74
lea edx, [ebp - 0xa08]
push 0x800
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0xa08]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [ebp - 0xa08]
push str.modules360Inst.exe
lea edx, [ebp - 0xa08]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0xa08]
push 0x208
lea ecx, [ebp - 0x208]
push eax
push ecx
jmp 0x41ec85
push 0x208
lea edx, [ebp - 0x208]
push str.modules360Inst.exe
push edx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [ebp - 0x208]
push eax
call esi
test eax, eax
jne 0x41ecae
lea esp, [ebp - 0xa14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x208]
test ecx, ecx
je 0x41ed59
lea edx, [ebp - 0x208]
push edx
call esi
test eax, eax
je 0x41ed68
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x208]
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
lea ecx, [ebp - 0x208]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call fcn.00420f30
add esp, 4
test eax, eax
jne 0x41ed68
lea edx, [ebp - 0x208]
push edx
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x208]
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call fcn.00420d70
push eax
push edi
call fcn.00420d80
add esp, 8
xor eax, eax
lea esp, [ebp - 0xa14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push 5
lea edx, [ebp - 0x208]
push ecx
push edx
call fcn.0041fda0
add esp, 0xc
lea esp, [ebp - 0xa14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fe60
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.00422fa0
mov al, byte [0x42f83c]
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 0x41ff40
cmp eax, 0x1fff
ja 0x41ff40
lea edx, [esp + 0x14]
push edx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41ff40
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x42a5b4
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41ff40
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 0x41ff80
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
xor edx, edx
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
cmp edi, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
je 0x420036
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x420042
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov ebx, esp
push esi
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
call fcn.00420f30
add esp, 4
test eax, eax
jne 0x420042
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov ebx, esp
push esi
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call fcn.00420d70
push eax
push ebx
call fcn.00420d80
add esp, 8
xor eax, eax
lea esp, [ebp - 0x60]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x54]
push ecx
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x420036
mov ecx, dword [ebp - 0x10]
push 0x3e8
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [ebp + 0x10]
push 0
push edx
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x42009f
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x10]
push ecx
call esi
lea esp, [ebp - 0x60]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4203b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424b38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x123]
mov byte [ebp - 0x124], 0
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x42a2c0]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
push ecx
push str.CLSID_sLocalServer32
push edx
mov dword [ebp - 4], esi
call fcn.00403550
add esp, 0xc
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x124]
lea edx, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push ecx
push edx
push 0x42f83c
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov al, byte [ebp - 0x124]
test al, al
je 0x420530
lea ecx, [ebp - 0x124]
test ecx, ecx
jne 0x420459
xor edi, edi
jmp 0x420492
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x124]
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0x1c]
lea edx, [ebp + 8]
push ecx
push edx
push edi
push 0
call fcn.004200c0
mov eax, dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x420500
push eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push esi
push 0x42a954
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov edx, dword [ebp + 8]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x42051d
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x124]
push eax
push 0x42a954
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42052b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [0x42a2c4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42055d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42055d
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff4
push edx
call fcn.00420d62
add esp, 4
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x130]
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420580
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa08
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x208]
test eax, eax
je 0x42064e
mov ecx, str.modules360Inst.exe
mov byte [ebp - 0x208], 0
test ecx, ecx
je 0x42064e
mov ecx, 0x200
xor eax, eax
lea edi, [ebp - 0xa08]
push str.modules360Inst.exe
rep stosd dword es:[edi], eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
test eax, eax
je 0x420634
lea edx, [ebp - 0xa08]
push 0x800
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0xa08]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [ebp - 0xa08]
push str.modules360Inst.exe
lea edx, [ebp - 0xa08]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0xa08]
push 0x208
lea ecx, [ebp - 0x208]
push eax
push ecx
jmp 0x420645
push 0x208
lea edx, [ebp - 0x208]
push str.modules360Inst.exe
push edx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [ebp - 0x208]
push eax
call esi
test eax, eax
jne 0x42066e
lea esp, [ebp - 0xa14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x208]
test ecx, ecx
je 0x420719
lea edx, [ebp - 0x208]
push edx
call esi
test eax, eax
je 0x420728
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x208]
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
lea ecx, [ebp - 0x208]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call fcn.00420f30
add esp, 4
test eax, eax
jne 0x420728
lea edx, [ebp - 0x208]
push edx
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x208]
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call fcn.00420d70
push eax
push edi
call fcn.00420d80
add esp, 8
xor eax, eax
lea esp, [ebp - 0xa14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push 5
lea edx, [ebp - 0x208]
push ecx
push edx
call fcn.0041fda0
add esp, 0xc
lea esp, [ebp - 0xa14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420750
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x408
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
push 0x42f83c
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safebox.exe
push reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4207e4
mov eax, dword [esp + 0x414]
test eax, eax
je 0x4207d6
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x418]
cmp edx, ecx
jbe 0x4207d6
lea edx, [esp + 0x10]
push edx
push 0x42a954
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
pop edi
mov eax, 1
pop esi
add esp, 0x408
ret
mov eax, esi
pop edi
pop esi
add esp, 0x408
ret

Function at 0x4207f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x408
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
push str.path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safebox.exe
push reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x420884
mov eax, dword [esp + 0x414]
test eax, eax
je 0x420876
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x418]
cmp edx, ecx
jbe 0x420876
lea edx, [esp + 0x10]
push edx
push 0x42a954
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
pop edi
mov eax, 1
pop esi
add esp, 0x408
ret
mov eax, esi
pop edi
pop esi
add esp, 0x408
ret
Function at 0x420940
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425a50
push 0x42308c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp eax, ecx
je 0x420ab3
mov esi, dword [eax + 0x10]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x20], ecx
cmp esi, ecx
je 0x420a79
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x420a79
mov dword [ebp - 0x24], esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
mov dword [ebp - 0x28], edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov dword [ebp - 0x18], esp
mov ebx, esp
mov dword [ebp - 0x2c], ebx
mov word [ebx], 0
push edi
push ebx
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
call fcn.00420e60
add esp, 4
test eax, eax
je 0x420a79
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
mov dword [ebp - 0x3c], edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov dword [ebp - 0x18], esp
mov ebx, esp
mov dword [ebp - 0x40], ebx
mov word [ebx], 0
push edi
push ebx
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
call fcn.00420f30
add esp, 4
test eax, eax
jne 0x420a79
mov dword [ebp - 0x24], esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
mov dword [ebp - 0x28], edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov dword [ebp - 0x18], esp
mov ebx, esp
mov dword [ebp - 0x44], ebx
mov word [ebx], 0
push edi
push ebx
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call fcn.00420d70
push eax
push ebx
call fcn.00420d80
add esp, 8
xor eax, eax
jmp 0x420a7e
mov eax, 1
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x420ab3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov dword [ebp - 4], 0xffffffff
lea esp, [ebp - 0x58]
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
lea esp, [ebp - 0x58]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret