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

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 8
push esi
push eax
push ecx
call fcn.0044cba0
mov esi, eax
add esp, 8
test esi, esi
jne 0x44cea1
pop esi
add esp, 8
ret
call fcn.0044cb50
test eax, eax
mov eax, dword [esp + 0x28]
je 0x44ceba
test eax, 0x200
jne 0x44ceba
or eax, 0x100
push edi
mov edi, dword [esp + 0x1c]
lea edx, [esp + 8]
push edx
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44cf33
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x44cf1c
push edi
push eax
push str.GetRegValueBinary___Get_value_error____ld_for__s_n
xor esi, esi
call fcn.004412c0
mov ecx, dword [esp + 0x14]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 8
ret
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 8
ret
push edi
push eax
push str.GetRegValueBinary___Open_registry_error____ld_for__s_n
xor esi, esi
call fcn.004412c0
add esp, 0xc
pop edi
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x44cf50
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 8
push ebx
push esi
push eax
push ecx
xor ebx, ebx
call fcn.0044cba0
mov esi, eax
add esp, 8
test esi, esi
jne 0x44cf75
pop esi
pop ebx
add esp, 8
ret
call fcn.0044cb50
test eax, eax
mov eax, dword [esp + 0x2c]
je 0x44cf8e
test eax, 0x200
jne 0x44cf8e
or eax, 0x100
push edi
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x44d010
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
push edx
push eax
push 7
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x44cff7
push esi
push eax
push str.SetRegValueBinary___Set_value_error____ld_for__s_n
call fcn.004411d0
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0xc]
push edx
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 8
ret
push edi
push eax
push str.SetRegValueBinary___Open_registry_error____ld_for__s_n
call fcn.004411d0
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 8
ret
Function at 0x44d030
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 8
push ebx
push esi
push eax
push ecx
xor ebx, ebx
call fcn.0044cba0
mov esi, eax
add esp, 8
test esi, esi
jne 0x44d055
pop esi
pop ebx
add esp, 8
ret
call fcn.0044cb50
test eax, eax
mov eax, dword [esp + 0x28]
je 0x44d06e
test eax, 0x200
jne 0x44d06e
or eax, 0x100
push edi
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x44d109
mov edx, dword [esp + 0x28]
mov eax, edx
lea esi, [eax + 2]
jmp 0x44d0a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44d0a0
mov ecx, dword [esp + 0xc]
sub eax, esi
mov esi, dword [esp + 0x24]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
push 1
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x44d0f0
push esi
push eax
push str.SetRegValueLongW___Set_value_error____ld_for__s_n
call fcn.004412c0
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0xc]
push edx
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 8
ret
push edi
push eax
push str.SetRegValueLongW___Open_registry_error____ld_for__s_n
call fcn.004412c0
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 8
ret
Function at 0x44d130
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x420
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x41c], eax
mov ecx, dword [esp + 0x428]
mov eax, dword [esp + 0x424]
push ebx
mov ebx, dword [esp + 0x434]
push ebp
mov ebp, dword [esp + 0x43c]
push esi
push edi
mov edi, dword [esp + 0x43c]
push ecx
push eax
call fcn.0044cba0
mov esi, eax
add esp, 8
test esi, esi
je 0x44d23e
mov dword [esp + 0x10], 1
call fcn.0044cb50
test eax, eax
mov eax, dword [esp + 0x448]
je 0x44d1a3
test eax, 0x200
jne 0x44d1a3
or eax, 0x100
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
cmp eax, esi
jne 0x44d227
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
push ebx
push edx
mov dword [esp + 0x28], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x44d207
push ebx
push eax
xor ecx, ecx
push str.GetRegValueString___Get_value_error____ld_for__s_n
mov word [ebp], cx
mov dword [esp + 0x1c], esi
call fcn.004412c0
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x44d23a
lea edx, [esp + 0x1c]
push edx
push 0x104
push ebp
call fcn.0044f47b
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x44d23a
push edi
push eax
push str.GetRegValueString___Open_registry_error____ld_for__s_n
mov dword [esp + 0x1c], esi
call fcn.004412c0
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044e1a0
add esp, 0x420
ret

Function at 0x44d320
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
call fcn.0044cba0
mov esi, eax
add esp, 8
test esi, esi
jne 0x44d349
pop esi
add esp, 0x10
ret
call fcn.0044cb50
test eax, eax
mov eax, dword [esp + 0x2c]
je 0x44d362
test eax, 0x200
jne 0x44d362
or eax, 0x100
push edi
mov edi, dword [esp + 0x24]
lea edx, [esp + 0xc]
push edx
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44d3dc
xor esi, esi
cmp dword [esp + 0x2c], esi
jle 0x44d3c7
mov edi, dword [esp + 0x28]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, edi
mov edx, dword [esp + 0x10]
push 0
push 0
lea eax, [esp + 0x20]
push eax
push 0
lea ecx, [esp + 0x24]
push ecx
push edi
push esi
push edx
mov dword [esp + 0x34], 0x104
call ebx
test eax, eax
jne 0x44d3bf
inc dword [esp + 0xc]
add edi, 0x208
inc esi
cmp esi, dword [esp + 0x30]
jl 0x44d390
pop ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x10
ret
push edi
push eax
push str.GetEnumRegValueCount___Open_registry_error____ld_for__s_n
call fcn.004412c0
mov eax, dword [esp + 0x14]
add esp, 0xc
pop edi
pop esi
add esp, 0x10
ret
Function at 0x44d4c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push esi
push eax
push ecx
xor ebx, ebx
call fcn.0044cba0
mov esi, eax
add esp, 8
test esi, esi
jne 0x44d4e1
pop esi
pop ebx
pop ecx
ret
call fcn.0044cb50
test eax, eax
mov eax, dword [esp + 0x24]
je 0x44d4fa
test eax, 0x200
jne 0x44d4fa
or eax, 0x100
push edi
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44d55c
mov ebx, dword [esp + 0x24]
xor esi, esi
test ebx, ebx
jle 0x44d54a
mov edi, dword [esp + 0x20]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x44d530
mov eax, dword [esp + 0x10]
push 0x104
push edi
push esi
push eax
call ebp
inc esi
add edi, 0x208
cmp esi, ebx
jl 0x44d530
pop ebp
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
push edi
push eax
push str.GetEnumRegSubkeys___Open_registry_error____ld_for__s_n
call fcn.004411d0
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x44d580
Capabilities:
Delete registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push esi
push eax
push ecx
xor ebx, ebx
call fcn.0044cba0
mov esi, eax
add esp, 8
test esi, esi
jne 0x44d5a1
pop esi
pop ebx
pop ecx
ret
push edi
push 0
call fcn.0044cb90
add esp, 4
call fcn.0044cb50
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push edx
push 0x2011f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44d61e
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x44d5f6
mov ecx, dword [esp + 0xc]
push ecx
lea ebx, [eax + 1]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
push esi
push eax
push str.RemoveRegValue___remove_registry_error____ld_for__s_n
call fcn.004412c0
push 2
call fcn.0044cb90
mov ecx, dword [esp + 0x1c]
add esp, 0x10
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
push edi
push eax
push str.RemoveRegValue___Open_registry_error____ld_for__s_n
call fcn.004412c0
push 1
call fcn.0044cb90
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x44d640
Capabilities:
Delete registry key

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push edi
push eax
push ecx
mov dword [esp + 0x10], 0
call fcn.0044cba0
mov edi, eax
add esp, 8
test edi, edi
jne 0x44d669
pop edi
add esp, 0xc
ret
push esi
mov esi, dword [esp + 0x20]
push esi
push str.RemoveRegKey_____s__n
call fcn.004412c0
add esp, 8
call fcn.0044cb50
test eax, eax
mov eax, dword [esp + 0x24]
je 0x44d695
test eax, 0x200
jne 0x44d695
or eax, 0x100
lea edx, [esp + 0x10]
push edx
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44d811
push ebx
push ebp
push 0x20019
push esi
push edi
push eax
call fcn.0044d400
mov ebx, eax
imul eax, eax, 0x208
push eax
call fcn.0044e29f
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x44d720
push 0x20019
push ebx
push ebp
push esi
push edi
push 0
call fcn.0044d4c0
add esp, 0x18
test ebx, ebx
jle 0x44d717
mov edi, edi
movzx eax, byte [esp + 0x30]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ebp
push ecx
push 0
call fcn.0044d640
add esp, 0x14
add ebp, 0x208
sub ebx, 1
jne 0x44d6f0
mov ebp, dword [esp + 0x10]
push ebp
call fcn.0044e22a
add esp, 4
push 0x20019
push esi
push edi
push 0
call fcn.0044d260
mov ebp, eax
mov edx, ebp
imul edx, edx, 0x208
push edx
call fcn.0044e29f
mov ebx, eax
add esp, 0x14
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x44d78c
push 0x20019
push ebp
push ebx
push esi
push edi
push 0
call fcn.0044d320
add esp, 0x18
test ebp, ebp
jle 0x44d783
push 0xf003f
push ebx
push esi
push edi
push 0
call fcn.0044d580
add esp, 0x14
add ebx, 0x208
sub ebp, 1
jne 0x44d762
mov ebx, dword [esp + 0x10]
push ebx
call fcn.0044e22a
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0044cb50
pop ebp
pop ebx
test eax, eax
je 0x44d7ef
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44d820
push str.RegDeleteKeyExW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44d7de
mov ecx, dword [esp + 0x1c]
push 0
push 0x100
push esi
push ecx
call eax
test eax, eax
jne 0x44d7de
mov dword [esp + 0xc], 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0xc]
pop esi
pop edi
add esp, 0xc
ret
mov edx, dword [esp + 0x1c]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x44d820
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop esi
pop edi
add esp, 0xc
ret
push esi
push eax
push str.RemoveRegKey___Open_registry_error____ld_for__s_n
call fcn.004412c0
add esp, 0xc
mov eax, dword [esp + 0xc]
pop esi
pop edi
add esp, 0xc
ret

Function at 0x44e1a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47f038]
jne 0x44e1aa
repz ret
jmp fcn.00452872
Function at 0x45d8ea
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00453b1a
and dword [ebp - 4], 0
cmp dword [0x481618], 0
mov ebx, eax
jne 0x45d99b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45da4c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x45da4c
push eax
call fcn.00453aa8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x481618], eax
call esi
push eax
call fcn.00453aa8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x48161c], eax
call esi
push eax
call fcn.00453aa8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x481620], eax
call esi
push eax
call fcn.00453aa8
pop ecx
mov dword [0x481628], eax
test eax, eax
je 0x45d99b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00453aa8
pop ecx
mov dword [0x481624], eax
mov eax, dword [0x481624]
cmp eax, ebx
je 0x45d9f3
cmp dword [0x481628], ebx
je 0x45d9f3
push eax
call fcn.00453b23
push dword [0x481628]
mov esi, eax
call fcn.00453b23
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45d9f3
test edi, edi
je 0x45d9f3
call esi
test eax, eax
je 0x45d9ea
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45d9ea
test byte [ebp - 0xc], 1
jne 0x45d9f3
or dword [ebp + 0x10], 0x200000
jmp 0x45da2c
mov eax, dword [0x48161c]
cmp eax, ebx
je 0x45da2c
push eax
call fcn.00453b23
pop ecx
test eax, eax
je 0x45da2c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45da2c
mov eax, dword [0x481620]
cmp eax, ebx
je 0x45da2c
push eax
call fcn.00453b23
pop ecx
test eax, eax
je 0x45da2c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x481618]
call fcn.00453b23
pop ecx
test eax, eax
je 0x45da4c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45da4e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4044c0
Capabilities:
Terminate process

Disassembly:
push esi
push edi
xor edi, edi
call fcn.004058c0
mov eax, dword [esp + 0xc]
push eax
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
call fcn.00405970
test esi, esi
jne 0x4044ea
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4044ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x404ec0
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x404ee3
xor eax, eax
pop ebx
add esp, 0x208
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, eax
test esi, esi
je 0x404f47
push 0x104
lea eax, [esp + 0x10]
push eax
push str..tmp
push ebx
push 0
call fcn.00404d30
add esp, 0x14
test eax, eax
je 0x404f47
lea ecx, [esp + 0xc]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x404f43
push 4
xor esi, esi
push esi
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x404f47
call edi
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x208
ret
call edi
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x208
ret

Function at 0x4052f0
Capabilities:
Get common file path

Disassembly:
cmp dword [esp + 0xc], 0
push esi
push edi
mov edi, dword [esp + 0x10]
jne 0x405327
push 0
call fcn.00406fb0
add esp, 4
test eax, eax
je 0x405327
mov esi, dword [esp + 0xc]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40537c
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
cmp word [0x479458], 0
jne 0x405363
push 0x104
push 0x479458
push str.DYNAMORIO_HOME
push 0
push 0x465064
call fcn.0040a5d0
add esp, 0x14
test eax, eax
jne 0x40535c
cmp word [0x479458], ax
jne 0x405363
mov eax, 0x464770
jmp 0x405368
mov eax, 0x479458
mov esi, dword [esp + 0xc]
push eax
push str._slib
push edi
push esi
call fcn.00432fb7
add esp, 0x10
xor eax, eax
mov word [esi + edi*2 - 2], ax
cmp dword [esp + 0x18], eax
je 0x405392
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
pop edi
xor eax, eax
pop esi
ret
Function at 0x405410
Capabilities:
Delete registry key

Disassembly:
push ecx
mov eax, dword [0x479454]
test eax, eax
jne 0x40542a
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x479454], eax
cmp dword [0x479450], 0
jne 0x40545e
test eax, eax
je 0x40544c
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x479450], eax
test eax, eax
jne 0x40545e
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop ecx
ret
lea edx, [esp]
push edx
mov dword [esp + 4], 0
call fcn.00404fc0
mov eax, dword [esp + 4]
add esp, 4
cmp eax, 0x82
je 0x4054c6
cmp eax, 0x64
je 0x4054c6
mov eax, dword [0x479868]
sub eax, 0
je 0x4054c6
dec eax
je 0x4054ac
dec eax
jne 0x4054c6
mov ecx, dword [esp + 8]
push 0
mov eax, 0x100
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
call dword [0x479450]
pop ecx
ret
mov ecx, dword [esp + 8]
push 0
mov eax, 0x200
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
call dword [0x479450]
pop ecx
ret
mov ecx, dword [esp + 8]
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
call dword [0x479450]
pop ecx
ret

Function at 0x4058c0
Capabilities:
Acquire debug privileges

Disassembly:
cmp dword [0x47986c], 0
je 0x4058cf
mov eax, 0x4df
ret
push 0x47986c
push 0
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x405907
push 0x47986c
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x405907
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x47aa84
push str.SeDebugPrivilege
push 0
mov dword [0x47aa80], 1
mov dword [0x47aa8c], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [0x47986c]
push 0x47800c
push 0x47aaa0
push 0x10
push 0x47aa80
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x405956
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x514
setne cl
lea eax, [ecx - 1]
and eax, 0x514
ret

Function at 0x405a10
Capabilities:
Create directory

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push esi
push edi
push 0x104
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.004331a6
push 0x5c
lea eax, [esp + 0x18]
xor edx, edx
push 0x2f
push eax
mov word [esp + 0x226], dx
call fcn.004059b0
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 0x18
lea esi, [esp + 8]
push 0x5c
push esi
call fcn.00433a58
mov esi, eax
add esp, 8
test esi, esi
je 0x405a6a
xor ecx, ecx
mov word [esi], cx
push 0
lea edx, [esp + 0xc]
push edx
call edi
test esi, esi
je 0x405a85
add esi, 2
mov eax, 0x5c
mov word [esi - 2], ax
jne 0x405a54
pop edi
pop esi
add esp, 0x208
ret
Function at 0x405af0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x208
push ebp
push esi
mov esi, dword [esp + 0x214]
push 0x104
lea eax, [esp + 0xc]
push esi
push eax
xor ebp, ebp
call fcn.004331a6
lea edx, [esp + 0x14]
xor ecx, ecx
push 0x5c
push edx
mov word [esp + 0x222], cx
call fcn.00433dc5
add esp, 0x14
test eax, eax
je 0x405b40
lea edx, [esp + 8]
xor ecx, ecx
push edx
mov word [eax], cx
call fcn.00405a10
add esp, 4
push 0x4651f0
push esi
call fcn.00434082
add esp, 8
test eax, eax
je 0x405b72
cmp dword [esp + 0x21c], ebp
jne 0x405b69
pop esi
mov eax, 0xb7
pop ebp
add esp, 0x208
ret
push eax
call fcn.004332bf
add esp, 4
push edi
push 0x4651ec
push esi
call fcn.00434082
mov edi, eax
add esp, 8
test edi, edi
jne 0x405baa
push esi
call fcn.00404ec0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x405bf0
push 0x4651ec
push esi
call fcn.00434082
mov edi, eax
add esp, 8
test edi, edi
je 0x405bf0
push ebx
mov ebx, dword [esp + 0x220]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405bb7
sub eax, edx
mov esi, eax
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405bc7
push edi
sub eax, edx
push eax
push 1
push ebx
call fcn.00433f4a
add esp, 0x10
pop ebx
cmp esi, eax
je 0x405be7
mov ebp, 0x1d
push edi
call fcn.004332bf
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x208
ret

Function at 0x405c00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [esp + 0x408]
push esi
push edi
push 0x4651f0
xor edi, edi
push eax
mov dword [esp + 0x10], edi
call fcn.00434082
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x405c35
lea eax, [edi + 2]
pop edi
pop esi
add esp, 0x404
ret
push ebx
push ebp
mov ebp, dword [esp + 0x41c]
cmp ebp, edi
je 0x405c63
mov ebx, dword [esp + 0x420]
push esi
push ebx
push 1
push ebp
call fcn.00434397
mov edi, eax
add esp, 0x10
cmp edi, ebx
jne 0x405c5f
lea eax, [edi - 1]
mov byte [eax + ebp], 0
push esi
mov ebx, edi
call fcn.004340e0
add esp, 4
test eax, eax
jne 0x405cc1
mov dword [esp + 0x10], 0xea
lea ebx, [ebx]
push esi
push 0x400
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00434397
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x405ca8
push esi
call fcn.004340e0
add esp, 4
test eax, eax
je 0x405cb9
push esi
add ebx, edi
call fcn.004340e0
add esp, 4
test eax, eax
je 0x405c80
jmp 0x405cc1
mov dword [esp + 0x10], 0x1e
mov eax, dword [esp + 0x424]
test eax, eax
je 0x405ccf
inc ebx
mov dword [eax], ebx
push esi
call fcn.004332bf
mov eax, dword [esp + 0x14]
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x404
ret