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

Disassembly:
push 0x2c
mov eax, 0x50ba0f
call fcn.004d0de3
lea eax, [ebp - 0x20]
xor edi, edi
push eax
movzx eax, byte [ebp + 0xc]
shl eax, 8
inc eax
push eax
push edi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x14
mov esi, eax
mov dword [ebp - 0x1c], 1
call fcn.004d093b
or dword [ebp - 0x38], 0xffffffff
mov ebx, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], ebx
push 0x14
pop eax
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x10], eax
call fcn.004d093b
or dword [ebp - 0x30], 0xffffffff
pop ecx
pop ecx
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
mov dword [ebp + 0xc], 0x14
call fcn.00480610
push 0x14
call fcn.004d093b
or dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], eax
pop ecx
mov ecx, edi
mov dword [ebp - 0x14], ecx
test esi, esi
jne 0x4881d3
mov esi, str.AI_InstallLanguage
lea edx, [ebp + 0xc]
push edx
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push ecx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x28], eax
cmp eax, 0xea
jne 0x4881a3
lea ecx, [ebp - 0x38]
call fcn.00480610
push dword [ebp - 0x10]
call fcn.004d093b
or dword [ebp - 0x38], 0xffffffff
mov ebx, eax
pop ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], ebx
call fcn.00480610
push dword [ebp + 0xc]
call fcn.004d093b
or dword [ebp - 0x30], 0xffffffff
pop ecx
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x2c], eax
push ecx
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [esi - 1]
sub ebx, str.AI_InstallLanguage
inc eax
mov cl, byte [ebx + eax]
mov dl, byte [eax]
cmp cl, dl
jl 0x4881fa
jg 0x4881fa
test cl, cl
je 0x4881c0
test dl, dl
jne 0x4881ac
or dword [ebp - 0x28], 0xffffffff
lea edx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00480800
pop ecx
mov edi, eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.00480610
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 5
call fcn.00480610
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.004d0dac
ret
mov ecx, dword [ebp - 0x14]
inc ecx
cmp dword [ebp - 0x28], 0
mov dword [ebp - 0x14], ecx
jne 0x4881d3
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x24]
jmp 0x48812d
Function at 0x48b134
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x570074]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ecx + 0x74], 1
push ebx
push esi
push edi
je 0x48b1c2
test dword [ecx + 0x74], 0x2000
jne 0x48b1c2
call fcn.0048b92a
mov edi, eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 3
jl 0x48b1c2
xor esi, esi
mov ecx, edi
push esi
call fcn.0046fde0
push 0x5c
pop ebx
cmp ax, bx
jne 0x48b193
push 1
mov ecx, edi
call fcn.0046fde0
cmp ax, bx
jne 0x48b193
push 2
mov ecx, edi
call fcn.0046fde0
cmp ax, bx
jne 0x48b1c2
test esi, esi
js 0x48b1d5
push esi
mov ecx, edi
call fcn.0046fdc0
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x48b193
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
setne al
jmp 0x48b1c4
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d0217
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040d173
int3

Function at 0x48b1e0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push 0x10
mov eax, 0x50c361
call fcn.004d0de3
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.0048b92a
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.00474110
and dword [ebp - 4], 0
push 0x5c
push dword [edi]
call fcn.004d3e4b
pop ecx
pop ecx
test eax, eax
jne 0x48b218
or eax, 0xffffffff
jmp 0x48b21c
sub eax, dword [edi]
sar eax, 1
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00406713
xor ebx, ebx
lea ecx, [ebp - 0x10]
inc ebx
mov byte [ebp - 4], bl
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004106c3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0040ca45
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48b265
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x48b27e
mov dword [esi + 0x14], ebx
jmp 0x48b302
push edi
push 3
lea ecx, [esi + 0x1c]
call fcn.00494ceb
lea ecx, [ebp - 0x14]
call fcn.0040c77f
push 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x1c]
call fcn.00494d83
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push 0x535ad4
push eax
call fcn.00410eb2
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.0040ca45
mov esi, dword [ebp - 0x1c]
lea ecx, [esi + 0x184]
call fcn.0049085e
push 0
push 0x20
push 0
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.00495922
add esp, 0xc
test al, al
jne 0x48b2f4
mov dword [esi + 0x14], ebx
jmp 0x48b2f6
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040ca45
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040ca45
mov eax, ebx
call fcn.004d0dac
ret
Function at 0x48c087
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x50c5e7
call fcn.004d0de3
mov esi, ecx
mov eax, dword [esi + 0x1d8]
test eax, eax
je 0x48c1bd
cmp eax, 0xffffffff
je 0x48c1bd
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x1c], 0x103
jne 0x48c1bd
lea ecx, [ebp - 0x3c]
call fcn.0049c40d
xor ebx, ebx
lea ecx, [ebp - 0x18]
push str.Advinst_Estimate_
mov dword [ebp - 4], ebx
call fcn.0040d264
mov byte [ebp - 4], 1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0048b92a
push ecx
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call fcn.004804a0
pop ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00477160
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
push dword [ebp - 0x14]
call fcn.00485441
push eax
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.0046f9e0
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.0049c44b
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0040ca45
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040ca45
push str.CLOSE
lea ecx, [ebp - 0x10]
call fcn.0040d264
mov byte [ebp - 4], 6
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
push ebx
push edx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0040ca45
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040ca45
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00480610
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0040ca45
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0049c4e7
call fcn.004d0dac
ret
Function at 0x48ce33
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x24
mov eax, 0x50c7b5
call fcn.004d0de3
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp byte [edi + 0xc0], 0
je 0x48cfb2
cmp byte [edi + 0xd8], 0
jne 0x48cfb2
xor ebx, ebx
inc ebx
cmp dword [edi + 0x90], 3
je 0x48ce8b
call fcn.0048e743
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x48ce8b
cmp eax, ebx
je 0x48ce8b
test byte [edi + 0x44], 0x48
je 0x48ce8b
mov ecx, edi
call fcn.0048d79b
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], bl
mov ebx, ecx
mov eax, dword [edi + 0xa8]
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x48cef9
lea eax, [edi + 0xa4]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
push ebx
mov ecx, eax
call fcn.00411cd0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x48ceee
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.00411cd0
push eax
lea ecx, [ebp - 0x30]
call fcn.0046c410
mov eax, dword [ebp - 0x10]
inc ebx
cmp ebx, edi
jl 0x48cec0
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + 0xb4]
sub ebx, 1
js 0x48cf44
lea eax, [edi + 0xb0]
mov dword [ebp - 0x18], eax
mov edi, eax
push ebx
mov ecx, edi
call fcn.00411cd0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x48cf3c
push ebx
mov ecx, edi
call fcn.00411cd0
push eax
lea ecx, [ebp - 0x24]
call fcn.0046c410
sub ebx, 1
jns 0x48cf0f
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 0xa4]
call fcn.0048fd52
lea ebx, [edi + 0xb0]
mov ecx, ebx
call fcn.0045265f
mov esi, dword [ebp - 0x20]
jmp 0x48cf76
push esi
lea ecx, [ebp - 0x24]
call fcn.00411cd0
push eax
mov ecx, ebx
call fcn.0046c410
sub esi, 1
jns 0x48cf65
cmp dword [edi + 0xa8], 0
jne 0x48cf92
cmp dword [edi + 0xb4], 0
jne 0x48cf92
xor eax, eax
inc eax
jmp 0x48cf94
xor al, al
mov byte [edi + 0xd8], al
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.0045265f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0045265f
call fcn.004d0dac
ret
Function at 0x48e743
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x50cc31
call fcn.004d0de3
mov esi, ecx
test byte [esi + 0x44], 1
je 0x48e761
test byte [esi + 0x44], 0x40
je 0x48e8aa
mov eax, dword [esi + 0x7c]
xor edi, edi
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x48e8aa
lea eax, [esi + 0x78]
push edi
mov ecx, eax
call fcn.0048fbed
mov ebx, eax
cmp byte [ebx + 0x1c], 0
je 0x48e89d
cmp dword [ebx], 1
je 0x48e7ba
cmp dword [ebx], 3
je 0x48e7ba
cmp dword [ebx], 7
je 0x48e7ba
cmp dword [ebx], 8
je 0x48e7ba
cmp dword [ebx], 0x64
jb 0x48e7e1
mov eax, dword [esi + 0x90]
cmp eax, 2
je 0x48e89d
cmp eax, 5
jne 0x48e7e1
jmp 0x48e89d
mov eax, dword [esi + 0x90]
cmp eax, 4
je 0x48e7e1
cmp eax, 2
je 0x48e89d
cmp eax, 1
je 0x48e89d
test byte [ebx + 8], 1
jne 0x48e89d
push dword [ebx + 4]
mov ecx, esi
call fcn.0048f473
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.004069f3
and dword [ebp - 4], 0
mov ecx, dword [ebx + 0x18]
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004106c3
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x48e821
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040cf6c
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x48e86c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x48e86c
lea ecx, [ebp - 0x2c]
call fcn.0040c77f
lea ecx, [ebp - 0x28]
call fcn.0040c77f
xor eax, eax
mov word [ebp - 0x24], ax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.004886e5
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00450a60
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00474870
mov edx, dword [ebp - 0x14]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00475860
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0040ca45
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040ca45
inc edi
lea eax, [esi + 0x78]
cmp edi, dword [ebp - 0x1c]
jl 0x48e774
call fcn.004d0dac
ret
Function at 0x48e8b0
Capabilities:
Read file on windows

Disassembly:
push 0x34
mov eax, 0x50cc5c
call fcn.004d0de3
mov ebx, ecx
xor eax, eax
cmp dword [ebx + 0x10], eax
je 0x48ea23
mov ecx, dword [ebx + 0x1c]
add ecx, dword [ebx + 0x58]
push 0
adc eax, dword [ebx + 0x5c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
push dword [ebx + 0x88]
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x48e90f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.0048f3fd
push 2
pop eax
jmp 0x48ea23
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 0x40], eax
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], al
call fcn.0040c77f
mov byte [ebp - 0x24], 0
xor esi, esi
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], esi
and dword [ebp - 0x18], esi
mov byte [ebp - 4], 3
cmp dword [ebx + 0x10], esi
jbe 0x48e9fd
push 0
lea eax, [ebp - 0x14]
push eax
push 0x18
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48ea2d
cmp dword [ebp - 0x14], 0
je 0x48ea2d
test esi, esi
je 0x48e989
push esi
call fcn.004d0936
and dword [ebp - 0x10], 0
pop ecx
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.00487823
mov esi, dword [ebp - 0x10]
test al, al
je 0x48ea29
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x2c]
add eax, eax
push eax
push esi
push dword [ebx + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48ea2d
cmp dword [ebp - 0x14], 0
je 0x48ea2d
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebx + 0x78]
call fcn.0048fc0f
push dword [ebp - 0x18]
lea ecx, [ebx + 0x78]
call fcn.0048fbed
push esi
lea ecx, [eax + 0x18]
call fcn.0040d23c
mov edi, dword [ebp - 0x18]
inc edi
mov dword [ebp - 0x18], edi
cmp edi, dword [ebx + 0x10]
jb 0x48e950
xor ebx, ebx
push esi
mov byte [ebp - 4], 2
call fcn.004d0936
and dword [ebp - 0x10], 0
pop ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 7
call fcn.0040ca45
or dword [ebp - 4], 0xffffffff
mov eax, ebx
call fcn.004d0dac
ret
push 3
jmp 0x48ea46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.0048f3fd
push 2
pop ebx
jmp 0x48e9ff
Function at 0x48ea51
Capabilities:
Read file on windows

Disassembly:
push 0x24
mov eax, 0x50cc87
call fcn.004d0de3
mov edi, ecx
xor eax, eax
cmp dword [edi + 0x9c], eax
jg 0x48ec06
mov ecx, dword [edi + 0xc]
add ecx, dword [edi + 0x58]
mov dword [ebp - 0x30], ecx
adc eax, dword [edi + 0x5c]
xor ebx, ebx
push ebx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push ecx
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x48eab4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.0048f3fd
push 2
pop eax
jmp 0x48ec06
mov esi, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
cmp dword [edi + 8], 0
mov dword [ebp - 0x18], ebx
jbe 0x48ebf5
push 2
pop ebx
push 0
lea eax, [ebp - 0x14]
push eax
push 8
lea eax, [ebp - 0x20]
push eax
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48ebde
cmp dword [ebp - 0x14], 0
je 0x48ebde
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040c77f
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
test esi, esi
je 0x48eb20
push esi
call fcn.004d0936
and dword [ebp - 0x10], 0
pop ecx
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.00487823
mov esi, dword [ebp - 0x10]
test al, al
je 0x48ebc9
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
add eax, eax
push eax
push esi
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48ebb0
cmp dword [ebp - 0x14], 0
je 0x48ebb0
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov word [esi + eax*2], cx
test esi, esi
jne 0x48eb6c
xor eax, eax
jmp 0x48eb73
push esi
call fcn.004d5c34
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0040d1b7
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 0x98]
call fcn.0048fb5b
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.0040ca45
mov eax, dword [ebp - 0x18]
inc eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x18], eax
cmp eax, dword [edi + 8]
jb 0x48ead2
xor ebx, ebx
jmp 0x48ebf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.0048f3fd
jmp 0x48ebcc
push 3
pop ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0040ca45
mov byte [ebp - 4], 0
jmp 0x48ebf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.0048f3fd
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004d0936
and dword [ebp - 0x10], 0
mov eax, ebx
pop ecx
call fcn.004d0dac
ret

Function at 0x48fb03
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0xe4], edi
jle 0x48fb30
push ebx
push edi
lea ecx, [esi + 0xe0]
call fcn.00411cd0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0xe4]
jl 0x48fb12
pop ebx
pop edi
lea ecx, [esi + 0xe0]
pop esi
jmp fcn.0045265f
Function at 0x48fedc
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cef9
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x570074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x2c], 0
je 0x48ff14
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esi + 0xc]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x48ff6b
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ebx, str.SoftwareCaphyonSetups
push ebx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x10], 0
je 0x48ff6b
push dword [edi]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040d264
lea edx, [ebp - 0x14]
call fcn.0049570c
lea ecx, [ebp - 0x14]
call fcn.0040ca45
lea ecx, [esi + 0x1c]
call fcn.004098ed
lea ecx, [esi + 0x10]
call fcn.004098ed
mov ecx, edi
call fcn.0040ca45
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4901d4
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x570074]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x490266
push 0x104
lea eax, [ebp - 0x7c]
push eax
push dword [0x5722d8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x490266
push esi
lea esi, [eax + eax]
cmp esi, 0x208
jae 0x49027c
xor eax, eax
and dword [ebp - 0x80], eax
mov word [ebp + esi - 0x7c], ax
lea eax, [ebp - 0x80]
push eax
push str.SoftwareCaphyonSetups
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp dword [ebp - 0x80], 0
je 0x490265
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push dword [edi + 0xc]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop edi
call fcn.004d0217
lea esp, [ebp + 0x190]
pop ebp
ret
call fcn.004d0a67
int3
Function at 0x4903a9
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x38
mov eax, dword [0x570074]
xor eax, esp
mov dword [esp + 0x34], eax
movaps xmm0, xmmword [0x53f890]
and dword [esp + 4], 0
and dword [esp], 0
push ebx
push ebp
push esi
movups xmmword [esp + 0x20], xmm0
mov bl, dl
movaps xmm0, xmmword [0x53f890]
push edi
mov edi, ecx
movups xmmword [esp + 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push str.kernel32.dll
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetSystemDefaultUILanguage
push esi
call ebp
test eax, eax
je 0x490422
call eax
movzx eax, ax
mov dword [esp + 0x10], eax
push str.GetUserDefaultUILanguage
push esi
call ebp
test eax, eax
je 0x490437
call eax
movzx eax, ax
mov dword [esp + 0x14], eax
mov ebp, dword [edi + 4]
xor esi, esi
test ebp, ebp
jle 0x4904d9
push esi
mov ecx, edi
call fcn.004098cb
mov edx, dword [esp + 0x18]
movzx ecx, word [eax]
cmp cx, dx
jne 0x49045f
movzx eax, bl
mov dword [esp + eax*8 + 0x28], esi
cmp cl, dl
jne 0x49046a
movzx eax, bl
mov dword [esp + eax*8 + 0x38], esi
mov edx, dword [esp + 0x1c]
cmp cx, dx
jne 0x490486
and dword [esp + 0x20], 0
test bl, bl
push 0xc
pop eax
cmovne eax, dword [esp + 0x20]
mov dword [esp + eax + 0x24], esi
cmp cl, dl
jne 0x490494
movzx eax, bl
xor eax, 1
mov dword [esp + eax*8 + 0x38], esi
mov edx, dword [esp + 0x10]
cmp cx, dx
jne 0x4904a4
movzx eax, bl
mov dword [esp + eax*8 + 0x24], esi
cmp cl, dl
jne 0x4904af
movzx eax, bl
mov dword [esp + eax*8 + 0x34], esi
mov edx, dword [esp + 0x14]
cmp cx, dx
jne 0x4904c2
movzx eax, bl
xor eax, 1
mov dword [esp + eax*4 + 0x28], esi
cmp cl, dl
jne 0x4904d0
movzx eax, bl
xor eax, 1
mov dword [esp + eax*8 + 0x34], esi
inc esi
cmp esi, ebp
jl 0x490444
xor eax, eax
mov edx, dword [esp + eax*4 + 0x24]
test edx, edx
jns 0x4904ed
inc eax
cmp eax, 8
jb 0x4904db
push 0
jmp 0x4904ee
push edx
mov ecx, edi
call fcn.004098cb
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov ax, word [eax]
pop ebp
pop ebx
xor ecx, esp
call fcn.004d0217
add esp, 0x38
ret
Function at 0x490599
Capabilities:
Get geographical location

Disassembly:
push 0x14
mov eax, 0x50cfcf
call fcn.004d0de3
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040c77f
push 0
push 0x528070
mov dword [ebp - 4], ebx
push 2
movzx ebx, di
push ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x18], eax
lea ecx, [eax - 1]
push ecx
push 0x78
lea ecx, [ebp - 0x10]
call fcn.0044d10e
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 4], eax
jle 0x490603
push dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040cf6c
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x18]
push ecx
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 0x10]
push edi
push str._d__s
push esi
call fcn.00410eb2
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040ca45
mov eax, esi
call fcn.004d0dac
ret

Function at 0x4908d1
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x2c
mov eax, dword [0x570074]
xor eax, esp
mov dword [esp + 0x24], eax
push ebp
push esi
mov ebp, ecx
push 2
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x1c]
push eax
push esi
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
xor eax, eax
cmp byte [ebp + 0x2c], al
push 5
pop ecx
cmovne eax, ecx
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x3e9
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
push ecx
xorps xmm0, xmm0
push eax
movups xmmword [esp + 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp + 0x30], 0
jne 0x490955
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x30], eax
cmp byte [ebp + 0x2c], 0
je 0x490960
mov eax, dword [ebp + 0x30]
jmp 0x490964
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push 0x206
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.0041008c
mov ecx, dword [esp + 0x2c]
pop esi
pop ebp
xor ecx, esp
call fcn.004d0217
add esp, 0x2c
ret