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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x7d9faa
xor eax, eax
jmp 0x7da173
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x7da12b
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x80aeac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x80aeac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x80aeac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x80aeac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x80aeac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x80aeac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x80aeac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x80aeac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x7d9fb3
cmp dword [ebp + 0x10], 0
je 0x7da16d
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x80aeac]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x7da131
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
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.004113c8
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, 0x456324
call fcn.0043dfc3
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.0040ed4d
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.00408c71
xor ebx, ebx
cmp eax, 0xffffffff
lea eax, [edi + 0x690]
push eax
setne bl
lea esi, [edi + 0x4ac]
call fcn.0041114c
push eax
push ebx
call fcn.00423b30
test eax, eax
jne 0x405c1c
mov eax, esi
call fcn.0040521a
mov esi, 0x48e3fc
test eax, eax
jne 0x405bb8
mov esi, 0x48e3f8
push 0x45e9fc
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 0x45ea78
push eax
mov dword [ebp - 4], 3
call fcn.00401e97
push 0x45ea74
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 4
call fcn.00408d02
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.00408ef4
push edi
call fcn.00406cfb
push 0
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.004082c1
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 0x45e9fc
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.0043e09b
ret
Function at 0x406cfb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x34
mov eax, 0x454e50
call fcn.0043dff6
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.0040ed4d
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.00408d02
add esp, 0xc
lea esi, [edi + 0xd4]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00408fde
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.0040e8c7
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.0040f042
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.0042b363
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.0042b764
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.0040e8c7
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.0040f042
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.0042b43e
mov eax, esi
jmp 0x406f8b
mov byte [ebp - 4], 7
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.0042b099
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 5
call fcn.0042b2fd
lea eax, [edi + 0x510]
push eax
lea ecx, [edi + 0x628]
call fcn.0040f042
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.0042b43e
xor eax, eax
inc eax
jmp 0x406f8b
call fcn.0043e09b
ret 4
Function at 0x40777d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xc
mov eax, 0x457f80
call fcn.0043dfc3
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.0040ed4d
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.004270f5
mov dword [edi + 0xc8], eax
lea eax, [edi + 0x500]
lea ecx, [edi + 0x514]
push eax
call fcn.00408fde
push esi
call fcn.00421010
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.0041721b
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.0040d172
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.0040ed4d
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.00423b30
push 4
lea eax, [edi + 0x5b0]
call fcn.0041653f
push ebx
call fcn.00428821
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.0040b19a
mov eax, dword [ebp - 0x10]
call fcn.0043e09b
ret
Function at 0x4082c1
Capabilities:
Create process on windows

Disassembly:
push 8
mov eax, 0x456238
call fcn.0043dfc3
call fcn.0042ac34
push eax
lea ecx, [ebp - 0x10]
call fcn.004104de
xor ebx, ebx
mov esi, 0x1b2c4
mov dword [ebp - 4], ebx
cmp dword [0x48eac4], esi
je 0x408425
push dword [ebp + 0x10]
lea edi, [ebp - 0x10]
call fcn.004261f8
pop ecx
test eax, eax
je 0x408425
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.0040e8c7
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 0x4083ad
cmp eax, 0x21
jl 0x4083ad
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.0040ed4d
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 0x40846a
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.0040d172
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004025dc
cmp dword [ebp + 0xc], 5
jne 0x408418
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.0040ed4d
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 0x40846a
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.0040d172
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.0043e09b
ret 0xc
Function at 0x40c26e
Capabilities:
Create bits job

Disassembly:
push 4
mov eax, 0x45610e
call fcn.0043dfc3
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.0043c590
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 0x40c3a9
cmp eax, edi
jl 0x40c3a9
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 0x40c33d
cmp eax, 0x80010119
je 0x40c33d
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 0x40c389
push esi
push 0x461b24
push 4
push edi
push 0x461b14
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, 0x222e0
mov dword [esi + 0xc], eax
cmp dword [0x48eac4], ebx
je 0x40c365
cmp eax, edi
jge 0x40c3d7
mov eax, dword [esi]
cmp eax, edi
je 0x40c373
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.0040d172
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004025dc
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40c3d7
push 0x460e68
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.0040d172
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004025dc
mov eax, esi
call fcn.0043e09b
ret 8

Function at 0x40d8e4
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 0x40d92f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40d917
push 0xd
pop esi
cmp esi, 0xe8
jne 0x40d93c
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jl 0x40d8ec
jmp 0x40d93c
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 0x40e843
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 0x40e8c5
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 0x40e8c5
cmp dword [ebp - 8], 1
jne 0x40e8c5
mov dword [0x48e394], 2
leave
ret
Function at 0x40efc3
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.0043c590
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.0043b751
add ebp, 0x194
leave
ret 8
Function at 0x40f042
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4549c8
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.0042e7dd
push edi
call fcn.0040f229
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f212
call fcn.0042ac34
push eax
lea ecx, [esp + 0x18]
call fcn.004104de
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.00408ef4
lea eax, [ebx - 2]
cmp edi, eax
je 0x40f0ad
test edi, edi
jbe 0x40f206
lea ecx, [esp + 0x14]
call fcn.0040d133
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 0x40f1a8
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
je 0x40f19d
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 8]
lea ebx, [esp + 0x18]
mov edi, esi
call fcn.0040efc3
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
je 0x40f163
mov ecx, dword [esp + 0x28]
push eax
push dword [esp + 0x14]
call fcn.0040f453
jmp 0x40f19d
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.0040e8c7
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 0x40f1d1
lea ebx, [esp + 0x2c]
call fcn.0040f307
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 0x40f11b
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00408ef4
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