joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d7a7
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x5e8f64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.locale
lea ecx, [ebp - 0x250]
call fcn.00404380
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0055dd80
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
call fcn.00404450
mov ecx, eax
call fcn.00401c00
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x405eea
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x258]
call fcn.00404380
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x405f12
inc eax
push eax
push dword [ebp - 0x234]
call fcn.00405c00
xor eax, eax
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x24c]
push eax
mov dword [ebp - 0x224], 0
call fcn.00404450
mov ecx, eax
call fcn.00401c40
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x405f4e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x254]
call fcn.00404380
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x238]
cmp eax, 8
jb 0x405f76
inc eax
push eax
push dword [ebp - 0x24c]
call fcn.00405c00
xor eax, eax
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
mov dword [ebp - 0x23c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [ebp - 0x250]
lea eax, [ebp - 0x21c]
push eax
push str._s_s
push esi
call fcn.00407f00
add esp, 0x10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40601d
push dword [ebp - 0x250]
push dword [ebp - 0x258]
push str._s_s
push esi
call fcn.00407f00
add esp, 0x10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40601d
push dword [ebp - 0x250]
push dword [ebp - 0x254]
push str._s_s
push esi
call fcn.00407f00
add esp, 0x10
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp - 0x254]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406041
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406062
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x406084
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055ab0a
mov esp, ebp
pop ebp
ret
Function at 0x4060b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d7e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5e8f64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
call fcn.00401e80
mov ecx, eax
test ecx, ecx
jne 0x4060f5
push 0x80004005
call fcn.00405a30
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.00405e70
mov esi, dword [ebp - 0x30]
push 0x5bcdd4
push ebx
push esi
push str._s_s._s
push edi
call fcn.00407f00
add esp, 0x14
lea eax, [ebp - 0x28]
push eax
call fcn.00404450
mov ecx, eax
call fcn.00401e40
push 0x5bcef4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00404380
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push str.PCQQ
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.005633dc
add esp, 8
test eax, eax
jne 0x40618d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x5bcdd4
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
push esi
lea eax, [ebp - 0x2c]
push str._s_s__s._s
push eax
call fcn.00407f00
add esp, 0x18
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4061a6
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.00408860
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4061c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4061d9
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00405c00
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
add esi, 0xfffffff0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x406209
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055ab0a
mov esp, ebp
pop ebp
ret
Function at 0x406230
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d818
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5e8f64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.00407010
mov dword [ebp - 4], 0
mov ecx, dword [eax]
push esi
call fcn.004060b0
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406292
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4062d3
push esi
mov ecx, 0x5bcf28
call fcn.004060b0
add esp, 4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4062d3
mov ecx, esi
call fcn.00404df0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
xor eax, eax
cmp dword [ecx - 0xc], eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4062f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d858
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5e8f64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
xor edi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push ecx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x406352
call fcn.00408b50
mov ebx, eax
test ebx, ebx
jns 0x406359
jmp 0x4064ac
mov edi, eax
xor ebx, ebx
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 0x24], ecx
cmp ecx, 0xffffffff
jne 0x40637a
call fcn.00408b50
test eax, eax
js 0x406381
mov ecx, dword [ebp - 0x24]
mov eax, ecx
or eax, dword [ebp - 0x20]
jne 0x40638b
mov ebx, 0x80070057
jmp 0x4064ac
mov dword [ebp - 0x10], 0
push ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004071f0
mov esi, dword [ebp - 0x10]
test al, al
jne 0x4063b0
mov ebx, 0x8007000e
jmp 0x4064a0
push dword [ebp - 0x24]
lea ecx, [ebp - 0x2c]
push esi
call fcn.00405d10
test edi, edi
je 0x4063ce
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], 0
cmp dword [esi], 0x464d4652
jne 0x40649b
cmp dword [esi + 8], 0x800000
ja 0x40649b
mov eax, dword [ebp - 0x24]
lea ecx, [esi + 0x10]
add eax, 0xfffffff0
push eax
push ecx
push eax
push ecx
call fcn.0041a929
add esp, 0x10
test eax, eax
je 0x40640a
mov ebx, 0x8007000b
jmp 0x4064a0
mov eax, dword [esi + 8]
add eax, 0x7f
mov dword [ebp - 0x14], 0
and eax, 0xffffff80
mov dword [ebp - 0x18], eax
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004071f0
mov edi, dword [ebp - 0x14]
test al, al
jne 0x406441
push edi
mov ebx, 0x8007000e
call fcn.0042afd4
add esp, 4
jmp 0x4064a0
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push eax
push edi
lea ecx, [esi + 0x10]
lea edx, [edx - 0x10]
call fcn.00419d3d
add esp, 8
test eax, eax
jne 0x40646b
push edi
mov ebx, 0x80004005
call fcn.0042afd4
add esp, 4
jmp 0x4064a0
push esi
call fcn.0042afd4
mov ecx, dword [ebp - 0x1c]
add esp, 4
xor esi, esi
mov dword [ebp - 0x10], esi
push dword [ebp - 0x18]
push edi
call fcn.004074f0
push edi
call fcn.0042afd4
add esp, 4
xor edi, edi
push edi
call fcn.0042afd4
add esp, 4
jmp 0x4064a0
mov ebx, 0x80070057
push esi
call fcn.0042afd4
mov edi, dword [ebp - 0x2c]
add esp, 4
test edi, edi
je 0x4064b7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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
Function at 0x406cb0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x5e8f64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x418], edx
push 0
push eax
mov edi, ecx
call fcn.0055dd80
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0055dd80
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x20c]
add esp, 0x18
push 0x104
push eax
push 0x59
push 0x400
call esi
push 0x104
mov ebx, eax
lea eax, [ebp - 0x414]
push eax
push 0x5a
push 0x400
call esi
lea ecx, [ebp - 0x20c]
mov esi, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406d34
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00405100
test esi, esi
je 0x406da9
mov eax, 0x5f
mov word [ebp + ebx*2 - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00564c7d
lea eax, [ebp - 0x20c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406d87
mov ecx, dword [ebp - 0x418]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00405100
mov ecx, dword [edi]
xor eax, eax
pop edi
pop esi
pop ebx
cmp dword [ecx - 0xc], eax
mov ecx, dword [ebp - 4]
setg al
xor ecx, ebp
call fcn.0055ab0a
mov esp, ebp
pop ebp
ret
Function at 0x406dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d9cd
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5e8f64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x224], 0
call fcn.00401e80
mov ecx, eax
test ecx, ecx
jne 0x406e31
push 0x80004005
call fcn.00405a30
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], 1
push 0
push eax
call fcn.0055dd80
add esp, 0xc
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
push 0x20019
push str.SOFTWARETencentMobileGamePC
push SysReAllocStringLen
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 1
call fcn.00405460
mov edi, dword [ebp - 0x230]
test eax, eax
jne 0x406f40
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push str.UserLanguage
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406f40
mov eax, dword [ebp - 0x220]
cmp eax, 1
je 0x406ee9
cmp eax, 2
jne 0x406f40
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x406f06
test al, 1
jne 0x406f40
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x406f0f
jmp 0x406f40
xor eax, eax
mov word [ebp - 0x218], ax
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406f20
sub ecx, edx
sar ecx, 1
je 0x406f40
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00405100
test edi, edi
je 0x406f4b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055ab0a
mov esp, ebp
pop ebp
ret
Function at 0x407010
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57da69
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5e8f64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
call fcn.00401e80
mov ecx, eax
test ecx, ecx
jne 0x407060
push 0x80004005
call fcn.00405a30
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 1
call fcn.00401e80
mov ecx, eax
test ecx, ecx
jne 0x407087
push 0x80004005
call fcn.00405a30
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
call fcn.00401e80
mov ecx, eax
test ecx, ecx
jne 0x4070ab
push 0x80004005
call fcn.00405a30
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x5bcf28
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00404380
lea edx, [ebp - 0x18]
mov dword [ebp - 0x20], 1
lea ecx, [ebp - 0x1c]
call fcn.00406cb0
lea ecx, [ebp - 0x24]
call fcn.00406dd0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00408860
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40710c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
cmp dword [esi - 0xc], 0
je 0x40712b
mov ecx, esi
call fcn.00406f70
test eax, eax
je 0x40712b
lea eax, [ebp - 0x14]
jmp 0x407176
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x804
cmp ax, cx
jne 0x40714c
mov ecx, dword [ebp - 0x10]
push 5
push 0x5bcd78
call fcn.00405100
jmp 0x40717f
cmp dword [edi - 0xc], 0
je 0x407162
mov ecx, edi
call fcn.00406f70
test eax, eax
je 0x407162
lea eax, [ebp - 0x18]
jmp 0x407176
cmp dword [ebx - 0xc], 0
je 0x40717f
mov ecx, ebx
call fcn.00406f70
test eax, eax
je 0x40717f
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
push eax
call fcn.00408860
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 0x40719d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4071b8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add ebx, 0xfffffff0
lock xadd dword [ebx + 0xc], esi
dec esi
test esi, esi
jg 0x4071d1
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
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 0x408970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4089e1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4089af
cmp eax, 2
jne 0x4089cb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4089db
test ecx, ecx
je 0x4089d6
test cl, 1
jne 0x4089cb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4089db
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4089f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x408a05
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408a10
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x408f20
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5e8f64]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
xor esi, esi
push 0x208
push esi
push eax
mov dword [ebp - 0x210], esi
call fcn.0055dd80
add esp, 0xc
mov dword [ebp - 0x214], 0x208
lea eax, [ebp - 0x210]
push eax
push 0x20019
push esi
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408fe3
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push str.ProcessorNameString
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408fe3
cmp word [ebp - 0x20c], si
jne 0x408fb2
xor ecx, ecx
jmp 0x408fcf
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408fc0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00404cf0
mov esi, 1
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x408ff4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0055ab0a
mov esp, ebp
pop ebp
ret 4
Function at 0x409010
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x310
mov eax, dword [0x5e8f64]
xor eax, esp
mov dword [esp + 0x30c], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x10]
push 0x40
push 0
push eax
call fcn.0055dd80
push 0x2ba
lea eax, [esp + 0x60]
push 0
push eax
call fcn.0055dd80
add esp, 0x18
xorps xmm0, xmm0
movlpd qword [esp + 8], xmm0
push str.GetPhysicallyInstalledSystemMemory
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40907c
lea ecx, [esp + 8]
push ecx
call eax
mov ecx, dword [esp + 8]
mov eax, ecx
mov edx, dword [esp + 0xc]
or eax, edx
je 0x4090bd
push 0x15d
lea eax, [esp + 0x54]
shld edx, ecx, 0xa
push eax
shl ecx, 0xa
push edx
push ecx
call dword [sym.imp.SHLWAPI.dll_StrFormatByteSizeW]
mov edx, eax
cmp word [edx], 0
je 0x4090f0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4090b0
jmp 0x40910b
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
push 0x15d
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.SHLWAPI.dll_StrFormatByteSizeW]
mov edx, eax
cmp word [edx], 0
jne 0x4090f4
xor ecx, ecx
jmp 0x40910f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409100
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00404cf0
mov ecx, dword [esp + 0x314]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.0055ab0a
mov esp, ebp
pop ebp
ret 4
Function at 0x409460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5e8f64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x208
push esi
push eax
mov dword [ebp - 0x418], esi
call fcn.0055dd80
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0055dd80
add esp, 0x18
mov dword [ebp - 0x41c], 0x208
lea eax, [ebp - 0x418]
push eax
push 0x20019
push esi
push str.SOFTWARETencentMobileGamePCAppMarket
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409595
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.InstallPath
push dword [ebp - 0x418]
call esi
cmp word [ebp - 0x20c], 0
jne 0x40950b
xor ecx, ecx
jmp 0x409523
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409514
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00404cf0
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x208
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push str.Version
push dword [ebp - 0x418]
call esi
cmp word [ebp - 0x414], 0
jne 0x409569
xor ecx, ecx
jmp 0x409581
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409572
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x414]
mov ecx, ebx
push eax
call fcn.00404cf0
mov esi, 1
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x4095a6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055ab0a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4095c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5e8f64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x208
push esi
push eax
mov dword [ebp - 0x418], esi
call fcn.0055dd80
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0055dd80
add esp, 0x18
mov dword [ebp - 0x41c], 0x208
lea eax, [ebp - 0x418]
push eax
push 0x20019
push esi
push str.SOFTWARETencentMobileGamePCUI
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4096f5
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.InstallPath
push dword [ebp - 0x418]
call esi
cmp word [ebp - 0x20c], 0
jne 0x40966b
xor ecx, ecx
jmp 0x409683
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409674
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00404cf0
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x208
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push str.Version
push dword [ebp - 0x418]
call esi
cmp word [ebp - 0x414], 0
jne 0x4096c9
xor ecx, ecx
jmp 0x4096e1
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4096d2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x414]
mov ecx, ebx
push eax
call fcn.00404cf0
mov esi, 1
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x409706
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055ab0a
mov esp, ebp
pop ebp
ret 0xc