joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4223e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2365
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x4225a3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 2
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x4225ad
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 3
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x42246a
push 0x105
lea ecx, [ebp - 0x10]
call fcn.00406dd0
mov esi, dword [ebp - 0x10]
push esi
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x4224e7
cmp dword [esi - 8], 0x105
jl 0x422599
xor eax, eax
mov dword [esi - 0xc], 0x105
mov word [esi + 0x20a], ax
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 2
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4224b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x4224d4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi - 8], 0x105
jl 0x422599
xor eax, eax
mov dword [esi - 0xc], 0x105
push esi
mov word [esi + 0x20a], ax
lea eax, [ebp - 0x14]
push str._skdesk_
push eax
call fcn.00408c40
mov edi, dword [ebp - 0x14]
add esp, 0xc
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422520
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, 0x65ca94
call fcn.0040c050
push 0x19
push 0x635774
mov ecx, 0x65ca94
call fcn.00408ac0
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42256a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x422586
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00405600
push 0x80004005
call fcn.00405600
push 0x80004005
call fcn.00405600
int3
Function at 0x4225c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d23a5
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x65caa8], 8
lea ecx, [ebp - 0x10]
mov eax, 0x65ca94
cmovae eax, dword [0x65ca94]
push eax
call fcn.00406b20
push 0x5c
push 0x2f
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00408620
push 0x5c
push dword [ebp - 0x10]
call fcn.005a4e4b
add esp, 8
or edi, 0xffffffff
test eax, eax
je 0x4226d6
mov ecx, dword [ebp - 0x10]
sub eax, ecx
sar eax, 1
cmp eax, edi
je 0x4226d9
xor esi, esi
add eax, 1
cmovns esi, eax
cmp esi, dword [ecx - 0xc]
jl 0x42265b
add ecx, 0xfffffff0
call fcn.00406d70
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
jmp 0x422687
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x42266b
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x422677
call fcn.00405800
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push esi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.00406cf0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.00406a90
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4226b2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4226c4
test al, 0x10
jne 0x4226d6
push dword [ebp - 0x10]
call fcn.00422710
mov ecx, dword [ebp - 0x10]
test eax, eax
setne bl
jmp 0x4226db
mov ecx, dword [ebp - 0x10]
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea eax, [ecx - 0x10]
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4226f7
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422710
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d23dd
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp + 8]
push esi
call fcn.00406b20
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4227b5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4227b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4227b5
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x422782
xor esi, esi
jmp 0x4227ba
push dword [ebp + 8]
mov ecx, 0x65ca8c
call fcn.00422710
test eax, eax
jne 0x422797
xor esi, esi
jmp 0x4227ba
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4227b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4227b5
xor esi, esi
jmp 0x4227ba
mov esi, 1
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4227dc
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4227f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2419
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x65cc38]
cmp eax, dword [ecx + 4]
jle 0x422875
push 0x65cc38
call fcn.00483c2d
add esp, 4
cmp dword [0x65cc38], 0xffffffff
jne 0x422875
mov byte [ebp - 4], 1
call fcn.00414990
push 0x5d7c10
call fcn.00484084
push 0x65cc38
mov byte [ebp - 4], 0
call fcn.00483be3
add esp, 8
mov ecx, 0x65cc40
call fcn.00412eb0
mov ebx, eax
mov ecx, 0x65cc40
lea eax, [ebp - 0x14]
push eax
call fcn.00412f90
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
je 0x4228a2
push ecx
call esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20219
push 0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
call edi
test eax, eax
je 0x422929
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4228d2
push eax
call esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20119
push 0
push dword [ebp - 0x18]
push ebx
call edi
test eax, eax
je 0x422929
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422909
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
xor ebx, ebx
test eax, eax
je 0x422915
push eax
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422944
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], 4
test eax, eax
je 0x42290c
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push str.disable
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422909
cmp dword [ebp - 0x14], 4
jne 0x422909
mov eax, dword [ebp - 0x10]
xor ebx, ebx
cmp dword [ebp - 0x1c], ebx
setne bl
jmp 0x42290e
Function at 0x422990
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2459
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x65cc38]
cmp eax, dword [ecx + 4]
jle 0x422a15
push 0x65cc38
call fcn.00483c2d
add esp, 4
cmp dword [0x65cc38], 0xffffffff
jne 0x422a15
mov byte [ebp - 4], 1
call fcn.00414990
push 0x5d7c10
call fcn.00484084
push 0x65cc38
mov byte [ebp - 4], 0
call fcn.00483be3
add esp, 8
mov ecx, 0x65cc40
call fcn.00412eb0
mov ebx, eax
mov ecx, 0x65cc40
lea eax, [ebp - 0x14]
push eax
call fcn.00412f90
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
je 0x422a42
push ecx
call edi
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0xf023f
push 0
push 0
push 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
call esi
test eax, eax
je 0x422ad9
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x422a7a
push eax
call edi
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp - 0x18]
push ebx
call esi
test eax, eax
je 0x422ad9
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422ab9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
xor esi, esi
test eax, eax
je 0x422ac5
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422af4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], 1
test eax, eax
je 0x422abc
push 4
lea ecx, [ebp - 0x18]
push ecx
push 4
push 0
push str.disable
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x422ab9
lea esi, [eax + 1]
mov eax, dword [ebp - 0x10]
jmp 0x422abe
Function at 0x424f00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
jne 0x424fba
push ebx
push edi
lea eax, [ebp - 4]
push eax
call fcn.00425d60
push dword [eax]
push 0
push str.switch
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 4]
or edi, 0xffffffff
mov ebx, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x424f51
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x424f60
mov ecx, esi
call fcn.00425250
test eax, eax
jne 0x424fb0
cmp dword [esi + 4], 0xffffffff
jne 0x424f9e
lea eax, [ebp - 4]
push eax
call fcn.00425d60
push dword [eax]
push 0
push str.debug
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 4]
mov dword [esi + 4], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x424f9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 4], 0
jne 0x424fb0
pop edi
xor eax, eax
pop ebx
mov dword [esi + 0xc], eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
mov dword [esi + 0xc], eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x424fc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.00424f00
test eax, eax
je 0x425057
cmp dword [esi + 0x18], 0
jne 0x425015
lea eax, [ebp - 4]
push eax
call fcn.00425d60
push dword [eax]
push 2
push 0x637574
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 4]
mov dword [esi + 0x18], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425015
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 0x18], 2
jne 0x425057
push 0x6374fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x425057
push edi
push str.SetThreadDpiAwarenessContext
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test eax, eax
je 0x425046
push dword [ebp + 8]
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x425060
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d26ad
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x1c]
lea edi, [ecx + 0x1c]
cmp eax, dword [edi + 4]
jne 0x42521d
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x42523b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
call fcn.00425d60
mov ebx, eax
mov byte [ebp - 4], 1
mov edx, 1
mov ecx, dword [esi - 8]
sub edx, dword [esi - 4]
sub ecx, 0x104
or ecx, edx
jge 0x4250ec
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00406dd0
mov esi, dword [ebp - 0x10]
push dword [ebx]
push 0x104
push esi
push str.1.01.21.5
push str.supportrate
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42512a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi - 8]
push esi
call fcn.005a9627
add esp, 8
test eax, eax
js 0x425231
cmp eax, dword [esi - 8]
jg 0x425231
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [ebp - 0x18]
push eax
push 0x63663c
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004243a0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4251e6
push eax
call fcn.005b16ff
mov eax, dword [edi + 4]
add esp, 4
fstp qword [ebp - 0x20]
cmp eax, dword [edi + 8]
je 0x42519a
movsd xmm0, qword [ebp - 0x20]
movsd qword [eax], xmm0
add eax, 8
mov dword [edi + 4], eax
jmp 0x4251a6
lea ecx, [ebp - 0x20]
push ecx
push eax
mov ecx, edi
call fcn.0043ae90
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4251c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x18]
push eax
push 0x63663c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.004243a0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jne 0x425175
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425201
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x42521d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00405600
push 0x80004005
call fcn.00405600
int3
Function at 0x425250
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
push 0x6374fc
mov dword [ebp - 0x14], ecx
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
test eax, eax
je 0x42537f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessDpiAwarenessContext
push eax
call esi
push str.SetProcessDPIAware
push dword [ebp - 4]
mov dword [ebp - 8], eax
call esi
push str.SetThreadDpiAwarenessContext
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4252b2
cmp dword [ebp - 8], ebx
jne 0x4252b2
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0xc], ebx
je 0x4252b9
mov dword [ebp - 0x10], 1
mov esi, dword [ebp - 0x14]
cmp dword [esi + 0x18], ebx
jne 0x4252fc
lea eax, [ebp - 0x14]
push eax
call fcn.00425d60
push dword [eax]
push 2
push 0x637574
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x14]
mov dword [esi + 0x18], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4252fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 0x18]
cmp eax, 1
jne 0x425319
cmp dword [ebp - 8], ebx
jne 0x425312
cmp dword [ebp - 0xc], ebx
jne 0x425312
xor ebx, ebx
jmp 0x425366
mov ebx, 1
jmp 0x425366
test eax, eax
jne 0x425358
lea eax, [ebp - 0xc]
push eax
call fcn.00425d60
push dword [eax]
push 2
push 0x637574
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0xc]
mov dword [esi + 0x18], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425358
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 0x18], 2
jne 0x425366
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
setne bl
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
cmp dword [ebp - 0x10], edi
je 0x42537f
test ebx, ebx
mov eax, 1
cmovne edi, eax
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425420
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov eax, 1
mov edi, 0x65cae4
xchg dword [edi], eax
test eax, eax
jne 0x4255e1
mov ecx, edi
call fcn.004255f0
test eax, eax
je 0x4255e1
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
or ebx, 0xffffffff
cmp dword [0x65cafc], 0
jne 0x425494
lea eax, [ebp - 4]
push eax
call fcn.00425d60
push dword [eax]
push 2
push 0x637574
push str.basesetting
call esi
mov edx, dword [ebp - 4]
mov dword [0x65cafc], eax
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425494
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x65cafc], 1
jne 0x425543
mov ecx, edi
call fcn.00424f00
test eax, eax
je 0x425543
cmp dword [0x65cafc], 0
jne 0x4254f1
lea eax, [ebp - 4]
push eax
call fcn.00425d60
push dword [eax]
push 2
push 0x637574
push str.basesetting
call esi
mov edx, dword [ebp - 4]
mov dword [0x65cafc], eax
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4254f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x65cafc], 1
jne 0x425543
push 0x6374fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x42553e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessDpiAwarenessContext
push edi
call esi
push str.SetProcessDPIAware
push edi
mov dword [ebp - 4], eax
call esi
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x425531
push 0xfffffffffffffffc
call ecx
jmp 0x425537
test eax, eax
je 0x425537
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, 0x65cae4
lea eax, [ebp - 4]
push eax
call fcn.00425c70
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_FindWindowW]
mov edx, dword [ebp - 4]
neg eax
mov ecx, ebx
sbb esi, esi
add edx, 0xfffffff0
neg esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x425576
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x4255e1
call fcn.00425390
push 0xfffffffffffffffc
mov ecx, edi
call fcn.00424fc0
mov edi, eax
lea eax, [ebp - 4]
push eax
call fcn.00425c70
push 0
push 0
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0
push 0
push 0
push closesocket
push 0x80880000
push 0
push dword [esi]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edx, dword [ebp - 4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4255d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
mov ecx, 0x65cae4
call fcn.00424fc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4255f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d26ed
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ecx + 0x14]
or edi, 0xffffffff
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x4256d7
lea eax, [ebp - 0x14]
push eax
call fcn.00425d60
mov ebx, eax
mov dword [ebp - 4], 0
mov edx, 1
mov eax, dword [esi]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x425661
push 0x104
mov ecx, esi
call fcn.00406dd0
mov eax, dword [esi]
push dword [ebx]
push 0x104
push eax
push 0x635b44
push str.supportprocess
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42569f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
test eax, eax
jne 0x4256a9
xor ecx, ecx
jmp 0x4256bf
push dword [eax - 8]
push eax
call fcn.005a9627
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4257a4
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4257a4
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov ecx, dword [esi]
add ecx, 0xfffffff0
call fcn.00406d70
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
call fcn.00425980
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00425b00
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425722
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x42572e
or ecx, 0xffffffff
jmp 0x425755
cmp dword [esi - 0xc], 0
jge 0x425739
or ecx, 0xffffffff
jmp 0x425755
push eax
push esi
call fcn.005a4f11
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x10]
test ecx, ecx
jne 0x425751
or ecx, 0xffffffff
jmp 0x425755
sub ecx, esi
sar ecx, 1
xor ebx, ebx
lea edx, [eax - 0x10]
cmp ecx, 0xffffffff
mov eax, edi
setne bl
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425774
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x425790
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00405600
int3