joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ed0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov edi, edx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00418440
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00418440
xor eax, eax
mov dword [ebp - 0x418], 0
push str.SOFTWARECanonIJ_Scan_Utility
mov word [edi], ax
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x41c], 0
call fcn.00410465
add esp, 0x24
lea eax, [ebp - 0x418]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403ff7
push esi
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x208
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push str.AppPath
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403fc4
lea eax, [ebp - 0x414]
push eax
push 0x104
push edi
call fcn.00410465
add esp, 0xc
mov esi, 1
jmp 0x403fc6
xor esi, esi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x403fe5
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove esi, ecx
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0040f324
mov esp, ebp
pop ebp
ret
Function at 0x405030
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x420], 0
push 0x206
push eax
mov word [ebp - 0x414], ax
mov ebx, edx
lea eax, [ebp - 0x412]
mov dword [ebp - 0x418], 0
push eax
mov esi, ecx
mov dword [ebp - 0x41c], 0
call fcn.00418440
push 0x423dd0
lea eax, [ebp - 0x414]
mov dword [ebp - 0x424], 0
push 0x104
push eax
call fcn.00410465
add esp, 0x18
lea eax, [ebp - 0x414]
push 0x423c58
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [0x42934c]
test eax, eax
je 0x4050cd
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x414]
push eax
push 0x80000001
call edi
test eax, eax
jne 0x4051dd
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push dword [ebp - 0x420]
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4051d5
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.Push
push dword [ebp - 0x418]
call edi
test eax, eax
jne 0x4051cd
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00418440
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00410465
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f984
add esp, 0x20
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.Push
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x41c]
call esi
push dword [ebp - 0x418]
call esi
push dword [ebp - 0x420]
call esi
mov eax, dword [0x42934c]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4051f0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret
Function at 0x405200
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x210], 0
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov edi, ecx
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x214], 0
push eax
call fcn.00418440
push 0x423dd0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x218], 0
push 0x104
push eax
call fcn.00410465
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x423c58
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [0x42934c]
test eax, eax
je 0x405290
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
call esi
test eax, eax
jne 0x405312
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push dword [ebp - 0x210]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40530a
push str.Push
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x214]
call esi
push dword [ebp - 0x210]
call esi
mov eax, dword [0x42934c]
pop edi
pop esi
test eax, eax
je 0x405324
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret
Function at 0x4055a0
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x314], 0
push 0x206
push eax
mov word [ebp - 0x30c], ax
lea eax, [ebp - 0x30a]
push eax
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x310], 0
mov dword [ebp - 0x318], 0
call fcn.00418440
xor eax, eax
push 0xfe
push eax
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x102]
push eax
call fcn.00418440
push 0x423dd0
lea eax, [ebp - 0x30c]
push 0x104
push eax
call fcn.00410465
add esp, 0x24
lea eax, [ebp - 0x30c]
push 0x423c58
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [0x42934c]
test eax, eax
je 0x40565b
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x310]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x30c]
push eax
push 0x80000001
call ebx
test eax, eax
jne 0x40577a
push esi
xor esi, esi
mov dword [ebp - 0x314], 0x80
lea eax, [ebp - 0x328]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp - 0x310]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40576d
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4056d0
lea eax, [ebp - 0x318]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x310]
call ebx
test eax, eax
jne 0x405731
push 4
lea eax, [ebp - 0x31c]
push eax
push 4
push 0
push str.Available
push dword [ebp - 0x318]
call edi
push 4
lea eax, [ebp - 0x320]
push eax
push 4
push 0
push str.Protocol
push dword [ebp - 0x318]
call edi
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x328]
mov dword [ebp - 0x314], 0x80
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x314]
inc esi
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp - 0x310]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4056d0
pop edi
push dword [ebp - 0x310]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [0x42934c]
pop ebx
test eax, eax
je 0x40578b
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret
Function at 0x4057a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x210], 0
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov esi, edx
lea eax, [ebp - 0x20a]
mov edi, ecx
push eax
call fcn.00418440
push 0x423dd0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
push 0x104
push eax
call fcn.00410465
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x423d78
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40586e
lea eax, [esi*2 + 2]
push eax
push edi
push 1
push 0
push str.Language
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f324
mov esp, ebp
pop ebp
ret
Function at 0x405930
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41db10
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov dword [ebp - 0x74], edi
mov eax, ecx
mov dword [ebp - 0x68], eax
push 0
push eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x6c], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x405ac1
lea eax, [esi + 1]
mov dword [ebp - 4], 0
push eax
call fcn.0040f31b
add esp, 4
mov ebx, eax
mov dword [ebp - 0x7c], ebx
push ebx
push esi
push 0
push dword [ebp - 0x68]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov dword [ebp - 0x70], eax
test eax, eax
je 0x405aa9
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x68], 0
push eax
push str.VarFileInfoTranslation
push ebx
call esi
mov dword [ebp - 0x70], eax
test eax, eax
je 0x405aa9
xor eax, eax
push 0x4e
push eax
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push eax
call fcn.00418440
mov ecx, dword [ebp - 0x78]
push 0x423b24
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x64]
push 0x28
push eax
call fcn.0040fd8c
add esp, 0x24
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
call esi
mov dword [ebp - 0x70], eax
test eax, eax
je 0x405aa9
mov eax, dword [ebp - 0x74]
xorps xmm0, xmm0
mov esi, dword [ebp - 0x6c]
xor ebx, ebx
movq qword [edi], xmm0
mov dword [edi + 8], 0
xor edi, edi
add eax, 4
mov dword [ebp - 0x68], eax
jmp 0x405a50
push 0x2e
push esi
call fcn.0040fcde
mov esi, eax
add esp, 8
test esi, esi
je 0x405a8b
xor eax, eax
mov word [esi], ax
push dword [ebp - 0x6c]
call fcn.0040fe66
mov ecx, dword [ebp - 0x68]
add esi, 2
inc ebx
mov dword [ebp - 0x6c], esi
add esp, 4
inc edi
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x68], ecx
cmp ebx, 2
jl 0x405a50
jmp 0x405a9e
push dword [ebp - 0x6c]
call fcn.0040fe66
mov ecx, dword [ebp - 0x74]
add esp, 4
inc edi
mov dword [ecx + ebx*4 + 4], eax
mov eax, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x7c]
mov dword [eax], edi
mov eax, dword [ebp - 0x70]
test ebx, ebx
je 0x405ac3
push ebx
call fcn.00410160
mov eax, dword [ebp - 0x70]
add esp, 4
jmp 0x405ac3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret
Function at 0x405ae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x41c], 0
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov esi, ecx
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x428], esi
push eax
mov ebx, 1
call fcn.00418440
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00418440
push 0x423dd0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x424], 0
push 0x104
push eax
call fcn.00410465
push 0x423b74
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00410165
push 0x423d78
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00410165
add esp, 0x3c
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405cda
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0x208
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push str.SupportVersion
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x41c]
xor ecx, ecx
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x42c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x405cc8
xorps xmm0, xmm0
mov dword [ebp - 0x418], 0
lea eax, [esi + 4]
movq qword [esi], xmm0
push edi
lea edi, [ebp - 0x414]
mov dword [esi + 8], 0
xor ebx, ebx
mov dword [ebp - 0x420], eax
push 0x2e
push edi
call fcn.0040fcde
add esp, 8
mov esi, eax
push edi
test esi, esi
je 0x405c96
xor eax, eax
mov word [esi], ax
call fcn.0040fe66
mov ecx, dword [ebp - 0x420]
lea edi, [esi + 2]
inc ebx
add esp, 4
mov dword [ecx], eax
add ecx, 4
mov eax, dword [ebp - 0x418]
inc eax
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x418], eax
cmp ebx, 2
jl 0x405c31
mov ecx, dword [ebp - 0x428]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret
call fcn.0040fe66
mov ecx, dword [ebp - 0x428]
add esp, 4
mov dword [ecx + ebx*4 + 4], eax
mov eax, dword [ebp - 0x418]
pop edi
inc eax
pop esi
mov dword [ecx], eax
mov eax, dword [ebp - 0x42c]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f324
mov esp, ebp
pop ebp
ret
Function at 0x405cf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov edi, edx
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x218], ebx
push eax
mov esi, ecx
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x210], 0
call fcn.00418440
add esp, 0xc
mov dword [ebp - 0x224], 0x208
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405f0a
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push str.SelectorVersion
push dword [ebp - 0x210]
call esi
test eax, eax
jne 0x405e72
mov eax, dword [ebp - 0x218]
lea edi, [ebp - 0x20c]
xor ebx, ebx
xorps xmm0, xmm0
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
movq qword [eax], xmm0
mov dword [eax + 8], ebx
add eax, 4
mov dword [ebp - 0x220], eax
push 0x2e
push edi
call fcn.0040fcde
add esp, 8
mov esi, eax
push edi
test esi, esi
je 0x405e34
xor eax, eax
mov word [esi], ax
call fcn.0040fe66
mov ecx, dword [ebp - 0x220]
lea edi, [esi + 2]
add esp, 4
inc ebx
mov dword [ecx], eax
add ecx, 4
mov eax, dword [ebp - 0x21c]
inc eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], eax
cmp eax, 2
jl 0x405dc3
mov edx, dword [ebp - 0x218]
push dword [ebp - 0x210]
mov dword [edx], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret
call fcn.0040fe66
mov edx, dword [ebp - 0x218]
add esp, 4
mov ecx, dword [ebp - 0x21c]
inc ebx
push dword [ebp - 0x210]
mov dword [edx + ecx*4 + 4], eax
mov dword [edx], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push str.InstallDirectory
push dword [ebp - 0x210]
call esi
test eax, eax
jne 0x405edd
push 0x423b78
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, ebx
lea ecx, [ebp - 0x20c]
call fcn.00405930
push dword [ebp - 0x210]
mov dword [ebp - 0x214], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f324
mov esp, ebp
pop ebp
ret
Function at 0x406fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x550
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x534]
push esi
push edi
push eax
mov dword [ebp - 0x534], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.00418440
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00418440
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x41c]
add esp, 0x18
push 0x104
push eax
push dword [ebp + 0x14]
push ebx
call esi
push 0x104
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 0x10]
push ebx
call esi
push str.RT_RCDATA
push 0xfa0
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4070a4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4070a4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4070a4
movzx esi, word [eax]
movzx eax, si
dec eax
je 0x4070ae
xor esi, esi
jmp 0x4070b3
mov esi, 0x180000
cmp dword [ebp - 0x524], 2
jne 0x8b957201
push ebp
invalid
in al, dx
Function at 0x409370
Capabilities:
Terminate thread

Disassembly:
call fcn.0040714d
xor byte [edi + edi + 0x25], 0xff
jne 0x409384
push dword [ebp + 4]
push dword [ebp]
call fcn.0040794d
je 0x4093fb
in eax, 0xff
push dword [edx + esi*2 + 0x57]
push edi
lea ebx, [ebx]
mov edi, dword [esi]
cmp dword [edi + 0xc], 0
jne 0x4093f2
test edi, edi
je 0x4093f2
cmp dword [edi + 8], 0
je 0x4093f2
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xea60
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4093c8
push 0
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 4]
mov dword [edi + 8], 0
test eax, eax
je 0x4093eb
cmp eax, 0xffffffff
je 0x4093eb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
add esi, 4
cmp esi, dword [ebx + 8]
jne 0x409390
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x40a650
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41dc60
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x128], eax
mov esi, dword [ebp + 8]
push 0x560
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 4], 0
call fcn.0040fc8d
mov dword [ebp - 4], 0xffffffff
add esp, 4
xorps xmm0, xmm0
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x118], eax
mov ecx, 0x107
mov dword [eax + 4], 0
lea edi, [eax + 0x144]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 2
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0xfa0
mov dword [eax + 0x30], 0
movdqu xmmword [eax + 0x134], xmm0
xor eax, eax
push 0xfe
rep movsd dword es:[edi], dword [esi]
push eax
mov word [ebp - 0x114], ax
lea eax, [ebp - 0x112]
push eax
call fcn.00418440
mov ecx, dword [ebp - 0x124]
movzx eax, byte [ecx + 0x417]
push eax
movzx eax, byte [ecx + 0x416]
push eax
movzx eax, byte [ecx + 0x415]
push eax
movzx eax, byte [ecx + 0x414]
push eax
movzx eax, byte [ecx + 0x413]
push eax
movzx eax, byte [ecx + 0x412]
push eax
push ecx
push str._s__02X_02X_02X_02X_02X_02X
lea eax, [ebp - 0x114]
push 0x80
push eax
call fcn.0040fd8c
mov edi, dword [ebp - 0x120]
lea eax, [ebp - 0x114]
push eax
push 0x80
lea eax, [edi + 0x34]
push eax
call fcn.00410465
mov esi, dword [ebp - 0x128]
lea eax, [ebp - 0x118]
add esp, 0x40
mov ecx, dword [esi + 8]
cmp eax, ecx
jae 0x40a804
mov eax, dword [esi + 4]
lea edx, [ebp - 0x118]
cmp eax, edx
ja 0x40a804
mov edi, edx
sub edi, eax
sar edi, 2
cmp ecx, dword [esi + 0xc]
jne 0x40a7e6
push ecx
lea ecx, [esi + 4]
call fcn.00408e20
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40a81b
mov eax, dword [esi + 4]
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
add dword [esi + 8], 4
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
sar eax, 2
jmp 0x40a84b
cmp ecx, dword [esi + 0xc]
jne 0x40a812
push ecx
lea ecx, [esi + 4]
call fcn.00408e20
mov eax, dword [esi + 8]
test eax, eax
je 0x40a81b
mov dword [eax], edi
add dword [esi + 8], 4
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
sar eax, 2
jmp 0x40a84b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret 4
Function at 0x40acb0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00418440
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00418440
push 0x423f5c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00410465
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
add esp, 0x24
push str.IJNetworkScannerSelectorEX2Devices
push eax
call edi
push esi
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push esi
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00410465
lea eax, [ebp - 0x414]
push 0x5f
push eax
call fcn.0040fcde
add esp, 0x14
test eax, eax
je 0x40ad73
xor ecx, ecx
mov word [eax], cx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00418440
push 0x423f5c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00410465
add esp, 0x18
lea eax, [ebp - 0x20c]
push str.IJNetworkScannerSelectorEX2Model
push eax
call edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f324
mov esp, ebp
pop ebp
ret 4