joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4761d0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47637b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x47635c
mov dl, 1
mov eax, dword [0x419c00]
call fcn.00403af0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040490c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x47634b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00463a6c
test al, al
je 0x47633e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x47638c
lea eax, [ebp - 0x254]
call fcn.0040c2b4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47633e
xor eax, eax
push ebp
push 0x476337
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4763c4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x476320
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b7c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x476320
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47633e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x476241
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041e27c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476382
lea eax, [ebp - 0x260]
call fcn.0040490c
ret

Function at 0x476cc4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x48ade8]
cmp byte [eax + 0xa5], 0
jne 0x476d35
cmp dword [0x48ae00], 0
jne 0x476cf6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x476c80
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x48ae00], eax
cmp dword [0x48adfc], 0
jne 0x476d11
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x48adfc], eax
cmp dword [0x48ae04], 0
jne 0x476d35
push esp
push 0
push 0
push 0x476c24
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x48ae04], eax
pop edx
ret
Function at 0x4773c8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48ade8]
cmp dword [eax + 0x30], 0
je 0x477472
cmp dword [ebx + 0x94], 0
jne 0x47746c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x477358
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x47746c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x477432
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x47746c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041be00
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x477441
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x477fd0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x478005
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004049fc
jmp 0x478012
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404960
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4791dc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47921d
mov eax, esi
call fcn.0045eff0
test al, al
je 0x47921d
mov eax, dword [ebx + 0x84]
call fcn.0045ecec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47921d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045ecec
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x47a0bc
Capabilities:
Get memory capacity

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff98
mov ebx, eax
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov eax, dword [0x487aa8]
cmp dword [eax], 5
jge 0x47a18f
lea eax, [esp + 0x48]
mov edx, 0x20
call fcn.00407760
mov dword [esp + 0x48], 0x20
lea eax, [esp + 0x48]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0x50]
xor edx, edx
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], edx
mov eax, dword [esp + 0x54]
xor edx, edx
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x74], edx
mov eax, dword [esp + 0x58]
xor edx, edx
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], edx
mov eax, dword [esp + 0x5c]
xor edx, edx
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], edx
mov eax, dword [esp + 0x60]
xor edx, edx
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], edx
mov eax, dword [esp + 0x64]
xor edx, edx
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], edx
jmp 0x47a236
push 0x47a240
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
je 0x47a236
push 0x47a250
push esi
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
mov dword [esp], edi
test edi, edi
je 0x47a230
lea eax, [esp + 8]
xor ecx, ecx
mov edx, 0x40
call fcn.004034b4
mov dword [esp + 8], 0x40
lea eax, [esp + 8]
push eax
call dword [esp + 4]
test eax, eax
je 0x47a230
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x60], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x64], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x70], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x74], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x6c], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x58], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x5c], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x78], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x7c], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x54], eax
push esi
call sub.kernel32.dll_FreeLibrary_1
add esp, 0x68
pop edi
pop esi
pop ebx
ret

Function at 0x47af68
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x47afa0]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x47af7e
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x47af8d
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x47af9c
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x47c38c
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x487c9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47c3b2
push 0
mov eax, dword [0x487c9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x47d730
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, 0x4877d0
mov eax, dword [0x487e4c]
cmp dword [eax], 2
jne 0x47d88a
push 0x47d8a0
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [ebx], eax
cmp dword [ebx], 0
jne 0x47d761
push 0x47d8a0
call sub.kernel32.dll_LoadLibraryA
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x47d88a
push 0x47d8ac
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4877dc], eax
push 0x47d8c4
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4877e0], eax
push 0x47d8d8
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4877d4], eax
push 0x47d8e8
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4877d8], eax
push 0x47d8f0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4877e4], eax
push 0x47d900
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4877e8], eax
push 0x47d91c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4877ec], eax
push 0x47d92c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4877f0], eax
push 0x47d940
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4877f4], eax
push 0x47d958
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4877fc], eax
push 0x47d964
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4877f8], eax
push 0x47d974
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487800], eax
push 0x47d984
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487804], eax
push 0x47d9a0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487808], eax
push 0x47d9bc
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48780c], eax
push 0x47d9d4
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487810], eax
cmp dword [ebx], 0
je 0x47d898
cmp dword [0x487800], 0
jne 0x47d89c
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x47dbe4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x9c], edx
mov esi, eax
lea edi, [ebp - 0x94]
xor eax, eax
push ebp
push 0x47de33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, 0x94
call fcn.00407760
mov dword [edi], 0x94
push edi
call sub.kernel32.dll_GetVersionExA
mov eax, esi
lea edx, [edi + 0x14]
mov ecx, 0x80
call fcn.00404b7c
mov eax, dword [edi + 4]
mov dword [0x48ae58], eax
mov edx, dword [edi + 8]
mov dword [0x48ae5c], edx
mov edx, dword [edi + 0xc]
mov dword [0x48ae60], edx
xor ebx, ebx
cmp dword [edi + 0x10], 2
jne 0x47dd2d
sub eax, 3
je 0x47dc89
dec eax
je 0x47dc8d
dec eax
je 0x47dc91
dec eax
je 0x47dc95
jmp 0x47dc97
mov bl, 1
jmp 0x47dc97
mov bl, 3
jmp 0x47dc97
mov bl, 0xa
jmp 0x47dc97
mov bl, 0xd
cmp dword [edi + 4], 5
jne 0x47dca5
cmp dword [edi + 8], 1
jne 0x47dca5
mov bl, 0xb
cmp dword [edi + 4], 5
jne 0x47dcb3
cmp dword [edi + 8], 2
jne 0x47dcb3
mov bl, 0xc
mov eax, dword [esi]
mov edx, 0x47de4c
call fcn.00404d18
jne 0x47de15
mov dl, 1
mov eax, dword [0x439d10]
call fcn.00439e10
mov edi, eax
mov edx, 0x80000002
mov eax, edi
call fcn.00439eb0
mov edx, 0x47de64
mov eax, edi
call fcn.0043a038
test al, al
je 0x47dd21
mov edx, 0x47deac
mov eax, edi
call fcn.0043a438
test al, al
je 0x47dd1a
mov edx, 0x47deac
mov eax, edi
call fcn.0043a32c
dec eax
jne 0x47dd1a
mov eax, esi
mov edx, 0x47dec0
call fcn.00404960
mov eax, edi
call fcn.00439e80
mov eax, edi
call fcn.00403b20
jmp 0x47de15
cmp dword [edi + 4], 4
jne 0x47dded
cmp dword [edi + 8], 0
jne 0x47dded
mov bl, 2
lea eax, [ebp - 0x9c]
lea edx, [edi + 0x14]
mov ecx, 0x80
call fcn.00404b7c
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x98]
call fcn.0040b3c8
mov eax, dword [ebp - 0x98]
mov edx, 0x47ded8
call fcn.00404d18
jne 0x47dd7b
mov bl, 4
lea eax, [ebp - 0xa4]
lea edx, [edi + 0x14]
mov ecx, 0x80
call fcn.00404b7c
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.0040b3c8
mov eax, dword [ebp - 0xa0]
mov edx, 0x47dee4
call fcn.00404d18
jne 0x47ddb3
mov bl, 5
lea eax, [ebp - 0xac]
lea edx, [edi + 0x14]
mov ecx, 0x80
call fcn.00404b7c
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xa8]
call fcn.0040b3c8
mov eax, dword [ebp - 0xa8]
mov edx, 0x47def0
call fcn.00404d18
jne 0x47de15
mov bl, 6
jmp 0x47de15
cmp dword [edi + 4], 4
jne 0x47de07
cmp dword [edi + 8], 0xa
jne 0x47de07
mov bl, 7
cmp word [edi + 0xc], 0x8ae
jne 0x47de15
mov bl, 8
jmp 0x47de15
cmp dword [edi + 4], 4
jne 0x47de15
cmp dword [edi + 8], 0x5a
jne 0x47de15
mov bl, 9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47de3a
lea eax, [ebp - 0xac]
mov edx, 6
call fcn.00404930
ret
Function at 0x47e490
Capabilities:
Get hostname

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, eax
mov dword [esp], 0xff
mov eax, dword [esp]
call fcn.0040be48
mov dword [esp + 4], eax
push esp
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, esi
mov edx, dword [esp + 4]
call fcn.00404b04
mov eax, dword [esp + 4]
call fcn.0040bea4
mov dl, 1
mov eax, dword [0x439d10]
call fcn.00439e10
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.00439eb0
mov edx, 0x47e52c
mov eax, ebx
call fcn.0043a038
test al, al
je 0x47e518
mov edx, 0x47e570
mov eax, ebx
call fcn.0043a438
test al, al
je 0x47e511
mov edx, 0x47e570
mov ecx, esi
mov eax, ebx
call fcn.0043a2b4
mov eax, ebx
call fcn.00439e80
mov eax, ebx
call fcn.00403b20
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47e580
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
mov dword [esp], 0xff
mov eax, dword [esp]
call fcn.0040be48
mov dword [esp + 4], eax
push esp
mov eax, dword [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x47e5b5
mov edx, ebx
mov eax, dword [esp + 4]
call fcn.0040be34
jmp 0x47e5bc
mov eax, ebx
call fcn.0040490c
mov eax, ebx
mov edx, dword [esp + 4]
call fcn.00404b04
mov eax, dword [esp + 4]
call fcn.0040bea4
pop ecx
pop edx
pop ebx
ret

Function at 0x47e5d4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x47e66d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404fec
mov eax, 0x104
call fcn.0040be48
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push edi
push esi
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x47e630
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004050fc
mov eax, dword [ebp - 8]
call fcn.0040bea4
lea eax, [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetMalloc
call fcn.00418e18
test al, al
je 0x47e657
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e674
lea eax, [ebp - 0xc]
call fcn.0040632c
ret
Function at 0x47e734
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dbc
xor eax, eax
push ebp
push 0x47e81e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x47e830
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x47e7eb
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404dcc
mov esi, eax
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
test ebx, ebx
jne 0x47e7ca
mov eax, dword [ebp - 0xc]
call fcn.0040af9c
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
mov eax, dword [ebp - 0x14]
call fcn.00402d68
jmp 0x47e7e0
mov ecx, 0x47e84c
mov dl, 1
mov eax, dword [0x40a3c0]
call fcn.0040ed58
call fcn.00404300
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x47e801
mov ecx, 0x47e874
mov dl, 1
mov eax, dword [0x40a3c0]
call fcn.0040ed58
call fcn.00404300
test ebx, ebx
sete al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e825
lea eax, [ebp - 4]
call fcn.0040490c
ret

Function at 0x47e89c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dbc
xor eax, eax
push ebp
push 0x47e935
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x47e944
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x47e91c
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404dcc
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
jne 0x47e917
mov ebx, dword [ebp - 0x14]
jmp 0x47e91f
or ebx, 0xffffffff
jmp 0x47e91f
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e93c
lea eax, [ebp - 4]
call fcn.0040490c
ret
Function at 0x47e958
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dbc
xor eax, eax
push ebp
push 0x47ea12
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x47ea24
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x47e9f5
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404dcc
mov esi, eax
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
test ebx, ebx
jne 0x47e9ec
mov eax, dword [ebp - 0xc]
call fcn.0040af9c
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
mov eax, dword [ebp - 0x14]
call fcn.00402d68
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
sete al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ea19
lea eax, [ebp - 4]
call fcn.0040490c
ret
Function at 0x47f63c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404dbc
mov eax, dword [ebp - 8]
call fcn.00404dbc
xor eax, eax
push ebp
push 0x47f7c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040490c
mov dword [ebp - 0x1c], 0xff
mov eax, dword [ebp - 4]
call fcn.00404bcc
test eax, eax
jle 0x47f7a2
lea eax, [ebp - 4]
mov edx, 0x47f7dc
call fcn.00404bd4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.00404e24
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x47f7a2
mov eax, dword [ebp - 0x14]
call fcn.00402d38
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47f79b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.00404e24
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x47f782
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x47f7e0
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47f75a
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
movzx eax, word [eax]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.0040774c
movzx eax, ax
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
lea edx, [ebp - 0x3c]
mov ecx, 2
mov eax, 0x47f804
call fcn.0040c34c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
call fcn.004049a4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
call fcn.00404e24
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47f782
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.0040be34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f7a2
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00402d68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f7cc
lea eax, [ebp - 0x24]
call fcn.0040490c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404930
ret
Function at 0x4851f8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dbc
mov eax, dword [ebp - 8]
call fcn.00404dbc
xor eax, eax
push ebp
push 0x485380
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040490c
mov dword [ebp - 0x1c], 0xff
mov eax, dword [ebp - 4]
call fcn.00404bcc
test eax, eax
jle 0x48535d
lea eax, [ebp - 4]
mov edx, 0x485394
call fcn.00404bd4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.00404e24
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x48535d
mov eax, dword [ebp - 0x14]
call fcn.00402d38
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x485356
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.00404e24
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x48533d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x485398
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x485315
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
movzx eax, word [eax]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.0040774c
movzx eax, ax
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
lea edx, [ebp - 0x3c]
mov ecx, 2
mov eax, 0x4853bc
call fcn.0040c34c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
call fcn.004049a4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
call fcn.00404e24
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x48533d
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.0040be34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48535d
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00402d68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485387
lea eax, [ebp - 0x24]
call fcn.0040490c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404930
ret