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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x513454]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], ecx
mov dword [ebp - 4], 0
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.004923b0
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x4d6c5a
jmp 0x4d6ce1
push 1
push 0x23
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4d6ca7
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4d6c93
jmp 0x4d6ce1
push 0x4f3e2c
lea eax, [ebp - 0x210]
push eax
call fcn.00499893
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00499893
add esp, 8
lea eax, [ebp - 0x210]
push eax
call fcn.004926b1
add esp, 4
cmp eax, dword [ebp + 0x10]
jae 0x4d6ce1
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00499893
add esp, 8
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049b84b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d7450
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1511
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x513454]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x10], 0
mov word [ebp - 0x224], 0
push 0x206
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.004923b0
add esp, 0xc
lea eax, [ebp - 0x18]
call fcn.004022b4
mov dword [ebp - 4], 0
push 1
push 0x4f3c50
push SysReAllocString
lea esi, [ebp - 0x18]
call fcn.004022c9
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4d74de
mov dword [ebp - 0x10], 1
jmp 0x4d74fe
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 8]
call fcn.004020de
push eax
lea ebx, [ebp - 0x18]
call fcn.00443803
test eax, eax
je 0x4d74fe
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x228]
call fcn.00401ba0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x228]
push edx
mov ecx, dword [ebp - 0x26c]
call fcn.004d6da0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4d756d
lea eax, [ebp - 0x228]
call fcn.004020de
push eax
push 0x104
lea eax, [ebp - 0x224]
push eax
push 0
mov eax, dword [ebp + 8]
call fcn.004020de
push eax
push 0x4f3d28
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x10], 0
je 0x4d75cf
cmp dword [ebp - 0x22c], 0
ja 0x4d75a3
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x26c]
call fcn.004d6f30
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00401b96
jmp 0x4d7602
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401b5c
mov dword [ebp - 0x14], 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x26c]
call fcn.004d6e50
jmp 0x4d75eb
cmp dword [ebp - 0x22c], 0
ja 0x4d75eb
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x26c]
call fcn.004d6e50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00401b96
xor eax, eax
jne 0x4d7505
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x230], ecx
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x18]
call fcn.004022b8
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0049b84b
mov esp, ebp
pop ebp
ret 8
Function at 0x4d8740
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x50b298
push 0x49b980
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, dword [0x513454]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x4d879a
cmp dword [ebp + 0xc], 0
je 0x4d879a
cmp dword [ebp + 0x10], 1
jae 0x4d879f
jmp 0x4d887d
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jb 0x4d87c1
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 0x1c], ecx
jbe 0x4d87c6
jmp 0x4d887d
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049130d
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4d8801
mov dword [ebp - 4], 0xfffffffe
jmp 0x4d887d
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.004923b0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4d885d
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0x1c], eax
ja 0x4d885d
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0x10]
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00495af1
add esp, 0x10
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4d887d
cmp dword [ebp - 0x20], 0
je 0x4d889c
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049242a
add esp, 4
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d8940
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
call fcn.004020de
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4d8960
xor eax, eax
jmp 0x4d8971
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x4d896c
xor eax, eax
jmp 0x4d8971
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4d9630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x513454]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, dword [ebp + 8]
call fcn.0041e0e4
movzx eax, al
test eax, eax
je 0x4d965a
xor eax, eax
jmp 0x4d9879
mov word [ebp - 0x218], 0
push 0x208
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004923b0
add esp, 0xc
push 0x4f4278
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0041e76b
cmp eax, 0xffffffff
je 0x4d96cb
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x4f429c
call fcn.004d8740
add esp, 0xc
test eax, eax
jne 0x4d96b1
xor eax, eax
jmp 0x4d9879
lea eax, [ebp - 0x218]
push eax
push str._ALLUSERSPROFILE_
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405254
jmp 0x4d9868
push 0x4f42e4
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0041e76b
cmp eax, 0xffffffff
je 0x4d971d
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x4f42f8
call fcn.004d8740
add esp, 0xc
test eax, eax
jne 0x4d9703
xor eax, eax
jmp 0x4d9879
lea eax, [ebp - 0x218]
push eax
push str._APPDATA_
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405254
jmp 0x4d9868
push 0x4f4320
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0041e76b
cmp eax, 0xffffffff
je 0x4d976f
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x4f4330
call fcn.004d8740
add esp, 0xc
test eax, eax
jne 0x4d9755
xor eax, eax
jmp 0x4d9879
lea eax, [ebp - 0x218]
push eax
push str._TEMP_
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405254
jmp 0x4d9868
push 0x4f4350
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0041e76b
cmp eax, 0xffffffff
je 0x4d97ba
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
ja 0x4d97a0
xor eax, eax
jmp 0x4d9879
lea eax, [ebp - 0x218]
push eax
push str._SYSTEM_
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405254
jmp 0x4d9868
push 0x4f4378
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0041e76b
cmp eax, 0xffffffff
je 0x4d9802
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
ja 0x4d97eb
xor eax, eax
jmp 0x4d9879
lea eax, [ebp - 0x218]
push eax
push str._WINDOWS_
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405254
jmp 0x4d9868
push 0x4f43a0
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0041e76b
cmp eax, 0xffffffff
je 0x4d9864
push 0x20a
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.004923b0
add esp, 0xc
push 0x105
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x218]
push edx
push str._CUR_DIR_
mov eax, dword [ebp + 8]
push eax
call fcn.00405254
jmp 0x4d9868
xor eax, eax
jmp 0x4d9879
mov ecx, dword [ebp + 8]
push ecx
call fcn.004d95e0
add esp, 4
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b84b
mov esp, ebp
pop ebp
ret
Function at 0x4d9890
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0ca3
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x513454]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], 0
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
call fcn.004019de
mov dword [ebp - 4], 0
mov dword [ebp - 0x24c], 0
push 0x228
push 0
lea ecx, [ebp - 0x248]
push ecx
call fcn.004923b0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4d990c
jmp 0x4d9975
mov dword [ebp - 0x24c], 0x22c
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_Process32FirstW
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
jne 0x4d9937
jmp 0x4d9975
lea ecx, [ebp - 0x228]
push ecx
lea eax, [ebp - 0x14]
call fcn.00405243
test eax, eax
jne 0x4d9961
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x244]
mov dword [edx], eax
mov dword [ebp - 0x250], 1
jmp 0x4d9975
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4d9937
cmp dword [ebp - 0x10], 0xffffffff
je 0x4d9985
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x258], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401b96
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0049b84b
mov esp, ebp
pop ebp
ret
Function at 0x4d99c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0cde
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x513454]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x228], 0
lea eax, [ebp - 0x230]
call fcn.004022b4
mov dword [ebp - 4], 0
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x224], 0
push 0x206
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.004923b0
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00401ba0
mov byte [ebp - 4], 1
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4d9aaf
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4d9aaf
push 0x4f4274
mov eax, dword [ebp + 8]
call fcn.004019de
mov ecx, dword [ebp - 0x234]
or ecx, 1
mov dword [ebp - 0x234], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401b96
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x230]
call fcn.004393eb
mov eax, dword [ebp + 8]
jmp 0x4d9b97
lea edx, [ebp - 0x22c]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp dword [ebp - 0x22c], 0
jne 0x4d9ad0
jmp 0x4d9b56
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x224]
push eax
call fcn.004926b1
add esp, 4
test eax, eax
je 0x4d9b14
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00401b5c
lea eax, [ebp - 0x230]
call fcn.0048022b
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4d9b56
lea eax, [ebp - 0x230]
call fcn.004020de
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0x260]
push edx
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
call fcn.00401704
mov eax, dword [ebp - 0x234]
or eax, 1
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401b96
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x230]
call fcn.004393eb
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0049b84b
mov esp, ebp
pop ebp
ret
Function at 0x4dab60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e121f
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x513454]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x230], 0
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp + 8]
or ecx, 0x20019
push ecx
push 0
mov eax, dword [ebp - 0x260]
add eax, 0xc
call fcn.004020de
push eax
mov edx, dword [ebp - 0x260]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x4dabf1
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4dad2d
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x228], 0x105
mov word [ebp - 0x224], 0
push 0x208
push 0
lea edx, [ebp - 0x222]
push edx
call fcn.004923b0
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x260]
add eax, 8
call fcn.004020de
push eax
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x22c], 0
jne 0x4dad2b
cmp dword [ebp - 0x10], 1
jne 0x4dad2b
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x234]
call fcn.004019de
mov dword [ebp - 4], 0
lea eax, [ebp - 0x234]
push eax
call fcn.004d9bc0
add esp, 4
push 0x105
lea esi, [ebp - 0x234]
call fcn.004018bb
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
or eax, 0xffffffff
lea esi, [ebp - 0x234]
call fcn.0041e80c
mov eax, dword [ebp - 0x260]
add eax, 0x10
call fcn.004020de
push eax
push 0x105
lea esi, [ebp - 0x234]
call fcn.004018bb
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
or eax, 0xffffffff
lea esi, [ebp - 0x234]
call fcn.0041e80c
lea ecx, [ebp - 0x234]
push ecx
call fcn.004d8940
add esp, 4
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.00401b96
mov eax, dword [ebp - 0x238]
jmp 0x4dad2d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049b84b
mov esp, ebp
pop ebp
ret 4
Function at 0x4dbf10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e165f
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x513454]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x10], 0
mov word [ebp - 0x224], 0
push 0x206
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.004923b0
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00401ba0
mov dword [ebp - 4], 0
push 1
push 0x23
lea ecx, [ebp - 0x224]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4dc033
push 0x104
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4dbfbb
jmp 0x4dc0ba
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00401b5c
lea edx, [ebp - 0x22c]
push edx
mov ecx, 1
lea eax, [ebp - 0x14]
call fcn.004054b7
mov dword [ebp - 0x274], eax
push 0x4f4704
mov eax, dword [ebp - 0x274]
push eax
call fcn.0042717d
add esp, 8
mov byte [ebp - 0x225], al
lea ecx, [ebp - 0x22c]
call fcn.00401b96
movzx ecx, byte [ebp - 0x225]
test ecx, ecx
je 0x4dc023
push 0x4f4708
lea edx, [ebp - 0x14]
push edx
call fcn.0040554e
push 0x4f470c
lea eax, [ebp - 0x14]
push eax
call fcn.0040554e
jmp 0x4dc09b
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00401b5c
lea eax, [ebp - 0x234]
push eax
mov ecx, 1
lea eax, [ebp - 0x14]
call fcn.004054b7
mov dword [ebp - 0x278], eax
push 0x4f4744
mov ecx, dword [ebp - 0x278]
push ecx
call fcn.0042717d
add esp, 8
mov byte [ebp - 0x22d], al
lea ecx, [ebp - 0x234]
call fcn.00401b96
movzx edx, byte [ebp - 0x22d]
test edx, edx
je 0x4dc09b
push 0x4f4748
lea eax, [ebp - 0x14]
push eax
call fcn.0040554e
push 0x4f474c
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040554e
lea eax, [ebp - 0x14]
call fcn.004020de
push eax
call fcn.0047fb17
add esp, 4
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
call fcn.00401704
mov edx, dword [ebp - 0x238]
or edx, 1
mov dword [ebp - 0x238], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401b96
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0049b84b
mov esp, ebp
pop ebp
ret
Function at 0x4dc650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0xffffffff
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4dc694
jmp 0x4dc6cf
mov dword [ebp - 0x10], 0
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4dc6c4
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0x10]
je 0x4dc6c8
jmp 0x4dc6cf
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 0xffffffff
je 0x4dc6df
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4dd170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0d31
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x513454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea eax, [ebp - 0x20]
call fcn.004019de
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x20019
call fcn.0044373e
cmp eax, 2
jne 0x4dd1dd
mov eax, dword [ebp - 0x10]
or eax, 0x100
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
lea eax, [ebp - 0x20]
call fcn.004020de
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4dd20a
cmp dword [ebp - 0x14], 0
jne 0x4dd20c
jmp 0x4dd266
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0
push str.InstallDate
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4dd24d
cmp dword [ebp - 0x24], 4
je 0x4dd24f
jmp 0x4dd266
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov dword [ebp - 0x1c], 1
xor eax, eax
jne 0x4dd1c8
cmp dword [ebp - 0x14], 0
je 0x4dd27d
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401b96
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4dd740
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0dd5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x513454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
call fcn.004dd340
add esp, 4
mov dword [ebp - 4], 0
push str.ressrcchsuplive.svr
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040554e
lea eax, [ebp - 0x14]
call fcn.004020de
push eax
push 0
push 0x4f48d8
push str.common
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401b96
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4df9b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e15b7
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x513454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], str.QQPCRTP
push 0x4f401c
push 0x4f4034
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0x18]
push eax
call fcn.004df8c0
add esp, 0x10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
call fcn.0041e0e4
movzx ecx, al
test ecx, ecx
je 0x4dfa25
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401b96
jmp 0x4dfa97
lea eax, [ebp - 0x18]
call fcn.004020de
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4dfa49
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401b96
jmp 0x4dfa97
mov dword [ebp - 0x1c], 0
jmp 0x4dfa5b
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 1
jae 0x4dfa80
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + eax*4 - 0x10]
push ecx
call fcn.0048a442
add esp, 4
test eax, eax
je 0x4dfa7e
mov dword [ebp - 0x14], 1
jmp 0x4dfa80
jmp 0x4dfa52
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401b96
xor edx, edx
jne 0x4df9e3
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret