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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c8
mov eax, dword [0x5462f8]
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.004bf560
lea eax, [ebp - 0x310]
push eax
push 0
call fcn.004f1180
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 0x4bf4f8
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.00424adb
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 0x4bf410
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x4bf3f3
cmp eax, 2
jne 0x4bf400
mov dword [ebp + ebx*4 - 0x9a8], esi
inc ebx
nop dword [eax + eax]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x4bf400
cmp word [esi], ax
jne 0x4bf3e2
xor esi, esi
test ebx, ebx
jle 0x4bf463
nop word [eax + eax]
mov edi, dword [ebp + esi*4 - 0x9a8]
mov ecx, edi
call fcn.004bf670
test eax, eax
je 0x4bf45e
push dword [ebp - 0x9c0]
mov edx, edi
lea ecx, [ebp - 0x928]
call fcn.004f05b0
add esp, 4
lea eax, [ebp - 0x928]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4bf521
inc esi
cmp esi, ebx
jl 0x4bf420
mov esi, dword [ebp - 0x9b0]
mov ebx, dword [ebp - 0x9ac]
push dword [ebp - 0x9b4]
call fcn.00424a98
add esp, 4
test ebx, ebx
jne 0x4bf492
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004f7b10
test eax, eax
js 0x4bf505
mov eax, dword [ebp - 0x9b8]
inc eax
mov dword [ebp - 0x9b8], eax
cmp eax, 0xa
jl 0x4bf3a0
test ebx, ebx
jne 0x4bf4f8
cmp dword [ebp + 0x10], ebx
je 0x4bf505
mov edi, dword [ebp - 0x9c4]
mov edx, dword [ebp - 0x9c8]
mov ecx, dword [0x55eaa0]
push 0x41
push edi
call fcn.004b55d0
add esp, 8
cmp eax, 1
je 0x4bf4f8
mov ecx, str.AREYOUSUREYOUWANTTOQUIT
call fcn.004f4980
mov ecx, dword [0x55eaa0]
mov edx, eax
push 0x124
push edi
call fcn.004b55d0
add esp, 8
cmp eax, 6
je 0x4bf505
cmp dword [ebp - 0x9bc], 0
jne 0x4bf390
push esi
call fcn.00424a98
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00424a87
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x9b0]
push esi
push edi
push 0x52bb38
push 0x55d290
call fcn.00404110
mov ebx, 1
mov dword [ebp - 0x9bc], 0
add esp, 0x10
mov dword [ebp - 0x9ac], ebx
jmp 0x4bf46f
Function at 0x4bf670
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6dc
mov eax, dword [0x5462f8]
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 0x4bf690
lea eax, [ebp - 0x630]
push eax
call fcn.0043771e
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 0x4bf7f1
cmp word [esi + 2], 0x3a
jne 0x4bf7f1
cmp dword [ecx*4 + 0x55e3cc], edi
je 0x4bf7db
lea ecx, [ebp - 0x6d8]
call fcn.004c8100
cmp dword [ebp - 0x6c8], 2
jne 0x4bf7db
movzx eax, word [esi + 2]
push eax
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x14]
push str.._c_c
push eax
call fcn.00404110
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 0x4bf780
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 0x4bf780
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424a87
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x14]
push 0x52bb44
push eax
call fcn.00404110
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.00424a87
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.00424a87
mov esp, ebp
pop ebp
ret
cmp ecx, 0x5c
jne 0x4bf802
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.00424a87
mov esp, ebp
pop ebp
ret
Function at 0x4c02b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1864
call fcn.004256f0
mov eax, dword [0x5462f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
xor ecx, ecx
call fcn.004bf1c0
mov edx, ebx
mov ecx, 0x52bbc4
call fcn.004bf1a0
push 0x529730
push esi
call fcn.004f1330
add esp, 8
test eax, eax
je 0x4c036a
lea eax, [ebp - 0x1864]
push esi
push eax
call fcn.004f1180
add esp, 8
lea eax, [ebp - 0x1864]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c0380
test al, 0x10
je 0x4c032f
mov ecx, esi
call fcn.004bf1c0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424a87
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x310]
push esi
push eax
call fcn.004f1310
add esp, 8
lea ecx, [ebp - 0x310]
call fcn.004f0b70
mov edi, eax
test edi, edi
je 0x4c037a
lea ecx, [ebp - 0x310]
mov byte [edi], 0
call fcn.004bf1c0
lea ecx, [edi + 1]
mov edx, ebx
call fcn.004bf1a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424a87
mov esp, ebp
pop ebp
ret
mov edx, ebx
mov ecx, esi
jmp 0x4c0364
push esi
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0xc34]
push eax
lea edx, [ebp - 0x310]
lea ecx, [ebp - 0x61c]
call fcn.0047a950
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0xf40]
push 0x52bafc
push eax
call fcn.00401420
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x124c]
push 0x52bafc
push eax
call fcn.00401420
add esp, 0x2c
lea ecx, [ebp - 0xf40]
call fcn.004bf1c0
mov edx, ebx
lea ecx, [ebp - 0x124c]
call fcn.004bf1a0
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00424a87
mov esp, ebp
pop ebp
ret
Function at 0x4c1580
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 0x4c1659
cmp esi, 0x20
jb 0x4c1659
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 0x4c15c0
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 0x4c16a4
mov ecx, esi
sub ecx, eax
cmp ecx, 2
mov ch, byte [ebp - 1]
jb 0x4c1691
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 0x4c1675
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
cmp eax, esi
jae 0x4c169d
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 0x4c16ba
cmp byte [ebp + 0xc], bl
jne 0x4c16ba
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 0x4c16d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor bl, bl
push edi
mov dword [ebp - 0xc], ecx
mov edi, edx
xor cl, cl
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [ebp - 8], ecx
test esi, esi
je 0x4c17ab
cmp esi, 0x20
jb 0x4c17ab
mov edx, dword [ebp + 8]
mov ecx, esi
and ecx, 0xffffffe0
xorps xmm2, xmm2
xorps xmm4, xmm4
xorps xmm3, xmm3
xorps xmm5, xmm5
movups xmm1, xmmword [edx + eax]
movaps xmm0, xmm1
pxor xmm5, xmm1
movups xmm1, xmmword [edx + eax + 0x10]
add eax, 0x20
paddb xmm2, xmm0
movaps xmm0, xmm1
pxor xmm3, xmm1
paddb xmm4, xmm0
cmp eax, ecx
jb 0x4c1712
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 0x4c1807
mov ecx, esi
sub ecx, eax
cmp ecx, 2
mov ch, byte [ebp - 1]
jb 0x4c17e3
lea edi, [esi - 1]
mov esi, dword [ebp + 8]
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 0x4c17c7
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x10]
cmp eax, esi
jae 0x4c17f2
mov esi, dword [ebp + 8]
mov al, byte [eax + esi]
add byte [ebp - 8], al
xor bl, al
mov eax, dword [ebp - 8]
add dh, ch
add al, dh
mov edx, dword [ebp - 0xc]
mov byte [edx], al
mov byte [edi], bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov byte [edi], bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c2a10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509b84
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x5462f8]
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.004f1180
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 0x4c2ab2
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 0x4c2ab4
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov edx, esi
push dword [ebp + 8]
lea ecx, [ebp - 0x630]
call fcn.004c2c40
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x4c2bf1
mov dword [ebp - 0x634], edi
cmp edi, 1
jne 0x4c2afa
mov dword [ebp - 0x630], 0x26200a
mov dword [ebp - 0x634], 2
jmp 0x4c2b06
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 0x4c2b27
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 0x4c2b48
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 0x4c2b9c
mov dword [esi + 8], eax
jmp 0x4c2c0c
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.0044de60
add esp, 0x14
cmp edi, 1
jne 0x4c2bd6
mov edx, edi
mov ecx, ebx
call fcn.0044dbe0
lea eax, [ebp - 0x664]
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipBitmapUnlockBits]
test eax, eax
je 0x4c2bed
mov dword [esi + 8], eax
xor ebx, ebx
jmp 0x4c2c0c
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 0x4c2c18
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.00424a87
mov esp, ebp
pop ebp
ret
Function at 0x4c36c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
cmp dword [0x55e8c4], 0
jne 0x4c37e0
lea ecx, [ebp - 0x94]
call fcn.004c8100
mov eax, dword [ebp - 0x90]
cmp eax, 6
jne 0x4c36f9
cmp dword [ebp - 0x8c], 1
jae 0x4c3702
mov esp, ebp
pop ebp
ret
cmp eax, 7
jb 0x4c37e0
push 0x5e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test al, al
jns 0x4c37e0
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 [0x55e8e0], eax
call edi
push eax
call esi
push str.RegisterTouchWindow
push str.user32.dll
mov dword [0x55e8e4], eax
call edi
push eax
call esi
push str.UnregisterTouchWindow
push str.user32.dll
mov dword [0x55e8f0], eax
call edi
push eax
call esi
push str.GetTouchInputInfo
push str.user32.dll
mov dword [0x55e8f4], eax
call edi
push eax
call esi
push str.CloseTouchInputHandle
push str.user32.dll
mov dword [0x55e8ec], eax
call edi
push eax
call esi
cmp dword [0x55e8e0], 0
pop edi
mov dword [0x55e8f8], eax
pop esi
je 0x4c37d9
cmp dword [0x55e8e4], 0
je 0x4c37d9
cmp dword [0x55e8f0], 0
je 0x4c37d9
cmp dword [0x55e8f4], 0
je 0x4c37d9
cmp dword [0x55e8ec], 0
je 0x4c37d9
test eax, eax
je 0x4c37d9
mov eax, 1
mov dword [0x55e8c4], eax
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [0x55e8c4], eax
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x5462f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.004f1180
add esp, 8
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c41f9
test al, 0x10
je 0x4c41f9
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c41a1
sub ecx, edx
push esi
cmp byte [esi + ecx - 1], 0x5c
je 0x4c41d8
push 0x52bbd0
push 0x55eaa8
call fcn.00401420
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424a87
mov esp, ebp
pop ebp
ret
push 0x55eaa8
call fcn.004f1310
add esp, 8
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424a87
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00424a87
mov esp, ebp
pop ebp
ret
Function at 0x4c68c0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov eax, ecx
xor esi, esi
push edi
sub eax, 1
je 0x4c68de
sub eax, 1
jne 0x4c68ee
call fcn.004e9ab0
cmp eax, 1
jne 0x4c68ee
xor ecx, ecx
jmp 0x4c68ee
call fcn.004e9ab0
cmp eax, 1
mov edx, 2
cmove esi, edx
call fcn.004e9ac0
test eax, eax
je 0x4c6916
mov eax, ecx
sub eax, 1
je 0x4c6908
sub eax, 1
jne 0x4c6916
lea ecx, [eax + 1]
jmp 0x4c6916
xor eax, eax
mov ecx, 2
test esi, esi
setne al
mov esi, eax
xor edi, edi
cmp ecx, 7
je 0x4c6929
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edi, ax
jmp 0x4c6938
call fcn.004c3520
test eax, eax
mov ecx, 0x8000
cmovne edi, ecx
test esi, esi
je 0x4c6946
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
or edi, eax
call fcn.004f7c10
test eax, eax
jne 0x4c695d
call fcn.004c6790
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
mov ax, di
pop edi
pop esi
ret
Function at 0x4c8910
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x5462f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
call fcn.004ecfd0
test eax, eax
je 0x4c8939
call fcn.004ed020
mov edi, eax
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.004f1180
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 0x4c8979
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.00424a87
mov esp, ebp
pop ebp
ret
Function at 0x4c9430
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509d4e
mov eax, dword fs:[0]
push eax
sub esp, 0x940
mov eax, dword [0x5462f8]
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.004f06b0
add esp, 8
lea ecx, [ebp - 0x94c]
call fcn.0047ac00
mov dword [ebp - 4], 0
lea eax, [ebp - 0x934]
push eax
lea ecx, [ebp - 0x94c]
call fcn.0047a8a0
mov dword [ebp - 0x940], eax
test eax, eax
je 0x4c95ad
lea ecx, [ebp - 0x94c]
call fcn.0047aaa0
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.00424adb
add esp, 4
lea ecx, [ebp - 0x94c]
mov edi, eax
mov dword [ebp - 0x938], edi
push esi
push edi
call fcn.0047ab10
lea ecx, [ebp - 0x94c]
call fcn.0047ab40
mov eax, edi
mov byte [edi + esi], 0
mov cl, byte [eax]
test cl, cl
je 0x4c95a4
nop dword [eax]
lea eax, [ebp - 0x31c]
cmp cl, 0xa
je 0x4c951b
nop dword [eax + eax]
inc edi
mov byte [eax], cl
inc eax
mov cl, byte [edi]
cmp cl, 0xa
jne 0x4c9510
mov byte [eax], 0
inc edi
cmp byte [ebp - 0x31c], 0x40
je 0x4c9594
lea eax, [ebp - 0x31c]
push str.uninst.lst
push eax
call fcn.004f1330
add esp, 8
test eax, eax
je 0x4c9594
mov eax, dword [ebx]
xor esi, esi
test eax, eax
je 0x4c9565
push eax
lea eax, [ebp - 0x31c]
push eax
call fcn.004f1330
add esp, 8
test eax, eax
je 0x4c9565
mov eax, dword [ebx + esi*4 + 4]
inc esi
test eax, eax
jne 0x4c9548
cmp dword [ebx + esi*4], 0
jne 0x4c9594
mov edx, dword [ebp - 0x93c]
lea eax, [ebp - 0x31c]
push eax
push ecx
lea ecx, [ebp - 0x934]
call fcn.004f06b0
add esp, 8
lea eax, [ebp - 0x934]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov cl, byte [edi]
test cl, cl
jne 0x4c9500
mov eax, dword [ebp - 0x938]
push eax
call fcn.00424a98
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94c]
call fcn.0047aa60
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.00424a87
mov esp, ebp
pop ebp
ret

Function at 0x4c95f0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004256f0
mov eax, dword [0x5462f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
test ecx, ecx
je 0x4c9683
test esi, esi
je 0x4c9683
push ecx
mov edx, str.Software_
lea ecx, [ebp - 0x2004]
call fcn.004f05b0
lea eax, [ebp - 0x2004]
add esp, 4
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c9630
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.004f1180
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.00424a87
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00424a87
mov esp, ebp
pop ebp
ret
Function at 0x4c97a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.004256f0
mov eax, dword [0x5462f8]
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 0x4c98d8
test edi, edi
je 0x4c98d8
push edx
mov edx, str.Software_
lea ecx, [ebp - 0x2004]
call fcn.004f05b0
lea ecx, [ebp - 0x2004]
add esp, 4
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c97f0
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.004f1180
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 0x4c98d8
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 0x4c98cc
cmp dword [ebp - 0x2010], 1
jne 0x4c98cc
cmp word [ebp - 0x2004], 0x22
lea esi, [ebp - 0x2004]
jne 0x4c98bb
lea eax, [ebp - 0x2002]
push 0x22
push eax
call fcn.0042f6a7
add esp, 8
test eax, eax
je 0x4c98bb
cmp word [eax + 2], 0
jne 0x4c98bb
xor ecx, ecx
lea esi, [ebp - 0x2002]
mov word [eax], cx
push 1
push esi
push ebx
call fcn.004f0df0
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.00424a87
mov esp, ebp
pop ebp
ret

Function at 0x4c98f0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x92c
mov eax, dword [0x5462f8]
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.004bfdd0
push ebx
push ecx
lea edx, [ebp - 0x310]
lea ecx, [ebp - 0x928]
call fcn.004f06b0
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.004bfdd0
push esi
push ecx
lea edx, [ebp - 0x310]
lea ecx, [ebp - 0x928]
call fcn.004f06b0
lea eax, [ebp - 0x928]
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c9975
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.004f1180
add esp, 8
lea eax, [ebp - 0x928]
push eax
call edi
push dword [ebp - 0x92c]
push esi
call fcn.004f1180
add esp, 8
lea eax, [ebp - 0x928]
push eax
call edi
cmp dword [ebp + 0xc], 0
je 0x4c99dc
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.00424a87
mov esp, ebp
pop ebp
ret