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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [0x49d460]
mov byte [0x49d3c8], 1
push 0x80000002
mov dword [0x49d3bc], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411b2f
push edi
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [0x49d468]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x411b2f
cmp dword [ebp - 8], 1
jne 0x411b2f
mov dword [0x49d3bc], 2
leave
ret
Function at 0x4121a9
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov ebx, 0x104
push ebx
lea esi, [edi + 4]
push 0
push esi
mov dword [edi], vtable.CArmReport.0
call fcn.004462a0
add esp, 0xc
push esi
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x4121f7
push str.AdobeARM_
mov eax, ebx
mov ecx, esi
call fcn.004126db
push str.ArmReport.ini
mov eax, ebx
mov ecx, esi
call fcn.004126db
pop esi
mov eax, edi
pop ebx
ret

Function at 0x412220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 1
push esi
push esi
push 0x40000000
add eax, 4
push eax
mov dword [ebp - 4], 0xfeff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x412258
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4122a1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push ebx
call edi
test eax, eax
je 0x41228f
push esi
lea eax, [ebp - 8]
push eax
mov esi, str._SESSION_
push esi
call fcn.00445553
pop ecx
lea eax, [eax + eax + 2]
push eax
push esi
push ebx
call edi
test eax, eax
jne 0x412297
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4122a0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4122a5
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, eax
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41231e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41231e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41231a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
call ebx
push eax
mov edi, str.Delete_Report
call fcn.0041246a
push 4
push 0
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41231a
call ebx
mov ebx, eax
lea eax, [ebp - 1]
push eax
push ebx
mov edi, str.MoveEx_Report
mov byte [ebp - 1], 0
call fcn.0041246a
mov eax, ebx
jmp 0x412321
xor eax, eax
jmp 0x412321
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412326
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov edi, eax
lea ebx, [edi + 4]
push ebx
call esi
test eax, eax
jne 0x41234c
push 3
pop eax
jmp 0x412463
push ebx
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x412375
and dword [ebp - 8], 0
mov eax, edi
call fcn.00412220
mov dword [ebp - 4], eax
test eax, eax
jne 0x412463
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
je 0x41243f
cmp dword [ebp - 8], 0
je 0x41243f
push dword [ebp + 8]
and dword [ebp + 0x14], 0
lea eax, [ebp + 0x14]
mov ecx, edi
call fcn.004124e0
test eax, eax
jne 0x41243f
push dword [ebp + 0x14]
call esi
mov edi, eax
test edi, edi
je 0x41243f
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call fcn.0044631a
pop ecx
pop ecx
test eax, eax
je 0x4123d4
push dword [ebp + 0x14]
call fcn.004344f6
pop ecx
xor eax, eax
jmp 0x412463
push dword [ebp + 0xc]
call esi
add eax, edi
lea esi, [eax + eax + 2]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004344eb
mov edx, dword [ebp + 0x14]
mov edi, eax
pop ecx
push edi
mov eax, esi
call fcn.0040c53e
push dword [ebp + 0x10]
mov eax, esi
mov ecx, edi
call fcn.004126db
push dword [ebp + 0xc]
mov eax, esi
mov ecx, edi
call fcn.004126db
push ebx
push edi
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [ebp + 0x14]
mov esi, eax
call fcn.004344f6
push edi
call fcn.004344f6
pop ecx
pop ecx
jmp 0x412453
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
test esi, esi
jne 0x412460
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4124e0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
add edi, 4
push edi
mov esi, eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x412503
push 3
pop eax
jmp 0x4125a1
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x412513
push 2
jmp 0x4124fd
mov edi, 0x82
push ebx
add edi, edi
cmp edi, 0x821
jae 0x41259d
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004344eb
lea ecx, [edi + edi]
push ecx
push 0
push eax
mov dword [esi], eax
call fcn.004462a0
add esp, 0x10
push dword [ebp - 4]
push edi
push dword [esi]
push 0
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
test ebx, ebx
je 0x41256d
lea eax, [edi - 1]
cmp ebx, eax
jne 0x41257c
push dword [esi]
call fcn.004344f6
and dword [esi], 0
pop ecx
test ebx, ebx
je 0x412596
inc ebx
cmp edi, ebx
jbe 0x412519
mov esi, dword [esi]
test esi, esi
je 0x41259d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41259d
xor eax, eax
jmp 0x4125a0
mov eax, 0xe8
jmp 0x4125a0
push 0xd
pop eax
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x4125df
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, dword [esp + 8]
add ebp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4125fa
push 3
pop eax
jmp 0x412689
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41260a
push 2
jmp 0x4125f4
push esi
mov esi, 0x82
push ebx
add esi, esi
cmp esi, 0x1041
jae 0x41268d
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004344eb
lea ecx, [esi + esi]
push ecx
push 0
push eax
mov dword [edi], eax
call fcn.004462a0
add esp, 0x10
push ebp
push esi
push dword [edi]
push 0x46a238
push 0
push str.SESSION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
test ebx, ebx
je 0x412665
lea eax, [esi - 2]
cmp ebx, eax
jne 0x412674
push dword [edi]
call fcn.004344f6
and dword [edi], 0
pop ecx
test ebx, ebx
je 0x412692
lea eax, [esi - 2]
cmp ebx, eax
je 0x412611
mov eax, dword [edi]
neg eax
sbb eax, eax
and eax, 0xfffffff3
add eax, 0xd
pop ebx
pop esi
pop ebp
ret 4
push 0xd
pop eax
jmp 0x412687
mov eax, 0xe8
jmp 0x412687
Function at 0x4127bb
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x498d50]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
push esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1a0]
mov esi, 0x104
push esi
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.004462a0
add esp, 0xc
push dword [edi]
lea eax, [ebp - 0x78]
push esi
push eax
mov eax, dword [ebp - 0x80]
push 0x46a238
push dword [eax]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call fcn.004020d4
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
pop esi
call fcn.0044546a
add ebp, 0x194
leave
ret 8
Function at 0x41283a
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45d129
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push edi
mov eax, dword [0x498d50]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
add edi, 4
mov ecx, edi
mov dword [esp + 0x28], edi
call fcn.004393a6
push edi
call fcn.00412a21
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412a0a
call fcn.00434892
push eax
lea ecx, [esp + 0x18]
call fcn.0040210b
and dword [esp + 0x40], 0
mov ebx, 0x104
mov edi, dword [esi]
imul ebx, ebx, 5
push ebx
lea ecx, [esp + 0x18]
call fcn.004023c9
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.0040c514
lea eax, [ebx - 2]
cmp edi, eax
je 0x4128a5
test edi, edi
jbe 0x4129fe
lea ecx, [esp + 0x14]
call fcn.004103f7
mov ebx, 0x46a238
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], eax
call fcn.00402060
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 1
call fcn.00402060
and dword [esp + 0x18], 0
dec edi
mov byte [esp + 0x40], 2
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
movzx ecx, word [eax + ecx*2]
test cx, cx
jne 0x4129a0
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
je 0x412995
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 8]
lea ebx, [esp + 0x18]
mov edi, esi
call fcn.004127bb
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
je 0x41295b
mov ecx, dword [esp + 0x28]
push eax
push dword [esp + 0x14]
call fcn.00412c4b
jmp 0x412995
push str.Attention:_read_an_empty_string_from_resource_file__use_default_English_string_then:
lea ecx, [esp + 0x24]
call fcn.00402060
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
push 1
mov byte [esp + 0x50], 3
call fcn.00411b31
mov byte [esp + 0x50], 2
mov ecx, dword [esp + 0x30]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [esp + 0x10]
call fcn.004022b1
jmp 0x4129c9
lea ebx, [esp + 0x2c]
call fcn.00412aff
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 4
call fcn.00401e6a
mov byte [esp + 0x40], 2
mov ecx, dword [esp + 0x2c]
add ecx, 0xfffffff0
call fcn.0040253e
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x30]
jbe 0x412913
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0040c514
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040253e
xor eax, eax
inc eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x412c62
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], esi
je 0x412cc3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], 1
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
seta al
jmp 0x412cc5
mov al, 1
pop esi
leave
ret

Function at 0x412dc0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x68
mov eax, 0x460651
call fcn.004480d4
push 0xf
pop edi
mov esi, ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
call fcn.004140cd
push dword [ebp + 8]
mov ecx, esi
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00412d07
pop ecx
cmp dword [0x49d3d0], ebx
je 0x412e18
mov eax, dword [0x49d3d8]
cmp eax, ebx
je 0x412e18
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x412e0d
lea ecx, [ebp - 0x28]
push ecx
call eax
pop ecx
mov esi, eax
jmp 0x412ee3
or dword [ebp - 0x4c], 0xffffffff
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x54], 4
mov dword [ebp - 0x30], edi
call fcn.004140cd
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 1
call fcn.00413d1a
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00413ff9
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.004140e9
cmp dword [ebp - 0x30], 0x10
mov edi, dword [ebp - 0x44]
jae 0x412e69
lea edi, [ebp - 0x44]
cmp edi, ebx
je 0x412e7f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x412e83
xor eax, eax
jmp 0x412e97
lea eax, [esi + esi]
call fcn.00450e20
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00413d67
lea ecx, [ebp - 0x50]
push ecx
push 0x20019
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412ed5
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push str.OptIn
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x4c]
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004140e9
sub esi, ebx
je 0x412ef4
dec esi
je 0x412eef
or esi, 0xffffffff
jmp 0x412ef6
xor esi, esi
inc esi
jmp 0x412ef6
xor esi, esi
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004140e9
mov eax, esi
lea esp, [ebp - 0x84]
call fcn.00448157
ret
Function at 0x413523
Capabilities:
Check if file exists
Get common file path
Get file attributes
Link many functions at runtime
Set current directory

Disassembly:
push 0xc
mov eax, 0x45c833
call fcn.0044806b
xor ebx, ebx
cmp dword [0x49d3d0], ebx
jne 0x4136cf
cmp dword [ebp + 8], ebx
je 0x4136cf
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
call edi
mov esi, eax
add esi, 0x13
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004344eb
pop ecx
push eax
push esi
mov dword [ebp - 0x18], eax
call edi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x70]
push eax
lea ecx, [ebp - 0x10]
call fcn.004020a4
mov eax, esi
mov dword [ebp - 4], ebx
call fcn.0040515f
lea ecx, [ebp - 0x10]
test eax, eax
je 0x41359a
push str.Reader_
jmp 0x41359f
push str.Acrobat_
call fcn.00409023
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.004020a4
push str.logsession.dll
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00409023
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x413605
push edi
push str.Agent
push str.SoftwareAdobeCommonFilesUsage_
push 0x80000001
call fcn.0042e2db
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add esp, 0x10
push edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push dword [ebp - 0x18]
mov dword [0x49d3d0], eax
call esi
push dword [ebp - 0x18]
call fcn.004344f6
mov eax, dword [0x49d3d0]
pop ecx
test eax, eax
jne 0x41362c
lea ecx, [ebx - 0x10]
call fcn.0040253e
lea ecx, [edi - 0x10]
call fcn.0040253e
jmp 0x413721
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTInitialize
push eax
call esi
push str.UTOptInGet
push dword [0x49d3d0]
mov dword [0x49d3d4], eax
call esi
push str.UTSetOptIn
push dword [0x49d3d0]
mov dword [0x49d3d8], eax
call esi
push str.UTStartSession
push dword [0x49d3d0]
mov dword [0x49d3dc], eax
call esi
push str.UTLogEvent
push dword [0x49d3d0]
mov dword [0x49d3e0], eax
call esi
push str.UTNewDataGroup
push dword [0x49d3d0]
mov dword [0x49d3e4], eax
call esi
push str.UTAddToGroup
push dword [0x49d3d0]
mov dword [0x49d3e8], eax
call esi
push str.UTCloseSession
push dword [0x49d3d0]
mov dword [0x49d3ec], eax
call esi
lea ecx, [ebx - 0x10]
mov dword [0x49d3f0], eax
call fcn.0040253e
lea ecx, [edi - 0x10]
call fcn.0040253e
xor ebx, ebx
cmp dword [0x49d3d8], ebx
je 0x41370b
cmp dword [0x49d3dc], ebx
je 0x41370b
cmp dword [0x49d3e0], ebx
je 0x41370b
cmp dword [0x49d3e4], ebx
je 0x41370b
cmp dword [0x49d3e8], ebx
je 0x41370b
cmp dword [0x49d3ec], ebx
je 0x41370b
cmp dword [0x49d3f0], ebx
je 0x41370b
mov al, 1
jmp 0x413723
mov eax, dword [0x49d3d0]
cmp eax, ebx
je 0x41371b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x49d3d0], ebx
xor al, al
call fcn.00448143
ret
Function at 0x4143bf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x4143d6
leave
ret
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x4143f5
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4143fa
inc edi
cmp edi, dword [ebp - 8]
jb 0x4143ec
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x4144e9
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x41447c
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x414426
cmp cl, 0xff
jne 0x4144ab
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
sub esi, 5
mov ebx, esi
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x4144bc
movzx esi, byte [edx + 0x46e3a8]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
test bl, bl
je 0x41446c
cmp bl, 0xff
jne 0x4144b9
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x414444
dec ecx
shl edx, cl
and edx, 7
je 0x414413
movzx ecx, byte [edx + 0x46e3a8]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x46e3a0], 0
mov cl, byte [ebx + 4]
je 0x4144a8
test cl, cl
je 0x4144a8
cmp cl, 0xff
jne 0x414413
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4143e7
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x4143e7
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0xc]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x415c3d
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x498d50]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x45ee01
call fcn.0044806b
mov esi, ecx
push str.InitOnDemandDownload...
lea ecx, [ebp - 0x10]
call fcn.00402060
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
pop edi
push edi
mov dword [ebp - 4], ebx
call fcn.00411fb7
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jge 0x415cd8
push str.SHGetFolderPath_failed:
lea ecx, [ebp - 0x10]
call fcn.00402060
xor eax, eax
inc eax
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.00411fb7
add esp, 0xc
mov esi, eax
jmp 0x415e03
call fcn.00434892
push eax
lea ecx, [ebp - 0x10]
call fcn.0040210b
lea eax, [ebp - 0x10]
push eax
push 0x49dcf4
mov dword [ebp - 4], edi
call fcn.004147ae
lea eax, [ebp]
lea edi, [esi + 8]
push eax
mov ecx, edi
call fcn.004020d4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push str.AdobeARMOnDemand_
push eax
call fcn.00401dd1
push 0x46aefc
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.00408f8a
add esp, 0x18
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00401e6a
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040253e
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [esi + 0x28]
push str.https:__apollo.corp.adobe.com_arm_manifests_win_Igor_OnDemand_OnDemand.msi
call fcn.004020d4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00401d7a
push str..msi
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 5
call fcn.00408f8a
add esp, 0x18
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 6
call fcn.00409162
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040253e
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, dword [edi]
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
cmp esi, 0xa1
je 0x415dd5
cmp esi, 3
je 0x415dd5
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040253e
xor eax, eax
inc eax
jmp 0x415e10
push str.SHCreateDirectoryEx_failed:
lea ecx, [ebp - 0x14]
call fcn.00402060
push esi
push edi
lea eax, [ebp - 0x14]
push eax
push 1
mov byte [ebp - 4], 7
call fcn.00411b31
mov ecx, dword [ebp - 0x14]
add esp, 0x10
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040253e
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0044546a
add ebp, 0x20c
leave
ret
Function at 0x415e33
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0x2c
mov eax, 0x45d071
call fcn.0044806b
push 0
mov ecx, esi
call fcn.00419795
mov eax, esi
call fcn.00401000
test eax, eax
je 0x415f3d
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
test eax, eax
jne 0x415f3d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, dword [esi]
and ebx, 0xfffffffe
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi]
test bl, 0x10
je 0x415f02
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x415f3d
and dword [ebp - 0x34], eax
push 6
pop ecx
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov eax, 0x414
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x30], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edi, eax
test edi, edi
je 0x415f3d
push str.SHFileOperation_FO_DELETE__failed:
lea ecx, [ebp - 0x10]
call fcn.00402060
and dword [ebp - 4], 0
push edi
push esi
lea eax, [ebp - 0x10]
push eax
push 1
call fcn.00411b31
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
jmp 0x415f08
call edi
test eax, eax
jne 0x415f3d
push str.RemoveDirectory___DeleteFile___failed:
lea ecx, [ebp - 0x14]
call fcn.00402060
push 0x186a0
xor eax, eax
push esi
lea ecx, [ebp - 0x14]
inc eax
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.00411b31
mov ecx, dword [ebp - 0x14]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
xor eax, eax
jmp 0x415f40
xor eax, eax
inc eax
call fcn.00448143
ret