joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496070
Capabilities:
Create service
Modify service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510cbd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x550144]
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.00450310
mov ecx, eax
test ecx, ecx
je 0x496250
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 0x49620e
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov esi, dword [esi]
cmp esi, dword [eax]
je 0x496205
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.00495a80
test eax, eax
je 0x4961e5
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 0x496175
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 0x4961b4
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 0x4961d0
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 0x4961d8
push dword [esi + 0x14]
push str.InstallDriver_error_s.
push 0x550bb8
call fcn.0048d880
add esp, 0xc
mov eax, dword [ebp + 8]
jmp 0x4960e7
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 0x496230
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.004de46d
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00450260
int3
Function at 0x496260
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510d05
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x49640c
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 0x4962e0
push str.UninstallDriver_Open_SCM_Failed
push 0x550bb8
call fcn.0048d880
add esp, 8
xor esi, esi
jmp 0x4963da
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x4963ce
push dword [esi + 0x14]
lea ebx, [esi + 0x14]
push ecx
call fcn.00496420
push 0x22
push str.SystemCurrentControlSetServices_
lea ecx, [ebp - 0x10]
call fcn.0044f580
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.0048c7b0
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 0x550bb8
call fcn.0048d880
add esp, 0x10
cmp dword [esi + 0x34], 0
je 0x4963ba
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x49640c
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.00495a80
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x496388
push 1
push edi
call fcn.00487920
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 0x4963a6
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 0x4962e9
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 0x4962e9
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 0x4963f6
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.00450260
int3
Function at 0x496420
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 [0x550144]
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 0x550bb8
call fcn.0048d880
add esp, 0xc
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4964fa
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 0x550bb8
call fcn.0048d880
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 0x550bb8
call fcn.0048d880
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push eax
push str.Delete_services_result:_d
push 0x550bb8
call fcn.0048d880
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.004de46d
mov esp, ebp
pop ebp
ret 8
push str.Open_Services_Failed
push 0x550bb8
call fcn.0048d880
mov ecx, dword [esp + 0x2c]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.004de46d
mov esp, ebp
pop ebp
ret 8
Function at 0x497a30
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510efb
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x550144]
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 0x497c6e
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004e0230
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 0x497ac1
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.0044a760
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x224]
cmp ecx, 1
jb 0x497b33
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 + 0x534f54]
je 0x497b33
add eax, 2
cmp eax, 4
jb 0x497b10
push 1
push 0x536ac0
lea ecx, [ebp - 0x234]
call fcn.0044aee0
lea eax, [ebp - 0x24c]
lea esi, [edi + 8]
push eax
mov ecx, esi
call fcn.0048e320
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.0048f270
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x497b98
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x497b8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497c89
push edx
push ecx
call fcn.004de45a
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 0x497bb6
mov ecx, dword [esi]
push eax
push ecx
push str.Copy_File___s______s_
push 0x550bb8
call fcn.0048d880
add esp, 0x10
cmp dword [0x550bb8], 0
jne 0x497c05
mov eax, dword [0x550bc4]
mov dword [0x550bb8], 1
test eax, eax
je 0x497c05
mov ecx, dword [0x550bc0]
test ecx, ecx
je 0x497bfc
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x550bc4]
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 0x497c21
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 0x497c6e
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x497c64
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497c8e
push edx
push ecx
call fcn.004de45a
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.004de46d
mov esp, ebp
pop ebp
ret
call fcn.004e364a
call fcn.004e364a
int3
Function at 0x498a60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510f7d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x550144]
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.0046dbc0
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 0x498b79
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, 0x200000
ja 0x498b72
lea edx, [eax + 1]
mov dword [ebp - 0x14], edi
mov edi, eax
test edx, edx
js 0x498b8d
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 0x498b09
push edx
mov ecx, ebx
call fcn.0046d940
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
jmp 0x498b0c
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 0x498b70
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x498b70
add ebx, eax
sub edi, eax
jne 0x498b10
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 0x498b47
xor ecx, ecx
jmp 0x498b59
push dword [eax - 8]
push eax
call fcn.004e3726
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x498b8d
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x498b8d
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
mov edi, 1
mov byte [ecx + eax], 0
jmp 0x498b72
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.00450260
int3
Function at 0x499890
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51107d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x550144]
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.00450310
mov ecx, eax
test ecx, ecx
je 0x499a35
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x499a35
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.004de42a
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.004de42a
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.00450310
mov ecx, eax
test ecx, ecx
je 0x499a35
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 4
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x499a35
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 5
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x499a35
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 6
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x499a35
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.004e7e60
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, esi
mov dword [esi], eax
call fcn.00499f10
mov ecx, esi
call fcn.0049a260
push dword [esi + 0x24]
mov ecx, esi
push edi
push ebx
call fcn.0049a490
push dword [esi + 0x28]
lea eax, [esi + 8]
mov ecx, esi
push eax
lea edi, [esi + 0x1c]
push edi
call fcn.0049a490
push ebx
call fcn.00499ea0
push edi
mov dword [esi + 0xc], eax
call fcn.00499ea0
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.00450260
int3
Function at 0x499a50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509bc0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x550144]
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 0x499a93
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 0x499aad
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 0x499ac7
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 0x499ae1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [edi + 0x1c]
push ecx
call fcn.0049b410
lea ecx, [edi + 0x14]
push ecx
call fcn.0049b410
mov edx, dword [edi + 8]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x499b0d
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 0x499b25
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 0x499c40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5110bd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x499e02
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.004e7e60
mov eax, dword [ebp - 0x1c]
mov dword [ebx], eax
xor eax, 0xf1f1f1
push eax
lea eax, [ebp - 0x10]
push 0x538ea8
push eax
call fcn.0048cfa0
mov eax, dword [ebx + 0x30]
add esp, 0x10
mov esi, dword [ebp - 0x10]
cmp dword [eax - 0xc], edi
je 0x499d17
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.00491970
test eax, eax
jne 0x499d02
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499ce0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x20]
call fcn.00491bd0
test eax, eax
jne 0x499d07
lea edi, [eax + 1]
jmp 0x499d07
mov edi, 2
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x499d1c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x499d1c
mov edi, 4
mov eax, dword [ebx + 0x2c]
cmp dword [eax - 0xc], 0
je 0x499dcc
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 0x499db2
mov eax, dword [ebx + 0x2c]
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x499da4
mov edx, esi
lea ecx, [edx + 2]
mov dword [ebp - 0x14], ecx
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x499d70
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 0x499db8
mov eax, dword [ebp - 0x10]
or edi, 0x10
test eax, eax
je 0x499dc3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], 0
jmp 0x499dcf
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 0x499dee
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.00450260
int3
Function at 0x49bc80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x20a
mov dword [ebp - 0x840], eax
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.004e0230
add esp, 0xc
lea eax, [ebp - 0x424]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004e0230
push 0x20a
lea eax, [ebp - 0x630]
push 0
push eax
call fcn.004e0230
push 0x20a
lea eax, [ebp - 0x83c]
push 0
push eax
call fcn.004e0230
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00489e40
xor edi, edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x848], edi
add esp, 0x34
mov dword [ebp - 0xc], ebx
mov esi, 1
mov dword [ebp - 0x844], esi
cmp ax, word [ebp - 0x218]
je 0x49bd7c
lea eax, [ebp - 0x218]
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x848]
lea ecx, [ebp - 0x844]
call fcn.00498e00
add esp, 0xc
test al, al
je 0x49bd7c
mov esi, dword [ebp - 0x844]
mov edi, dword [ebp - 0x848]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x840]
test edx, edx
jne 0x49bd8a
xor ecx, ecx
jmp 0x49bda8
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x840], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49bd95
sub ecx, dword [ebp - 0x840]
sar ecx, 1
push ecx
push edx
mov ecx, 0x554134
call fcn.0044f580
sub esp, 0x14
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x424]
push eax
lea edx, [ebp - 0x630]
call fcn.0049b610
mov esi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
add esp, 0x28
push fcn.0049bbe0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x840]
push eax
push 5
lea eax, [ebp - 0xc]
mov dword [ebp - 0x840], 0
push eax
push esi
mov dword [ebp - 0xc], 0x4c2c033
mov byte [ebp - 8], 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push eax
call ebx
mov eax, dword [0x554148]
test eax, eax
je 0x49be59
mov dword [eax + 0x1c], 0x2710
cmp word [0x5364dc], 0
je 0x49be59
mov eax, dword [0x554148]
push 0x5364dc
add eax, 0x55c
push 0x3c
push eax
call fcn.004e7ac4
mov eax, dword [0x554148]
add esp, 0xc
xor ecx, ecx
mov word [eax + 0x5d2], cx
push fcn.0049bbe0
call esi
lea eax, [ebp - 0x840]
mov dword [ebp - 0x840], 0
push eax
push 5
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x4c2c033
push eax
push esi
mov byte [ebp - 8], 0
call edi
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de46d
mov esp, ebp
pop ebp
ret
Function at 0x49c640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x218], eax
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x49c7d1
test edi, edi
je 0x49c7d1
test ecx, ecx
je 0x49c7d1
test ebx, ebx
je 0x49c7d1
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
push 0
push eax
call fcn.004e0230
push 0xffffffffffffffff
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004f3925
push 0xffffffffffffffff
push 0x536ac0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004f3650
push 0x103
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004f3650
mov eax, dword [ebp - 0x210]
add esp, 0x3c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x49c709
push eax
call ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x49c7aa
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x49c7b0
lea ecx, [ebp - 0x214]
push ecx
push 0
lea ecx, [ebp - 0x21c]
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49c7aa
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp + 0x14]
jbe 0x49c772
mov dword [esi], eax
mov esi, 0x80028016
mov eax, dword [ebp - 0x210]
jmp 0x49c7b5
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x49c7b0
lea ecx, [ebp + 0x14]
push ecx
push dword [ebp - 0x218]
lea ecx, [ebp - 0x21c]
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49c7aa
mov eax, dword [ebp + 0x14]
mov dword [esi], eax
xor esi, esi
mov eax, dword [ebp - 0x210]
jmp 0x49c7b5
mov eax, dword [ebp - 0x210]
mov esi, 0x80004005
test eax, eax
je 0x49c7bc
push eax
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de46d
mov esp, ebp
pop ebp
ret 0x14