joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481d68
Capabilities:
Reference sql statements

Disassembly:
push ebp
sub esp, 0x200
lea ebp, [esp - 4]
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp + 0x200], eax
push 0x10
mov eax, 0x5067cc
call fcn.004cc273
mov esi, edx
mov ebx, ecx
mov eax, dword [ebp + 0x20c]
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.0047b000
push esi
lea eax, [ebp]
push str.SELECT__Text__FROM__UIText__WHERE__Key____s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
and dword [ebp - 0x14], 0
add esp, 0xc
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
je 0x481dcc
push dword [ebp - 0x14]
call edi
and dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push ebx
lea ecx, [ebp]
call fcn.00481faf
pop ecx
test eax, eax
jns 0x481de8
xor bl, bl
jmp 0x481e96
and dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x10], 0
je 0x481dfb
push dword [ebp - 0x10]
call edi
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], eax
je 0x481e36
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x481e31
cmp esi, 0x80070103
je 0x481e31
call fcn.0048208a
mov eax, dword [ebp - 0x10]
jmp 0x481e3b
mov esi, 0x80070057
test esi, esi
jns 0x481e43
xor bl, bl
jmp 0x481e87
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
mov esi, dword [sym.imp.msi.dll_MsiRecordSetStreamA]
push ecx
push 0x521eb8
push 1
push eax
call esi
cmp eax, 0xea
jne 0x481e82
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
inc eax
push eax
mov ecx, ebx
mov dword [ebp - 0x18], eax
call fcn.0047b020
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 4]
push 1
push dword [ebp - 0x10]
call esi
test eax, eax
sete bl
mov byte [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x481e96
push dword [ebp - 0x10]
call edi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x481ea5
push dword [ebp - 0x14]
call edi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.004cb6da
lea esp, [ebp + 0x204]
pop ebp
ret
Function at 0x48234d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2c
mov eax, 0x506862
call fcn.004cc273
xor ebx, ebx
lea eax, [ebp - 0x20]
push eax
inc ebx
mov eax, 0x101
cmp byte [ebp + 0xc], 0
cmove eax, ebx
xor edi, edi
push eax
push edi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x14
mov dword [ebp - 0x1c], ebx
mov esi, eax
pop ebx
push ebx
call fcn.004cbc0c
or dword [ebp - 0x38], 0xffffffff
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], edi
push ebx
mov dword [ebp - 0x14], ebx
call fcn.004cbc0c
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 - 0x10], ebx
call fcn.0047b000
push ebx
call fcn.004cbc0c
or dword [ebp - 0x30], 0xffffffff
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov eax, edi
mov dword [ebp - 0x18], eax
pop ecx
test esi, esi
jne 0x48249a
mov esi, str.AI_InstallLanguage
lea ecx, [ebp - 0x10]
push ecx
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push edi
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp + 0xc]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x28], eax
cmp eax, 0xea
jne 0x48244d
lea ecx, [ebp - 0x38]
call fcn.0047b000
push dword [ebp - 0x14]
call fcn.004cbc0c
or dword [ebp - 0x38], 0xffffffff
pop ecx
lea ecx, [ebp - 0x30]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x34], eax
call fcn.0047b000
push dword [ebp - 0x10]
call fcn.004cbc0c
or dword [ebp - 0x30], 0xffffffff
mov ebx, eax
pop ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x2c], ebx
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, dword [ebp + 0xc]
lea eax, [esi - 1]
sub ecx, str.AI_InstallLanguage
mov dword [ebp - 0x24], ecx
inc eax
mov cl, byte [ecx + eax]
mov dl, byte [eax]
cmp cl, dl
jl 0x482475
jg 0x482475
test cl, cl
je 0x482488
test dl, dl
je 0x482488
mov ecx, dword [ebp - 0x24]
jmp 0x48245c
mov eax, dword [ebp - 0x18]
inc eax
cmp dword [ebp - 0x28], 0
mov dword [ebp - 0x18], eax
je 0x4823d6
jmp 0x48249a
or dword [ebp + 0xc], 0xffffffff
lea edx, [ebp + 0xc]
push ecx
mov ecx, ebx
call fcn.0047b200
pop ecx
mov edi, eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.0047b000
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 5
call fcn.0047b000
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.004cc23c
ret
Function at 0x484d04
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ecx + 0x74], 1
push ebx
push esi
push edi
je 0x484d92
test dword [ecx + 0x74], 0x2000
jne 0x484d92
call fcn.004857ff
mov edi, eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 3
jl 0x484d92
xor esi, esi
mov ecx, edi
push esi
call fcn.0046a1e0
push 0x5c
pop ebx
cmp ax, bx
jne 0x484d63
push 1
mov ecx, edi
call fcn.0046a1e0
cmp ax, bx
jne 0x484d63
push 2
mov ecx, edi
call fcn.0046a1e0
cmp ax, bx
jne 0x484d92
test esi, esi
js 0x484da5
push esi
mov ecx, edi
call fcn.0046a1c0
mov word [ebp + esi*2 - 0x10], ax
inc esi
cmp esi, 3
jl 0x484d63
xor eax, eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
setne al
jmp 0x484d94
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb6da
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00406c36
int3

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

Disassembly:
push 0x10
mov eax, 0x50709d
call fcn.004cc273
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.004857ff
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.00473290
and dword [ebp - 4], 0
push 0x5c
push dword [edi]
call fcn.004cf115
pop ecx
pop ecx
test eax, eax
jne 0x484de8
or eax, 0xffffffff
jmp 0x484dec
sub eax, dword [edi]
sar eax, 1
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00447b6f
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.00407092
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.004068bc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x484e35
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 0x484e4e
mov dword [esi + 0x14], ebx
jmp 0x484ed2
push edi
push 3
lea ecx, [esi + 0x20]
call fcn.0048ed1c
lea ecx, [ebp - 0x14]
call fcn.00406bcb
push 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x20]
call fcn.0048edb4
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push 0x52f35c
push eax
call fcn.00407a35
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.004068bc
mov esi, dword [ebp - 0x1c]
lea ecx, [esi + 0x180]
call fcn.0048a97d
push 0
push 0x20
push 0
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.0048f85b
add esp, 0xc
test al, al
jne 0x484ec4
mov dword [esi + 0x14], ebx
jmp 0x484ec6
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004068bc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004068bc
mov eax, ebx
call fcn.004cc23c
ret
Function at 0x486037
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x5073f2
call fcn.004cc273
mov esi, ecx
mov eax, dword [esi + 0x1d0]
test eax, eax
je 0x48616d
cmp eax, 0xffffffff
je 0x48616d
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x1c], 0x103
jne 0x48616d
lea ecx, [ebp - 0x3c]
call fcn.00493291
xor ebx, ebx
lea ecx, [ebp - 0x18]
push str.Advinst_Estimate_
mov dword [ebp - 4], ebx
call fcn.00409a3c
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.004857ff
push ecx
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call fcn.0047ae90
pop ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00475b40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
push dword [ebp - 0x14]
call fcn.0047f834
push eax
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.00469df0
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.004932ce
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004068bc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.004068bc
push str.CLOSE
lea ecx, [ebp - 0x10]
call fcn.00409a3c
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.004068bc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004068bc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.0047b000
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004068bc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0049336b
call fcn.004cc23c
ret
Function at 0x487013
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x24
mov eax, 0x50766d
call fcn.004cc273
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp byte [edi + 0xc0], 0
je 0x487192
cmp byte [edi + 0xd8], 0
jne 0x487192
xor ebx, ebx
inc ebx
cmp dword [edi + 0x90], 3
je 0x48706b
call fcn.00488846
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x48706b
cmp eax, ebx
je 0x48706b
test byte [edi + 0x44], 0x48
je 0x48706b
mov ecx, edi
call fcn.004878aa
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 0x4870d9
lea eax, [edi + 0xa4]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
push ebx
mov ecx, eax
call fcn.00406510
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4870ce
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.00406510
push eax
lea ecx, [ebp - 0x30]
call fcn.004717c0
mov eax, dword [ebp - 0x10]
inc ebx
cmp ebx, edi
jl 0x4870a0
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + 0xb4]
sub ebx, 1
js 0x487124
lea eax, [edi + 0xb0]
mov dword [ebp - 0x18], eax
mov edi, eax
push ebx
mov ecx, edi
call fcn.00406510
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x48711c
push ebx
mov ecx, edi
call fcn.00406510
push eax
lea ecx, [ebp - 0x24]
call fcn.004717c0
sub ebx, 1
jns 0x4870ef
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 0xa4]
call fcn.00489e0e
lea ebx, [edi + 0xb0]
mov ecx, ebx
call fcn.00454743
mov esi, dword [ebp - 0x20]
jmp 0x487156
push esi
lea ecx, [ebp - 0x24]
call fcn.00406510
push eax
mov ecx, ebx
call fcn.004717c0
sub esi, 1
jns 0x487145
cmp dword [edi + 0xa8], 0
jne 0x487172
cmp dword [edi + 0xb4], 0
jne 0x487172
xor eax, eax
inc eax
jmp 0x487174
xor eax, eax
mov byte [edi + 0xd8], al
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00454743
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00454743
call fcn.004cc23c
ret
Function at 0x488846
Capabilities:
Delete file

Disassembly:
push 0x1c
mov eax, 0x507a9c
call fcn.004cc273
mov esi, ecx
test byte [esi + 0x44], 1
je 0x488864
test byte [esi + 0x44], 0x40
je 0x4889aa
mov eax, dword [esi + 0x7c]
xor edi, edi
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x4889aa
lea eax, [esi + 0x78]
push edi
mov ecx, eax
call fcn.00489ca4
mov ebx, eax
cmp byte [ebx + 0x1c], 0
je 0x48899d
cmp dword [ebx], 1
je 0x4888bd
cmp dword [ebx], 3
je 0x4888bd
cmp dword [ebx], 7
je 0x4888bd
cmp dword [ebx], 8
je 0x4888bd
cmp dword [ebx], 0x64
jb 0x4888e4
mov eax, dword [esi + 0x90]
cmp eax, 2
je 0x48899d
cmp eax, 5
jne 0x4888e4
jmp 0x48899d
mov eax, dword [esi + 0x90]
cmp eax, 4
je 0x4888e4
cmp eax, 2
je 0x48899d
cmp eax, 1
je 0x48899d
test byte [ebx + 8], 1
jne 0x48899d
push dword [ebx + 4]
mov ecx, esi
call fcn.0048953e
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.00407175
and dword [ebp - 4], 0
mov ecx, dword [ebx + 0x18]
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00407092
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x488924
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406701
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x48896c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x48896c
lea ecx, [ebp - 0x28]
call fcn.00406bcb
lea ecx, [ebp - 0x24]
call fcn.00406bcb
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00482964
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00452c8e
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00473740
mov edx, dword [ebp - 0x14]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00474350
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.004068bc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004068bc
inc edi
lea eax, [esi + 0x78]
cmp edi, dword [ebp - 0x1c]
jl 0x488877
call fcn.004cc23c
ret
Function at 0x4889b0
Capabilities:
Read file on windows

Disassembly:
push 0x34
mov eax, 0x507acd
call fcn.004cc273
mov ebx, ecx
xor eax, eax
cmp dword [ebx + 0x10], eax
je 0x488b1b
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 + 0x84]
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x488a0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.004894ee
push 2
pop eax
jmp 0x488b1b
xor eax, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
call fcn.00406bcb
mov byte [ebp - 0x24], 0
and dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x10], esi
and dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
cmp dword [ebx + 0x10], esi
jbe 0x488af5
push 0
lea eax, [ebp - 0x14]
push eax
push 0x18
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x488b25
cmp dword [ebp - 0x14], 0
je 0x488b25
test esi, esi
je 0x488a81
push esi
call fcn.004cbcfc
and dword [ebp - 0x10], 0
pop ecx
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.00481ad2
mov esi, dword [ebp - 0x10]
test al, al
je 0x488b21
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x2c]
add eax, eax
push eax
push esi
push dword [ebx + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x488b25
cmp dword [ebp - 0x14], 0
je 0x488b25
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.00489ccb
push dword [ebp - 0x18]
lea ecx, [ebx + 0x78]
call fcn.00489ca4
push esi
lea ecx, [eax + 0x18]
call fcn.00409a14
mov edi, dword [ebp - 0x18]
inc edi
mov dword [ebp - 0x18], edi
cmp edi, dword [ebx + 0x10]
jb 0x488a48
xor edi, edi
push esi
mov byte [ebp - 4], 0
call fcn.004cbcfc
and dword [ebp - 0x10], 0
pop ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 5
call fcn.004068bc
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.004cc23c
ret
push 3
jmp 0x488b3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.004894ee
push 2
pop edi
jmp 0x488af7
Function at 0x488b49
Capabilities:
Read file on windows

Disassembly:
push 0x24
mov eax, 0x507b0a
call fcn.004cc273
mov edi, ecx
xor eax, eax
cmp dword [edi + 0x9c], eax
jg 0x488cfe
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 + 0x84]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x488bac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.004894ee
push 2
pop eax
jmp 0x488cfe
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 0x488ced
push 2
pop ebx
push 0
lea eax, [ebp - 0x14]
push eax
push 8
lea eax, [ebp - 0x20]
push eax
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x488cd6
cmp dword [ebp - 0x14], 0
je 0x488cd6
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00406bcb
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
test esi, esi
je 0x488c18
push esi
call fcn.004cbcfc
and dword [ebp - 0x10], 0
pop ecx
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.00481ad2
mov esi, dword [ebp - 0x10]
test al, al
je 0x488cc1
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
add eax, eax
push eax
push esi
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x488ca8
cmp dword [ebp - 0x14], 0
je 0x488ca8
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov word [esi + eax*2], cx
test esi, esi
jne 0x488c64
xor eax, eax
jmp 0x488c6b
push esi
call fcn.004d163d
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004099a1
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 0x98]
call fcn.00489c12
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.004068bc
mov eax, dword [ebp - 0x18]
inc eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x18], eax
cmp eax, dword [edi + 8]
jb 0x488bca
xor ebx, ebx
jmp 0x488ced
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.004894ee
jmp 0x488cc4
push 3
pop ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.004068bc
mov byte [ebp - 4], 0
jmp 0x488ced
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.004894ee
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004cbcfc
and dword [ebp - 0x10], 0
mov eax, ebx
pop ecx
call fcn.004cc23c
ret

Function at 0x489bba
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0xe4], edi
jle 0x489be7
push ebx
push edi
lea ecx, [esi + 0xe0]
call fcn.00406510
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0xe4]
jl 0x489bc9
pop ebx
pop edi
lea ecx, [esi + 0xe0]
pop esi
jmp fcn.00454743
Function at 0x489f98
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507db2
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x569078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x2c], 0
je 0x489fd0
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 0x48a027
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 0x48a027
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.00409a3c
lea edx, [ebp - 0x14]
call fcn.0048f4e9
lea ecx, [ebp - 0x14]
call fcn.004068bc
lea ecx, [esi + 0x1c]
call fcn.00406d19
lea ecx, [esi + 0x10]
call fcn.00406d19
mov ecx, edi
call fcn.004068bc
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 0x48a290
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x48a322
push 0x104
lea eax, [ebp - 0x7c]
push eax
push dword [0x56e360]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x48a322
push esi
lea esi, [eax + eax]
cmp esi, 0x208
jae 0x48a338
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 0x48a321
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.004cb6da
lea esp, [ebp + 0x190]
pop ebp
ret
call fcn.004cbef6
int3
Function at 0x48a465
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x4c
mov eax, dword [0x569078]
xor eax, esp
mov dword [esp + 0x48], eax
movaps xmm0, xmmword [0x538c70]
and dword [esp + 8], 0
and dword [esp + 4], 0
push ebx
push ebp
push esi
movups xmmword [esp + 0x34], xmm0
mov ebx, ecx
mov byte [esp + 0xf], dl
movaps xmm0, xmmword [0x538c70]
push edi
movups xmmword [esp + 0x48], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push str.kernel32.dll
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetSystemDefaultUILanguage
push esi
call edi
test eax, eax
je 0x48a4e1
call eax
movzx eax, ax
mov dword [esp + 0x14], eax
push str.GetUserDefaultUILanguage
push esi
call edi
test eax, eax
je 0x48a4f6
call eax
movzx eax, ax
mov dword [esp + 0x18], eax
mov edi, dword [ebx + 4]
xor esi, esi
push 8
pop ebp
test edi, edi
jle 0x48a5fa
mov dword [esp + 0x34], 4
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x2c], 0x14
mov dword [esp + 0x28], 0x1c
mov dword [esp + 0x30], 0x18
push esi
mov ecx, ebx
call fcn.00406cf2
mov dl, byte [esp + 0x13]
movzx ecx, word [eax]
mov eax, dword [esp + 0x1c]
cmp cx, ax
jne 0x48a558
push 4
test dl, dl
pop eax
cmovne eax, dword [esp + 0x24]
mov dword [esp + eax + 0x38], esi
mov eax, dword [esp + 0x1c]
cmp cl, al
jne 0x48a56a
push 0x14
test dl, dl
pop eax
cmovne eax, dword [esp + 0x28]
mov dword [esp + eax + 0x38], esi
mov eax, dword [esp + 0x20]
cmp cx, ax
jne 0x48a588
push 0xc
xor ebp, ebp
test dl, dl
pop eax
cmovne eax, ebp
push 8
pop ebp
mov dword [esp + eax + 0x38], esi
mov eax, dword [esp + 0x20]
cmp cl, al
jne 0x48a59a
push 0x1c
test dl, dl
pop eax
cmovne eax, dword [esp + 0x2c]
mov dword [esp + eax + 0x38], esi
mov eax, dword [esp + 0x14]
cmp cx, ax
jne 0x48a5b2
xor eax, eax
test dl, dl
cmovne eax, ebp
mov dword [esp + eax + 0x38], esi
mov eax, dword [esp + 0x14]
cmp cl, al
jne 0x48a5c4
push 0x10
test dl, dl
pop eax
cmovne eax, dword [esp + 0x30]
mov dword [esp + eax + 0x38], esi
mov eax, dword [esp + 0x18]
cmp cx, ax
jne 0x48a5de
test dl, dl
mov eax, ebp
cmovne eax, dword [esp + 0x34]
mov dword [esp + eax + 0x38], esi
mov eax, dword [esp + 0x18]
cmp cl, al
jne 0x48a5f1
push 0x18
pop eax
push 0x10
test dl, dl
pop ecx
cmovne eax, ecx
mov dword [esp + eax + 0x38], esi
inc esi
cmp esi, edi
jl 0x48a52e
xor eax, eax
mov edx, dword [esp + eax*4 + 0x38]
test edx, edx
jns 0x48a60d
inc eax
cmp eax, ebp
jb 0x48a5fc
push 0
jmp 0x48a60e
push edx
mov ecx, ebx
call fcn.00406cf2
mov ecx, dword [esp + 0x58]
pop edi
pop esi
mov ax, word [eax]
pop ebp
pop ebx
xor ecx, esp
call fcn.004cb6da
add esp, 0x4c
ret