joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dc380
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574f8e
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.0046faa0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor ebx, ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], eax
lea edi, [esi + 0x54]
mov dword [ebp - 4], ebx
push edi
mov dword [esi + 0x50], vtable.WTL::CMessageFilter.0
call fcn.004ac300
mov dword [esi + method.CefWebViewHost.virtual_0], vtable.CefWebViewHost.0
mov dword [esi + 0x1a0], ebx
mov dword [esi + 0x1ac], ebx
mov byte [esi + 0x1b0], bl
mov byte [esi + 0x1b1], 1
mov dword [esi + method.IFontIconCBSimpleImpl_class_CGoogleOAuthDlg_.virtual_0], vtable.IFontIconCBSimpleImpl_class_CGoogleOAuthDlg_.0
mov dword [esi], vtable.CGoogleOAuthDlg.0
mov dword [esi + 0x2c], vtable.CGoogleOAuthDlg.1.0
mov dword [esi + 0x50], vtable.CGoogleOAuthDlg.2.0
mov dword [edi], vtable.CGoogleOAuthDlg.3.0
mov dword [esi + method.CGoogleOAuthDlg.4.virtual_0], vtable.CGoogleOAuthDlg.4.0
mov dword [esi + method.IFontIconCBSimpleImpl_class_CGoogleOAuthDlg_.virtual_0], vtable.CGoogleOAuthDlg.5.0
xor ecx, ecx
mov dword [esi + 0x1d0], 7
mov dword [esi + 0x1cc], ebx
mov word [esi + 0x1bc], cx
mov dword [esi + 0x1d4], ebx
lea eax, [esi + 0x1e4]
mov byte [esi + 0x1d8], bl
mov dword [esi + 0x1dc], ebx
mov dword [esi + 0x1e0], ebx
call fcn.004dc520
lea edx, [esi + 0x294]
mov byte [ebp - 4], 5
push edx
mov dword [esi + 0x28c], 1
mov dword [esi + 0x290], ebx
call fcn.0049a5c0
mov dword [esi + 0x464], ebx
mov dword [esi + 0x460], ebx
call fcn.0046c450
cmp byte [eax + 0xc], bl
je 0x4dc4bc
mov eax, dword [eax]
cmp eax, 0x64
je 0x4dc4bc
push 0x64
push eax
push 0x1cc
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x4dc4c1
mov eax, 0x1cc
mov dword [esi + 0x458], eax
mov dword [esi + 0x45c], ebx
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
Function at 0x4e6370
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56cb68
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5c3678]
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 ebx, dword [ebp + 8]
lea eax, [ebp - 0x29]
push eax
lea ecx, [ebp - 0x28]
xor esi, esi
push ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], esi
call fcn.0045c500
add esp, 8
mov dword [ebp - 4], esi
mov edx, dword [ebp - 0x28]
mov ecx, 0x5cc90c
cmp dword [edx - 0xc], esi
jne 0x4e63da
mov eax, dword [0x5cc90c]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebx], eax
jmp 0x4e64f1
mov edx, dword [0x5cc90c]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push esi
push 0x80
push 3
push esi
push 1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x28]
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, 0xffffffff
je 0x4e64c2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4e64bb
push 0x5cc9fe
push esi
call fcn.0053d8d6
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4e64b8
push esi
push 0
push ebx
call fcn.00544310
add esp, 0xc
push 0
lea edx, [ebp - 0x3c]
push edx
push esi
push ebx
push edi
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e64af
cmp dword [ebp - 0x3c], esi
jne 0x4e64af
xor eax, eax
push esi
lea edi, [ebp - 0x24]
mov ecx, ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call fcn.0047b420
add esp, 4
test eax, eax
je 0x4e64ac
lea eax, [ebp - 0x40]
push eax
mov ecx, edi
push ecx
call fcn.0045b8d0
lea edi, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00423c70
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00423d60
mov edi, dword [ebp - 0x34]
push ebx
call fcn.0053d6b6
add esp, 4
mov ebx, dword [ebp - 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x30]
add esi, 0xfffffff0
mov eax, esi
call fcn.00423cf0
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4e64f1
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e6517
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
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 - 0x14]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret
Function at 0x4e6540
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565a72
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5c3678]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 0
mov eax, dword [0x5cc90c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5cc90c
mov dword [ebp - 0x228], esi
call edx
add eax, 0x10
mov dword [esi], eax
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x21a]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x224], 1
mov word [ebp - 0x21c], ax
call fcn.00544310
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
add esp, 0xc
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x21c]
push eax
push 1
mov dword [ebp - 0x220], 0x104
call edi
test eax, eax
jne 0x4e6607
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x21c]
push edx
push eax
mov dword [ebp - 0x220], 0x104
call edi
mov eax, dword [ebp - 0x220]
cmp eax, 0x105
jae 0x4e6644
xor ecx, ecx
mov word [ebp + eax*2 - 0x21c], cx
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e6627
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
push esi
call fcn.00423be0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret
Function at 0x4f01e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565648
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [ebp + 8]
mov edi, ecx
dec al
movzx esi, al
mov eax, dword [edi + 0x39c]
neg esi
push 0
push ecx
sbb esi, esi
mov dword [ebp + 8], esp
and esi, 0xffffd8e0
mov ebx, esp
push ecx
add esi, 0x8107
mov ecx, esp
mov dword [ebp + 8], esp
mov dword [ecx], eax
test eax, eax
je 0x4f0241
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, esi
mov edx, ebx
call fcn.0048df10
add esp, 4
lea eax, [ebp + 8]
push eax
add edi, 0x54
push edi
call fcn.004ae970
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4f028d
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, dword [ebp + 8]
and al, 1
movzx ecx, al
push ecx
push edx
call fcn.00497e60
mov eax, dword [ebp + 8]
push 1
push eax
call fcn.00485620
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4f02a0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
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
Function at 0x4f79d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x579f50
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x5c3678]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
cmp dword [ebp + 8], ebx
jl 0x4f7b06
mov eax, dword [edi + 0x4f8]
cmp eax, 2
jne 0x4f7b46
mov edx, dword [edi + 0x4fc]
lea esi, [edi + 0x4fc]
lea eax, [esp + 0x10]
call fcn.0040eab0
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x40], ebx
call fcn.00424330
add esp, 4
push eax
call fcn.00425010
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
mov bl, al
jb 0x4f7a64
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0053c152
add esp, 4
test bl, bl
je 0x4f7acb
call fcn.00423a80
mov ecx, edi
mov dword [edi + 0x4f8], 0
call fcn.004f5a10
mov edx, dword [edi + 0x38c]
mov eax, dword [edx + 0x14]
lea ecx, [edi + 0x38c]
push 0
push 0
call eax
or dword [edi + 0x4e0], 0x100
push edi
mov dword [edi + 0x494], 1
mov dword [edi + 0x4e8], 9
call fcn.004f70f0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
lea eax, [edi + 0x54]
mov ecx, str.IDS_ERR_WRONG_BOUND_ACCOUNT
lea esi, [esp + 0x14]
call fcn.004acda0
mov dword [esp + 0x38], 1
cmp dword [eax + 0x18], 8
jb 0x4f7af1
mov eax, dword [eax + 4]
jmp 0x4f7af4
add eax, 4
push eax
push edi
call fcn.004f93b0
lea ecx, [esp + 0x10]
call fcn.0040eb20
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x4e4]
cmp eax, 0x1f4
jae 0x4f7bd1
mov edx, dword [edi + 0x30]
push ebx
mov ecx, 0x1f4
sub ecx, eax
push ecx
push 2
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 1
jne 0x4f7b06
call fcn.00424330
mov esi, eax
call fcn.004246f0
test eax, eax
jne 0x4f7b9f
mov ecx, edi
mov dword [edi + 0x4f8], ebx
call fcn.004f5a10
mov edx, dword [edi + 0x38c]
mov eax, dword [edx + 0x14]
lea ecx, [edi + 0x38c]
push ebx
push ebx
call eax
or dword [edi + 0x4e0], 0x80
push edi
call fcn.004f70f0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi + 0x38c]
mov edx, dword [edx + 0x1c]
lea ecx, [edi + 0x38c]
lea eax, [edi + 0x4fc]
push eax
call edx
push edi
call fcn.004f70f0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x454]
cmp eax, ebx
je 0x4f7bfd
mov eax, dword [eax + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f7bfd
mov ecx, dword [edi + 0x454]
mov edx, dword [ecx + 0x30]
push ebx
push ebx
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f8e80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5cfb54]
sub esp, 0x34
cmp eax, 2
je 0x4f8e95
cmp eax, 3
jne 0x4f8ea5
mov eax, dword [edi + 0x30]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
push esi
mov dword [ebp - 4], 3
call fcn.00467180
mov esi, dword [eax + 0x1c]
test esi, esi
jne 0x4f8ec5
cmp dword [eax + 0x18], esi
je 0x4f8ec5
call fcn.00467540
mov esi, dword [eax]
push ebx
mov ebx, esi
mov dword [ebp - 8], ebx
test esi, esi
je 0x4f8edb
cmp esi, dword [edi + 0x30]
je 0x4f8edb
mov dword [ebp - 4], 0x17
mov edx, dword [edi + 0x30]
xor eax, eax
lea ecx, [ebp - 0x34]
push ecx
push edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x34], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
cmp dword [ebp - 0x2c], 2
jne 0x4f8f22
mov eax, dword [edi + 0x30]
push 9
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x454]
test eax, eax
je 0x4f8fab
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
mov ebx, dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4f8f53
mov eax, dword [edi + 0x454]
mov edx, dword [eax + 0x30]
add eax, 0x30
push edx
call ebx
test eax, eax
je 0x4f8fa8
mov eax, dword [edi + 0x454]
test eax, eax
je 0x4f8f92
mov eax, dword [eax + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f8f92
mov eax, dword [edi + 0x454]
mov ecx, dword [eax + 0x30]
add eax, 0x30
push ecx
call ebx
test eax, eax
je 0x4f8f92
mov edx, dword [edi + 0x454]
mov eax, dword [edx + 0x30]
call fcn.0047b6f0
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0047b540
test eax, eax
jne 0x4f9017
mov ecx, esi
call fcn.0047b660
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
test esi, esi
jne 0x4f9005
mov eax, dword [edi + 0x30]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [ebp - 4]
mov ecx, dword [edi + 0x30]
push ebx
push esi
push esi
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0xffffffffffffffff
push ecx
call esi
mov edx, dword [edi + 0x30]
push edx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [edi + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [edi + 0x30]
push 1
push ecx
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
mov edx, dword [edi + 0x30]
push ebx
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push edx
call esi
mov ebx, dword [edi + 0x30]
mov esi, ebx
call fcn.0047b540
test eax, eax
jne 0x4f9017
mov ecx, ebx
call fcn.0047b660
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x508d60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5748b7
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.0046faa0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor ebx, ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], eax
lea edi, [esi + 0x54]
mov dword [ebp - 4], ebx
push edi
mov dword [esi + 0x50], vtable.WTL::CMessageFilter.0
call fcn.004ac300
mov dword [esi + method.IFontIconCBSimpleImpl_class_CNotificationPage_.virtual_0], vtable.IFontIconCBSimpleImpl_class_CNotificationPage_.0
mov dword [esi], vtable.CNotificationPage.0
mov dword [esi + 0x2c], vtable.CNotificationPage.1.0
mov dword [esi + 0x50], vtable.CNotificationPage.2.0
mov dword [edi], vtable.CNotificationPage.3.0
mov dword [esi + method.IFontIconCBSimpleImpl_class_CNotificationPage_.virtual_0], vtable.CNotificationPage.4.0
mov dword [esi + 0x1a4], ebx
mov dword [esi + 0x1a8], ebx
mov dword [esi + 0x1ac], ebx
mov dword [esi + 0x1b0], ebx
mov dword [esi + 0x1b4], ebx
mov dword [esi + 0x1b8], ebx
mov dword [esi + 0x1bc], ebx
mov dword [esi + 0x1c0], ebx
mov byte [ebp - 4], 9
lea edx, [esi + 0x1d4]
xor ecx, ecx
mov byte [esi + 0x1cc], bl
mov dword [esi + 0x1c4], ebx
mov dword [esi + 0x1c8], ebx
push edx
mov word [esi + 0x1d0], cx
call fcn.004e2e10
lea eax, [esi + 0x1ec]
push eax
mov byte [ebp - 4], 0xa
call fcn.004e2e10
lea ecx, [esi + 0x204]
push ecx
mov byte [ebp - 4], 0xb
call fcn.004e2e10
lea edx, [esi + 0x21c]
push edx
mov byte [ebp - 4], 0xc
call fcn.004e2e10
lea eax, [esi + 0x234]
push eax
mov byte [ebp - 4], 0xd
call fcn.004e2e10
mov byte [ebp - 4], 0xe
mov edx, dword [0x5cc90c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5cc90c
call eax
add eax, 0x10
mov dword [esi + 0x24c], eax
mov byte [ebp - 4], 0xf
mov edx, dword [0x5cc90c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5cc90c
call eax
add eax, 0x10
mov dword [esi + 0x250], eax
mov byte [ebp - 4], 0x10
mov edx, dword [0x5cc90c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5cc90c
call eax
add eax, 0x10
mov dword [esi + 0x254], eax
mov byte [ebp - 4], 0x11
mov edx, dword [0x5cc90c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5cc90c
call eax
add eax, 0x10
mov dword [esi + 0x258], eax
lea eax, [esi + 0x25c]
push eax
mov byte [ebp - 4], 0x12
call fcn.004b0c90
mov dword [esi + 0x27c], ebx
mov dword [esi + 0x280], ebx
mov dword [esi + 0x284], ebx
mov dword [esi + 0x288], ebx
mov dword [esi + 0x28c], ebx
mov byte [esi + 0x290], bl
mov dword [esi + 0x294], ebx
mov dword [esi + 0x298], ebx
mov dword [esi + 0x29c], ebx
mov dword [esi + 0x2a0], ebx
mov dword [esi + 0x2a4], ebx
mov byte [ebp - 4], 0x16
lea ecx, [esi + 0x2ac]
push ecx
mov byte [esi + 0x2a8], bl
mov byte [esi + 0x2a9], bl
mov byte [esi + 0x2aa], bl
call fcn.004e2e10
mov dword [esi + 0x2c4], ebx
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
Function at 0x513f10
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
call sub.IMM32.dll_ImmDisableIME
call fcn.0047b710
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x513f6f
lea eax, [esp + 0x10]
test eax, eax
je 0x513f6f
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x513f6f
push str.ChangeWindowMessageFilter
push esi
call ebx
test eax, eax
je 0x513f6f
push 1
push 0x4a
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.LocalQ360Account
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
je 0x513f98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x513fc0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push str.Q360ACCOUNT
call dword [sym.imp.USER32.dll_FindWindowW]
push 0
push 0
push 0x62b
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.0047db40
lea esi, [esp + 0x10]
call fcn.00401c90
push eax
lea ecx, [esp + 0x10]
push ecx
mov esi, 0x595f28
call fcn.00421fe0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x514001
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
call fcn.00421b80
test eax, eax
je 0x51402b
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x51402b
push str.Initialize
push eax
call ebx
test eax, eax
je 0x51402b
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51404b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
push 0
mov dword [0x5cedf4], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.00519eb0
call fcn.00519cb0
xor esi, esi
call fcn.0047f630
test eax, eax
je 0x5140bb
call fcn.00480120
test al, al
je 0x5140bb
mov edx, dword [ebp + 0x14]
push edx
call fcn.00513d00
add esp, 4
mov esi, eax
call fcn.005142e0
call fcn.00514280
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x595f28
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x5140f5
push str.OnExiting
push eax
call ebx
test eax, eax
je 0x5140f5
call eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x51b270
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x51b283
lea eax, [esi + 0xd]
pop esi
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
xor edi, edi
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x51b290
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x51b790
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5c3678]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [ebp - 0x218]
push esi
xor edi, edi
or eax, 0x2001f
push eax
push edi
push edx
push ecx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x218], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x214]
mov esi, eax
cmp esi, edi
jne 0x51b811
xor eax, eax
cmp ecx, edi
je 0x51b7f9
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x210], edi
mov esi, eax
mov dword [ebp - 0x214], ecx
cmp eax, edi
je 0x51b81f
cmp ecx, edi
je 0x51b8e0
push ecx
jmp 0x51b8da
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x20c]
push eax
push edi
push ecx
mov dword [ebp - 0x21c], 0x100
call esi
test eax, eax
jne 0x51b8a0
nop
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x214]
call fcn.0051b790
mov dword [ebp - 0x218], eax
cmp eax, edi
jne 0x51b8f5
lea edx, [ebp - 0x228]
push edx
mov edx, dword [ebp - 0x214]
push edi
push edi
push edi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push edi
push edx
mov dword [ebp - 0x21c], 0x100
call esi
test eax, eax
je 0x51b850
mov eax, dword [ebp - 0x214]
cmp eax, edi
je 0x51b8b7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], edi
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebx]
push eax
push ecx
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x214]
cmp eax, edi
je 0x51b8e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x214]
cmp ecx, edi
je 0x51b8e2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053c15d
mov esp, ebp
pop ebp
ret 4