joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57da79
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 0x5bcf30
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.0055dd90
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.0055ab1b
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.0055dd90
push 0x2ba
lea eax, [esp + 0x60]
push 0
push eax
call fcn.0055dd90
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.0055ab1b
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.0055dd90
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0055dd90
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.0055ab1b
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.0055dd90
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0055dd90
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.0055ab1b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409720
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.0055dd90
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0055dd90
add esp, 0x18
mov dword [ebp - 0x41c], 0x208
lea eax, [ebp - 0x418]
push eax
push 0x20019
push esi
push str.SOFTWARETencentMobileGamePCVDI_100
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409855
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 0x4097cb
xor ecx, ecx
jmp 0x4097e3
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4097d4
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 0x409829
xor ecx, ecx
jmp 0x409841
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409832
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 0x409866
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.0055ab1b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409880
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.0055dd90
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0055dd90
add esp, 0x18
mov dword [ebp - 0x41c], 0x208
lea eax, [ebp - 0x418]
push eax
push 0x20019
push esi
push str.SOFTWARETencentMobileGamePCVDI_0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4099b5
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 0x40992b
xor ecx, ecx
jmp 0x409943
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409934
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 0x409989
xor ecx, ecx
jmp 0x4099a1
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409992
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 0x4099c6
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.0055ab1b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4099e0
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.0055dd90
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0055dd90
add esp, 0x18
mov dword [ebp - 0x41c], 0x208
lea eax, [ebp - 0x418]
push eax
push 0x20019
push esi
push str.SOFTWARETencentMobileGamePCAOW_Rootfs_0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409b15
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 0x409a8b
xor ecx, ecx
jmp 0x409aa3
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409a94
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 0x409ae9
xor ecx, ecx
jmp 0x409b01
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409af2
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 0x409b26
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.0055ab1b
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409b40
Capabilities:
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.0055dd90
add esp, 0xc
mov dword [ebp - 0x214], 0x208
lea eax, [ebp - 0x210]
push eax
push 0x20019
push esi
push str.SoftwareTencentMobileGamePC
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409c03
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x5bc96c
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409c03
cmp word [ebp - 0x20c], si
jne 0x409bd2
xor ecx, ecx
jmp 0x409bef
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409be0
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 0x409c14
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.0055ab1b
mov esp, ebp
pop ebp
ret 4
Function at 0x410870
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push dword [edi]
push 1
push dword [edi + 8]
push esi
call fcn.0056ce84
mov ecx, dword [edi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
cdq
sete bl
idiv dword [edi + 0x18]
mov byte [ebp - 1], bl
mov dword [edi + 0x1c], eax
test bl, bl
je 0x4109d1
add dword [edi + 0x14], ecx
mov edx, 0x18
push 0xffffffffffffffff
push eax
mov eax, dword [edi + 0x24]
push ecx
mov ecx, esp
push ecx
mov dword [ecx], eax
mov eax, esp
lea ecx, [edi + 0x20]
mov dword [eax], str.read
call fcn.0040eba0
mov ecx, dword [edi + 0x1c]
add esp, 0x10
mov edx, dword [edi + 0x18]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], edx
test ecx, ecx
je 0x410976
dec ecx
mov dword [ebp - 0xc], ecx
xor ecx, ecx
cmp dword [ebp - 8], 1
jne 0x4108f7
cmp byte [esi], cl
jmp 0x4108fa
cmp word [esi], cx
sete cl
test ecx, ecx
je 0x410924
test eax, eax
je 0x41091d
cmp esi, eax
je 0x41091d
mov ecx, esi
imul edx, ebx
sub ecx, eax
push ecx
push eax
sub eax, edx
push eax
call fcn.0055cf60
add esp, 0xc
mov edx, dword [edi + 0x18]
inc ebx
lea eax, [edx + esi]
mov ecx, dword [ebp - 0xc]
add esi, edx
test ecx, ecx
jne 0x4108e7
test eax, eax
je 0x41094a
cmp esi, eax
je 0x41094a
mov ecx, dword [edi + 0x18]
sub esi, eax
imul ecx, ebx
push esi
push eax
sub eax, ecx
push eax
call fcn.0055cf60
add esp, 0xc
test ebx, ebx
je 0x410976
push 0xffffffffffffffff
push ebx
push ecx
mov eax, esp
mov edx, 1
push ecx
lea ecx, [edi + 0x20]
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.nulls_removed
call fcn.0040eba0
add esp, 0x10
sub dword [edi + 0x1c], ebx
cmp dword [edi + 0x18], 1
jle 0x4109c5
test byte [edi + 4], 0x80
je 0x4109c5
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x4109a2
mov edx, dword [ebp + 8]
nop dword [eax]
movzx eax, word [edx + ecx*2 - 2]
dec ecx
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x410990
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov esi, esp
xor edx, edx
push ecx
lea ecx, [edi + 0x20]
mov dword [esi], 0
mov esi, esp
mov dword [esi], str.endian_swap
call fcn.0040eba0
add esp, 0x10
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.00410680
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x410e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp + 8], 0
mov esi, edx
mov eax, dword [edi + 0x18]
mov ebx, dword [edi + 0x1c]
imul eax, ebx
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
test eax, eax
cmovne esi, eax
test byte [edi + 4], 0x80
je 0x410ed5
test edx, edx
jne 0x410e93
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042afd0
mov ecx, dword [edi + 0x1c]
mov ebx, eax
add ecx, ecx
mov dword [ebp + 8], ebx
push ecx
push esi
push ebx
call fcn.0055d810
add esp, 0x10
mov edx, ebx
mov esi, ebx
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x410eb2
nop word [eax + eax]
movzx eax, word [edx + ecx*2 - 2]
dec ecx
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x410ea0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
xor edx, edx
push ecx
lea ecx, [edi + 0x20]
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.endian_swap
call fcn.0040eba0
add esp, 0x10
push dword [edi]
push 1
push dword [edi + 8]
push esi
call fcn.0056d16c
add esp, 0x10
cmp eax, 1
mov eax, dword [ebp + 8]
sete bl
test eax, eax
je 0x410efb
push eax
call fcn.0042afcb
add esp, 4
test bl, bl
je 0x410f34
mov eax, dword [edi + 8]
mov edx, 0x18
add dword [edi + 0x14], eax
push 0xffffffffffffffff
push dword [edi + 0x1c]
push ecx
mov ecx, dword [edi + 0x24]
mov esi, esp
push ecx
mov dword [esi], ecx
mov ecx, esp
mov dword [ecx], str.write
lea ecx, [edi + 0x20]
call fcn.0040eba0
add esp, 0x10
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, edi
call fcn.00410680
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 8