joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465a44
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x465a90
mov eax, esi
call fcn.0044cda0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x465a90
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x465a90
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x465bcf
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x465ad0
cmp eax, 0x108
ja 0x465ad0
mov eax, esi
call fcn.0044cda0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x465bc6
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x465bcf
jmp 0x465bc6
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x465baf
cmp eax, 0x20a
ja 0x465baf
test byte [esi + 0x50], 0x80
jne 0x465b02
sub eax, 0x203
je 0x465aff
sub eax, 3
je 0x465aff
sub eax, 3
jne 0x465b02
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x465b16
dec eax
je 0x465b2b
dec eax
je 0x465b48
dec eax
je 0x465b2b
jmp 0x465b4f
mov ecx, ebx
mov eax, dword [0x5025c4]
mov eax, dword [eax]
mov edx, esi
call fcn.0045651c
jmp 0x465bc6
cmp byte [esi + 0x5d], 1
jne 0x465b41
mov eax, esi
mov si, 0xffed
call fcn.00403e28
jmp 0x465bcf
or word [esi + 0x54], 1
jmp 0x465bc6
and word [esi + 0x54], 0xfffe
jmp 0x465bc6
mov eax, dword [0x503c34]
cmp byte [eax + 0x20], 0
je 0x465bc6
mov eax, dword [0x503c34]
cmp dword [eax + 0x1c], 0
je 0x465bc6
mov eax, dword [ebx]
mov edx, dword [0x503c34]
cmp eax, dword [edx + 0x1c]
jne 0x465bc6
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0044ccc4
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403e28
jmp 0x465bcf
cmp eax, 0xb00b
jne 0x465bc6
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0046432c
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469198
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4691b4
cmp dword [esi + 4], 0
je 0x4691e1
test byte [ebx + 0x55], 1
jne 0x4691d3
mov eax, ebx
call fcn.00467df0
test eax, eax
jne 0x4691d3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4692f1
mov edx, esi
mov eax, ebx
call fcn.00468cb8
jmp 0x4692f1
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4692ea
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0046afec
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00465978
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00469198
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0046afec
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4692f1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46f898
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x5027d8]
cmp byte [eax + 0xc], 0
je 0x46fa05
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46f9fe
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x503c88], 0
jne 0x46f8ec
push 0x46fa0c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x46fa14
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503c88], eax
cmp dword [0x4fef34], 0
jne 0x46f9e7
push 0x46fa24
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4fef34], eax
cmp dword [0x4fef34], 0
je 0x46f9e7
push 0x46fa30
mov eax, dword [0x4fef34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503c8c], eax
push 0x46fa40
mov eax, dword [0x4fef34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503c90], eax
push 0x46fa54
mov eax, dword [0x4fef34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503c94], eax
push 0x46fa6c
mov eax, dword [0x4fef34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503c98], eax
push 0x46fa84
mov eax, dword [0x4fef34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503c9c], eax
push 0x46fa98
mov eax, dword [0x4fef34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503ca0], eax
push 0x46fab0
mov eax, dword [0x4fef34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503ca4], eax
push 0x46fac8
mov eax, dword [0x4fef34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503ca8], eax
push 0x46fae4
mov eax, dword [0x4fef34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503cac], eax
push 0x46faf0
mov eax, dword [0x4fef34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503cb0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fa05
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x472224
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x472239
add esp, 0xfffffff0
call fcn.00403f90
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, ebx
call fcn.00403bfc
movzx edx, si
mov eax, dword [ebp - 8]
call fcn.00409808
mov edi, eax
mov dword [ebx + 0x10], edi
cmp edi, 0xffffffff
jne 0x472267
call fcn.0040e4c4
and si, 0xf
cmp si, 2
jne 0x47227d
mov esi, 8
mov edi, 1
jmp 0x472287
mov esi, 2
mov edi, 4
push 0
push 0
push 0
push esi
push 0
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x14], 0
jne 0x4722c0
mov eax, ebx
call fcn.004721e0
mov ecx, dword [0x5024a0]
mov dl, 1
mov eax, dword [0x472114]
call fcn.00470acc
call fcn.004043f8
push 0
push 0
push 0
push edi
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
jne 0x4722f4
mov eax, ebx
call fcn.004721e0
mov ecx, dword [0x5026e0]
mov dl, 1
mov eax, dword [0x472178]
call fcn.00470acc
call fcn.004043f8
push 0
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_GetFileSize_1
cmp eax, 0xffffffff
jne 0x472328
push esi
call sub.kernel32.dll_UnmapViewOfFile
mov eax, ebx
call fcn.004721e0
mov ecx, dword [0x502608]
mov dl, 1
mov eax, dword [0x472178]
call fcn.00470acc
call fcn.004043f8
mov ecx, eax
mov edx, esi
mov eax, ebx
call fcn.00420e6c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47234a
call fcn.00403fe8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4725a8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x47264f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404eec
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x472639
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00405078
mov eax, dword [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404eec
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x472639
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x472660
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x472639
cmp dword [ebp - 8], 0x34
jne 0x472639
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472656
lea eax, [ebp - 0x10]
call fcn.00404a3c
ret
Function at 0x472e14
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.00472df8
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x472e86
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404eec
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x472e7d
cmp dword [ebp - 0x14], 4
jne 0x472e7d
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x472e94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x472f83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00404a90
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.00472df8
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x472f6d
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404eec
mov esi, eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x472f64
mov eax, dword [ebp - 0x14]
dec eax
sub eax, 2
jae 0x472f64
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00405078
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x472f64
mov eax, dword [ebp - 0x10]
call fcn.00404eec
call fcn.00409e00
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00405078
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00404a90
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472f8a
lea eax, [ebp - 0x10]
call fcn.00404a3c
ret
Function at 0x473554
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4736c2
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xa0]
xor ecx, ecx
mov edx, 0x9c
call fcn.00403304
mov dword [ebp - 0xa0], 0x9c
cmp byte [0x4fefa4], 0
je 0x4735ca
call fcn.00473944
cmp eax, 6
jl 0x4735ca
lea eax, [ebp - 0xa0]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x47364d
cmp byte [ebp - 6], 1
jne 0x4735c3
mov bl, 1
jmp 0x47364d
mov bl, 2
jmp 0x47364d
cmp byte [0x4fefa8], 0
je 0x47361a
lea eax, [ebp - 0xa0]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x47364d
mov al, byte [ebp - 6]
cmp al, 3
jne 0x473612
mov ax, word [ebp - 8]
mov edx, eax
and dx, 0x80
cmp dx, 0x80
jne 0x473600
mov bl, 6
jmp 0x47364d
and ax, 2
cmp ax, 2
jne 0x47360e
mov bl, 3
jmp 0x47364d
mov bl, 2
jmp 0x47364d
cmp al, 1
jne 0x47364d
mov bl, 5
jmp 0x47364d
cmp byte [0x4fefac], 0
je 0x47364d
lea eax, [ebp - 0xa0]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x47364d
cmp byte [ebp - 6], 1
jne 0x47364d
mov ax, word [ebp - 8]
and ax, 0x200
cmp ax, 0x200
jne 0x47364b
mov bl, 4
jmp 0x47364d
mov bl, 5
test bl, bl
jne 0x4736ac
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x4736d8
mov edx, 0x4736ec
mov eax, 0x80000002
call fcn.00472e94
mov edx, 0x473724
mov eax, dword [ebp - 4]
call fcn.00409120
test eax, eax
jne 0x473680
mov bl, 1
jmp 0x4736ac
mov edx, 0x473734
mov eax, dword [ebp - 4]
call fcn.00409120
test eax, eax
jne 0x473695
mov bl, 3
jmp 0x4736ac
mov edx, 0x473748
mov eax, dword [ebp - 4]
call fcn.00409120
test eax, eax
jne 0x4736aa
mov bl, 2
jmp 0x4736ac
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4736c9
lea eax, [ebp - 4]
call fcn.00404a3c
ret
Function at 0x4751f4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47535d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.00403304
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x4ff020], eax
mov eax, dword [ebp - 0xc]
mov dword [0x4ff024], eax
mov eax, dword [ebp - 0x24]
mov dword [0x4ff028], eax
mov eax, dword [0x5027c8]
cmp dword [eax], 2
sete byte [0x4fef90]
push 0x475368
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.00472578
cmp byte [0x4fef90], 0
jne 0x475280
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.004725a8
test al, al
je 0x475280
mov eax, dword [ebp - 0x4c]
mov dword [0x5042c8], eax
jmp 0x475287
xor eax, eax
mov dword [0x5042c8], eax
call fcn.00473414
and eax, 0x7f
cmp eax, 0xb
ja case.0x475298.0
jmp dword [eax*4 + 0x47529f]
mov byte [0x4fef7c], 1
jmp case.0x475298.0
mov byte [0x4fef80], 1
jmp case.0x475298.0
mov byte [0x4fef84], 1
jmp case.0x475298.0
mov byte [0x4fef88], 1
jmp case.0x475298.0
mov byte [0x4fef8c], 1
jmp case.0x475298.0
mov byte [0x4fef94], 1
mov byte [0x4fef98], 1
jmp case.0x475298.0
mov byte [0x4fef94], 1
mov byte [0x4fef9c], 1
jmp case.0x475298.0
mov byte [0x4fef94], 1
mov byte [0x4fefa0], 1
jmp case.0x475298.0
mov byte [0x4fefa4], 1
jmp case.0x475298.0
mov byte [0x4fefa8], 1
jmp case.0x475298.0
mov byte [0x4fefac], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475364
lea eax, [ebp - 4]
call fcn.00404a3c
ret

Function at 0x476a18
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
push 0x40
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x476a57
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x476a57
cmp dword [eax + 0x3c], 0
je 0x476a57
mov esi, dword [eax + 0x3c]
add esi, ebx
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x476a55
cmp dword [esi], 0x4550
je 0x476a57
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x47ca9c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404edc
xor eax, eax
push ebp
push 0x47cbc2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00404eec
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x18], eax
mov byte [ebp - 5], 1
cmp dword [ebp - 0x18], 0
je 0x47cba8
mov eax, dword [ebp - 0x18]
call fcn.0040277c
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x47cba1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x47cb84
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x47cbd4
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47cb7e
test ebx, ebx
je 0x47cb3f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
call fcn.00407e4c
mov word [ebx], ax
cmp dword [ebp + 0x10], 0
je 0x47cb52
mov eax, dword [ebp - 0xc]
mov ax, word [eax + 8]
mov edx, dword [ebp + 0x10]
mov word [edx], ax
cmp dword [ebp + 0xc], 0
je 0x47cb69
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
call fcn.00407e4c
mov edx, dword [ebp + 0xc]
mov word [edx], ax
cmp dword [ebp + 8], 0
je 0x47cb88
mov eax, dword [ebp - 0xc]
mov ax, word [eax + 0xc]
mov edx, dword [ebp + 8]
mov word [edx], ax
jmp 0x47cb88
mov byte [ebp - 5], 0
jmp 0x47cb88
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47cbac
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040279c
ret
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47cbc9
lea eax, [ebp - 4]
call fcn.00404a3c
ret
Function at 0x482734
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 0x48289d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404ad4
mov eax, dword [ebp - 0x10]
call fcn.00482208
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x482786
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404f8c
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.00482c18
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x48285b
xor eax, eax
push ebp
push 0x482854
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00482378
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004828cc
test al, al
je 0x482832
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404b2c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x482832
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.00404eec
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x48282c
mov eax, dword [ebp - 0x14]
call fcn.00404eec
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404c2c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00482734
dec ebx
cmp ebx, 0xffffffff
jne 0x4827e5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48285b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00482378
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404eec
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00482364
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 0x4828a4
lea eax, [ebp - 0x3c]
call fcn.00404a3c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404a60
ret
Function at 0x48285b
Capabilities:
Delete 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 0x48289d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404ad4
mov eax, dword [ebp - 0x10]
call fcn.00482208
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x482786
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404f8c
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.00482c18
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x48285b
xor eax, eax
push ebp
push 0x482854
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00482378
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004828cc
test al, al
je 0x482832
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404b2c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x482832
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.00404eec
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x48282c
mov eax, dword [ebp - 0x14]
call fcn.00404eec
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404c2c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00482734
dec ebx
cmp ebx, 0xffffffff
jne 0x4827e5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48285b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00482378
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404eec
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00482364
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 0x4828a4
lea eax, [ebp - 0x3c]
call fcn.00404a3c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404a60
ret

Function at 0x4828cc
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.00403304
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 [0x5027d8]
cmp byte [edx + 0xc], 0
je 0x482930
mov edx, dword [0x5027c8]
cmp dword [edx], 2
jne 0x482930
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