joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c58
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 0x412cb9
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 0x412cbb
mov al, 1
pop esi
leave
ret

Function at 0x412db6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x68
mov eax, 0x460322
call fcn.00447dc4
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.00412cfd
pop ecx
cmp dword [0x49c3d0], ebx
je 0x412e0e
mov eax, dword [0x49c3d8]
cmp eax, ebx
je 0x412e0e
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x412e03
lea ecx, [ebp - 0x28]
push ecx
call eax
pop ecx
mov esi, eax
jmp 0x412ed9
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 0x412e5f
lea edi, [ebp - 0x44]
cmp edi, ebx
je 0x412e75
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x412e79
xor eax, eax
jmp 0x412e8d
lea eax, [esi + esi]
call fcn.00450b10
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 0x412ecb
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 0x412eea
dec esi
je 0x412ee5
or esi, 0xffffffff
jmp 0x412eec
xor esi, esi
inc esi
jmp 0x412eec
xor esi, esi
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004140e9
mov eax, esi
lea esp, [ebp - 0x84]
call fcn.00447e47
ret
Function at 0x413519
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, 0x45d00e
call fcn.00447d5b
xor ebx, ebx
cmp dword [0x49c3d0], ebx
jne 0x4136c5
cmp dword [ebp + 8], ebx
je 0x4136c5
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.004341e6
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.00405157
lea ecx, [ebp - 0x10]
test eax, eax
je 0x413590
push str.Reader_
jmp 0x413595
push str.Acrobat_
call fcn.00409019
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.00409019
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x4135fb
push edi
push str.Agent
push str.SoftwareAdobeCommonFilesUsage_
push 0x80000001
call fcn.0042e072
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 [0x49c3d0], eax
call esi
push dword [ebp - 0x18]
call fcn.004341db
mov eax, dword [0x49c3d0]
pop ecx
test eax, eax
jne 0x413622
lea ecx, [ebx - 0x10]
call fcn.0040253e
lea ecx, [edi - 0x10]
call fcn.0040253e
jmp 0x413717
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTInitialize
push eax
call esi
push str.UTOptInGet
push dword [0x49c3d0]
mov dword [0x49c3d4], eax
call esi
push str.UTSetOptIn
push dword [0x49c3d0]
mov dword [0x49c3d8], eax
call esi
push str.UTStartSession
push dword [0x49c3d0]
mov dword [0x49c3dc], eax
call esi
push str.UTLogEvent
push dword [0x49c3d0]
mov dword [0x49c3e0], eax
call esi
push str.UTNewDataGroup
push dword [0x49c3d0]
mov dword [0x49c3e4], eax
call esi
push str.UTAddToGroup
push dword [0x49c3d0]
mov dword [0x49c3e8], eax
call esi
push str.UTCloseSession
push dword [0x49c3d0]
mov dword [0x49c3ec], eax
call esi
lea ecx, [ebx - 0x10]
mov dword [0x49c3f0], eax
call fcn.0040253e
lea ecx, [edi - 0x10]
call fcn.0040253e
xor ebx, ebx
cmp dword [0x49c3d8], ebx
je 0x413701
cmp dword [0x49c3dc], ebx
je 0x413701
cmp dword [0x49c3e0], ebx
je 0x413701
cmp dword [0x49c3e4], ebx
je 0x413701
cmp dword [0x49c3e8], ebx
je 0x413701
cmp dword [0x49c3ec], ebx
je 0x413701
cmp dword [0x49c3f0], ebx
je 0x413701
mov al, 1
jmp 0x413719
mov eax, dword [0x49c3d0]
cmp eax, ebx
je 0x413711
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x49c3d0], ebx
xor al, al
call fcn.00447e33
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 + 0x46d390]
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 + 0x46d390]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x46d388], 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 [0x497d50]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x45ead5
call fcn.00447d5b
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.00411fad
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.00411fad
add esp, 0xc
mov esi, eax
jmp 0x415e03
call fcn.00434582
push eax
lea ecx, [ebp - 0x10]
call fcn.0040210b
lea eax, [ebp - 0x10]
push eax
push 0x49ccf4
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 0x469efc
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.00408f80
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.00408f80
add esp, 0x18
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 6
call fcn.00409158
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.00411b27
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.00445157
add ebp, 0x20c
leave
ret
Function at 0x415e33
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0x2c
mov eax, 0x45cd09
call fcn.00447d5b
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.00411b27
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.00411b27
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.00447e33
ret
Function at 0x415f46
Capabilities:
Get common file path

Disassembly:
push 0x21c
mov eax, 0x45c7e0
call fcn.00447dc4
lea eax, [ebp - 0x218]
push eax
xor esi, esi
push esi
push esi
push 0x8023
mov edi, ecx
push esi
mov dword [ebp - 0x228], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x415f7f
xor eax, eax
jmp 0x41605a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.00402060
push str.AdobeARM
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 4], esi
call fcn.00408f80
add esp, 0xc
push edi
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00416060
mov edi, eax
cmp edi, esi
jne 0x41603c
mov esi, 0x49c934
mov eax, esi
call fcn.00405175
test eax, eax
je 0x41603c
mov eax, esi
call fcn.00405157
test eax, eax
mov eax, str.AdobeReader
jne 0x415fed
mov eax, str.AdobeAcrobat
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00408f80
add esp, 0xc
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.00409158
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.0040253e
push dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
call fcn.00416060
mov edi, eax
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, edi
call fcn.00447e47
ret
Function at 0x4182d8
Capabilities:
Download url
Receive data

Disassembly:
push 0x18
mov eax, 0x46020b
call fcn.00447d5b
mov ebx, ecx
mov esi, edx
push str.DownloadFileDirectly...
lea ecx, [ebp - 0x10]
call fcn.00402060
xor edi, edi
push edi
lea eax, [ebp - 0x10]
push eax
push 2
mov dword [ebp - 4], edi
call fcn.00411fad
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
lea eax, [ebp - 0x14]
push eax
push str.iForbidURLDownloadToFile
push dword [0x49c460]
mov dword [ebp - 0x10], edi
push 0x80000002
mov dword [ebp - 0x14], edi
call fcn.0042e197
add esp, 0x10
cmp dword [ebp - 0x14], 1
jne 0x418375
push str.URLDownloadToFile_is_not_allowed
lea ecx, [ebp + 8]
call fcn.00402060
push edi
lea eax, [ebp + 8]
push eax
push 2
mov dword [ebp - 4], 1
call fcn.00411fad
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
xor eax, eax
jmp 0x4184be
mov dword [ebp - 0x24], vtable.CCallback.0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 2
mov eax, dword [0x49cd00]
mov dword [ebp - 0x20], eax
lea eax, [esi + 4]
push eax
push ebx
call fcn.0040a5b1
pop ecx
pop ecx
test al, al
jne 0x4183be
lea eax, [esi + 0xc]
push eax
push ebx
call fcn.0040a5b1
pop ecx
pop ecx
test al, al
jne 0x4183be
add esi, 0x18
push esi
push ebx
call fcn.0040a5b1
pop ecx
pop ecx
test al, al
je 0x4183c5
mov dword [ebp - 0x1c], 0x3c
mov eax, dword [ebx]
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
lea edx, [ebp - 0x24]
push edx
push edi
push eax
push ecx
push edi
call sub.urlmon.dll_URLDownloadToFileW
cmp eax, edi
jl 0x41840a
push str.Download_success:
lea ecx, [ebp + 8]
mov dword [ebp - 0x10], 1
call fcn.00402060
push edi
push esi
lea eax, [ebp + 8]
push eax
push 2
mov byte [ebp - 4], 3
call fcn.00411b27
add esp, 0x10
jmp 0x4184b0
cmp dword [0x49c548], edi
jne 0x4184bb
mov esi, eax
call fcn.00417e00
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.004020a4
push str.http:__
push str.https:__
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 4
call fcn.00408dd5
test eax, eax
je 0x4184b0
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebx]
push edi
push edi
push ebx
push dword [ebp + 8]
push edi
call sub.urlmon.dll_URLDownloadToFileW
cmp eax, edi
jl 0x41847a
push str.Download_success:
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 1
call fcn.00402060
mov byte [ebp - 4], 5
jmp 0x418492
mov esi, eax
call fcn.00417e00
push str.Download_failed:
lea ecx, [ebp - 0x18]
call fcn.00402060
mov byte [ebp - 4], 6
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.00411b27
mov ecx, dword [ebp - 0x18]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, dword [ebp - 0x10]
call fcn.00447e33
ret 4
Function at 0x4184c6
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x4609a5
call fcn.00447d5b
push str.DownloadFilesDirectly...
lea ecx, [ebp - 0x14]
call fcn.00402060
xor esi, esi
push esi
lea eax, [ebp - 0x14]
push eax
push 2
mov dword [ebp - 4], esi
call fcn.00411fad
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
push esi
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [0x49c944]
cmp eax, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
jle 0x41861b
push dword [ebp - 0x14]
mov ecx, 0x49c93c
call fcn.0040907c
mov edi, eax
mov eax, dword [edi]
cmp eax, esi
je 0x41860c
cmp dword [eax + 0x18], esi
jne 0x41860c
lea eax, [ebx + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.004020a4
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov eax, dword [edi]
add eax, 4
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.00401eca
mov eax, dword [edi]
lea ecx, [eax + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00409158
mov ecx, edi
call fcn.00415f46
test eax, eax
je 0x4185bd
push str.File_already_exist_and_valid:
lea ecx, [ebp - 0x18]
call fcn.00402060
mov byte [ebp - 4], 2
mov eax, dword [edi]
push 0
add eax, 8
push eax
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.00411b27
mov ecx, dword [ebp - 0x18]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
mov edi, dword [edi]
mov dword [edi + 0x18], esi
jmp 0x4185fb
mov eax, dword [edi]
add eax, 0xc
push eax
lea ecx, [ebp - 0x10]
mov edx, ebx
call fcn.004182d8
cmp dword [0x49c548], 0
jne 0x418626
test eax, eax
mov eax, dword [edi]
je 0x41866b
mov ebx, dword [eax + 0x14]
mov esi, dword [ebp - 0x10]
call fcn.0041e29e
mov edi, dword [edi]
test eax, eax
je 0x418635
mov ebx, dword [ebp + 8]
mov dword [edi + 0x18], 1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040253e
xor esi, esi
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jl 0x418524
xor eax, eax
inc eax
call fcn.00447e33
ret 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040253e
xor eax, eax
jmp 0x41861e
and dword [edi + 0x18], 0
push str.Downloaded_file_is_not_valid:
lea ecx, [ebp + 8]
call fcn.00402060
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push 2
mov byte [ebp - 4], 3
call fcn.00411b27
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
jmp 0x418626
and dword [eax + 0x18], 0
jmp 0x418626
Function at 0x41b107
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45cc69
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x497d50]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
call fcn.00434582
push eax
lea ecx, [esp + 0x18]
call fcn.0040210b
xor ebx, ebx
mov dword [esp + 0x28], ebx
cmp dword [0x49c568], 2
jne 0x41b184
cmp dword [0x49ccc4], 0x249f0
jne 0x41b184
push 0x49c9c4
lea ecx, [esp + 0x18]
call fcn.00409158
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x41b1cb
push 0x480400
lea ecx, [esp + 0x18]
call fcn.004020d4
jmp 0x41b1cb
mov eax, 0x49c9f8
cmp dword [0x49c9ec], ebx
jne 0x41b196
mov eax, 0x49c9c0
push eax
lea ecx, [esp + 0x18]
call fcn.00409158
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x41b1cb
mov eax, 0x49c934
call fcn.00405157
test eax, eax
mov eax, 0x49c45c
jne 0x41b1c1
mov eax, 0x49c458
push eax
lea ecx, [esp + 0x18]
call fcn.00409158
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.004020a4
mov esi, dword [ebp + 8]
lea eax, [esp + 0x18]
add esi, 0x58
push eax
mov ecx, esi
mov byte [esp + 0x2c], 1
call fcn.00409158
mov byte [esp + 0x28], bl
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040253e
push 0x469238
lea ecx, [esp + 0x14]
call fcn.00402060
push 1
push ebx
push ebx
mov byte [esp + 0x34], 2
mov eax, dword [esi]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
cmp edi, 0x21
jge 0x41b2f6
sub eax, ebx
je 0x41b284
dec eax
dec eax
je 0x41b276
dec eax
je 0x41b26f
dec eax
dec eax
je 0x41b284
sub eax, 3
je 0x41b268
sub eax, 0x12
je 0x41b261
sub eax, 6
lea ecx, [esp + 0x10]
je 0x41b25a
push str.All_other_non_caught_scenarios
jmp 0x41b27f
push str.The_specified_DLL_was_not_found.
jmp 0x41b27f
push str.A_sharing_violation_occurred.
jmp 0x41b27b
push str.There_was_not_enough_memory_to_complete_the_operation.
jmp 0x41b27b
push str.The_specified_path_was_not_found.
jmp 0x41b27b
push str.The_specified_file_was_not_found.
lea ecx, [esp + 0x14]
call fcn.004020d4
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], ebx
je 0x41b2f6
push str.Failed_to_navigate_to_URL:
lea ecx, [esp + 0x1c]
call fcn.00402060
push edi
push esi
lea eax, [esp + 0x20]
push eax
push 1
mov byte [esp + 0x38], 3
call fcn.00411b27
mov byte [esp + 0x38], 2
mov ecx, dword [esp + 0x28]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
push str.___Error_message:
lea ecx, [esp + 0x1c]
call fcn.00402060
push ebx
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push 1
mov byte [esp + 0x38], 4
call fcn.00411b27
mov ecx, dword [esp + 0x28]
add esp, 0x10
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 + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41b9eb
Capabilities:
Check mutex on windows

Disassembly:
push 4
mov eax, 0x45d10a
call fcn.00447d5b
mov esi, str.GlobalARM_Update_Mutex
push esi
push 1
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0x1c], eax
cmp eax, ebx
jne 0x41ba27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x41ba27
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x1c], ebx
je 0x41ba56
push str.ARM_update_mutex_created
lea ecx, [ebp - 0x10]
call fcn.00402060
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.00411fad
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
call fcn.00447e33
ret
Function at 0x41e29e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x258
mov eax, dword [0x497d50]
xor eax, esp
mov dword [esp + 0x254], eax
test esi, esi
je 0x41e31d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41e31d
and dword [esp], 0
push 0x24c
lea eax, [esp + 8]
push 0
push eax
call fcn.00445f90
add esp, 0xc
lea eax, [esp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x41e31d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0xffffffff
je 0x41e302
cmp dword [esp + 0x20], ebx
jne 0x41e31d
push esi
call fcn.0041dde3
pop ecx
test eax, eax
je 0x41e31d
cmp ebx, 0xffffffff
jne 0x41e318
mov eax, dword [esp + 0x20]
jmp 0x41e31f
xor eax, eax
inc eax
jmp 0x41e31f
xor eax, eax
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.00445157
mov esp, ebp
pop ebp
ret