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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x10076044
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100130e0
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x10076065
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x10076067
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x100760ef
jg 0x1007607a
test esi, esi
je 0x100760ef
test ecx, ecx
jl 0x100760bc
jg 0x10076084
test eax, eax
je 0x100760bc
cmp ebx, ecx
jg 0x10076096
jl 0x1007608e
cmp esi, eax
jae 0x10076096
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x100760c2
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x100760ef
jg 0x100760cc
test esi, esi
je 0x100760ef
cmp dword [edi + 0x4c], 0
je 0x100760ef
mov ecx, edi
call fcn.10075220
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call sub.msvcrt.dll_fread
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10079b50
Capabilities:
Get common file path
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
add ebx, 0x90
push edi
mov dword [ebp - 0x428], esi
mov edi, dword [esi]
add edi, 0xc0
cmp dword [ebx + 4], 0
jne 0x10079c9d
mov eax, dword [0x1025b450]
cmp eax, 0xffffffff
je 0x10079bf0
cmp dword [0x1025b454], 0xffffffff
je 0x10079bf0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x10079bf2
mov eax, dword [0x1025b458]
test eax, eax
je 0x10079bf2
lea ecx, [ebp - 0x420]
push ecx
call eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push dword [0x1025b450]
call esi
push dword [ebp - 0x420]
push dword [0x1025b454]
call esi
mov esi, dword [ebp - 0x424]
jmp 0x10079bf2
xor esi, esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10079c4d
lea eax, [ebx + 8]
push eax
push ebx
push 0x100
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1008e2e0
add esp, 0x14
push 0
push 0x19
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10079c7f
lea eax, [ebx + 8]
push eax
push ebx
push 0x100
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.1008e2e0
add esp, 0x14
push esi
mov ecx, 0x1025b450
call fcn.10008cd0
cmp dword [ebx + 4], 0
jne 0x10079c97
xor bl, bl
jmp 0x10079d40
mov esi, dword [ebp - 0x428]
test edi, edi
je 0x10079ca8
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea eax, [ebp - 0x41c]
mov ecx, edi
push eax
call fcn.1007ee90
cmp dword [ebp - 0x418], 0
je 0x10079ceb
push dword [ebp + 8]
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x41c]
push 0x100
push eax
call fcn.10096370
test al, al
jne 0x10079cdf
xor bl, bl
jmp 0x10079ced
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x418]
add dword [ecx + 0x1c], eax
mov bl, 1
mov esi, dword [ebp - 0x41c]
lea ecx, [ebp - 0x41c]
push dword [esi + 4]
call fcn.100291c0
mov eax, dword [ebp - 0x41c]
push 0x40
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x41c]
mov dword [eax], esi
mov eax, dword [ebp - 0x41c]
mov dword [eax + 8], esi
push dword [ebp - 0x41c]
mov dword [ebp - 0x418], 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
test edi, edi
je 0x10079d40
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10079d68
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10079d68
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10079d68
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8
Function at 0x100839a0
Capabilities:
Get common file path
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 4], 0
je 0x100839cd
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1025b450]
push esi
cmp eax, 0xffffffff
je 0x10083a2f
cmp dword [0x1025b454], 0xffffffff
je 0x10083a2f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x214], esi
test esi, esi
jne 0x10083a39
mov eax, dword [0x1025b458]
test eax, eax
je 0x10083a39
lea ecx, [ebp - 0x210]
push ecx
call eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push dword [0x1025b450]
call esi
push dword [ebp - 0x210]
push dword [0x1025b454]
call esi
jmp 0x10083a39
mov dword [ebp - 0x214], 0
call fcn.100ddff0
test eax, eax
je 0x10083a84
push 1
call fcn.100db7b0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10002a60
lea esi, [eax + 0x10]
lea eax, [ebx + 8]
push eax
push ebx
push 0x400
push 0
push esi
call fcn.1008e2e0
add esp, 0x1c
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10083a84
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call fcn.100de050
test eax, eax
je 0x10083ae0
xor eax, eax
lea edi, [ebp - 0x20c]
push eax
mov ecx, 0x82
rep stosd dword es:[edi], eax
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10083ae0
push str.MicrosoftWindowsStart_MenuProgramsAccessories_
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebx + 8]
push eax
push ebx
push 0x400
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1008e2e0
add esp, 0x14
xor eax, eax
lea edi, [ebp - 0x20c]
push eax
mov ecx, 0x82
lea esi, [ebx + 8]
rep stosd dword es:[edi], eax
push 0xb
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10083b20
push esi
push ebx
push 0x400
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.1008e2e0
add esp, 0x14
xor eax, eax
lea edi, [ebp - 0x20c]
push eax
mov ecx, 0x82
rep stosd dword es:[edi], eax
push 0x16
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
pop edi
test eax, eax
je 0x10083b5e
push esi
push ebx
push 0x400
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.1008e2e0
add esp, 0x14
push dword [ebp - 0x214]
mov ecx, 0x1025b450
call fcn.10008cd0
cmp dword [ebx + 4], 0
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x10093490
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.100db670
mov eax, dword [ebp - 0x210]
mov esi, str.360safe.exe
sub esi, eax
push 0xc
push str.360safe.exe
mov ebx, dword [eax - 0xc]
sar esi, 1
call fcn.101e6fd0
mov dword [ebp - 0x214], eax
mov edx, 1
add esp, 0xc
lea edi, [ebx + eax]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x1009350e
push edi
lea ecx, [ebp - 0x210]
call fcn.10003310
mov eax, dword [ebp - 0x210]
lea ecx, [eax + esi*2]
cmp esi, ebx
jbe 0x1009351a
mov ecx, str.360safe.exe
mov edx, dword [ebp - 0x214]
lea eax, [eax + ebx*2]
push edx
push ecx
push edx
push eax
call fcn.10008010
mov eax, dword [ebp - 0x210]
xor ecx, ecx
push 0x208
push ecx
mov dword [eax - 0xc], edi
mov eax, dword [ebp - 0x210]
mov word [eax + edi*2], cx
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_memset
mov edi, dword [ebp - 0x210]
add esp, 0x1c
test edi, edi
je 0x100935c0
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10093576
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xe
call fcn.10003680
add esp, 4
push edi
test eax, eax
je 0x10093589
call eax
jmp 0x1009358f
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test esi, esi
je 0x1009359c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0xffffffff
je 0x100935c0
test bl, 0x10
jne 0x100935c0
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.10174d60
add esp, 0xc
mov esi, dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.10002490
mov eax, dword [ebp - 0x210]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100935f2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x1009cdd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push 0x208
push 0
lea eax, [edi + 0x414]
mov dword [edi], vtable.CEasyClsid.0
push eax
call sub.msvcrt.dll_memset
push 0x410
lea ebx, [edi + 0x61c]
push 0
push ebx
call sub.msvcrt.dll_memset
push 0x410
lea eax, [edi + 4]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x208
lea eax, [edi + 0xa2c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x30
mov dword [edi + 0xc34], 0
push 0x104
push esi
lea esi, [edi + 0x414]
push esi
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push esi
call fcn.100ded30
add esp, 4
test eax, eax
je 0x1009cff9
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
push esi
push str.CLSID_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1000aa70
push 0x200
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call fcn.10176c90
add esp, 0x28
test eax, eax
je 0x1009cff9
push 0x20019
push 0x410
push ebx
push 1
push 0x10202940
lea eax, [ebp - 0x20c]
mov dword [edi + 0xc34], 1
push eax
push SysReAllocString
call fcn.10176900
add esp, 0x1c
push 0x10202940
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1009ceff
push ebx
call fcn.100dedb0
add esp, 4
mov edx, 0x104
lea eax, [ebp - 0x20c]
lea ebx, [ebx]
cmp word [eax], 0
je 0x1009cf1e
add eax, 2
sub edx, 1
jne 0x1009cf10
mov ecx, 0x104
mov esi, edx
mov eax, ecx
sub eax, edx
neg esi
sbb esi, esi
and esi, eax
test edx, edx
je 0x1009cf77
lea eax, [ebp - 0x20c]
lea eax, [eax + esi*2]
sub ecx, esi
je 0x1009cf6f
mov ebx, str.InprocServer32
mov edx, SysReAllocString
sub ebx, eax
lea esp, [esp]
test edx, edx
je 0x1009cf6b
movzx esi, word [ebx + eax]
test si, si
je 0x1009cf6b
mov word [eax], si
dec edx
add eax, 2
sub ecx, 1
jne 0x1009cf50
jmp 0x1009cf6f
test ecx, ecx
jne 0x1009cf72
sub eax, 2
xor ecx, ecx
mov word [eax], cx
push 0x20019
push 0x410
lea ebx, [edi + 4]
push ebx
push 1
push 0x10202940
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call fcn.10176900
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x28
lea eax, [ebp - 0x414]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x104
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
cmp word [edi + 6], 0x3a
je 0x1009cff9
push 0
push ebx
push 0x104
push 0
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
Function at 0x1009dfd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.101b13a0
add esp, 8
test eax, eax
jne 0x1009e1a8
cmp dword [0x1023c00c], eax
je 0x1009e16c
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push str.360Base.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x1009e046
mov eax, dword [0x10257d10]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...360Base.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [0x1024e9f8], 0
jne 0x1009e12e
push 0x1024e9e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1024e9f8], 0
jne 0x1009e123
lea eax, [ebp - 0x210]
push eax
call fcn.101b1420
mov edi, eax
add esp, 4
mov ebx, 0x80004005
test edi, edi
je 0x1009e101
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitLibs
push edi
call esi
push str.CreateObject
push edi
mov dword [ebp - 0x214], eax
call esi
mov ecx, dword [ebp - 0x214]
mov dword [0x1024e5d8], eax
test ecx, ecx
je 0x1009e15e
push 0x1024e5dc
mov dword [0x1024e5dc], 0x100
call ecx
mov ebx, eax
test ebx, ebx
je 0x1009e164
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1024e5d4], 0
mov edi, dword [ebp - 0x21c]
xor eax, eax
test ebx, ebx
mov dword [0x1024e9f8], 1
mov ebx, dword [ebp - 0x218]
sete al
mov dword [0x1024e9fc], eax
push 0x1024e9e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x1024e9fc]
test esi, esi
jne 0x1009e14e
push 1
lea eax, [ebp - 0x210]
push 0x1023fe08
push eax
call fcn.1001ac50
add esp, 0xc
mov dword [0x1023c00c], 0
test esi, esi
jne 0x1009e16c
jmp 0x1009e17f
test eax, eax
je 0x1009e0f0
xor ebx, ebx
mov dword [0x1024e5d4], edi
jmp 0x1009e101
push 0
push edi
mov ecx, 0x1024e5d0
call fcn.101b1210
mov esi, eax
test esi, esi
jne 0x1009e1a8
push 1
push 0x1023fe08
push edi
call fcn.1001ac50
add esp, 0xc
test esi, esi
jne 0x1009e1a8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
Function at 0x1009e260
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1009e337
test esi, esi
je 0x1009e337
cmp word [edi + 4], 0
lea eax, [edi + 4]
je 0x1009e337
push eax
push 0xffffffffffffffff
push esi
push ecx
mov ecx, edi
call fcn.1009e230
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 0xffffffff
jne 0x1009e33a
mov edi, dword [edi + 0x414]
test edi, edi
je 0x1009e337
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [edi]
lea ecx, [ebp - 0x20c]
add esp, 0xc
push 0x104
push ecx
push esi
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x1009e337
push 0x10206d1c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
lea eax, [ebp - 0x20c]
push eax
jne 0x1009e31f
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
pop edi
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100a0210
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x18]
test esi, esi
je 0x100a0223
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x100a023c
push edi
push eax
push 0x100a02e0
call sub.msvcrt.dll__beginthread
add esp, 0xc
mov dword [edi + 0x10], eax
xor ebx, ebx
test eax, eax
setne bl
test esi, esi
je 0x100a024e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x100a0f80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10257d6c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x620], esi
test al, 1
jne 0x100a0fca
or eax, 1
mov ecx, 0x10257d68
push 0x10202940
mov dword [0x10257d6c], eax
call fcn.10002490
push 0x10200d30
call fcn.101c8090
add esp, 4
cmp dword [0x10240798], 0
je 0x100a111f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x10257d50
call edi
cmp dword [0x10240798], 0
je 0x100a1113
push 0x410
lea eax, [ebp - 0x61c]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x20019
push 0x410
lea eax, [ebp - 0x61c]
push eax
push 1
push 0x10202940
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10176900
add esp, 0x28
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100a1041
push esi
call edi
push 0x1f
call fcn.10003680
add esp, 4
test eax, eax
je 0x100a105a
lea ecx, [ebp - 0x61c]
push ecx
call eax
jmp 0x100a1067
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
test esi, esi
je 0x100a1074
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x100a1103
lea eax, [ebp - 0x61c]
push eax
call fcn.100a1350
add esp, 4
test eax, eax
je 0x100a1103
push str..._safemonwdres.dll
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x61c]
push eax
push str.res:__
push 0x10205358
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1000aa70
lea edx, [ebp - 0x20c]
add esp, 0x20
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100a10e2
sub edx, esi
lea eax, [ebp - 0x20c]
sar edx, 1
mov ecx, 0x10257d68
push edx
push eax
call fcn.10003740
mov esi, dword [ebp - 0x620]
mov dword [0x10240798], 0
push 0x10257d50
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov ecx, dword [0x10257d68]
add ecx, 0xfffffff0
push ecx
call fcn.10002a60
mov ecx, dword [ebp - 4]
add esp, 4
add eax, 0x10
xor ecx, ebp
mov dword [esi], eax
mov eax, esi
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
Function at 0x100a9850
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x100a99b1
cmp dword [eax + 4], 0
je 0x100a99b1
push esi
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x25]
push edi
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.100a4ba0
mov edx, dword [ebp - 0x34]
mov ecx, edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a98a7
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x24]
call fcn.10006fc0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.10027230
mov ecx, dword [ebp - 0x30]
lea esi, [ebx + 0x30]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x28]
lea edi, [esi + 0x18]
mov ecx, dword [edi + 8]
inc eax
cmp ecx, eax
ja 0x100a9909
push 1
mov ecx, edi
call fcn.100a9cb0
mov ecx, dword [edi + 8]
lea eax, [ecx - 1]
and dword [edi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 8]
add ecx, dword [edi + 0xc]
dec eax
and ecx, eax
mov eax, dword [edi + 4]
cmp dword [eax + ecx*4], 0
lea esi, [ecx*4]
jne 0x100a993e
push 0x20
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [edi + 4]
add esp, 4
mov dword [esi + ecx], eax
mov eax, dword [edi + 4]
mov esi, dword [esi + eax]
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.1000b980
lea eax, [ebp - 0x25]
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [esi + 0x18]
call fcn.100a4ba0
inc dword [edi + 0x10]
lea eax, [ebx + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x24]
call fcn.100a6740
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
push eax
push dword [eax]
lea eax, [ebp - 0x38]
push eax
call fcn.1002ace0
push 0x74
push dword [ebp - 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
cmp dword [ebx + 0x5c], 0
pop edi
pop esi
jne 0x100a99b1
push 0
push 0
push ebx
push 0x100aa520
push 0
push 0
call sub.msvcrt.dll__beginthreadex
add esp, 0x18
mov dword [ebx + 0x5c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8
Function at 0x100aadc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
cmp byte [esi + 0x75], 0
je 0x100aadd6
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 8]
push eax
lea ecx, [esi + 0x94]
call fcn.100aad40
push 0
push 0
push esi
push 0x100aae90
push 0
push 0
call sub.msvcrt.dll__beginthreadex
add esp, 0x18
mov dword [esi + 0xb0], eax
test eax, eax
je 0x100aae1d
lea eax, [ebp - 8]
mov byte [esi + 0x75], 1
push eax
lea ecx, [esi + 0xa4]
call fcn.10033dc0
mov bl, 1
jmp 0x100aae1f
xor bl, bl
mov esi, dword [ebp - 4]
test esi, esi
je 0x100aae49
push edi
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100aae48
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100aae48
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100bf6a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x10257ddc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 8]
push 0x10202940
mov dword [ebp - 8], eax
call fcn.10023e80
test al, al
jne 0x100bf6e3
push 0
push 0x10202940
lea ecx, [ebp - 8]
call fcn.10003740
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x100bf6f2
push 0x10257dd0
jmp 0x100bf6fc
cmp eax, 2
jne 0x100bf704
push 0x10257dd4
lea ecx, [ebp - 8]
call fcn.10002790
push esi
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x100bf779
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push esi
push dword [0x10257dcc]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x100bf74d
add dword [ebp - 4], ecx
jmp 0x100bf75d
mov eax, dword [ebp - 4]
test eax, eax
jle 0x100bf779
test ecx, ecx
jns 0x100bf779
add eax, ecx
mov dword [ebp - 4], eax
js 0x100bf779
push 4
lea eax, [ebp - 4]
push eax
push 4
push esi
push dword [0x10257dcc]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100bf791
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x10257ddc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov esp, ebp
pop ebp
ret