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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x400e8
call fcn.004a7ca0
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
push 0xc4
push eax
mov dword [ebp - 0x400e0], eax
mov dword [ebp - 0x400d4], eax
lea eax, [ebp - 0x400d0]
push eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x400e4], ebx
call fcn.00497780
add esp, 0xc
push str..log2
push 0
call fcn.00494269
add esp, 4
push eax
push str.New360_tmp_
push str.up2.
add edi, 0x430
push edi
push str._s_s_s_d_s
push esi
mov ecx, 0x104
call fcn.004236a0
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0x1c
push 0
push 0
push 4
push 0
push 3
push 0x12019f
push esi
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x431c5e
push 0
push 0
push 3
push 0
push 1
push 0x120089
push ebx
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x431b61
xor edi, edi
jmp 0x431c4a
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 0x400d8]
push ecx
push 0xc8
lea edx, [ebp - 0x400d4]
push edx
push edi
call ebx
test eax, eax
je 0x431c4a
cmp dword [ebp - 0x400d8], 0xc8
jne 0x431c4a
push 0
lea eax, [ebp - 0x400dc]
push eax
push 0xc8
lea ecx, [ebp - 0x400d4]
push ecx
push esi
mov dword [ebp - 0x400c0], 1
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x431c4a
cmp dword [ebp - 0x400dc], 0xc8
jne 0x431c4a
push 0
lea edx, [ebp - 0x400d8]
push edx
push 0x40000
lea eax, [ebp - 0x4000c]
push eax
push edi
call ebx
test eax, eax
je 0x431c40
lea ecx, [ecx]
mov eax, dword [ebp - 0x400d8]
test eax, eax
je 0x431c40
push 0
lea ecx, [ebp - 0x400dc]
push ecx
push eax
lea edx, [ebp - 0x4000c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x431c4a
mov eax, dword [ebp - 0x400dc]
cmp eax, dword [ebp - 0x400d8]
jne 0x431c4a
push 0
lea ecx, [ebp - 0x400d8]
push ecx
push 0x40000
lea edx, [ebp - 0x4000c]
push edx
push edi
call ebx
test eax, eax
jne 0x431bf0
mov dword [ebp - 0x400e0], 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x431c57
push esi
call ebx
test edi, edi
je 0x431c5e
push edi
call ebx
mov eax, dword [ebp - 0x400e4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x400e0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491281
mov esp, ebp
pop ebp
ret 4

Function at 0x431e40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x1c], 0
jne 0x431e50
xor eax, eax
mov esp, ebp
pop ebp
ret
lea eax, [esi + 4]
push edi
test eax, eax
je 0x431e63
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x431e66
mov edi, dword [ebp - 4]
cmp dword [esi + 0x24], 0
jne 0x431e8d
push 0
push 0
push esi
push 0x431d60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xa48], eax
mov dword [esi + 0x24], 1
test edi, edi
je 0x431e98
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x431fd0
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, eax
call fcn.00424110
test eax, eax
je 0x431fe3
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x431fee
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 0x431fea
mov eax, dword [esi + 0x20]
push str.SmartUploadWithExtInfo
push eax
call edi
mov dword [esi + 8], eax
test eax, eax
je 0x431fea
mov ecx, dword [esi + 0x20]
push str.SmartUploadCancel
push ecx
call edi
mov dword [esi + 0xc], eax
test eax, eax
je 0x431fea
mov edx, dword [esi + 0x20]
push str.SmartUploadClose
push edx
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x431fea
mov eax, dword [esi + 0x20]
push str.SmartUploadSetNetTimeout
push eax
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x431fea
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 0x432f30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x4f11dc], 0
je 0x432f48
mov eax, 1
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
push str.AVEnable
push str.SOFTWARE360Safe_filemon
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x432f8f
mov dword [ebp - 4], 1
call fcn.00432780
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 1
jne 0x432f9e
call fcn.00432780
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x436f90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bb240
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x4e9688]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.00432fb0
lea ecx, [esp + 0x24]
xor edi, edi
push ecx
mov dword [esp + 0x4c], edi
call fcn.00432fb0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 4
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x58], 1
call fcn.00434ef0
mov esi, dword [esp + 0x1c]
sub esi, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
sar esi, 2
cmp eax, edi
je 0x43700e
push eax
call fcn.00491276
add esp, 4
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.00491276
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, edi
je 0x437038
push eax
call fcn.00491276
add esp, 4
mov eax, dword [esp + 0xc]
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.00491276
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x439330
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b64e8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4e9688]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0043a5e0
push eax
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x70], 0
call fcn.0043a640
add esp, 0x10
push 0x4da81c
lea eax, [esp + 0x30]
push eax
call fcn.00497a7b
int3
Function at 0x441d00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc114
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4e9688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4f1154
call esi
push 0x4f113c
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call esi
push ebx
push ebx
push ebx
push ebx
mov dword [0x4eb334], eax
call esi
push 0x4ef3fe
push 0x20
mov dword [0x4eb330], eax
call fcn.00492bc8
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x441d7d
push esi
call fcn.0042fc80
jmp 0x441d7f
xor esi, esi
push 0x4ef3fe
push 0x20
mov dword [0x4f1200], esi
call fcn.00492bc8
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
cmp esi, ebx
je 0x441dd6
mov ecx, 1
call fcn.004425f0
cmp eax, ebx
je 0x441dc4
mov dword [eax], esi
mov dword [esi], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
jmp 0x441dd8
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
jmp 0x441dd8
xor esi, esi
lea eax, [ebp - 0x10]
push eax
push 4
push ebx
push 0x441a00
push ebx
push ebx
mov dword [0x4f1204], esi
mov dword [ebp - 0x10], ebx
call fcn.00492054
or ecx, 0xffffffff
add esp, 0x18
mov dword [0x4eb338], eax
cmp eax, ecx
je 0x441e34
cmp dword [0x4eb334], ecx
je 0x441e34
cmp dword [0x4eb330], ecx
je 0x441e34
mov byte [0x4f11fd], 1
mov byte [0x4f11fc], bl
lea eax, [ecx + 2]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x441ef0
Capabilities:
Terminate thread

Disassembly:
cmp byte [0x4f11fd], 0
mov byte [0x4f11fc], 1
je 0x441f51
mov eax, dword [0x4eb334]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [0x4eb338]
push 0xbb8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x441f34
mov edx, dword [0x4eb338]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x4eb338]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4eb338], 0xffffffff
mov byte [0x4f11fd], 0
ret
Function at 0x442c80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba211
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x648], eax
mov dword [ebp - 0x650], edi
mov dword [ebp - 0x64c], edi
lea ecx, [ebp - 0x62c]
push ecx
push 0xf003f
push edi
push 0x4cf61c
mov dword [ebp - 4], edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x62c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x442d44
mov esi, dword [ebp - 0x62c]
push edi
push edi
push edi
push edi
push edi
push edi
lea edx, [ebp - 0x654]
push edx
lea eax, [ebp - 0x630]
push eax
push edi
push edi
push edi
push esi
mov dword [ebp - 0x650], esi
mov dword [ebp - 0x64c], edi
mov dword [ebp - 0x630], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x630]
cmp eax, edi
jne 0x442d4e
cmp esi, edi
je 0x442d3a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x442e92
mov eax, 0x80004005
jmp 0x442e92
xor ebx, ebx
mov dword [ebp - 0x638], ebx
cmp eax, edi
jbe 0x442e85
mov edi, edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x634]
push ecx
lea edx, [ebp - 0x214]
push edx
push ebx
push esi
mov dword [ebp - 0x634], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, edi
jne 0x442e72
mov ecx, dword [ebp - 0x634]
xor eax, eax
mov word [ebp + ecx*2 - 0x214], ax
xor ebx, ebx
lea edx, [ebp - 0x628]
push edx
push 0xf003f
push edi
lea eax, [ebp - 0x214]
push eax
mov byte [ebp - 4], 1
push esi
mov dword [ebp - 0x628], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x442e51
mov ebx, dword [ebp - 0x628]
lea ecx, [ebp - 0x640]
mov dword [ebp - 0x63c], edi
push ecx
lea edi, [ebp - 0x628]
lea esi, [ebp - 0x624]
mov dword [ebp - 0x640], ebx
mov dword [ebp - 0x628], 0x208
call fcn.00443770
test eax, eax
jne 0x442e49
mov eax, dword [ebp - 0x628]
mov ecx, esi
xor edx, edx
push ecx
mov word [ebp + eax*2 - 0x624], dx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x644], esi
test esi, esi
je 0x442eb0
mov edi, dword [ebp - 0x648]
lea edx, [ebp - 0x644]
push edx
mov byte [ebp - 4], 2
call fcn.00442f20
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [ebp - 0x62c]
xor edi, edi
mov byte [ebp - 4], 0
cmp ebx, edi
je 0x442e66
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x640], edi
mov ebx, dword [ebp - 0x638]
mov dword [ebp - 0x63c], edi
inc ebx
mov dword [ebp - 0x638], ebx
cmp ebx, dword [ebp - 0x630]
jb 0x442d60
cmp esi, edi
je 0x442e90
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret 4
push 0x8007000e
call fcn.004251c0
int3
Function at 0x443770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
test edi, edi
jne 0x443782
push 0x80004005
call fcn.004251c0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edi
push esi
lea eax, [ebp - 4]
push eax
push 0
push str.ImagePath
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x443807
mov ecx, dword [edi]
test ecx, ecx
jbe 0x443802
mov edx, dword [ebp - 4]
test edx, edx
jbe 0x44380d
cmp edx, 2
jbe 0x4437ee
cmp edx, 7
jne 0x44380d
test cl, 1
jne 0x4437de
shr ecx, 1
cmp ecx, 1
jb 0x4437de
cmp word [esi + ecx*2 - 2], 0
jne 0x4437de
cmp ecx, 1
jbe 0x443807
cmp word [esi + ecx*2 - 4], 0
je 0x443807
xor eax, eax
mov word [esi], ax
mov eax, 0xd
mov esp, ebp
pop ebp
ret 4
test cl, 1
jne 0x4437fd
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x443807
mov eax, 0xd
xor ecx, ecx
mov word [esi], cx
mov esp, ebp
pop ebp
ret 4
xor edx, edx
mov word [esi], dx
lea eax, [edx + 0xd]
mov esp, ebp
pop ebp
ret 4

Function at 0x4445b0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba18b
mov eax, dword fs:[0]
push eax
sub esp, 0xa4c
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0xa3c], eax
test esi, esi
je 0x4446e9
xor ecx, ecx
push ebx
lea eax, [ebp - 0xa38]
mov word [ebp - 0x420], cx
xor edx, edx
push str.___s__
push eax
mov ecx, 0x104
mov word [ebp - 0x218], dx
call fcn.004236a0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0xa38]
push edx
push esi
call dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
test eax, eax
je 0x4446e9
lea edi, [ebp - 0x218]
lea esi, [ebp - 0x420]
call fcn.00444440
push 0x104
lea eax, [ebp - 0x830]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edi, [ebp - 0x628]
lea esi, [ebp - 0x830]
call fcn.00444440
lea ecx, [ebp - 0x218]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, ebx
lea eax, [ebp - 0xa58]
call fcn.004114d0
mov ecx, dword [ebp - 0xa3c]
lea edx, [ebp - 0xa58]
push edx
add ecx, 0x28
mov dword [ebp - 4], 0
call fcn.00412470
mov ecx, edi
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4446b3
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x628]
push ecx
mov esi, eax
call fcn.004115a0
cmp dword [ebp - 0xa40], 8
jb 0x4446e9
mov edx, dword [ebp - 0xa54]
push edx
call fcn.00491276
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret 8
Function at 0x444710
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
push ebx
push esi
mov esi, dword [eax + 0x28]
push edi
mov edi, dword [ecx]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
lea ebx, [ebx]
mov ebx, dword [eax + 0x40]
mov eax, dword [eax + 0x28]
test esi, esi
je 0x44473e
cmp esi, eax
je 0x444743
call fcn.00492f40
cmp edi, ebx
je 0x4447ae
test esi, esi
jne 0x444767
call fcn.00492f40
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x44475c
call fcn.00492f40
cmp dword [edi + 0x40], 8
jb 0x44476b
mov ebx, dword [edi + 0x2c]
jmp 0x44476e
mov eax, dword [esi]
jmp 0x444752
lea ebx, [edi + 0x2c]
test esi, esi
jne 0x44478c
call fcn.00492f40
cmp edi, dword [esi + 0x18]
jne 0x444781
call fcn.00492f40
cmp dword [edi + 0x24], 8
jb 0x444790
mov edi, dword [edi + 0x10]
jmp 0x444793
mov esi, dword [esi]
jmp 0x444777
add edi, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea esi, [ebp - 0xc]
call fcn.00416060
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
jmp 0x444730
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x444e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00497780
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x4cf760
lea eax, [ebp - 0x20c]
push eax
call esi
push str.psapi.dll
lea ecx, [ebp - 0x20c]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea edx, [ebp - 0x20c]
push edx
call edi
test eax, eax
jne 0x444ebd
push 0x4cf774
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x4cf774
lea ecx, [ebp - 0x20c]
push ecx
call esi
push str.psapi.dll
lea edx, [ebp - 0x20c]
push edx
call esi
lea eax, [ebp - 0x20c]
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00491281
mov esp, ebp
pop ebp
ret

Function at 0x445020
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
push ecx
mov dword [ebp - 0x808], 1
mov word [ebp - 0x804], ax
call fcn.00497780
add esp, 0xc
lea edx, [ebp - 0x80c]
push edx
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebp - 0x808]
push ecx
push str.ImagePath
push str.SYSTEMCurrentControlSet_servicesQHActiveDefense
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80c], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor al, al
cmp word [ebp - 0x804], 0x22
jne 0x44509d
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x4450b0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0xc12]
push ecx
mov word [ebp - 0xc14], ax
call fcn.00497780
add esp, 0xc
push 0x208
lea edx, [ebp - 0x414]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0xc14]
push str.__s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x800
lea edx, [ebp - 0xc14]
push edx
push 1
push str.ImagePath
push str.SYSTEMCurrentControlSet_servicesQHActiveDefense
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret

Function at 0x445150
Capabilities:
Modify service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x208
lea eax, [ebp - 0x414]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x824]
push str.__s_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4451bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
push esi
push 2
push str.QHActiveDefense
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4451f2
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x824]
push eax
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x445229
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
pop esi
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x445250
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00445020
test al, al
jne 0x445264
call fcn.004450b0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
push str.Start
push str.SYSTEMCurrentControlSet_servicesQHActiveDefense
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, 2
cmp dword [ebp - 4], eax
jne 0x4452aa
xor eax, eax
mov esp, ebp
pop ebp
ret
push 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 4
push str.Start
push str.SYSTEMCurrentControlSet_servicesQHActiveDefense
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.00445150
mov esp, ebp
pop ebp
ret