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

Disassembly:
push 0x28
mov eax, 0x50ef57
call fcn.004d6783
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.004d62d5
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.004d62d5
or dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
push eax
mov dword [ebp + 0xc], edi
call fcn.004d62d0
and dword [ebp - 0x28], 0
and dword [ebp - 0x2c], 0
push edi
call fcn.004d62d5
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 0x48751f
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 0x4874e7
push ebx
call fcn.004d62d0
push dword [ebp - 0x10]
and dword [ebp - 0x30], 0
and dword [ebp - 0x34], 0
call fcn.004d62d5
or dword [ebp - 0x34], 0xffffffff
mov ebx, eax
push edi
mov dword [ebp - 0x30], ebx
call fcn.004d62d0
push dword [ebp + 0xc]
and dword [ebp - 0x28], 0
and dword [ebp - 0x2c], 0
call fcn.004d62d5
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 0x48750e
jg 0x48750e
test cl, cl
je 0x48754f
test dl, dl
je 0x48754f
mov ecx, dword [ebp - 0x20]
jmp 0x4874f5
mov eax, dword [ebp - 0x14]
inc eax
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x14], eax
je 0x487466
xor esi, esi
push edi
mov byte [ebp - 4], 0
call fcn.004d62d0
and dword [ebp - 0x28], 0
and dword [ebp - 0x2c], 0
or dword [ebp - 4], 0xffffffff
push ebx
call fcn.004d62d0
and dword [ebp - 0x30], 0
mov eax, esi
and dword [ebp - 0x34], 0
pop ecx
pop ecx
call fcn.004d674c
ret
or dword [ebp - 0x24], 0xffffffff
lea edx, [ebp - 0x24]
push ecx
mov ecx, edi
call fcn.0047f2e0
pop ecx
mov esi, eax
jmp 0x487521
Function at 0x487cdb
Capabilities:
Check if file exists

Disassembly:
push 0x34
mov eax, 0x50f0f4
call fcn.004d67b7
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 0x487d08
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 0x487d22
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040d91c
push 0x52aec0
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 0x487d4d
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 0x487d64
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 0x487d7b
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.0046e100
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x2c]
call fcn.004984a5
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 0x487e1f
push dword [ebp - 0x28]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x487e1f
mov eax, dword [edi + 4]
push ebx
mov byte [eax], 1
mov ecx, dword [edi + 8]
call fcn.00405726
jmp 0x487e25
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.004d6761
ret 8
Function at 0x48aca6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x573080]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ecx + 0x74], 1
push ebx
push esi
push edi
je 0x48ad31
test dword [ecx + 0x74], 0x2000
jne 0x48ad31
call fcn.0048b5b1
mov edi, eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 3
jl 0x48ad31
xor esi, esi
mov ecx, edi
push esi
call fcn.0046ec10
push 0x5c
pop ebx
cmp ax, bx
jne 0x48ad05
push 1
mov ecx, edi
call fcn.0046ec10
cmp ax, bx
jne 0x48ad05
push 2
mov ecx, edi
call fcn.0046ec10
cmp ax, bx
jne 0x48ad31
push esi
mov ecx, edi
call fcn.0046ec10
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x48ad05
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 0x48ad31
mov al, 1
jmp 0x48ad33
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5b75
leave
ret

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

Disassembly:
push 0x10
mov eax, 0x50f911
call fcn.004d6783
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.0048b5b1
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.00473380
and dword [ebp - 4], 0
push 0x5c
push dword [edi]
call fcn.004d9e77
pop ecx
pop ecx
test eax, eax
jne 0x48ad7a
or eax, 0xffffffff
jmp 0x48ad7e
sub eax, dword [edi]
sar eax, 1
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00406e5b
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 0x48adc7
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 0x48ade0
mov dword [esi + 0x14], ebx
jmp 0x48ae64
push edi
push 3
lea ecx, [esi + 0x1c]
call fcn.004968a3
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.004969b4
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push 0x538e94
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.004910f7
push 0
push 0x20
push 0
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.004975fe
add esp, 0xc
test al, al
jne 0x48ae56
mov dword [esi + 0x14], ebx
jmp 0x48ae58
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.004d674c
ret
Function at 0x48be05
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x50fbca
call fcn.004d6783
mov esi, ecx
mov eax, dword [esi + 0x1d8]
test eax, eax
je 0x48bf42
cmp eax, 0xffffffff
je 0x48bf42
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x1c], 0x103
jne 0x48bf42
lea ecx, [ebp - 0x3c]
call fcn.0049ee86
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.0048b5b1
push ecx
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call fcn.0047efa0
pop ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00476830
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
push dword [ebp - 0x14]
call fcn.0048413a
push eax
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.0046e810
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.0049eec4
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 0x53b9d8
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.004d62d0
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.0049ef9d
call fcn.004d674c
ret
Function at 0x48cd35
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x24
mov eax, 0x50fe0a
call fcn.004d6783
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp byte [edi + 0xc0], 0
je 0x48ceb4
cmp byte [edi + 0xd8], 0
jne 0x48ceb4
xor ebx, ebx
inc ebx
cmp dword [edi + 0x90], 3
je 0x48cd8d
call fcn.0048eca4
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x48cd8d
cmp eax, ebx
je 0x48cd8d
test byte [edi + 0x44], 0x48
je 0x48cd8d
mov ecx, edi
call fcn.0048d8c6
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 0x48cdfb
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 0x48cdf0
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.004125c0
push eax
lea ecx, [ebp - 0x30]
call fcn.0046b650
mov eax, dword [ebp - 0x10]
inc ebx
cmp ebx, edi
jl 0x48cdc2
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + 0xb4]
lea eax, [edi + 0xb0]
sub ebx, 1
mov dword [ebp - 0x18], eax
js 0x48ce46
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 0x48ce3e
push ebx
mov ecx, edi
call fcn.004125c0
push eax
lea ecx, [ebp - 0x24]
call fcn.0046b650
sub ebx, 1
jns 0x48ce11
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 0xa4]
call fcn.00490599
lea ebx, [edi + 0xb0]
mov ecx, ebx
call fcn.00457206
mov esi, dword [ebp - 0x20]
jmp 0x48ce78
push esi
lea ecx, [ebp - 0x24]
call fcn.004125c0
push eax
mov ecx, ebx
call fcn.0046b650
sub esi, 1
jns 0x48ce67
cmp dword [edi + 0xa8], 0
jne 0x48ce94
cmp dword [edi + 0xb4], 0
jne 0x48ce94
xor eax, eax
inc eax
jmp 0x48ce96
xor al, al
mov byte [edi + 0xd8], al
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00457206
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00457206
call fcn.004d674c
ret
Function at 0x48eca4
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x51028b
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x573080]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test byte [esi + 0x44], 1
je 0x48ecef
test byte [esi + 0x44], 0x40
je 0x48eea6
mov ecx, dword [esi + 0x7c]
xor eax, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
test ecx, ecx
jle 0x48eea6
lea ecx, [esi + 0x78]
push eax
call fcn.0049042f
mov edi, eax
mov ecx, esi
push dword [edi + 4]
call fcn.0048fc56
mov ebx, eax
lea ecx, [ebp - 0x10]
push ebx
mov dword [ebp - 0x1c], ebx
call fcn.00407141
and dword [ebp - 4], 0
mov ecx, dword [edi + 0x18]
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00410f2f
cmp byte [edi + 0x1c], 0
jne 0x48eda8
push 0x250
lea eax, [ebp]
push 0
push eax
call fcn.004d99d0
add esp, 0xc
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, 0x535874
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
mov byte [ebp - 4], 1
xor ecx, ecx
add ecx, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x1c]
adc ebx, 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], edx
test eax, eax
je 0x48ed94
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [edi + 0xc]
jne 0x48ee87
test ebx, ebx
jne 0x48ee87
mov ebx, dword [ebp - 0x1c]
cmp dword [edi], 1
je 0x48edda
cmp dword [edi], 3
je 0x48edda
cmp dword [edi], 7
je 0x48edda
cmp dword [edi], 8
je 0x48edda
cmp dword [edi], 0x64
jb 0x48ee01
mov eax, dword [esi + 0x90]
cmp eax, 2
je 0x48ee87
cmp eax, 5
jne 0x48ee01
jmp 0x48ee87
mov eax, dword [esi + 0x90]
cmp eax, 4
je 0x48ee01
cmp eax, 2
je 0x48ee87
cmp eax, 1
je 0x48ee87
test byte [edi + 8], 1
jne 0x48ee87
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x48ee18
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 0x48ee63
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x48ee63
lea ecx, [ebp - 0x3c]
call fcn.0040ce6d
lea ecx, [ebp - 0x38]
call fcn.0040ce6d
xor eax, eax
mov word [ebp - 0x34], ax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x3c]
call fcn.00487ae2
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00455412
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x20]
call fcn.00473b10
mov edx, ebx
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.00474c50
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d133
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0x78]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x24]
jl 0x48ed05
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.004d5b75
add ebp, 0x254
leave
ret
Function at 0x48eec9
Capabilities:
Read file on windows

Disassembly:
push 0x34
mov eax, 0x5102c3
call fcn.004d6783
mov ebx, ecx
xor eax, eax
cmp dword [ebx + 0x10], eax
je 0x48f04a
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 0x48ef29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.0048fbe0
push 2
pop eax
jmp 0x48f04a
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 0x48f024
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 0x48f070
cmp dword [ebp - 0x14], 0
je 0x48f070
test edi, edi
je 0x48ef9c
push esi
call fcn.004d62d0
and dword [ebp - 0x10], 0
pop ecx
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.00486acb
mov esi, dword [ebp - 0x10]
test al, al
je 0x48f06c
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 0x48f050
cmp dword [ebp - 0x14], 0
je 0x48f050
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.00490451
push dword [ebp - 0x18]
lea ecx, [ebx + 0x78]
call fcn.0049042f
mov edi, eax
test esi, esi
jne 0x48f001
xor eax, eax
jmp 0x48f008
push esi
call fcn.004dbc76
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 0x48ef63
xor edi, edi
push esi
mov byte [ebp - 4], 1
call fcn.004d62d0
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.004d674c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.0048fbe0
push 2
pop edi
jmp 0x48f026
push 3
jmp 0x48f069
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.0048fbe0
push 2
pop eax
mov dword [ebp - 0x18], eax
mov edi, eax
jmp 0x48f026
Function at 0x48f099
Capabilities:
Read file on windows

Disassembly:
push 0x28
mov eax, 0x5102ee
call fcn.004d6783
mov edi, ecx
xor eax, eax
cmp dword [edi + 0x9c], eax
jg 0x48f256
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 0x48f0fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.0048fbe0
push 2
pop eax
jmp 0x48f256
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 0x48f245
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 0x48f22e
cmp dword [ebp - 0x14], 0
je 0x48f22e
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 0x48f16d
push esi
call fcn.004d62d0
and dword [ebp - 0x10], 0
pop ecx
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.00486acb
mov esi, dword [ebp - 0x10]
test al, al
je 0x48f219
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 0x48f200
cmp dword [ebp - 0x14], 0
je 0x48f200
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov word [esi + eax*2], cx
test esi, esi
jne 0x48f1b9
xor eax, eax
jmp 0x48f1c0
push esi
call fcn.004dbc76
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.00490396
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 0x48f11d
xor ebx, ebx
jmp 0x48f245
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.0048fbe0
jmp 0x48f21c
push 3
pop ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0040d133
mov byte [ebp - 4], 0
jmp 0x48f245
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.0048fbe0
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004d62d0
and dword [ebp - 0x10], 0
mov eax, ebx
pop ecx
call fcn.004d674c
ret

Function at 0x490340
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 0x49036e
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 0x490355
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.00457206
Function at 0x49072e
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff2f9
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x573080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x2c], 0
je 0x490766
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 0x4907bd
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 0x4907bd
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.004973d2
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 0x490a51
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x573080]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x490ae3
push 0x104
lea eax, [ebp - 0x7c]
push eax
push dword [0x575298]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x490ae3
push esi
lea esi, [eax + eax]
cmp esi, 0x208
jae 0x490af9
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 0x490ae2
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.004d5b75
add ebp, 0x190
leave
ret
call fcn.004d6401
int3