joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10084f10
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [0x100c51b8]
xor eax, esp
mov dword [esp + 0x4c], eax
lea edi, [esp + 0x34]
mov dword [esp + 8], edi
mov eax, dword [esp + 8]
xor esi, esi
mov dword [esp + 0x14], ecx
push esi
push edi
call fcn.100850f2
mov ecx, edi
call fcn.1000e86e
sub esp, 0x1c
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
movaps xmm0, xmmword [0x100b5890]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0xc], eax
mov ecx, 0x772f676a
lea edi, [esp + 0x1c]
mov dword [esp], eax
cmp ecx, 0x298abf5f
jle 0x10084f9f
cmp ecx, 0x4af46eec
jg 0x10085006
cmp ecx, 0x298abf60
je 0x1008503b
cmp ecx, 0x3b569a81
jne 0x10084f72
jmp 0x100850ca
cmp ecx, 0xd486a213
je 0x10085056
cmp ecx, 0xee51cb51
je 0x1008509c
cmp ecx, 0x1b1349c6
jne 0x10084f72
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
push 0
push ecx
push 0x10
push dword [esp + 0x70]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x18], 0x10
mov ecx, 0x298abf60
mov edx, 0x4af46eed
cmove ecx, edx
test eax, eax
mov eax, 0x298abf60
cmove ecx, eax
mov dword [esp], 0
jmp 0x10084f72
cmp ecx, 0x4af46eed
je 0x100850bb
cmp ecx, 0x772f676a
jne 0x10084f72
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
mov ecx, 0xee51cb51
mov eax, 0xd486a213
cmove ecx, eax
mov ebp, dword [esp + 0xc]
jmp 0x10084f72
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, 0x3b569a81
mov ebx, dword [esp]
jmp 0x10084f72
mov ecx, dword [esp + 0x14]
push 1
push edi
call fcn.100850f2
mov ecx, edi
call fcn.1000e86e
sub esp, 0x1c
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
movaps xmm0, xmmword [0x100b5890]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
mov ecx, edi
call fcn.1000e7f4
mov ecx, 0xee51cb51
jmp 0x10084f72
mov dword [esp + 4], ebp
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
mov ecx, 0x1b1349c6
mov eax, 0x3b569a81
cmove ecx, eax
xor ebx, ebx
jmp 0x10084f72
mov al, 1
mov dword [esp], eax
mov ecx, 0x298abf60
jmp 0x10084f72
lea ecx, [esp + 0x34]
call fcn.1000e7f4
mov eax, dword [esp + 8]
and bl, 1
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.100879aa
mov eax, ebx
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x1009c521
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100c51b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x100c1154
push esi
call fcn.100a8fef
pop ecx
pop ecx
test eax, eax
jne 0x1009c54f
xor al, al
jmp 0x1009c5cc
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.1009c2b2
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1009c589
push dword [ebp - 0x210]
call fcn.1009e2e3
xor al, al
jmp 0x1009c5ca
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1009c58f
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1009c5af
push edx
call fcn.1009c472
pop ecx
test al, al
je 0x1009c57a
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1009c5bd
mov bl, 1
push dword [ebp - 0x210]
call fcn.1009e2e3
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100879aa
leave
ret

Function at 0x100a3f8d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100b8188
push 0x100b8180
push str.FlsAlloc
push 0x1e
call fcn.100a4440
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a3fc1
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x100a3fc7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100a400b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100b8198
push 0x100b8190
push str.FlsGetValue
push 0x20
call fcn.100a4440
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a4042
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100a83fc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100a8499
push ebx
push esi
call fcn.100a84ea
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100a1e03
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100a8446
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a8498
push edi
push eax
call fcn.100a1d39
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100a8466
call fcn.100a1cff
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a8497
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100a1e03
add esp, 0x20
test eax, eax
jne 0x100a8485
push edi
call fcn.100a1cff
jmp 0x100a848d
push ebx
call fcn.100a1cff
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100a849c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100a84ad
pop esi
ret
push ebx
push edi
push esi
call fcn.100a84ea
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100a1d39
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100a84d5
push ebx
push esi
push edi
call fcn.1008ba80
add esp, 0xc
push 0
call fcn.100a1cff
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100a8521
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a852c
Function at 0x100aa7f2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100c7128]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100aa832
cmp byte [ebx], 0xa
jne 0x100aa832
or byte [eax + edi + 0x28], 4
jmp 0x100aa837
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100aa935
mov al, byte [edx]
cmp al, 0x1a
je 0x100aa917
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100aa866
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100aa88b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100aa895
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x100aa848
jmp 0x100aa935
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100aa912
cmp dword [ebp - 0xc], 0
je 0x100aa912
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100c7128]
test byte [eax + edi + 0x28], 0x48
je 0x100aa8ec
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100aa8d7
mov byte [esi], dl
jmp 0x100aa8e8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100c7128]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100aa935
cmp byte [ebp - 1], 0xa
jne 0x100aa8fb
cmp esi, ebx
jne 0x100aa8fb
mov byte [esi], 0xa
jmp 0x100aa934
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100b2c15
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100aa935
mov byte [esi], 0xd
jmp 0x100aa934
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100c7128]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100aa931
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100aa935
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100aa93e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x100c7128]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100aa981
cmp word [esi], dx
jne 0x100aa981
or byte [edi + eax + 0x28], 4
jmp 0x100aa986
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x100aaad9
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x100aaab9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100aa9c8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100aa9fe
cmp eax, edx
jae 0x100aaa0a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x100aa9a0
jmp 0x100aaad9
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100aaab5
cmp dword [ebp - 0x14], 0
je 0x100aaab5
mov eax, dword [ebx*4 + 0x100c7128]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100aaa8d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100aaa56
mov word [esi], cx
jmp 0x100aaa89
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100c7128]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100c7128]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100c7128]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x100aaad9
pop ebx
cmp word [ebp - 4], bx
jne 0x100aaa9e
cmp esi, dword [ebp + 0xc]
jne 0x100aaa9e
mov word [esi], bx
jmp 0x100aaad6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100b2c15
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100aaad9
push 0xd
jmp 0x100aaad2
mov ecx, dword [ebx*4 + 0x100c7128]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100aaad0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100aaad9
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x100aaae6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100aaaf1
Function at 0x100b3859
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100b39fc
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100b39d1
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100b39d1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100b3980
jg 0x100b38b2
test eax, eax
je 0x100b3976
push 1
push 0x1000
call fcn.100a5117
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100b38d8
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100b396d
push 0x8000
push ebx
call fcn.100b3753
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100b3904
jg 0x100b38ff
cmp ecx, 0x1000
jb 0x100b3904
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100ab6ab
add esp, 0x10
cmp eax, 0xffffffff
je 0x100b3949
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100b38ff
jl 0x100b3930
test ecx, ecx
jne 0x100b38f1
push dword [ebp - 0xc]
push ebx
call fcn.100b3753
push esi
call fcn.100a1cff
add esp, 0xc
xor edi, edi
jmp 0x100b39e2
cmp byte [edi + 0x24], 0
je 0x100b3960
cmp dword [edi + 0x20], 5
jne 0x100b3960
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100b396b
mov edi, dword [edi + 0x18]
jmp 0x100b396d
xor edi, edi
push esi
call fcn.100a1cff
pop ecx
jmp 0x100b39e2
test ecx, ecx
jg 0x100b3942
jl 0x100b3980
test eax, eax
jae 0x100b3942
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100b2c15
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100b39a3
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100b3942
jmp 0x100b39da
push ebx
call fcn.100a903d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100b3942
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100b39e2
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100b39df
mov edi, dword [edi + 0x18]
jmp 0x100b39e2
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100b2c15
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001320
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x1002b1c0]
xor eax, esp
mov dword [esp + 0x210], eax
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0xc], 0
call fcn.1000de50
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 8]
push eax
push str.Path
push 0x100272e0
push 0x80000002
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push esi
lea ecx, [esp + 0xc]
call fcn.10002b80
mov ecx, dword [esp + 0x210]
xor ecx, esp
mov eax, esi
call fcn.1000c9db
add esp, 0x214
ret
Function at 0x10002780
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 0x10002797
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100027c8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x100027c4
cmp esi, eax
jae 0x100027c8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x100027b4
cmp esi, eax
jb 0x100027ce
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 0x10002e30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x1002b1c0]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [0x1002d470]
test eax, eax
jne 0x10002ef4
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.1000de50
add esp, 0xc
push str.BApi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10002e89
push 0x104
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [esp + 8], 0
jne 0x10002edd
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.10001150
mov esi, eax
lea eax, [esp + 0xc]
call fcn.10002c30
mov dword [0x1002d470], eax
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.1000c9db
add esp, 0x214
ret
Function at 0x100031c0
Capabilities:
Find taskbar
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x1002b1c0]
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.1000de50
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 0x10003234
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 0x1000325b
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x1000325b
lea ecx, [esp + 0x10]
push ecx
push eax
call ebp
test eax, eax
jne 0x100032b8
push 0
push str.Shell_TrayWnd
call ebx
test eax, eax
jne 0x10003277
push 0x2710
inc esi
call edi
cmp esi, 0x1e
jb 0x10003240
jmp 0x100032b8
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 0x100032b8
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 0x100032cb
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x214]
mov eax, dword [esp]
xor ecx, esp
call fcn.1000c9db
add esp, 0x218
ret
Function at 0x10004040
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x1001b995
mov eax, dword fs:[0]
push eax
push ebp
push esi
mov eax, dword [0x1002b1c0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x20]
push 0x1002d6d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x14], 0
mov eax, dword [0x1002d468]
test eax, eax
jne 0x1000408e
call fcn.10001150
mov dword [0x1002d468], eax
cmp dword [eax + 0x11c], 0
je 0x100040b0
mov eax, dword [eax + 0x110]
test eax, eax
je 0x100040b0
mov ecx, dword [esp + 0x1c]
push esi
push edi
push ebx
push 0
push ebp
push ecx
call eax
jmp 0x100040c1
mov edx, dword [esp + 0x1c]
push esi
push edi
push ebx
push 0
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1002d6d8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0xc
ret 8

Function at 0x10004230
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 0x1000429e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x1000426f
cmp eax, 2
jne 0x1000428a
mov eax, dword [esp]
test esi, esi
je 0x10004298
test eax, eax
je 0x10004293
test al, 1
jne 0x1000428a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x10004298
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 0x100042b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x1001bb4b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c0
mov eax, dword [0x1002b1c0]
xor eax, esp
mov dword [esp + 0x8bc], eax
push ebp
push esi
push edi
mov eax, dword [0x1002b1c0]
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.1000de50
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.1000de50
add esp, 0xc
lea eax, [esp + 0x2b4]
lea edx, [esp + 0x4bc]
call fcn.10002620
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 0x100043a8
push ebx
lea ecx, [esp + 0x2b8]
call fcn.10002b80
jmp 0x100044ef
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xb6]
push eax
mov word [esp + 0xb8], dx
call fcn.1000de50
add esp, 0xc
lea eax, [esp + 0x2b4]
lea edx, [esp + 0xac]
call fcn.10002620
push str...360Safe.exe
lea ecx, [esp + 0xb0]
push ecx
call esi
lea edx, [esp + 0xac]
push edx
call edi
test eax, eax
je 0x10004414
lea eax, [esp + 0xac]
push eax
call ebp
push ebx
lea ecx, [esp + 0xb0]
call fcn.10002b80
jmp 0x100044ef
mov edx, dword [0x100277bc]
mov ax, word [0x100277c0]
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 0x100044d9
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.1000de50
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.10004230
test eax, eax
jne 0x100044d7
push ebx
mov ecx, esi
call fcn.10002b80
test ebp, ebp
jmp 0x100044e6
xor esi, esi
push ebx
mov ecx, 0x100279ec
call fcn.10002b80
cmp ebp, esi
je 0x100044ef
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.1000c9db
add esp, 0x8cc
ret
Function at 0x10005b70
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x1002b1c0]
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.10009a00
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.10009aa0
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.1000c9db
add esp, 0x68
ret