joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406dc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a461d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x61df64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea ebx, [edi + 0x10]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 0
mov ecx, ebx
mov dword [ebp - 0x14], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
call fcn.00408e40
mov dword [ebx + 0xc], 0
lea esi, [edi + 0x20]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push 0
mov ecx, esi
mov dword [ebp - 0x14], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00408e40
mov dword [esi + 0xc], 0
lea esi, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x406eae
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov al, byte [ebp + 0x34]
lea ecx, [edi + 0x70]
mov byte [ebp - 4], 5
mov byte [edi + 0x60], al
push 8
mov byte [edi + 0x68], 8
call fcn.00407900
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
mov byte [ebp - 0xd], 1
call fcn.00407d00
mov dword [ebp - 4], 7
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x406ef8
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
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 0x30

Function at 0x410710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x410725
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x410766
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x410762
nop word [eax + eax]
cmp esi, edx
jae 0x410766
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x410750
cmp esi, edx
jb 0x41076b
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4127c0
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 0x412831
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4127ff
cmp eax, 2
jne 0x41281b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x41282b
test ecx, ecx
je 0x412826
test cl, 1
jne 0x41281b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x41282b
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 0x413400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5117
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x61df64]
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.00406180
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0056c4b0
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
call fcn.00406070
mov ecx, eax
call fcn.00401df0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x41347a
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x258]
call fcn.00406180
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x4134a8
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.00412560
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.00406070
mov ecx, eax
call fcn.00401e30
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x4134e4
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x254]
call fcn.00406180
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x238]
cmp eax, 8
jb 0x413512
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.00412560
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.00415610
add esp, 0x10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4135b9
push dword [ebp - 0x250]
push dword [ebp - 0x258]
push str._s_s
push esi
call fcn.00415610
add esp, 0x10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4135b9
push dword [ebp - 0x250]
push dword [ebp - 0x254]
push str._s_s
push esi
call fcn.00415610
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 0x4135dd
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 0x4135fe
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 0x413620
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.00567f8c
mov esp, ebp
pop ebp
ret
Function at 0x413640
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5158
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x61df64]
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.00410b80
mov ecx, eax
test ecx, ecx
jne 0x413685
push 0x80004005
call fcn.00411c70
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.00413400
mov esi, dword [ebp - 0x30]
push 0x5f14e0
push ebx
push esi
push str._s_s._s
push edi
call fcn.00415610
add esp, 0x14
lea eax, [ebp - 0x28]
push eax
call fcn.00406070
mov ecx, eax
call fcn.00402070
push 0x5f13ec
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00406180
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.0056f458
add esp, 8
test eax, eax
jne 0x41371d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x5f14e0
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.00415610
add esp, 0x18
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413736
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.00413160
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 0x413757
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x41376c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00412560
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 0x41379c
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.00567f8c
mov esp, ebp
pop ebp
ret
Function at 0x4137c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5188
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x61df64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.00414810
mov dword [ebp - 4], 0
mov ecx, dword [eax]
push esi
call fcn.00413640
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 0x413822
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 0x413863
push esi
mov ecx, 0x5f1644
call fcn.00413640
add esp, 4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x413863
mov ecx, esi
call fcn.00410c70
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 0x413880
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a51c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x61df64]
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 SysReAllocString
push ecx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4138e2
call fcn.00415f70
mov ebx, eax
test ebx, ebx
jns 0x4138e9
jmp 0x413a3c
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 0x41390a
call fcn.00415f70
test eax, eax
js 0x413911
mov ecx, dword [ebp - 0x24]
mov eax, ecx
or eax, dword [ebp - 0x20]
jne 0x41391b
mov ebx, 0x80070057
jmp 0x413a3c
mov dword [ebp - 0x10], 0
push ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00414a80
mov esi, dword [ebp - 0x10]
test al, al
jne 0x413940
mov ebx, 0x8007000e
jmp 0x413a30
push dword [ebp - 0x24]
lea ecx, [ebp - 0x2c]
push esi
call fcn.004132a0
test edi, edi
je 0x41395e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], 0
cmp dword [esi], 0x464d4652
jne 0x413a2b
cmp dword [esi + 8], 0x800000
ja 0x413a2b
mov eax, dword [ebp - 0x24]
lea ecx, [esi + 0x10]
add eax, 0xfffffff0
push eax
push ecx
push eax
push ecx
call fcn.00427e19
add esp, 0x10
test eax, eax
je 0x41399a
mov ebx, 0x8007000b
jmp 0x413a30
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.00414a80
mov edi, dword [ebp - 0x14]
test al, al
jne 0x4139d1
push edi
mov ebx, 0x8007000e
call fcn.00438484
add esp, 4
jmp 0x413a30
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push eax
push edi
lea ecx, [esi + 0x10]
lea edx, [edx - 0x10]
call fcn.0042722d
add esp, 8
test eax, eax
jne 0x4139fb
push edi
mov ebx, 0x80004005
call fcn.00438484
add esp, 4
jmp 0x413a30
push esi
call fcn.00438484
mov ecx, dword [ebp - 0x1c]
add esp, 4
xor esi, esi
mov dword [ebp - 0x10], esi
push dword [ebp - 0x18]
push edi
call fcn.00414d80
push edi
call fcn.00438484
add esp, 4
xor edi, edi
push edi
call fcn.00438484
add esp, 4
jmp 0x413a30
mov ebx, 0x80070057
push esi
call fcn.00438484
mov edi, dword [ebp - 0x2c]
add esp, 4
test edi, edi
je 0x413a47
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 0x4140b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0x2001f
push str.SOFTWARETencentMobileGamePC
mov edi, ecx
mov dword [ebp - 0x14], 0
push SysReAllocString
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call fcn.004116a0
test eax, eax
je 0x4141a0
mov esi, dword [ebp - 0xc]
mov dword [ebp - 4], 0
test esi, esi
je 0x41415b
cmp dword [esi], 0
je 0x41414e
push 0x5f1278
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x414117
mov eax, 1
jmp 0x414180
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414154
push 0
push dword [esi]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWARETencentMobileGamePC
push SysReAllocString
call eax
jmp 0x414180
cmp dword [esi + 4], 0
jne 0x41415b
mov eax, 1
jmp 0x414180
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWARETencentMobileGamePC
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41419b
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x414192
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 4]
test eax, eax
jne 0x4141d8
jmp 0x4141a3
mov esi, dword [ebp - 0x14]
jmp 0x4141d8
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x4141d8
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4141b0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push str.UserLanguage
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x4141e3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4141f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a530d
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x61df64]
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.00410b80
mov ecx, eax
test ecx, ecx
jne 0x414251
push 0x80004005
call fcn.00411c70
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.0056c4b0
add esp, 0xc
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
push 0x20019
push str.SOFTWARETencentMobileGamePC
push SysReAllocString
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 1
call fcn.004116a0
mov edi, dword [ebp - 0x230]
test eax, eax
jne 0x414360
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 0x414360
mov eax, dword [ebp - 0x220]
cmp eax, 1
je 0x414309
cmp eax, 2
jne 0x414360
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x414326
test al, 1
jne 0x414360
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x41432f
jmp 0x414360
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 0x414340
sub ecx, edx
sar ecx, 1
je 0x414360
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00410f80
test edi, edi
je 0x41436b
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.00567f8c
mov esp, ebp
pop ebp
ret
Function at 0x414470
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x61df64]
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.0056c4b0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0056c4b0
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 0x4144f4
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00410f80
test esi, esi
je 0x414569
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.0057b87f
lea eax, [ebp - 0x20c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414547
mov ecx, dword [ebp - 0x418]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00410f80
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.00567f8c
mov esp, ebp
pop ebp
ret

Function at 0x415e10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x415e25
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 0x415e30
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 0x416310
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x61df64]
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.0056c4b0
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 0x4163d3
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 0x4163d3
cmp word [ebp - 0x20c], si
jne 0x4163a2
xor ecx, ecx
jmp 0x4163bf
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4163b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.004107f0
mov esi, 1
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x4163e4
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.00567f8c
mov esp, ebp
pop ebp
ret 4

Function at 0x416400
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x310
mov eax, dword [0x61df64]
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.0056c4b0
push 0x2ba
lea eax, [esp + 0x60]
push 0
push eax
call fcn.0056c4b0
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 0x41646c
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 0x4164ad
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 0x4164e0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4164a0
jmp 0x4164fb
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 0x4164e4
xor ecx, ecx
jmp 0x4164ff
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4164f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.004107f0
mov ecx, dword [esp + 0x314]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.00567f8c
mov esp, ebp
pop ebp
ret 4
Function at 0x4169e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x61df64]
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.0056c4b0
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0056c4b0
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 0x416b15
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 0x416a8b
xor ecx, ecx
jmp 0x416aa3
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416a94
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.004107f0
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 0x416ae9
xor ecx, ecx
jmp 0x416b01
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416af2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x414]
mov ecx, ebx
push eax
call fcn.004107f0
mov esi, 1
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x416b26
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.00567f8c
mov esp, ebp
pop ebp
ret 0xc