joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449f60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a4d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
push esi
mov dword [ebp - 4], edi
mov dword [esi], vtable.CBkWindow.0
call fcn.00449d90
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
lea ebx, [esi + 0x14]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [esi + 0x24], edi
mov eax, dword [0x5fcb00]
mov edx, dword [eax + 0xc]
add esp, 4
mov ecx, 0x5fcb00
call edx
add eax, 0x10
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, dword [0x5fcb00]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcb00
call edx
add eax, 0x10
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edi
mov eax, dword [0x5fcb00]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcb00
call edx
add eax, 0x10
mov dword [esi + 0x48], eax
mov eax, dword [0x5fcb00]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcb00
call edx
add eax, 0x10
mov dword [esi + 0x4c], eax
or eax, 0xffffffff
push ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x34
lea eax, [esi + 0x60]
push edi
push eax
call fcn.005336c0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44bc30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a763
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov dword [esi], vtable.BkStyle.0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x18]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x20], ecx
mov edx, dword [edi + 0x24]
mov dword [esi + 0x24], edx
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
mov edx, dword [edi + 0x30]
mov dword [esi + 0x30], edx
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov ecx, dword [edi + 0x38]
mov dword [esi + 0x38], ecx
mov edx, dword [edi + 0x3c]
mov dword [esi + 0x3c], edx
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x44], ecx
mov edx, dword [edi + 0x48]
mov dword [esi + 0x48], edx
mov eax, dword [edi + 0x4c]
sub eax, 0x10
push eax
mov dword [ebp - 4], 0
call fcn.00436a30
add eax, 0x10
mov dword [esi + 0x4c], eax
mov edi, dword [edi + 0x50]
sub edi, 0x10
push edi
mov byte [ebp - 4], 1
call fcn.00436a30
add esp, 8
add eax, 0x10
mov dword [esi + 0x50], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x452a10
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
cmp esi, ebx
jne 0x452a46
mov eax, dword [0x5ff0bc]
cmp eax, ebx
je 0x452a3a
mov esi, dword [eax + 4]
cmp esi, ebx
jne 0x452a46
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, ebx
je 0x452a6a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x452a6a
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x452a6a
push ebx
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 8], 1
mov dword [edi + 0x2fc], ebx
mov ebx, dword [ebp + 0xc]
push ebx
push esi
mov ecx, edi
call fcn.0044edb0
mov dword [ebp + 8], eax
test eax, eax
jne 0x452a97
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x5ff0bc]
mov dword [ebp + 0xc], 0
test ecx, ecx
je 0x452ab1
mov edx, dword [ecx + 4]
mov dword [ebp + 0xc], edx
mov dword [ecx + 4], eax
test ebx, ebx
jne 0x452abe
push esi
lea ecx, [edi + 4]
call fcn.00445e50
cmp dword [edi + 0x2f8], 0
je 0x452b30
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
push 0
push 0x2001
mov ebx, eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebp + 8]
push 0x43
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp edi, ebx
je 0x452b15
push 1
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, ebx
je 0x452b2d
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, dword [ebp - 4]
mov ecx, edi
call fcn.00463570
mov edx, dword [edi + 4]
push 0x97
push 0
push 0
push 0
push 0
push 0
push edx
mov dword [edi + 0x2fc], 0
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [ebp - 8], 0
je 0x452b7f
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
test esi, esi
je 0x452b7f
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 4]
jne 0x452b7f
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x5ff0bc]
test eax, eax
je 0x452b8e
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x453d40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [edi + 0x278], ebx
je 0x453d70
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi + 0x278], ebx
mov eax, dword [edi + 0x26c]
cmp eax, ebx
je 0x453e55
push esi
push eax
call fcn.00449cd0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x453e05
push 2
push ebx
push esi
mov ecx, edi
call fcn.004537c0
mov ecx, dword [edi + 0x26c]
cmp ecx, dword [edi + 0x268]
jne 0x453e05
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
mov dword [esi + 0x98], ebx
movzx ecx, word [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp + 0xc]
shl ecx, 0x10
or ecx, eax
push ecx
mov ecx, dword [ebp + 8]
push ecx
push 0x202
push ebx
mov ecx, esi
mov dword [ebp - 0xc], ebx
call edx
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x453df4
cmp word [eax], bx
je 0x453df4
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x453e05
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x453e05
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
mov dword [edi + 0x26c], ebx
cmp dword [ebp - 4], ebx
je 0x453e54
mov eax, dword [edi + 4]
push eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edx, dword [esi]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ecx, dword [edi + 4]
push ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
push edx
push ecx
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x456150
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x18]
mov esi, ecx
cmp ebx, 0xf
jne 0x456188
mov eax, 1
mov dword [esi + 0x98], eax
mov dword [edi], 0
cmp dword [esi + 0x98], 0
je 0x456239
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp ebx, 2
jne 0x4561da
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push eax
push ecx
mov dword [esi + 0x98], 1
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x4561bf
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4561bf
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [edi], 0
cmp dword [esi + 0x98], 0
je 0x45622d
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0x14
cmp ebx, 0x47
jne 0x45620d
mov edx, dword [ebp + 0x14]
push edx
mov dword [esi + 0x98], 1
call fcn.0044c0f0
mov dword [edi], 0
cmp dword [esi + 0x98], 0
je 0x456239
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0x14
cmp ebx, 0x18
jne 0x456230
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
mov ecx, esi
mov dword [esi + 0x98], 1
call fcn.0044c200
jmp 0x4561f2
mov ebx, dword [ebp + 0xc]
cmp dword [esi + 0x98], 0
jne 0x4561ce
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push edi
push edx
push eax
push ebx
push ecx
mov ecx, esi
call fcn.00454fd0
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x459fd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b668
mov eax, dword fs:[0]
push eax
sub esp, 8
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x45a011
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
push eax
mov eax, dword [0x5ff1c8]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00443050
add esp, 0xc
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
mov dword [ebp - 4], 0
call edi
push str..new
lea edx, [ebp - 0x10]
push esi
push edx
call fcn.004221d0
mov eax, dword [eax]
add esp, 0xc
push eax
call edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a06c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x599bf0
lea ecx, [ebp - 0x10]
push esi
push ecx
call fcn.004221d0
mov eax, dword [eax]
add esp, 0xc
push eax
call edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45a0a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a0c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x45a680
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor edx, edx
push 0x206
mov dword [ebp - 0x210], eax
push edx
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x218], 0
mov word [ebp - 0x20c], dx
call fcn.005336c0
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x210]
add esp, 0xc
push edi
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, esi
call fcn.00422540
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.005332ca
mov esp, ebp
pop ebp
ret

Function at 0x45ba00
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ecd8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
test eax, eax
jne 0x45bab5
mov eax, dword [0x5fcb00]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcb00
call edx
add eax, 0x10
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea eax, [ebp + 0xc]
push str._s_d__x
push eax
call fcn.004237a0
mov ebx, dword [ebp + 0xc]
push ebx
push esi
call fcn.00535269
add esp, 0x18
mov dword [edi], eax
test eax, eax
jne 0x45ba8d
push 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [edi], eax
test eax, eax
jne 0x45ba92
mov eax, dword [ebp + 0x10]
inc dword [eax]
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45bab5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c1d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], eax
mov word [ebp - 0x20c], cx
call fcn.005336c0
add esp, 0xc
test edi, edi
je 0x45c2fc
cmp word [edi], 0
je 0x45c2fc
lea eax, [ebp - 0x210]
push eax
push 0x10008
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45c301
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop
mov eax, dword [ebp - 0x210]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 0
push eax
mov dword [ebp - 0x21c], 0x104
call ebx
mov esi, eax
cmp esi, 0x103
je 0x45c2cc
test esi, esi
jne 0x45c2dc
mov ecx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x210]
push ecx
lea edx, [ebp - 0x20c]
push edx
push eax
call fcn.0045c1d0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x45c250
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x218]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
mov eax, 0x3f2
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x45c320
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b9b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push ecx
push edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x45c392
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x45c37e
push eax
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 esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
cmp edi, esi
je 0x45c3d1
mov edx, dword [ebp + 0x14]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45c3a7
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x45c3d1
lea esi, [eax + 1]
jmp 0x45c3f4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push ecx
push edx
push str.Registry_write_failed
push str._ws:__x___ws___ws
push 0x5ff5f8
call fcn.00477930
mov esi, dword [ebp - 0x14]
add esp, 0x18
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x45c402
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c420
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578c08
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push edi
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov eax, dword [ebp - 0x10]
je 0x45c492
cmp eax, esi
je 0x45c47e
push eax
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 esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x18], esi
cmp eax, esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
je 0x45c4bd
push 4
lea edx, [ebp - 0x14]
push edx
push 4
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x45c4bd
lea esi, [eax + 1]
jmp 0x45c4da
push esi
push edi
push ebx
push str.Registry_write_failed
push str._ws:__x___ws___ws
push 0x5ff5f8
call fcn.00477930
mov esi, dword [ebp - 0x18]
add esp, 0x18
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x45c4e8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45c5d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57df38
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0x2001f
push eax
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], esi
call fcn.00438000
test eax, eax
je 0x45c641
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x45c62d
push eax
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 esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x18]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x45c678
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
push edx
push eax
push str.Registry_delete_value_failed
push str._ws:__x___ws___ws
push 0x5ff5f8
call fcn.00477930
add esp, 0x18
test ebx, ebx
je 0x45c683
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d360
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x41c], eax
call fcn.0045c130
test eax, eax
je 0x45d48d
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call fcn.005336c0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.005336c0
add esp, 0x18
push 0x104
lea edx, [ebp - 0x20c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x59a15c
lea eax, [ebp - 0x20c]
push 0xffffffffffffffff
push eax
call fcn.00534500
push esi
lea ecx, [ebp - 0x414]
push 0xffffffffffffffff
push ecx
call fcn.005343d0
add esp, 0x18
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45d48d
mov edi, dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
push esi
push 0x80000003
call edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x45d48d
lea ecx, [ebp - 0x418]
push ecx
push 0xf003f
push eax
lea edx, [ebp - 0x414]
push edx
push 0x80000003
mov dword [ebp - 0x418], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45d478
mov eax, dword [ebp - 0x418]
push eax
mov eax, dword [ebp - 0x41c]
mov ecx, ebx
call fcn.0045d310
add esp, 4
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x80000003
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005332ca
mov esp, ebp
pop ebp
ret