joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451610
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4e9ab9
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x140], esi
push 0x124
lea eax, [esp + 0x14]
push esi
push eax
mov dword [esp + 0x18], esi
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4516bc
lea ecx, [esp + 0xc]
push ecx
push esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4516b5
nop
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x14c]
call dword [sym.imp.mfc90.dll_Ordinal_1607]
test eax, eax
je 0x4516fe
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x451690
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x140], 0xffffffff
lea ecx, [esp + 0x148]
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor eax, eax
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004e0148
add esp, 0x138
ret 4
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x140], 0xffffffff
lea ecx, [esp + 0x148]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, edi
jmp 0x4516d6

Function at 0x451730
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4e9afc
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
xor edi, edi
push 0x124
lea eax, [esp + 0x1c]
push edi
push eax
mov dword [esp + 0x20], edi
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x5116d8
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov dword [esp + 0x148], edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4517bd
mov dword [esp + 0x148], eax
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor eax, eax
jmp 0x451826
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x451808
mov ebx, dword [esp + 0x150]
jmp 0x4517e0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4517f9
lea edx, [esp + 0x14]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4517e0
jmp 0x451808
push eax
push edi
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x148], 0xffffffff
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, edi
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.004e0148
add esp, 0x13c
ret 4
Function at 0x4518c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4e9b60
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x420]
mov dword fs:[0], eax
mov esi, dword [esp + 0x430]
xor ebx, ebx
push 0x1ff
lea eax, [esp + 0x221]
push ebx
push eax
mov byte [esp + 0x228], bl
call sub.MSVCR90.dll_memset
push 0x1ff
lea ecx, [esp + 0x2d]
push ebx
push ecx
mov byte [esp + 0x34], bl
call sub.MSVCR90.dll_memset
add esp, 0x18
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov dword [esp + 0x428], ebx
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [esp + 0x428], 1
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [esp + 0x428], 2
push 0x200
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x200
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_820]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_4477]
lea edx, [esp + 0x21c]
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_820]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_4477]
push esi
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_820]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_4477]
push 0x4ff418
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00402a60
add esp, 0xc
mov byte [esp + 0x428], 3
mov eax, dword [eax]
push eax
push str.systemroot_
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_5924]
mov byte [esp + 0x428], 2
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov edx, dword [esp + 0x14]
push ebx
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_2481]
test eax, eax
jl 0x451a68
mov byte [esp + 0x428], 1
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x428], bl
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x428], 0xffffffff
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov al, 1
jmp 0x451aa2
mov byte [esp + 0x428], 1
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x428], bl
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x428], 0xffffffff
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor al, al
mov ecx, dword [esp + 0x420]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004e0148
add esp, 0x420
ret
Function at 0x456260
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
mov esi, ecx
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x6c]
add esp, 0xc
mov dword [esp + 0x4c], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ecx
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
push 0x10
push 1
push ecx
push ecx
mov word [esp + 0x64], cx
mov ecx, dword [esp + 0x7c]
push ecx
push 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4562d0
pop esi
add esp, 0x54
ret 0x10
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov dword [esi + 0x24], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x54
ret 0x10

Function at 0x4562f0
Capabilities:
Read file on windows
Read pipe

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
mov edi, ecx
mov ecx, dword [edi + 0x20]
push ebx
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x4563a0
mov ebp, dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x45638d
add eax, 0xa
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
mov ecx, dword [edi + 0x20]
add esp, 4
push ebx
mov esi, eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
push esi
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45639a
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x45639a
mov byte [eax + esi], bl
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push esi
mov ecx, edi
call eax
push esi
call ebp
mov edx, dword [edi + 0x20]
add esp, 4
push ebx
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x456320
jmp 0x4563a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push esi
call ebp
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x4563cb
cmp eax, 0xe8
je 0x4563cb
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
push str.Read_stdout_pipe_error_r_n
mov ecx, edi
call edx
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x4564a0
Capabilities:
Create pipe
Create thread
Create two anonymous pipes

Disassembly:
push ebp
lea ebp, [esp - 0x104]
sub esp, 0x104
push 0xfffffffffffffffe
push 0x52ce18
push 0x4e02e2
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x53fa2c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x100], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
mov eax, dword [ebp + 0x10c]
mov dword [ebp - 0x38], eax
xor ebx, ebx
mov byte [esi + 8], bl
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
call eax
push 0x5116d8
lea ecx, [esi + 4]
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x44], 0xc
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x45664d
push 2
push 1
push ebx
lea ecx, [ebp - 0x2c]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
push eax
mov edx, dword [ebp - 0x1c]
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x45664d
push ebx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x45664d
push 2
push ebx
push ebx
lea eax, [esi + 0x20]
push eax
call edi
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x45664d
push 2
push ebx
push ebx
lea edx, [esi + 0x1c]
push edx
call edi
push eax
mov eax, dword [ebp - 0x28]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x45664d
lea ecx, [ebp - 0x24]
push ecx
mov ecx, esi
call fcn.004563e0
lea edx, [ebp - 0x28]
push edx
mov ecx, esi
call fcn.004563e0
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, esi
call fcn.00456260
test eax, eax
je 0x45664d
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.004563e0
lea edx, [ebp - 0x20]
push edx
mov ecx, esi
call fcn.004563e0
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.004563e0
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
push ecx
push ebx
push esi
push 0x456410
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x45664d
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.00456688
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.004e0148
add ebp, 0x104
mov esp, ebp
pop ebp
ret 4
Function at 0x456720
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0xc], edi
je 0x456784
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 0x14]
je 0x456777
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0xc]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x456777
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.The_redir_thread_is_dead_r_n
mov ecx, esi
call eax
mov ecx, dword [esi + 0xc]
push 0xfffffffffffffffe
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x456784
push eax
call ebx
mov dword [esi + 0xc], edi
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x456791
push eax
call ebx
mov dword [esi + 0x10], edi
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x45679e
push eax
call ebx
mov dword [esi + 0x24], edi
mov eax, dword [esi + 0x1c]
cmp eax, edi
je 0x4567ab
push eax
call ebx
mov dword [esi + 0x1c], edi
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x4567b8
push eax
call ebx
mov dword [esi + 0x20], edi
mov dword [esi + 0x14], edi
pop edi
pop esi
pop ebx
ret
Function at 0x456a60
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4e9f97
mov eax, dword fs:[0]
push eax
mov eax, 0x19010
call fcn.004e03c0
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0x1900c], eax
push ebx
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x19018]
mov dword fs:[0], eax
mov dword [esp + 0x19020], 2
lea eax, [esp + 0x19028]
push eax
add ecx, 8
push ecx
lea ecx, [esp + 0x10]
xor ebx, ebx
push ecx
mov dword [esp + 0x1c], ebx
call fcn.004029d0
add esp, 0xc
mov byte [esp + 0x19020], 3
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push ecx
push bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x456be8
lea ecx, [esp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_4481]
cmp byte [0x103a972], bl
je 0x456bbb
push ebx
push str.TC_ENV
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_2481]
cmp eax, 0xffffffff
jne 0x456b3d
push ebx
push 0x50e740
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_2481]
cmp eax, 0xffffffff
je 0x456bbb
mov edx, dword [esp + 0x1902c]
push str.tC_Sweep
push edx
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
je 0x456bbb
push 0x18fff
lea eax, [esp + 0x19]
push ebx
push eax
mov byte [esp + 0x20], bl
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x1903c]
lea ecx, [esp + 0x20]
push ecx
push edx
push 0x101e7d8
push ebx
call fcn.004915e0
lea eax, [esp + 0x30]
add esp, 0x1c
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x456b90
mov ecx, dword [esp + 0x1902c]
sub eax, edx
mov edx, dword [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
push 1
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
jne 0x456be8
jmp 0x456bdd
mov eax, dword [esp + 0x19030]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x19030]
push eax
push 1
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x19020], 2
lea ecx, [esp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x19020], 1
lea ecx, [esp + 0x19028]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x19020], bl
lea ecx, [esp + 0x1902c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x19020], 0xffffffff
lea ecx, [esp + 0x19030]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x19018]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1900c]
xor ecx, esp
call fcn.004e0148
add esp, 0x1901c
ret 0xc
Function at 0x456c70
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4e9ff4
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x2c], 1
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov byte [esp + 0x2c], 2
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_4481]
lea ecx, [esp + 0x34]
push ecx
add esi, 8
lea edx, [esp + 0x14]
push esi
push edx
mov dword [esp + 0x2c], 0
call fcn.004029d0
add esp, 0xc
mov byte [esp + 0x2c], 3
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0xf003f
push 0
push 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
push 0
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x456dd5
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_4481]
cmp byte [0x103a972], 0
je 0x456daf
push 0
push str.TC_ENV
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_2481]
cmp eax, 0xffffffff
jne 0x456d5b
push 0
push 0x50e740
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_2481]
cmp eax, 0xffffffff
je 0x456daf
mov ecx, dword [esp + 0x38]
xor esi, esi
xor bl, bl
cmp dword [ecx - 0xc], esi
jle 0x456d90
mov edi, dword [sym.imp.MSVCR90.dll_toupper]
mov edi, edi
push esi
lea ecx, [esp + 0x3c]
call dword [sym.imp.mfc90.dll_Ordinal_899]
movsx edx, al
push edx
call edi
add bl, al
mov eax, dword [esp + 0x3c]
inc esi
add esp, 4
cmp esi, dword [eax - 0xc]
jl 0x456d70
movsx eax, bl
and eax, 0x8000001f
jns 0x456d9f
dec eax
or eax, 0xffffffe0
inc eax
mov edx, dword [esp + 0x14]
movsx ecx, al
and ecx, 0x1f
ror edx, cl
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x2c], 2
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x2c], 1
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x34]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret 0xc
Function at 0x457080
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ea06b
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 1
lea eax, [esp + 0x1c]
push eax
add ecx, 8
push ecx
lea ecx, [esp + 0xc]
push ecx
call fcn.004029d0
mov byte [esp + 0x20], 2
push 1
push str.SeBackupPrivilege
call fcn.004913e0
mov eax, dword [esp + 0x18]
add esp, 0x14
lea edx, [esp + 8]
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x457117
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0
push str.SeBackupPrivilege
call fcn.004913e0
mov eax, dword [esp + 0x10]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x457126
push 0
push str.SeBackupPrivilege
call fcn.004913e0
add esp, 8
mov byte [esp + 0x14], 1
lea ecx, [esp + 4]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret 8
Function at 0x4573e0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ea146
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x30], 1
cmp dword [0x103a984], 0
mov edi, dword [esp + 0x40]
je 0x457458
push edi
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov byte [esp + 0x38], 2
push ecx
lea edx, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov byte [esp + 0x3c], 3
mov byte [esp + 0x3c], 1
mov ecx, esi
call fcn.00456c70
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov byte [esp + 0x30], 4
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_4481]
lea ecx, [esp + 0x38]
push ecx
add esi, 4
lea edx, [esp + 0x44]
push esi
push edx
mov dword [esp + 0x28], 0
call fcn.004029d0
add esp, 0xc
mov byte [esp + 0x30], 5
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x457587
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc90.dll_Ordinal_4481]
cmp byte [0x103a972], 0
je 0x457561
push 0
push str.TC_ENV
lea ecx, [esp + 0x48]
call dword [sym.imp.mfc90.dll_Ordinal_2481]
cmp eax, 0xffffffff
jne 0x45750f
push 0
push 0x50e740
lea ecx, [esp + 0x48]
call dword [sym.imp.mfc90.dll_Ordinal_2481]
cmp eax, 0xffffffff
je 0x457561
mov eax, dword [esp + 0x3c]
xor esi, esi
xor bl, bl
cmp dword [eax - 0xc], esi
jle 0x457542
mov edi, dword [sym.imp.MSVCR90.dll_toupper]
push esi
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc90.dll_Ordinal_899]
movsx ecx, al
push ecx
call edi
mov edx, dword [esp + 0x40]
inc esi
add esp, 4
add bl, al
cmp esi, dword [edx - 0xc]
jl 0x457522
movsx eax, bl
and eax, 0x8000001f
jns 0x457551
dec eax
or eax, 0xffffffe0
inc eax
movsx ecx, al
mov eax, dword [esp + 0x10]
and ecx, 0x1f
ror eax, cl
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x30], 4
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x3c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc