joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416480
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 8]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
xor edi, edi
cmp eax, 0xffffffff
je 0x4164e3
push 0x20019
push 2
push edi
add ecx, 0xc
push 1
push ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x4164e3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ebx
push eax
push ecx
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4164ce
mov edi, 1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4164e3
mov eax, dword [ebx]
pop edi
mov dword [ebx], eax
pop esi
pop ebx
ret 0x10
xor eax, eax
pop edi
mov dword [ebx], eax
pop esi
pop ebx
ret 0x10

Function at 0x4164f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 8]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
xor edi, edi
cmp eax, 0xffffffff
je 0x41657b
push 0x20019
push 2
push edi
add ecx, 0xc
push 1
push ecx
push eax
call fcn.0040d9c0
mov ecx, eax
call fcn.0040e470
mov esi, eax
cmp esi, 0xffffffff
je 0x41657b
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push ebx
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x416567
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push ebp
push edx
push edi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416560
mov edi, 1
mov edx, dword [esp + 0x20]
push edx
call ebx
push esi
call ebx
test edi, edi
pop ebx
je 0x41657b
mov eax, dword [ebp]
pop edi
mov dword [ebp], eax
pop esi
pop ebp
ret 0x10
xor eax, eax
pop edi
mov dword [ebp], eax
pop esi
pop ebp
ret 0x10

Function at 0x416590
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 8]
push esi
push edi
xor edi, edi
cmp eax, 0xffffffff
je 0x4165ea
push 0xf003f
push 2
push edi
add ecx, 0xc
push 1
push ecx
push eax
call fcn.0040d9c0
mov ecx, eax
call fcn.0040e470
mov esi, eax
cmp esi, 0xffffffff
je 0x4165ea
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4165e3
mov edi, 1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x416600
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [ecx + 8]
push esi
push edi
xor edi, edi
cmp eax, 0xffffffff
je 0x416687
push 0x20019
push 2
push edi
add ecx, 0xc
push 1
push ecx
push eax
call fcn.0040d9c0
mov ecx, eax
call fcn.0040e470
mov esi, eax
cmp esi, 0xffffffff
je 0x416687
mov ecx, dword [esp + 0x10]
lea eax, [esp + 8]
push ebx
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41667b
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x416674
mov edi, 1
mov ecx, dword [esp + 0xc]
push ecx
call ebx
push esi
call ebx
mov eax, edi
pop ebx
pop edi
pop esi
pop ecx
ret 0x14
mov eax, edi
pop edi
pop esi
pop ecx
ret 0x14

Function at 0x416fe0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [ecx + 8]
sub esp, 0x210
cmp eax, 0xffffffff
push edi
je 0x417111
push 0x20019
push 2
push 0
add ecx, 0xc
push 1
push ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 8], edi
je 0x4170fe
mov ecx, dword [esp + 0x218]
lea eax, [esp + 4]
push ebx
push eax
push 0x20019
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [esp + 0x220]
test eax, eax
jne 0x4170ea
mov eax, dword [esp + 8]
push ebp
lea edx, [esp + 0x14]
push 0x208
push edx
push 0
push eax
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4170de
push esi
mov esi, dword [ebx]
cmp esi, 0x1f4
jae 0x4170c0
lea ecx, [esi + 1]
cmp esi, 0xffffffff
mov dword [ebx], ecx
je 0x4170c0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 4
push ecx
call fcn.0048621c
mov edx, eax
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebx + esi*4 + 0x1f8], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
mov eax, ebp
push 0x208
push ecx
push eax
push edx
inc ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x417065
pop esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx]
pop ebx
pop edi
add esp, 0x210
ret 8
mov ecx, dword [esp + 0x21c]
pop edi
mov eax, dword [ecx]
add esp, 0x210
ret 8
mov edx, dword [esp + 0x21c]
pop edi
mov eax, dword [edx]
add esp, 0x210
ret 8
Function at 0x417130
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [ecx + 8]
sub esp, 0x20c
cmp eax, 0xffffffff
push ebp
je 0x41722e
push 0x20019
push 2
push 0
add ecx, 0xc
push 1
push ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41721b
push ebx
lea eax, [esp + 0xc]
push 0x208
push eax
push 0
push ebp
mov dword [esp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, dword [esp + 0x218]
test eax, eax
jne 0x417207
push esi
push edi
mov esi, dword [ebx]
cmp esi, 0x1f4
jae 0x4171e4
lea ecx, [esi + 1]
cmp esi, 0xffffffff
mov dword [ebx], ecx
je 0x4171e4
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 4
push ecx
call fcn.0048621c
mov edx, eax
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebx + esi*4 + 0x1f8], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push 0x208
mov eax, ecx
inc ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x41718d
pop edi
pop esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx]
pop ebx
pop ebp
add esp, 0x20c
ret 4
mov edx, dword [esp + 0x214]
pop ebp
mov eax, dword [edx]
add esp, 0x20c
ret 4
mov eax, dword [esp + 0x214]
pop ebp
mov eax, dword [eax]
add esp, 0x20c
ret 4
Function at 0x41aec0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48f5c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
xor esi, esi
call fcn.00471297
mov eax, dword [esp + 0x30]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], esi
call fcn.0047135a
test eax, eax
je 0x41af1a
lea ecx, [esp + 4]
call fcn.0047157a
mov edx, dword [esp + 4]
push 0x10
lea ecx, [esp + 8]
call dword [edx + 0x38]
cmp eax, esi
jne 0x41af1a
mov esi, 1
lea ecx, [esp + 4]
call fcn.00471310
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0xffffffff
call fcn.004712d4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x41b030
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48f642
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x278
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x298]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x184]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x184]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0xa
rep movsb byte es:[edi], byte [esi]
mov edi, str..
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.00481a49
lea eax, [esp + 0x184]
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x294], ebp
call fcn.004822f6
mov ecx, dword [0x4b538c]
mov dword [esp + 0x18], ecx
push 0x5c
lea ecx, [esp + 0x18]
mov byte [esp + 0x294], 2
call fcn.0048123e
inc eax
lea edx, [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.004811c6
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x294], 3
call fcn.00482375
lea ecx, [esp + 0x1c]
mov byte [esp + 0x290], 2
call fcn.00482288
mov eax, dword [0x4b538c]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x44]
mov bl, 4
push ecx
push edx
mov byte [esp + 0x298], bl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41b1f1
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0x70]
lea ecx, [esp + 0x10]
push eax
call fcn.004823c5
mov ecx, dword [esp + 0x10]
push 0x4a9150
push ecx
call fcn.004720f0
add esp, 8
test eax, eax
je 0x41b1da
mov edx, dword [esp + 0x10]
push 0x4a914c
push edx
call fcn.004720f0
add esp, 8
test eax, eax
je 0x41b1da
lea eax, [esp + 0x70]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.004824d1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x294], 5
call fcn.00482375
lea ecx, [esp + 0x20]
mov byte [esp + 0x290], bl
call fcn.00482288
lea ecx, [esp + 0x10]
call fcn.0048273e
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
call fcn.00481bc9
lea ecx, [esp + 0x44]
push ecx
push esi
call edi
test eax, eax
jne 0x41b153
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x290], 2
call fcn.00482288
lea ecx, [esp + 0x18]
mov byte [esp + 0x290], 1
call fcn.00482288
lea ecx, [esp + 0x14]
mov byte [esp + 0x290], 0
call fcn.00482288
mov eax, dword [esp + 0x28]
mov dword [esp + 0x290], 0xffffffff
test eax, eax
mov dword [esp + 0x40], eax
jne 0x41b240
mov ebp, 1
lea ecx, [esp + 0x24]
call fcn.00481abd
mov ecx, dword [esp + 0x288]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x284
ret 4
Function at 0x41b270
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
push ebx
push edi
mov edi, dword [esp + 0x110]
mov ebx, ecx
push 0x4a919c
lea ecx, [edi + eax]
push ecx
call fcn.004724d0
add esp, 8
test eax, eax
je 0x41b2be
push esi
mov esi, eax
sub esi, edi
lea edx, [esp + 0xc]
push esi
push edi
push edx
call fcn.004725c0
add esp, 0xc
mov byte [esp + esi + 0xc], 0
inc esi
mov ecx, ebx
push esi
push edi
call fcn.0041b270
pop esi
lea eax, [esp + 8]
mov ecx, ebx
push eax
call fcn.0041b030
pop edi
pop ebx
test eax, eax
je 0x41b2e3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
add esp, 0x104
ret 8

Function at 0x41b2f0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x48f660
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4b538c]
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], ebp
push esi
call fcn.0041aec0
test eax, eax
je 0x41b3c8
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
cmp ebp, 1
jne 0x41b353
push esi
mov ecx, 0x4b9208
call fcn.00481b86
jmp 0x41b357
test ebp, ebp
je 0x41b3c8
mov al, byte [esp + 0x24]
test al, 2
je 0x41b36b
push 2
push esi
mov ecx, edi
call fcn.0041b270
jmp 0x41b3c8
test al, 1
je 0x41b3c8
push esi
lea ecx, [esp + 0x10]
call fcn.004823c5
push 0x5c
lea ecx, [esp + 0x10]
call fcn.0048123e
cmp eax, 0xffffffff
je 0x41b3c8
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004811c6
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
call fcn.00482375
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00482288
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.00482288
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x41b3f0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x118]
mov ebx, ecx
push 0x4a919c
xor ebp, ebp
lea ecx, [edi + eax]
push ecx
call fcn.004724d0
mov esi, eax
add esp, 8
test esi, esi
je 0x41b4bf
mov eax, dword [esp + 0x11c]
test eax, eax
jne 0x41b456
lea edx, [esi + 1]
push 0x4a919c
push edx
call fcn.004724d0
add esp, 8
test eax, eax
jne 0x41b456
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret 8
sub esi, edi
lea eax, [esp + 0x10]
push esi
push edi
push eax
call fcn.004725c0
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + esi + 0x10], 0
push ecx
mov ecx, ebx
call fcn.0041af50
test eax, eax
jne 0x41b499
lea edx, [esp + 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x41b499
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, 1
inc esi
mov ecx, ebx
push esi
push edi
call fcn.0041b3f0
test eax, eax
jne 0x41b4ba
test ebp, ebp
jne 0x41b4ba
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 8
mov ebp, 1
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 8

Function at 0x41b5a0
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov esi, ecx
push ebx
xor edi, edi
mov ebp, 1
call fcn.0041aec0
test eax, eax
je 0x41b626
mov al, byte [esp + 0x1c]
mov edi, dword [esp + 0x18]
test al, 0x20
je 0x41b5d6
push edi
push ebx
mov ecx, esi
call fcn.0041b4d0
mov ebp, eax
test ebp, ebp
je 0x41b62f
test byte [esp + 0x1c], 0x40
je 0x41b5e8
push edi
push ebx
mov ecx, esi
call fcn.0041b550
mov ebp, eax
test ebp, ebp
je 0x41b62f
push 0
push edi
mov ecx, esi
call fcn.0041b2f0
push 0
push edi
mov ecx, esi
call fcn.0041b3f0
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x41b62f
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
Function at 0x41b640
Capabilities:
Get file version info

Disassembly:
sub esp, 0x40c
lea eax, [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x41c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x41b726
cmp esi, 0x7d00
jae 0x41b726
push esi
call fcn.00472850
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41b726
mov ecx, dword [esp + 0x14]
push ebx
push esi
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41b726
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push str.StringFileInfo040904b0FileVersion
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41b70c
mov esi, dword [esp + 0xc]
test esi, esi
je 0x41b726
mov edx, dword [esp + 0x10]
cmp edx, 0x100
jae 0x41b726
test edx, edx
je 0x41b726
mov ecx, edx
lea edi, [esp + 0x18]
mov eax, ecx
mov dword [esp + edx*4 + 0x18], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x420]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.00472550
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x40c
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x40c
ret 8
Function at 0x41b740
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x48f67b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, dword [0x4b538c]
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x240]
lea ecx, [esp + 0x1c]
push ecx
push edi
mov dword [esp + 0x240], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebp
je 0x41b7c2
cmp esi, 0x7d00
jae 0x41b7c2
push esi
call fcn.00472850
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x41b7c2
mov edx, dword [esp + 0x1c]
push ebx
push esi
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x41b7f3
push ebx
call fcn.00472550
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x238], 0xffffffff
call fcn.00482288
xor eax, eax
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret 4
lea eax, [esp + 0x14]
push eax
push 0x4b9224
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
test dword [esp + 0x14], 0xfffffffc
jbe 0x41b8fa
mov eax, dword [0x4b9224]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + ebp*4 + 2]
mov dx, word [eax + ebp*4]
push ecx
push edx
lea eax, [esp + 0x134]
push str.StringFileInfo_04x_04xCompanyName
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
lea eax, [esp + 0x12c]
push ecx
push edx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41b8e0
mov esi, dword [esp + 0x24]
test esi, esi
je 0x41b8e0
mov eax, dword [esp + 0x20]
cmp eax, 0x100
jae 0x41b8e0
test eax, eax
je 0x41b8e0
mov ecx, eax
lea edi, [esp + 0x28]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x28], 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.004823c5
lea ecx, [esp + 0x10]
call fcn.0048273e
push str.CONEXANT
lea ecx, [esp + 0x14]
call fcn.00481260
cmp eax, 0xffffffff
jne 0x41b8f2
push str.CNXT
lea ecx, [esp + 0x14]
call fcn.00481260
cmp eax, 0xffffffff
jne 0x41b8f2
push 0x4ac3ac
lea ecx, [esp + 0x14]
call fcn.00481260
cmp eax, 0xffffffff
jne 0x41b8f2
mov ecx, dword [esp + 0x14]
inc ebp
shr ecx, 2
cmp ebp, ecx
jb 0x41b816
jmp 0x41b8fa
mov dword [esp + 0x18], 1
push ebx
call fcn.00472550
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x238], 0xffffffff
call fcn.00482288
mov eax, dword [esp + 0x18]
jmp 0x41b7d8
Function at 0x41b920
Capabilities:
Get file version info

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
lea eax, [esp + 0x18]
xor ebp, ebp
push eax
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebp
je 0x41b97d
cmp esi, 0x7d00
jae 0x41b97d
push esi
call fcn.00472850
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x41b97d
mov ecx, dword [esp + 0x18]
push ebx
push esi
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x41b98c
push ebx
call fcn.00472550
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x118
ret 0xc
lea edx, [esp + 0x10]
push edx
push 0x4b9224
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, 0xfffffffc
jbe 0x41ba6b
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x4b9224]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + edi*4 + 2]
mov dx, word [eax + edi*4]
push ecx
push edx
lea eax, [esp + 0x2c]
push str.StringFileInfo_04x_04xComments
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
lea eax, [esp + 0x24]
push ecx
push edx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41ba0b
mov esi, dword [esp + 0x20]
test esi, esi
je 0x41ba0b
mov eax, dword [esp + 0x1c]
cmp eax, 0x100
jae 0x41ba0b
test eax, eax
jne 0x41ba31
mov ecx, dword [esp + 0x10]
inc edi
shr ecx, 2
cmp edi, ecx
jb 0x41b9b8
push ebx
call fcn.00472550
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 0xc
mov ecx, dword [esp + 0x134]
cmp ecx, eax
jae 0x41ba4e
mov edi, dword [esp + 0x130]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x41ba5e
mov edi, dword [esp + 0x130]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov dword [esp + 0x14], 1
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.00472550
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 0xc
Function at 0x41ba90
Capabilities:
Delete file
Get common file path
Move file
Read .ini file

Disassembly:
sub esp, 0x600
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x41babe
mov eax, dword [esp + 0x604]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0x600
ret 4
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.wininit.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x100
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x618]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0xc]
lea eax, [esp + 0x20c]
push edx
push 0x400
push eax
push str.Rename
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea ecx, [esp + 0x10c]
push 0
push ecx
lea edx, [esp + eax + 0x214]
push str.NUL_s_c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0xc]
lea ecx, [esp + 0x20c]
push eax
push ecx
push str.Rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
pop edi
pop esi
pop ebx
add esp, 0x600
ret 4