joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e003
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 [0x48b438]
mov byte [0x48b3a0], 1
push 0x80000002
mov dword [0x48b394], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e085
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 [0x48b43c]
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 0x40e085
cmp dword [ebp - 8], 1
jne 0x40e085
mov dword [0x48b394], 2
leave
ret
Function at 0x40e783
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x486d50]
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.0043b400
add esp, 0xc
push dword [edi]
lea eax, [ebp - 0x78]
push esi
push eax
mov eax, dword [ebp - 0x80]
push 0x45eeb8
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.00402123
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
pop esi
call fcn.0043a688
add ebp, 0x194
leave
ret 8
Function at 0x40e802
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4538c2
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push edi
mov eax, dword [0x486d50]
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.0042d6f1
push edi
call fcn.0040e9e9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e9d2
call fcn.00429b48
push eax
lea ecx, [esp + 0x18]
call fcn.0040fc71
and dword [esp + 0x40], 0
mov ebx, 0x104
mov edi, dword [esi]
imul ebx, ebx, 5
push ebx
lea ecx, [esp + 0x18]
call fcn.00402467
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00408a9c
lea eax, [ebx - 2]
cmp edi, eax
je 0x40e86d
test edi, edi
jbe 0x40e9c6
lea ecx, [esp + 0x14]
call fcn.0040c88f
mov ebx, 0x45eeb8
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], eax
call fcn.0040215a
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 1
call fcn.0040215a
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 0x40e968
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
je 0x40e95d
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 8]
lea ebx, [esp + 0x18]
mov edi, esi
call fcn.0040e783
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
je 0x40e923
mov ecx, dword [esp + 0x28]
push eax
push dword [esp + 0x14]
call fcn.0040ec13
jmp 0x40e95d
push str.Attention:_read_an_empty_string_from_resource_file__use_default_English_string_then:
lea ecx, [esp + 0x24]
call fcn.0040215a
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
push 1
mov byte [esp + 0x50], 3
call fcn.0040e087
mov byte [esp + 0x50], 2
mov ecx, dword [esp + 0x30]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025e7
lea ecx, [esp + 0x10]
call fcn.0040234f
jmp 0x40e991
lea ebx, [esp + 0x2c]
call fcn.0040eac7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 4
call fcn.00401f30
mov byte [esp + 0x40], 2
mov ecx, dword [esp + 0x2c]
add ecx, 0xfffffff0
call fcn.004025e7
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x30]
jbe 0x40e8db
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00408a9c
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004025e7
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004025e7
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004025e7
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 0x40ec2a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x452b9f
call fcn.0043cf0a
push 0x45ed08
lea eax, [ebp - 0x1c]
push 0x48b960
xor esi, esi
push eax
mov dword [ebp - 0x10], esi
call fcn.004088df
push dword [ebp + 8]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004088df
mov ecx, dword [ebp - 0x1c]
add esp, 0x18
add ecx, 0xfffffff0
call fcn.004025e7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push esi
push dword [ebp - 0x18]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x10], esi
je 0x40ecd2
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], esi
seta bl
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025e7
mov al, bl
call fcn.0043cfe2
ret
mov bl, 1
jmp 0x40ecbf

Function at 0x40edc3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x68
mov eax, 0x4561c1
call fcn.0043cf73
push 0xf
pop edi
mov esi, ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
call fcn.004103f1
push dword [ebp + 8]
mov ecx, esi
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040ed0a
pop ecx
cmp dword [0x48b3a8], ebx
je 0x40ee1b
mov eax, dword [0x48b3b0]
cmp eax, ebx
je 0x40ee1b
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x40ee10
lea ecx, [ebp - 0x28]
push ecx
call eax
pop ecx
mov esi, eax
jmp 0x40eee6
or dword [ebp - 0x4c], 0xffffffff
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x54], 4
mov dword [ebp - 0x30], edi
call fcn.004103f1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 1
call fcn.00410014
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0041031d
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.0041040d
cmp dword [ebp - 0x30], 0x10
mov edi, dword [ebp - 0x44]
jae 0x40ee6c
lea edi, [ebp - 0x44]
cmp edi, ebx
je 0x40ee82
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x40ee86
xor eax, eax
jmp 0x40ee9a
lea eax, [esi + esi]
call fcn.00448610
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0041008b
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 0x40eed8
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.0041040d
sub esi, ebx
je 0x40eef7
dec esi
je 0x40eef2
or esi, 0xffffffff
jmp 0x40eef9
xor esi, esi
inc esi
jmp 0x40eef9
xor esi, esi
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041040d
mov eax, esi
lea esp, [ebp - 0x84]
call fcn.0043cff6
ret
Function at 0x40f896
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, 0x4534aa
call fcn.0043cf0a
xor ebx, ebx
cmp dword [0x48b3a8], ebx
jne 0x40fa3d
cmp dword [ebp + 8], ebx
je 0x40fa3d
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.004297ce
pop ecx
push eax
push esi
mov dword [ebp - 0x18], eax
call edi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x60]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040219e
mov eax, esi
mov dword [ebp - 4], ebx
call fcn.004051e1
lea ecx, [ebp - 0x10]
test eax, eax
je 0x40f90d
push str.Reader_
jmp 0x40f912
push str.Acrobat_
call fcn.004089c0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040219e
push str.logsession.dll
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004089c0
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x40f973
push edi
push str.Agent
push str.SoftwareAdobeCommonFilesUsage_
call fcn.00424226
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add esp, 0xc
push edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push dword [ebp - 0x18]
mov dword [0x48b3a8], eax
call esi
push dword [ebp - 0x18]
call fcn.004297c3
mov eax, dword [0x48b3a8]
pop ecx
test eax, eax
jne 0x40f99a
lea ecx, [ebx - 0x10]
call fcn.004025e7
lea ecx, [edi - 0x10]
call fcn.004025e7
jmp 0x40fa8f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTInitialize
push eax
call esi
push str.UTOptInGet
push dword [0x48b3a8]
mov dword [0x48b3ac], eax
call esi
push str.UTSetOptIn
push dword [0x48b3a8]
mov dword [0x48b3b0], eax
call esi
push str.UTStartSession
push dword [0x48b3a8]
mov dword [0x48b3b4], eax
call esi
push str.UTLogEvent
push dword [0x48b3a8]
mov dword [0x48b3b8], eax
call esi
push str.UTNewDataGroup
push dword [0x48b3a8]
mov dword [0x48b3bc], eax
call esi
push str.UTAddToGroup
push dword [0x48b3a8]
mov dword [0x48b3c0], eax
call esi
push str.UTCloseSession
push dword [0x48b3a8]
mov dword [0x48b3c4], eax
call esi
lea ecx, [ebx - 0x10]
mov dword [0x48b3c8], eax
call fcn.004025e7
lea ecx, [edi - 0x10]
call fcn.004025e7
xor ebx, ebx
cmp dword [0x48b3b0], ebx
je 0x40fa79
cmp dword [0x48b3b4], ebx
je 0x40fa79
cmp dword [0x48b3b8], ebx
je 0x40fa79
cmp dword [0x48b3bc], ebx
je 0x40fa79
cmp dword [0x48b3c0], ebx
je 0x40fa79
cmp dword [0x48b3c4], ebx
je 0x40fa79
cmp dword [0x48b3c8], ebx
je 0x40fa79
mov al, 1
jmp 0x40fa91
mov eax, dword [0x48b3a8]
cmp eax, ebx
je 0x40fa89
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x48b3a8], ebx
xor al, al
call fcn.0043cfe2
ret
Function at 0x4106e3
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 0x4106fa
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 0x410719
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41071e
inc edi
cmp edi, dword [ebp - 8]
jb 0x410710
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x41080d
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x4107a0
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x41074a
cmp cl, 0xff
jne 0x4107cf
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 0x4107e0
movzx esi, byte [edx + 0x4618e8]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
test bl, bl
je 0x410790
cmp bl, 0xff
jne 0x4107dd
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x410768
dec ecx
shl edx, cl
and edx, 7
je 0x410737
movzx ecx, byte [edx + 0x4618e8]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x4618e0], 0
mov cl, byte [ebx + 4]
je 0x4107cc
test cl, cl
je 0x4107cc
cmp cl, 0xff
jne 0x410737
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x41070b
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 0x41070b
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 0x4117e8
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0x2c
mov eax, 0x45387f
call fcn.0043cf0a
push 0
mov ecx, esi
call fcn.00410061
mov eax, esi
call fcn.00401000
test eax, eax
je 0x4118f2
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
test eax, eax
jne 0x4118f2
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 0x4118b7
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4118f2
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 0x4118f2
push str.SHFileOperation_FO_DELETE__failed:
lea ecx, [ebp - 0x10]
call fcn.0040215a
and dword [ebp - 4], 0
push edi
push esi
lea eax, [ebp - 0x10]
push eax
push 1
call fcn.0040e087
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025e7
jmp 0x4118bd
call edi
test eax, eax
jne 0x4118f2
push str.RemoveDirectory___DeleteFile___failed:
lea ecx, [ebp - 0x14]
call fcn.0040215a
push 0x186a0
xor eax, eax
push esi
lea ecx, [ebp - 0x14]
inc eax
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.0040e087
mov ecx, dword [ebp - 0x14]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025e7
xor eax, eax
jmp 0x4118f5
xor eax, eax
inc eax
call fcn.0043cfe2
ret

Function at 0x4118fb
Capabilities:
Get common file path

Disassembly:
push 0x21c
mov eax, 0x453447
call fcn.0043cf73
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x8023
mov esi, ecx
push 0
mov dword [ebp - 0x228], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x411935
xor eax, eax
jmp 0x411a04
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040215a
and dword [ebp - 4], 0
push str.AdobeARM
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004088df
add esp, 0xc
push esi
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00411a0a
mov esi, eax
test esi, esi
jne 0x4119e6
mov eax, 0x48b904
call fcn.004051e1
test eax, eax
mov eax, str.AdobeReader
jne 0x411997
mov eax, str.AdobeAcrobat
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004088df
add esp, 0xc
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.00408b86
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004025e7
push dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
call fcn.00411a0a
mov esi, eax
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.004025e7
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.004025e7
mov eax, esi
call fcn.0043cff6
ret
Function at 0x4135fb
Capabilities:
Download url
Receive data

Disassembly:
push 0x14
mov eax, 0x4560b2
call fcn.0043cf0a
mov esi, ecx
push str.DownloadFileDirectly...
lea ecx, [ebp - 0x10]
call fcn.0040215a
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.0040e50d
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025e7
mov edi, 0x48b904
mov dword [ebp - 0x10], ebx
call fcn.00422b78
test eax, eax
je 0x41378a
mov dword [ebp - 0x1c], vtable.CCallback.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 1
mov eax, dword [0x48bae8]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [esi + 8]
push eax
push edi
call fcn.004143e8
pop ecx
pop ecx
test al, al
jne 0x41368a
add esi, 0x10
push esi
push edi
call fcn.004143e8
pop ecx
pop ecx
test al, al
je 0x413691
mov dword [ebp - 0x14], 0x3c
mov eax, dword [edi]
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
lea edx, [ebp - 0x1c]
push edx
push ebx
push eax
push ecx
push ebx
call sub.urlmon.dll_URLDownloadToFileW
cmp eax, ebx
jl 0x4136d6
push str.Download_success:
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x10], 1
call fcn.0040215a
push ebx
push esi
lea eax, [ebp + 0xc]
push eax
push 2
mov byte [ebp - 4], 2
call fcn.0040e087
add esp, 0x10
jmp 0x41377c
cmp dword [0x48b518], ebx
jne 0x413787
mov esi, eax
call fcn.00413123
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040219e
push str.http:__
push str.https:__
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 3
call fcn.004086d4
test eax, eax
je 0x41377c
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [edi]
push ebx
push ebx
push edi
push dword [ebp + 0xc]
push ebx
call sub.urlmon.dll_URLDownloadToFileW
cmp eax, ebx
jl 0x413746
push str.Download_success:
lea ecx, [ebp + 8]
mov dword [ebp - 0x10], 1
call fcn.0040215a
mov byte [ebp - 4], 4
jmp 0x41375e
mov esi, eax
call fcn.00413123
push str.Download_failed:
lea ecx, [ebp + 8]
call fcn.0040215a
mov byte [ebp - 4], 5
push ebx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push 2
call fcn.0040e087
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025e7
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004025e7
mov eax, dword [ebp - 0x10]
call fcn.0043cfe2
ret 8
Function at 0x413792
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x4564a6
call fcn.0043cf0a
push str.DownloadFilesDirectly...
lea ecx, [ebp - 0x14]
call fcn.0040215a
xor esi, esi
push esi
lea eax, [ebp - 0x14]
push eax
push 2
mov dword [ebp - 4], esi
call fcn.0040e50d
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025e7
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
push esi
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [0x48b914]
cmp eax, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
jle 0x4138e8
push dword [ebp - 0x14]
mov ecx, 0x48b90c
call fcn.00415af3
mov edi, eax
mov eax, dword [edi]
cmp eax, esi
je 0x4138d9
cmp dword [eax + 0x18], esi
jne 0x4138d9
lea eax, [ebx + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040219e
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.00401f90
mov eax, dword [edi]
lea ecx, [eax + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00408b86
mov ecx, edi
call fcn.004118fb
test eax, eax
je 0x413889
push str.File_already_exist_and_valid:
lea ecx, [ebp - 0x18]
call fcn.0040215a
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.0040e087
mov ecx, dword [ebp - 0x18]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025e7
mov edi, dword [edi]
mov dword [edi + 0x18], esi
jmp 0x4138c8
mov eax, dword [edi]
add eax, 0xc
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.004135fb
cmp dword [0x48b518], 0
jne 0x4138f3
test eax, eax
mov eax, dword [edi]
je 0x413938
mov ebx, dword [eax + 0x14]
mov esi, dword [ebp - 0x10]
call fcn.00417c21
mov edi, dword [edi]
test eax, eax
je 0x413902
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.004025e7
xor esi, esi
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jl 0x4137f0
xor eax, eax
inc eax
call fcn.0043cfe2
ret 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025e7
xor eax, eax
jmp 0x4138eb
and dword [edi + 0x18], 0
push str.Downloaded_file_is_not_valid:
lea ecx, [ebp + 8]
call fcn.0040215a
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push 2
mov byte [ebp - 4], 3
call fcn.0040e087
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025e7
jmp 0x4138f3
and dword [eax + 0x18], 0
jmp 0x4138f3
Function at 0x415fa9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4537dc
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x486d50]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
call fcn.00429b48
push eax
lea ecx, [esp + 0x18]
call fcn.0040fc71
xor ebx, ebx
mov dword [esp + 0x28], ebx
cmp dword [0x48b538], 2
jne 0x416026
cmp dword [0x48baac], 0x249f0
jne 0x416026
push 0x48b97c
lea ecx, [esp + 0x18]
call fcn.00408b86
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x41606d
push 0x472d78
lea ecx, [esp + 0x18]
call fcn.00402123
jmp 0x41606d
mov eax, 0x48b9a8
cmp dword [0x48b9a4], ebx
jne 0x416038
mov eax, 0x48b978
push eax
lea ecx, [esp + 0x18]
call fcn.00408b86
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x41606d
mov eax, 0x48b904
call fcn.004051e1
test eax, eax
mov eax, 0x48b434
jne 0x416063
mov eax, 0x48b430
push eax
lea ecx, [esp + 0x18]
call fcn.00408b86
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040219e
mov esi, dword [ebp + 8]
lea eax, [esp + 0x18]
add esi, 0x58
push eax
mov ecx, esi
mov byte [esp + 0x2c], 1
call fcn.00408b86
mov byte [esp + 0x28], bl
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004025e7
push 0x45eeb8
lea ecx, [esp + 0x14]
call fcn.0040215a
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 0x416198
sub eax, ebx
je 0x416126
dec eax
dec eax
je 0x416118
dec eax
je 0x416111
dec eax
dec eax
je 0x416126
sub eax, 3
je 0x41610a
sub eax, 0x12
je 0x416103
sub eax, 6
lea ecx, [esp + 0x10]
je 0x4160fc
push str.All_other_non_caught_scenarios
jmp 0x416121
push str.The_specified_DLL_was_not_found.
jmp 0x416121
push str.A_sharing_violation_occurred.
jmp 0x41611d
push str.There_was_not_enough_memory_to_complete_the_operation.
jmp 0x41611d
push str.The_specified_path_was_not_found.
jmp 0x41611d
push str.The_specified_file_was_not_found.
lea ecx, [esp + 0x14]
call fcn.00402123
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], ebx
je 0x416198
push str.Failed_to_navigate_to_URL:
lea ecx, [esp + 0x1c]
call fcn.0040215a
push edi
push esi
lea eax, [esp + 0x20]
push eax
push 1
mov byte [esp + 0x38], 3
call fcn.0040e087
mov byte [esp + 0x38], 2
mov ecx, dword [esp + 0x28]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025e7
push str.___Error_message:
lea ecx, [esp + 0x1c]
call fcn.0040215a
push ebx
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push 1
mov byte [esp + 0x38], 4
call fcn.0040e087
mov ecx, dword [esp + 0x28]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025e7
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004025e7
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004025e7
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 0x416587
Capabilities:
Check mutex on windows

Disassembly:
push 4
mov eax, 0x4553d1
call fcn.0043cf0a
mov esi, 0x473150
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 0x4165c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4165c3
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x1c], ebx
je 0x4165f2
push str.ARM_update_mutex_created
lea ecx, [ebp - 0x10]
call fcn.0040215a
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.0040e50d
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025e7
call fcn.0043cfe2
ret