joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492130
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d270
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x54b144]
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 eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x20]
push esi
mov dword [ebp - 0xb0], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x492198
push 1
push esi
call fcn.00487730
add esp, 8
lea ecx, [ebp - 0xa4]
call fcn.00489250
mov eax, dword [ebp + 0x1c]
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4921b5
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xa4]
call fcn.0044a750
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4921d6
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x8c]
call fcn.0044a750
mov esi, dword [ebp - 0xa8]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492200
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x74]
call fcn.0044a750
mov esi, dword [ebp - 0xac]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492224
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.0044a750
mov esi, dword [ebp - 0xb0]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492250
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0044a750
cmp ebx, 0x5323dc
jne 0x492289
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492276
sub ecx, edx
sar ecx, 1
push ecx
push edi
jmp 0x4922a1
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492290
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x5c]
call fcn.0044a750
lea eax, [ebp - 0xa4]
push eax
call fcn.00491df0
lea ecx, [ebp - 0xa4]
mov esi, eax
call fcn.00489a70
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.004dafe6
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4928e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx]
push esi
xor esi, esi
test edx, edx
je 0x492926
mov eax, dword [ebp + 0xc]
push ebx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4928f3
sub eax, ebx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
pop ebx
cmove esi, ecx
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x495c60
Capabilities:
Create service
Modify service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d69d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], ecx
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x495e40
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
push 0xf003f
push 0
mov dword [ebp - 4], 0
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x495dfe
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov esi, dword [esi]
cmp esi, dword [eax]
je 0x495df5
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
push eax
lea edi, [esi + 0x14]
push edi
lea eax, [esi + 0x10]
push eax
push dword [esi + 0xc]
call fcn.00495670
test eax, eax
je 0x495dd5
push dword [esi + 0x24]
push dword [edi]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x495d65
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], 0
push eax
xorps xmm0, xmm0
push 1
push edi
movups xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, dword [esi + 0x20]
xor eax, eax
cmp dword [ecx - 0xc], eax
cmove ecx, eax
mov eax, dword [esi + 0x1c]
xor edx, edx
push edx
push edx
cmp dword [eax - 0xc], edx
push edx
push ecx
push edx
cmove eax, edx
push eax
push dword [ebp - 0x34]
push dword [esi + 0x30]
push dword [esi + 0x2c]
push dword [esi + 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
jmp 0x495da4
mov ecx, dword [esi + 0x20]
xor eax, eax
cmp dword [ecx - 0xc], eax
cmove ecx, eax
mov eax, dword [esi + 0x1c]
xor edx, edx
push edx
push edx
cmp dword [eax - 0xc], edx
push ecx
push edx
cmove eax, edx
push eax
push dword [ebp - 0x34]
push dword [esi + 0x30]
push dword [esi + 0x2c]
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [esi + 0x18]
push dword [esi + 0x14]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
je 0x495dc0
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [esi + 0x14]
push str.InstallDriver_suc_name_s.
jmp 0x495dc8
push dword [esi + 0x14]
push str.InstallDriver_error_s.
push 0x54bba8
call fcn.0048d420
add esp, 0xc
mov eax, dword [ebp + 8]
jmp 0x495cd7
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x495e20
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00450130
int3
Function at 0x495e50
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d6e5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x54b144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x495ffc
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
push 0xf003f
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
or ebx, 0xffffffff
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x495ed0
push str.UninstallDriver_Open_SCM_Failed
push 0x54bba8
call fcn.0048d420
add esp, 8
xor esi, esi
jmp 0x495fca
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x495fbe
push dword [esi + 0x14]
lea ebx, [esi + 0x14]
push ecx
call fcn.00496010
push 0x22
push str.SystemCurrentControlSetServices_
lea ecx, [ebp - 0x10]
call fcn.0044f440
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.0048c350
mov edi, dword [ebp - 0x10]
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [esi + 0x34]
push dword [ebx]
push str.UninstallDriver_name_s_del_d.
push 0x54bba8
call fcn.0048d420
add esp, 0x10
cmp dword [esi + 0x34], 0
je 0x495faa
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x495ffc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [esi + 0x10]
mov byte [ebp - 4], 1
push eax
push dword [esi + 0xc]
call fcn.00495670
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x495f78
push 1
push edi
call fcn.00487730
add esp, 8
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x495f96
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov esi, eax
mov edi, dword [ebp - 0x10]
cmp eax, dword [ecx]
mov ecx, dword [ebp - 0x18]
jmp 0x495ed9
mov ecx, dword [ebp + 8]
or ebx, 0xffffffff
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [ecx]
mov ecx, dword [ebp - 0x18]
jmp 0x495ed9
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, 1
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x495fe6
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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 4
push 0x80004005
call fcn.00450130
int3
Function at 0x496010
Capabilities:
Continue service
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x54b144]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push str.DeleteServices:_s
push 0x54bba8
call fcn.0048d420
add esp, 0xc
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4960ea
lea eax, [esp + 8]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
push str.Stop_Services_result:_d
push 0x54bba8
call fcn.0048d420
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [esp + 0x14]
add esp, 0xc
push eax
push edi
call esi
push 0x1f4
mov dword [esp + 0x10], 3
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 8]
push eax
push edi
call esi
push dword [esp + 0xc]
push str.services_status_after_stop:_d
push 0x54bba8
call fcn.0048d420
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push eax
push str.Delete_services_result:_d
push 0x54bba8
call fcn.0048d420
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 8
push str.Open_Services_Failed
push 0x54bba8
call fcn.0048d420
mov ecx, dword [esp + 0x2c]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 8
Function at 0x497620
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d8db
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x54b144]
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, ecx
cmp dword [edi + 4], 0
je 0x49785e
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004dcc10
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
lea edx, [ecx + 2]
mov word [ebp - 0x234], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4976b1
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.0044a750
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x224]
cmp ecx, 1
jb 0x497723
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
movzx ecx, word [eax + ecx*2 - 2]
xor eax, eax
cmp cx, word [eax + 0x530e54]
je 0x497723
add eax, 2
cmp eax, 4
jb 0x497700
push 1
push 0x5329c0
lea ecx, [ebp - 0x234]
call fcn.0044ae60
lea eax, [ebp - 0x24c]
lea esi, [edi + 8]
push eax
mov ecx, esi
call fcn.0048dec0
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.0048ee10
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x497788
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49777e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497879
push edx
push ecx
call fcn.004dafca
add esp, 8
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
mov ecx, esi
cmovae eax, dword [ebp - 0x234]
cmp dword [esi + 0x14], 8
jb 0x4977a6
mov ecx, dword [esi]
push eax
push ecx
push str.Copy_File___s______s_
push 0x54bba8
call fcn.0048d420
add esp, 0x10
cmp dword [0x54bba8], 0
jne 0x4977f5
mov eax, dword [0x54bbb4]
mov dword [0x54bba8], 1
test eax, eax
je 0x4977f5
mov ecx, dword [0x54bbb0]
test ecx, ecx
je 0x4977ec
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x54bbb4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
cmp dword [esi + 0x14], 8
jb 0x497811
mov esi, dword [esi]
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x220]
mov dword [edi + 4], 0
cmp edx, 8
jb 0x49785e
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x497854
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49787e
push edx
push ecx
call fcn.004dafca
add esp, 8
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.004dafe6
mov esp, ebp
pop ebp
ret
call fcn.004e002c
call fcn.004e002c
int3
Function at 0x498650
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d95d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x54b144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov ecx, ebx
call fcn.0046daa0
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], edi
cmp esi, 0xffffffff
je 0x498769
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, 0x200000
ja 0x498762
lea edx, [eax + 1]
mov dword [ebp - 0x14], edi
mov edi, eax
test edx, edx
js 0x49877d
mov eax, dword [ebx]
mov ecx, 1
mov dword [ebp - 0x10], eax
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x4986f9
push edx
mov ecx, ebx
call fcn.0046d820
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
jmp 0x4986fc
mov eax, dword [ebp - 0x10]
mov ebx, eax
nop
push 0
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x498760
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x498760
add ebx, eax
sub edi, eax
jne 0x498700
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
mov byte [ecx + eax], 0
mov eax, dword [edi]
test eax, eax
jne 0x498737
xor ecx, ecx
jmp 0x498749
push dword [eax - 8]
push eax
call fcn.004e0108
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x49877d
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x49877d
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
mov edi, 1
mov byte [ecx + eax], 0
jmp 0x498762
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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
push 0x80070057
call fcn.00450130
int3
Function at 0x499490
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50da5d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x54b144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 4]
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x499635
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x499635
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
mov byte [ebp - 4], 1
lea ebx, [esi + 0x14]
mov dword [ebp - 0x14], ebx
push 0x14
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.004daf9a
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebx], eax
lea eax, [esi + 0x1c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], eax
push 0x14
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.004daf9a
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi + 0x1c], eax
mov byte [ebp - 4], 3
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x499635
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 4
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x499635
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 5
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x499635
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 6
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x499635
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
push eax
call fcn.004e4842
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, esi
mov dword [esi], eax
call fcn.00499b10
mov ecx, esi
call fcn.00499e60
push dword [esi + 0x24]
mov ecx, esi
push edi
push ebx
call fcn.0049a090
push dword [esi + 0x28]
lea eax, [esi + 8]
mov ecx, esi
push eax
lea edi, [esi + 0x1c]
push edi
call fcn.0049a090
push ebx
call fcn.00499aa0
push edi
mov dword [esi + 0xc], eax
call fcn.00499aa0
mov dword [esi + 0x10], eax
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
push 0x80004005
call fcn.00450130
int3
Function at 0x499650
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5065a0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x54b144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi + 0x30]
or esi, 0xffffffff
sub edx, 0x10
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x499693
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x2c]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4996ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x28]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4996c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x24]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4996e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [edi + 0x1c]
push ecx
call fcn.0049b010
lea ecx, [edi + 0x14]
push ecx
call fcn.0049b010
mov edx, dword [edi + 8]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49970d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 4]
sub edx, 0x10
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x499725
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x499840
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50da9d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x54b144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x499a02
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], edi
push eax
call fcn.004e4842
mov eax, dword [ebp - 0x1c]
mov dword [ebx], eax
xor eax, 0xf1f1f1
push eax
lea eax, [ebp - 0x10]
push 0x534d78
push eax
call fcn.0048cb40
mov eax, dword [ebx + 0x30]
add esp, 0x10
mov esi, dword [ebp - 0x10]
cmp dword [eax - 0xc], edi
je 0x499917
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
push 0x80
push 2
push 1
push edi
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00491530
test eax, eax
jne 0x499902
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4998e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x20]
call fcn.004917c0
test eax, eax
jne 0x499907
lea edi, [eax + 1]
jmp 0x499907
mov edi, 2
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x49991c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49991c
mov edi, 4
mov eax, dword [ebx + 0x2c]
cmp dword [eax - 0xc], 0
je 0x4999cc
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARETencentReport
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4999b2
mov eax, dword [ebx + 0x2c]
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4999a4
mov edx, esi
lea ecx, [edx + 2]
mov dword [ebp - 0x14], ecx
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x499970
sub edx, dword [ebp - 0x14]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push esi
push 1
push 0
push dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
mov eax, dword [ebp - 0x10]
cmove ebx, ecx
mov ecx, edi
or ecx, 8
test ebx, ebx
cmovne ecx, edi
mov edi, ecx
jmp 0x4999b8
mov eax, dword [ebp - 0x10]
or edi, 0x10
test eax, eax
je 0x4999c3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], 0
jmp 0x4999cf
or edi, 0x20
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4999ee
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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
push 0x80004005
call fcn.00450130
int3