joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458784
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push ebp
push 0x458807
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor ecx, ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call sub.advapi32.dll_RegCreateKeyExA
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404d24
mov eax, dword [ebp - 0xc]
call fcn.00404dec
inc eax
push eax
push ebx
push 1
push 0
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45880e
lea eax, [ebp - 0xc]
call fcn.00404b2c
ret

Function at 0x458818
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x458883
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
call fcn.0045940c
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetCommandLineA_1
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404d24
mov edx, dword [ebp - 8]
pop eax
call fcn.00404df4
mov eax, dword [ebp - 4]
call fcn.00404fec
push eax
call sub.kernel32.dll_WinExec
push 0
call sub.kernel32.dll_ExitProcess_1
Function at 0x458904
Capabilities:
Get session user name
Query service configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x458a7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x458a0a
push 0xf01ff
mov eax, dword [0x4a0134]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x458a01
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
mov eax, dword [ebp - 0x1c]
call fcn.00408cd0
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4589f1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x1c]
call fcn.00404d24
lea eax, [ebp - 0x20]
call fcn.00459630
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.00408e1c
test eax, eax
jne 0x4589d9
lea eax, [ebp - 0x14]
call fcn.00459678
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4589f8
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.0040274c
ret
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp byte [ebp - 1], 0
je 0x458a5c
mov dword [ebp - 0x1c], pe_nt_image_headers32
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00405178
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404fec
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, dword [ebp - 0x10]
call fcn.00404fec
call fcn.00409c64
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00405178
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00408e1c
test eax, eax
sete byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458a86
lea eax, [ebp - 0x20]
call fcn.00404b2c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404b50
ret
Function at 0x458a90
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffbf8
mov edi, edx
mov esi, eax
mov eax, edi
call fcn.00404b2c
push 0
push 0
push 0
push 0
push 0x458b30
call sub.wininet.dll_InternetOpenA
mov ebx, eax
test ebx, ebx
jne 0x458ac5
mov eax, edi
call fcn.00404b2c
jmp 0x458b26
push 0
push 0x84000002
push 0
push 0
push esi
push ebx
call sub.wininet.dll_InternetOpenUrlA
mov esi, eax
test esi, esi
jne 0x458ae6
mov eax, edi
call fcn.00404b2c
jmp 0x458b26
xor eax, eax
mov dword [esp], eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x401
call fcn.004032b8
push esp
push 0x400
lea eax, [esp + 0xc]
push eax
push esi
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x458b20
mov eax, edi
lea edx, [esp + 4]
mov ecx, 0x401
call fcn.00404d9c
push ebx
call sub.wininet.dll_InternetCloseHandle
add esp, 0x408
pop edi
pop esi
pop ebx
ret

Function at 0x458aaa
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffbf8
mov edi, edx
mov esi, eax
mov eax, edi
call fcn.00404b2c
push 0
push 0
push 0
push 0
push 0x458b30
call sub.wininet.dll_InternetOpenA
mov ebx, eax
test ebx, ebx
jne 0x458ac5
mov eax, edi
call fcn.00404b2c
jmp 0x458b26
push 0
push 0x84000002
push 0
push 0
push esi
push ebx
call sub.wininet.dll_InternetOpenUrlA
mov esi, eax
test esi, esi
jne 0x458ae6
mov eax, edi
call fcn.00404b2c
jmp 0x458b26
xor eax, eax
mov dword [esp], eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x401
call fcn.004032b8
push esp
push 0x400
lea eax, [esp + 0xc]
push eax
push esi
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x458b20
mov eax, edi
lea edx, [esp + 4]
mov ecx, 0x401
call fcn.00404d9c
push ebx
call sub.wininet.dll_InternetCloseHandle
add esp, 0x408
pop edi
pop esi
pop ebx
ret
Function at 0x458b34
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd48
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x298], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fdc
xor eax, eax
push ebp
push 0x458c86
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x193]
push eax
push 0x101
call sub.WS2_32.DLL_WSAStartup
xor ecx, ecx
push ebp
push 0x458c5e
push dword fs:[ecx]
mov dword fs:[ecx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x293]
push eax
call sub.WS2_32.DLL_gethostname
lea eax, [ebp - 0x293]
mov edx, dword [ebp - 4]
call fcn.00409d28
lea eax, [ebp - 0x293]
push eax
call sub.WS2_32.DLL_gethostbyname
test eax, eax
je 0x458c47
mov edx, dword [eax + 0xc]
test edx, edx
je 0x458c41
mov ebx, dword [edx]
test ebx, ebx
je 0x458c3b
lea eax, [ebp - 0x298]
push eax
xor eax, eax
mov al, byte [ebx]
mov dword [ebp - 0x2b8], eax
mov byte [ebp - 0x2b4], 0
xor eax, eax
mov al, byte [ebx + 1]
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 0x2ac], 0
xor eax, eax
mov al, byte [ebx + 2]
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 0x2a4], 0
xor eax, eax
mov al, byte [ebx + 3]
mov dword [ebp - 0x2a0], eax
mov byte [ebp - 0x29c], 0
lea edx, [ebp - 0x2b8]
mov ecx, 3
mov eax, 0x458ca0
call fcn.0040a36c
mov edx, dword [ebp - 0x298]
mov eax, esi
call fcn.00404b80
mov byte [ebp - 5], 1
jmp 0x458c4b
mov byte [ebp - 5], 0
jmp 0x458c4b
mov byte [ebp - 5], 0
jmp 0x458c4b
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458c65
call sub.WS2_32.DLL_WSACleanup
ret

Function at 0x458cac
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x458d4c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e]
xor ecx, ecx
mov edx, 0x1e
call fcn.004032b8
xor eax, eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], 2
lea eax, [ebp - 0x24]
mov ecx, 0x458d64
mov edx, ebx
call fcn.00404e38
mov eax, dword [ebp - 0x24]
call fcn.00404fec
mov dword [ebp - 0x16], eax
lea eax, [ebp - 0x28]
mov ecx, 0x458d64
mov edx, esi
call fcn.00404e38
mov eax, dword [ebp - 0x28]
call fcn.00404fec
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], 0x14
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458d53
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00404b50
ret
Function at 0x458e0c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x458ea4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404d9c
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebx]
call fcn.00404dec
mov edx, eax
mov eax, dword [ebx]
mov ecx, 1
call fcn.0040504c
mov eax, dword [ebp - 0x104]
mov edx, 0x458eb8
call fcn.00404f38
je 0x458e8b
mov eax, ebx
mov edx, 0x458eb8
call fcn.00404df4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458eab
lea eax, [ebp - 0x104]
call fcn.00404b2c
ret

Function at 0x458ebc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x458f30
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.00404d9c
mov edx, dword [ebp - 0x108]
mov eax, ebx
mov ecx, 0x458f44
call fcn.00404e38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458f37
lea eax, [ebp - 0x108]
call fcn.00404b2c
ret

Function at 0x458f48
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x458ff8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
jne 0x458f8c
mov byte [ebp - 0x100], 0x43
mov al, byte [ebp - 0x100]
push eax
call sub.user32.dll_IsCharAlphaA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x458fa9
mov byte [ebp - 0x100], 0x43
lea eax, [ebp - 0x104]
call fcn.00459468
mov eax, dword [ebp - 0x104]
push eax
lea eax, [ebp - 0x108]
mov dl, byte [ebp - 0x100]
call fcn.00404d14
mov edx, dword [ebp - 0x108]
mov eax, ebx
pop ecx
call fcn.00404e38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458fff
lea eax, [ebp - 0x108]
mov edx, 2
call fcn.00404b50
ret
Function at 0x45914c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4592a4
push dword fs:[edx]
mov dword fs:[edx], esp
cmp eax, 7
ja case.default.0x459189
jmp dword [eax*4 + 0x459190]
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x108]
call fcn.0045953c
mov eax, dword [ebp - 0x108]
push eax
lea eax, [ebp - 0x10c]
mov dl, byte [ebp - 0x104]
call fcn.00404d14
mov edx, dword [ebp - 0x10c]
mov eax, ebx
pop ecx
call fcn.00404e38
jmp case.default.0x459189
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x110]
call fcn.004595e8
mov eax, dword [ebp - 0x110]
push eax
lea eax, [ebp - 0x114]
mov dl, byte [ebp - 0x104]
call fcn.00404d14
mov edx, dword [ebp - 0x114]
mov eax, ebx
pop ecx
call fcn.00404e38
jmp case.default.0x459189
mov eax, ebx
call fcn.00458e0c
jmp case.default.0x459189
mov eax, ebx
call fcn.00458ebc
jmp case.default.0x459189
mov eax, ebx
mov edx, 0x4592b8
call fcn.00404b80
jmp case.default.0x459189
mov eax, ebx
mov edx, 0x4592c4
call fcn.00404b80
jmp case.default.0x459189
mov eax, ebx
mov edx, 0x4592d0
call fcn.00404b80
jmp case.default.0x459189
mov eax, ebx
mov edx, dword [0x4a06c8]
mov edx, dword [edx]
call fcn.00404d24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4592ab
lea eax, [ebp - 0x114]
mov edx, 4
call fcn.00404b50
ret

Function at 0x45c538
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45c566
mov eax, ebx
call fcn.0045cfec
cmp dword [ebx + 0x40], 0
je 0x45c55f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45c5d7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45c5c9
cmp dword [ebx + 8], 0
je 0x45c588
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45c59a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45c5c9
cmp dword [ebx + 8], 0
je 0x45c57b
cmp eax, 3
je 0x45c5ad
dec eax
jne 0x45c57b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45c57b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45c57b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45c5f5
cmp dword [ebx + 0x14], 0xcc
je 0x45c5f5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045c600
pop ebx
ret
Function at 0x46d61c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46d785
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404bc4
mov eax, dword [ebp - 0x10]
call fcn.0046d2a8
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x46d66e
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.0040508c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0046dc9c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x46d743
xor eax, eax
push ebp
push 0x46d73c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0046d418
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0046d7b4
test al, al
je 0x46d71a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404c1c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x46d71a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404fec
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x46d714
mov eax, dword [ebp - 0x14]
call fcn.00404fec
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404d24
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0046d61c
dec ebx
cmp ebx, 0xffffffff
jne 0x46d6cd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d743
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0046d418
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404fec
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0046d404
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d78c
lea eax, [ebp - 0x3c]
call fcn.00404b2c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404b50
ret

Function at 0x46d7b4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.004032b8
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4a0838]
cmp byte [edx + 0xc], 0
je 0x46d818
mov edx, dword [0x4a0828]
cmp dword [edx], 2
jne 0x46d818
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x46d81c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x46d8d4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0046d7b4
test al, al
je 0x46d8b6
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404c1c
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x46d8b6
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404fec
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00404fec
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404d24
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x46d86f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d8db
lea eax, [ebp - 0x2c]
call fcn.00404b2c
lea eax, [ebp - 0xc]
call fcn.00404b2c
ret

Function at 0x46d8e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x46d99c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0046d7b4
test al, al
je 0x46d97e
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404c1c
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x46d97e
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404fec
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00404fec
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404d24
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x46d937
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d9a3
lea eax, [ebp - 0x2c]
call fcn.00404b2c
lea eax, [ebp - 0xc]
call fcn.00404b2c
ret
Function at 0x46dbb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0046d2bc
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404fec
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x46dc0e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a04fc]
mov dl, 1
mov eax, dword [0x46d050]
call fcn.0040ce44
call fcn.004044e4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46dc18
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404fec
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x46dc70
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a0844]
mov dl, 1
mov eax, dword [0x46d050]
call fcn.0040ce44
call fcn.004044e4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0046d2ec
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46df68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x46e07f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.0046d418
xor eax, eax
push ebp
push 0x46e05a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0046d7b4
test al, al
je 0x46e03e
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0046de48
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404c1c
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x46e03e
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404fec
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueA
test eax, eax
jne 0x46e03a
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404fec
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00404d24
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0046de48
pop ecx
inc edi
dec ebx
jne 0x46dfef
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e061
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.0046d418
ret