joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49441d
Capabilities:
Read file on windows

Disassembly:
push 0xc
mov eax, 0x50bde9
call fcn.004cea03
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
je 0x494468
push ebx
lea eax, [ebp - 0x10]
push eax
push 4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x494472
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x494474
mov edi, ebx
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x494486
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
mov eax, edi
call fcn.004ce9cc
ret 4

Function at 0x494490
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x50be3f
call fcn.004cea03
mov ebx, ecx
lea ecx, [ebp - 0x14]
call fcn.00406bd2
and dword [ebp - 4], 0
xor ecx, ecx
push 2
mov edi, 0x100
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ce399
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [ebx + 4]
push edi
push esi
push dword [ebp - 0x14]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0xff
jne 0x49453e
push esi
add edi, edi
mov byte [ebp - 4], 0
call fcn.004ce497
and dword [ebp - 0x10], 0
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ce399
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [ebx + 4]
push edi
push esi
push dword [ebp - 0x14]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [edi - 1]
cmp eax, ecx
je 0x4944ee
mov ecx, dword [ebp + 0x10]
push esi
call fcn.00409e7d
push esi
mov byte [ebp - 4], 0
call fcn.004ce497
and dword [ebp - 0x10], 0
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x14]
call fcn.004068c3
call fcn.004ce9cc
ret 0xc
Function at 0x49456a
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x50be6a
call fcn.004cea03
mov ebx, ecx
mov dword [ebp - 0x10], ebx
xor ecx, ecx
mov esi, 0x100
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ce399
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
and dword [ebp - 4], 0
push dword [ebx + 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
cmp ebx, 0xfe
jne 0x4945fd
or dword [ebp - 4], 0xffffffff
add esi, esi
push edi
call fcn.004ce497
and dword [ebp - 0x14], 0
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ce399
pop ecx
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
lea eax, [esi - 2]
cmp ebx, eax
je 0x4945b5
mov ecx, dword [ebp + 8]
call fcn.00454aaf
lea ecx, [ebp - 0x10]
call fcn.00406bd2
mov byte [ebp - 4], 1
xor esi, esi
movzx eax, word [edi + esi*2]
test ax, ax
je 0x494627
push eax
lea ecx, [ebp - 0x10]
call fcn.00471ce0
jmp 0x494644
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x49463c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00471ac0
lea ecx, [ebp - 0x10]
call fcn.00409d89
inc esi
cmp esi, ebx
jbe 0x494613
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.004068c3
or dword [ebp - 4], 0xffffffff
push edi
call fcn.004ce497
and dword [ebp - 0x14], 0
pop ecx
call fcn.004ce9cc
ret 4

Function at 0x49477d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50bef6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x56d078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x20]
mov dword [esi], 0x535490
cmp dword [eax - 0xc], 0
je 0x4947b9
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi + 0x34]
call fcn.004068c3
lea ecx, [esi + 0x30]
call fcn.004068c3
lea ecx, [esi + 0x28]
call fcn.004068c3
lea ecx, [esi + 0x24]
call fcn.004068c3
lea ecx, [esi + 0x20]
call fcn.004068c3
lea ecx, [esi + 8]
call fcn.004068c3
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
mov dword [esi], 0x524f98
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4948e4
Capabilities:
Copy file

Disassembly:
push ebp
sub esp, 0x9c
lea ebp, [esp - 4]
mov eax, dword [0x56d078]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0xc
mov eax, 0x50bf72
call fcn.004cea03
mov esi, ecx
push 0x53517c
lea ecx, [ebp - 0x10]
call fcn.00409ea5
and dword [ebp - 4], 0
lea edi, [esi + 0x20]
mov edx, edi
lea ecx, [ebp - 0x10]
call fcn.00474730
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004068c3
lea ebx, [esi + 8]
mov edx, ebx
lea ecx, [ebp - 0x14]
call fcn.0048d97d
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x49496a
push 0
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
jmp 0x494a0d
push 0x56dde0
push esi
lea ecx, [ebp]
call fcn.004915d3
push edi
push ebx
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00491bbf
mov ecx, dword [esi + 4]
mov edi, eax
mov cl, byte [ecx + 0x39]
test cl, cl
je 0x494996
xor bl, bl
jmp 0x494a01
test edi, edi
je 0x4949fe
cmp byte [0x5736d4], 0
je 0x4949fc
push ecx
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00471600
pop ecx
mov esi, eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00406bd2
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
mov esi, dword [esi]
push str.Downloading_of_updates_failed._Error:
call fcn.004070ba
push esi
lea ecx, [ebp - 0x10]
call fcn.0048b7e8
push eax
mov ecx, 0x5736a4
call fcn.004955c1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.004068c3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004068c3
test edi, edi
sete bl
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.0048370d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004068c3
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 + 0x9c]
xor ecx, ebp
call fcn.004cde67
lea esp, [ebp + 0xa0]
pop ebp
ret
Function at 0x4956e8
Capabilities:
Write file on windows

Disassembly:
push 0x214
mov eax, 0x50c218
call fcn.004cea37
mov ebx, ecx
lea esi, [ebx + 0x28]
cmp dword [esi], 0
jne 0x49585f
lea edi, [ebx + 0x20]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x49578d
push 0x208
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add eax, eax
cmp eax, 0x208
jae 0x4957de
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
lea eax, [ebp - 0x218]
push eax
call fcn.004d3ded
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.00409e0a
push 0x2e
push dword [edi]
call fcn.004d18c5
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x49576d
or ecx, 0xffffffff
jmp 0x495771
sub ecx, dword [edi]
sar ecx, 1
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
mov ecx, edi
call fcn.0046a360
push str..log
mov ecx, edi
call fcn.004070ba
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
mov ecx, esi
call fcn.004251af
cmp dword [esi], 0xffffffff
je 0x495856
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4957e3
cmp dword [esi], 0
je 0x49585f
push 2
push 0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x49581e
call fcn.004ce683
test eax, eax
jne 0x495856
cmp dword [esi], eax
je 0x495856
push 2
pop ecx
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x21c], 0xfeff
push eax
push ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], ecx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [esi], 0
je 0x49585f
lea eax, [ebx + 0x24]
mov ecx, ebx
push eax
call fcn.00495865
lea ecx, [ebp - 0x21c]
call fcn.00495894
and dword [ebp - 4], 0
mov ecx, ebx
push eax
call fcn.00495865
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.004068c3
jmp 0x49585f
push 0
mov ecx, esi
call fcn.004251af
call fcn.004ce9e1
ret

Function at 0x495865
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
mov esi, ecx
mov edx, dword [eax]
lea eax, [ebp + 8]
push eax
mov eax, dword [edx - 0xc]
add eax, eax
push eax
push edx
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop esi
pop ebp
ret 4
Function at 0x49652f
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
sub esp, 0x190
lea ebp, [esp - 4]
mov eax, dword [0x56d078]
xor eax, ebp
mov dword [ebp + 0x190], eax
push 0x10
mov eax, 0x50c43c
call fcn.004cea03
mov dword [ebp - 0x1c], edx
mov esi, ecx
xor ebx, ebx
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x496583
xor al, al
jmp 0x49668d
mov edi, dword [esi]
mov eax, dword [edi - 0xc]
cmp eax, 0x4f
jle 0x496596
lea edi, [edi + eax*2]
add edi, 0xffffff62
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xc8
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x4965c4
cmp dword [ebp - 0x18], 0xc8
jbe 0x49667f
lea ecx, [ebp - 0x10]
call fcn.00406bd2
mov ebx, dword [ebp - 0x1c]
and dword [ebp - 4], 0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x496620
push 0
mov ecx, esi
call fcn.0046a4e0
push 0x22
pop ecx
cmp ax, cx
je 0x496620
push 0
push 0x20
mov ecx, esi
call fcn.00452f19
cmp eax, 0xffffffff
je 0x496620
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00471ce0
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.004070e2
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00471ce0
jmp 0x496629
push esi
lea ecx, [ebp - 0x10]
call fcn.00446330
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x49664b
push 0
mov ecx, ebx
call fcn.0046a4e0
push 0x20
pop ecx
cmp ax, cx
je 0x49664b
push ecx
lea ecx, [ebp - 0x10]
call fcn.00471ce0
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.004070e2
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004068c3
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.004cde67
lea esp, [ebp + 0x194]
pop ebp
ret
Function at 0x496779
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push esi
push edi
push eax
push 0xf003f
xor edi, edi
mov esi, ecx
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4967a7
xor al, al
jmp 0x4967fd
mov esi, dword [esi]
mov eax, dword [esi - 0xc]
cmp eax, 0x4f
jle 0x4967ba
lea esi, [esi + eax*2]
add esi, 0xffffff62
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x4967e3
cmp edi, 0xea
jne 0x4967ef
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete al
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x496871
Capabilities:
Reference sql statements

Disassembly:
push 0xc
mov eax, 0x50c4db
call fcn.004cea03
mov edi, ecx
cmp dword [edi], 0
jne 0x49688b
xor al, al
jmp 0x496948
lea ecx, [ebp - 0x18]
call fcn.00406bd2
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [eax]
lea eax, [ebp - 0x18]
push str.SELECT__Value__FROM__Property__WHERE__Property____s
push eax
call fcn.00407aa5
add esp, 0xc
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x10], ebx
je 0x4968c5
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push dword [ebp - 0x18]
push dword [edi]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jne 0x49692b
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x49692b
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], eax
je 0x4968fa
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x49691c
push dword [ebp + 0xc]
push ecx
push dword [ebp - 0x14]
call fcn.00496a46
mov bl, al
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0
je 0x49692b
push dword [ebp - 0x14]
call esi
mov byte [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x49693a
push dword [ebp - 0x10]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004068c3
mov al, bl
call fcn.004ce9cc
ret 8
Function at 0x496d9c
Capabilities:
Create pipe

Disassembly:
push 0
mov eax, 0x5083db
call fcn.004cea03
mov esi, ecx
cmp byte [esi], 0
je 0x496db3
mov al, 1
jmp 0x496e30
mov al, byte [ebp + 8]
lea ecx, [esi + 4]
push dword [ebp + 0xc]
mov byte [esi + 1], al
call fcn.00446330
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.004971f7
xor edi, edi
mov dword [ebp - 4], edi
cmp byte [esi + 1], 0
je 0x496e02
push edi
push 0x1388
mov eax, 0x7f90
push eax
push eax
push 0xff
push 6
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp byte [esi + 1], 0
mov dword [esi + 8], eax
jne 0x496e19
push edi
push edi
push 3
push edi
push edi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp dword [esi + 8], 0xffffffff
lea ecx, [ebp + 8]
setne bl
or dword [ebp - 4], 0xffffffff
mov byte [esi], bl
call fcn.004068c3
mov al, bl
call fcn.004ce9cc
ret 8

Function at 0x4970e5
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push 0xc
mov eax, 0x5094b3
call fcn.004cea03
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp byte [ebp + 0x10], bl
jne 0x497124
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x497124
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
add eax, 1
jne 0x497124
cmp byte [esi + 0x11], bl
je 0x497175
push ebx
lea eax, [ebp + 0x10]
push eax
push 0x7f90
push dword [esi + 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov edx, dword [esi + 0xc]
shr ecx, 1
mov word [edx + ecx*2], di
test eax, eax
je 0x497175
cmp dword [ebp + 0x10], ebx
je 0x497175
push dword [esi + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00409ea5
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call fcn.004071c5
lea ecx, [ebp - 0x10]
call fcn.004068c3
jmp 0x49717d
mov ecx, dword [ebp + 8]
call fcn.00406bd2
mov eax, dword [ebp + 8]
call fcn.004ce9cc
ret 0xc

Function at 0x497188
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x500842
call fcn.004cea03
mov esi, ecx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x4971ab
mov ecx, dword [ebp + 8]
call fcn.00406bd2
jmp 0x4971e2
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x10]
push ebx
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4971d3
mov ecx, dword [ebp + 8]
call fcn.00406bd2
jmp 0x4971e2
push 1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.004970e5
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
call fcn.004ce9cc
ret 0xc
Function at 0x4974c7
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0x6c
lea ebp, [esp - 4]
mov eax, dword [0x56d078]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push 0x1c
mov eax, 0x50c67b
call fcn.004cea03
mov eax, edx
mov dword [ebp - 0x20], eax
xor edx, edx
push edx
push 0x80
push 3
push edx
push 3
push 0x80000000
push ecx
mov byte [eax], dl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
and dword [ebp - 0x24], 0
mov ebx, eax
mov dword [ebp - 0x28], ebx
and dword [ebp - 4], 0
cmp ebx, 0xffffffff
je 0x4975de
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4975de
cmp edi, dword [ebp + 0x78]
jbe 0x4975de
sub edi, dword [ebp + 0x78]
and dword [ebp - 0x1c], 0
push 0x10000
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0048a60a
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 0xd], 0
test esi, esi
je 0x4975cd
and dword [ebp - 0x18], 0
lea ecx, [ebp]
and dword [ebp - 0x14], 0
call fcn.004c9630
push 0
lea eax, [ebp - 0x14]
push eax
push 0x10000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4975b7
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4975b7
mov edx, dword [ebp - 0x18]
lea eax, [ecx + edx]
cmp eax, edi
jbe 0x49759e
mov ecx, edi
mov byte [ebp - 0xd], 1
sub ecx, edx
mov dword [ebp - 0x14], ecx
push ecx
push esi
lea ecx, [ebp]
call fcn.004c9430
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
cmp byte [ebp - 0xd], 0
mov dword [ebp - 0x18], eax
je 0x49756b
lea ecx, [ebp]
call fcn.004c9500
push dword [ebp - 0x20]
lea ecx, [ebp]
call fcn.004c95d0
mov byte [ebp - 0xd], al
push esi
mov byte [ebp - 4], 0
call fcn.004ce497
and dword [ebp - 0x1c], 0
pop ecx
jmp 0x4975e2
mov byte [ebp - 0xd], 0
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4975f5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x28], 0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.004cde67
lea esp, [ebp + 0x70]
pop ebp
ret

Function at 0x4977e8
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x509b3f
call fcn.004cea03
mov edi, ecx
lea ecx, [ebp - 0x10]
call fcn.00406bd2
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
xor esi, esi
mov ecx, edi
push ebx
mov dword [ebp - 4], esi
call fcn.00497970
test eax, eax
jne 0x49781b
push 3
pop esi
jmp 0x497844
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push 1
push esi
push dword [ebx]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004068c3
mov eax, esi
call fcn.004ce9cc
ret 8
Function at 0x497970
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x50c6db
call fcn.004cea03
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 4]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x497a32
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov esi, 0x104
mov dword [ebp - 4], edi
push esi
mov dword [ebp - 0x10], esi
call fcn.004ce399
pop ecx
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x20], esi
push dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x497a29
lea ecx, [ebp - 0x20]
call fcn.0047b5e0
mov esi, dword [ebp - 0x10]
push esi
call fcn.004ce399
pop ecx
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x20], esi
push dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.004765c0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 2
call fcn.0047b5e0
or dword [ebp - 4], 0xffffffff
mov eax, edi
jmp 0x497a35
test eax, eax
je 0x497a09
xor edi, edi
inc edi
jmp 0x497a12
xor eax, eax
inc eax
call fcn.004ce9cc
ret 8
Function at 0x498630
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
sub esp, 0x494
lea ebp, [esp - 4]
mov eax, dword [0x56d078]
xor eax, ebp
mov dword [ebp + 0x494], eax
push 0x20
mov eax, 0x50c918
call fcn.004cea03
mov dword [ebp - 0x20], ecx
mov ebx, dword [ebp + 0x4a0]
lea eax, [ebp + 0x84]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x49880b
lea eax, [ebp + 0x28c]
push eax
push 0
push 0x5351e8
lea eax, [ebp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x49880b
lea eax, [ebp + 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0x28c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00409ea5
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push str..url
call fcn.004070ba
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2c], esi
and dword [ebp - 0x28], 0
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x4987ec
lea ecx, [ebp - 0x14]
call fcn.00406bd2
mov byte [ebp - 4], 2
lea eax, [ebp + 4]
push 3
push dword [ebx]
lea ecx, [ebp]
mov dword [ebp], eax
call fcn.004873a5
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
push dword [ebp]
call fcn.00476130
lea eax, [ebp + 4]
mov byte [ebp - 4], 5
cmp dword [ebp], eax
je 0x49873c
push dword [ebp]
call fcn.004d396c
pop ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push str._InternetShortcut__r_nURL_s_r_n
push eax
call fcn.00454835
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
add esp, 0xc
push 0
push ecx
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test esi, esi
je 0x498776
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x2c], esi
test ebx, ebx
je 0x498790
push 5
push 0
push 0
push dword [ebp - 0x10]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x5c
push dword [ebp - 0x10]
call fcn.004d18c5
pop ecx
pop ecx
test eax, eax
jne 0x4987a5
or eax, 0xffffffff
jmp 0x4987aa
sub eax, dword [ebp - 0x10]
sar eax, 1
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.00447d83
mov edx, dword [ebp - 0x20]
mov ecx, eax
add edx, 0x1c
mov byte [ebp - 4], 6
call fcn.00474930
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.004068c3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004068c3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004068c3
mov byte [ebp - 4], 0
test esi, esi
je 0x4987ff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x2c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004068c3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x494]
xor ecx, ebp
call fcn.004cde67
lea esp, [ebp + 0x498]
pop ebp
ret 4