joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4105f8
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x254
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
xor ebx, ebx
push edi
mov dword [0x42bf88], ebx
mov edi, 0x1772
jmp 0x410618
inc edi
push ebx
push edi
push dword [0x4269d4]
call esi
test eax, eax
jne 0x410617
push 0x42d618
push str._sAkelFilesLangs.dll
mov edi, 0x426110
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
mov ebp, 0x1771
je 0x4106e0
xor ebx, ebx
inc ebx
lea eax, [esp + 0x40]
push eax
push 0x42bd80
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, eax
neg esi
sbb esi, esi
lea eax, [esp + 0x40]
push edi
and esi, 0xfffffff8
push eax
add esi, 8
call fcn.0040ae68
pop ecx
pop ecx
push edi
lea eax, [ebx + 0x1771]
push eax
push esi
push ebp
push dword [0x4269d4]
call dword [sym.imp.USER32.dll_InsertMenuW]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
inc ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410660
push 0
lea eax, [ebx - 1]
add ebx, 0x1771
push ebx
push 0x800
push ebp
push dword [0x4269d4]
mov dword [0x42bf88], eax
call dword [sym.imp.USER32.dll_InsertMenuW]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x400
push edi
push 0x39
push dword [0x429b9c]
call fcn.0040b51d
mov ax, word [0x42bd80]
add esp, 0x10
neg ax
push edi
push ebp
sbb eax, eax
and eax, 0xfffffff8
add eax, 8
push eax
push ebp
push dword [0x4269d4]
call dword [sym.imp.USER32.dll_ModifyMenuW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret
Function at 0x410d27
Capabilities:
Get graphical window text
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
xor edi, edi
inc edi
xor esi, esi
cmp dword [section..data], edi
jne 0x410d62
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x41dac0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x410e95
push ebx
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 8], edi
mov dword [ebp - 0x2c], esi
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x428e80
mov edi, 0x1005
jmp 0x410e5c
mov eax, dword [ebp - 0x28]
movzx ecx, word [ebp - 0x14]
shr eax, 0xc
dec eax
movzx eax, ax
shl eax, 0x10
or eax, ecx
cmp dword [section..data], 1
mov dword [ebp - 4], eax
jne 0x410dc5
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push dword [ebp - 0x20]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x410e82
jmp 0x410de3
push 0x425fc0
push eax
push dword [ebp - 0x20]
push 0x41dae0
call fcn.00409d31
add esp, 0x10
test eax, eax
je 0x410e82
push dword [ebp - 0x20]
push 0x42bf8c
call fcn.0040954c
xor edx, edx
cmp eax, edx
pop ecx
pop ecx
je 0x410e2c
cmp dword [eax + 0x114], 1
mov ecx, dword [ebp - 4]
je 0x410e17
cmp ecx, edx
jne 0x410e17
push eax
push 0x42bf8c
call fcn.0040967c
pop ecx
pop ecx
jmp 0x410e49
mov word [eax + 0x10c], cx
mov ecx, dword [ebp - 4]
shr ecx, 0x10
mov dword [eax + 0x110], ecx
jmp 0x410e49
mov eax, dword [ebp - 4]
push edx
push edx
push edx
shr eax, 0x10
push eax
push dword [ebp - 4]
push dword [ebp - 0x20]
push 0x42bf8c
call fcn.0040959a
add esp, 0x1c
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push 0
push edi
push dword [ebp + 8]
mov dword [ebp - 0x24], 0xf000
mov dword [ebp - 0x1c], 0x400
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], 0xd
call esi
test eax, eax
jne 0x410d86
cmp dword [section..data], 1
pop ebx
jne 0x410e95
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret
Function at 0x410e99
Capabilities:
Get graphical window text
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
xor edi, edi
inc edi
xor esi, esi
cmp dword [section..data], edi
jne 0x410ed4
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SoftwareAkelsoftAkelPadPlugs
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x411007
push ebx
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 8], edi
mov dword [ebp - 0x2c], esi
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x426110
mov edi, 0x104b
jmp 0x410fce
mov eax, dword [ebp - 0x28]
movzx ecx, word [ebp - 0x14]
shr eax, 0xc
dec eax
movzx eax, ax
shl eax, 0x10
or eax, ecx
cmp dword [section..data], 1
mov dword [ebp - 4], eax
jne 0x410f37
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push dword [ebp - 0x20]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x410ff4
jmp 0x410f55
push 0x421b00
push eax
push dword [ebp - 0x20]
push str.Plugs
call fcn.00409d5d
add esp, 0x10
test eax, eax
je 0x410ff4
push dword [ebp - 0x20]
push 0x42bf8c
call fcn.00409573
xor edx, edx
cmp eax, edx
pop ecx
pop ecx
je 0x410f9e
cmp dword [eax + 0x218], 1
mov ecx, dword [ebp - 4]
je 0x410f89
cmp ecx, edx
jne 0x410f89
push eax
push 0x42bf8c
call fcn.0040967c
pop ecx
pop ecx
jmp 0x410fbb
mov word [eax + 0x210], cx
mov ecx, dword [ebp - 4]
shr ecx, 0x10
mov dword [eax + 0x214], ecx
jmp 0x410fbb
mov eax, dword [ebp - 4]
push edx
push edx
push edx
shr eax, 0x10
push eax
push dword [ebp - 4]
push dword [ebp - 0x20]
push 0x42bf8c
call fcn.0040960b
add esp, 0x1c
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push 0
push edi
push dword [ebp + 8]
mov dword [ebp - 0x24], 0xf000
mov dword [ebp - 0x1c], 0x400
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], 0xd
call esi
test eax, eax
jne 0x410ef8
cmp dword [section..data], 1
pop ebx
jne 0x411007
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret
Function at 0x41100b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x41dac0
push 0x80000001
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4110cd
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
mov esi, 0x428e80
push esi
push ebx
jmp 0x4110ab
inc dword [ebp - 0x10]
cmp dword [ebp - 4], ebx
je 0x411096
mov eax, dword [ebp - 4]
push ebx
push ebx
push ebx
shr eax, 0x10
push eax
push dword [ebp - 4]
push esi
push 0x42bf8c
call fcn.0040959a
mov eax, dword [ebp - 4]
shr eax, 0x10
add esp, 0x1c
test ax, ax
je 0x411096
push 1
push esi
call fcn.0040932d
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 0x400
call edi
test eax, eax
je 0x41105e
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4110d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareAkelsoftAkelPadPlugs
push 0x80000001
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411192
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
mov esi, 0x426110
push esi
push ebx
jmp 0x411170
inc dword [ebp - 0x10]
cmp dword [ebp - 4], ebx
je 0x41115b
mov eax, dword [ebp - 4]
push ebx
push ebx
push ebx
shr eax, 0x10
push eax
push dword [ebp - 4]
push esi
push 0x42bf8c
call fcn.0040960b
mov eax, dword [ebp - 4]
shr eax, 0x10
add esp, 0x1c
test ax, ax
je 0x41115b
push 1
push esi
call fcn.00409371
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 0x400
call edi
test eax, eax
je 0x411123
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411195
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, 0x425fc0
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
call fcn.0040abcb
test eax, eax
pop ecx
je 0x411260
push esi
push 0xfa01
push ebx
push dword [0x428e78]
call fcn.0040b8a7
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
mov esi, eax
je 0x41125f
push edi
push 0xfa00
push eax
push 0x41d4b8
push ebx
mov ebx, 0x41dae0
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x41124c
push edi
lea eax, [ebp - 8]
push eax
push esi
push ebx
call fcn.00409cc2
mov ecx, dword [ebp - 8]
xor eax, eax
add esp, 0x10
cmp ecx, eax
je 0x41123c
push eax
push eax
push eax
mov dword [ebp - 4], ecx
shr dword [ebp - 4], 0x10
movzx eax, word [ebp - 4]
push eax
push ecx
push esi
push 0x42bf8c
call fcn.0040959a
add esp, 0x1c
cmp word [ebp - 4], 0
je 0x41123c
push 1
push esi
call fcn.0040932d
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x4111f5
push dword [ebp - 0xc]
push 0
push dword [0x428e78]
call fcn.0040b929
add esp, 0xc
pop esi
pop edi
pop ebx
leave
ret

Function at 0x411264
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, 0x421b00
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
call fcn.0040abf9
test eax, eax
pop ecx
je 0x411330
push esi
push 0x1f402
push ebx
push dword [0x428e78]
call fcn.0040b8a7
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
mov esi, eax
je 0x41132f
push edi
push 0xfa00
push eax
push 0x41d4e0
push ebx
mov ebx, str.Plugs
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x41131c
push edi
lea eax, [ebp - 8]
push eax
push esi
push ebx
call fcn.00409cf9
mov ecx, dword [ebp - 8]
xor eax, eax
add esp, 0x10
cmp ecx, eax
je 0x41130b
push eax
push eax
push eax
mov dword [ebp - 4], ecx
shr dword [ebp - 4], 0x10
movzx eax, word [ebp - 4]
push eax
push ecx
push esi
push 0x42bf8c
call fcn.0040960b
add esp, 0x1c
cmp word [ebp - 4], 0
je 0x41130b
push 1
push esi
call fcn.00409371
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x4112c4
push dword [ebp - 0xc]
push 0
push dword [0x428e78]
call fcn.0040b929
add esp, 0xc
pop esi
pop edi
pop ebx
leave
ret
Function at 0x411a03
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [eax + 4]
mov eax, dword [ebx + 4]
cmp eax, 0x104
push edi
je 0x411ad9
cmp eax, 0x100
jne 0x411b0e
test esi, esi
je 0x411a97
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, byte [esi + 0x10c]
cmp eax, dword [ebx + 8]
jne 0x411a90
push 0x11
call edi
xor ecx, ecx
mov cl, byte [esi + 0x10d]
shr eax, 7
not eax
shr ecx, 1
not ecx
xor eax, ecx
test al, 1
jne 0x411a90
push 0x12
call edi
xor ecx, ecx
mov cl, byte [esi + 0x10d]
shr eax, 7
not eax
shr ecx, 2
not ecx
xor eax, ecx
test al, 1
jne 0x411a90
push 0x10
call edi
xor ecx, ecx
mov cl, byte [esi + 0x10d]
shr eax, 7
not eax
not ecx
xor eax, ecx
test al, 1
je 0x411adf
mov esi, dword [esi + 4]
test esi, esi
jne 0x411a34
xor eax, eax
pop edi
pop esi
pop ebx
ret
movzx eax, byte [esi + 0x10c]
cmp eax, dword [ebx + 8]
jne 0x411ad6
movzx ax, byte [esi + 0x10d]
test al, 2
jne 0x411ad6
test al, 4
je 0x411ad6
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
mov cl, byte [esi + 0x10d]
shr eax, 7
not eax
not ecx
xor eax, ecx
test al, 1
je 0x411adf
mov esi, dword [esi + 4]
test esi, esi
jne 0x411a9d
jmp 0x411a97
mov eax, dword [esi + 0x118]
test eax, eax
je 0x411af3
push dword [esi + 0x11c]
call eax
jmp 0x411b32
lea eax, [esi + 8]
push 0
push eax
call fcn.00411334
pop ecx
dec eax
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x114], eax
jmp 0x411b32
cmp eax, 0x408
jne 0x411b1f
push dword [ebx + 0xc]
call fcn.004117d5
jmp 0x411b32
cmp eax, 0x409
jne 0x411a97
push dword [ebx + 0xc]
call fcn.004118e3
xor eax, eax
pop ecx
inc eax
jmp 0x411a99
Function at 0x411b3b
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [eax + 4]
mov eax, dword [ebx + 4]
cmp eax, 0x104
push edi
je 0x411c11
cmp eax, 0x100
jne 0x411c46
test esi, esi
je 0x411bcf
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, byte [esi + 0x210]
cmp eax, dword [ebx + 8]
jne 0x411bc8
push 0x11
call edi
xor ecx, ecx
mov cl, byte [esi + 0x211]
shr eax, 7
not eax
shr ecx, 1
not ecx
xor eax, ecx
test al, 1
jne 0x411bc8
push 0x12
call edi
xor ecx, ecx
mov cl, byte [esi + 0x211]
shr eax, 7
not eax
shr ecx, 2
not ecx
xor eax, ecx
test al, 1
jne 0x411bc8
push 0x10
call edi
xor ecx, ecx
mov cl, byte [esi + 0x211]
shr eax, 7
not eax
not ecx
xor eax, ecx
test al, 1
je 0x411c17
mov esi, dword [esi + 4]
test esi, esi
jne 0x411b6c
xor eax, eax
pop edi
pop esi
pop ebx
ret
movzx eax, byte [esi + 0x210]
cmp eax, dword [ebx + 8]
jne 0x411c0e
movzx ax, byte [esi + 0x211]
test al, 2
jne 0x411c0e
test al, 4
je 0x411c0e
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
mov cl, byte [esi + 0x211]
shr eax, 7
not eax
not ecx
xor eax, ecx
test al, 1
je 0x411c17
mov esi, dword [esi + 4]
test esi, esi
jne 0x411bd5
jmp 0x411bcf
mov eax, dword [esi + 0x21c]
test eax, eax
je 0x411c2b
push dword [esi + 0x220]
call eax
jmp 0x411c6a
lea eax, [esi + 8]
push 0
push eax
call fcn.00411575
pop ecx
dec eax
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x218], eax
jmp 0x411c6a
cmp eax, 0x408
jne 0x411c57
push dword [ebx + 0xc]
call fcn.0041185c
jmp 0x411c6a
cmp eax, 0x409
jne 0x411bcf
push dword [ebx + 0xc]
call fcn.00411973
xor eax, eax
pop ecx
inc eax
jmp 0x411bd1
Function at 0x412693
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call fcn.0040aeaf
cmp eax, esi
pop ecx
je 0x412806
lea ecx, [ebp + 8]
push ecx
push 0x20019
push esi
dec eax
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412806
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
mov edi, 0x428e80
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push 0x41d4b8
push dword [ebp + 8]
mov dword [ebp - 4], 0x400
call ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0x41dd98
mov esi, 0x4269e0
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp + 8]
push eax
push 0x20019
push 0
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412804
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push 0x41d4b8
push dword [ebp + 8]
mov dword [ebp - 4], 0x400
call ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [0x4269e0]
xor ecx, ecx
test al, al
je 0x412778
mov edx, esi
cmp al, 0x22
je 0x412771
mov byte [ecx + 0x428e80], al
inc ecx
inc edx
mov al, byte [edx]
test al, al
jne 0x412766
push edi
mov byte [ecx + 0x428e80], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x4127a2
mov cl, byte [eax + 0x428e80]
cmp cl, 0x2c
je 0x4127a9
cmp cl, 0x2d
je 0x4127a2
cmp cl, 0x30
jl 0x4127c9
cmp cl, 0x39
jg 0x4127c9
dec eax
test eax, eax
jg 0x412788
jmp 0x4127c9
mov byte [eax + 0x428e80], 0
lea eax, [eax + 0x428e81]
push eax
call section..text
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
jne 0x4127c9
and dword [ebp - 8], 0
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov edi, dword [ebp - 8]
push 1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push esi
call dword [0x421d4c]
cmp dword [ebp + 0xc], 0
je 0x4127f9
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41282b
mov dword [eax], edi
jmp 0x41282b
xor esi, esi
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x412810
mov byte [eax], 0
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x412819
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x412822
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x41282b
mov dword [eax], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412830
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0040aeda
xor esi, esi
cmp eax, esi
pop ecx
je 0x4129c2
lea ecx, [ebp + 8]
push ecx
push 0x20019
push esi
add eax, 0xfffffffe
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4129c2
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
mov edi, 0x428e80
push edi
lea eax, [ebp - 8]
push eax
push esi
push 0x41d4e0
push dword [ebp + 8]
mov dword [ebp - 4], 0x200
call ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push str._sDefaultIcon
mov esi, 0x4269e0
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp + 8]
push eax
push 0x20019
push 0
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4129c0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push 0x41d4e0
push dword [ebp + 8]
mov dword [ebp - 4], 0x200
call ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4269e0]
xor ebx, ebx
xor ecx, ecx
cmp ax, bx
je 0x41291d
mov edx, esi
cmp ax, 0x22
je 0x412913
mov word [ecx*2 + 0x428e80], ax
inc ecx
inc edx
inc edx
mov ax, word [edx]
cmp ax, bx
jne 0x412904
push edi
mov word [ecx*2 + 0x428e80], bx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x41294e
mov cx, word [eax*2 + 0x428e80]
cmp cx, 0x2c
je 0x41298e
cmp cx, 0x2d
je 0x41294e
cmp cx, 0x30
jb 0x412953
cmp cx, 0x39
ja 0x412953
dec eax
cmp eax, ebx
jg 0x41292e
mov ebx, dword [ebp + 8]
push 0x200
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push esi
call dword [0x429bfc]
cmp dword [ebp + 0xc], 0
je 0x412983
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4129e7
mov dword [eax], ebx
jmp 0x4129e7
push ebx
push ebx
push 0x400
push esi
lea eax, [eax*2 + 0x428e80]
push 0xffffffffffffffff
mov word [eax], bx
add eax, 2
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call section..text
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
jne 0x412956
xor ebx, ebx
jmp 0x412956
xor esi, esi
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x4129cc
mov word [eax], si
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x4129d5
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x4129de
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x4129e7
mov dword [eax], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412b26
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 0x3c]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [esi], eax
mov dword [edi], eax
mov dword [ebx], eax
mov dword [ecx], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp + 0x14], eax
je 0x412bda
push eax
push 0
push dword [0x428e78]
call fcn.0040b8a7
add esp, 0xc
test eax, eax
mov dword [ebp + 0x18], eax
je 0x412bda
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x412bc7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x41e9ac
push dword [ebp + 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x412bc7
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov edx, dword [eax + 8]
mov ecx, 0xffff
and edx, ecx
mov dword [ebx], edx
movzx edx, word [eax + 0xe]
mov dword [edi], edx
mov eax, dword [eax + 0xc]
and eax, ecx
mov dword [esi], eax
push dword [ebp + 0x18]
push 0
push dword [0x428e78]
call fcn.0040b929
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x412bdf
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 0x3c]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [esi], eax
mov dword [edi], eax
mov dword [ebx], eax
mov dword [ecx], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [ebp + 0x14], eax
je 0x412c93
push eax
push 0
push dword [0x428e78]
call fcn.0040b8a7
add esp, 0xc
test eax, eax
mov dword [ebp + 0x18], eax
je 0x412c93
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x412c80
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x41e9b0
push dword [ebp + 0x18]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x412c80
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov edx, dword [eax + 8]
mov ecx, 0xffff
and edx, ecx
mov dword [ebx], edx
movzx edx, word [eax + 0xe]
mov dword [edi], edx
mov eax, dword [eax + 0xc]
and eax, ecx
mov dword [esi], eax
push dword [ebp + 0x18]
push 0
push dword [0x428e78]
call fcn.0040b929
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret