joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456580
Capabilities:
Suspend thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [0x4ea0f4]
test eax, eax
jne 0x4565f7
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp edi, eax
jne 0x45659a
xor eax, eax
pop edi
ret
push esi
push 8
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4565b1
lea edi, [eax + 8]
jmp 0x4565cf
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4565e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
pop esi
mov dword [0x4ea0f4], edi
mov eax, edi
mov dword [0x4ea0f8], 0
pop edi
ret
mov eax, dword [0x4ea0fc]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x4ea0fc], esi
xor eax, eax
pop esi
pop edi
ret
Function at 0x456830
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4ea0f0], eax
je 0x45684d
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4ea0f4]
test eax, eax
jne 0x456948
cmp dword [0x4ee5bc], eax
jne 0x45687a
mov eax, 6
mov dword [0x4ea0f4], eax
mov dword [0x4ea0f8], 0x4ee5bc
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push 0x18
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x456896
lea esi, [eax + 8]
jmp 0x456925
mov esi, dword [0x4ee5bc]
mov edi, 0x4411e0
mov dword [ebp - 8], esi
call fcn.00456080
movzx ecx, byte [esi + 0x17]
mov esi, dword [esi + 0x18]
sub esi, ecx
test ecx, ecx
je 0x456917
cmp ecx, 0x17
ja 0x456917
mov edi, dword [ebp - 8]
cmp dword [edi + 0x1c], eax
jne 0x456917
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4568e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x456925
mov edx, dword [0x4ea100]
mov dword [ebx + 0x10], edi
mov dword [ebx + 0xc], esi
mov dword [ebx + 4], 1
mov dword [ebx + 8], 0x4ee5bc
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [ebx + 0x14], ecx
mov dword [ebx], edx
mov dword [0x4ea100], ebx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x4ea0ec], 0
mov esi, 9
jne 0x45692b
mov dword [0x4ea0f4], esi
test ebx, ebx
je 0x456939
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
pop edi
mov eax, esi
pop esi
mov dword [0x4ea0f8], 0x4ee5bc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x456df0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
push ecx
or esi, 0xffffffff
mov dword [ebp - 0x808], 0
mov dword [ebp - 0x810], 1
mov word [ebp - 0x804], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x808]
push edx
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x456ec8
lea eax, [ebp - 0x80c]
push eax
mov eax, dword [ebp - 0x808]
lea ecx, [ebp - 0x804]
push ecx
lea edx, [ebp - 0x810]
push edx
push 0
push str.Version
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x456ebb
lea ecx, [ebp - 0x804]
push 0x4acbd8
push ecx
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 8
test eax, eax
je 0x456ea9
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.MSVCR100.dll__wtoi]
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0x808]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00497792
mov esp, ebp
pop ebp
ret
Function at 0x4585a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4585af
xor eax, eax
pop esi
ret 0xc
mov eax, dword [section..data]
test eax, eax
je 0x4585bd
call fcn.00458450
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x4586b1
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x4ceb70]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4ceb70]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x4ceb70]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4ceb70]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x4ceb70]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4ceb70]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x4ceb70]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4ceb70]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x4585d7
pop edi
pop ebx
test edx, edx
je 0x4586d1
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4ceb70]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x4586b5
not eax
pop esi
ret 0xc
Function at 0x45b490
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], 4
cmp edi, esi
je 0x45b50e
push ebx
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [ebp + 0xc]
mov ecx, eax
dec eax
mov dword [ebp + 0xc], eax
test ecx, ecx
jle 0x45b50d
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x45b4b2
push 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
push 0x20000013
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
call ebx
mov esi, eax
test esi, esi
je 0x45b4b2
cmp dword [ebp - 4], 0xc8
je 0x45b50d
xor esi, esi
jmp 0x45b4b2
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45b5d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x45b5e5
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], str.runas
jne 0x45b610
mov dword [ebp - 0x30], str.open
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x38], 0x540
mov dword [ebp - 0x2c], esi
test eax, eax
je 0x45b62b
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45b690
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1268
call fcn.00497d20
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b6b0
sub eax, edx
sar eax, 1
jne 0x45b6d2
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
push ebx
push edi
push esi
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1268], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
movzx ecx, word [ebp - 0x1014]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push ecx
lea edx, [ebp - 0xc]
push str._c:_
push edx
call edi
add esp, 0xc
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
test eax, eax
je 0x45b731
push 0x4adfcc
lea edx, [ebp - 0x1014]
push edx
call ebx
push 0x4ae910
lea eax, [ebp - 0x1014]
push eax
call ebx
lea ecx, [ebp - 0x1264]
push ecx
lea edx, [ebp - 0x1014]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45b770
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x1238], 0x2e
jne 0x45b79e
mov ax, word [ebp - 0x1236]
test ax, ax
je 0x45b86f
cmp ax, 0x2e
jne 0x45b79e
cmp word [ebp - 0x1234], 0
je 0x45b86f
test byte [ebp - 0x1264], 0x10
je 0x45b808
movzx eax, word [esi]
push eax
lea ecx, [ebp - 0xc]
push str._c:_
push ecx
call edi
add esp, 0xc
push esi
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x45b7de
lea eax, [ebp - 0x1238]
push eax
push esi
push 0x4ae918
lea ecx, [ebp - 0x814]
push ecx
jmp 0x45b7f2
lea edx, [ebp - 0x1238]
push edx
push esi
push str._s_s
lea eax, [ebp - 0x814]
push eax
call edi
lea ecx, [ebp - 0x814]
add esp, 0x10
push ecx
call fcn.0045b690
add esp, 4
jmp 0x45b86f
movzx edx, word [esi]
push edx
lea eax, [ebp - 0x14]
push str._c:_
push eax
call edi
add esp, 0xc
push esi
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x45b83f
lea edx, [ebp - 0x1238]
push edx
push esi
push 0x4ae918
lea eax, [ebp - 0x814]
push eax
jmp 0x45b853
lea ecx, [ebp - 0x1238]
push ecx
push esi
push str._s_s
lea edx, [ebp - 0x814]
push edx
call edi
add esp, 0x10
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45b86f
mov dword [ebp - 0x1268], eax
lea ecx, [ebp - 0x1264]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45b770
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x45b894
xor esi, esi
jmp 0x45b89a
mov esi, dword [ebp - 0x1268]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00497792
mov esp, ebp
pop ebp
ret
Function at 0x460a00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49dec8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor eax, eax
test esi, esi
je 0x460ab4
push 0x21
push str.SoftwareHuofengHuofengGameWorld
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
call fcn.004027c0
push 6
push str.login
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004026a0
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460a70
mov ecx, dword [ebp - 0x2c]
sub eax, edx
sar eax, 1
add eax, eax
cmp dword [ebp - 0x18], 8
jae 0x460a8d
lea ecx, [ebp - 0x2c]
push eax
push esi
push 1
push ebx
push ecx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp dword [ebp - 0x18], 8
mov esi, eax
jb 0x460ab2
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret

Function at 0x460ad0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49dec8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
test esi, esi
jne 0x460b0d
xor eax, eax
jmp 0x460b97
xor ecx, ecx
push 0x21
mov word [ebp - 0x2c], cx
push str.SoftwareHuofengHuofengGameWorld
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.004027c0
push 8
push str._setting
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004026a0
mov eax, esi
lea edx, [eax + 2]
jmp 0x460b50
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460b50
mov ecx, dword [ebp - 0x2c]
sub eax, edx
sar eax, 1
add eax, eax
cmp dword [ebp - 0x18], 8
jae 0x460b6d
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
push eax
push esi
push 1
push edx
push ecx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp dword [ebp - 0x18], 8
mov esi, eax
jb 0x460b95
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
Function at 0x460bc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498e58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
test edi, edi
jne 0x460c01
xor eax, eax
jmp 0x460ca7
xor ecx, ecx
push 0x21
mov word [ebp - 0x2c], cx
push str.SoftwareHuofengHuofengGameWorld
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.004027c0
push 7
push str._setup_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004026a0
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460c40
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.004026a0
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460c60
mov ecx, dword [ebp - 0x2c]
sub eax, edx
sar eax, 1
add eax, eax
cmp dword [ebp - 0x18], 8
jae 0x460c7d
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
push eax
push edi
push 1
push edx
push ecx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp dword [ebp - 0x18], 8
mov esi, eax
jb 0x460ca5
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
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.00497792
mov esp, ebp
pop ebp
ret

Function at 0x460cd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49dec8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
test esi, esi
je 0x460d92
push 0x21
push str.SoftwareHuofengHuofengGameWorld
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
call fcn.004027c0
push 7
push str._setup_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004026a0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460d42
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.004026a0
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x460d67
lea eax, [ebp - 0x2c]
push 4
lea ecx, [ebp + 0x10]
push ecx
push 4
push ebx
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp dword [ebp - 0x18], 8
mov esi, eax
jb 0x460d90
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
Function at 0x460db0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498e88
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x21
xor eax, eax
push str.SoftwareHuofengHuofengGameWorld
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.004027c0
push 9
push str._setting_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004026a0
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x460e21
lea eax, [ebp - 0x2c]
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push esi
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp dword [ebp - 0x18], 8
mov esi, eax
jb 0x460e4a
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
Function at 0x460e70
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 0x7e
lea ecx, [ebp - 0x102]
mov dword [ebp - 0x11c], edi
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x11c], 1
mov word [ebp - 0x104], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x11c]
push ecx
push str.HWID
push str.SoftwareHuofengHuofengGameWorld
push SysReAllocString
mov dword [ebp - 0x120], 0x80
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor edx, edx
test eax, eax
je 0x461009
push 0x7e
lea eax, [ebp - 0x82]
push edi
push eax
mov word [ebp - 0x84], dx
call sub.MSVCR100.dll_memset
xor eax, eax
lea ecx, [ebp - 0x114]
push ecx
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x118], edi
call fcn.00449300
add esp, 0x10
test al, al
je 0x460fd3
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x110]
push edx
mov edx, dword [ebp - 0x114]
push eax
push ecx
push edx
lea eax, [ebp - 0x84]
push str._08X_08X_08X_08X
push eax
lea edx, [edi + 0x40]
call fcn.0045af90
add esp, 0x18
lea ecx, [ebp - 0x118]
push ecx
push str.SoftwareHuofengHuofengGameWorld
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x460fc6
lea eax, [ebp - 0x84]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x460f97
mov ecx, dword [ebp - 0x118]
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x84]
push eax
push 1
push edi
push str.HWID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
lea eax, [ebp - 0x84]
lea edx, [eax + 2]
jmp 0x460ff0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x460ff0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x84]
push ecx
jmp 0x461037
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
lea eax, [ebp - 0x104]
mov word [esi], dx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x461020
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.004027c0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00497792
mov esp, ebp
pop ebp
ret
Function at 0x461050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
mov dword [ebp - 0x808], 0
push ecx
mov dword [ebp - 0x808], 1
mov word [ebp - 0x804], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x80c]
push edx
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebp - 0x808]
push ecx
push 0x4ab248
push str.SoftwareHuofengHuofengGameWorld
push SysReAllocString
mov dword [ebp - 0x80c], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4610ec
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
push 0x4ab7d8
jmp 0x461142
lea edx, [ebp - 0x804]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x461105
xor eax, eax
jmp 0x461121
lea edi, [eax + eax]
mov eax, edi
call fcn.00497dd0
mov eax, esp
push 3
push edi
lea ecx, [ebp - 0x804]
push ecx
push eax
call fcn.00403590
mov ecx, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x461137
sub ecx, edi
push ecx
push eax
mov ecx, esi
call fcn.00403870
mov eax, esi
lea esp, [ebp - 0x814]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret

Function at 0x461170
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49dec8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
test edi, edi
je 0x461248
push 0x21
push str.SoftwareHuofengHuofengGameWorld
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
call fcn.004027c0
push 9
push str.desktop_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004026a0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4611e2
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.004026a0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x461200
mov ecx, dword [ebp - 0x2c]
sub eax, edx
sar eax, 1
add eax, eax
cmp dword [ebp - 0x18], 8
jae 0x46121d
lea ecx, [ebp - 0x2c]
push eax
push edi
push 1
push 0x4ab248
push ecx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp dword [ebp - 0x18], 8
mov esi, eax
jb 0x461246
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
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.00497792
mov esp, ebp
pop ebp
ret
Function at 0x4614c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
mov dword [ebp - 0x808], 0
push ecx
mov dword [ebp - 0x808], 0
mov word [ebp - 0x804], ax
call sub.MSVCR100.dll_memset
mov edi, dword [ebp + 0xc]
add esp, 0xc
lea edx, [ebp - 0x808]
push edx
push 0
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [ebp - 0x804]
push eax
jne 0x461548
mov ecx, dword [ebp - 0x808]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [ebp - 0x808]
push edx
call dword [sym.imp.SHELL32.dll_ILFree]
jmp 0x461555
push 0
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
lea eax, [ebp - 0x804]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x461571
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x804]
push edx
mov ecx, esi
call fcn.004027c0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00497792
mov esp, ebp
pop ebp
ret