joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402480
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, eax
call fcn.0040f320
test eax, eax
je 0x4024ad
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0043cf00
add esp, 4
test eax, eax
jne 0x4024b1
push 0x4ca858
call fcn.0043d020
test eax, eax
jne 0x4024b1
xor eax, eax
jmp 0x4024b8
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x4024c3
xor eax, eax
pop edi
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SmartUploadCreate
push eax
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x4024bf
mov eax, dword [esi + 0x20]
push str.SmartUploadWithExtInfo
push eax
call edi
mov dword [esi + 8], eax
test eax, eax
je 0x4024bf
mov ecx, dword [esi + 0x20]
push str.SmartUploadCancel
push ecx
call edi
mov dword [esi + 0xc], eax
test eax, eax
je 0x4024bf
mov edx, dword [esi + 0x20]
push str.SmartUploadClose
push edx
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x4024bf
mov eax, dword [esi + 0x20]
push str.SmartUploadSetNetTimeout
push eax
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x4024bf
mov ecx, dword [esi + 0x20]
push str.SmartUploadSetOption
push ecx
call edi
mov edx, dword [esi + 0x20]
push str.SmartUploadGetError
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, 1
pop edi
ret

Function at 0x4025d0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
lea eax, [esp + 0xc]
push eax
push ebp
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x4025f6
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
push edi
push esi
call fcn.004770ed
mov edi, eax
add esp, 4
test edi, edi
jne 0x402610
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
push edi
push esi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40264b
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x4a6f74
push edi
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [esp + 0x20]
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx], ecx
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
push edi
call fcn.004771b7
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 0xc
Function at 0x402e40
Capabilities:
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x66c
mov eax, dword [0x4c13e0]
xor eax, esp
mov dword [esp + 0x664], eax
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffff9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x402e85
xor eax, eax
pop edi
pop ebp
mov ecx, dword [esp + 0x664]
xor ecx, esp
call fcn.00476dfd
add esp, 0x66c
ret
push 0x4a6f38
push esi
lea eax, [esp + 0x468]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x402e6c
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x464]
push edx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x402f35
lea esp, [esp]
inc edi
cmp word [esp + 0x34], 0x2e
jne 0x402ee1
mov ax, word [esp + 0x36]
test ax, ax
je 0x402f16
cmp ax, 0x2e
jne 0x402ee1
cmp word [esp + 0x38], 0
je 0x402f16
test byte [esp + 8], 2
je 0x402f16
lea eax, [esp + 0x34]
push eax
push esi
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x402f16
mov edx, dword [esp + 8]
and edx, 0xfffffff9
push edx
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 8]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x402f2e
cmp edi, 0x1388
jl 0x402ec0
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x66c]
pop edi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00476dfd
add esp, 0x66c
ret

Function at 0x403490
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 0x4034a7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4034d8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4034d4
cmp esi, eax
jae 0x4034d8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4034c4
cmp esi, eax
jb 0x4034de
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 0x403a60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4c13e0]
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.0047c020
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 0x4a6f78
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0x208
mov dword [esp + 0x18], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x403afc
mov eax, dword [esp + 4]
shr eax, 1
dec eax
cmp eax, 0x104
jae 0x403afc
cmp word [esp + eax*2 + 8], 0x5c
je 0x403af6
cmp eax, 0x103
jae 0x403afc
mov ecx, 0x5c
xor edx, edx
mov word [esp + eax*2 + 8], cx
mov word [esp + eax*2 + 0xa], dx
lea ecx, [esp + 8]
jmp 0x403b01
mov ecx, 0x4a7458
push esi
call fcn.004038d0
mov ecx, dword [esp + 0x210]
xor ecx, esp
mov eax, esi
call fcn.00476dfd
add esp, 0x214
ret

Function at 0x404220
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x499558
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c13e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x20]
xor ebp, ebp
cmp eax, ebp
je 0x404259
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [esp + 0x18]
push eax
call fcn.00436940
lea ebx, [esi + 0x28]
mov dword [esp + 0x38], ebp
cmp dword [ebx], ebp
je 0x404277
lea edi, [esp + 0x18]
call fcn.0040c0e0
cmp dword [esi + 0x104], ebp
lea ebx, [esi + 0x104]
je 0x40428e
lea edi, [esp + 0x18]
call fcn.0040c0e0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, ebp
jbe 0x4042fb
push 0x7d0
push 1
sub edx, ecx
sar edx, 2
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [esp + 0x24]
cmp eax, 0x102
jne 0x4042fb
mov eax, dword [esp + 0x28]
sub eax, ecx
sar eax, 2
xor esi, esi
cmp eax, ebp
jbe 0x4042fb
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp esi, eax
jb 0x4042e2
call fcn.00477ad6
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + esi*4]
push ebp
push ecx
call edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
sub eax, ecx
inc esi
sar eax, 2
cmp esi, eax
jb 0x4042e2
cmp ecx, ebp
je 0x404308
push ecx
call fcn.00476df2
add esp, 4
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.00476df2
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret

Function at 0x404980
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [esi + 0x24], 0
jne 0x4049a3
push 0
push SysReAllocString
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 0x24], eax
test eax, eax
jne 0x4049a3
xor eax, eax
pop ecx
ret
cmp dword [esi + 0x28], 0
mov dword [esp], 0
jne 0x4049cf
lea eax, [esp]
push eax
push 0
push esi
push 0x4049e0
push 0
push 0
call fcn.00477643
add esp, 0x18
mov dword [esi + 0x28], eax
test eax, eax
je 0x40499f
mov eax, 1
pop ecx
ret
Function at 0x404dc0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4c13e0]
xor eax, esp
mov dword [esp + 0x208], eax
test byte [0x4caeac], 1
push ebx
push esi
mov ebx, ecx
jne 0x404dfa
or dword [0x4caeac], 1
call fcn.00408330
push 0x49fde0
call fcn.0047736c
add esp, 4
cmp dword [0x4caec4], 0
jne 0x404e77
mov ecx, str.safemonUDiskScanEngine.dll
lea eax, [esp + 8]
call fcn.0040f440
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404e77
test byte [0x4caeac], 1
jne 0x404e42
or dword [0x4caeac], 1
call fcn.00408330
push 0x49fde0
call fcn.0047736c
add esp, 4
lea eax, [esp + 8]
mov esi, 0x4caeb0
call fcn.00408410
test eax, eax
je 0x404e77
call fcn.00403a00
mov ecx, eax
call fcn.004084b0
test eax, eax
je 0x404e77
mov ecx, dword [edi + 4]
push ecx
call fcn.00403a00
mov esi, eax
call fcn.00408670
mov dword [edi + 0x14], eax
xor eax, eax
cmp dword [edi + 0x14], eax
je 0x404eaf
test byte [0x4caeac], 1
jne 0x404ea0
or dword [0x4caeac], 1
call fcn.00408330
push 0x49fde0
call fcn.0047736c
add esp, 4
push ebx
add ebx, 8
push ebx
mov esi, 0x4caeb0
call fcn.00408700
mov ecx, dword [esp + 0x210]
pop esi
pop ebx
xor ecx, esp
call fcn.00476dfd
add esp, 0x20c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x499528
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c13e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
lea eax, [esi + 0xe8]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x38], 0
mov eax, dword [ebp]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
lea ebx, [esi + 0xc8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
call fcn.00406f90
mov esi, dword [ebp + 0x2f8]
mov edi, dword [esi + 0x434]
mov ecx, dword [edi + 4]
add esi, 0x420
lea eax, [esp + 0x44]
push eax
push ecx
push edi
call fcn.00407220
mov ecx, esi
mov ebx, eax
call fcn.00407260
mov dword [edi + 4], ebx
mov eax, dword [ebx + 4]
mov dword [esp + 0x38], 0xffffffff
mov edx, dword [esp + 0x18]
push edx
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x405156
mov ecx, dword [ecx + 0x10]
push ecx
push 0x2f8
push ebp
push 4
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8

Function at 0x405350
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [esi + 0x100], 0
jne 0x405379
push 0
push SysReAllocString
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 0x100], eax
test eax, eax
jne 0x405379
xor eax, eax
pop ecx
ret
cmp dword [esi + 0x104], 0
mov dword [esp], 0
jne 0x4053ab
lea eax, [esp]
push eax
push 0
push esi
push 0x4053c0
push 0
push 0
call fcn.00477643
add esp, 0x18
mov dword [esi + 0x104], eax
test eax, eax
je 0x405375
mov eax, 1
pop ecx
ret
Function at 0x405730
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
movzx eax, word [esi + 0xdc]
push edi
lea edi, [esi + 0xdc]
push eax
mov byte [esp + 0x18], 0
call fcn.00402a40
add esp, 4
test eax, eax
jne 0x405794
mov eax, dword [esi + 0xc]
cmp eax, 3
je 0x405857
cmp eax, 2
je 0x405857
cmp eax, 4
je 0x40585c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40579d
mov dword [esi + 0x2f4], 1
mov dword [esi + 0x10], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
test al, 0x10
je 0x4057ce
mov esi, edi
call fcn.00402e40
test eax, eax
je 0x40584b
lea esi, [ebp + 0x540]
mov ebx, edi
call fcn.004067b0
mov byte [esp + 0x14], 1
movzx eax, byte [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
ret 4
cmp dword [esi + 0x10], 0x46
jge 0x4057db
mov ecx, edi
call fcn.00402b00
call fcn.00403a00
cmp dword [eax + 0x14], 0
je 0x40584b
mov ecx, dword [esi + 0x2fc]
push ecx
call fcn.00403a00
mov edx, 3
call fcn.004087a0
test eax, eax
je 0x40584b
mov ebx, 1
mov dword [esi + 0x2f4], ebx
mov byte [esp + 0x14], bl
push edi
mov dword [esi + 0x10], 0
lea ebx, [ebp + 0x940]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
push str..vbs
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40583a
or dword [ebx], 2
jmp 0x40583f
call fcn.00406890
push edi
lea eax, [ebp + 0x140]
call fcn.004066c0
movzx eax, byte [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
ret 4
cmp eax, 4
jne 0x405863
mov ecx, edi
call fcn.00402b00
mov ebx, 1
test byte [0x4caeac], bl
jne 0x405888
or dword [0x4caeac], ebx
call fcn.00408330
push 0x49fde0
call fcn.0047736c
add esp, 4
mov ecx, dword [0x4caec4]
mov eax, dword [esi + 0x2fc]
test ecx, ecx
je 0x4058af
mov edx, dword [ecx]
push 5
push eax
mov eax, dword [edx + 0x14]
call eax
test eax, eax
jne 0x4058af
mov dword [esi + 0x2f4], ebx
mov dword [esi + 0x10], eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 4

Function at 0x405a70
Capabilities:
Get disk size

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x405ae4
mov eax, dword [esp + 0x18]
mul dword [esp + 8]
mov edi, edx
mov edx, dword [esp + 0xc]
push edi
mov esi, eax
push esi
push 0
push edx
call fcn.00483030
test edx, edx
ja 0x405ae4
jb 0x405abf
cmp eax, 0xa00000
jae 0x405ae4
mov eax, dword [esp + 0x10]
push edi
push esi
push 0
push eax
call fcn.00483030
test edx, edx
ja 0x405ae4
jb 0x405ada
cmp eax, 0x400
jae 0x405ae4
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret 4
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret 4
Function at 0x405b00
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ecx
push esi
mov esi, eax
test esi, esi
je 0x405b9a
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405ba1
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x405ba1
mov ecx, edi
call fcn.00405bb0
test eax, eax
je 0x405ba1
mov ecx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push edi
push esi
push ecx
mov dword [esp + 0x14], 0
call fcn.00405db0
test eax, eax
je 0x405b55
cmp dword [esp + 4], 0
je 0x405ba1
cmp byte [esi + 0x214], 0
je 0x405b7b
push 0x104
push 0
add esi, 0x216
push esi
call fcn.0047c020
add esp, 0xc
xor eax, eax
pop esi
pop ecx
ret 4
push edi
push 0x104
add esi, 0x216
push esi
push 0
push str.open
push str.autorun
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
pop esi
pop ecx
ret 4
mov eax, 1
pop esi
pop ecx
ret 4
Function at 0x405bb0
Capabilities:
Get file size
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x497c2b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4c13e0]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c13e0]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
push 0x206
mov esi, ecx
xor ebp, ebp
lea ecx, [esp + 0x1e]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x24], ax
call fcn.0047c020
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
push esi
push 0x104
lea edx, [esp + 0x20]
push edx
push 0x4a7458
push str.open
push str.AutoRun
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push 0x4a7458
lea eax, [esp + 0x1c]
push eax
call ebx
test eax, eax
je 0x405c4b
mov eax, 1
jmp 0x405d80
push esi
push 0x104
lea ecx, [esp + 0x20]
push ecx
push 0x4a7458
push 0x4a7124
push str.AutoRun
call edi
push 0x4a7458
lea edx, [esp + 0x1c]
push edx
call ebx
test eax, eax
jne 0x405c41
push esi
push 0x104
lea eax, [esp + 0x20]
push eax
push 0x4a7458
push 0x4a7134
push str.AutoRun
call edi
push 0x4a7458
lea ecx, [esp + 0x1c]
push ecx
call ebx
test eax, eax
jne 0x405c41
xor edi, edi
mov dword [esp + 0x14], edi
push ebp
push 0x80
push 4
push ebp
push 7
push SysReAllocString
push esi
mov dword [esp + 0x248], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x405d68
call fcn.00408010
cmp eax, ebp
jne 0x405d7e
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebp
je 0x405d73
cmp esi, 0x100000
ja 0x405d73
lea ebx, [esi + 2]
push ebx
call fcn.00476816
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x405d5b
push ebx
push ebp
push edi
call fcn.0047c020
add esp, 0xc
mov ecx, edi
lea edx, [esp + 0x14]
call fcn.00407fd0
test eax, eax
jne 0x405d52
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push 0x4a7150
push edi
call esi
test eax, eax
jne 0x405d4d
push str.command
push edi
call esi
test eax, eax
jne 0x405d4d
push str.shellexecute
push edi
call esi
test eax, eax
je 0x405d52
mov ebp, 1
push edi
call fcn.00476df2
add esp, 4
lea esi, [esp + 0x14]
call fcn.00408030
mov eax, ebp
jmp 0x405d80
mov edi, eax
mov dword [esp + 0x14], edi
jmp 0x405cdd
cmp edi, ebp
je 0x405d7e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00476dfd
add esp, 0x21c
ret
Function at 0x4088e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, 4
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x4a74b4
push str.Software360Safe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor eax, eax
cmp dword [esp], eax
setne al
add esp, 0xc
ret

Function at 0x408d90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49d1c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c13e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x40]
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add esi, 0x18
mov dword [esp + 0x38], 0
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
jbe 0x408de0
call fcn.00477ad6
mov ebp, dword [esi]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edi
lea ebx, [ebx]
mov edi, dword [esi + 0x10]
cmp dword [esi + 0xc], edi
jbe 0x408dfd
call fcn.00477ad6
mov eax, dword [esi]
test ebp, ebp
je 0x408e07
cmp ebp, eax
je 0x408e0c
call fcn.00477ad6
cmp dword [esp + 0x24], edi
je 0x408eb8
test ebp, ebp
jne 0x408e49
call fcn.00477ad6
xor eax, eax
mov ecx, dword [esp + 0x24]
cmp ecx, dword [eax + 0x10]
jb 0x408e2f
call fcn.00477ad6
mov edx, dword [esp + 0x24]
mov edx, dword [edx + 8]
mov dword [esp + 0x18], edx
test edx, edx
je 0x408e90
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x408e4e
xor eax, eax
jmp 0x408e56
mov eax, dword [ebp]
jmp 0x408e21
mov eax, dword [ebx + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [ebx + 0x10]
mov ebp, edi
sub ebp, ecx
sar ebp, 2
cmp ebp, eax
jae 0x408e6e
mov dword [edi], edx
add edi, 4
mov dword [ebx + 0x10], edi
jmp 0x408e8c
cmp ecx, edi
jbe 0x408e77
call fcn.00477ad6
mov eax, dword [ebx]
push edi
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
mov eax, ebx
call fcn.0040c560
mov ebp, dword [esp + 0x20]
test ebp, ebp
jne 0x408eb3
call fcn.00477ad6
xor eax, eax
mov edx, dword [esp + 0x24]
cmp edx, dword [eax + 0x10]
jb 0x408ea9
call fcn.00477ad6
add dword [esp + 0x24], 0x2c
jmp 0x408df0
mov eax, dword [ebp]
jmp 0x408e9b
cmp dword [esp + 0x44], 0
je 0x408eeb
mov ebp, dword [esi + 0x10]
cmp dword [esi + 0xc], ebp
jbe 0x408ecc
call fcn.00477ad6
mov edi, dword [esi + 0xc]
mov ebx, dword [esi]
cmp edi, dword [esi + 0x10]
jbe 0x408edb
call fcn.00477ad6
mov eax, dword [esi]
push ebp
push ebx
push edi
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0040c4a0
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
Function at 0x409b60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x49ea3b
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x4c13e0]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c13e0]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov eax, dword [esp + 0x470]
mov ebp, dword [esp + 0x478]
xor esi, esi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x474]
mov ebx, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x468], esi
cmp eax, esi
jne 0x409bf1
push ebp
push str.Software360TotalSecurity_srvtpi_s
lea edx, [esp + 0x54]
call fcn.0040d3d0
add esp, 8
lea ecx, [esp + 0x18]
push ecx
push 1
push esi
lea edx, [esp + 0x58]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
jmp 0x409bfb
lea ecx, [esp + 0x18]
push ecx
push 1
push esi
push ebp
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x409d1f
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
push ecx
push esi
push str.StartType
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x5c], 0x104
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x28]
cmp eax, 2
ja 0x409d14
cmp eax, esi
je 0x409d14
cmp dword [esp + 0x47c], esi
jne 0x409c82
cmp eax, 2
jne 0x409c82
lea esi, [esp + 0x1c]
call fcn.0042c770
jmp 0x409d1f
push str.DelayLoad
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
call fcn.0040de50
test eax, eax
je 0x409ca4
cmp ebx, esi
je 0x409ca4
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x24], eax
push str.ImagePath
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
push ecx
lea edi, [esp + 0x4c]
lea esi, [esp + 0x25c]
call fcn.0040de90
test eax, eax
jne 0x409c74
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x40]
mov edx, esi
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
call fcn.00409ed0
lea esi, [esp + 0x1c]
mov edi, eax
call fcn.0042c770
mov eax, edi
jmp 0x409d21
cmp edi, esi
je 0x409d1f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.00476dfd
add esp, 0x458
ret 0x10