joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406888
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x34
mov eax, 0x44d7fb
call fcn.00436739
mov edi, dword [ebp + 8]
push str.InitUIStrings...
lea ecx, [ebp - 0x14]
call fcn.00402148
xor ebx, ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.0040e1e3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025ca
push str.ArmUI.ini
lea eax, [edi + 0xd0]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004085d4
add esp, 0xc
lea esi, [edi + 0xcc]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00408894
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004025ca
push str.ARM_UI_INI
push 0x83
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x406963
push str.FindResource_failed:
lea ecx, [ebp + 8]
call fcn.00402148
push 2
pop eax
push ebx
push esi
lea ecx, [ebp + 8]
push ecx
mov dword [ebp - 4], eax
push eax
call fcn.0040dd5d
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025ca
lea eax, [edi + 0x504]
push eax
lea ecx, [edi + 0x5e8]
call fcn.0040e41c
jmp 0x406b18
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x40698d
push str.LoadResource_failed:
lea ecx, [ebp + 8]
call fcn.00402148
push ebx
push esi
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], 3
push 2
jmp 0x406935
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], eax
call fcn.00423bef
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 4
call fcn.00402044
lea ecx, [ebp - 0x40]
push ecx
mov byte [ebp - 4], 5
mov eax, dword [esi]
push 0x1021
push eax
lea ecx, [ebp - 0x2c]
call fcn.00423ff0
test eax, eax
jne 0x406a44
push str.Open_file_failed:
lea ecx, [ebp + 8]
call fcn.00402148
push ebx
push esi
lea eax, [ebp + 8]
push eax
push 2
mov byte [ebp - 4], 6
call fcn.0040dd5d
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025ca
lea eax, [edi + 0x504]
push eax
lea ecx, [edi + 0x5e8]
call fcn.0040e41c
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
mov esi, eax
mov dword [ebp - 0x40], vtable.CFileException.0
call fcn.004025ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00423cca
mov eax, esi
jmp 0x406b18
mov byte [ebp - 4], 7
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00423925
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 5
call fcn.00423b89
lea eax, [edi + 0x504]
push eax
lea ecx, [edi + 0x5e8]
call fcn.0040e41c
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
mov dword [ebp - 0x40], vtable.CFileException.0
call fcn.004025ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00423cca
xor eax, eax
inc eax
jmp 0x406b18
call fcn.004367de
ret 4
Function at 0x407335
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xc
mov eax, 0x44fbe1
call fcn.00436706
mov esi, ecx
push str.ExecuteInstalls...
lea ecx, [ebp - 0x10]
call fcn.00402148
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.0040e1e3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025ca
push 8
pop ecx
mov eax, esi
mov dword [esi + 0xd8], ecx
call fcn.00407664
push str.Execute_Installs
lea ecx, [ebp - 0x10]
call fcn.00402148
lea eax, [ebp - 0x10]
xor edi, edi
push eax
inc edi
push esi
mov dword [ebp - 4], edi
call fcn.00405a7f
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025ca
mov dword [ebp - 0x14], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [esi + 0x5d0], eax
cmp dword [esi + 0x65c], ebx
jne 0x4073cd
call fcn.00405e17
cmp dword [0x480a5c], 0x249f0
je 0x4073e8
lea ebx, [esi + 0x544]
call fcn.0041550c
test eax, eax
jne 0x40742b
push 0x457ce8
lea ecx, [ebp - 0x10]
call fcn.00402148
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x10]
push ecx
push 0x249f0
lea edx, [esi + 0x61c]
mov ecx, eax
call fcn.0040c5be
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025ca
xor ebx, ebx
jmp 0x40742e
mov ebx, dword [ebp - 0x14]
push str.Execute_Installs
lea ecx, [ebp - 0x14]
call fcn.00402148
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 4], 3
call fcn.00405acb
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004025ca
call edi
sub eax, dword [esi + 0x5d0]
push 4
dec eax
mov dword [esi + 0x5d0], eax
lea eax, [esi + 0x588]
call fcn.0041483b
cmp dword [esi + 0xac], 0
jne 0x407492
cmp dword [esi + 0x52c], 0
jne 0x407492
cmp dword [esi + 0xdc], 2
je 0x4074c6
mov eax, esi
test ebx, ebx
jne 0x4074a8
push 2
pop ecx
mov dword [esi + 0xd8], ecx
call fcn.00407664
jmp 0x4074c6
push 9
pop ecx
mov dword [esi + 0xd8], ecx
call fcn.00407664
mov esi, dword [esi + 0x65c]
test esi, esi
je 0x4074c6
push esi
call fcn.0040a54d
mov eax, ebx
call fcn.004367de
ret
Function at 0x407d25
Capabilities:
Create process on windows

Disassembly:
push 8
mov eax, 0x44e830
call fcn.00436706
call fcn.004234c0
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f910
xor ebx, ebx
mov esi, 0x1b2c4
mov dword [ebp - 4], ebx
cmp dword [0x480a5c], esi
je 0x407e89
push dword [ebp + 0x10]
lea edi, [ebp - 0x10]
call fcn.0041f969
pop ecx
test eax, eax
je 0x407e89
push str.Launcher_path:
lea ecx, [ebp + 0x10]
call fcn.00402148
push ebx
mov eax, edi
push eax
lea eax, [ebp + 0x10]
push eax
push 2
mov byte [ebp - 4], 2
call fcn.0040dd5d
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0x10]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025ca
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, dword [ebp - 0x10]
push 5
push ebx
push eax
push edi
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, 0x271c8
mov dword [ebp + 0xc], eax
cmp dword [0x480a5c], esi
je 0x407e11
cmp eax, 0x21
jl 0x407e11
mov eax, dword [ebp + 8]
push str.ShellExecute_succeded.
lea ecx, [ebp + 8]
mov dword [eax + 0xbc], 1
call fcn.00402148
push ebx
lea eax, [ebp + 8]
push eax
push 2
mov byte [ebp - 4], 5
call fcn.0040e1e3
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025ca
lea ecx, [edi - 0x10]
call fcn.004025ca
xor eax, eax
jmp 0x407ece
push str.ShellExecute_failed
lea ecx, [ebp + 0x10]
call fcn.00402148
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0x10]
push ecx
push esi
add edx, 0x61c
mov ecx, eax
call fcn.0040c5be
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004025ca
cmp dword [ebp + 0xc], 5
jne 0x407e7c
push str.ShellExecute_failed_with_SE_ERR_ACCESSDENIED
lea ecx, [ebp + 8]
call fcn.00402148
push ebx
lea eax, [ebp + 8]
push eax
push 1
mov byte [ebp - 4], 4
call fcn.0040e1e3
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025ca
lea ecx, [edi - 0x10]
call fcn.004025ca
mov eax, dword [ebp + 0xc]
jmp 0x407ece
push str.Failed_to_create_launcher_path
lea ecx, [ebp + 0x10]
call fcn.00402148
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0x10]
push ecx
push esi
add edx, 0x61c
mov ecx, eax
call fcn.0040c5be
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004025ca
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025ca
push 0xd
pop eax
call fcn.004367de
ret 0xc
Function at 0x40b570
Capabilities:
Create bits job

Disassembly:
push 4
mov eax, 0x44e550
call fcn.00436706
mov esi, dword [ebp + 8]
lea ebx, [esi + 8]
mov ecx, ebx
call fcn.004020f0
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 0x30]
mov dword [esi + 0x28], vtable.CProxy.0
call fcn.004020f0
lea ecx, [esi + 0x34]
call fcn.004020f0
mov dword [esi + 0x2c], 1
push 0x10
mov byte [ebp - 4], 1
lea eax, [esi + 0x18]
push edi
push eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi], edi
mov dword [esi + 4], edi
call fcn.00434dc0
add esp, 0xc
push dword [ebp + 0xc]
mov ecx, ebx
mov dword [esi + 0xc], edi
mov dword [esi + 0x38], 4
call fcn.00402111
push 2
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, 0x272f4
mov dword [esi + 0xc], eax
cmp dword [0x480a5c], ebx
je 0x40b6ab
cmp eax, edi
jl 0x40b6ab
push edi
push edi
push edi
push 3
push 2
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, edi
mov dword [esi + 0xc], eax
jge 0x40b63f
cmp eax, 0x80010119
je 0x40b63f
push str.Failed_to_connect_to_BITS__CoInitializeSecurity_
lea ecx, [ebp + 0xc]
call fcn.00402148
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 4
push 0x27358
jmp 0x40b68b
push esi
push 0x45964c
push 4
push edi
push 0x45963c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, 0x222e0
mov dword [esi + 0xc], eax
cmp dword [0x480a5c], ebx
je 0x40b667
cmp eax, edi
jge 0x40b6d9
mov eax, dword [esi]
cmp eax, edi
je 0x40b675
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], edi
push str.Failed_to_connect_to_BITS
lea ecx, [ebp + 0xc]
call fcn.00402148
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 3
push ebx
mov ecx, dword [esi + 0xc]
mov edx, 0x480a54
call fcn.0040c5be
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004025ca
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40b6d9
push 0x458990
lea ecx, [ebp + 0xc]
call fcn.00402148
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0xc]
push ebx
mov edx, 0x480a54
call fcn.0040c5be
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004025ca
mov eax, esi
call fcn.004367de
ret 8

Function at 0x40cd8f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40cdda
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40cdc2
push 0xd
pop esi
cmp esi, 0xe8
jne 0x40cde7
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jl 0x40cd97
jmp 0x40cde7
mov esi, dword [ebp - 4]
sub esi, 4
neg esi
sbb esi, esi
and esi, 0xd
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x40dcd9
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 [0x480420]
mov byte [0x480398], 1
push 0x80000002
mov dword [0x48038c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40dd5b
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 [0x480424]
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 0x40dd5b
cmp dword [ebp - 8], 1
jne 0x40dd5b
mov dword [0x48038c], 2
leave
ret
Function at 0x40e39d
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x47bd50]
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.00434dc0
add esp, 0xc
push dword [edi]
lea eax, [ebp - 0x78]
push esi
push eax
mov eax, dword [ebp - 0x80]
push 0x457ce8
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.00402111
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
pop esi
call fcn.00433fff
add ebp, 0x194
leave
ret 8
Function at 0x40e41c
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44d420
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push edi
mov eax, dword [0x47bd50]
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.00427069
push edi
call fcn.0040e603
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e5ec
call fcn.004234c0
push eax
lea ecx, [esp + 0x18]
call fcn.0040f910
and dword [esp + 0x40], 0
mov ebx, 0x104
mov edi, dword [esi]
imul ebx, ebx, 5
push ebx
lea ecx, [esp + 0x18]
call fcn.00402455
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.004087aa
lea eax, [ebx - 2]
cmp edi, eax
je 0x40e487
test edi, edi
jbe 0x40e5e0
lea ecx, [esp + 0x14]
call fcn.0040c57f
mov ebx, 0x457ce8
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], eax
call fcn.00402148
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 1
call fcn.00402148
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 0x40e582
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
je 0x40e577
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 8]
lea ebx, [esp + 0x18]
mov edi, esi
call fcn.0040e39d
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
je 0x40e53d
mov ecx, dword [esp + 0x28]
push eax
push dword [esp + 0x14]
call fcn.0040e82d
jmp 0x40e577
push str.Attention:_read_an_empty_string_from_resource_file__use_default_English_string_then:
lea ecx, [esp + 0x24]
call fcn.00402148
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
push 1
mov byte [esp + 0x50], 3
call fcn.0040dd5d
mov byte [esp + 0x50], 2
mov ecx, dword [esp + 0x30]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025ca
lea ecx, [esp + 0x10]
call fcn.0040233d
jmp 0x40e5ab
lea ebx, [esp + 0x2c]
call fcn.0040e6e1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 4
call fcn.00401f1d
mov byte [esp + 0x40], 2
mov ecx, dword [esp + 0x2c]
add ecx, 0xfffffff0
call fcn.004025ca
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x30]
jbe 0x40e4f5
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.004087aa
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004025ca
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004025ca
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004025ca
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 0x40e8a9
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x44c651
call fcn.00436706
push 0x457b3c
lea eax, [ebp - 0x1c]
push 0x480934
xor esi, esi
push eax
mov dword [ebp - 0x10], esi
call fcn.004085d4
push dword [ebp + 8]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004085d4
mov ecx, dword [ebp - 0x1c]
add esp, 0x18
add ecx, 0xfffffff0
call fcn.004025ca
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 0x40e951
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.004025ca
mov al, bl
call fcn.004367de
ret
mov bl, 1
jmp 0x40e93e
Function at 0x40ea42
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x68
mov eax, 0x44f25a
call fcn.0043676f
push 0xf
pop edi
mov esi, ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
call fcn.0040fbf4
push dword [ebp + 8]
mov ecx, esi
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040e989
pop ecx
cmp dword [0x4803a0], ebx
je 0x40ea9a
mov eax, dword [0x4803a8]
cmp eax, ebx
je 0x40ea9a
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x40ea8f
lea ecx, [ebp - 0x28]
push ecx
call eax
pop ecx
mov edi, eax
jmp 0x40eb73
or dword [ebp - 0x4c], 0xffffffff
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x54], 4
mov dword [ebp - 0x30], edi
call fcn.0040fbf4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 1
call fcn.0040ff66
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0040f95f
push ebx
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.0040fa0e
cmp dword [ebp - 0x30], 0x10
mov esi, dword [ebp - 0x44]
jae 0x40eaef
lea esi, [ebp - 0x44]
cmp esi, ebx
je 0x40eb05
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x40eb09
xor eax, eax
jmp 0x40eb1d
lea eax, [edi + edi]
call fcn.00441f60
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.00410047
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 0x40eb5b
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 dword [ebp - 4], 1
mov edi, dword [ebp - 0x4c]
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.0040fa0e
sub edi, ebx
je 0x40eb84
dec edi
je 0x40eb7f
or esi, 0xffffffff
jmp 0x40eb86
xor esi, esi
inc esi
jmp 0x40eb86
xor esi, esi
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040fa0e
mov eax, esi
lea esp, [ebp - 0x84]
call fcn.004367f2
ret
Function at 0x40f4f7
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, 0x44d665
call fcn.00436706
xor ebx, ebx
cmp dword [0x4803a0], ebx
jne 0x40f69e
cmp dword [ebp + 8], ebx
je 0x40f69e
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.00423146
pop ecx
push eax
push esi
mov dword [ebp - 0x18], eax
call edi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x5c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040218c
mov eax, esi
mov dword [ebp - 4], ebx
call fcn.0040518a
lea ecx, [ebp - 0x10]
test eax, eax
je 0x40f56e
push str.Reader_
jmp 0x40f573
push str.Acrobat_
call fcn.004086b5
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040218c
push str.logsession.dll
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004086b5
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x40f5d4
push edi
push str.Agent
push str.SoftwareAdobeCommonFilesUsage_
call fcn.0041e8bd
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 [0x4803a0], eax
call esi
push dword [ebp - 0x18]
call fcn.0042313b
mov eax, dword [0x4803a0]
pop ecx
test eax, eax
jne 0x40f5fb
lea ecx, [ebx - 0x10]
call fcn.004025ca
lea ecx, [edi - 0x10]
call fcn.004025ca
jmp 0x40f6f0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTInitialize
push eax
call esi
push str.UTOptInGet
push dword [0x4803a0]
mov dword [0x4803a4], eax
call esi
push str.UTSetOptIn
push dword [0x4803a0]
mov dword [0x4803a8], eax
call esi
push str.UTStartSession
push dword [0x4803a0]
mov dword [0x4803ac], eax
call esi
push str.UTLogEvent
push dword [0x4803a0]
mov dword [0x4803b0], eax
call esi
push str.UTNewDataGroup
push dword [0x4803a0]
mov dword [0x4803b4], eax
call esi
push str.UTAddToGroup
push dword [0x4803a0]
mov dword [0x4803b8], eax
call esi
push str.UTCloseSession
push dword [0x4803a0]
mov dword [0x4803bc], eax
call esi
lea ecx, [ebx - 0x10]
mov dword [0x4803c0], eax
call fcn.004025ca
lea ecx, [edi - 0x10]
call fcn.004025ca
xor ebx, ebx
cmp dword [0x4803a8], ebx
je 0x40f6da
cmp dword [0x4803ac], ebx
je 0x40f6da
cmp dword [0x4803b0], ebx
je 0x40f6da
cmp dword [0x4803b4], ebx
je 0x40f6da
cmp dword [0x4803b8], ebx
je 0x40f6da
cmp dword [0x4803bc], ebx
je 0x40f6da
cmp dword [0x4803c0], ebx
je 0x40f6da
mov al, 1
jmp 0x40f6f2
mov eax, dword [0x4803a0]
cmp eax, ebx
je 0x40f6ea
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4803a0], ebx
xor al, al
call fcn.004367de
ret
Function at 0x410300
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 0x410317
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 0x410336
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41033b
inc edi
cmp edi, dword [ebp - 8]
jb 0x41032d
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x41042a
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x4103bd
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x410367
cmp cl, 0xff
jne 0x4103ec
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 0x4103fd
movzx esi, byte [edx + 0x45a758]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
test bl, bl
je 0x4103ad
cmp bl, 0xff
jne 0x4103fa
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x410385
dec ecx
shl edx, cl
and edx, 7
je 0x410354
movzx ecx, byte [edx + 0x45a758]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x45a750], 0
mov cl, byte [ebx + 4]
je 0x4103e9
test cl, cl
je 0x4103e9
cmp cl, 0xff
jne 0x410354
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x410328
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 0x410328
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