joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49be97
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x511c9d
call fcn.004d6783
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0x200
mov esi, 0x100
call fcn.004d62d5
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 0x49bf1e
or dword [ebp - 4], 0xffffffff
add esi, esi
push edi
call fcn.004d62d0
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.004d62d5
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 0x49bed6
mov ecx, dword [ebp + 8]
call fcn.00457206
lea ecx, [ebp - 0x10]
call fcn.0040ce6d
mov byte [ebp - 4], 1
xor esi, esi
movzx eax, word [edi + esi*2]
test ax, ax
je 0x49bf48
push eax
lea ecx, [ebp - 0x10]
call fcn.00471ca0
jmp 0x49bf65
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x49bf5d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0046b650
lea ecx, [ebp - 0x10]
call fcn.0040d600
inc esi
cmp esi, ebx
jbe 0x49bf34
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
push edi
call fcn.004d62d0
and dword [ebp - 0x14], 0
pop ecx
call fcn.004d674c
ret 4

Function at 0x49c084
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ef72
mov eax, dword fs:[0]
push eax
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
mov eax, dword [esi + 0x20]
mov dword [esi], 0x53b70c
cmp dword [eax - 0xc], 0
je 0x49c0c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi + 0x34]
call fcn.0040d133
lea ecx, [esi + 0x30]
call fcn.0040d133
lea ecx, [esi + 0x28]
call fcn.0040d133
lea ecx, [esi + 0x24]
call fcn.0040d133
lea ecx, [esi + 0x20]
call fcn.0040d133
lea ecx, [esi + 8]
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x49c1e8
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0xa0
push 0xffffffffffffffff
push 0x511d70
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x573080]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x53b408
lea ecx, [ebp - 0x10]
call fcn.0040d91c
and dword [ebp - 4], 0
lea edx, [esi + 0x20]
lea ecx, [ebp - 0x10]
call fcn.004748f0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d133
lea ebx, [esi + 8]
mov edx, ebx
lea ecx, [ebp - 0x14]
call fcn.0049428a
mov dword [ebp - 4], 1
lea edi, [esi + 0x20]
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x49c284
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 0x49c342
push 0x573e30
push esi
lea ecx, [ebp]
call fcn.004989a2
push edi
push ebx
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00499093
mov ecx, dword [esi + 4]
mov edi, eax
mov cl, byte [ecx + 0x39]
test cl, cl
je 0x49c2b3
xor bl, bl
jmp 0x49c336
test edi, edi
je 0x49c333
cmp byte [0x576534], 0
je 0x49c331
push ecx
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00471760
pop ecx
mov esi, eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0040ce6d
mov ebx, str.Downloading_of_updates_failed._Error:
mov byte [ebp - 4], 4
mov esi, dword [esi]
push ebx
call fcn.004dbc76
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x10]
call fcn.00410f2f
test esi, esi
je 0x49c30b
push esi
call fcn.004dbc76
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00410f2f
lea eax, [ebp - 0x10]
mov ecx, 0x576500
push eax
call fcn.0049d180
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.0040d133
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040d133
test edi, edi
sete bl
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004881ea
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d133
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.004d5b75
add ebp, 0xa0
leave
ret
Function at 0x49d2b0
Capabilities:
Write file on windows

Disassembly:
push 0x214
mov eax, 0x511ff1
call fcn.004d67b7
mov esi, ecx
cmp dword [esi + 0x30], 0
jne 0x49d437
lea edi, [esi + 0x24]
xor ebx, ebx
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jne 0x49d368
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x49d311
add eax, eax
cmp eax, 0x208
jae 0x49d43d
xor ecx, ecx
lea ebx, [ebp - 0x218]
mov word [ebp + eax - 0x218], cx
jmp 0x49d316
mov ebx, str.Logger
push ebx
call fcn.004dbc76
pop ecx
push eax
push ebx
mov ecx, edi
call fcn.0040d89e
push 0x2e
push dword [edi]
call fcn.004d9e77
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x49d34f
mov eax, dword [edi]
sub ecx, eax
sar ecx, 1
test ecx, ecx
jle 0x49d34f
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
mov ecx, edi
call fcn.0046eaa0
mov ebx, str..log
push ebx
call fcn.004dbc76
pop ecx
push eax
push ebx
mov ecx, edi
call fcn.00410f2f
mov eax, dword [edi]
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [esi + 0x2c]
call fcn.0040e076
cmp dword [esi + 0x30], 0xffffffff
je 0x49d42e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x49d3b8
cmp dword [esi + 0x30], 0
je 0x49d437
push 2
push ebx
push ebx
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x49d3f6
test eax, eax
jne 0x49d42e
cmp dword [esi + 0x30], eax
je 0x49d42e
push 2
pop ecx
push ebx
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 + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [esi + 0x30], 0
je 0x49d437
lea eax, [esi + 0x28]
mov ecx, esi
push eax
call fcn.0049d443
lea ecx, [ebp - 0x21c]
call fcn.0049d472
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0049d443
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040d133
jmp 0x49d437
push ebx
lea ecx, [esi + 0x2c]
call fcn.0040e076
call fcn.004d6761
ret
call fcn.004d6401
int3

Function at 0x49d443
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 + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop esi
pop ebp
ret 4
Function at 0x49e5d9
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x194
push 0xffffffffffffffff
push 0x512248
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x573080]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
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 0x49e642
xor al, al
jmp 0x49e785
mov edi, dword [esi]
mov eax, dword [edi - 0xc]
cmp eax, 0x4f
jle 0x49e655
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 0x49e683
cmp dword [ebp - 0x18], 0xc8
jbe 0x49e777
lea ecx, [ebp - 0x10]
call fcn.0040ce6d
mov eax, dword [ebp - 0x1c]
and dword [ebp - 4], 0
push 0x20
pop ebx
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x49e6e1
push 0
mov ecx, esi
call fcn.0046ec10
push 0x22
pop ecx
cmp ax, cx
je 0x49e6e1
push 0
push ebx
mov ecx, esi
call fcn.00471c20
cmp eax, 0xffffffff
je 0x49e6e1
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00471ca0
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00410f2f
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00471ca0
jmp 0x49e721
mov edx, dword [esi]
mov ebx, dword [ebp - 0x10]
add ebx, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x49e71e
cmp dword [ebx + 0xc], 0
jl 0x49e712
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x49e712
call fcn.004070e8
mov ecx, ebx
mov esi, eax
call fcn.0040d635
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x49e71e
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.0040d89e
push 0x20
pop ebx
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x49e743
push 0
mov ecx, esi
call fcn.0046ec10
cmp ax, bx
je 0x49e743
push ebx
lea ecx, [ebp - 0x10]
call fcn.00471ca0
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00410f2f
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.0040d133
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.004d5b75
add ebp, 0x194
leave
ret
Function at 0x49e87a
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 esi, esi
mov edi, ecx
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x49e8a8
xor al, al
jmp 0x49e8fe
mov edi, dword [edi]
mov eax, dword [edi - 0xc]
cmp eax, 0x4f
jle 0x49e8bb
lea edi, [edi + eax*2]
add edi, 0xffffff62
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x49e8e4
cmp esi, 0xea
jne 0x49e8f0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop edi
pop esi
leave
ret

Function at 0x49e970
Capabilities:
Reference sql statements

Disassembly:
push 0xc
mov eax, 0x5122e7
call fcn.004d6783
mov edi, ecx
cmp dword [edi], 0
jne 0x49e98a
xor al, al
jmp 0x49ea47
lea ecx, [ebp - 0x18]
call fcn.0040ce6d
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.00411714
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 0x49e9c4
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 0x49ea2a
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x49ea2a
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], eax
je 0x49e9f9
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 0x49ea1b
push dword [ebp + 0xc]
push ecx
push dword [ebp - 0x14]
call fcn.0049eb7a
mov bl, al
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0
je 0x49ea2a
push dword [ebp - 0x14]
call esi
mov byte [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x49ea39
push dword [ebp - 0x10]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040d133
mov al, bl
call fcn.004d674c
ret 8
Function at 0x49eec4
Capabilities:
Create pipe

Disassembly:
push 4
mov eax, 0x50f04c
call fcn.004d6783
mov edi, ecx
cmp byte [edi], 0
je 0x49eede
mov al, 1
jmp 0x49ef95
mov al, byte [ebp + 8]
lea ecx, [edi + 4]
mov byte [edi + 1], al
mov eax, dword [ebp + 0xc]
mov ebx, dword [ecx]
sub ebx, 0x10
mov edx, dword [eax]
lea esi, [edx - 0x10]
cmp esi, ebx
je 0x49ef25
cmp dword [ebx + 0xc], 0
jl 0x49ef1c
mov eax, dword [esi]
cmp eax, dword [ebx]
jne 0x49ef1c
mov ecx, esi
call fcn.004070e8
mov ecx, ebx
mov esi, eax
call fcn.0040d635
lea eax, [esi + 0x10]
mov dword [edi + 4], eax
jmp 0x49ef25
push dword [edx - 0xc]
push edx
call fcn.0040d89e
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.0049f383
xor ecx, ecx
mov dword [ebp - 4], ecx
mov al, byte [edi + 1]
test al, al
je 0x49ef67
push ecx
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]
mov dword [edi + 8], eax
xor ecx, ecx
mov al, byte [edi + 1]
test al, al
jne 0x49ef7e
push ecx
push ecx
push 3
push ecx
push ecx
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 8], eax
cmp dword [edi + 8], 0xffffffff
lea ecx, [ebp + 8]
setne bl
or dword [ebp - 4], 0xffffffff
mov byte [edi], bl
call fcn.0040d133
mov al, bl
call fcn.004d674c
ret 8

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

Disassembly:
push 4
mov eax, 0x50e3d4
call fcn.004d6783
mov esi, ecx
cmp byte [ebp + 0x10], 0
jne 0x49f2af
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x49f2af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x49f2af
cmp byte [esi + 0x11], 0
je 0x49f301
push 0
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 0x49f301
cmp dword [ebp + 0x10], edi
je 0x49f301
push dword [esi + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d91c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
and dword [ebp - 4], edi
push eax
call fcn.00407141
lea ecx, [ebp - 0x10]
call fcn.0040d133
jmp 0x49f309
mov ecx, dword [ebp + 8]
call fcn.0040ce6d
mov eax, dword [ebp + 8]
call fcn.004d674c
ret 0xc

Function at 0x49f314
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x4fa7ac
call fcn.004d6783
mov esi, ecx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x49f337
mov ecx, dword [ebp + 8]
call fcn.0040ce6d
jmp 0x49f36e
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 0x49f35f
mov ecx, dword [ebp + 8]
call fcn.0040ce6d
jmp 0x49f36e
push 1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.0049f279
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
call fcn.004d674c
ret 0xc
Function at 0x49f648
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x512487
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x573080]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
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]
mov ebx, eax
mov dword [ebp - 0x28], 0x52aca8
mov dword [ebp - 0x24], ebx
and dword [ebp - 4], 0
cmp ebx, 0xffffffff
je 0x49f774
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x49f774
cmp edi, dword [ebp + 0x78]
jbe 0x49f774
sub edi, dword [ebp + 0x78]
and dword [ebp - 0x1c], 0
push 0x10000
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00490378
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 0xd], 0
test esi, esi
je 0x49f763
and dword [ebp - 0x18], 0
lea ecx, [ebp]
and dword [ebp - 0x14], 0
call fcn.004d1720
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 0x49f74d
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x49f74d
mov edx, dword [ebp - 0x18]
lea eax, [ecx + edx]
cmp eax, edi
jbe 0x49f734
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.004d1520
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
cmp byte [ebp - 0xd], 0
mov dword [ebp - 0x18], eax
je 0x49f701
lea ecx, [ebp]
call fcn.004d15f0
push dword [ebp - 0x20]
lea ecx, [ebp]
call fcn.004d16c0
mov byte [ebp - 0xd], al
push esi
mov byte [ebp - 4], 0
call fcn.004d62d0
and dword [ebp - 0x1c], 0
pop ecx
jmp 0x49f778
mov byte [ebp - 0xd], 0
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x28], 0x52aca8
test ebx, ebx
je 0x49f792
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x24], 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.004d5b75
add ebp, 0x70
leave
ret

Function at 0x49f977
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x50fae9
call fcn.004d6783
mov edi, ecx
lea ecx, [ebp - 0x10]
call fcn.0040ce6d
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.0049fafc
test eax, eax
jne 0x49f9aa
push 3
pop esi
jmp 0x49f9d3
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.0040d133
mov eax, esi
call fcn.004d674c
ret 8
Function at 0x49fafc
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x5124e1
call fcn.004d6783
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 4]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x49fbdf
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov esi, 0x104
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x10], esi
call fcn.004d62d5
mov ebx, dword [ebp + 8]
mov edi, eax
pop ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], esi
push eax
push 0
push dword [ebx]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x49fba3
push edi
call fcn.004d62d0
mov esi, dword [ebp - 0x10]
and dword [ebp - 0x1c], 0
and dword [ebp - 0x20], 0
push esi
call fcn.004d62d5
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], edi
push eax
push 0
push dword [ebx]
mov dword [ebp - 0x20], esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, edi
test edx, edx
jne 0x49fbae
xor ecx, ecx
jmp 0x49fbbc
mov edx, edi
test eax, eax
je 0x49fb9b
xor esi, esi
inc esi
jmp 0x49fbc8
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49fbb3
sub ecx, esi
push ecx
mov ecx, dword [ebp + 0xc]
push edx
call fcn.00476d50
xor esi, esi
or dword [ebp - 4], 0xffffffff
push edi
call fcn.004d62d0
and dword [ebp - 0x1c], 0
mov eax, esi
and dword [ebp - 0x20], 0
pop ecx
jmp 0x49fbe2
xor eax, eax
inc eax
call fcn.004d674c
ret 8
Function at 0x4a09bf
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x498]
sub esp, 0x498
push 0xffffffffffffffff
push 0x512710
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x573080]
xor eax, ebp
mov dword [ebp + 0x494], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov ebx, dword [ebp + 0x4a0]
lea eax, [ebp + 0x84]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4a0bbf
lea eax, [ebp + 0x28c]
push eax
push 0
push 0x53b410
lea eax, [ebp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4a0bbf
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.0040d91c
and dword [ebp - 4], 0
mov esi, str..url
push esi
call fcn.004dbc76
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00410f2f
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 - 0x20], 0x52aca8
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x4a0b99
lea ecx, [ebp - 0x14]
call fcn.0040ce6d
mov byte [ebp - 4], 2
lea eax, [ebp + 4]
push 3
push dword [ebx]
lea ecx, [ebp]
mov dword [ebp], eax
call fcn.0048c67b
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
push dword [ebp]
call fcn.00476830
lea eax, [ebp + 4]
mov byte [ebp - 4], 5
cmp dword [ebp], eax
je 0x4a0aeb
push dword [ebp]
call fcn.004dbc9c
pop ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push str._InternetShortcut__r_nURL_s_r_n
push eax
call fcn.00456bd3
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
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 0x4a0b24
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x1c], 0
xor esi, esi
test ebx, ebx
je 0x4a0b3d
push 5
push esi
push esi
push dword [ebp - 0x10]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x5c
push dword [ebp - 0x10]
call fcn.004d9e77
pop ecx
pop ecx
test eax, eax
jne 0x4a0b52
or eax, 0xffffffff
jmp 0x4a0b57
sub eax, dword [ebp - 0x10]
sar eax, 1
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406d8a
mov edx, dword [ebp - 0x28]
mov ecx, eax
add edx, 0x1c
mov byte [ebp - 4], 6
call fcn.00474c50
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.0040d133
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040d133
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040d133
mov byte [ebp - 4], 0
mov dword [ebp - 0x20], 0x52aca8
test esi, esi
je 0x4a0bb3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x1c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d133
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0x494]
xor ecx, ebp
call fcn.004d5b75
add ebp, 0x498
leave
ret 4