joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402659
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x402661
mov dword [ecx*4 + 0x48fca0], eax
inc ecx
cmp ecx, 0x100
jb 0x40265c
mov edx, 0x800
jmp 0x4026ae
mov eax, dword [ecx*4 + 0x48f8a0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x48fca0]
inc ecx
mov dword [ecx*4 + 0x48fc9c], eax
cmp ecx, edx
jb 0x40268d
mov dword [0x48e390], 0x4026d1
call fcn.0041135c
test eax, eax
jne 0x4026cf
mov dword [0x48e390], 0x40276d
pop esi
ret

Function at 0x402fef
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x403037
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x403008
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x40303c
test ecx, ecx
je 0x403037
test edi, edi
ja 0x402ffd
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403039
Function at 0x405b30
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x456076
call fcn.0043dd63
push str.RegisterFileTypesOwnership...
lea ecx, [ebp - 0x14]
call fcn.0040215a
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x14]
push eax
push 2
call fcn.0040ece1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
push str._PRODUCT:Reader
lea esi, [edi + 0x694]
xor ecx, ecx
call fcn.00408c65
xor ebx, ebx
cmp eax, 0xffffffff
lea eax, [edi + 0x690]
push eax
setne bl
lea esi, [edi + 0x4ac]
call fcn.004110e0
push eax
push ebx
call fcn.004239d8
test eax, eax
jne 0x405c1c
mov eax, esi
call fcn.0040521a
mov esi, 0x48e3fc
test eax, eax
jne 0x405bb8
mov esi, 0x48e3f8
push 0x45ea0c
lea ecx, [ebp - 0x18]
call fcn.0040215a
mov dword [ebp - 4], 1
push str.Error_InitUpdatedProductInfo
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], 0x1b1fc
call fcn.0040215a
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
mov edx, edi
mov byte [ebp - 4], 2
call fcn.00405d77
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025dc
mov dword [edi + 0xa4], 0xd
jmp 0x405d6f
push dword [edi + 0x48]
lea ecx, [ebp - 0x10]
call fcn.0040215a
lea eax, [edi + 0x50c]
push eax
lea eax, [ebp - 0x1c]
push 0x45ea88
push eax
mov dword [ebp - 4], 3
call fcn.00401e97
push 0x45ea84
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 4
call fcn.00408cf6
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00401f30
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025dc
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025dc
lea eax, [edi + 0x510]
push eax
lea eax, [ebp - 0x20]
push str.__LANG:
push eax
call fcn.00401e97
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00401f30
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025dc
lea ebx, [edi + 0xd8]
mov esi, 0x104
push esi
mov ecx, ebx
call fcn.00402467
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00408ee8
push edi
call fcn.00406cfb
push 0
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.004082b5
mov dword [edi + 0xa4], eax
test eax, eax
je 0x405d64
cmp eax, 5
je 0x405d64
lea eax, [edi + 0x4ac]
call fcn.0040521a
mov esi, 0x48e3fc
test eax, eax
jne 0x405d12
mov esi, 0x48e3f8
push 0x45ea0c
lea ecx, [ebp - 0x20]
call fcn.0040215a
mov byte [ebp - 4], 7
push str.ShellExecute_failed
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0x271c8
call fcn.0040215a
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
mov edx, edi
mov byte [ebp - 4], 8
call fcn.00405d77
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025dc
xor eax, eax
call fcn.0043de3b
ret
Function at 0x406cfb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x34
mov eax, 0x454bc5
call fcn.0043dd96
mov edi, dword [ebp + 8]
push str.InitUIStrings...
lea ecx, [ebp - 0x14]
call fcn.0040215a
xor ebx, ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.0040ece1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
push str.ArmUI.ini
lea eax, [edi + 0xd8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408cf6
add esp, 0xc
lea esi, [edi + 0xd4]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00408fd2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004025dc
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 0x406dd6
push str.FindResource_failed:
lea ecx, [ebp + 8]
call fcn.0040215a
push 2
pop eax
push ebx
push esi
lea ecx, [ebp + 8]
push ecx
mov dword [ebp - 4], eax
push eax
call fcn.0040e85b
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
lea eax, [edi + 0x510]
push eax
lea ecx, [edi + 0x628]
call fcn.0040efd6
jmp 0x406f8b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x406e00
push str.LoadResource_failed:
lea ecx, [ebp + 8]
call fcn.0040215a
push ebx
push esi
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], 3
push 2
jmp 0x406da8
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.0042b10f
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 4
call fcn.00402056
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.0042b510
test eax, eax
jne 0x406eb7
push str.Open_file_failed:
lea ecx, [ebp + 8]
call fcn.0040215a
push ebx
push esi
lea eax, [ebp + 8]
push eax
push 2
mov byte [ebp - 4], 6
call fcn.0040e85b
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
lea eax, [edi + 0x510]
push eax
lea ecx, [edi + 0x628]
call fcn.0040efd6
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
mov esi, eax
mov dword [ebp - 0x40], vtable.CFileException.0
call fcn.004025dc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0042b1ea
mov eax, esi
jmp 0x406f8b
mov byte [ebp - 4], 7
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.0042ae45
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 5
call fcn.0042b0a9
lea eax, [edi + 0x510]
push eax
lea ecx, [edi + 0x628]
call fcn.0040efd6
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
mov dword [ebp - 0x40], vtable.CFileException.0
call fcn.004025dc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0042b1ea
xor eax, eax
inc eax
jmp 0x406f8b
call fcn.0043de3b
ret 4
Function at 0x40777d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xc
mov eax, 0x457d02
call fcn.0043dd63
mov edi, ecx
push str.ExecuteInstalls...
lea ecx, [ebp - 0x10]
call fcn.0040215a
xor esi, esi
push esi
lea eax, [ebp - 0x10]
push eax
push 2
mov dword [ebp - 4], esi
call fcn.0040ece1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
push 8
pop ecx
mov eax, edi
mov dword [edi + 0xe0], ecx
call fcn.00407b30
call fcn.00426f61
mov dword [edi + 0xc8], eax
lea eax, [edi + 0x500]
lea ecx, [edi + 0x514]
push eax
call fcn.00408fd2
push esi
call fcn.00420eb8
lea ecx, [ebp - 0x10]
mov dword [esp], str.Execute_Installs
call fcn.0040215a
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
inc ebx
push edi
mov dword [ebp - 4], ebx
call fcn.00405ea6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025dc
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x60c], eax
cmp dword [edi + 0x69c], esi
jne 0x40783a
mov esi, edi
call fcn.004061f3
mov esi, 0x249f0
cmp dword [0x48eac4], esi
je 0x407859
lea ebx, [edi + 0x56c]
call fcn.004171ae
xor ebx, ebx
inc ebx
test eax, eax
jne 0x407898
push 0x460030
lea ecx, [ebp - 0x10]
call fcn.0040215a
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x10]
push ecx
push esi
lea edx, [edi + 0x65c]
mov ecx, eax
call fcn.0040d106
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025dc
and dword [ebp - 0x10], 0
push str.Execute_Installs
lea ecx, [ebp - 0x14]
call fcn.0040215a
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 4], 3
call fcn.00405ef2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004025dc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x60c]
xor esi, esi
dec eax
mov dword [edi + 0x60c], eax
cmp dword [edi + 0x54c], esi
je 0x4078e8
mov dword [edi + 0x614], ebx
push str._Product_after_installation_
lea ecx, [ebp - 0x18]
call fcn.0040215a
push esi
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 4], 4
call fcn.0040ece1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
push esi
lea esi, [edi + 0x4ac]
mov eax, esi
call fcn.0040521a
push eax
call fcn.004239d8
push 4
lea eax, [edi + 0x5b0]
call fcn.004164d2
push ebx
call fcn.0042868d
xor esi, esi
pop ecx
cmp dword [edi + 0xac], esi
jne 0x40795c
cmp dword [edi + 0x54c], esi
jne 0x40795c
cmp dword [edi + 0xe4], 2
je 0x407991
mov eax, edi
cmp dword [ebp - 0x10], esi
jne 0x407973
push 2
pop ecx
mov dword [edi + 0xe0], ecx
call fcn.00407b30
jmp 0x407991
push 9
pop ecx
mov dword [edi + 0xe0], ecx
call fcn.00407b30
mov edi, dword [edi + 0x69c]
cmp edi, esi
je 0x407991
push edi
call fcn.0040b12e
mov eax, dword [ebp - 0x10]
call fcn.0043de3b
ret
Function at 0x4082b5
Capabilities:
Create process on windows

Disassembly:
push 8
mov eax, 0x455fad
call fcn.0043dd63
call fcn.0042a9e0
push eax
lea ecx, [ebp - 0x10]
call fcn.00410472
xor ebx, ebx
mov esi, 0x1b2c4
mov dword [ebp - 4], ebx
cmp dword [0x48eac4], esi
je 0x408419
push dword [ebp + 0x10]
lea edi, [ebp - 0x10]
call fcn.004260a0
pop ecx
test eax, eax
je 0x408419
push str.Launcher_path:
lea ecx, [ebp + 0x10]
call fcn.0040215a
push ebx
mov eax, edi
push eax
lea eax, [ebp + 0x10]
push eax
push 2
mov byte [ebp - 4], 2
call fcn.0040e85b
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0x10]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
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 [0x48eac4], esi
je 0x4083a1
cmp eax, 0x21
jl 0x4083a1
mov eax, dword [ebp + 8]
push str.ShellExecute_succeded.
lea ecx, [ebp + 8]
mov dword [eax + 0xbc], 1
call fcn.0040215a
push ebx
lea eax, [ebp + 8]
push eax
push 2
mov byte [ebp - 4], 5
call fcn.0040ece1
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
lea ecx, [edi - 0x10]
call fcn.004025dc
xor eax, eax
jmp 0x40845e
push str.ShellExecute_failed
lea ecx, [ebp + 0x10]
call fcn.0040215a
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, 0x65c
mov ecx, eax
call fcn.0040d106
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004025dc
cmp dword [ebp + 0xc], 5
jne 0x40840c
push str.ShellExecute_failed_with_SE_ERR_ACCESSDENIED
lea ecx, [ebp + 8]
call fcn.0040215a
push ebx
lea eax, [ebp + 8]
push eax
push 1
mov byte [ebp - 4], 4
call fcn.0040ece1
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
lea ecx, [edi - 0x10]
call fcn.004025dc
mov eax, dword [ebp + 0xc]
jmp 0x40845e
push str.Failed_to_create_launcher_path
lea ecx, [ebp + 0x10]
call fcn.0040215a
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, 0x65c
mov ecx, eax
call fcn.0040d106
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025dc
push 0xd
pop eax
call fcn.0043de3b
ret 0xc
Function at 0x40c202
Capabilities:
Create bits job

Disassembly:
push 4
mov eax, 0x455e83
call fcn.0043dd63
mov esi, dword [ebp + 8]
lea ebx, [esi + 8]
mov ecx, ebx
call fcn.00402102
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 0x30]
mov dword [esi + 0x28], vtable.CProxy.0
call fcn.00402102
lea ecx, [esi + 0x34]
call fcn.00402102
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.0043c330
add esp, 0xc
push dword [ebp + 0xc]
mov ecx, ebx
mov dword [esi + 0xc], edi
mov dword [esi + 0x38], 4
call fcn.00402123
push 2
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, 0x272f4
mov dword [esi + 0xc], eax
cmp dword [0x48eac4], ebx
je 0x40c33d
cmp eax, edi
jl 0x40c33d
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 0x40c2d1
cmp eax, 0x80010119
je 0x40c2d1
push str.Failed_to_connect_to_BITS__CoInitializeSecurity_
lea ecx, [ebp + 0xc]
call fcn.0040215a
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 4
push 0x27358
jmp 0x40c31d
push esi
push 0x461b0c
push 4
push edi
push 0x461afc
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, 0x222e0
mov dword [esi + 0xc], eax
cmp dword [0x48eac4], ebx
je 0x40c2f9
cmp eax, edi
jge 0x40c36b
mov eax, dword [esi]
cmp eax, edi
je 0x40c307
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.0040215a
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 3
push ebx
mov ecx, dword [esi + 0xc]
mov edx, 0x48eabc
call fcn.0040d106
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004025dc
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40c36b
push 0x460e50
lea ecx, [ebp + 0xc]
call fcn.0040215a
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0xc]
push ebx
mov edx, 0x48eabc
call fcn.0040d106
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004025dc
mov eax, esi
call fcn.0043de3b
ret 8

Function at 0x40d878
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 0x40d8c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40d8ab
push 0xd
pop esi
cmp esi, 0xe8
jne 0x40d8d0
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jl 0x40d880
jmp 0x40d8d0
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 0x40e7d7
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 [0x48e438]
mov byte [0x48e3a0], 1
push 0x80000002
mov dword [0x48e394], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e859
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 [0x48e43c]
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 0x40e859
cmp dword [ebp - 8], 1
jne 0x40e859
mov dword [0x48e394], 2
leave
ret
Function at 0x40ef57
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x489d50]
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.0043c330
add esp, 0xc
push dword [edi]
lea eax, [ebp - 0x78]
push esi
push eax
mov eax, dword [ebp - 0x80]
push 0x460030
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.0043b4fa
add ebp, 0x194
leave
ret 8
Function at 0x40efd6
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x454768
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push edi
mov eax, dword [0x489d50]
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.0042e589
push edi
call fcn.0040f1bd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f1a6
call fcn.0042a9e0
push eax
lea ecx, [esp + 0x18]
call fcn.00410472
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.00408ee8
lea eax, [ebx - 2]
cmp edi, eax
je 0x40f041
test edi, edi
jbe 0x40f19a
lea ecx, [esp + 0x14]
call fcn.0040d0c7
mov ebx, 0x460030
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 0x40f13c
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
je 0x40f131
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 8]
lea ebx, [esp + 0x18]
mov edi, esi
call fcn.0040ef57
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
je 0x40f0f7
mov ecx, dword [esp + 0x28]
push eax
push dword [esp + 0x14]
call fcn.0040f3e7
jmp 0x40f131
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.0040e85b
mov byte [esp + 0x50], 2
mov ecx, dword [esp + 0x30]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
lea ecx, [esp + 0x10]
call fcn.0040234f
jmp 0x40f165
lea ebx, [esp + 0x2c]
call fcn.0040f29b
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.004025dc
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x30]
jbe 0x40f0af
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00408ee8
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004025dc
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 0x40f3fe
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x4539d9
call fcn.0043dd63
push 0x45fe80
lea eax, [ebp - 0x1c]
push 0x48e968
xor esi, esi
push eax
mov dword [ebp - 0x10], esi
call fcn.00408cf6
push dword [ebp + 8]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00408cf6
mov ecx, dword [ebp - 0x1c]
add esp, 0x18
add ecx, 0xfffffff0
call fcn.004025dc
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 0x40f4a6
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.004025dc
mov al, bl
call fcn.0043de3b
ret
mov bl, 1
jmp 0x40f493

Function at 0x40f597
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x68
mov eax, 0x456fed
call fcn.0043ddcc
push 0xf
pop edi
mov esi, ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
call fcn.00410be8
push dword [ebp + 8]
mov ecx, esi
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040f4de
pop ecx
cmp dword [0x48e3a8], ebx
je 0x40f5ef
mov eax, dword [0x48e3b0]
cmp eax, ebx
je 0x40f5ef
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x40f5e4
lea ecx, [ebp - 0x28]
push ecx
call eax
pop ecx
mov esi, eax
jmp 0x40f6ba
or dword [ebp - 0x4c], 0xffffffff
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x54], 4
mov dword [ebp - 0x30], edi
call fcn.00410be8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 1
call fcn.0041080b
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00410b14
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.00410c04
cmp dword [ebp - 0x30], 0x10
mov edi, dword [ebp - 0x44]
jae 0x40f640
lea edi, [ebp - 0x44]
cmp edi, ebx
je 0x40f656
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x40f65a
xor eax, eax
jmp 0x40f66e
lea eax, [esi + esi]
call fcn.00449470
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00410882
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 0x40f6ac
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.00410c04
sub esi, ebx
je 0x40f6cb
dec esi
je 0x40f6c6
or esi, 0xffffffff
jmp 0x40f6cd
xor esi, esi
inc esi
jmp 0x40f6cd
xor esi, esi
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00410c04
mov eax, esi
lea esp, [ebp - 0x84]
call fcn.0043de4f
ret