joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419704
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 0x419766
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 0x419762
cmp ebx, 0xea
jne 0x419765
mov dword [ebp - 8], edi
pop ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x41998d
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x46b269
call fcn.004436f7
push str.Path
lea eax, [ebp - 0x10]
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
xor esi, esi
push eax
mov dword [ebp - 0x14], esi
call fcn.00419493
add esp, 0xc
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x4199e9
lea eax, [ebp - 0x18]
push str.360safe.exe
push eax
lea ecx, [ebp - 0x10]
call fcn.0040bbc2
pop ecx
pop ecx
push dword [eax]
mov dword [ebp - 0x14], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4199e9
mov bl, 1
jmp 0x4199eb
xor bl, bl
test byte [ebp - 0x14], 1
je 0x4199fc
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004031f6
test bl, bl
je 0x419a03
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, esi
call fcn.004437cf
ret

Function at 0x41b61d
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 0x41b683
cmp dword [ebp + 8], 1
je 0x41b65b
cmp dword [ebp + 8], 2
je 0x41b65b
push 0xd
pop eax
jmp 0x41b683
mov eax, dword [ebp - 4]
test edi, edi
je 0x41b67d
test eax, eax
je 0x41b678
test al, 1
jne 0x41b656
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x41b67d
jmp 0x41b656
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 4
Function at 0x41c15b
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 0x41c1f2
cmp eax, esi
ja 0x41c1f2
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41c193
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x20e], 0x5c
je 0x41c1c7
push edi
lea edi, [ebp - 0x20c]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x41c1b5
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.0043f3d3
xor eax, eax
add esp, 0x14
mov word [ebx + 0x40e], ax
inc eax
jmp 0x41c1f4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043b103
leave
ret

Function at 0x41c407
Capabilities:
Delete file
Move file

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x41c416
xor eax, eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x41c42a
cmp eax, 0x20
je 0x41c42a
xor eax, eax
inc eax
ret
xor eax, eax
cmp dword [0x4881b8], eax
je 0x41c448
push eax
push esi
call fcn.0041c201
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 0x41c456
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x1604]
mov eax, 0x1684
call fcn.0045fd70
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 0x41c597
push edi
push 0x144e
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x56]
push ebx
push eax
call fcn.0043e180
lea eax, [ebp - 0x5c]
push eax
push esi
mov dword [ebp - 0x5c], 0x7c
call fcn.00441cbb
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x41c55f
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x13f8], ax
lea eax, [ebp + 0x13fa]
push eax
call fcn.0043e180
push esi
push dword [ebp - 0x60]
lea eax, [ebp + 0x13f8]
push 0x477d64
push 0x103
push eax
call fcn.0043f3d3
lea eax, [ebp + 0x13f8]
add esp, 0x20
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41c501
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 0x41c517
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 0x41c52b
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.00441cbb
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41c4c0
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.0043b103
add ebp, 0x1604
leave
ret

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

Disassembly:
xor eax, eax
push ebx
mov ebx, 0x4895f8
cmp ax, word [0x4895f8]
jne 0x41c9df
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 0x41c9c8
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 0x41cff8
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 0x41d0ef
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 0x41d0e0
push dword [ebp + 0x10]
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x41d0e0
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 0x41d0e0
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 0x41d0e0
push 0x20a
call fcn.0043af6d
pop ecx
mov esi, eax
cmp dword [ebp - 8], edi
jbe 0x41d0d6
push 0x105
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, edi
jne 0x41d0c9
push 1
push dword [ebp + 0x10]
push esi
push dword [ebp - 4]
call fcn.0041cff8
add esp, 0x10
jmp 0x41d0d0
cmp eax, 0x103
je 0x41d0d6
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x41d0a2
push esi
call fcn.0043e030
xor ebx, ebx
pop ecx
inc ebx
pop esi
cmp dword [ebp - 4], edi
je 0x41d0ef
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41d437
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, dword [0x4881d8]
xor ebx, ebx
cmp edi, ebx
jne 0x41d46f
push 0x6000
call fcn.0043af6d
mov edi, eax
mov dword [esp], 0x1000
push ebx
push edi
mov dword [0x4881d8], edi
call fcn.0043e180
add esp, 0xc
xor esi, esi
mov ecx, edi
mov eax, 0x400
mov edx, dword [ebp + 0xc]
cmp dword [ecx], edx
je 0x41d4b6
inc esi
add ecx, 0x18
cmp esi, eax
jl 0x41d478
xor esi, esi
mov ecx, edi
cmp dword [ecx], ebx
je 0x41d4a1
inc esi
add ecx, 0x18
cmp esi, eax
jl 0x41d48b
call fcn.0041d41d
jmp 0x41d5b3
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 0x41d5b3
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.0044be00
imul esi, esi, 0x18
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [0x4881d8]
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 0x41d5a1
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
or edx, eax
je 0x41d5a1
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 0x41d5b3
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.0045cbe0
push 0
push 2
push ebx
mov ecx, edx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
call fcn.0044bb00
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.0044bb00
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 0x41d5b5
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 0x41dccc
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2714]
mov eax, 0x2714
call fcn.0045fd70
push 0xffffffffffffffff
push 0x46b1de
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.0043e180
add esp, 0xc
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00402c33
lea eax, [ebp - 0x14]
call fcn.0041ef18
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.0040bc7f
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 0x41dda8
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.0043b103
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 0x41ddee
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [ebp]
cmp ebx, esi
jbe 0x41dde3
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub ebx, esi
jne 0x41ddc6
jmp 0x41ddee
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 0x41dd78

Function at 0x41df5f
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x3f90]
mov eax, 0x4010
call fcn.0045fd70
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.0043e180
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x41e006
cmp eax, 0x3fff
ja 0x41e006
lea ecx, [ebp - 0x74]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41e006
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 0x41e006
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.0043f3d3
xor eax, eax
add esp, 0x1c
mov word [edi + ebx*2 - 2], ax
inc eax
jmp 0x41e008
xor eax, eax
mov ecx, dword [ebp + 0x3f8c]
xor ecx, ebp
call fcn.0043b103
add ebp, 0x3f90
leave
ret
Function at 0x41e1fa
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 0x41e228
xor eax, eax
inc eax
jmp 0x41e2ca
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 0x41e234
sub eax, ecx
sar eax, 1
cmp eax, 0x104
jbe 0x41e24d
xor eax, eax
jmp 0x41e2c9
xor eax, eax
push edi
cmp ax, word [ebx]
je 0x41e2c5
push 0x474fcc
push esi
call fcn.0043f7a8
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x41e27b
push 0x477f30
push esi
call fcn.0043f7a8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41e2c5
mov esi, edi
sub esi, ebx
sar esi, 1
test esi, esi
jle 0x41e2bb
push 0x410
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0043e180
push esi
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.0043e90d
add esp, 0x18
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41e2b8
call fcn.0041e1e9
mov dword [ebp - 0x80], eax
lea esi, [edi + 2]
xor eax, eax
cmp ax, word [esi]
jne 0x41e255
mov eax, dword [ebp - 0x80]
pop edi
pop esi
mov ecx, dword [ebp + 0x394]
xor ecx, ebp
call fcn.0043b103
add ebp, 0x398
leave
ret
Function at 0x41e8ef
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.0043e180
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.0043f3d3
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 0x41e996
xor eax, eax
inc eax
jmp 0x41ea5e
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 0x41e98e
push dword [ebp - 0x80]
lea eax, [ebp + 0x198]
push str.CLSID_sLocalServer32
push ebx
push eax
call fcn.0043f3d3
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 0x41e98e
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push eax
call fcn.0043e180
push dword [ebp - 0x80]
lea eax, [ebp + 0x198]
push str.CLSID_sTreatAs
push ebx
push eax
call fcn.0043f3d3
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 0x41ea56
push dword [ebp + 0x3b4]
lea eax, [ebp - 0x70]
push dword [ebp - 0x78]
push eax
call fcn.0041e8ef
add esp, 0xc
jmp 0x41ea5e
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.0043b103
add ebp, 0x3a4
leave
ret
Function at 0x41ecff
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.0043e180
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 0x41ed99
mov eax, dword [ebp + 0x810]
push edi
push 0x475100
dec eax
push eax
push dword [ebp - 0x78]
call fcn.0043f3d3
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41eed3
xor eax, eax
push esi
push eax
mov word [ebp + 0x3e8], ax
lea eax, [ebp + 0x3ea]
push eax
call fcn.0043e180
push edi
push str._s.
mov edi, 0x103
lea eax, [ebp + 0x3e8]
push edi
push eax
call fcn.0043f3d3
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 0x41eed1
cmp dword [ebp - 0x70], 0x10
jne 0x41eeb3
mov ecx, 0x4768a8
lea eax, [ebp - 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41ee20
test dx, dx
je 0x41ee1c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ee20
add eax, 4
add ecx, 4
test dx, dx
jne 0x41edfa
xor eax, eax
jmp 0x41ee25
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41eeb3
mov ecx, 0x476040
lea eax, [ebp - 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41ee5b
test dx, dx
je 0x41ee57
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ee5b
add eax, 4
add ecx, 4
test dx, dx
jne 0x41ee35
xor eax, eax
jmp 0x41ee60
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41eeb3
xor eax, eax
push esi
push eax
mov word [ebp + 0x5f0], ax
lea eax, [ebp + 0x5f2]
push eax
call fcn.0043e180
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x80]
lea eax, [ebp + 0x5f0]
push str._s_s_
push edi
push eax
call fcn.0043f3d3
push dword [ebp + 0x810]
lea eax, [ebp + 0x5f0]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push eax
call fcn.0041ecff
add esp, 0x30
test eax, eax
jne 0x41eeea
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41ede8
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.0043b103
add ebp, 0x7fc
leave
ret
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41ed91
Function at 0x41ef43
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
push edi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call sub.gdiplus.dll_GdiplusStartup
push dword [ebp + 0x10]
movzx eax, word [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x41f029
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, esi
je 0x41f028
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, esi
je 0x41f028
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x41f028
push ebx
push edi
push eax
call fcn.0043e200
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp + 0xc], esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41f028
push dword [ebp + 0xc]
call fcn.0041f2b6
pop ecx
mov edi, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, esi
je 0x41f028
mov eax, dword [edi + 8]
mov dword [edi + 8], esi
cmp eax, esi
jne 0x41f020
push esi
lea eax, [ebp - 0xc]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
cmp eax, esi
je 0x41f020
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
pop ebx
push dword [ebp - 8]
call sub.gdiplus.dll_GdiplusShutdown
cmp dword [ebp - 4], esi
pop edi
pop esi
je 0x41f041
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x41f596
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 0x41f5de
push dword [ebp - 4]
push esi
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x41f613
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x41f5e3
sub eax, ecx
sar eax, 1
mov dword [ebp - 4], eax
lea eax, [esi + eax*2]
cmp word [eax - 2], 0x5c
je 0x41f60e
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