joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403920
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, eax
mov eax, dword [ebx]
mov esi, dword [ebx + 0x18]
lea ecx, [esp + 0x10]
push ecx
xor edi, edi
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x403962
push 0x434d74
mov eax, 0x434d74
call fcn.00405aa0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov edi, dword [esp + 0x10]
mov ecx, dword [ebx + 0xb4]
xor edx, edx
sub edi, esi
mov esi, dword [esp + 0x14]
sbb esi, edx
sub edi, 0x298
sbb esi, edx
xor eax, eax
cmp esi, eax
jl 0x403a27
jg 0x403992
cmp edi, ecx
jb 0x403a27
mov ebx, dword [ebx]
push 0
push 0
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4039c0
push 0x434d74
mov eax, 0x434d74
call fcn.00405aa0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x10]
push eax
push 0x298
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4039a5
cmp dword [esp + 0xc], 0x298
je 0x403a01
push 0x434d74
mov eax, 1
call fcn.00405b10
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x20]
test eax, eax
je 0x403a0e
mov dword [eax], edi
mov dword [eax + 4], esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x403a34
mov edx, 1
mov word [eax], dx
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x24]
test eax, eax
je 0x403a34
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret

Function at 0x404205
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [esp + 0x218]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + ebx + 0x78]
mov edi, dword [ecx + ebx + 0x20]
mov eax, dword [ecx + ebx + 0x1c]
add edi, ebx
mov ebp, dword [ecx + ebx + 0x24]
add eax, ebx
add ebp, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov esi, dword [edi]
add esi, ebx
cmp byte [esi], 0
je 0x4042ed
nop
lea eax, [esp + 0x18]
push 0x208
push eax
call fcn.00405a55
push esi
call fcn.00405655
add esp, 0xc
test eax, eax
je 0x404274
nop dword [eax]
movsx cx, byte [eax + esi]
mov word [esp + eax*2 + 0x18], cx
sub eax, 1
jne 0x404265
movsx cx, byte [eax + esi]
mov word [esp + eax*2 + 0x18], cx
lea eax, [esp + 0x18]
push eax
call fcn.00405685
mov ebx, eax
add esp, 4
xor esi, esi
xor edx, edx
test ebx, ebx
je 0x4042b8
mov eax, dword [esp + 0x22c]
mov edi, dword [eax + 0x58]
nop word [eax + eax]
movzx ecx, word [esp + edx*2 + 0x18]
inc edx
imul esi, edi
add esi, ecx
cmp edx, ebx
jb 0x4042a5
mov edi, dword [esp + 0x10]
movzx eax, word [ebp]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x224]
mov eax, dword [ecx + eax*4]
add eax, ebx
cmp dword [esp + 0x228], esi
je 0x4042ef
mov esi, dword [edi + 4]
add edi, 4
add esi, ebx
mov dword [esp + 0x10], edi
add ebp, 2
cmp byte [esi], 0
jne 0x404245
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x405285
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 0x40]
push dword [eax + 0xb8]
push dword [eax + 0xa4]
mov eax, dword [ebp + 0x48]
call eax
push dword [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x18], 0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x2c]
push ebx
push dword [esp + 0x28]
push ebp
call fcn.00405365
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0
push eax
push ebp
push ebx
call fcn.004056b5
add esp, 0x28
test al, al
jne 0x4052f2
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x14]
xor edx, edx
mov eax, ecx
mov byte [esp + 0x17], cl
shr eax, 0x18
mov byte [esp + 0x14], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x15], al
mov eax, ecx
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
shr eax, 8
mov byte [esp + 0x1a], al
push edi
mov edi, dword [esp + 0x14]
test esi, esi
je 0x40533e
mov al, byte [esp + ecx + 0x1c]
xor byte [edx + edi], al
lea eax, [ecx + 1]
xor ecx, ecx
inc edx
cmp eax, 4
cmovne ecx, eax
cmp edx, esi
jb 0x405327
mov eax, dword [esp + 0x28]
mov dword [eax], esi
mov eax, dword [esp + 0x24]
mov dword [eax], edi
pop edi
pop esi
test ebx, ebx
je 0x405356
mov eax, dword [ebp + 0x34]
push ebx
call eax
pop ebp
mov al, 1
pop ebx
add esp, 8
ret

Function at 0x405aa0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [eax + 0xb8]
push eax
mov eax, dword [esi + 0x40]
push dword [eax + 0xa4]
mov eax, dword [esi + 0x48]
call eax
push ebx
push dword [esp + 0x24]
mov edi, eax
push edi
call fcn.004041b5
mov edx, dword [esp + 0x24]
add esp, 0xc
mov eax, edx
mov byte [esp + 0x1b], dl
shr eax, 0x10
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x19], al
mov eax, edx
mov byte [esp + 0x18], cl
xor edx, edx
shr eax, 8
xor ecx, ecx
mov byte [esp + 0x1a], al
test ebx, ebx
je 0x4059ec
nop dword [eax + eax]
mov al, byte [esp + ecx + 0x18]
xor byte [edx + edi], al
lea eax, [ecx + 1]
xor ecx, ecx
inc edx
cmp eax, 4
cmovne ecx, eax
cmp edx, ebx
jb 0x4059d5
mov eax, dword [esi + 0x24]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ebp
call eax
mov ebp, eax
cmp ebp, 0xffffffff
je 0x405a24
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esi + 0x30]
push ebx
push edi
push ebp
call eax
test eax, eax
mov eax, dword [esi + 0x60]
push ebp
jne 0x405a2c
call eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
call eax
test edi, edi
je 0x405a38
mov eax, dword [esi + 0x34]
push edi
call eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405a46
mov dword [esp + 4], eax
jmp 0x405980
Function at 0x406ee0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x88
push 0xffffffffffffffff
push 0x43001b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x439c3c]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [0x43e300], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
mov ecx, 0x41
lea ebx, [ebp]
call fcn.00406c60
add esp, 0xc
xor eax, eax
mov word [ebp + 0x80], ax
xor ebx, ebx
xor esi, esi
lea ecx, [ebp]
push ecx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x40703a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406f84
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], ebx
call fcn.00406cd0
cmp eax, ebx
je 0x406f9a
mov dword [0x43e300], eax
jmp 0x40701b
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, ebx
je 0x406fb5
push 0x5c0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x406fc9
push edi
push esi
call fcn.00407360
jmp 0x406fcb
xor eax, eax
mov byte [ebp - 4], bl
mov dword [0x43e300], eax
cmp eax, ebx
jne 0x406fec
mov dword [ebp - 0x1c], 1
push 0x4371fc
lea edx, [ebp - 0x1c]
push edx
call fcn.0041aa60
mov esi, 1
mov dword [ebp - 0x24], esi
push eax
call fcn.00406da0
add esp, 4
test eax, eax
jne 0x407016
mov dword [ebp - 0x18], 3
push 0x4371fc
lea eax, [ebp - 0x18]
push eax
call fcn.0041aa60
mov eax, dword [0x43e300]
inc dword [eax + 0x5bc]
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp esi, ebx
jne 0x40703a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x43e300
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.00419db1
add ebp, 0x88
mov esp, ebp
pop ebp
ret
Function at 0x407120
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ffc0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x439c3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x43e300]
xor edi, edi
cmp ecx, edi
jne 0x40716b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x407178
mov dword [ebp - 0x14], edi
jmp 0x407190
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x407236
mov ecx, dword [0x43e300]
mov eax, dword [ecx]
cmp eax, edi
je 0x407157
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x407157
mov dword [ebp - 4], edi
mov ebx, 0x43e300
call fcn.00407250
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x4071ce
mov dword [ebp - 0x18], 1
push 0x4371fc
lea eax, [ebp - 0x18]
push eax
call fcn.0041aa60
mov ecx, dword [0x43e300]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x4071e8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x4071fd
mov dword [ebp - 0x1c], 4
push 0x4371fc
lea edx, [ebp - 0x1c]
push edx
call fcn.0041aa60
mov dword [ebp - 4], 0xffffffff
jmp 0x407222
mov eax, dword [0x43e300]
mov eax, dword [eax]
test eax, eax
je 0x407234
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407250
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x40727d
xor ecx, ecx
jmp 0x407289
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x40733d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x4072b0
mov dword [esp + 0xc], esi
jmp 0x407310
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x407309
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4072fc
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x407310
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x407310
push 0x435498
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x407310
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x407333
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x4072a2
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x407351
mov ecx, dword [ebx]
add ecx, 8
call fcn.004074e0
test eax, eax
je 0x407351
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x407360
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x42ff9b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x439c3c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.00419dc0
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x4073f8
push 0x4371fc
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.0041aa60
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x407bc1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360Safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407c38
mov eax, dword [ebp + 8]
add eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push str.Path
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0041a94b
pop ecx
test eax, eax
je 0x407c3a
lea ecx, [esi + eax*2]
cmp word [ecx - 2], 0x5c
je 0x407c3a
push 0x5c
pop edx
mov word [ecx], dx
leave
ret
xor eax, eax
leave
ret

Function at 0x407dcb
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
in al, dx
sbb al, 2
add byte [eax], al
mov eax, dword fs:[0x30]
push esi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00407d2a
lea eax, [esp + 0x28]
mov dword [esp + 0x24], eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x114]
add eax, esi
push ecx
call eax
add esp, 0xc
pop esi
add esp, 0x21c
ret

Function at 0x4083e0
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x439c3c]
xor eax, ebp
mov dword [ebp + 0x19c], eax
push str.Global__Q360LogCenterMutex__
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x408496
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408496
push esi
push 0
push str.Q360LogCenterClass
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x408490
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [0x43d664]
lea eax, [ebp - 0x70]
push 0x104
push eax
call fcn.004082d5
and dword [ebp - 0x74], 0
lea eax, [ebp - 0x70]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push eax
push 0x3e8
push 1
lea eax, [ebp - 0x80]
push eax
push dword [section..data]
mov dword [ebp - 0x7c], 0x20c
push 0x4a
push esi
mov dword [ebp + 0x198], 0x48495053
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
xor eax, eax
inc eax
pop esi
jmp 0x408498
xor eax, eax
mov ecx, dword [ebp + 0x19c]
xor ecx, ebp
call fcn.00419db1
add ebp, 0x1a0
leave
ret

Function at 0x40881f
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8
Function at 0x408870
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x408881
push 0xd
pop eax
jmp 0x4088ae
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x408884
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x408de0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x439c3c]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.004087de
mov ebx, eax
cmp ebx, esi
je 0x408e50
lea ecx, [ebp - 0x70]
call fcn.00408769
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419db1
add ebp, 0x19c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x408e68
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.00408de0
cmp eax, esi
jne 0x408e9a
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call ebx
test eax, eax
je 0x408e58
lea ecx, [ebp - 0x70]
call fcn.00408769
push dword [ebp - 0x78]
mov ecx, edi
call fcn.0040870e
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00408769
mov eax, esi
jmp 0x408e36
Function at 0x40a3d5
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78c]
sub esp, 0x80c
mov eax, dword [0x439c3c]
xor eax, ebp
mov dword [ebp + 0x788], eax
push edi
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.00419dc0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.Path
xor edi, edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
inc edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40a482
push str.360ver.dll
lea eax, [ebp - 0x78]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a482
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0040962f
mov esi, eax
pop ecx
test esi, esi
je 0x40a481
push str.IsBetaVersion
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [ebp + 0x788]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00419db1
add ebp, 0x78c
leave
ret

Function at 0x40a49a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0041ae10
mov eax, dword [0x439c3c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00419dc0
add esp, 0xc
push 0x431b58
mov esi, 0x800
push esi
lea eax, [ebp - 0x1004]
push eax
call fcn.00408307
push edi
push esi
lea eax, [ebp - 0x1004]
push eax
call fcn.00408307
push 0x431b2c
push esi
lea eax, [ebp - 0x1004]
push eax
call fcn.00408307
push edi
push esi
lea eax, [ebp - 0x1004]
push eax
call fcn.00408307
push str.vL
push esi
lea eax, [ebp - 0x1004]
push eax
call fcn.00408307
push ebx
push esi
lea eax, [ebp - 0x1004]
push eax
call fcn.00408307
push 0x431ae8
push esi
lea eax, [ebp - 0x1004]
push eax
call fcn.00408307
push 0x14
push edi
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
cmp esi, 6
jne 0x40a59b
call fcn.00407ba4
test eax, eax
je 0x40a584
call fcn.0040a3d5
test eax, eax
je 0x40a584
push 5
xor eax, eax
push eax
push eax
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x40a58f
push 5
xor eax, eax
push eax
push eax
push str.http:__down.360safe.com_setup.exe
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp + 0x10], 0
je 0x40a5a8
push 0
call fcn.0041b6ce
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419db1
leave
ret
Function at 0x40a5b9
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.004095af
pop ecx
test eax, eax
je 0x40a5ce
xor eax, eax
inc eax
pop esi
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a5e9
push 1
push 0x439030
push esi
call fcn.0040a49a
add esp, 0xc
xor eax, eax
pop esi
ret
Function at 0x40b08a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x439c3c]
xor eax, ebp
mov dword [ebp + 0x394], eax
mov eax, dword [ebp + 0x3a0]
push ebx
mov ebx, dword [ebp + 0x3a8]
push esi
mov esi, dword [ebp + 0x3a4]
push edi
xor edi, edi
push 2
push edi
push eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x70], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x74], eax
cmp eax, edi
jne 0x40b0e5
call fcn.00408631
mov esi, eax
jmp 0x40b1ab
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x40b0fe
call fcn.00408631
jmp 0x40b1a0
push esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x40b0f4
push esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x40b15a
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x70], eax
je 0x40b131
lea ecx, [ebp - 0x70]
call fcn.00408d91
mov esi, 0x8007000e
lea ecx, [ebp - 0x78]
call fcn.00408cf6
mov ecx, dword [ebp + 0x394]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419db1
add ebp, 0x398
leave
ret 0x10
push eax
lea ecx, [ebp - 0x70]
call fcn.0040970e
cmp dword [ebp - 0x70], edi
jne 0x40b16f
mov esi, 0x8007000e
jmp 0x40b1a2
push esi
push dword [ebp - 0x70]
push esi
push ebx
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x40b0f4
mov edx, dword [ebp - 0x70]
push dword [ebp + 0x3ac]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x70]
lea ecx, [ebp - 0x80]
call fcn.0040a791
mov esi, eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x70], eax
je 0x40b136
lea ecx, [ebp - 0x70]
call fcn.00408d91
jmp 0x40b136