joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42896b
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x50df31
call fcn.0050c738
sub esp, 0x70
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov ebx, ecx
jne 0x42898b
xor eax, eax
jmp 0x428ad3
mov eax, dword [0x55daac]
mov ecx, 0x55daac
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push 0x53dadc
call fcn.00406450
add esp, 0xc
lea esi, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.004090d3
test eax, eax
jne 0x428ab7
push 0x40
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x7c], 0x44
call fcn.004ef140
and dword [ebp - 0x34], 0
xor eax, eax
add esp, 0xc
neg ebx
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
sbb ebx, ebx
and ebx, 5
stosd dword es:[edi], eax
mov word [ebp - 0x4c], bx
xor ebx, ebx
push str.userenv.dll
stosd dword es:[edi], eax
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x74], 0x53db04
mov dword [ebp - 0x24], 0x30
mov dword [ebp + 8], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x428a61
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x1c]
mov esi, eax
call edi
cmp esi, ebx
mov dword [ebp - 0x18], eax
je 0x428a61
push ebx
push dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x428a5e
mov dword [ebp - 0x24], 0x430
jmp 0x428a61
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x24]
push ebx
push ebx
push ebx
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x34], ebx
mov edi, eax
je 0x428a90
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], ebx
je 0x428a9e
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x428aa9
push dword [ebp + 8]
call dword [ebp - 0x18]
cmp dword [ebp - 0x1c], ebx
je 0x428ab7
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x14], 0
je 0x428ac6
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004058d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x428ae2
Capabilities:
Check os version
Create process on windows

Disassembly:
mov eax, 0x50dde4
call fcn.0050c738
sub esp, 0x184
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
jne 0x428b03
xor eax, eax
jmp 0x428cb6
mov eax, dword [0x55daac]
mov ecx, 0x55daac
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push 0x53dadc
call fcn.00406450
push 0x110
lea eax, [ebp - 0x18c]
push ebx
push eax
call fcn.004ef140
add esp, 0x18
lea eax, [ebp - 0x190]
push eax
mov dword [ebp - 0x190], 0x114
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x428b68
cmp dword [ebp - 0x18c], 6
jne 0x428b68
inc esi
cmp esi, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea esi, [ebp - 0x10]
jne 0x428b7c
call fcn.004090d3
jmp 0x428b81
call fcn.00409083
cmp eax, ebx
jne 0x428c9a
push 0x40
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x78], 0x44
call fcn.004ef140
push dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 5
mov dword [ebp - 0x4c], 1
mov word [ebp - 0x48], ax
call fcn.0040913e
add esp, 0x10
test al, al
jne 0x428be6
cmp dword [ebp - 0x10], ebx
je 0x428bdc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.004092b8
pop ecx
push str.userenv.dll
mov dword [ebp - 0x70], 0x53db04
mov dword [ebp - 0x14], 0x30
mov dword [ebp + 8], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x428c45
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x1c]
mov esi, eax
call edi
cmp esi, ebx
mov edi, eax
je 0x428c45
push ebx
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x428c42
mov dword [ebp - 0x14], 0x430
jmp 0x428c45
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], eax
je 0x428c75
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], ebx
je 0x428c83
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x428c8c
push dword [ebp + 8]
call edi
cmp dword [ebp - 0x1c], ebx
je 0x428c9a
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], ebx
je 0x428ca8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004058d0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x428de4
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x54ad40
call fcn.0050c758
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x428e92
cmp dword [ebp + 0xc], eax
je 0x428e92
push eax
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call edi
mov esi, eax
cmp esi, 1
jb 0x428e92
mov ebx, 0x103
cmp esi, ebx
ja 0x428e92
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ebdbb
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x428e8e
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.004ef140
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x428e8e
cmp eax, ebx
ja 0x428e8e
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.004f2963
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x428e8e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x428ea1
push dword [ebp - 0x1c]
call fcn.004ef135
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.0050c793
ret

Function at 0x428eaa
Capabilities:
Create directory
Delete directory

Disassembly:
mov eax, 0x50f7cf
call fcn.0050c738
push ebx
push esi
push edi
and dword [ebp - 4], 0
push str._access
lea eax, [ebp + 8]
push eax
call fcn.0040619d
mov ebx, dword [ebp + 8]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
test edi, edi
je 0x428eec
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x428ef3
call esi
cmp eax, 5
je 0x428ef6
xor edi, edi
inc edi
lea eax, [ebx - 0x10]
call fcn.004058d0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4298e1
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x50ff13
call fcn.0050c738
push esi
xor esi, esi
cmp dword [ebx], esi
push edi
je 0x429906
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 4
cmp dword [ebp + 8], esi
jne 0x429961
push 0x400000
lea ecx, [ebp + 8]
call fcn.00408dc5
pop ecx
mov dword [ebp - 4], esi
lea esi, [ebx + 4]
mov edi, esi
call fcn.00404ebe
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004058d0
push str.data_fileinfo.dat
push 0x104
call fcn.00405a01
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [esi]
test eax, eax
je 0x429958
push eax
call fcn.004efab4
pop ecx
mov edx, esi
call fcn.004059c8
jmp 0x42996d
push dword [ebp + 8]
lea esi, [ebx + 4]
push esi
call fcn.00405d5b
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x429980
xor eax, eax
jmp 0x4298f6
mov eax, dword [0x55daac]
mov ecx, 0x55daac
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
mov ecx, dword [esi]
push eax
call fcn.0042986d
test eax, eax
jne 0x4299b6
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004058d0
jmp 0x429979
lea edi, [ebx + 0x24]
lea eax, [ebp + 8]
call fcn.00429da8
lea eax, [ebp + 8]
push eax
push ebx
call fcn.00429a01
test eax, eax
jne 0x4299e3
xor esi, esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004058d0
mov eax, esi
jmp 0x4298f6
mov ecx, ebx
call fcn.00429a9b
mov eax, ebx
call fcn.00429c2b
mov ecx, ebx
call fcn.00429c71
xor eax, eax
inc eax
mov dword [ebx], eax
mov esi, eax
jmp 0x4299d1
Function at 0x429c71
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x50f55e
call fcn.0050c738
sub esp, 0x28
push ebx
push esi
push edi
push 0
lea eax, [ebp - 0x30]
push eax
mov esi, ecx
call fcn.0040496b
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.00404a32
test al, al
je 0x429d8d
mov edi, str.eid1
push edi
lea eax, [ebp - 0x30]
call fcn.00404e2a
test al, al
je 0x429d1e
push edi
lea eax, [ebp - 0x30]
call fcn.00404e65
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405b40
lea ebx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0042929c
test eax, eax
je 0x429d0f
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00405b40
lea eax, [ebp - 0x18]
push eax
lea eax, [esi + 8]
push eax
mov byte [ebp - 4], 2
call fcn.00429de9
mov edi, eax
mov eax, ebx
call fcn.00404ebe
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004058d0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004058d0
mov edi, str.eid2
push edi
lea eax, [ebp - 0x30]
call fcn.00404e2a
test al, al
je 0x429d8d
push edi
lea eax, [ebp - 0x30]
call fcn.00404e65
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405b40
lea ebx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0042929c
test eax, eax
je 0x429d82
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00405b40
lea eax, [ebp - 0x18]
push eax
add esi, 8
push esi
mov byte [ebp - 4], 4
call fcn.00429de9
mov edi, eax
mov eax, ebx
call fcn.00404ebe
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004058d0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004058d0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004049e7
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x42b019
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov eax, 0x50e997
call fcn.0050c738
push ecx
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.004060e6
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x10]
mov dword [esp], str.dataproduct.dat
push eax
call fcn.0040619d
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42b06a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004058d0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
push dword [ebp - 0x10]
push 0x12c
push 0x53dbb4
push str.common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ecx], eax
inc esi
jmp 0x42b050
Function at 0x42ba66
Capabilities:
Create thread

Disassembly:
mov eax, 0x510cc8
call fcn.0050c738
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [edi], ebx
push esi
jne 0x42ba81
xor al, al
jmp 0x42bb06
lea eax, [edi + 0x1c]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 8]
push eax
lea esi, [edi + 0xc]
mov dword [ebp - 4], ebx
call fcn.00463b63
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [edi + 8]
mov eax, esi
call fcn.0042a798
test eax, eax
jne 0x42bafc
push 0xc
call fcn.0041517e
cmp eax, ebx
pop ecx
jne 0x42bac9
mov dword [ebp + 8], ebx
jmp 0x42baea
push ebx
push ebx
push eax
push 0x42be60
push ebx
push ebx
mov dword [eax], edi
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x42bb16
call fcn.004f2627
add esp, 0x18
mov dword [ebp + 8], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x42baf7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov dword [esi], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x42e318
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov eax, 0x50f953
call fcn.0050c738
sub esp, 0x278
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x20]
xor edi, edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
call fcn.00405b40
push edi
push 2
mov dword [ebp - 4], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x1c], esi
jne 0x42e375
push 0xfffffffffffffffe
pop esi
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004058d0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
push 0x228
lea eax, [ebp - 0x280]
push edi
push eax
call fcn.004ef140
add esp, 0xc
lea eax, [ebp - 0x284]
push eax
push esi
mov dword [ebp - 0x284], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x42e3b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffffd
jmp 0x42e356
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x54]
push eax
call fcn.00406e53
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42e3d0
xor edi, edi
mov eax, dword [ebp - 0x27c]
cmp eax, dword [ebp - 0x24]
je 0x42e45a
cmp eax, edi
je 0x42e45a
cmp eax, 4
je 0x42e45a
push eax
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x42e45a
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00406ebd
mov esi, dword [ebp + 8]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x42e44c
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx - 0xc]
cmp eax, ecx
jl 0x42e44c
push ecx
push esi
push edx
call fcn.004f03ee
add esp, 0xc
test eax, eax
jne 0x42e44c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 1
je 0x42e446
push dword [ebp - 0x27c]
call fcn.0040713e
cmp eax, 1
pop ecx
jne 0x42e449
inc dword [ebp - 0x14]
inc dword [ebp - 0x18]
push edi
call ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004058d0
lea eax, [ebp - 0x284]
push eax
push dword [ebp - 0x1c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42e3ce
push dword [ebp - 0x1c]
call ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42e482
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
lea esi, [ebp - 0x34]
call fcn.0040748b
lea esi, [ebp - 0x54]
call fcn.00406d79
mov esi, dword [ebp - 0x14]
jmp 0x42e357
Function at 0x42e5e9
Capabilities:
Check if file exists

Disassembly:
push ecx
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
jne 0x42e5fa
mov eax, 0x13a
pop ecx
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42e60c
mov eax, 0x13b
pop ecx
ret
call fcn.00407d57
cmp eax, 0xd
jge 0x42e647
push dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
call fcn.00428ae2
add esp, 0xc
test eax, eax
je 0x42e631
xor eax, eax
pop ecx
ret
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
call fcn.0042896b
test eax, eax
pop ecx
pop ecx
jne 0x42e62d
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push 0
push eax
push ecx
mov ecx, dword [esi + 0x1c]
call fcn.0042885f
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffec7
add eax, 0x139
pop ecx
ret

Function at 0x42ef11
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
cmp dword [esi + 0xc], 0xffffffff
jne 0x42ef75
push ebx
push edi
lea ebx, [ebp - 4]
call fcn.0042f760
push dword [eax]
xor ebx, ebx
push ebx
push 0x53e2e8
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004058d0
cmp edi, ebx
je 0x42ef64
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], ebx
call fcn.0042f062
test eax, eax
je 0x42ef64
cmp dword [ebp - 4], ebx
jne 0x42ef6d
call fcn.0042f863
test eax, eax
je 0x42ef70
xor eax, eax
inc eax
pop edi
mov dword [esi + 0xc], eax
pop ebx
mov eax, dword [esi + 0xc]
pop esi
leave
ret
Function at 0x42f105
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x50edf6
call fcn.0050c738
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x20]
add edi, 0x1c
test eax, eax
je 0x42f12f
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 3
jne 0x42f25a
mov eax, dword [0x55daac]
mov ecx, 0x55daac
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
lea ebx, [ebp - 0x1c]
call fcn.0042f760
mov byte [ebp - 4], 1
push dword [eax]
mov eax, 0x104
push eax
push eax
lea esi, [ebp - 0x14]
call fcn.00405a01
push eax
push str.1.01.21.5
push str.supportrate
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004058d0
cmp dword [ebp - 0x14], ebx
jne 0x42f192
xor eax, eax
jmp 0x42f19b
push dword [ebp - 0x14]
call fcn.004efab4
pop ecx
lea edx, [ebp - 0x14]
call fcn.004059c8
mov esi, 0x53e2e4
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
lea ecx, [ebp - 0x1c]
lea ebx, [ebp - 0x14]
call fcn.0042950c
jmp 0x42f236
push eax
call fcn.004f2aeb
fstp qword [ebp - 0x24]
mov edx, dword [edi + 4]
test edx, edx
pop ecx
jne 0x42f1d2
xor ecx, ecx
jmp 0x42f1da
mov ecx, dword [edi + 8]
sub ecx, edx
sar ecx, 3
test edx, edx
je 0x42f1fa
mov eax, dword [edi + 0xc]
sub eax, edx
sar eax, 3
cmp ecx, eax
jae 0x42f1fa
mov eax, dword [edi + 8]
fld qword [ebp - 0x24]
fstp qword [eax]
add eax, 8
mov dword [edi + 8], eax
jmp 0x42f217
mov ebx, dword [edi + 8]
cmp edx, ebx
jbe 0x42f206
call fcn.004eeace
push ebx
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00450913
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004058d0
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
lea ebx, [ebp - 0x14]
call fcn.0042950c
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jne 0x42f1bd
add eax, 0xfffffff0
call fcn.004058d0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004058d0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x42f4a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x18], 0
jne 0x42f4d6
push ebx
lea ebx, [ebp - 4]
call fcn.0042f760
push dword [eax]
push 2
push 0x53e2f8
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004058d0
pop ebx
mov eax, dword [esi + 0x18]
leave
ret
Function at 0x42f760
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x50e6ab
call fcn.0050c738
push ecx
push ecx
and dword [ebp - 0x14], 0
push edi
lea edi, [ebp - 0x14]
call fcn.0042f4db
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jne 0x42f79e
push 0x53c7fc
push ebx
call fcn.00405b40
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004058d0
jmp 0x42f809
add eax, 0xfffffff0
call fcn.004058e8
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.datadpiconfig.ini
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.0040619d
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42f7e3
lea eax, [ebp - 0x14]
lea edi, [ebp - 0x10]
call fcn.00404ebe
push str._ressrcchsdpisetting.ini
mov eax, edi
push eax
call fcn.0040619d
push esi
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
mov eax, esi
call fcn.004058e8
add eax, 0x10
mov dword [ebx], eax
mov eax, esi
call fcn.004058d0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004058d0
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x42f818
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, esi
call fcn.0042f427
test eax, eax
jne 0x42f82c
push 0x60
pop eax
leave
ret
cmp dword [esi + 8], 0xffffffff
jne 0x42f85e
push ebx
lea ebx, [ebp - 4]
call fcn.0042f760
push dword [eax]
push 0x60
push str.debugdpi
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004058d0
pop ebx
mov eax, dword [esi + 8]
leave
ret

Function at 0x42f863
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 4], 0xffffffff
jne 0x42f899
push ebx
lea ebx, [ebp - 4]
call fcn.0042f760
push dword [eax]
push 0
push str.debug
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004058d0
pop ebx
mov eax, dword [esi + 4]
leave
ret

Function at 0x42f89e
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x50e997
call fcn.0050c738
push ecx
and dword [ebp - 0x10], 0
push esi
mov esi, ecx
add esi, 0x14
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x42f910
push ebx
lea ebx, [ebp - 0x10]
call fcn.0042f760
and dword [ebp - 4], 0
push dword [eax]
mov eax, 0x104
push eax
push eax
call fcn.00405a01
push eax
push str.kxetray
push str.supportprocess
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004058d0
mov eax, dword [esi]
test eax, eax
pop ebx
je 0x42f909
push eax
call fcn.004efab4
pop ecx
mov edx, esi
call fcn.004059c8
mov eax, dword [esi]
sub eax, 0x10
call fcn.004058e8
mov ecx, dword [ebp - 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, edi
pop esi
mov dword fs:[0], ecx
leave
ret