joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409300
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421c28
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42a520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x426648
xor ebx, ebx
push eax
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.004097a0
add esp, 8
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], ebx
je 0x409406
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea ebx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004094e0
mov ebx, dword [ebp - 0x24]
test eax, eax
jne 0x4093f9
test ebx, ebx
je 0x409404
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4266a8
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406de0
mov edi, dword [ebp - 0x14]
mov eax, edi
add esp, 8
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4093b0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 8]
push edx
push edi
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb esi, esi
lea eax, [edi - 0x10]
inc esi
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4093f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x409404
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40944c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call 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
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
Function at 0x41ec7c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00415f77
and dword [ebp - 0x14], 0
cmp dword [0x46afd0], 0
mov dword [ebp - 0x18], eax
jne 0x41ed2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41edd7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41edd7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46afd0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46afd4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46afd8], eax
call edi
push eax
call esi
mov dword [0x46afe0], eax
test eax, eax
je 0x41ed2f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46afdc], eax
mov eax, dword [0x46afdc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41ed88
cmp dword [0x46afe0], ecx
je 0x41ed88
push eax
call esi
push dword [0x46afe0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41ed88
test ebx, ebx
je 0x41ed88
call edi
test eax, eax
je 0x41ed7f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41ed7f
test byte [ebp - 8], 1
jne 0x41ed88
or dword [ebp + 0x10], 0x200000
jmp 0x41edbb
mov eax, dword [0x46afd4]
cmp eax, dword [ebp - 0x18]
je 0x41edbb
push eax
call esi
test eax, eax
je 0x41edbb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41edbb
mov eax, dword [0x46afd8]
cmp eax, dword [ebp - 0x18]
je 0x41edbb
push eax
call esi
test eax, eax
je 0x41edbb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46afd0]
call esi
test eax, eax
je 0x41edd7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41edd9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004106b7
leave
ret
Function at 0x4f003650
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call sym.IMM32.dll_ImmLockClientImc
mov esi, eax
test esi, esi
je 0x4f006775
push edi
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0xfdc]
test ecx, ecx
jns 0x4f003687
add eax, ecx
mov eax, dword [eax + 0x800]
and eax, 0x100
or eax, 0
je 0x4f0036b9
cmp dword [esi], 0
je 0x4f003702
mov ecx, ebx
call fcn.4f003930
push edi
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LocalLock]
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 1
push ebx
call dword [sym.imp.win32u.dll_NtUserQueryInputContext]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
jne 0x4f0036fd
mov ecx, dword [0x4f01ac28]
mov eax, ecx
or eax, dword [0x4f01ac2c]
je 0x4f0036fd
test byte [ecx], 4
je 0x4f0036fd
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, ax
mov eax, ecx
shl eax, 0x10
push 1
or eax, ecx
push eax
call sym.IMM32.dll_CtfImmTIMActivate
lea edi, [esi + 0x10]
jmp 0x4f003697
push 2
push ebx
call dword [sym.imp.win32u.dll_NtUserQueryInputContext]
test eax, eax
je 0x4f00678a
push 0x164
push 0x42
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esi], eax
test eax, eax
je 0x4f00678a
push 1
push ebx
call dword [sym.imp.win32u.dll_NtUserQueryInputContext]
push esi
push 1
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edx, eax
mov ecx, ebx
call fcn.4f0027a0
test eax, eax
jne 0x4f00369c
jmp 0x4f00677c
xor eax, eax
jmp 0x4f0036b3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], 0
push edi
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
push esi
call sym.IMM32.dll_ImmUnlockClientImc
xor eax, eax
jmp 0x4f0036b2
Function at 0x4f003f00
Capabilities:
Access peb ldr_data
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4f01a01c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], edi
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 4
push 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4f006bf7
lea eax, [ebp - 0x14]
push eax
push 2
push dword [ebp - 0x10]
push edi
call dword [sym.imp.api_ms_win_security_base_l1_2_0.dll_CheckTokenMembershipEx]
mov esi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4f003f63
push eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
test esi, esi
je 0x4f006bf7
cmp dword [ebp - 0x14], edi
je 0x4f006bf7
call dword [sym.imp.ntdll.dll_RtlIsThreadWithinLoaderCallout]
test al, al
jne 0x4f003fcb
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xa0]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
cmp eax, dword [ecx + 0xc]
je 0x4f003fcb
mov eax, dword [0x4f01a034]
cmp eax, 0xffffffff
jne 0x4f003fdf
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4f003fef
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0xfdc]
test ecx, ecx
jns 0x4f003fbb
add eax, ecx
mov eax, dword [eax + 0x800]
and eax, 0x100
or eax, 0
jne 0x4f003fef
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.4f0051a0
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f003fa2
jmp 0x4f006c19
mov ecx, dword [0x4f01ac28]
mov eax, ecx
or eax, dword [0x4f01ac2c]
je 0x4f004049
test byte [ecx], 4
je 0x4f004049
call fcn.4f004220
test eax, eax
je 0x4f004049
push esi
call sym.IMM32.dll_CtfImmGetTMAEFlags
push eax
call dword [sym.imp.MSCTF.dll_CtfImeCreateThreadMgr]
mov edi, eax
test edi, edi
js 0x4f00405d
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0xfdc]
test eax, eax
jns 0x4f004033
add ecx, eax
mov eax, dword [ecx + 0x804]
or dword [ecx + 0x800], 0x100
mov dword [ecx + 0x804], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.4f0051a0
mov esp, ebp
pop ebp
ret 8
call sym.IMM32.dll_CtfImmCoUninitialize
jmp 0x4f004049
push 0xd
call dword [sym.imp.win32u.dll_NtUserGetThreadState]
test eax, eax
jne 0x4f003f74
call fcn.4f017faa
test eax, eax
je 0x4f003fcb
jmp 0x4f003f74
cmp dword [eax + 0x18], edi
jne 0x4f003fcb
jmp 0x4f003fa2
Function at 0x4f004070
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4f01a01c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
call dword [sym.imp.MSCTF.dll_TF_GetAppCompatFlags]
test al, 4
jne 0x4f006c27
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0xfdc]
test ecx, ecx
jns 0x4f0040a5
add eax, ecx
mov eax, dword [eax + 0x800]
and eax, 0x2000
or eax, 0
jne 0x4f006c27
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0xfdc]
test ecx, ecx
jns 0x4f0040cb
add eax, ecx
test byte [eax + 0x81c], 2
jne 0x4f006c31
push 0xd
call dword [sym.imp.win32u.dll_NtUserGetThreadState]
test eax, eax
jne 0x4f004170
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4f004143
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push 0
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
mov edi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4f004138
push eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
test edi, edi
pop edi
je 0x4f004143
cmp dword [ebp - 0x14], 0
jne 0x4f004170
mov eax, dword [0x4f01ac28]
test dword [eax], 0x400
je 0x4f004156
or esi, 0x80000000
call fcn.4f004180
test eax, eax
jne 0x4f004175
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.4f0051a0
mov esp, ebp
pop ebp
ret
or esi, 2
jmp 0x4f004143
or esi, 0x40000000
jmp 0x4f00415f
mov esi, 8
jmp 0x4f0040b9
mov esi, 0x18
jmp 0x4f0040d8

Function at 0x4f004360
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x4f01a034]
push esi
cmp eax, 0xffffffff
je 0x4f0043af
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4f0043ab
mov eax, dword [0x4f01a9dc]
test eax, eax
je 0x4f006ce5
push 0x20
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4f0043af
push esi
push dword [0x4f01a034]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4f006d00
mov eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x18]
mov dword [0x4f01a9dc], eax
test eax, eax
je 0x4f0043af
jmp 0x4f004385
push esi
push 0
push dword [0x4f01a9dc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4f0043af
Function at 0x4f0046f0
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call dword [sym.imp.ntdll.dll_RtlDllShutdownInProgress]
test al, al
jne 0x4f004720
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xa0]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
cmp eax, dword [ecx + 0xc]
je 0x4f004720
pop ebp
jmp dword [sym.imp.MSCTF.dll_CtfImeDispatchDefImeMessage]
xor eax, eax
pop ebp
ret 0x10

Function at 0x4f005510
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, 0xfffffffe
je 0x4f005531
mov ecx, dword [esi + 4]
add ecx, edi
xor ecx, dword [eax + edi]
call fcn.4f0051a0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
add ecx, edi
xor ecx, dword [eax + edi]
pop edi
pop esi
pop ebp
jmp fcn.4f0051a0
Function at 0x4f00b010
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
mov byte [ebp - 1], 1
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, eax
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0xfdc]
test ecx, ecx
jns 0x4f00b03f
add eax, ecx
mov eax, dword [eax + 0x800]
and eax, 0x40
or eax, 0
je 0x4f00b051
xor al, al
jmp 0x4f00b054
mov al, byte [ebp - 1]
mov edi, dword [ebp + 8]
cmp ebx, edi
jne 0x4f00b063
test al, al
jne 0x4f00b178
push edi
call sym.IMM32.dll_ImmLoadIME
cmp ebx, edi
je 0x4f00b0cb
push ebx
call sym.IMM32.dll_ImmLockImeDpi
test eax, eax
je 0x4f00b09d
mov esi, dword [eax + 0x10]
push eax
call sym.IMM32.dll_ImmUnlockImeDpi
and esi, 0x100000
neg esi
sbb esi, esi
and esi, 0xfffffffd
add esi, 4
push esi
push 0x4f00bf00
push 0
call sym.IMM32.dll_ImmEnumInputContext
push 0
call sym.IMM32.dll_ImmGetDefaultIMEWnd
mov esi, eax
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f00b0c3
push ebx
push 0
push 0x285
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push edi
call dword [sym.imp.win32u.dll_NtUserSetThreadLayoutHandles]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push 0x4f00bf20
push 0
mov dword [ebp - 0xc], ebx
call sym.IMM32.dll_ImmEnumInputContext
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f00b178
push edi
push 1
push 0x285
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
call fcn.4f00db74
test eax, eax
je 0x4f00b178
test byte [eax + 0x50], 4
je 0x4f00b178
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0xfdc]
test ecx, ecx
jns 0x4f00b122
add eax, ecx
mov eax, dword [eax + 0x800]
and eax, 0x100
or eax, 0
je 0x4f00b178
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
jne 0x4f00b142
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call sym.IMM32.dll_ImmGetContext
mov esi, eax
test esi, esi
je 0x4f00b178
xor edx, edx
mov ecx, esi
inc edx
call fcn.4f002e80
test eax, eax
je 0x4f00b178
push dword [eax + 0x15c]
push 1
push 0x281
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call sym.IMM32.dll_ImmUnlockIMC
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4
Function at 0x4f00baa0
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4f01a01c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, dword [ebp + 8]
mov ecx, eax
mov eax, edi
sub eax, 1
je 0x4f00bb5d
sub eax, 1
je 0x4f00bb2b
mov eax, edi
mov edx, 0xe000
shr eax, 0x10
and eax, 0xf000
cmp ax, dx
jne 0x4f00bc17
cmp edi, ecx
je 0x4f00bc17
mov esi, 0x4f01a5c0
push esi
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov ecx, dword [0x4f01ac30]
jmp 0x4f00bb14
cmp dword [ecx + 8], edi
jne 0x4f00bb12
test byte [ecx + 0x50], 4
je 0x4f00bb1a
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4f00bb07
jmp 0x4f00bb1f
call fcn.4f00bc98
push esi
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
jmp 0x4f00bc17
cmp byte [0x4f01a5a0], 0
je 0x4f00bc17
mov esi, 0x4f01a5c0
push esi
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov edi, dword [0x4f01ac30]
test edi, edi
je 0x4f00bb1f
mov ecx, edi
call fcn.4f00bc98
test eax, eax
jne 0x4f00bb44
mov edi, dword [edi]
jmp 0x4f00bb4a
mov eax, 0xf000
shr ecx, 0x10
and ecx, eax
mov dword [ebp - 0x1c], eax
mov eax, 0xe000
mov dword [ebp - 0x20], eax
cmp cx, ax
jne 0x4f00bc17
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push esi
push esi
movzx ebx, ax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov edi, eax
test edi, edi
je 0x4f00bbe3
mov edx, edi
xor ecx, ecx
shl edx, 2
call fcn.4f002470
mov esi, eax
test esi, esi
je 0x4f00bc1a
push esi
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov edx, eax
xor ecx, ecx
test edx, edx
je 0x4f00bbd4
lea edi, [esi + 2]
mov ax, word [edi]
and ax, word [ebp - 0x1c]
cmp ax, word [ebp - 0x20]
jne 0x4f00bbcc
inc ecx
add edi, 4
cmp ecx, edx
jb 0x4f00bbb7
cmp ecx, edx
jae 0x4f00bbd4
movzx ebx, word [esi + ecx*4]
push esi
push 0
push dword [0x4f01a9dc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push 0x4f001784
lea eax, [ebp - 0x18]
push 9
push eax
call fcn.4f00bf3c
add esp, 0x10
lea eax, [ebp - 0x18]
push 1
push eax
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
test eax, eax
jne 0x4f00bc17
push 0x201
push 0x4f001790
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4f0051a0
leave
ret 4
Function at 0x4f00bd21
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f01a01c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov edi, edx
push ecx
push ecx
lea ecx, [ebp - 0x20c]
lea edx, [esi + 0xb8]
call fcn.4f00c1f9
test byte [esi + 0x158], 2
jne 0x4f00bd6f
lea ecx, [ebp - 0x20c]
call fcn.4f00af42
test eax, eax
je 0x4f00beed
push 8
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [edi], eax
test eax, eax
je 0x4f00beed
push 0x4f001674
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx], eax
test eax, eax
je 0x4f00beed
push 0x4f001680
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 4], eax
test eax, eax
je 0x4f00beed
push 0x4f001694
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 8], eax
test eax, eax
je 0x4f00beed
push 0x4f0016a4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0xc], eax
test eax, eax
je 0x4f00beed
push 0x4f0016b8
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x4f00beed
push 0x4f0016d0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x14], eax
test eax, eax
je 0x4f00beed
push 0x4f0016e4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x18], eax
test eax, eax
je 0x4f00beed
push 0x4f0016f4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x4f00beed
push 0x4f001700
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x20], eax
test eax, eax
je 0x4f00beed
push 0x4f00170c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x24], eax
test eax, eax
je 0x4f00beed
push 0x4f00171c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x28], eax
test eax, eax
je 0x4f00beed
push 0x4f001728
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x2c], eax
test eax, eax
je 0x4f00beed
push 0x4f00173c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x30], eax
test eax, eax
je 0x4f00beed
push 0x4f00174c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x34], eax
test eax, eax
je 0x4f00beed
push 0x4f001758
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x38], eax
test eax, eax
je 0x4f00beed
push 0x4f001770
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x3c], eax
xor eax, eax
inc eax
jmp 0x4f00beef
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4f0051a0
leave
ret 4
Function at 0x4f00c060
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4f01a01c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
push 0x15c
push ebx
push esi
call sub.ntdll.dll_memset
mov eax, edi
mov ecx, 0xe000
shr eax, 0x10
add esp, 0xc
and eax, 0xf000
cmp ax, cx
je 0x4f00c0f1
mov ecx, dword [0x4f01ac28]
mov eax, ecx
or eax, dword [0x4f01ac2c]
je 0x4f00c0f1
test byte [ecx], 4
je 0x4f00c0f1
push 0x4f0018f4
push 0x4f
lea ecx, [esi + 0xb8]
pop edx
call fcn.4f00c5bc
xor eax, eax
mov dword [esi], edi
mov dword [esi + 0x48], ebx
mov word [esi + 0x54], ax
or dword [esi + 0x158], 2
inc eax
mov dword [esi + 0x4c], 0xa0000
mov dword [esi + 0x50], 0x40000
jmp 0x4f00c17b
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x21c], eax
mov eax, 0x208
mov word [ebp - 0x21e], ax
lea eax, [ebp - 0x220]
push eax
push 0x10
push edi
mov dword [ebp - 0x214], ebx
call dword [sym.imp.ntdll.dll_RtlIntegerToUnicodeString]
test eax, eax
js 0x4f00c179
lea eax, [ebp - 0x210]
push eax
push 0x2000000
push ebx
push 0x4f0015e8
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x4f00c179
lea eax, [ebp - 0x214]
push eax
push 0x2000000
push ebx
push dword [ebp - 0x21c]
push dword [ebp - 0x210]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x4f00c18c
push dword [ebp - 0x210]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4f0051a0
leave
ret 8
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x50
push eax
lea eax, [esi + 0xb8]
push eax
push ebx
push ebx
push 0x4f001574
push dword [ebp - 0x214]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
push dword [ebp - 0x214]
test eax, eax
je 0x4f00c1c9
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x4f00c16d
xor eax, eax
mov word [esi + 0x156], ax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
push dword [ebp - 0x210]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
and dword [esi + 0x158], 0xfffffffd
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 0x48], ebx
call fcn.4f00c422
jmp 0x4f00c17b
Function at 0x4f00c1f9
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x4f00c275
push edi
test ebx, ebx
je 0x4f00c26f
xor eax, eax
mov dword [ebp - 4], eax
cmp word [ebx], ax
je 0x4f00c26f
mov edi, 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
cmp ecx, edi
jae 0x4f00c26f
test ecx, ecx
je 0x4f00c274
push 0x5c
pop eax
cmp word [esi + ecx*2 - 2], ax
je 0x4f00c23f
mov word [esi + ecx*2], ax
inc ecx
cmp ecx, edi
jae 0x4f00c26f
mov edx, ebx
lea eax, [edx + 2]
mov dword [ebp - 8], eax
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 4]
jne 0x4f00c24b
sub edx, dword [ebp - 8]
sub edi, ecx
sar edx, 1
cmp edi, edx
jbe 0x4f00c26f
push ebx
lea ecx, [esi + ecx*2]
mov edx, edi
call fcn.4f00c5bc
jmp 0x4f00c274
xor eax, eax
mov word [esi], ax
pop edi
pop esi
pop ebx
leave
ret 8