joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b70
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ec08
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x43b050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
call fcn.00408c60
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov esi, esp
call fcn.00403b90
add eax, 0x10
mov dword [esi], eax
call fcn.00404a60
lea eax, [ebp - 0x18]
add esp, 4
push eax
call fcn.00408fb0
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov esi, dword [ebp - 0x10]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x404c28
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x404c1b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x404c1b
call fcn.00403b90
mov dword [ebp - 0x14], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x404c10
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
mov dword [ebp - 0x10], ecx
jmp 0x404c28
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00403ae0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404c4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov esi, esp
call fcn.00403b90
add eax, 0x10
mov dword [esi], eax
call fcn.00404a60
add esp, 4
call fcn.00408db0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x18]
push ecx
mov ecx, str.SpesmarlHjcrpkpesNjzupwkTbqrlzsPlrkjpzExnfpqeq
mov byte [ebp - 4], 2
call fcn.0040a050
mov eax, dword [eax]
add esp, 4
lea edx, [ebp - 0x24]
push edx
call fcn.004054c0
test eax, eax
mov eax, dword [ebp - 0x18]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404cc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x24]
test bl, bl
je 0x404d08
lea ecx, [ebp - 0x18]
push ecx
mov ecx, str.SalffSthslKx
call fcn.0040a050
mov eax, dword [eax]
add esp, 4
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404d08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x404d13
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405080
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42f0b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x43b050]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
call fcn.00404b70
lea eax, [esp + 0x10]
push eax
call fcn.00406a50
add esp, 4
mov dword [esp + 0x28], 0
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x4050ee
call fcn.004062f0
test eax, eax
je 0x4050ee
mov edx, dword [esp + 0x10]
push 3
push 0
push 0x65
xor ecx, ecx
call fcn.00405f70
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call fcn.00406ef0
add esp, 4
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x405132
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405132
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405132
push 4
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x18]
call fcn.004068b0
mov byte [esp + 0x28], 2
mov ecx, dword [eax]
mov esi, dword [esp + 0x10]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x405193
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x405185
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x405185
call fcn.00403b90
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40517c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x10], ebx
jmp 0x405193
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [esp + 0x14]
push ecx
call fcn.00403ae0
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4051b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
cmp dword [esi - 0xc], 0
je 0x4051df
call fcn.004062f0
test eax, eax
je 0x4051df
mov edx, dword [esp + 0x10]
push 3
push 0
push 0x65
xor ecx, ecx
call fcn.00405f70
add esp, 0xc
call fcn.00404dc0
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405209
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405231
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405800
Capabilities:
Terminate thread

Disassembly:
push ebx
push edi
xor edi, edi
cmp dword [esi + 0x218], edi
je 0x405824
push 1
push edi
push 0x65
lea edx, [esi + 4]
xor ecx, ecx
mov dword [esi + 0x218], edi
call fcn.00405f70
add esp, 0xc
mov eax, dword [esi + 0x210]
cmp eax, edi
je 0x405842
cmp dword [esi + 0x214], edi
jbe 0x405842
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x20c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x405860
push eax
call ebx
mov dword [esi + 0x20c], 0xffffffff
mov eax, dword [esi + 0x210]
cmp eax, edi
je 0x405880
cmp dword [esi + 0x214], edi
jbe 0x405880
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x218], edi
mov eax, dword [esi + 0x210]
cmp eax, edi
je 0x405893
push eax
call ebx
mov dword [esi + 0x210], edi
mov dword [esi + 0x214], edi
pop edi
pop ebx
ret
Function at 0x4058a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e22b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x43b050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x22c], esi
mov dword [ebp - 4], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov ebx, 0x104
sub eax, ebx
or eax, ecx
jge 0x405923
mov eax, ebx
lea ecx, [ebp - 0x22c]
call fcn.00403e20
mov esi, dword [ebp - 0x22c]
cmp dword [esi - 8], ebx
jge 0x405932
push 0x80070057
call fcn.00401540
xor ecx, ecx
push esi
push ecx
push ecx
push 0x1a
mov dword [esi - 0xc], ebx
push ecx
mov word [esi + 0x208], cx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0041b8e7
add esp, 8
test eax, eax
js 0x405928
cmp eax, dword [esi - 8]
jg 0x405928
push 0x1b
xor edx, edx
mov dword [esi - 0xc], eax
push str.TencentLogslasterror.log
lea ebx, [ebp - 0x22c]
mov word [esi + eax*2], dx
call fcn.00403d60
mov ebx, dword [ebp - 0x22c]
push 0x435834
push ebx
call fcn.0041be71
mov esi, eax
add esp, 8
test esi, esi
je 0x405a04
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
movzx ecx, word [ebp - 0x21c]
movzx edx, word [ebp - 0x21e]
push edi
push eax
movzx eax, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x220]
push ecx
movzx ecx, word [ebp - 0x222]
push edx
movzx edx, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x228]
push ecx
push edx
push eax
push 0x435838
push esi
call fcn.0041bce7
push esi
call fcn.0041bf1f
add esp, 0x30
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.0041b25d
mov esp, ebp
pop ebp
ret

Function at 0x405ed0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x218], 0
je 0x405ee6
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, dword [ebp + 8]
push eax
push 0x4357f4
lea ecx, [esi + 4]
push 0x104
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov edx, dword [ebp + 0xc]
add esp, 0x10
cmp dword [esi + 0x218], 0
mov dword [esi + 0x220], edx
je 0x405f1d
mov eax, 1
pop esi
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x224], eax
lea eax, [esi + 0x214]
push eax
push 0
push esi
push 0x405af0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0x210], eax
pop esi
mov eax, ecx
pop ebp
ret 8
Function at 0x406760
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e1f8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x43b050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x14]
push eax
mov ecx, str.SpesmarlHjcrpkpesNjzupwk_Tfjezs
mov dword [ebp - 4], ebx
call fcn.0040a050
mov eax, dword [eax]
add esp, 4
lea ecx, [ebp - 0x20]
push ecx
call fcn.004054c0
test eax, eax
mov eax, dword [ebp - 0x14]
sete byte [ebp - 0xd]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4067d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], bl
je 0x406885
cmp esi, ebx
je 0x406824
cmp word [esi], bx
je 0x406824
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x4359d4
call fcn.0040a050
mov edi, dword [eax]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push ebx
push edi
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
cmp eax, ebx
sete cl
mov esi, ecx
jmp 0x406847
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x4359d4
call fcn.0040a050
mov eax, dword [eax]
mov edi, dword [ebp - 0x20]
add esp, 4
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
neg eax
sbb esi, esi
inc esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406866
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
je 0x406871
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
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x406893
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 0x4071f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ede8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x43b050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406a50
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x407265
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407254
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
push ecx
call fcn.00406ef0
mov eax, dword [ebp - 0x14]
add esp, 4
cmp dword [eax - 0xc], 0
jne 0x4072a2
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407296
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x407238
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edx, 0xffffffff
test eax, eax
mov eax, dword [ebp - 0x14]
jne 0x4072c2
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40728a
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4072db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407301
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4073f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43b050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x20]
push eax
mov eax, str.SoftwareTencentTodayDo
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.004054c0
test eax, eax
jne 0x407489
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x14]
movzx eax, word [ebp - 0x12]
imul edx, edx, 0x64
movzx ecx, word [ebp - 0xe]
mov edi, dword [ebp - 0x20]
add edx, eax
imul edx, edx, 0x64
add edx, ecx
push 4
mov dword [ebp - 0x24], edx
lea edx, [ebp - 0x24]
push edx
push 4
push 0
push str.Udte
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
test edi, edi
je 0x407476
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 1]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b25d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x407497
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041b25d
mov esp, ebp
pop ebp
ret
Function at 0x407520
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43b050]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
jne 0x407547
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b25d
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 5
push 0
push 0
push esi
push str.open
push 0
call edi
cmp eax, 0x20
jg 0x4075da
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0041d2e0
add esp, 0xc
push 0
push 0x26
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Internet_Exploreriexplore.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041c1c2
add esp, 0xc
push 5
push 0
push esi
lea ecx, [ebp - 0x20c]
push ecx
push str.open
push 0
call edi
cmp eax, 0x20
jle 0x4075ee
push 0x3e9
call fcn.00407610
add esp, 4
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b25d
mov esp, ebp
pop ebp
ret
push 0x3ea
call fcn.00407610
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
call fcn.0041b25d
mov esp, ebp
pop ebp
ret
Function at 0x407610
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e1d0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x43b050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push eax
push 0x435a28
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004040d0
add esp, 8
lea ecx, [ebp - 0x24]
push ecx
mov eax, str.SoftwareTencentReport
mov dword [ebp - 0x10], ebx
call fcn.004054c0
test eax, eax
jne 0x40771d
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
push ebx
push edi
push esi
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x10]
push 4
lea edx, [ebp - 0x18]
push edx
push 4
push ebx
inc eax
push edi
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, ebx
je 0x4076d9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x24], esi
lea eax, [edi - 0x10]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4076fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x407706
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40773f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x40774d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
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 0x408ae0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e6a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x43b050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
je 0x408c3f
cmp word [esi], bx
je 0x408c3f
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x14]
push eax
mov ecx, str.SpesmarlHjcrpkpesNjzupwkTbqrlzsPlrkjpzExnfpqeq
mov dword [ebp - 4], ebx
call fcn.0040a050
mov eax, dword [eax]
add esp, 4
lea ecx, [ebp - 0x24]
push ecx
call fcn.004054c0
test eax, eax
mov eax, dword [ebp - 0x14]
sete byte [ebp - 0xd]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408b6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], bl
je 0x408c31
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.004093c0
mov esi, eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, str.SalffSthslKx
mov byte [ebp - 4], 1
call fcn.0040a050
mov edi, dword [eax]
mov esi, dword [esi]
xor eax, eax
add esp, 4
cmp esi, ebx
setne al
cmp eax, ebx
jne 0x408bad
mov esi, dword [ebp - 0x24]
mov eax, 0xd
jmp 0x408bc8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push esi
mov esi, dword [ebp - 0x24]
push 1
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
cmp eax, ebx
mov eax, dword [ebp - 0x14]
sete cl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov edi, ecx
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408bf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x408c1d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x408c3f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret