joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401584
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x25c
lea ebx, [esp + 0x52]
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edx
push edx
test eax, eax
je 0x4016fe
lea esi, [esp + 0x157]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x403000
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
je 0x4016fe
mov dword [esp], esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call edi
push ecx
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
mov byte [esp + eax + 0x154], 0
mov dword [esp + 8], esi
mov dword [esp + 4], str._sps1
mov dword [esp], ebx
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
call ebp
mov dword [esp], ebx
call fcn.00401411
test al, al
jne 0x4016fe
mov dword [esp + 0x16], 0x3c
mov dword [esp + 0x2e], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x32], 1
mov dword [esp + 0x1a], 0x40
mov dword [esp + 0x22], str.runas
mov dword [esp + 8], ebx
mov dword [esp + 4], str.__ExecutionPolicy_Bypass__f___s_
mov dword [esp], esi
call ebp
mov dword [esp + 0x26], str.powershell
mov dword [esp + 0x2a], esi
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push edx
test eax, eax
je 0x4016f8
lea eax, [esp + 0x16]
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push ebp
test eax, eax
je 0x4016c1
mov dword [esp + 4], 0xffffffff
mov eax, dword [esp + 0x4e]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
push ecx
mov eax, dword [esp + 0x4e]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
jmp 0x4016ea
mov dword [esp + 0xc], 0x1010
mov eax, dword [0x402004]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40303c
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
push edx
mov dword [esp], ebx
call edi
push eax
add esp, 0x25c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401709
Capabilities:
Accept command line arguments
Check mutex and terminate process on windows
Check mutex on windows
Check os version
Create process on windows
Terminate process

Disassembly:
push edi
push esi
push ebx
sub esp, 0x130
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push esi
push esi
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_ExitProcess]
je 0x4017a2
mov ebx, eax
mov dword [esp + 8], str.Iyi_GdmqSUcD
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
mov dword [0x435278], eax
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x4017ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4017c6
mov dword [esp + 0xc], 0x1010
mov eax, dword [0x402004]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40306e
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
mov dword [esp], ebx
call edi
push ebx
mov dword [esp], 0
call esi
mov dword [esp + 0xc], 0x1010
mov eax, dword [0x402004]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40309f
jmp 0x40178c
mov dword [esp + 0x1c], 0x114
lea eax, [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
push ecx
cmp dword [esp + 0x20], 9
ja 0x401811
mov dword [esp + 0xc], 0x1010
mov eax, dword [0x402004]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4030b9
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
jmp 0x4018b2
cmp dword [esp + 0x18], 2
jg 0x4018b2
call fcn.00401000
test eax, eax
je 0x40184e
cmp dword [esp + 0x18], 2
jne 0x40184e
mov eax, dword [section..data]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
push edx
push edx
test eax, eax
jne 0x4018b2
call fcn.00401584
jmp 0x4018b2
mov dword [esp + 0xc], 0x1134
mov dword [esp + 8], 0x4030e6
mov dword [esp + 4], 0x4030f0
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
cmp eax, 6
jne 0x4018b2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov eax, dword [section..data]
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x403116
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
sub esp, 0x18
mov eax, dword [0x435278]
test eax, eax
je 0x40179c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
jmp 0x40179c
Function at 0x402ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402f68
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f48
xor eax, eax
push ebp
push 0x402f41
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402f84
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f48
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403834
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x574044], 0
je 0x403895
cmp word [0x574218], 0xd7b2
jne 0x40385d
cmp dword [0x574220], 0
jbe 0x40385d
mov eax, 0x574214
call dword [0x574230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40905c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4038bc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409020], 0
jne 0x4038b1
push 0
push 0x409054
push 0x40905c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4046d8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40473e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403c00
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ac4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404728
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404745
lea eax, [ebp - 0x10]
call fcn.004039b8
ret

Function at 0x405934
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403d88
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40594d
test al, 0x10
jne 0x405951
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4065a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4065e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403aa8
jmp 0x4065ea
mov eax, ebx
mov edx, esi
call fcn.00403a0c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4065f4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406615
mov al, byte [esp]
jmp 0x406617
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406cac
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406b14
mov eax, dword [0x573704]
cmp byte [eax], 0
je 0x406d28
mov eax, dword [0x573660]
call fcn.00402a40
call fcn.00402968
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405a7c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406d70
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406d5e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x573640]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x574660]
call fcn.004040a8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x408540
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x408500
call fcn.00404950
xor eax, eax
push ebp
push 0x40860c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x408620
call fcn.00405934
test al, al
jne 0x408576
mov eax, 0x408620
call fcn.00405a60
mov edx, 0x409294
mov eax, 0x574798
mov ecx, 0xda2a8
call fcn.00403aa8
mov edx, dword [0x574798]
mov eax, 0x408630
call fcn.00408324
mov edx, 0x4e353c
mov eax, 0x574798
mov ecx, 0x9006c
call fcn.00403aa8
mov edx, dword [0x574798]
mov eax, 0x40864c
call fcn.00408324
mov edx, 0x5735a8
mov eax, 0x574798
mov ecx, 0x4c
call fcn.00403aa8
mov edx, dword [0x574798]
mov eax, 0x408668
call fcn.00408324
mov edx, 0x40864c
mov eax, 0x408630
call fcn.004083a4
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408613
ret
Function at 0x6e1c1f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6e1c1f5b
cmp byte [esi + ebx - 1], 0xa
je 0x6e1c1f2f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6e1c6084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x6e1c24b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x6e1c6094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x6e1c2670
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x6e1c6094]
movzx eax, al
bt eax, esi
jae 0x6e1c26d0
mov ecx, dword [0x6e1c6084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x6e1c2576
test byte [0x6e1c3030], 8
jne 0x6e1c2610
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x6e1c3040], 8
jne 0x6e1c25c0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x6e1c2545
cmp esi, 3
jbe 0x6e1c2580
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x6e1c51c0]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x6e1c2545
mov ecx, dword [0x6e1c6094]
test ecx, ecx
je 0x6e1c26b0
mov dword [esp], 0x6e1c3040
call dword [0x6e1c6094]
test al, 8
je 0x6e1c251c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x6e1c251c
mov ebx, dword [0x6e1c6094]
test ebx, ebx
je 0x6e1c2690
mov dword [esp], 0x6e1c3030
call dword [0x6e1c6094]
test al, 8
je 0x6e1c2509
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x6e1c250f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x6e1c6094
call sym._load_func.part.0
jmp 0x6e1c24d0
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x6e1c6094
call sym._load_func.part.0
jmp 0x6e1c261a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x6e1c6094
call sym._load_func.part.0
jmp 0x6e1c25ce
mov eax, 0xffffffff
jmp 0x6e1c2576
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x12a1944
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x488c6ce8
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x100027a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100027b7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100027e8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x100027e4
cmp esi, eax
jae 0x100027e8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x100027d4
cmp esi, eax
jb 0x100027ee
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x10002f10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x100381b0]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [0x1003a498]
test eax, eax
jne 0x10002fd4
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.1000e5b0
add esp, 0xc
push str.BApi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10002f69
push 0x104
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [esp + 8], 0
jne 0x10002fbd
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push edx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push 0x80000002
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x207
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.deepscan_bapi.dll
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call fcn.10001420
mov esi, eax
lea eax, [esp + 0xc]
call fcn.10002d10
mov dword [0x1003a498], eax
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.1000d17f
add esp, 0x214
ret
Function at 0x100032c0
Capabilities:
Find taskbar
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x100381b0]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x208
lea eax, [esp + 0x20]
push esi
push eax
mov dword [esp + 0x1c], esi
call fcn.1000e5b0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.Wtsapi32.dll
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebp, ebp
mov dword [esp + 0x18], eax
cmp eax, esi
je 0x10003334
push str.WTSQueryUserToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
mov ebx, dword [sym.imp.USER32.dll_FindWindowW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test ebp, ebp
je 0x1000335b
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x1000335b
lea ecx, [esp + 0x10]
push ecx
push eax
call ebp
test eax, eax
jne 0x100033b8
push 0
push str.Shell_TrayWnd
call ebx
test eax, eax
jne 0x10003377
push 0x2710
inc esi
call edi
cmp esi, 0x1e
jb 0x10003340
jmp 0x100033b8
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], 0xffffffff
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x14]
push eax
push 0
push 0x80000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100033b8
lea ecx, [esp + 0x10]
push ecx
push 0xb
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x100033cb
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x214]
mov eax, dword [esp]
xor ecx, esp
call fcn.1000d17f
add esp, 0x218
ret
Function at 0x100040d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x1001c165
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x100381b0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, ecx
push 0x1003a708
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x10], 0
mov eax, dword [0x1003a490]
test eax, eax
jne 0x10004119
call fcn.10001420
mov dword [0x1003a490], eax
cmp dword [eax + 0x11c], 0
je 0x1000413c
mov eax, dword [eax + 0x110]
test eax, eax
je 0x1000413c
push esi
push edi
push 2
push 0
push str.ServiceDll
push ebx
call eax
jmp 0x1000414e
push esi
push edi
push 2
push 0
push str.ServiceDll
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1003a708
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret

Function at 0x10004360
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100043ce
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x1000439f
cmp eax, 2
jne 0x100043ba
mov eax, dword [esp]
test esi, esi
je 0x100043c8
test eax, eax
je 0x100043c3
test al, 1
jne 0x100043ba
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x100043c8
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x100043e0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x1001c35b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c0
mov eax, dword [0x100381b0]
xor eax, esp
mov dword [esp + 0x8bc], eax
push ebp
push esi
push edi
mov eax, dword [0x100381b0]
xor eax, esp
push eax
lea eax, [esp + 0x8d0]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x2be]
mov dword [esp + 0x1c], 0
push ecx
mov word [esp + 0x2c0], ax
call fcn.1000e5b0
add esp, 0xc
push 0x104
lea edx, [esp + 0x2b8]
push edx
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x2b4]
push eax
call ebp
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x4c6]
push edx
mov word [esp + 0x4c8], cx
call fcn.1000e5b0
add esp, 0xc
lea eax, [esp + 0x2b4]
lea edx, [esp + 0x4bc]
call fcn.100026c0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.360Safe.exe
lea eax, [esp + 0x4c0]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x4bc]
push ecx
call edi
test eax, eax
je 0x100044d8
push ebx
lea ecx, [esp + 0x2b8]
call fcn.10002be0
jmp 0x1000461f
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xb6]
push eax
mov word [esp + 0xb8], dx
call fcn.1000e5b0
add esp, 0xc
lea eax, [esp + 0x2b4]
lea edx, [esp + 0xac]
call fcn.100026c0
push str...360Safe.exe
lea ecx, [esp + 0xb0]
push ecx
call esi
lea edx, [esp + 0xac]
push edx
call edi
test eax, eax
je 0x10004544
lea eax, [esp + 0xac]
push eax
call ebp
push ebx
lea ecx, [esp + 0xb0]
call fcn.10002be0
jmp 0x1000461f
mov edx, dword [0x10034648]
mov ax, word [0x1003464c]
mov ecx, 0x20
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [str.Path]
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov word [esp + 0x28], ax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push esi
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x8e8], esi
push 0x80000002
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10004609
mov ebp, dword [esp + 0x14]
push 0x206
lea ecx, [esp + 0x6ca]
xor eax, eax
push esi
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], esi
mov word [esp + 0x6d0], ax
call fcn.1000e5b0
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
lea edi, [esp + 0x1c]
lea esi, [esp + 0x6cc]
mov dword [esp + 0x1c], 0x104
call fcn.10004360
test eax, eax
jne 0x10004607
push ebx
mov ecx, esi
call fcn.10002be0
test ebp, ebp
jmp 0x10004616
xor esi, esi
push ebx
mov ecx, 0x10034608
call fcn.10002be0
cmp ebp, esi
je 0x1000461f
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [esp + 0x8d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x8bc]
xor ecx, esp
call fcn.1000d17f
add esp, 0x8cc
ret
Function at 0x10006380
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x100381b0]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.1000a210
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.1000a2b0
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.1000d17f
add esp, 0x68
ret