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

Disassembly:
mov eax, 0x50e096
call fcn.0050c878
sub esp, 0x70
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov ebx, ecx
jne 0x428a2b
xor eax, eax
jmp 0x428b73
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 str.__s___s
call fcn.004063cf
add esp, 0xc
lea esi, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.0040920d
test eax, eax
jne 0x428b57
push 0x40
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x7c], 0x44
call fcn.004ef200
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 0x428b01
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 0x428b01
push ebx
push dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x428afe
mov dword [ebp - 0x24], 0x430
jmp 0x428b01
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 0x428b30
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], ebx
je 0x428b3e
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x428b49
push dword [ebp + 8]
call dword [ebp - 0x18]
cmp dword [ebp - 0x1c], ebx
je 0x428b57
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x14], 0
je 0x428b66
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405883
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x428b82
Capabilities:
Check os version
Create process on windows

Disassembly:
mov eax, 0x50e084
call fcn.0050c878
sub esp, 0x184
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
jne 0x428ba3
xor eax, eax
jmp 0x428d56
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 str.__s___s
call fcn.004063cf
push 0x110
lea eax, [ebp - 0x18c]
push ebx
push eax
call fcn.004ef200
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 0x428c08
cmp dword [ebp - 0x18c], 6
jne 0x428c08
inc esi
cmp esi, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea esi, [ebp - 0x10]
jne 0x428c1c
call fcn.0040920d
jmp 0x428c21
call fcn.004091bd
cmp eax, ebx
jne 0x428d3a
push 0x40
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x78], 0x44
call fcn.004ef200
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.00409278
add esp, 0x10
test al, al
jne 0x428c86
cmp dword [ebp - 0x10], ebx
je 0x428c7c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.004093f2
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 0x428ce5
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 0x428ce5
push ebx
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x428ce2
mov dword [ebp - 0x14], 0x430
jmp 0x428ce5
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 0x428d15
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], ebx
je 0x428d23
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x428d2c
push dword [ebp + 8]
call edi
cmp dword [ebp - 0x1c], ebx
je 0x428d3a
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], ebx
je 0x428d48
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405883
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 0x428e90
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x54ace8
call fcn.0050c898
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x428f3e
cmp dword [ebp + 0xc], eax
je 0x428f3e
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 0x428f3e
mov ebx, 0x103
cmp esi, ebx
ja 0x428f3e
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.004ebe7b
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x428f3a
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.004ef200
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x428f3a
cmp eax, ebx
ja 0x428f3a
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.004f2a2e
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x428f3a
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x428f4d
push dword [ebp - 0x1c]
call fcn.004ef1f5
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.0050c8d3
ret

Function at 0x428f56
Capabilities:
Create directory
Delete directory

Disassembly:
mov eax, 0x50e072
call fcn.0050c878
push ebx
push esi
push edi
and dword [ebp - 4], 0
push str._access
lea eax, [ebp + 8]
push eax
call fcn.0040611c
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 0x428f98
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x428f9f
call esi
cmp eax, 5
je 0x428fa2
xor edi, edi
inc edi
lea eax, [ebx - 0x10]
call fcn.00405883
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x429b1c
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x5100e7
call fcn.0050c878
push esi
xor esi, esi
cmp dword [ebx], esi
push edi
je 0x429b41
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 0x429b9c
push 0x400000
lea ecx, [ebp + 8]
call fcn.00408eff
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.00405883
push str.data_fileinfo.dat
push 0x104
call fcn.004059b4
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [esi]
test eax, eax
je 0x429b93
push eax
call fcn.004efb74
pop ecx
mov edx, esi
call fcn.0040597b
jmp 0x429ba8
push dword [ebp + 8]
lea esi, [ebx + 4]
push esi
call fcn.00405d0e
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x429bbb
xor eax, eax
jmp 0x429b31
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.00429aa8
test eax, eax
jne 0x429bf1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405883
jmp 0x429bb4
lea edi, [ebx + 0x24]
lea eax, [ebp + 8]
call fcn.00429fe3
lea eax, [ebp + 8]
push eax
push ebx
call fcn.00429c3c
test eax, eax
jne 0x429c1e
xor esi, esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405883
mov eax, esi
jmp 0x429b31
mov ecx, ebx
call fcn.00429cd6
mov eax, ebx
call fcn.00429e66
mov ecx, ebx
call fcn.00429eac
xor eax, eax
inc eax
mov dword [ebx], eax
mov esi, eax
jmp 0x429c0c
Function at 0x429eac
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x50f6a5
call fcn.0050c878
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 0x429fc8
mov edi, str.eid1
push edi
lea eax, [ebp - 0x30]
call fcn.00404e2a
test al, al
je 0x429f59
push edi
lea eax, [ebp - 0x30]
call fcn.00404e65
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405af3
lea ebx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00429370
test eax, eax
je 0x429f4a
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00405af3
lea eax, [ebp - 0x18]
push eax
lea eax, [esi + 8]
push eax
mov byte [ebp - 4], 2
call fcn.0042a024
mov edi, eax
mov eax, ebx
call fcn.00404ebe
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405883
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405883
mov edi, str.eid2
push edi
lea eax, [ebp - 0x30]
call fcn.00404e2a
test al, al
je 0x429fc8
push edi
lea eax, [ebp - 0x30]
call fcn.00404e65
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405af3
lea ebx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00429370
test eax, eax
je 0x429fbd
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00405af3
lea eax, [ebp - 0x18]
push eax
add esi, 8
push esi
mov byte [ebp - 4], 4
call fcn.0042a024
mov edi, eax
mov eax, ebx
call fcn.00404ebe
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405883
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405883
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 0x42b273
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov eax, 0x50f000
call fcn.0050c878
push ecx
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00406065
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x10]
mov dword [esp], str.dataproduct.dat
push eax
call fcn.0040611c
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42b2c4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405883
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
push dword [ebp - 0x10]
push 0x64
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 0x42b2aa
Function at 0x42bcc0
Capabilities:
Create thread

Disassembly:
mov eax, 0x510e75
call fcn.0050c878
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [edi], ebx
push esi
jne 0x42bcdb
xor al, al
jmp 0x42bd60
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.00463d68
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.0042a9f2
test eax, eax
jne 0x42bd56
push 0xc
call fcn.004151b2
cmp eax, ebx
pop ecx
jne 0x42bd23
mov dword [ebp + 8], ebx
jmp 0x42bd44
push ebx
push ebx
push eax
push 0x42c038
push ebx
push ebx
mov dword [eax], edi
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x42bd70
call fcn.004f2747
add esp, 0x18
mov dword [ebp + 8], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x42bd51
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 0x42e4f0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov eax, 0x50faed
call fcn.0050c878
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.00405af3
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 0x42e54d
push 0xfffffffffffffffe
pop esi
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405883
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.004ef200
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 0x42e588
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffffd
jmp 0x42e52e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x54]
push eax
call fcn.00406e7e
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42e5a8
xor edi, edi
mov eax, dword [ebp - 0x27c]
cmp eax, dword [ebp - 0x24]
je 0x42e632
cmp eax, edi
je 0x42e632
cmp eax, 4
je 0x42e632
push eax
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x42e632
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00406ee8
mov esi, dword [ebp + 8]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x42e624
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx - 0xc]
cmp eax, ecx
jl 0x42e624
push ecx
push esi
push edx
call fcn.004f0511
add esp, 0xc
test eax, eax
jne 0x42e624
push eax
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 1
je 0x42e61e
push dword [ebp - 0x27c]
call fcn.00407169
cmp eax, 1
pop ecx
jne 0x42e621
inc dword [ebp - 0x14]
inc dword [ebp - 0x18]
push edi
call ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405883
lea eax, [ebp - 0x284]
push eax
push dword [ebp - 0x1c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42e5a6
push dword [ebp - 0x1c]
call ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42e65a
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
lea esi, [ebp - 0x34]
call fcn.004074c9
lea esi, [ebp - 0x54]
call fcn.00406da4
mov esi, dword [ebp - 0x14]
jmp 0x42e52f
Function at 0x42e7c1
Capabilities:
Check if file exists

Disassembly:
push ecx
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
jne 0x42e7d2
mov eax, 0x13a
pop ecx
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42e7e4
mov eax, 0x13b
pop ecx
ret
call fcn.00407e1e
cmp eax, 0xd
jge 0x42e81f
push dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
call fcn.00428b82
add esp, 0xc
test eax, eax
je 0x42e809
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.00428a0b
test eax, eax
pop ecx
pop ecx
jne 0x42e805
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
call fcn.00428910
neg eax
sbb eax, eax
pop ecx
and eax, 0xfffffec7
pop ecx
add eax, 0x139
pop ecx
ret

Function at 0x42f0e6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
cmp dword [esi + 0xc], 0xffffffff
jne 0x42f14a
push ebx
push edi
lea ebx, [ebp - 4]
call fcn.0042f6f3
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.00405883
cmp edi, ebx
je 0x42f139
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], ebx
call fcn.0042f237
test eax, eax
je 0x42f139
cmp dword [ebp - 4], ebx
jne 0x42f142
call fcn.0042f7f6
test eax, eax
je 0x42f145
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 0x42f2da
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x50efd9
call fcn.0050c878
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x20]
add edi, 0x1c
test eax, eax
je 0x42f304
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 3
jne 0x42f42f
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.0042f6f3
mov byte [ebp - 4], 1
push dword [eax]
mov eax, 0x104
push eax
push eax
lea esi, [ebp - 0x14]
call fcn.004059b4
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.00405883
cmp dword [ebp - 0x14], ebx
jne 0x42f367
xor eax, eax
jmp 0x42f370
push dword [ebp - 0x14]
call fcn.004efb74
pop ecx
lea edx, [ebp - 0x14]
call fcn.0040597b
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.00429762
jmp 0x42f40b
push eax
call fcn.004f2bb6
fstp qword [ebp - 0x24]
mov edx, dword [edi + 4]
test edx, edx
pop ecx
jne 0x42f3a7
xor ecx, ecx
jmp 0x42f3af
mov ecx, dword [edi + 8]
sub ecx, edx
sar ecx, 3
test edx, edx
je 0x42f3cf
mov eax, dword [edi + 0xc]
sub eax, edx
sar eax, 3
cmp ecx, eax
jae 0x42f3cf
mov eax, dword [edi + 8]
fld qword [ebp - 0x24]
fstp qword [eax]
add eax, 8
mov dword [edi + 8], eax
jmp 0x42f3ec
mov ebx, dword [edi + 8]
cmp edx, ebx
jbe 0x42f3db
call fcn.004eeb8e
push ebx
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.004507c8
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405883
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
lea ebx, [ebp - 0x14]
call fcn.00429762
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jne 0x42f392
add eax, 0xfffffff0
call fcn.00405883
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405883
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x42f5f8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x18], 0
jne 0x42f62e
push ebx
lea ebx, [ebp - 4]
call fcn.0042f6f3
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.00405883
pop ebx
mov eax, dword [esi + 0x18]
leave
ret
Function at 0x42f6f3
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x50e719
call fcn.0050c878
push ecx
push ecx
and dword [ebp - 0x14], 0
push edi
lea edi, [ebp - 0x14]
call fcn.0042f633
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jne 0x42f731
push 0x53c7fc
push ebx
call fcn.00405af3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405883
jmp 0x42f79c
add eax, 0xfffffff0
call fcn.0040589b
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.0040611c
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42f776
lea eax, [ebp - 0x14]
lea edi, [ebp - 0x10]
call fcn.00404ebe
push str._ressrcchsdpisetting.ini
mov eax, edi
push eax
call fcn.0040611c
push esi
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
mov eax, esi
call fcn.0040589b
add eax, 0x10
mov dword [ebx], eax
mov eax, esi
call fcn.00405883
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405883
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x42f7ab
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, esi
call fcn.0042f57f
test eax, eax
jne 0x42f7bf
push 0x60
pop eax
leave
ret
cmp dword [esi + 8], 0xffffffff
jne 0x42f7f1
push ebx
lea ebx, [ebp - 4]
call fcn.0042f6f3
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.00405883
pop ebx
mov eax, dword [esi + 8]
leave
ret

Function at 0x42f7f6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 4], 0xffffffff
jne 0x42f82c
push ebx
lea ebx, [ebp - 4]
call fcn.0042f6f3
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.00405883
pop ebx
mov eax, dword [esi + 4]
leave
ret

Function at 0x42f831
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x50f000
call fcn.0050c878
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 0x42f8a3
push ebx
lea ebx, [ebp - 0x10]
call fcn.0042f6f3
and dword [ebp - 4], 0
push dword [eax]
mov eax, 0x104
push eax
push eax
call fcn.004059b4
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.00405883
mov eax, dword [esi]
test eax, eax
pop ebx
je 0x42f89c
push eax
call fcn.004efb74
pop ecx
mov edx, esi
call fcn.0040597b
mov eax, dword [esi]
sub eax, 0x10
call fcn.0040589b
mov ecx, dword [ebp - 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, edi
pop esi
mov dword fs:[0], ecx
leave
ret