joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457f4c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.0040524c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x458094
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.0040524c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4588c4
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x458938
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
fild qword [ebp - 0x2c]
fdiv dword [0x458944]
call fcn.00403258
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.0040aad8
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov ecx, 0x458950
call fcn.00405304
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45893f
lea eax, [ebp - 0x24]
call fcn.00404fdc
ret

Function at 0x458954
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4589c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
fild qword [ebp - 0x2c]
fdiv dword [0x4589d4]
call fcn.00403258
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.0040aad8
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov ecx, 0x4589e0
call fcn.00405304
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4589cf
lea eax, [ebp - 0x24]
call fcn.00404fdc
ret
Function at 0x45d4ac
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x45d5a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, pe_nt_image_headers32
push ebx
lea eax, [ebp - 0x104]
push eax
call sub.user32.dll_GetFocus
push eax
call sub.user32.dll_GetWindowTextA
test eax, eax
jle 0x45d57b
mov eax, esi
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.0040524c
lea eax, [ebp - 0x10c]
call fcn.0045d454
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.0040a204
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 4]
call fcn.0040a590
mov edx, dword [ebp - 4]
mov eax, 0x45d5c0
call fcn.004055fc
test eax, eax
jle 0x45d582
push 0xfffffffffffffff0
call sub.user32.dll_GetFocus
push eax
call sub.user32.dll_GetWindowLongA
test al, 0x20
je 0x45d582
mov eax, dword [esi]
call fcn.004052b8
mov edi, eax
test edi, edi
jbe 0x45d582
mov ebx, 1
mov eax, esi
call fcn.00405510
mov byte [eax + ebx - 1], 0x2a
inc ebx
dec edi
jne 0x45d569
jmp 0x45d582
mov eax, esi
call fcn.00404fdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d5af
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00405000
lea eax, [ebp - 4]
call fcn.00404fdc
ret

Function at 0x460154
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
lea edi, [ebp - 8]
call fcn.00449520
mov edx, dword [eax]
mov dword [edi], edx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ebx, dword [edi]
dec ebx
jmp 0x460175
dec ebx
test ebx, ebx
jl 0x460182
mov eax, dword [edi + 4]
cmp dword [eax + ebx*8], 0
je 0x460174
mov esi, dword [edi + 4]
mov eax, dword [esi + ebx*8]
test eax, eax
je 0x4601c1
mov dword [0x643664], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
lea eax, [esi + ebx*8]
call fcn.00460004
push eax
call sub.kernel32.dll_VirtualProtect
lea eax, [esi + ebx*8]
call fcn.00460004
mov dword [0x6436ac], eax
mov eax, 0x460128
mov edx, dword [0x6436ac]
mov dword [edx], eax
mov ebx, dword [edi]
dec ebx
jmp 0x4601c7
dec ebx
test ebx, ebx
jl 0x4601d5
mov eax, dword [edi + 4]
cmp dword [eax + ebx*8 + 4], 0
je 0x4601c6
mov esi, dword [edi + 4]
mov eax, dword [esi + ebx*8 + 4]
test eax, eax
je 0x460205
mov dword [0x643668], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
lea eax, [esi + ebx*8 + 4]
call fcn.00460004
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, 0x460144
mov dword [esi + ebx*8 + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4624ec
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4624f2
ret
Function at 0x4656b4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x465705
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4656ec
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4656dc
jmp 0x465705
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4656ed
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470d70
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004054a8
xor eax, eax
push ebp
push 0x470ea3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x470e76
xor eax, eax
push ebp
push 0x470e6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004052b8
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x470e44
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x470e33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004052b8
inc eax
push eax
mov eax, dword [ebp - 8]
call fcn.004054b8
mov edx, dword [ebp - 0x10]
pop ecx
call fcn.00402edc
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 0xc]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470e3a
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x640c98]
mov dl, 1
mov eax, dword [0x40930c]
call fcn.0040ff98
call fcn.00404930
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470eaa
lea eax, [ebp - 8]
call fcn.00404fdc
ret
Function at 0x470eb4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
xor ecx, ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47107e
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x1c]
mov edx, 0x1b
mov al, 0x2d
call fcn.004056a8
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov ecx, 0x471094
call fcn.00405304
mov eax, dword [ebp - 4]
call fcn.0042ef00
dec eax
test eax, eax
jl 0x470f79
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0042eec0
mov edx, dword [0x48768c]
call fcn.00404224
test al, al
je 0x470f71
push dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0042eec0
lea edx, [ebp - 0x20]
call fcn.0049589c
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov edx, 3
mov al, 0x20
call fcn.004056a8
push dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00405378
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x470f1f
mov al, byte [0x471098]
push eax
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov edx, 0x4710a4
mov eax, dword [ebp - 0x10]
call fcn.00411c70
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x10]
call fcn.00405074
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0xb
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 4]
call fcn.0049589c
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0xb
mov eax, 0x471094
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0xb
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.0049589c
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xb
mov eax, 0x471094
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
mov eax, 0x471094
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea edx, [ebp - 0x78]
mov ecx, 9
mov eax, 0x4710b0
call fcn.0040c3ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471085
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.00405000
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00405000
lea eax, [ebp - 0x20]
call fcn.00404fdc
lea eax, [ebp - 0x1c]
call fcn.00404fdc
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00405000
ret
Function at 0x4738e0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x473954
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x473927
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.004051d4
jmp 0x47392f
mov eax, dword [ebp - 8]
call fcn.00404fdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47395b
cmp dword [ebp - 0xc], 0
je 0x47394b
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x473960
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x473a19
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov word [ebp - 0xe], ax
cmp word [ebp - 0xe], 0
je 0x4739ec
mov dx, word [ebp - 0xe]
mov eax, dword [0x461fa0]
call fcn.00467388
test al, al
je 0x4739d7
movzx eax, word [ebp - 0xe]
push eax
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0xc], eax
push 9
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
mov dx, word [ebp - 0xe]
mov eax, dword [ebp - 8]
call fcn.00467268
call fcn.004049dc
jmp 0x473a20
movzx eax, word [ebp - 0xe]
push eax
call sub.user32.dll_EnumClipboardFormats
mov word [ebp - 0xe], ax
cmp word [ebp - 0xe], 0
jne 0x473994
mov ecx, dword [0x640ddc]
mov dl, 1
mov eax, dword [0x40930c]
call fcn.0040ff98
call fcn.00404930
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473a20
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
mov esp, ebp
pop ebp
ret

Function at 0x473a24
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x473a84
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0xc], eax
push 9
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov dx, 2
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473a8b
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x473a90
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x473af0
push dword fs:[eax]
mov dword fs:[eax], esp
push 3
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0xc], eax
push 9
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov dx, 3
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473af7
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x473b74
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x473bea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004737bc
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0xe]
mov eax, dword [ebp - 8]
call fcn.00467350
mov eax, dword [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x14], 0
je 0x473bd4
mov eax, dword [ebp - 0x14]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473bf1
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x473bf8
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x473c6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004737bc
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0xe]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x14], 0
je 0x473c59
mov eax, dword [ebp - 0x14]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473c76
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x475b58
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x475ccd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00405074
mov eax, dword [ebp - 0x1c]
call fcn.004754a4
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x475bab
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, 1
call fcn.00405558
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00476438
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x475c8a
xor eax, eax
push ebp
push 0x475c83
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00475740
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.00475d0c
test al, al
je 0x475c61
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 0x20]
xor edx, edx
call fcn.004050cc
mov eax, dword [ebp - 0x44]
dec eax
cmp eax, 0
jl 0x475c61
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
call fcn.004054b8
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x475c58
mov eax, dword [ebp - 0x20]
call fcn.004054b8
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.004051d4
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.00475b58
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xffffffff
jne 0x475c0e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475c8a
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00475740
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x1c]
call fcn.004054b8
push eax
mov dl, byte [ebp - 0x15]
mov eax, dword [ebp - 4]
call fcn.00475708
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475cd4
lea eax, [ebp - 0x48]
call fcn.00404fdc
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00405000
ret

Function at 0x475cdc
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004054b8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete byte [ebp - 9]
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x475d0c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 0x1c
call fcn.00403824
mov eax, dword [ebp - 8]
add eax, 0x14
push eax
push 0
mov eax, dword [ebp - 8]
add eax, 0x10
push eax
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
mov eax, dword [ebp - 8]
add eax, 8
push eax
push 0
mov eax, dword [ebp - 8]
add eax, 4
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete byte [ebp - 9]
mov eax, dword [0x641798]
cmp byte [eax + 0xc], 0
je 0x475d97
mov eax, dword [0x641784]
cmp dword [eax], 2
jne 0x475d97
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 8]
add dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
add dword [edx + 0xc], eax
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x475da0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x475e69
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.00475d0c
test al, al
je 0x475e4b
mov ecx, dword [ebp - 0x30]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.004050cc
mov eax, dword [ebp - 0x34]
dec eax
test eax, eax
jl 0x475e4b
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004054b8
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0x14]
call fcn.004054b8
mov edx, eax
lea eax, [ebp - 0x38]
call fcn.004051d4
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x475dfa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475e70
lea eax, [ebp - 0x38]
call fcn.00404fdc
lea eax, [ebp - 0x14]
call fcn.00404fdc
ret
Function at 0x475e74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x475f3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.00475d0c
test al, al
je 0x475f1f
mov ecx, dword [ebp - 0x28]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.004050cc
mov eax, dword [ebp - 0x2c]
dec eax
test eax, eax
jl 0x475f1f
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004054b8
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0x14]
call fcn.004054b8
mov edx, eax
lea eax, [ebp - 0x38]
call fcn.004051d4
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x475ece
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475f44
lea eax, [ebp - 0x38]
call fcn.00404fdc
lea eax, [ebp - 0x14]
call fcn.00404fdc
ret

Function at 0x475f48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 8
call fcn.00403824
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004054b8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0xd]
mov eax, dword [ebp - 0x14]
call fcn.0047551c
mov edx, dword [ebp - 0xc]
mov byte [edx], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret

Function at 0x476324
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
call fcn.004754cc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004054b8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x47638c
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [0x6411f4]
mov dl, 1
mov eax, dword [0x475284]
call fcn.0040ffe0
call fcn.00404930
mov esp, ebp
pop ebp
ret 8