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

Disassembly:
push 0xc
mov eax, 0x46b074
call fcn.004438a7
xor esi, esi
mov dword [ebp - 0x18], esi
cmp dword [ebp + 0xc], esi
je 0x4197f0
cmp dword [ebp + 0x10], esi
je 0x4197f0
push 0x474f2c
lea eax, [ebp - 0x14]
push eax
call fcn.00402ad3
push 0x486024
xor ecx, ecx
push 2
pop edx
mov eax, 0x105
mul edx
seto cl
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 0x18], 1
neg ecx
or ecx, eax
push ecx
call fcn.0043ed05
mov ebx, eax
pop ecx
pop ecx
cmp ebx, esi
je 0x4197ce
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax + 2]
push eax
push esi
push ebx
call fcn.0043e330
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
add eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push dword [ebp + 0xc]
push edi
call esi
cmp eax, 0xea
jne 0x4197b9
push ebx
call fcn.0043e1e6
mov eax, dword [ebp - 0x10]
mov dword [esp], 0x486024
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043ed05
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4197ce
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax + 2]
push eax
push 0
push ebx
call fcn.0043e330
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call esi
test eax, eax
jne 0x4197c7
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00402c33
push ebx
call fcn.0043e1e6
pop ecx
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402cca
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, esi
jmp 0x419800
push 0x474f2c
push dword [ebp + 8]
call fcn.00402ad3
mov eax, dword [ebp + 8]
call fcn.0044397f
ret

Function at 0x419806
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
je 0x419855
cmp dword [ebp + 0x10], 0
je 0x419855
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
call fcn.00402ad3
mov ecx, dword [ebp - 4]
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x419831
lea eax, [ecx - 0x10]
jmp 0x419850
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push dword [ebp + 0xc]
push str.SOFTWARE360DrvMgr
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004031f6
leave
ret

Function at 0x41988e
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push str.inst_times
push str.SOFTWARE_fbd30ee5_8150_549e_9aed_fd9d444318
push dword [esp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
ret

Function at 0x419908
Capabilities:
Set registry value

Disassembly:
push 8
lea eax, [esp + 0xc]
push eax
push 0xb
push str.inst_time
push str.SOFTWARE_fbd30ee5_8150_549e_9aed_fd9d444318
push dword [esp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
ret
Function at 0x419926
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
xor edi, edi
push str.SOFTWARE360DrvMgr
inc edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419988
push ebx
push esi
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push str.ori_pid
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x419984
cmp ebx, 0xea
jne 0x419987
mov dword [ebp - 8], edi
pop ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x419baf
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x46b3e9
call fcn.004438a7
push str.Path
lea eax, [ebp - 0x10]
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
xor esi, esi
push eax
mov dword [ebp - 0x14], esi
call fcn.004196b5
add esp, 0xc
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x419c0b
lea eax, [ebp - 0x18]
push str.360safe.exe
push eax
lea ecx, [ebp - 0x10]
call fcn.00406b10
pop ecx
pop ecx
push dword [eax]
mov dword [ebp - 0x14], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419c0b
mov bl, 1
jmp 0x419c0d
xor bl, bl
test byte [ebp - 0x14], 1
je 0x419c1e
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004031f6
test bl, bl
je 0x419c25
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, esi
call fcn.0044397f
ret

Function at 0x41b824
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push 0
push str.Path
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b88a
cmp dword [ebp + 8], 1
je 0x41b862
cmp dword [ebp + 8], 2
je 0x41b862
push 0xd
pop eax
jmp 0x41b88a
mov eax, dword [ebp - 4]
test edi, edi
je 0x41b884
test eax, eax
je 0x41b87f
test al, 1
jne 0x41b85d
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x41b884
jmp 0x41b85d
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 4
Function at 0x41bbc9
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x41bc11
push dword [ebp - 4]
push esi
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x41bc46
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x41bc16
sub eax, ecx
sar eax, 1
mov dword [ebp - 4], eax
lea eax, [esi + eax*2]
cmp word [eax - 2], 0x5c
je 0x41bc41
push 0x5c
pop ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi + ecx*2 + 2], ax
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x41cce9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x207
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x41cd80
cmp eax, esi
ja 0x41cd80
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41cd21
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x20e], 0x5c
je 0x41cd55
push edi
lea edi, [ebp - 0x20c]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x41cd43
mov esi, 0x474fcc
movsd dword es:[edi], dword [esi]
pop edi
push str.wininit.ini
lea eax, [ebp - 0x20c]
push eax
push str._s_s
push 0x208
push ebx
call fcn.0043f583
xor eax, eax
add esp, 0x14
mov word [ebx + 0x40e], ax
inc eax
jmp 0x41cd82
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043b2b9
leave
ret

Function at 0x41cf95
Capabilities:
Delete file
Move file

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x41cfa4
xor eax, eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x41cfb8
cmp eax, 0x20
je 0x41cfb8
xor eax, eax
inc eax
ret
xor eax, eax
cmp dword [0x4881bc], eax
je 0x41cfd6
push eax
push esi
call fcn.0041cd8f
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
setne cl
inc ecx
mov eax, ecx
ret
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 2
pop eax
ret
Function at 0x41cfe4
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x1604]
mov eax, 0x1684
call fcn.0045ff20
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x1600], eax
mov eax, dword [ebp + 0x160c]
push ebx
push esi
mov dword [ebp - 0x60], eax
mov esi, ecx
xor ebx, ebx
xor eax, eax
cmp esi, ebx
je 0x41d125
push edi
push 0x144e
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x56]
push ebx
push eax
call fcn.0043e330
lea eax, [ebp - 0x5c]
push eax
push esi
mov dword [ebp - 0x5c], 0x7c
call fcn.00441eea
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x41d0ed
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x13f8], ax
lea eax, [ebp + 0x13fa]
push eax
call fcn.0043e330
push esi
push dword [ebp - 0x60]
lea eax, [ebp + 0x13f8]
push 0x47813c
push 0x103
push eax
call fcn.0043f583
lea eax, [ebp + 0x13f8]
add esp, 0x20
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41d08f
sub eax, edx
lea ecx, [ebp + 0x13f8]
sar eax, 1
mov esi, ecx
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x41d0a5
sub ecx, esi
lea edi, [ebp + ebx*2 - 0x58]
dec edi
mov edx, ecx
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x41d0b9
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea ebx, [ebx + eax + 1]
lea eax, [ebp - 0x5c]
mov ecx, edx
push eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call fcn.00441eea
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41d04e
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov dword [ebp - 0x6a], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x66], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x78], eax
mov eax, 0x454
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x7c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop edi
mov ecx, dword [ebp + 0x1600]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b2b9
add ebp, 0x1604
leave
ret

Function at 0x41d534
Capabilities:
Get common file path
Get program files directory

Disassembly:
xor eax, eax
push ebx
mov ebx, 0x489600
cmp ax, word [0x489600]
jne 0x41d56d
push esi
push edi
push eax
push 0x26
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, ebx
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x41d556
push 0x10
pop ecx
mov esi, str.internet_exploreriexplore.exe
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x41db86
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 0xc], edi
je 0x41dc7d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 0x40000
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x41dc6e
push dword [ebp + 0x10]
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x41dc6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call esi
test eax, eax
jne 0x41dc6e
push edi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x41dc6e
push 0x20a
call fcn.0043b123
pop ecx
mov esi, eax
cmp dword [ebp - 8], edi
jbe 0x41dc64
push 0x105
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, edi
jne 0x41dc57
push 1
push dword [ebp + 0x10]
push esi
push dword [ebp - 4]
call fcn.0041db86
add esp, 0x10
jmp 0x41dc5e
cmp eax, 0x103
je 0x41dc64
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x41dc30
push esi
call fcn.0043e1e6
xor ebx, ebx
pop ecx
inc ebx
pop esi
cmp dword [ebp - 4], edi
je 0x41dc7d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41dfc5
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, dword [0x4881dc]
xor ebx, ebx
cmp edi, ebx
jne 0x41dffd
push 0x6000
call fcn.0043b123
mov edi, eax
mov dword [esp], 0x1000
push ebx
push edi
mov dword [0x4881dc], edi
call fcn.0043e330
add esp, 0xc
xor esi, esi
mov ecx, edi
mov eax, 0x400
mov edx, dword [ebp + 0xc]
cmp dword [ecx], edx
je 0x41e044
inc esi
add ecx, 0x18
cmp esi, eax
jl 0x41e006
xor esi, esi
mov ecx, edi
cmp dword [ecx], ebx
je 0x41e02f
inc esi
add ecx, 0x18
cmp esi, eax
jl 0x41e019
call fcn.0041dfab
jmp 0x41e141
mov eax, esi
imul eax, eax, 0x18
add eax, edi
mov dword [eax], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x41e141
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x2c]
add ecx, eax
mov eax, dword [ebp - 0x58]
adc edi, edx
cdq
push edx
push eax
push edi
push ecx
call fcn.0044bfb0
imul esi, esi, 0x18
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [0x4881dc]
add esi, eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xc], edx
mov edx, ecx
or edx, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ebx
je 0x41e12f
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
or edx, eax
je 0x41e12f
sub edi, dword [esi + 0x10]
sbb ebx, eax
mov eax, edi
or eax, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
je 0x41e141
mov eax, dword [ebp - 0x10]
sub eax, ecx
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [esi + 0xc]
push 0
push 0x64
push ecx
push eax
call fcn.0045cd90
push 0
push 2
push ebx
mov ecx, edx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
call fcn.0044bcb0
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, dword [ebp - 8]
push ebx
push edi
adc eax, edx
push eax
push ecx
call fcn.0044bcb0
mov ecx, dword [ebp - 0x10]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x14], ecx
jmp 0x41e143
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e85a
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2714]
mov eax, 0x2714
call fcn.0045ff20
push 0xffffffffffffffff
push 0x46b35e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x2710], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x271c]
mov ebx, ecx
mov ecx, 0x485f6c
lea esi, [ebp - 0x14]
mov dword [ebp - 0x10], eax
call fcn.00402b4a
mov esi, 0x2710
xor edi, edi
push esi
lea eax, [ebp]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.0043e330
add esp, 0xc
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00402c33
lea eax, [ebp - 0x14]
call fcn.0041faa6
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.0040be9d
push edi
push 0x80
push 3
push edi
push 3
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x41e936
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2710]
xor ecx, ebp
call fcn.0043b2b9
add ebp, 0x2714
leave
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
push 0x40
push dword [ebp - 0x10]
mov ebx, eax
sub ebx, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebx, edi
jbe 0x41e97c
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [ebp]
cmp ebx, esi
jbe 0x41e971
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub ebx, esi
jne 0x41e954
jmp 0x41e97c
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc edi
jmp 0x41e906

Function at 0x41eaed
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x3f90]
mov eax, 0x4010
call fcn.0045ff20
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x3f8c], eax
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.0043e330
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x41eb94
cmp eax, 0x3fff
ja 0x41eb94
lea ecx, [ebp - 0x74]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41eb94
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x474fcc
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41eb94
mov eax, dword [ebp - 0x78]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push ebx
push edi
call fcn.0043f583
xor eax, eax
add esp, 0x1c
mov word [edi + ebx*2 - 2], ax
inc eax
jmp 0x41eb96
xor eax, eax
mov ecx, dword [ebp + 0x3f8c]
xor ecx, ebp
call fcn.0043b2b9
add ebp, 0x3f90
leave
ret
Function at 0x41ed88
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x394], eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x41edb6
xor eax, eax
inc eax
jmp 0x41ee58
and dword [ebp - 0x80], 0
mov eax, ebx
push esi
mov esi, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x41edc2
sub eax, ecx
sar eax, 1
cmp eax, 0x104
jbe 0x41eddb
xor eax, eax
jmp 0x41ee57
xor eax, eax
push edi
cmp ax, word [ebx]
je 0x41ee53
push 0x474fcc
push esi
call fcn.0043f958
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x41ee09
push 0x478308
push esi
call fcn.0043f958
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41ee53
mov esi, edi
sub esi, ebx
sar esi, 1
test esi, esi
jle 0x41ee49
push 0x410
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0043e330
push esi
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.0043eabd
add esp, 0x18
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41ee46
call fcn.0041ed77
mov dword [ebp - 0x80], eax
lea esi, [edi + 2]
xor eax, eax
cmp ax, word [esi]
jne 0x41ede3
mov eax, dword [ebp - 0x80]
pop edi
pop esi
mov ecx, dword [ebp + 0x394]
xor ecx, ebp
call fcn.0043b2b9
add ebp, 0x398
leave
ret
Function at 0x41f47d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
push ebx
push esi
mov esi, dword [ebp + 0x3ac]
push edi
mov edi, dword [ebp + 0x3b0]
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x198], ax
lea eax, [ebp + 0x19a]
push eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], edi
call fcn.0043e330
mov eax, dword [ebp + 0x3b4]
push esi
add eax, eax
push str.CLSID_sInprocServer32
mov dword [ebp - 0x74], eax
mov ebx, 0x103
lea eax, [ebp + 0x198]
push ebx
push eax
mov dword [ebp - 0x7c], 1
call fcn.0043f583
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0x1c
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x7c]
push eax
push str.CodeBase
lea eax, [ebp + 0x198]
push eax
mov edi, SysReAllocString
push edi
call esi
test eax, eax
jne 0x41f524
xor eax, eax
inc eax
jmp 0x41f5ec
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x7c]
push eax
push 0
lea eax, [ebp + 0x198]
push eax
push edi
call esi
test eax, eax
je 0x41f51c
push dword [ebp - 0x80]
lea eax, [ebp + 0x198]
push str.CLSID_sLocalServer32
push ebx
push eax
call fcn.0043f583
mov eax, dword [ebp + 0x3b4]
add eax, eax
add esp, 0x10
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x7c]
push eax
push 0
lea eax, [ebp + 0x198]
push eax
push edi
call esi
test eax, eax
je 0x41f51c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push eax
call fcn.0043e330
push dword [ebp - 0x80]
lea eax, [ebp + 0x198]
push str.CLSID_sTreatAs
push ebx
push eax
call fcn.0043f583
add esp, 0x1c
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
lea eax, [ebp + 0x198]
push eax
push edi
mov dword [ebp - 0x74], 0x208
call esi
test eax, eax
jne 0x41f5e4
push dword [ebp + 0x3b4]
lea eax, [ebp - 0x70]
push dword [ebp - 0x78]
push eax
call fcn.0041f47d
add esp, 0xc
jmp 0x41f5ec
mov ecx, dword [ebp - 0x78]
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b2b9
add ebp, 0x3a4
leave
ret
Function at 0x41f88d
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x7fc]
sub esp, 0x87c
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x7f8], eax
mov eax, dword [ebp + 0x808]
push esi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x80c]
push edi
mov edi, dword [ebp + 0x804]
mov dword [ebp - 0x78], eax
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp + 0x1e0], ax
lea eax, [ebp + 0x1e2]
push eax
mov dword [ebp - 0x80], edi
call fcn.0043e330
add esp, 0xc
push dword [ebp - 0x7c]
lea eax, [ebp + 0x1e0]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp + 0x1e0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f927
mov eax, dword [ebp + 0x810]
push edi
push 0x475100
dec eax
push eax
push dword [ebp - 0x78]
call fcn.0043f583
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41fa61
xor eax, eax
push esi
push eax
mov word [ebp + 0x3e8], ax
lea eax, [ebp + 0x3ea]
push eax
call fcn.0043e330
push edi
push str._s.
mov edi, 0x103
lea eax, [ebp + 0x3e8]
push edi
push eax
call fcn.0043f583
add esp, 0x1c
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x74], eax
cmp eax, 0xffffffff
je 0x41fa5f
cmp dword [ebp - 0x70], 0x10
jne 0x41fa41
mov ecx, 0x476938
lea eax, [ebp - 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f9ae
test dx, dx
je 0x41f9aa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f9ae
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f988
xor eax, eax
jmp 0x41f9b3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41fa41
mov ecx, 0x4760d0
lea eax, [ebp - 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f9e9
test dx, dx
je 0x41f9e5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f9e9
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f9c3
xor eax, eax
jmp 0x41f9ee
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41fa41
xor eax, eax
push esi
push eax
mov word [ebp + 0x5f0], ax
lea eax, [ebp + 0x5f2]
push eax
call fcn.0043e330
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x80]
lea eax, [ebp + 0x5f0]
push str._s_s_
push edi
push eax
call fcn.0043f583
push dword [ebp + 0x810]
lea eax, [ebp + 0x5f0]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push eax
call fcn.0041f88d
add esp, 0x30
test eax, eax
jne 0x41fa78
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41f976
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [ebp + 0x7f8]
pop edi
xor ecx, ebp
pop esi
call fcn.0043b2b9
add ebp, 0x7fc
leave
ret
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41f91f