joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c31b0
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c8
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, edx
push ebx
mov dword [ebp - 0x9c4], ecx
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x9c8], ecx
lea ecx, [ebp - 0x310]
push edi
mov dword [ebp - 0x9c0], eax
call fcn.004c33f0
lea eax, [ebp - 0x310]
push eax
push 0
call fcn.004f5d20
add esp, 8
mov dword [ebp - 0x9bc], 1
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x9b0], esi
mov dword [ebp - 0x9ac], ebx
nop word [eax + eax]
mov dword [ebp - 0x9b8], 0
nop word [eax + eax]
test ebx, ebx
jne 0x4c3388
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ecx, ecx
mov edi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004276a9
add esp, 4
mov dword [ebp - 0x9b4], eax
mov esi, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, esi
cmp word [eax], bx
je 0x4c32a0
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x4c3283
cmp eax, 2
jne 0x4c3290
mov dword [ebp + ebx*4 - 0x9a8], esi
inc ebx
nop dword [eax + eax]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x4c3290
cmp word [esi], ax
jne 0x4c3272
xor esi, esi
test ebx, ebx
jle 0x4c32f3
nop word [eax + eax]
mov edi, dword [ebp + esi*4 - 0x9a8]
mov ecx, edi
call fcn.004c3500
test eax, eax
je 0x4c32ee
push dword [ebp - 0x9c0]
mov edx, edi
lea ecx, [ebp - 0x928]
call fcn.004f5150
add esp, 4
lea eax, [ebp - 0x928]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c33b1
inc esi
cmp esi, ebx
jl 0x4c32b0
mov esi, dword [ebp - 0x9b0]
mov ebx, dword [ebp - 0x9ac]
push dword [ebp - 0x9b4]
call fcn.00427666
add esp, 4
test ebx, ebx
jne 0x4c3322
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004fcc00
test eax, eax
js 0x4c3395
mov eax, dword [ebp - 0x9b8]
inc eax
mov dword [ebp - 0x9b8], eax
cmp eax, 0xa
jl 0x4c3230
test ebx, ebx
jne 0x4c3388
cmp dword [ebp + 0x10], ebx
je 0x4c3395
mov edi, dword [ebp - 0x9c4]
mov edx, dword [ebp - 0x9c8]
mov ecx, dword [0x56ab2c]
push 0x41
push edi
call fcn.004b9330
add esp, 8
cmp eax, 1
je 0x4c3388
mov ecx, str.AREYOUSUREYOUWANTTOQUIT
call fcn.004f9a90
mov ecx, dword [0x56ab2c]
mov edx, eax
push 0x124
push edi
call fcn.004b9330
add esp, 8
cmp eax, 6
je 0x4c3395
cmp dword [ebp - 0x9bc], 0
jne 0x4c3220
push esi
call fcn.00427666
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00427655
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x9b0]
push esi
push edi
push 0x535d88
push 0x569198
call fcn.004041f0
mov ebx, 1
mov dword [ebp - 0x9bc], 0
add esp, 0x10
mov dword [ebp - 0x9ac], ebx
jmp 0x4c32ff
Function at 0x4c3500
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6dc
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x630]
xor edi, edi
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4c3520
lea eax, [ebp - 0x630]
push eax
call fcn.0043a5fe
add esp, 4
lea eax, [ebp - 0x62e]
cmp word [ebp - 0x630], 0x22
lea esi, [ebp - 0x630]
cmove esi, eax
movzx ecx, word [esi]
lea eax, [ecx - 0x61]
cmp ax, 0x19
ja 0x4c3681
cmp word [esi + 2], 0x3a
jne 0x4c3681
cmp dword [ecx*4 + 0x569fcc], edi
je 0x4c366b
lea ecx, [ebp - 0x6d8]
call fcn.004cbf80
cmp dword [ebp - 0x6c8], 2
jne 0x4c366b
movzx eax, word [esi + 2]
push eax
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x14]
push 0x535d58
push eax
call fcn.004041f0
add esp, 0x10
lea eax, [ebp - 0x14]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4c3610
push 0
lea eax, [ebp - 0x634]
push eax
push 0
push 0
push 0
push 0
push 0x2d4800
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4c3610
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x14]
push 0x535d94
push eax
call fcn.004041f0
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
add esp, 0xc
push 1
call ebx
push 0
push 0
mov edi, eax
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x63c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push edi
mov esi, eax
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
cmp ecx, 0x5c
jne 0x4c3692
cmp word [esi + 2], cx
mov eax, 1
cmove edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427655
mov esp, ebp
pop ebp
ret
Function at 0x4c4140
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1864
call fcn.004282c0
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
xor ecx, ecx
call fcn.004c3050
mov edx, ebx
mov ecx, 0x535e30
call fcn.004c3030
push 0x533930
push esi
call fcn.004f5ed0
add esp, 8
test eax, eax
je 0x4c41fa
lea eax, [ebp - 0x1864]
push esi
push eax
call fcn.004f5d20
add esp, 8
lea eax, [ebp - 0x1864]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c4210
test al, 0x10
je 0x4c41bf
mov ecx, esi
call fcn.004c3050
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x310]
push esi
push eax
call fcn.004f5eb0
add esp, 8
lea ecx, [ebp - 0x310]
call fcn.004f5710
mov edi, eax
test edi, edi
je 0x4c420a
lea ecx, [ebp - 0x310]
mov byte [edi], 0
call fcn.004c3050
lea ecx, [edi + 1]
mov edx, ebx
call fcn.004c3030
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
mov edx, ebx
mov ecx, esi
jmp 0x4c41f4
push esi
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0xc34]
push eax
lea edx, [ebp - 0x310]
lea ecx, [ebp - 0x61c]
call fcn.0047d890
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0xf40]
push 0x535d3c
push eax
call fcn.00401500
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x124c]
push 0x535d3c
push eax
call fcn.00401500
add esp, 0x2c
lea ecx, [ebp - 0xf40]
call fcn.004c3050
mov edx, ebx
lea ecx, [ebp - 0x124c]
call fcn.004c3030
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00427655
mov esp, ebp
pop ebp
ret
Function at 0x4c5410
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
xor cl, cl
mov dword [ebp - 0x10], esi
xor bl, bl
mov dword [ebp - 0xc], edi
xor eax, eax
mov dword [ebp - 8], ecx
test esi, esi
je 0x4c54e9
cmp esi, 0x20
jb 0x4c54e9
mov ecx, esi
xorps xmm2, xmm2
and ecx, 0xffffffe0
xorps xmm4, xmm4
xorps xmm3, xmm3
xorps xmm5, xmm5
nop
movups xmm1, xmmword [edi + eax]
movaps xmm0, xmm1
pxor xmm5, xmm1
movups xmm1, xmmword [edi + eax + 0x10]
add eax, 0x20
paddb xmm2, xmm0
movaps xmm0, xmm1
pxor xmm3, xmm1
paddb xmm4, xmm0
cmp eax, ecx
jb 0x4c5450
pxor xmm3, xmm5
paddb xmm4, xmm2
movaps xmm0, xmm3
psrldq xmm0, 8
pxor xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
pxor xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 2
pxor xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 1
pxor xmm3, xmm0
movaps xmm0, xmm4
psrldq xmm0, 8
paddb xmm4, xmm0
movd ebx, xmm3
movups xmm0, xmm4
psrldq xmm0, 4
paddb xmm4, xmm0
movups xmm0, xmm4
psrldq xmm0, 2
paddb xmm4, xmm0
movups xmm0, xmm4
psrldq xmm0, 1
paddb xmm4, xmm0
movd ecx, xmm4
mov dword [ebp - 8], ecx
xor dh, dh
mov byte [ebp - 1], 0
cmp eax, esi
jae 0x4c5534
mov ecx, esi
sub ecx, eax
cmp ecx, 2
mov ch, byte [ebp - 1]
jb 0x4c5521
lea edi, [esi - 1]
mov esi, dword [ebp - 0xc]
mov dl, byte [esi + eax]
mov cl, byte [esi + eax + 1]
add ch, dl
xor dl, cl
add eax, 2
add dh, cl
xor bl, dl
cmp eax, edi
jb 0x4c5505
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
cmp eax, esi
jae 0x4c552d
mov al, byte [eax + edi]
add byte [ebp - 8], al
xor bl, al
add dh, ch
mov ecx, dword [ebp - 8]
add cl, dh
cmp byte [ebp + 8], cl
jne 0x4c554a
cmp byte [ebp + 0xc], bl
jne 0x4c554a
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c68a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513c54
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x63c], ecx
push edx
lea eax, [ebp - 0x628]
or ebx, 0xffffffff
push eax
call fcn.004f5d20
add esp, 8
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
mov dword [ebp - 0x634], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4c6942
mov dword [esi], vtable.Gdiplus::Image.0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x628]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
mov dword [ebp - 0x62c], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromFile]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x62c]
mov dword [esi + 4], eax
mov byte [ebp - 4], 0
jmp 0x4c6944
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov edx, esi
push dword [ebp + 8]
lea ecx, [ebp - 0x630]
call fcn.004c6ad0
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x4c6a81
mov dword [ebp - 0x634], edi
cmp edi, 1
jne 0x4c698a
mov dword [ebp - 0x630], 0x26200a
mov dword [ebp - 0x634], 2
jmp 0x4c6996
mov eax, dword [ebp - 0x630]
mov dword [ebp - 0x630], eax
lea eax, [ebp - 0x638]
mov dword [ebp - 0x638], 0
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x4c69b7
mov dword [esi + 8], eax
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x62c], 0
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x4c69d8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x62c]
mov dword [ebp - 0x644], eax
mov eax, dword [ebp - 0x638]
mov dword [ebp - 0x640], eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x630]
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x64c], 0
push 1
push eax
push dword [esi + 4]
mov dword [ebp - 0x648], 0
call dword [sym.imp.gdiplus.dll_GdipBitmapLockBits]
test eax, eax
je 0x4c6a2c
mov dword [esi + 8], eax
jmp 0x4c6a9c
mov ebx, dword [ebp - 0x63c]
mov ecx, ebx
mov edx, dword [ebp - 0x664]
push 1
push 0
push dword [ebp - 0x654]
push dword [ebp - 0x634]
push dword [ebp - 0x660]
call fcn.00450d80
add esp, 0x14
cmp edi, 1
jne 0x4c6a66
mov edx, edi
mov ecx, ebx
call fcn.00450b00
lea eax, [ebp - 0x664]
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipBitmapUnlockBits]
test eax, eax
je 0x4c6a7d
mov dword [esi + 8], eax
xor ebx, ebx
jmp 0x4c6a9c
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add ebx, 0x80000001
test esi, esi
je 0x4c6aa8
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
Function at 0x4c7550
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
cmp dword [0x56a14c], 0
jne 0x4c7670
lea ecx, [ebp - 0x94]
call fcn.004cbf80
mov eax, dword [ebp - 0x90]
cmp eax, 6
jne 0x4c7589
cmp dword [ebp - 0x8c], 1
jae 0x4c7592
mov esp, ebp
pop ebp
ret
cmp eax, 7
jb 0x4c7670
push 0x5e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test al, al
jns 0x4c7670
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.GetGestureInfo
push str.user32.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.CloseGestureInfoHandle
push str.user32.dll
mov dword [0x56ab00], eax
call edi
push eax
call esi
push str.RegisterTouchWindow
push str.user32.dll
mov dword [0x56ab04], eax
call edi
push eax
call esi
push str.UnregisterTouchWindow
push str.user32.dll
mov dword [0x56ab10], eax
call edi
push eax
call esi
push str.GetTouchInputInfo
push str.user32.dll
mov dword [0x56ab14], eax
call edi
push eax
call esi
push str.CloseTouchInputHandle
push str.user32.dll
mov dword [0x56ab0c], eax
call edi
push eax
call esi
cmp dword [0x56ab00], 0
pop edi
mov dword [0x56ab18], eax
pop esi
je 0x4c7669
cmp dword [0x56ab04], 0
je 0x4c7669
cmp dword [0x56ab10], 0
je 0x4c7669
cmp dword [0x56ab14], 0
je 0x4c7669
cmp dword [0x56ab0c], 0
je 0x4c7669
test eax, eax
je 0x4c7669
mov eax, 1
mov dword [0x56a14c], eax
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [0x56a14c], eax
mov esp, ebp
pop ebp
ret

Function at 0x4c7ff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.004f5d20
add esp, 8
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c8089
test al, 0x10
je 0x4c8089
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c8031
sub ecx, edx
push esi
cmp byte [esi + ecx - 1], 0x5c
je 0x4c8068
push 0x535d6c
push 0x56ab30
call fcn.00401500
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
push 0x56ab30
call fcn.004f5eb0
add esp, 8
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00427655
mov esp, ebp
pop ebp
ret
Function at 0x4ca760
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov eax, ecx
xor esi, esi
push edi
sub eax, 1
je 0x4ca77e
sub eax, 1
jne 0x4ca78e
call fcn.004ee420
cmp eax, 1
jne 0x4ca78e
xor ecx, ecx
jmp 0x4ca78e
call fcn.004ee420
cmp eax, 1
mov edx, 2
cmove esi, edx
call fcn.004ee430
test eax, eax
je 0x4ca7b6
mov eax, ecx
sub eax, 1
je 0x4ca7a8
sub eax, 1
jne 0x4ca7b6
lea ecx, [eax + 1]
jmp 0x4ca7b6
xor eax, eax
mov ecx, 2
test esi, esi
setne al
mov esi, eax
xor edi, edi
cmp ecx, 7
je 0x4ca7c9
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edi, ax
jmp 0x4ca7d8
call fcn.004c73b0
test eax, eax
mov ecx, 0x8000
cmovne edi, ecx
test esi, esi
je 0x4ca7e6
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
or edi, eax
call fcn.004fcd00
test eax, eax
jne 0x4ca7fd
call fcn.004ca630
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
mov ax, di
pop edi
pop esi
ret
Function at 0x4cc780
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
call fcn.004f1940
test eax, eax
je 0x4cc7a9
call fcn.004f1990
mov edi, eax
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.004f5d20
add esp, 8
lea eax, [ebp - 0x61c]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
sbb esi, esi
test edi, edi
je 0x4cc7e9
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
lea eax, [esi + 1]
pop edi
xor ecx, ebp
pop esi
call fcn.00427655
mov esp, ebp
pop ebp
ret
Function at 0x4cd2a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513e1e
mov eax, dword fs:[0]
push eax
sub esp, 0x940
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, ecx
mov dword [ebp - 0x93c], eax
push str.uninst.lst
push ecx
mov edx, eax
lea ecx, [ebp - 0x934]
call fcn.004f5250
add esp, 8
lea ecx, [ebp - 0x94c]
call fcn.0047db40
mov dword [ebp - 4], 0
lea eax, [ebp - 0x934]
push eax
lea ecx, [ebp - 0x94c]
call fcn.0047d7e0
mov dword [ebp - 0x940], eax
test eax, eax
je 0x4cd41d
lea ecx, [ebp - 0x94c]
call fcn.0047d9e0
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.004276a9
add esp, 4
lea ecx, [ebp - 0x94c]
mov edi, eax
mov dword [ebp - 0x938], edi
push esi
push edi
call fcn.0047da50
lea ecx, [ebp - 0x94c]
call fcn.0047da80
mov eax, edi
mov byte [edi + esi], 0
mov cl, byte [eax]
test cl, cl
je 0x4cd414
nop dword [eax]
lea eax, [ebp - 0x31c]
cmp cl, 0xa
je 0x4cd38b
nop dword [eax + eax]
inc edi
mov byte [eax], cl
inc eax
mov cl, byte [edi]
cmp cl, 0xa
jne 0x4cd380
mov byte [eax], 0
inc edi
cmp byte [ebp - 0x31c], 0x40
je 0x4cd404
lea eax, [ebp - 0x31c]
push str.uninst.lst
push eax
call fcn.004f5ed0
add esp, 8
test eax, eax
je 0x4cd404
mov eax, dword [ebx]
xor esi, esi
test eax, eax
je 0x4cd3d5
push eax
lea eax, [ebp - 0x31c]
push eax
call fcn.004f5ed0
add esp, 8
test eax, eax
je 0x4cd3d5
mov eax, dword [ebx + esi*4 + 4]
inc esi
test eax, eax
jne 0x4cd3b8
cmp dword [ebx + esi*4], 0
jne 0x4cd404
mov edx, dword [ebp - 0x93c]
lea eax, [ebp - 0x31c]
push eax
push ecx
lea ecx, [ebp - 0x934]
call fcn.004f5250
add esp, 8
lea eax, [ebp - 0x934]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov cl, byte [edi]
test cl, cl
jne 0x4cd370
mov eax, dword [ebp - 0x938]
push eax
call fcn.00427666
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94c]
call fcn.0047d9a0
mov eax, dword [ebp - 0x940]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret

Function at 0x4cd460
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004282c0
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
test ecx, ecx
je 0x4cd4f3
test esi, esi
je 0x4cd4f3
push ecx
mov edx, str.Software_
lea ecx, [ebp - 0x2004]
call fcn.004f5150
lea eax, [ebp - 0x2004]
add esp, 4
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4cd4a0
sub eax, edx
mov ecx, 0x5c
sar eax, 1
push esi
mov word [ebp + eax*2 - 0x2004], cx
lea eax, [ebp + eax*2 - 0x2002]
push eax
call fcn.004f5d20
add esp, 8
lea eax, [ebp - 0x2004]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
pop esi
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00427655
mov esp, ebp
pop ebp
ret
Function at 0x4cd610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.004282c0
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test edx, edx
je 0x4cd748
test edi, edi
je 0x4cd748
push edx
mov edx, str.Software_
lea ecx, [ebp - 0x2004]
call fcn.004f5150
lea ecx, [ebp - 0x2004]
add esp, 4
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cd660
sub ecx, edx
mov eax, 0x5c
sar ecx, 1
push edi
mov word [ebp + ecx*2 - 0x2004], ax
lea eax, [ebp + ecx*2 - 0x2002]
push eax
call fcn.004f5d20
add esp, 8
lea eax, [ebp - 0x2008]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x2004]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cd748
lea eax, [ebp - 0x200c]
mov dword [ebp - 0x200c], 0x2000
push eax
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x2010]
push eax
push 0
push str.InstalledFolder
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4cd73c
cmp dword [ebp - 0x2010], 1
jne 0x4cd73c
cmp word [ebp - 0x2004], 0x22
lea esi, [ebp - 0x2004]
jne 0x4cd72b
lea eax, [ebp - 0x2002]
push 0x22
push eax
call fcn.004320b7
add esp, 8
test eax, eax
je 0x4cd72b
cmp word [eax + 2], 0
jne 0x4cd72b
xor ecx, ecx
lea esi, [ebp - 0x2002]
mov word [eax], cx
push 1
push esi
push ebx
call fcn.004f5990
add esp, 0xc
mov esi, 1
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427655
mov esp, ebp
pop ebp
ret

Function at 0x4cd760
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x92c
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x92c], edx
lea ecx, [ebp - 0x310]
push edi
mov edx, 1
call fcn.004c3c60
push ebx
push ecx
lea edx, [ebp - 0x310]
lea ecx, [ebp - 0x928]
call fcn.004f5250
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x928]
add esp, 8
push eax
call edi
mov edx, 2
lea ecx, [ebp - 0x310]
call fcn.004c3c60
push esi
push ecx
lea edx, [ebp - 0x310]
lea ecx, [ebp - 0x928]
call fcn.004f5250
lea eax, [ebp - 0x928]
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4cd7e5
sub eax, edx
lea esi, [ebp - 0x928]
sar eax, 1
lea esi, [esi + eax*2]
mov eax, 0x5c
mov word [esi], ax
add esi, 2
push ebx
push esi
call fcn.004f5d20
add esp, 8
lea eax, [ebp - 0x928]
push eax
call edi
push dword [ebp - 0x92c]
push esi
call fcn.004f5d20
add esp, 8
lea eax, [ebp - 0x928]
push eax
call edi
cmp dword [ebp + 0xc], 0
je 0x4cd84c
xor eax, eax
mov word [esi - 2], ax
lea eax, [ebp - 0x928]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427655
mov esp, ebp
pop ebp
ret
Function at 0x4cdd00
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x620]
push eax
push 0x517490
push 1
xor esi, esi
mov dword [ebp - 0x628], ecx
push esi
push 0x517510
mov ebx, edx
mov dword [ebp - 0x620], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x4cde23
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004f5d20
mov ecx, dword [ebp - 0x620]
lea edx, [ebp - 0x61c]
add esp, 8
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x50]
test eax, eax
jne 0x4cde17
mov edx, 0x5338bc
test edi, edi
je 0x4cdd95
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.004f5d20
add esp, 8
lea edx, [ebp - 0x61c]
mov ecx, dword [ebp - 0x620]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x2c]
test eax, eax
jne 0x4cde17
mov ecx, dword [ebp - 0x620]
push 0x5338bc
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
jne 0x4cde17
mov ecx, dword [ebp - 0x620]
lea edx, [ebp - 0x624]
push edx
mov dword [ebp - 0x624], esi
push 0x5174f0
mov eax, dword [ecx]
push ecx
call dword [eax]
test eax, eax
jne 0x4cde17
push dword [ebp - 0x628]
lea eax, [ebp - 0x61c]
push eax
call fcn.004f5d20
mov ecx, dword [ebp - 0x624]
lea edx, [ebp - 0x61c]
add esp, 8
mov eax, dword [ecx]
push 1
push edx
push ecx
call dword [eax + 0x18]
neg eax
sbb esi, esi
mov eax, dword [ebp - 0x624]
push eax
inc esi
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x620]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427655
mov esp, ebp
pop ebp
ret