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

Disassembly:
push 0x28
mov eax, 0x517581
call fcn.004db753
lea eax, [ebp - 0x1c]
push eax
movzx eax, byte [ebp + 0xc]
shl eax, 8
inc eax
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x14
pop edi
push edi
mov esi, eax
mov dword [ebp - 0x18], 1
call fcn.004db2a1
or dword [ebp - 0x34], 0xffffffff
mov ebx, eax
mov dword [ebp - 0x30], ebx
and dword [ebp - 4], 0
push edi
mov dword [ebp - 0x10], edi
call fcn.004db2a1
or dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
push eax
mov dword [ebp + 0xc], edi
call fcn.004db29c
and dword [ebp - 0x28], 0
and dword [ebp - 0x2c], 0
push edi
call fcn.004db2a1
or dword [ebp - 0x2c], 0xffffffff
mov edi, eax
xor eax, eax
mov dword [ebp - 0x28], edi
add esp, 0x10
mov dword [ebp - 0x14], eax
test esi, esi
jne 0x48c3d8
mov esi, str.AI_InstallLanguage
lea ecx, [ebp + 0xc]
push ecx
push edi
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x24], eax
cmp eax, 0xea
jne 0x48c3a0
push ebx
call fcn.004db29c
push dword [ebp - 0x10]
and dword [ebp - 0x30], 0
and dword [ebp - 0x34], 0
call fcn.004db2a1
or dword [ebp - 0x34], 0xffffffff
mov ebx, eax
push edi
mov dword [ebp - 0x30], ebx
call fcn.004db29c
push dword [ebp + 0xc]
and dword [ebp - 0x28], 0
and dword [ebp - 0x2c], 0
call fcn.004db2a1
or dword [ebp - 0x2c], 0xffffffff
add esp, 0x10
mov edi, eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x28], edi
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, ebx
lea eax, [esi - 1]
sub ecx, str.AI_InstallLanguage
mov dword [ebp - 0x20], ecx
inc eax
mov cl, byte [ecx + eax]
mov dl, byte [eax]
cmp cl, dl
jl 0x48c3c7
jg 0x48c3c7
test cl, cl
je 0x48c408
test dl, dl
je 0x48c408
mov ecx, dword [ebp - 0x20]
jmp 0x48c3ae
mov eax, dword [ebp - 0x14]
inc eax
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x14], eax
je 0x48c31f
xor esi, esi
push edi
mov byte [ebp - 4], 0
call fcn.004db29c
and dword [ebp - 0x28], 0
and dword [ebp - 0x2c], 0
or dword [ebp - 4], 0xffffffff
push ebx
call fcn.004db29c
and dword [ebp - 0x30], 0
mov eax, esi
and dword [ebp - 0x34], 0
pop ecx
pop ecx
call fcn.004db71c
ret
or dword [ebp - 0x24], 0xffffffff
lea edx, [ebp - 0x24]
push ecx
mov ecx, edi
call fcn.00484340
pop ecx
mov esi, eax
jmp 0x48c3da
Function at 0x48cb94
Capabilities:
Check if file exists

Disassembly:
push 0x34
mov eax, 0x517741
call fcn.004db787
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp + 0xc]
call fcn.0040ce6d
and dword [ebp - 4], 0
mov eax, dword [esi]
add eax, 0x60
cmp dword [eax + 0x14], 8
jb 0x48cbc1
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040d91c
mov byte [ebp - 4], 1
mov eax, dword [esi]
add eax, 0x48
cmp dword [eax + 0x14], 8
jb 0x48cbdb
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040d91c
push 0x534080
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0040d91c
mov byte [ebp - 4], 3
mov eax, dword [esi]
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x48cc06
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040d91c
mov byte [ebp - 4], 4
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x48cc1d
mov eax, dword [ebx]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040d91c
mov byte [ebp - 4], 5
mov eax, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x48cc34
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040d91c
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
call fcn.00473150
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x2c]
call fcn.0049d20c
add esp, 0x14
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040d133
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.0040d133
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.0040d133
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0040d133
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040d133
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0040d133
test esi, esi
jne 0x48ccd8
push dword [ebp - 0x28]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48ccd8
mov eax, dword [edi + 4]
push ebx
mov byte [eax], 1
mov ecx, dword [edi + 8]
call fcn.00405726
jmp 0x48ccde
mov eax, dword [edi + 4]
mov byte [eax], 0
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x28]
mov bl, byte [eax]
or dword [ebp - 4], 0xffffffff
call fcn.0040d133
mov al, bl
call fcn.004db731
ret 8
Function at 0x48fb12
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ecx + 0x74], 1
push ebx
push esi
push edi
je 0x48fb9d
test dword [ecx + 0x74], 0x2000
jne 0x48fb9d
call fcn.0049041d
mov edi, eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 3
jl 0x48fb9d
xor esi, esi
mov ecx, edi
push esi
call fcn.00473c60
push 0x5c
pop ebx
cmp ax, bx
jne 0x48fb71
push 1
mov ecx, edi
call fcn.00473c60
cmp ax, bx
jne 0x48fb71
push 2
mov ecx, edi
call fcn.00473c60
cmp ax, bx
jne 0x48fb9d
push esi
mov ecx, edi
call fcn.00473c60
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x48fb71
xor ecx, ecx
mov word [ebp - 6], cx
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x48fb9d
mov al, 1
jmp 0x48fb9f
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dab44
leave
ret

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

Disassembly:
push 0x10
mov eax, 0x517f56
call fcn.004db753
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.0049041d
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004783e0
and dword [ebp - 4], 0
push 0x5c
push dword [edi]
call fcn.004dee47
pop ecx
pop ecx
test eax, eax
jne 0x48fbe6
or eax, 0xffffffff
jmp 0x48fbea
sub eax, dword [edi]
sar eax, 1
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00406e54
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.00410f2f
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0040d133
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48fc33
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 0x48fc4c
mov dword [esi + 0x14], ebx
jmp 0x48fcd0
push edi
push 3
lea ecx, [esi + 0x1c]
call fcn.0049b60a
lea ecx, [ebp - 0x14]
call fcn.0040ce6d
push 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x1c]
call fcn.0049b71b
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push 0x542030
push eax
call fcn.00411714
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.0040d133
mov esi, dword [ebp - 0x1c]
lea ecx, [esi + 0x184]
call fcn.00495e61
push 0
push 0x20
push 0
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.0049c365
add esp, 0xc
test al, al
jne 0x48fcc2
mov dword [esi + 0x14], ebx
jmp 0x48fcc4
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d133
mov eax, ebx
call fcn.004db71c
ret
Function at 0x490c71
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x51820f
call fcn.004db753
mov esi, ecx
mov eax, dword [esi + 0x1d8]
test eax, eax
je 0x490dae
cmp eax, 0xffffffff
je 0x490dae
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x1c], 0x103
jne 0x490dae
lea ecx, [ebp - 0x3c]
call fcn.004a3bea
xor ebx, ebx
lea ecx, [ebp - 0x18]
push str.Advinst_Estimate_
mov dword [ebp - 4], ebx
call fcn.0040d91c
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.0049041d
push ecx
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call fcn.00484000
pop ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.0047b880
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
push dword [ebp - 0x14]
call fcn.004890a7
push eax
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.00473860
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.004a3c28
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0040d133
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040d133
push 0x544bd0
lea ecx, [ebp - 0x10]
call fcn.0040d91c
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.0040d133
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040d133
mov byte [ebp - 4], 1
push dword [ebp - 0x24]
call fcn.004db29c
pop ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], bl
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004a3d01
call fcn.004db71c
ret
Function at 0x491b47
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x24
mov eax, 0x518447
call fcn.004db753
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp byte [edi + 0xc0], 0
je 0x491cc6
cmp byte [edi + 0xd8], 0
jne 0x491cc6
xor ebx, ebx
inc ebx
cmp dword [edi + 0x90], 3
je 0x491b9f
call fcn.00493ab6
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x491b9f
cmp eax, ebx
je 0x491b9f
test byte [edi + 0x44], 0x48
je 0x491b9f
mov ecx, edi
call fcn.004926d8
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 0x491c0d
lea eax, [edi + 0xa4]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
push ebx
mov ecx, eax
call fcn.004125c0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x491c02
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.004125c0
push eax
lea ecx, [ebp - 0x30]
call fcn.004706a0
mov eax, dword [ebp - 0x10]
inc ebx
cmp ebx, edi
jl 0x491bd4
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + 0xb4]
lea eax, [edi + 0xb0]
sub ebx, 1
mov dword [ebp - 0x18], eax
js 0x491c58
mov edi, eax
push ebx
mov ecx, edi
call fcn.004125c0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x491c50
push ebx
mov ecx, edi
call fcn.004125c0
push eax
lea ecx, [ebp - 0x24]
call fcn.004706a0
sub ebx, 1
jns 0x491c23
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 0xa4]
call fcn.004952f5
lea ebx, [edi + 0xb0]
mov ecx, ebx
call fcn.004571e1
mov esi, dword [ebp - 0x20]
jmp 0x491c8a
push esi
lea ecx, [ebp - 0x24]
call fcn.004125c0
push eax
mov ecx, ebx
call fcn.004706a0
sub esi, 1
jns 0x491c79
cmp dword [edi + 0xa8], 0
jne 0x491ca6
cmp dword [edi + 0xb4], 0
jne 0x491ca6
xor eax, eax
inc eax
jmp 0x491ca8
xor al, al
mov byte [edi + 0xd8], al
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.004571e1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004571e1
call fcn.004db71c
ret
Function at 0x493ab6
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x5188c0
call fcn.004db753
mov esi, ecx
test byte [esi + 0x44], 1
je 0x493ad4
test byte [esi + 0x44], 0x40
je 0x493c1d
mov eax, dword [esi + 0x7c]
xor edi, edi
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x493c1d
lea eax, [esi + 0x78]
push edi
mov ecx, eax
call fcn.0049518b
mov ebx, eax
cmp byte [ebx + 0x1c], 0
je 0x493c10
cmp dword [ebx], 1
je 0x493b2d
cmp dword [ebx], 3
je 0x493b2d
cmp dword [ebx], 7
je 0x493b2d
cmp dword [ebx], 8
je 0x493b2d
cmp dword [ebx], 0x64
jb 0x493b54
mov eax, dword [esi + 0x90]
cmp eax, 2
je 0x493c10
cmp eax, 5
jne 0x493b54
jmp 0x493c10
mov eax, dword [esi + 0x90]
cmp eax, 4
je 0x493b54
cmp eax, 2
je 0x493c10
cmp eax, 1
je 0x493c10
test byte [ebx + 8], 1
jne 0x493c10
push dword [ebx + 4]
mov ecx, esi
call fcn.004949b0
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0040713a
and dword [ebp - 4], 0
mov ecx, dword [ebx + 0x18]
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00410f2f
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x493b94
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d64d
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x493bdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x493bdf
lea ecx, [ebp - 0x2c]
call fcn.0040ce6d
lea ecx, [ebp - 0x28]
call fcn.0040ce6d
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.0048c99b
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004553ee
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00478b70
mov edx, dword [ebp - 0x14]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00479cb0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d133
inc edi
lea eax, [esi + 0x78]
cmp edi, dword [ebp - 0x1c]
jl 0x493ae7
call fcn.004db71c
ret
Function at 0x493c23
Capabilities:
Read file on windows

Disassembly:
push 0x34
mov eax, 0x5188eb
call fcn.004db753
mov ebx, ecx
xor eax, eax
cmp dword [ebx + 0x10], eax
je 0x493da4
mov ecx, dword [ebx + 0x1c]
add ecx, dword [ebx + 0x58]
mov dword [ebp - 0x20], ecx
adc eax, dword [ebx + 0x5c]
xor esi, esi
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
push dword [ebx + 0x88]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x493c83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.0049493a
push 2
pop eax
jmp 0x493da4
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x40], esi
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], esi
call fcn.0040ce6d
mov byte [ebp - 0x24], 0
xor esi, esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], esi
and dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
cmp dword [ebx + 0x10], esi
jbe 0x493d7e
xor edi, edi
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 0x493dca
cmp dword [ebp - 0x14], 0
je 0x493dca
test edi, edi
je 0x493cf6
push esi
call fcn.004db29c
and dword [ebp - 0x10], 0
pop ecx
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.0048ba38
mov esi, dword [ebp - 0x10]
test al, al
je 0x493dc6
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 0x493daa
cmp dword [ebp - 0x14], 0
je 0x493daa
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.004951ad
push dword [ebp - 0x18]
lea ecx, [ebx + 0x78]
call fcn.0049518b
mov edi, eax
test esi, esi
jne 0x493d5b
xor eax, eax
jmp 0x493d62
push esi
call fcn.004e0c46
pop ecx
push eax
push esi
lea ecx, [edi + 0x18]
call fcn.0040d89e
mov eax, dword [ebp - 0x18]
mov edi, esi
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebx + 0x10]
jb 0x493cbd
xor edi, edi
push esi
mov byte [ebp - 4], 1
call fcn.004db29c
and dword [ebp - 0x10], 0
pop ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 6
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.004db71c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.0049493a
push 2
pop edi
jmp 0x493d80
push 3
jmp 0x493dc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.0049493a
push 2
pop eax
mov dword [ebp - 0x18], eax
mov edi, eax
jmp 0x493d80
Function at 0x493df3
Capabilities:
Read file on windows

Disassembly:
push 0x28
mov eax, 0x518916
call fcn.004db753
mov edi, ecx
xor eax, eax
cmp dword [edi + 0x9c], eax
jg 0x493fb0
mov ecx, dword [edi + 0xc]
add ecx, dword [edi + 0x58]
mov dword [ebp - 0x34], ecx
adc eax, dword [edi + 0x5c]
xor ebx, ebx
push ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push ecx
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x493e56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.0049493a
push 2
pop eax
jmp 0x493fb0
mov esi, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
cmp dword [edi + 8], 0
mov dword [ebp - 0x18], ebx
jbe 0x493f9f
push 2
mov dword [ebp - 0x1c], ebx
pop ebx
push 0
lea eax, [ebp - 0x14]
push eax
push 8
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x493f88
cmp dword [ebp - 0x14], 0
je 0x493f88
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040ce6d
cmp dword [ebp - 0x1c], 0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
je 0x493ec7
push esi
call fcn.004db29c
and dword [ebp - 0x10], 0
pop ecx
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.0048ba38
mov esi, dword [ebp - 0x10]
test al, al
je 0x493f73
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
add eax, eax
push eax
push esi
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x493f5a
cmp dword [ebp - 0x14], 0
je 0x493f5a
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov word [esi + eax*2], cx
test esi, esi
jne 0x493f13
xor eax, eax
jmp 0x493f1a
push esi
call fcn.004e0c46
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040d89e
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 0x98]
call fcn.004950f2
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.0040d133
mov eax, dword [ebp - 0x18]
inc eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
cmp eax, dword [edi + 8]
jb 0x493e77
xor ebx, ebx
jmp 0x493f9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.0049493a
jmp 0x493f76
push 3
pop ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0040d133
mov byte [ebp - 4], 0
jmp 0x493f9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.0049493a
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004db29c
and dword [ebp - 0x10], 0
mov eax, ebx
pop ecx
call fcn.004db71c
ret

Function at 0x49509c
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
lea edi, [ebx + 0xe0]
cmp dword [ebx + 0xe4], esi
jle 0x4950ca
push esi
mov ecx, edi
call fcn.004125c0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [ebx + 0xe4]
jl 0x4950b1
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.004571e1
Function at 0x49548a
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507489
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x57c080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x2c], 0
je 0x4954c2
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 0x495519
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 0x495519
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.0040d91c
lea edx, [ebp - 0x14]
call fcn.0049c139
lea ecx, [ebp - 0x14]
call fcn.0040d133
lea ecx, [esi + 0x1c]
call fcn.00409ff3
lea ecx, [esi + 0x10]
call fcn.00409ff3
mov ecx, edi
call fcn.0040d133
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4957ad
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x49583f
push 0x104
lea eax, [ebp - 0x7c]
push eax
push dword [0x57e2d8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x49583f
push esi
lea esi, [eax + eax]
cmp esi, 0x208
jae 0x495855
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 0x49583e
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.004dab44
add ebp, 0x190
leave
ret
call fcn.004db3cd
int3
Function at 0x49599a
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x3c
mov eax, dword [0x57c080]
xor eax, esp
mov dword [esp + 0x38], eax
movaps xmm0, xmmword [0x54c150]
xor eax, eax
and dword [esp + 4], 0
push ebx
push ebp
push esi
movups xmmword [esp + 0x24], xmm0
push edi
movaps xmm0, xmmword [0x54c150]
mov edi, ecx
mov byte [esp + 0x13], dl
movups xmmword [esp + 0x38], xmm0
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push 0x53f690
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetSystemDefaultUILanguage
push esi
call ebx
test eax, eax
je 0x495a17
call eax
movzx eax, ax
mov dword [esp + 0x1c], eax
push str.GetUserDefaultUILanguage
push esi
call ebx
test eax, eax
je 0x495a2c
call eax
movzx eax, ax
mov dword [esp + 0x14], eax
mov ebp, dword [edi + 4]
xor esi, esi
test ebp, ebp
jle 0x495ad0
mov bl, byte [esp + 0x13]
push esi
mov ecx, edi
call fcn.00409fd1
movzx edx, bl
movzx ecx, word [eax]
mov eax, dword [esp + 0x20]
cmp cx, ax
jne 0x495a58
mov dword [esp + edx*8 + 0x2c], esi
cmp cl, al
jne 0x495a60
mov dword [esp + edx*8 + 0x3c], esi
mov eax, dword [esp + 0x18]
cmp cx, ax
jne 0x495a80
and dword [esp + 0x24], 0
test bl, bl
push 0xc
pop eax
cmovne eax, dword [esp + 0x24]
mov dword [esp + eax + 0x28], esi
mov eax, dword [esp + 0x18]
cmp cl, al
jne 0x495a8e
movzx eax, bl
xor eax, 1
mov dword [esp + eax*8 + 0x3c], esi
mov eax, dword [esp + 0x1c]
cmp cx, ax
jne 0x495a9b
mov dword [esp + edx*8 + 0x28], esi
cmp cl, al
jne 0x495aa3
mov dword [esp + edx*8 + 0x38], esi
mov eax, dword [esp + 0x14]
mov dl, bl
xor dl, 1
cmp cx, ax
jne 0x495abc
movzx eax, dl
mov dword [esp + eax*4 + 0x2c], esi
mov eax, dword [esp + 0x14]
cmp cl, al
jne 0x495ac7
movzx eax, dl
mov dword [esp + eax*8 + 0x38], esi
inc esi
cmp esi, ebp
jl 0x495a3d
xor eax, eax
mov edx, dword [esp + eax*4 + 0x28]
test edx, edx
jns 0x495ae4
inc eax
cmp eax, 8
jb 0x495ad2
push 0
jmp 0x495ae5
push edx
mov ecx, edi
call fcn.00409fd1
mov ecx, dword [esp + 0x48]
pop edi
pop esi
mov ax, word [eax]
pop ebp
pop ebx
xor ecx, esp
call fcn.004dab44
add esp, 0x3c
ret