joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b6b80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a40d2
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x63434c]
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 + 8]
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 1
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x4b6d17
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
xor esi, esi
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 4], 2
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], esi
push eax
push 0x2001f
push esi
push dword [0x60e624]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b6c3f
mov esi, dword [ebp - 0x21c]
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 2
test eax, eax
jne 0x4b6cef
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0055c530
add esp, 0xc
mov dword [ebp - 0x220], 0x208
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push dword [0x60e628]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b6cef
mov eax, dword [ebp - 0x228]
cmp eax, 1
je 0x4b6ca2
cmp eax, 2
jne 0x4b6cef
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x4b6cbf
test al, 1
jne 0x4b6cef
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x4b6cc8
jmp 0x4b6cef
xor eax, eax
mov word [ebp - 0x218], ax
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b6cd1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0042a000
test esi, esi
je 0x4b6cfa
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b00
int3
Function at 0x4bb780
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a49ed
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x4bb824
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push dword [edi]
push str.unregister_dll_path:_s_n
push eax
call fcn.0042c6c0
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 1
push dword [ebp + 0xc]
push edi
call fcn.004b2020
add esp, 0xc
mov edi, eax
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4bb811
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
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b00
int3
Function at 0x4bdc40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4dfb
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x428], 0
lea eax, [ebp - 0x428]
mov dword [ebp - 4], 0
push eax
call fcn.0047b9a0
add esp, 4
test eax, eax
mov eax, dword [ebp - 0x428]
js 0x4bde24
test eax, eax
je 0x4bde24
cmp eax, 0xffffffff
je 0x4bde24
mov dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x424]
push ecx
push 0x20008
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
mov eax, dword [ebp - 0x424]
je 0x4bde07
test eax, eax
je 0x4bde07
cmp eax, 0xffffffff
je 0x4bde07
push eax
push dword [ebp - 0x428]
call fcn.0047e040
add esp, 8
test eax, eax
je 0x4bdd7a
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0055c530
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bdd40
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0042a000
lea eax, [esi + 4]
push eax
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
mov eax, dword [ebp - 0x424]
xor esi, esi
jmp 0x4bde0c
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x4bde01
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0055c530
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bddc0
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0042a000
lea eax, [esi + 4]
push eax
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x4bde01
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp - 0x424]
xor esi, esi
jmp 0x4bde0c
mov eax, dword [ebp - 0x424]
mov esi, 0x80004005
test eax, eax
je 0x4bde1c
cmp eax, 0xffffffff
je 0x4bde1c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x428]
jmp 0x4bde29
mov esi, 0x80004005
test eax, eax
je 0x4bde39
cmp eax, 0xffffffff
je 0x4bde39
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.00557e89
mov esp, ebp
pop ebp
ret
Function at 0x4bf1a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x74]
test esi, esi
je 0x4bf1b6
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [edi + 0x6c]
mov dword [edi + 0x40], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0xb4], 0
mov dword [edi + 0xb8], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [edi + 0x68], 0
jne 0x4bf214
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push edi
push 0x4be340
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x68], eax
cmp dword [edi + 0xa0], 0
jne 0x4bf246
cmp dword [edi + 0xa4], 0
je 0x4bf246
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push edi
push 0x4be570
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x68], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4bf25f
mov eax, dword [edi + 0x24]
sub eax, 1
jne 0x4bf286
push ecx
mov ecx, edi
call fcn.004bef60
jmp 0x4bf286
push dword [edi + 0x70]
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 1
mov dword [edi + 0x9c], 0x32
call dword [sym.imp.KERNEL32.dll_SetEvent]
test esi, esi
je 0x4bf291
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4bf2c0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x4bf345
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x68]
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4bf30b
push 0x1f4
push eax
call ecx
test eax, eax
je 0x4bf2f5
push 0
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esi + 0x68], 0
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x4bf345
push 0x1f4
push eax
call ecx
test eax, eax
je 0x4bf32f
push 0
push dword [esi + 0xa0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xa0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xa0], 0
pop esi
ret
Function at 0x4bf3c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5993ee
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x4bf49a
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
cmp dword [ebx + 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
je 0x4bf484
mov eax, dword [ebx + 8]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00558012
mov ecx, dword [ebx + 8]
add esp, 4
inc ecx
mov esi, eax
push ecx
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test esi, esi
jne 0x4bf45e
xor eax, eax
jmp 0x4bf472
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bf463
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.0042a000
push esi
call fcn.0055801b
add esp, 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 4
push 0x80004005
call fcn.00429b00
int3

Function at 0x4bf4d0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x4bf4e1
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
xor eax, eax
ret
Function at 0x4bf540
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4e4e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [ebp - 4], 1
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x4bf667
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp dword [ebx + 4], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x14], 1
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
je 0x4bf615
mov eax, dword [ebx + 8]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00558012
mov ecx, dword [ebx + 8]
add esp, 4
inc ecx
mov esi, eax
push ecx
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test esi, esi
jne 0x4bf5e3
xor ecx, ecx
jmp 0x4bf5ff
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x4bf5f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bf5f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.0042a000
push esi
call fcn.0055801b
mov esi, dword [ebp - 0x10]
add esp, 4
mov eax, dword [esi - 0xc]
test eax, eax
je 0x4bf63e
push eax
push eax
push 0xb1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xb7
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4bf656
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b00
int3
Function at 0x4c2390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a51f4
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x4c24ea
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x4c24f4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 4], eax
lea esi, [edi + 0xc]
mov dword [edi + 8], 0
push 0x1c
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00557fd4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x14]
mov byte [ebp - 4], 4
push 0x1c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00557fd4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push 0xc
mov byte [ebp - 4], 5
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
call fcn.00557fd4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x1c], eax
lea esi, [edi + 0x24]
mov byte [ebp - 4], 6
push 0x1c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00557fd4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push 0xc
mov byte [ebp - 4], 7
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.00557fd4
add esp, 0x14
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x2c], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b00
push 0x80004005
call fcn.00429b00
int3
Function at 0x4c2690
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5270
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x63434c]
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 + 8]
mov dword [ebp - 0xc0], edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push 0xaa
movzx esi, ax
lea eax, [ebp - 0xbc]
push 0
push eax
call fcn.0055c530
add esp, 0xc
lea eax, [ebp - 0xbc]
push 0x55
push eax
push 0x59
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c27b0
push 0x5bcdd0
lea eax, [ebp - 0xbc]
push 0x55
push eax
call fcn.0056b327
lea ecx, [ebp - 0xbc]
add esp, 0xc
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c2720
sub ecx, edx
lea eax, [ebp - 0xbc]
sar ecx, 1
push 0x55
lea eax, [eax + ecx*2]
push eax
push 0x5a
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c27b0
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x4c27eb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x4c2782
movzx eax, ax
mov ecx, edi
push eax
call fcn.00429d30
jmp 0x4c27cc
lea ecx, [ebp - 0xbc]
lea edx, [ecx + 2]
jmp 0x4c2790
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c2790
sub ecx, edx
lea eax, [ebp - 0xbc]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0042a000
jmp 0x4c27cc
mov dword [ebp - 4], 1
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x4c27f5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, edi
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.00557e89
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00429b00
push 0x80004005
call fcn.00429b00
int3
Function at 0x4cf5b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
jne 0x4cf7bd
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x86
jne 0x4cf665
push dword [edi + 0x30c]
mov dword [edi + 0x304], 1
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4cf63e
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [edi + 0x30]
lea ecx, [edi + 0x308]
push 0
push ecx
mov eax, esp
lea esi, [ebp - 0x14]
push 0
push 0
push 0
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], esi
call fcn.0044e4b0
mov esi, dword [ebp - 0x18]
mov dword [esi], 1
cmp dword [edi + 0x304], 0
je 0x4cf692
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret 0x18
cmp ebx, 0x4e
jne 0x4cf695
cmp dword [eax + 4], 0x3e8
jne 0x4cf695
push eax
mov dword [edi + 0x304], 1
call fcn.004cef20
mov dword [esi], eax
cmp dword [edi + 0x304], 0
jne 0x4cf7a5
mov eax, dword [ebp - 0x1c]
mov esi, dword [edi + 0x300]
mov ecx, edi
push 0
push dword [ebp - 0x18]
push eax
push dword [ebp - 0x20]
push ebx
push dword [ebp + 8]
call fcn.0045f7c0
mov dword [edi + 0x300], esi
test eax, eax
jne 0x4cf7a5
cmp ebx, 0x110
jne 0x4cf6eb
push dword [ebp - 0x1c]
mov dword [edi + 0x304], 1
push ecx
mov ecx, dword [ebp - 0x20]
mov eax, esp
mov dword [eax], ecx
mov ecx, edi
call fcn.004cf140
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
jmp 0x4cf79c
cmp ebx, 3
jne 0x4cf724
lea eax, [ebp - 0x14]
mov dword [edi + 0x304], 1
push eax
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_GetWindowRect]
sub esp, 0x10
lea ecx, [ebp - 0x14]
mov eax, esp
push ecx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
lea ecx, [edi + 0x308]
call fcn.004663c0
jmp 0x4cf793
cmp ebx, 0x100
jne 0x4cf7bd
push dword [edi + 4]
mov dword [edi + 0x304], 1
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4cf793
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x4cf793
mov eax, dword [ebp - 0x20]
cmp eax, 0x1b
jne 0x4cf765
mov dword [edi + 0x28], 2
jmp 0x4cf776
cmp eax, 0xd
je 0x4cf76f
cmp eax, 0x20
jne 0x4cf793
mov dword [edi + 0x28], 1
push 0
push 0
push 0
mov dword [edi + 0x2fc], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
cmp dword [edi + 0x304], 0
je 0x4cf7bd
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00557e89
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4d15b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
push 0x20019
push 0
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov eax, dword [ebp - 4]
jne 0x4d1614
mov dword [ebp - 8], 4
test eax, eax
je 0x4d161f
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push dword [esi + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d1611
cmp dword [ebp - 0xc], 4
jne 0x4d1611
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d161f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d1870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
je 0x4d18da
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4d18cc
mov eax, dword [esi + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d18da
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push dword [esi + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d18da
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4d18e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
cmp dword [eax - 0xc], 0
je 0x4d1967
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov eax, dword [ebp - 4]
jne 0x4d195c
test eax, eax
je 0x4d1967
mov edx, dword [esi + 0x10]
push ebx
lea ebx, [edx + 2]
jmp 0x4d1930
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4d1930
sub edx, ebx
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push dword [esi + 0x10]
push 1
push 0
push dword [esi + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
pop ebx
test eax, eax
je 0x4d1967
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d1990
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a68c0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4d1a8c
xor esi, esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0x2001f
push esi
push str.SoftwarekingsoftOffice6.0Common
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d19ef
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x4d1a69
cmp dword [0x60e7f4], 8
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 4
push ecx
mov eax, 0x60e7e0
cmovae eax, dword [0x60e7e0]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d1a85
cmp dword [ebp - 0x1c], 4
jne 0x4d1a85
mov ecx, dword [ebx + 4]
cmp dword [ebp - 0x14], ecx
je 0x4d1a85
cmp dword [0x60e7f4], 8
mov eax, 0x60e7e0
push 4
cmovae eax, dword [0x60e7e0]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
push ecx
push 4
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4d1a85
push str.62_tKGlobalInfoCollectReg::unInit_tfail_to_open_HKCU:SoftwarekingsoftOffice6.0Common_reg
push str.H:pub_9qls_rc_bug_mas_v12_2407Coding_support_newsetup_srccommonappKUninstallkglobalinfocollectreg.cpp
push str._WARNING_
push 0x63cbb0
call fcn.0046bb20
add esp, 0x10
test esi, esi
je 0x4d1a8c
push esi
call edi
mov esi, dword [ebx + 8]
test esi, esi
je 0x4d1ab4
mov eax, dword [esi]
test eax, eax
je 0x4d1aa2
push eax
call edi
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
call fcn.00558004
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret