joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d542
mov eax, dword fs:[0]
push eax
sub esp, 0x220
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, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov edi, dword [ebp + 0xc]
push 0x20a
push 0
push eax
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x224], 0
call fcn.0055dd90
mov dword [esi + 0x10], 0
add esp, 0xc
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40331f
mov eax, dword [esi]
jmp 0x403321
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x220]
mov dword [ebp - 4], ecx
push eax
push 0x20019
push ecx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x220], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4033ca
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push str.InstallPath
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4033be
cmp word [ebp - 0x21c], ax
jne 0x403394
xor ecx, ecx
jmp 0x4033af
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4033a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.00404cf0
push dword [ebp - 0x220]
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.0055ab1b
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4038d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5e8f64]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
xor esi, esi
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
call fcn.00401c80
cmp dword [eax + 0x14], 8
jb 0x4038fe
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 0x20]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov eax, dword [ebp - 8]
sete bl
cmp eax, 8
jb 0x40392d
inc eax
push eax
push dword [ebp - 0x1c]
call fcn.00405c00
test bl, bl
pop ebx
je 0x403975
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 4
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], esi
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push str.SupplyId
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40396c
cmp dword [ebp - 0x24], 4
jne 0x40396c
mov eax, dword [ebp - 0x28]
mov esi, 1
mov dword [edi], eax
push dword [ebp - 0x20]
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 0x403990
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d57b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov edi, dword [ebp + 0x14]
push 0x208
push 0
push eax
mov dword [ebp - 0x24c], 0
call fcn.0055dd90
add esp, 8
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.00403fc0
cmp dword [ebx + 0x208], 8
lea ecx, [ebx + 0x1f4]
jb 0x403a05
mov ecx, dword [ecx]
cmp dword [edi + 0x14], 8
jb 0x403a0d
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x403a15
mov eax, dword [eax]
push ecx
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push edi
push str.KeyName
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x403a47
inc eax
push eax
push dword [ebp - 0x230]
call fcn.00405c00
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x248]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
push eax
call fcn.00404610
push str.Title
push str.KeyName
mov dword [ebp - 4], 0
call fcn.005633ec
add esp, 8
test eax, eax
jne 0x403ac2
mov eax, dword [ebx + 0x10]
cmp eax, 0x121
je 0x403ab2
cmp eax, 0x124
je 0x403ab2
cmp eax, 0x186c6
jne 0x403ac2
push 0x5bcc54
jmp 0x403ab7
push 0x5bcc48
lea ecx, [ebp - 0x248]
call fcn.00404570
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x248]
push eax
call fcn.00405930
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x403afb
inc ecx
push ecx
push dword [ebp - 0x248]
call fcn.00405c00
mov eax, esi
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.0055ab1b
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403b20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x5e8f64]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push ecx
lea eax, [esp + 8]
mov esi, ecx
push eax
call fcn.00403fc0
add esi, 0x1f4
cmp dword [esi + 0x14], 8
jb 0x403b50
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x403b58
mov eax, dword [eax]
push esi
push 0
push str.VMIndexBase
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esp + 0x18]
mov esi, eax
cmp ecx, 8
jb 0x403b7d
inc ecx
push ecx
push dword [esp + 8]
call fcn.00405c00
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0055ab1b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403fc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d61b
mov eax, dword fs:[0]
push eax
sub esp, 0x458
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 edi, dword [ebp + 8]
lea ecx, [ebp - 0x448]
push 7
xor eax, eax
mov dword [ebp - 0x464], 0
push str.Product
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], 0
mov word [ebp - 0x448], ax
call fcn.00404cf0
push str.Engine
push str.Product
mov dword [ebp - 4], 0
call fcn.005633ec
add esp, 8
test eax, eax
je 0x40408b
cmp dword [esi + 0x210], 0
jne 0x40408b
cmp dword [esi + 0x214], 0
jne 0x40408b
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
lea eax, [ebp - 0x448]
push eax
call fcn.00405930
lea ecx, [ebp - 0x448]
call fcn.00405cd0
jmp 0x4041db
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0055dd90
add esp, 0xc
cmp dword [esi + 0x210], 0
je 0x4040cd
push dword [esi + 0x10]
lea eax, [ebp - 0x220]
push str.Product
push str._s__d
push 0x104
push eax
call fcn.00405560
add esp, 0x14
jmp 0x404123
cmp dword [esi + 0x214], 0
je 0x404123
lea eax, [ebp - 0x460]
mov ecx, esi
push eax
call fcn.00401e40
cmp dword [eax + 0x14], 8
jb 0x4040ec
mov eax, dword [eax]
push eax
push str.Product
push str._s__s
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.00405560
mov eax, dword [ebp - 0x44c]
add esp, 0x14
cmp eax, 8
jb 0x404123
inc eax
push eax
push dword [ebp - 0x460]
call fcn.00405c00
push 0x20a
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.0055dd90
add esi, 0x1f4
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x404147
mov esi, dword [esi]
push esi
push 0x104
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x4041a2
cmp word [ebp - 0x220], 0
jne 0x404173
xor ecx, ecx
jmp 0x40418f
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404180
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x448]
call fcn.00404cf0
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
lea eax, [ebp - 0x448]
push eax
call fcn.00405930
mov eax, dword [ebp - 0x434]
cmp eax, 8
jb 0x4041db
inc eax
push eax
push dword [ebp - 0x448]
call fcn.00405c00
mov eax, edi
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.0055ab1b
mov esp, ebp
pop ebp
ret 8
Function at 0x404200
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d660
mov eax, dword fs:[0]
push eax
sub esp, 0x38
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 edi, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
cmp dword [edi + 0x21c], 0
je 0x404264
mov eax, dword [edi + 0x218]
jmp 0x40432b
lea eax, [ebp - 0x28]
push eax
call fcn.00404450
mov ecx, eax
call fcn.00401c80
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x404280
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404380
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40429f
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00405c00
push 0x20019
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00405460
mov esi, dword [ebp - 0x44]
test eax, eax
jne 0x4042dc
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push str.VNGVersion
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x2c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4042f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40430a
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
xor ebx, ebx
mov dword [edi + 0x21c], 1
cmp dword [ebp - 0x30], ebx
setne bl
mov dword [edi + 0x218], ebx
test esi, esi
je 0x404329
push esi
call eax
mov eax, ebx
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.0055ab1b
mov esp, ebp
pop ebp
ret

Function at 0x404c50
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 0x404c65
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404ca6
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 0x404ca2
nop word [eax + eax]
cmp esi, edx
jae 0x404ca6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404c90
cmp esi, edx
jb 0x404cab
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 0x405e70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d7b7
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.0055dd90
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.0055ab1b
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 0x57d7f8
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.005633ec
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.0055ab1b
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 0x57d828
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, 0x5bcf30
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 0x57d868
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.0042afcb
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.0042afcb
add esp, 4
jmp 0x4064a0
push esi
call fcn.0042afcb
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.0042afcb
add esp, 4
xor edi, edi
push edi
call fcn.0042afcb
add esp, 4
jmp 0x4064a0
mov ebx, 0x80070057
push esi
call fcn.0042afcb
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.0055dd90
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0055dd90
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.00564c8d
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.0055ab1b
mov esp, ebp
pop ebp
ret
Function at 0x406dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d9dd
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.0055dd90
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.0055ab1b
mov esp, ebp
pop ebp
ret