joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40265c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x6c
mov eax, 0x4302aa
call fcn.004301f0
sub esp, 0x650
mov eax, dword [0x4482d4]
push ebx
push esi
add eax, 0x87c
mov esi, ecx
push edi
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.0041fa56
pop ecx
pop ecx
lea ecx, [ebp + 0x2c]
call fcn.0040e0d6
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x64]
call fcn.0040ef30
push ecx
xor edi, edi
lea ecx, [ebp + 0x64]
push 0x43ad64
mov edx, 0x43aca0
mov dword [ebp - 4], edi
call fcn.0040f5a9
lea ecx, [ebp + 0x64]
call fcn.0040effc
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.0041fa56
xor ebx, ebx
lea eax, [ebp + 0x2c]
inc ebx
push ebx
push str.xxxxxxxxxx
push eax
call fcn.0041fcf8
add esp, 0x14
test eax, eax
je 0x402866
mov ecx, 0x4482c8
call fcn.0040effc
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.0041fa56
lea ecx, [ebp - 0x244]
call fcn.0040be9b
lea eax, [ebp - 0x244]
push esi
push eax
call fcn.0041fa78
add esp, 0xc
lea edx, [ebp]
lea ecx, [ebp - 0x244]
call fcn.00401de5
pop ecx
test eax, eax
je 0x402866
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x68]
call fcn.0040ef30
push ecx
push 0x43ad64
mov edx, 0x43aca0
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x68]
call fcn.0040f5a9
lea ecx, [ebp + 0x68]
call fcn.0040effc
push eax
lea eax, [ebp]
push eax
call fcn.0041fa56
push ebx
lea eax, [ebp]
push str.xxxxxxxxxx
push eax
call fcn.0041fcf8
add esp, 0x14
test eax, eax
je 0x40285a
push 6
lea eax, [ebp + 0x32]
push eax
lea eax, [ebp + 6]
push eax
call fcn.0041fcf8
add esp, 0xc
test eax, eax
jns 0x40285a
push 0x104
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x65c]
xor edx, edx
push edi
push eax
lea ecx, [ebp - 0x450]
call fcn.00402d4d
lea eax, [ebp - 0x65c]
push eax
push str.SOFTWAREPC_SOFTWINDEV25.0APPLI
lea eax, [ebp + 0x60]
push 0x43a730
push eax
call fcn.00402a02
add esp, 0x18
mov dword [ebp + 0x6c], edi
lea ecx, [ebp + 0x60]
call fcn.0040effc
lea ecx, [ebp + 0x6c]
push ecx
push ebx
push edi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402850
push 0x2a
pop eax
push eax
mov dword [ebp + 0x5c], eax
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.00419dc0
add esp, 0xc
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x58]
push eax
push edi
push str.LAST_FRAMEWORK
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402847
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x32]
push eax
call fcn.0041fb07
mov ebx, eax
neg ebx
pop ecx
sbb ebx, ebx
pop ecx
neg ebx
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x60]
call fcn.0040ef71
jmp 0x40285c
mov ebx, edi
lea ecx, [ebp + 0x68]
call fcn.0040ef71
jmp 0x402868
mov ebx, edi
lea ecx, [ebp + 0x64]
call fcn.0040ef71
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x70
leave
ret
Function at 0x4028dd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x43aca4
mov edi, ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40292a
push str.SHGetSpecialFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402914
push 1
push 0x2b
push edi
push ebx
call eax
mov ebx, eax
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x40299a
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
js 0x402972
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x208
push eax
push edi
push ebx
push ebx
push str.CommonFilesDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jns 0x40299a
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0xc
jne 0x40298d
push str.C:Program_FilesFichiers_communs
jmp 0x402992
push str.C:Program_FilesCommon_Files
push edi
call fcn.0041fa56
pop ecx
pop ecx
mov ecx, edi
call fcn.0040be9b
push ecx
push str.PC_SOFT25.0Framework
mov edx, 0x104
mov ecx, edi
call fcn.0040e18a
pop ecx
pop ecx
mov ecx, edi
call fcn.0040be9b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4033aa
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x43034d
call fcn.004301f0
sub esp, 0x214
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0xc]
push eax
lea edi, [esi + 0x420]
push edi
call fcn.0041fa56
push str.WDUPDATE.NET
push edi
call fcn.0041fa78
add esp, 0x10
lea ebx, [esi + 0x834]
push edi
push 0
push str.RESEAU
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [esi + 0xc48], 0
mov dword [ebp - 0x14], eax
je 0x40342d
push eax
push edi
push ebx
lea eax, [ebp - 0x10]
push str.100___Lecture_de_la_cl
push eax
call fcn.00402a02
add esp, 0x14
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0040effc
push eax
mov ecx, esi
call fcn.004032cc
lea ecx, [ebp - 0x10]
call fcn.0040ef71
push edi
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0x43ad64
push str.PROTOCOLE
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x220]
push str.LOCAL
push eax
call fcn.0041fb07
pop ecx
pop ecx
test eax, eax
jne 0x40346a
and dword [esi + 0x11b0], eax
jmp 0x40348b
lea eax, [ebp - 0x220]
push str.HTTP
push eax
call fcn.0041fb07
pop ecx
pop ecx
test eax, eax
jne 0x403490
mov dword [esi + 0x11b0], 1
mov eax, dword [ebp - 0x14]
jmp 0x403492
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404736
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x43034d
call fcn.004301f0
mov eax, 0x2154
call fcn.004301c0
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0041fa56
lea eax, [ebp - 0x21c]
push str.WDUPDATE.NET
push eax
call fcn.0041fa78
add esp, 0x10
lea eax, [ebp - 0x21c]
lea ebx, [esi + 0x834]
push eax
push 0
push str.INSTALLENCOURS
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [esi + 0xc48], 0
mov edi, eax
je 0x4047ca
push edi
lea eax, [ebp - 0x10]
push str.125___Lecture_du_flag_dinstall_en_cours_:__i
push eax
call fcn.00402a02
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0040effc
push eax
mov ecx, esi
call fcn.004032cc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040ef71
cmp edi, 1
jne 0x404825
lea eax, [ebp - 0x21c]
push eax
push 0xfa0
lea eax, [ebp - 0x2160]
push eax
push 0
push str.MSG_INSTALLENCOURS
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x404807
lea eax, [ebp - 0x2160]
push str.La_pr
push eax
call fcn.0041fa56
pop ecx
pop ecx
push 0x24
push ebx
lea eax, [ebp - 0x2160]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x404825
mov ecx, esi
call fcn.004044b4
mov ecx, dword [ebp - 0xc]
xor eax, eax
test edi, edi
mov dword fs:[0], ecx
pop edi
pop esi
setne al
pop ebx
leave
ret

Function at 0x40483b
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x11ac]
test ecx, ecx
je 0x404878
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi + 0x11ac]
test ecx, ecx
je 0x40485d
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [esi + 0xfa0]
call fcn.0040bcdc
test eax, eax
je 0x404878
lea ecx, [esi + 0xfa0]
pop esi
jmp fcn.0040baa3
pop esi
ret

Function at 0x40487a
Capabilities:
Create mailslot

Disassembly:
mov eax, 0x43034d
call fcn.004301f0
sub esp, 0x210
lea eax, [ebp - 0x21c]
push ebx
push esi
push 0x20a
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.00419dc0
lea eax, [esi + 0x834]
push eax
lea eax, [ebp - 0x21c]
push str..mailslot_s
push eax
call fcn.004029e8
add esp, 0x18
lea eax, [ebp - 0x21c]
push ebx
push 0xffffffffffffffff
push 0x2000
push eax
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
mov ecx, eax
mov dword [esi + 0xf9c], ecx
cmp ecx, 0xffffffff
jne 0x404921
or ecx, eax
cmp dword [esi + 0xc48], ebx
je 0x404921
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.Echec_de_la_cr
push eax
call fcn.00402a02
add esp, 0xc
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0040effc
push eax
mov ecx, esi
call fcn.004032cc
lea ecx, [ebp - 0x10]
call fcn.0040ef71
mov ecx, dword [esi + 0xf9c]
xor eax, eax
cmp ecx, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
setne al
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x404937
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x430441
call fcn.004301f0
sub esp, 0x658
lea eax, [ebp - 0x24c]
push ebx
push esi
push edi
mov esi, ecx
push str.INST.WXF
lea edi, [esi + 0x216]
push edi
push str._s_s
push eax
call fcn.004029e8
add esp, 0x10
lea eax, [ebp - 0x24c]
push eax
push 0x14
lea eax, [ebp - 0x40]
push eax
push 0x43ad64
push 0x43c744
push 0x43c74c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x40]
push str.WXF7
push eax
call fcn.0041fb07
pop ecx
pop ecx
test eax, eax
jne 0x404a62
xor ebx, ebx
cmp dword [esi + 0xc48], ebx
je 0x4049bc
push str.132___Retour
mov ecx, esi
call fcn.004032cc
mov ecx, edi
call fcn.0040be9b
push edi
lea eax, [ebp - 0x664]
push str.__sWDSETUP7.EXE_
push eax
call fcn.004029e8
push edi
lea eax, [ebp - 0x458]
push str._REP_s
push eax
call fcn.004029e8
add esp, 0x14
lea edx, [ebp - 0x458]
lea ecx, [ebp - 0x664]
push edi
call fcn.0041271b
pop ecx
pop ecx
test eax, eax
jne 0x404a73
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [esi + 0xc48], ebx
je 0x404a59
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push str.Impossible_de_lancer_lapplication_de_contr
push eax
call fcn.00402a02
add esp, 0x10
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0040effc
push eax
mov ecx, esi
call fcn.004032cc
lea ecx, [ebp - 0x14]
call fcn.0040ef71
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x404a64
Function at 0x404caa
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x2dc
lea eax, [ebp - 0x270]
cmp dword [ebp + 0x7c], 0
push ebx
push esi
push edi
jne 0x404cd4
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x404cdf
push dword [ebp + 0x7c]
push eax
call fcn.0041fa56
pop ecx
pop ecx
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x404dc1
call fcn.0042fda0
mov esi, esp
test esi, esi
je 0x404dc1
push edi
push 0
push esi
call fcn.00419dc0
add esp, 0xc
lea eax, [ebp - 0x270]
push esi
push edi
push dword [ebp + 0x64]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x404dc1
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x7c]
push eax
push str.VarFileInfoTranslation
push esi
call edi
test eax, eax
je 0x404dc1
mov ecx, dword [ebp + 0x7c]
mov ebx, 0x43cb68
push ebx
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x64]
push str.StringFileInfo_04X_04X_s
push eax
call fcn.004029e8
add esp, 0x14
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
call edi
test eax, eax
jne 0x404da4
push ebx
lea eax, [ebp - 0x64]
push str.StringFileInfo040904E4_s
push eax
call fcn.004029e8
add esp, 0xc
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
call edi
test eax, eax
je 0x404dc1
mov edi, dword [ebp + 0x78]
mov esi, dword [ebp + 0x74]
push edi
push dword [ebp + 0x7c]
push esi
call fcn.0041fac4
xor eax, eax
add esp, 0xc
mov word [esi + edi*2 - 2], ax
inc eax
jmp 0x404dc3
xor eax, eax
lea esp, [ebp - 0x27c]
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc

Function at 0x404dd3
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
mov edi, ecx
xor edx, edx
mov eax, dword [edi + 0x11b0]
sub eax, edx
je 0x404e5b
sub eax, 1
je 0x404def
xor eax, eax
jmp 0x404e78
lea ecx, [edi + 0x1424]
mov eax, dword [ecx]
test eax, eax
je 0x404e07
cmp word [eax], dx
je 0x404e07
call fcn.0040effc
jmp 0x404e61
mov esi, dword [esp + 0xc]
lea eax, [edi + 0x420]
push eax
push 0x104
push esi
push 0x43ad64
push str.INSTLOCAL
lea eax, [edi + 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
call fcn.0041faa9
pop ecx
test eax, eax
jne 0x404e6e
lea eax, [edi + 0xc]
push eax
push esi
call fcn.0041fa56
mov ecx, esi
call fcn.0040be9b
push str.INSTALL
push esi
call fcn.0041fa78
add esp, 0x10
jmp 0x404e6e
lea eax, [edi + 0x216]
mov esi, dword [esp + 0xc]
push eax
push esi
call fcn.0041fa56
pop ecx
pop ecx
mov ecx, esi
call fcn.0040be9b
xor eax, eax
inc eax
pop edi
pop esi
ret 4
Function at 0x405924
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x43034d
call fcn.004301f0
sub esp, 0x424
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, ecx
push edi
mov dword [ebp - 0x18], eax
lea edi, [eax + 0x420]
push edi
push 0x104
lea ecx, [eax + 0x216]
push ecx
push 0x43ad64
lea ebx, [eax + 0x834]
mov dword [ebp - 0x14], ecx
push 0x43c250
push ebx
call esi
push edi
push 0x104
lea eax, [ebp - 0x224]
push eax
push 0x43ad64
push 0x43c260
push ebx
call esi
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x14]
call fcn.0041fa78
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040be9b
push edi
push 0x104
lea eax, [ebp - 0x430]
mov edi, str.WDUPDATE.NET
push eax
push edi
push str.FICUPDATE
push ebx
call esi
mov eax, dword [ebp - 0x18]
lea ebx, [eax + 0x216]
lea esi, [eax + 0x62a]
push ebx
push esi
call fcn.0041fa56
lea eax, [ebp - 0x430]
push eax
push esi
call fcn.0041fa78
add esp, 0x10
mov ecx, esi
call fcn.0040bcdc
test eax, eax
jne 0x405a2d
push edi
push ebx
lea eax, [ebp - 0x10]
push str._s_s
push eax
call fcn.00402a02
add esp, 0x10
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040effc
mov ecx, eax
call fcn.0040bcdc
test eax, eax
je 0x405a25
lea ecx, [ebp - 0x10]
call fcn.0040effc
push eax
push esi
call fcn.0041fa56
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.0040ef71
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405d16
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp byte [ecx + 0x11b9], 0
push ebx
push esi
push edi
jne 0x405dad
lea esi, [ecx + 0x420]
push esi
push 0
lea edi, [ecx + 0x834]
push str.DELAICHECKVERSION
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 9
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push 0x43ad64
push str.LASTCHECKVERSION
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x30]
call fcn.00406204
test ebx, ebx
jle 0x405dad
cmp word [ebp - 0x1c], 0
je 0x405dad
and dword [ebp - 4], 0
lea edx, [ebp - 4]
lea ecx, [ebp - 0x30]
call fcn.00406233
and dword [ebp - 8], 0
lea edx, [ebp - 8]
lea ecx, [ebp - 0x1c]
call fcn.00406233
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
cmp eax, ebx
jl 0x405db5
push esi
lea eax, [ebp - 0x30]
push eax
push str.LASTCHECKVERSION
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x405db0
Function at 0x405db9
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x210
push ebx
push edi
mov edi, ecx
lea ebx, [edi + 0x62a]
mov ecx, ebx
mov dword [esp + 8], ebx
call fcn.0040bcdc
test eax, eax
je 0x405e40
push ebp
push esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x18]
push 0x104
push eax
push 0x43ce1c
mov esi, str.DELAICHECKVERSION
lea ebp, [edi + 0x834]
push esi
push ebp
call ebx
add edi, 0x420
lea eax, [esp + 0x14]
push edi
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebp
call esi
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0x104
push eax
push 0x43ce1c
push str.SILENTCHECKVERSION
push ebp
call ebx
push edi
lea eax, [esp + 0x18]
push eax
push str.SILENTCHECKVERSION
push ebp
call esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x210
ret

Function at 0x406706
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
cmp word [ecx], 0
je 0x40672a
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x40672c
xor eax, eax
pop ebp
ret 0x14

Function at 0x406cc4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4481d8]
push ebx
push esi
push edi
and dword [eax + 0xc], 0
push 0x3e9
push dword [eax + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
mov ecx, esi
call fcn.0040e1b3
push esi
mov edi, eax
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebp - 4]
push edi
lea ecx, [esi + 0x10]
call fcn.00405ed5
push edi
call fcn.0042013d
mov dword [esp], 0x3ea
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
mov ecx, esi
call fcn.0040e1b3
push esi
mov edi, eax
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, dword [ebp - 4]
push edi
lea ecx, [ebx + 0x14]
call fcn.00405ed5
push edi
call fcn.0042013d
pop ecx
push 0
push 0
push 2
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406ecd
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43057f
push eax
mov dword fs:[0], esp
push esi
push edi
mov esi, ecx
call fcn.0040721a
lea ecx, [esi + 0x30]
call fcn.0040fcab
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x20]
call fcn.00406689
mov dword [esi + 0x20], edi
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0x1c]
call fcn.00406689
mov dword [esi + 0x1c], edi
mov dword [ebp - 4], 2
mov ecx, dword [esi + 0x18]
call fcn.00406689
mov dword [esi + 0x18], edi
mov dword [ebp - 4], 3
mov ecx, dword [esi + 0x14]
call fcn.00406689
mov dword [esi + 0x14], edi
mov dword [ebp - 4], 4
mov ecx, dword [esi + 0x10]
call fcn.00406689
mov dword [esi + 0x10], edi
mov dword [ebp - 4], 5
mov ecx, dword [esi + 0xc]
call fcn.00406689
mov dword [esi + 0xc], edi
mov dword [ebp - 4], 6
mov ecx, dword [esi + 4]
call fcn.00406689
mov dword [esi + 4], edi
mov dword [ebp - 4], 7
mov ecx, dword [esi]
call fcn.00406689
mov ecx, dword [ebp - 0xc]
mov dword [esi], edi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x406f90
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x430599
call fcn.004301f0
sub esp, 0x210
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
mov edi, dword [ebp + 0xc]
push ebx
push 0x104
push eax
push 0x43ad64
push 0x43c250
push edi
mov dword [ebp - 0x10], ecx
call esi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [eax + 4]
call fcn.00405ed5
push ebx
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x43ad64
push 0x43c260
push edi
call esi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ecx + 0x20]
call fcn.00405ed5
mov ecx, dword [ebp - 0x10]
push str.PC_SOFT
lea ecx, [ecx + 0xc]
call fcn.00405ed5
push ebx
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x43ce1c
push 0x43ddbc
push edi
call esi
push 0x30
pop ecx
xor eax, eax
cmp word [ebp - 0x21c], cx
mov ecx, dword [ebp - 0x10]
push ebx
setne al
push 0x104
mov dword [ecx + 0x28], eax
lea eax, [ebp - 0x21c]
push eax
push 0x43ce1c
push str.HTTPSECURE
push edi
call esi
mov ebx, dword [ebp - 0x10]
xor eax, eax
push 0x30
pop ecx
cmp word [ebp - 0x21c], cx
mov ecx, ebx
setne al
mov dword [ebp + 0xc], eax
je 0x407083
push str.HTTPS
jmp 0x407088
push str.HTTP
call fcn.00405ed5
xor edi, edi
mov dword [ebp + 8], edi
lea eax, [ebp + 8]
mov dword [ebp - 4], edi
push eax
push 0x43ddb8
lea esi, [ebx + 4]
push 1
mov ecx, esi
call fcn.0040603b
test eax, eax
je 0x4070ee
push esi
lea ecx, [ebp + 0xc]
call fcn.00405f30
push esi
push 0x43ddb8
push edi
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040603b
cmp dword [ebp + 8], edi
mov eax, 0x43ad64
cmovne eax, dword [ebp + 8]
push eax
call fcn.00420b59
pop ecx
mov dword [ebx + 8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
call fcn.00406689
jmp 0x407100
cmp dword [ebp + 0xc], 0
mov ecx, 0x1bb
push 0x50
pop eax
cmovne eax, ecx
mov dword [ebx + 8], eax
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 8]
call fcn.00406689
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40a905
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SystemCurrentControlSetControlProductOptions
push 0x80000002
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a9ce
push ebp
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x10]
push eax
push esi
lea eax, [esp + 0x1c]
mov ebp, str.ProductSuite
push eax
push esi
push ebp
push dword [esp + 0x20]
call edi
test eax, eax
jne 0x40a9cc
cmp dword [esp + 0x10], esi
je 0x40a9cc
push ebx
push dword [esp + 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x40a9cb
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x20]
push eax
push esi
push ebp
push dword [esp + 0x24]
call edi
test eax, eax
jne 0x40a9c4
cmp dword [esp + 0x18], 7
jne 0x40a9c4
mov edi, ebx
cmp word [ebx], si
je 0x40a9c4
push str.Terminal_Server
push edi
call fcn.0041fb07
pop ecx
pop ecx
test eax, eax
je 0x40a9c1
push edi
call fcn.0041faa9
pop ecx
lea edi, [edi + eax*2]
add edi, 2
cmp word [edi], si
jne 0x40a99c
jmp 0x40a9c4
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
pop edi
pop ebp
cmp dword [esp + 4], 0
je 0x40a9df
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret