joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f0d9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi], edi
je 0x44f1f3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x20019
push edi
push 0x4206d8
push 0x80000002
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
call ebx
test eax, eax
je 0x44f14d
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x20019
push edi
push 0x4206d8
push 0x80000001
call ebx
test eax, eax
je 0x44f14d
mov eax, edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
jmp 0x44f153
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
test eax, eax
je 0x44f1e2
lea ecx, reloc.ADVAPI32.dll_TraceMessage
push ecx
push 1
push edi
push dword [esi]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
push eax
call ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x44f1cd
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push edi
push 0x420734
push dword [ebp - 0x218]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44f1c5
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
jne 0x44f1c5
xor edi, edi
inc edi
push dword [ebp - 0x218]
call ebx
push dword [ebp - 0x214]
call ebx
test edi, edi
je 0x44f1e2
push dword [esi]
push 0x420764
jmp 0x44f1e9
push dword [esi]
push 0x420790
push 4
pop esi
call fcn.00440126
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret

Function at 0x44f21e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push 0
push 6
xor ecx, ecx
pop ebx
call fcn.0044100b
test eax, eax
je 0x44f2af
lea eax, [ebp - 4]
push eax
xor esi, esi
inc esi
push esi
xor ebx, ebx
push ebx
push 0x4207d8
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44f2ab
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x42084c
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44f2a2
cmp dword [ebp - 8], 4
jne 0x44f2a2
cmp dword [ebp - 0xc], ebx
jne 0x44f2a2
push 0x420880
push 4
call fcn.004400fc
mov esi, dword [edi + 0x98]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x44f2b5
mov eax, dword [edi + 0x98]
pop esi
pop ebx
leave
ret
Function at 0x44f388
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi], 0
push edi
mov edi, 0x80004005
je 0x44f55d
push dword [esi]
mov eax, 0x104
push 0x420928
lea ecx, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c95b
pop ecx
pop ecx
test eax, eax
js 0x44f55d
xor ecx, ecx
push ecx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ecx
push 0x20006
push ecx
push ecx
push ecx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x80000002
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x44f432
xor ecx, ecx
push ecx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ecx
push 0x20006
push ecx
push ecx
push ecx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x44f432
xor eax, eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
jmp 0x44f438
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
test eax, eax
je 0x44f55d
mov edx, dword [esi + 0xc]
push 0x420980
push eax
call fcn.0044eda2
mov edx, dword [esi + 0x64]
push 0x42099c
push dword [ebp - 0x210]
call fcn.0044eda2
mov edx, dword [esi + 0x68]
push 0x4209b4
push dword [ebp - 0x210]
call fcn.0044eda2
mov edx, dword [esi + 0x5c]
push 0x4209d4
push dword [ebp - 0x210]
call fcn.0044eda2
mov edx, dword [esi + 0x54]
push 0x4209f0
push dword [ebp - 0x210]
call fcn.0044eda2
mov edx, dword [esi + 0x50]
push 0x420a0c
push dword [ebp - 0x210]
call fcn.0044eda2
mov edx, dword [esi + 0x58]
push 0x420a2c
push dword [ebp - 0x210]
call fcn.0044eda2
mov edx, dword [esi + 0x6c]
mov edi, 0x420a48
push edi
push dword [ebp - 0x210]
call fcn.0044eda2
mov edx, dword [esi + 0x70]
push edi
push dword [ebp - 0x210]
call fcn.0044eda2
mov edx, dword [esi + 0x74]
push 0x420a68
push dword [ebp - 0x210]
call fcn.0044eda2
mov edx, dword [esi + 0x78]
mov edi, 0x420a88
push edi
push dword [ebp - 0x210]
call fcn.0044eda2
mov edx, dword [esi + 0x7c]
push edi
push dword [ebp - 0x210]
call fcn.0044eda2
mov edx, dword [esi + 0x80]
push 0x420aa8
push dword [ebp - 0x210]
call fcn.0044eda2
add esi, 0x4c
cmp dword [esi], 0
je 0x44f54f
push 4
push esi
push 4
push 0
push 0x420ac8
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004655f1
leave
ret
Function at 0x44f5df
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp dword [edi], ebx
je 0x44f738
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 2
push ebx
push 0x401478
push 0x80000001
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
call esi
test eax, eax
jne 0x44f658
mov ecx, dword [edi]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x44f62b
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [edi]
push 1
push ebx
push 0x401f14
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x20006
push ebx
push 0x4206d8
push 0x80000001
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x44f6d9
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x420afc
push dword [ebp - 0x214]
call esi
push 0x420b18
push dword [ebp - 0x214]
call esi
mov ecx, dword [edi]
lea edx, [ecx + 2]
xor esi, esi
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x44f6a2
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [edi]
push 1
push esi
push 0x420b18
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x214]
call ebx
jmp 0x44f6db
xor esi, esi
push dword [edi]
mov eax, 0x104
push 0x420928
lea ecx, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c95b
pop ecx
pop ecx
test eax, eax
js 0x44f727
push esi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push esi
push 0x20006
push esi
push esi
push esi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x44f727
push dword [ebp - 0x214]
call ebx
push dword [edi]
push 0x420b3c
push 3
pop esi
call fcn.00440126
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret
Function at 0x451b51
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x928
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, edx
xor edx, edx
push esi
push edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
mov edi, edx
cmp dword [ebx + 0x34], edx
je 0x451b93
mov eax, 0x800704c7
jmp 0x451cf9
test eax, eax
je 0x451cde
test ecx, ecx
je 0x451cde
lea esi, [ebx + 0x2c]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
cmp dword [esi], edx
jne 0x451bf9
cmp dword [ebx + 0x38], edx
je 0x451bd6
call fcn.004444e4
test eax, eax
je 0x451bd4
xor ecx, ecx
push ecx
mov ebx, esi
call fcn.00459cff
mov ebx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov edi, eax
xor edx, edx
jmp 0x451bdb
xor edx, edx
mov edi, 0xc00d0bca
cmp dword [esi], edx
jne 0x451bf3
test edi, edi
js 0x451be8
mov edi, 0x80004005
push edi
push 0x4211d0
jmp 0x451ced
mov ecx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edx
push edx
push 0x105
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0xffffffffffffffff
push ecx
push edx
push edx
call esi
xor ecx, ecx
push ecx
push ecx
push 0x800
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0xffffffffffffffff
push dword [ebp - 0x918]
push ecx
push ecx
call esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push reloc.KERNEL32.dll_InitializeCriticalSection
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x30], 1
call fcn.0043f6bb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x28], esi
je 0x451ce3
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov eax, dword [eax]
mov ecx, dword [eax]
push esi
push esi
push esi
push 0x8000080
push 2
lea edx, reloc.ADVAPI32.dll_TraceMessage
push edx
lea edx, reloc.ADVAPI32.dll_TraceMessage
push edx
push eax
call dword [ecx + 0x14]
mov edi, eax
test edi, edi
js 0x451cb5
jmp 0x451cb0
push 0x258
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x451cb5
cmp dword [ebx + 0x30], esi
je 0x451cb5
mov ecx, ebx
call fcn.00451835
mov edi, eax
cmp dword [ebx + 0x28], esi
jne 0x451c8d
lea eax, reloc.ADVAPI32.dll_TraceMessage
test eax, eax
je 0x451cd3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, reloc.ADVAPI32.dll_TraceMessage
je 0x451cd3
test al, 0x10
jne 0x451cd3
test edi, edi
jns 0x451cf7
test edi, edi
js 0x451ce7
mov edi, 0x80070002
jmp 0x451ce7
mov edi, 0x80070057
test edi, edi
jns 0x451cf7
push edi
push 0x4211f8
push 4
pop esi
call fcn.00440126
pop ecx
pop ecx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret 4
Function at 0x452c2a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 3
xor ebx, ebx
push ebx
push 0x401478
push 0x80000002
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x452d8e
mov edx, dword [esi + 0x10]
push 0x401f14
push dword [ebp - 0x2d8]
call fcn.0044eda2
cmp dword [esi + 0x18], ebx
jne 0x452ce7
mov edx, dword [esi + 0x10]
test edx, edx
je 0x452d86
mov ecx, 0x401424
mov eax, edx
mov bx, word [eax]
cmp bx, word [ecx]
jne 0x452cc3
test bx, bx
je 0x452cbd
mov bx, word [eax + 2]
cmp bx, word [ecx + 2]
jne 0x452cc3
add eax, 4
add ecx, 4
test bx, bx
jne 0x452c9b
xor ebx, ebx
mov eax, ebx
jmp 0x452cca
sbb eax, eax
sbb eax, reloc.ADVAPI32.dll_TraceMessage
xor ebx, ebx
test eax, eax
je 0x452d86
push 0x42111c
push dword [ebp - 0x2d8]
call fcn.0044eda2
jmp 0x452d86
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ebx
push 0x42111c
push dword [ebp - 0x2d8]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x452d86
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
jne 0x452d86
lea eax, [ebp - 0xcc]
push eax
push 0x420928
mov eax, 0x208
lea ecx, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c99c
pop ecx
pop ecx
test eax, eax
js 0x452d86
push ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x80000002
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x452d86
push dword [ebp - 0x2dc]
call edi
push dword [ebp - 0x2d8]
call edi
push ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x402a50
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x452dcb
mov edx, dword [esi + 0x20]
push 0x402aa0
push dword [ebp - 0x2d8]
call fcn.0044eda2
push dword [ebp - 0x2d8]
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret
Function at 0x4534ed
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x401424
or eax, reloc.ADVAPI32.dll_TraceMessage
mov dword [ebp - 4], esi
call fcn.004637f0
mov edi, eax
test edi, edi
js 0x4536b6
lea ecx, [ebp - 0x2c]
call fcn.004636d2
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0x7fff
call fcn.004636d2
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004637a7
mov edi, eax
test edi, edi
jns 0x453554
lea eax, [ebp - 0x20]
call fcn.00463afc
lea eax, [ebp - 0x2c]
call fcn.00463afc
jmp 0x4536b6
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x20]
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x453588
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x453578
push 0x57
pop edi
test edi, edi
jle 0x45353f
and edi, 0xffff
or edi, 0x80070000
jmp 0x45353f
push ebx
push 0x44
pop edi
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4535b5
lea eax, [ebp - 0x20]
mov edi, 0x8007000e
call fcn.00463afc
lea eax, [ebp - 0x2c]
call fcn.00463afc
jmp 0x4536b5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 0x20]
mov dword [ebp - 0x10], edi
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x4535ff
cmp edi, 0x7a
je 0x4535ff
test edi, edi
jle 0x45369e
and edi, 0xffff
or edi, 0x80070000
jmp 0x45369e
lea ecx, [ebp - 0x38]
call fcn.004636d2
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x38]
inc eax
push ecx
call fcn.004637a7
mov edi, eax
test edi, edi
js 0x453696
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x38]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 0x20]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x453655
test edi, edi
jle 0x453696
and edi, 0xffff
or edi, 0x80070000
jmp 0x453696
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x453675
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x453645
push 0x57
pop edi
jmp 0x453643
push dword [ebp - 4]
or eax, reloc.ADVAPI32.dll_TraceMessage
lea edi, [ebp - 0x2c]
call fcn.004637f0
mov edi, eax
test edi, edi
js 0x453696
push dword [ebp - 0x2c]
mov edi, dword [ebp + 8]
call fcn.004639dd
mov edi, eax
lea eax, [ebp - 0x38]
call fcn.00463afc
lea eax, [ebp - 0x20]
call fcn.00463afc
lea eax, [ebp - 0x2c]
call fcn.00463afc
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
cmp dword [ebp - 4], 0
je 0x4536c5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x4536d2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x101
xor esi, esi
push esi
push 0x4016a0
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45373c
push edi
push 4
pop edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x421ac0
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45372f
cmp dword [ebp - 0xc], edi
je 0x453732
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, dword [ebp - 8]
pop esi
leave
ret

Function at 0x453747
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
push 1
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call fcn.00441544
test eax, eax
je 0x4537a5
push edi
push 0x421aec
mov eax, 0x208
lea edi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c924
mov eax, edi
push eax
call fcn.00440bc3
pop edi
test eax, eax
je 0x4537a5
xor ecx, ecx
push ecx
push ecx
push ecx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ecx
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004655f1
leave
ret

Function at 0x4537b6
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
inc esi
push esi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call fcn.00441544
test eax, eax
je 0x45386f
push ebx
push edi
xor ebx, ebx
push 0x421aec
mov eax, 0x208
lea edi, reloc.ADVAPI32.dll_TraceMessage
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
call fcn.0042c924
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x20106
push ebx
push 0x403c80
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
je 0x45386d
mov ecx, edi
mov esi, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x45382f
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 1
push ebx
push 0x421b08
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004655f1
leave
ret
Function at 0x454ace
Capabilities:
Create directory
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
mov edi, 0x80004005
test ebx, ebx
jne 0x454b06
lea eax, [edi - 2]
jmp 0x454c0e
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 1
push ecx
push 0x41d2b8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x454c0c
mov eax, 0x208
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
cmp esi, eax
jbe 0x454b47
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
xor edi, edi
push edi
push 0x422288
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x454ba9
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
jne 0x454ba9
lea edx, reloc.ADVAPI32.dll_TraceMessage
call fcn.00440b2f
test eax, eax
jne 0x454bc0
push edi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, reloc.ADVAPI32.dll_TraceMessage
call fcn.00440b2f
test eax, eax
jne 0x454bc0
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
mov ecx, 0x208
call fcn.0045486d
mov edi, eax
test edi, edi
jne 0x454c00
lea ecx, reloc.ADVAPI32.dll_TraceMessage
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x21c]
jne 0x454bc9
sub ecx, edx
sar ecx, 1
shr esi, 1
inc ecx
cmp esi, ecx
jbe 0x454bf4
mov eax, esi
lea edx, reloc.ADVAPI32.dll_TraceMessage
mov esi, ebx
call fcn.0042c88c
jmp 0x454c00
mov edi, 0x8007007a
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004655f1
leave
ret
Function at 0x454c21
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
xor edi, edi
push 0x23
push edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
mov esi, edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ebx, eax
test ebx, ebx
js 0x454cb7
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push dword [ebp - 0x214]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x454c80
inc esi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x454cb3
mov ecx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
test ecx, ecx
je 0x454cb3
push dword [ebp - 0x214]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov ecx, dword [eax]
push eax
call dword [ecx + EventUnregister]
test esi, esi
jne 0x454ce9
mov esi, 0x104
push esi
lea ecx, reloc.ADVAPI32.dll_TraceMessage
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x454ce4
push 0x4222a8
mov eax, esi
lea edi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c8f1
test eax, eax
jns 0x454ce9
mov ebx, 0x80070057
test ebx, ebx
js 0x454d23
lea edx, reloc.ADVAPI32.dll_TraceMessage
call fcn.00440b2f
xor esi, esi
test eax, eax
je 0x454d02
mov ebx, esi
jmp 0x454d29
push esi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, reloc.ADVAPI32.dll_TraceMessage
call fcn.00440b2f
test eax, eax
je 0x454d25
mov ebx, esi
jmp 0x454d25
xor esi, esi
test ebx, ebx
jne 0x454d63
lea ecx, reloc.ADVAPI32.dll_TraceMessage
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x454d32
mov eax, dword [ebp + 0xc]
sub ecx, edx
sar ecx, 1
shr eax, 1
inc ecx
cmp eax, ecx
jbe 0x454d5e
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
lea edx, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c88c
jmp 0x454d63
mov ebx, 0x8007007a
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret 8