joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a92c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5af8d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push esi
mov esi, ecx
mov eax, dword [esi + 0x3100]
mov ecx, dword [esi + 0x3104]
mov dx, word [esi + 0x3108]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x310c]
mov dword [esp + 8], ecx
mov cx, word [esi + 0x3110]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x3114]
mov word [esp + 0xc], dx
mov dx, word [esi + 0x3112]
mov word [esp + 0x14], cx
mov ecx, dword [esi + 0x3118]
mov dword [esp + 0x18], eax
mov word [esp + 0x16], dx
mov edx, dword [esi + 0x311c]
lea eax, [esi + 0x3120]
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esi + 0x3124]
mov edx, dword [esi + 0x312c]
mov eax, dword [esi + 0x3128]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x3134]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x3138]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
lea ecx, [esi + 0x315c]
xor edx, edx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x50]
or al, 0xf0
cmp ecx, edx
mov dword [esp + 0x48], edx
mov dword [esp + 4], ecx
mov dword [esp + 0x2c], eax
je 0x4a93b1
mov eax, dword [esi + 0x3118]
cmp eax, edx
je 0x4a93ab
mov dword [esp + 0x1c], eax
jmp 0x4a93b5
mov dword [esp + 0x1c], esi
jmp 0x4a93b5
mov dword [esp + 0x1c], edx
lea edx, [esp + 4]
push edx
call fcn.004a57d0
add esp, 4
lea ecx, [esp + 0x24]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x48
ret 4
Function at 0x4af0f0
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1054
call fcn.004be180
mov eax, dword [esp + 0x1060]
push ebx
push ebp
push esi
push edi
lea edi, [ecx + 0x64]
test eax, eax
jne 0x4af10f
lea edi, [ecx + 0x68]
mov eax, dword [esp + 0x106c]
test eax, eax
jne 0x4af1b8
mov eax, dword [edi]
push 0x645a34
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, dword [edi]
push 0x658680
push edi
mov esi, eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 0x10
test eax, eax
je 0x4af2cc
test esi, esi
je 0x4af2cc
push 2
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_rewind]
add esp, 0x14
test edi, edi
jg 0x4af177
push esi
jmp 0x4af2c3
mov al, byte [esi + 0xc]
mov bl, 0x10
test bl, al
jne 0x4af1b2
mov edi, dword [esp + 0x1068]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x1000
lea eax, [esp + 0x6c]
push 1
push eax
call ebp
mov ecx, dword [edi]
add esp, 0x10
lea edx, [esp + 0x64]
push 0
push eax
push edx
push edi
call dword [ecx + 0x10]
test byte [esi + 0xc], bl
je 0x4af18d
push esi
jmp 0x4af2c3
lea eax, [esp + 0x64]
add ecx, 0x34
push eax
push 0
call fcn.004019ce
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x658680
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x20]
push ecx
call fcn.004afec0
add esp, 8
mov ecx, eax
call fcn.004019ce
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push eax
call esi
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4af245
lea edx, [esp + 0x64]
push edx
push 0
push 0x658680
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x658680
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x20]
push eax
call fcn.004afec0
add esp, 8
mov ecx, eax
call fcn.004019ce
push eax
call esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x64]
push ecx
mov ecx, edi
call fcn.004bd21e
mov edi, dword [edi]
push 0x646844
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4af2cc
mov esi, dword [esp + 0x1068]
lea eax, [esp + 0x1c]
push 1
push eax
mov edx, dword [esi]
push esi
call dword [edx + 0x30]
xor ebx, ebx
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x64]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
push edx
lea eax, [esp + 0x68]
push 0x1000
push eax
push esi
call dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
push ebp
push ecx
lea edx, [esp + 0x6c]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esp + 0x34]
add esp, 0x10
inc ebx
shr eax, 0xc
cmp ebx, eax
jbe 0x4af27e
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1054
ret 0xc
Function at 0x4af2e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afe7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor eax, eax
mov dword [ebp - 0x10], esp
mov ebx, dword [esi + 8]
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x4af34d
lea edi, [ebx + 8]
mov eax, 1
mov dword [ebp - 0x14], edi
mov ecx, eax
dec eax
test ecx, ecx
mov dword [ebp - 0x18], eax
je 0x4af347
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
add edi, 0x20
mov dword [ebp - 0x14], edi
jmp 0x4af31a
mov ebx, dword [ebx]
xor eax, eax
jmp 0x4af30b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
call sub.MFC42.DLL_CPlex::FreeDataChain
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
lea edi, [esi + 0x64]
mov dword [esi + 0x18], 0
push 0x658680
mov eax, dword [edi]
push eax
call ebx
add esp, 8
test eax, eax
je 0x4af38b
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x68]
push 0x658680
push eax
call ebx
add esp, 8
test eax, eax
je 0x4af3a7
mov eax, dword [esi + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x658680
mov ecx, edi
call fcn.004bd21e
push 0x658680
lea ecx, [esi + 0x34]
call fcn.004bd21e
push 0x658680
lea ecx, [esi + 0x20]
call fcn.004bd21e
mov edx, dword [esi + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x70]
xor edi, edi
cmp eax, edi
mov dword [esi + 0x44], edi
je 0x4af3ef
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x70], edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4afec0
Capabilities:
Access peb ldr_data
Create directory
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5b0037
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov dword [esp + 0x10], 0
mov al, byte [0x6901bc]
mov ebx, 1
test bl, al
mov dword [esp + 0x24], ebx
jne 0x4aff17
or al, bl
push 0x658680
mov ecx, 0x6901b8
mov byte [0x6901bc], al
call sub.MFC42.DLL_CString::CString_1
push 0x4b0090
call fcn.004be164
add esp, 4
mov eax, dword [0x6901b8]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x658680
push eax
call esi
add esp, 8
test eax, eax
jne 0x4aff5b
lea ecx, [esp + 0xc]
push ecx
call fcn.00402545
add esp, 4
push eax
mov ecx, 0x6901b8
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x30]
push 0x658680
push edx
call esi
add esp, 8
test eax, eax
je 0x4b0053
push edi
mov edi, dword [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040204f
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0x64
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::Left
push eax
lea edx, [esp + 0x1c]
push 0x6901b8
push edx
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_operator_4
push 0x6458b4
push eax
lea eax, [esp + 0x14]
mov byte [esp + 0x30], 5
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 7
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, dword [esp + 0x30]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov esi, dword [esp + 0x2c]
push 0x6901b8
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4b5e90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b06c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call sub.MFC42.DLL_CCmdTarget::CCmdTarget
xor edi, edi
mov ecx, esi
mov dword [esp + 0x14], edi
mov dword [esi], 0x5d8fe8
call sub.MFC42.DLL_CCmdTarget::EnableAutomation
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x34], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4b6520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b0730
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x24]
push ebx
push esi
push edi
mov edi, ecx
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString_3
mov bl, 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::TrimRight
push 0x20
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jle 0x4b65fb
mov ecx, dword [esp + 0x30]
push 0x20
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Find_2
sub esi, eax
lea edx, [esp + 0x10]
dec esi
lea ecx, [esp + 0x30]
push esi
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
push 0x20
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Find_2
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
jmp 0x4b6609
push 0x658680
lea ecx, [esp + 0x10]
call fcn.004bd21e
push 0
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_4
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [edi + 0x24]
push ecx
add edx, 0x30
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x3c], 5
call sub.MFC42.DLL_CString::CString_4
mov byte [esp + 0x38], bl
call fcn.004767e0
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4
Function at 0x4b6760
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x10], esp
mov esi, ecx
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CString::CString_3
mov ebx, 1
push str.CStr_
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004bd21e
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004bd60e
push 0x648cac
lea ecx, [ebp - 0x14]
call fcn.004bd60e
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x14]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esi + 0x20]
call fcn.0047a080
test eax, eax
jne 0x4b6805
lea ecx, [ebp - 0x1c]
push 0x633e30
push ecx
mov dword [ebp - 0x1c], str.General_Error_in_GetValue__
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x14]
push edx
call sub.MFC42.DLL_CString::operator_1
jmp 0x4b682d
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea edx, [ebp - 0x18]
push str.Thread:_d____s
push edx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [ebp - 0x18]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x4b688e
push 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x24]
inc edx
push edx
push 0x4c9
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x4b68c0
push eax
call fcn.004beec0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4b7680
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5b0913
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
mov dword [esp + 4], esi
call sub.MFC42.DLL_CCmdTarget::CCmdTarget
lea ecx, [esi + 0x30]
mov dword [esp + 0x20], 0
call fcn.004bb800
mov ecx, esi
mov byte [esp + 0x20], 1
mov dword [esi], 0x5d9730
call sub.MFC42.DLL_CCmdTarget::EnableAutomation
xor ecx, ecx
xor eax, eax
push ecx
push ecx
mov dword [esi + 0x20], eax
push ecx
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x2c], eax
lea eax, [esp + 8]
push eax
mov ecx, esi
mov dword [esp + 0x14], 0
mov word [esp + 0xc], 2
call fcn.004b9080
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4b8650
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x5b0a50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 8]
mov byte [esp + 0x14], 1
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea edx, [esp + 0x24]
push str.Thread:_d____s_n
push edx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esp + 0x2c]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0x28]
push 0
mov edi, dword [ecx + 0x24]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esi + 0x28]
push eax
push edi
call fcn.004a90c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4b96e0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x3114]
mov edi, edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4b9701
pop edi
mov eax, 1
pop esi
ret
test edi, edi
jne 0x4b9812
push ebx
lea ebx, [esi + 0x32ec]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 4]
shl edi, 0x1d
push ebx
sar edi, 0x1f
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
pop ebx
je 0x4b9734
pop edi
mov eax, 1
pop esi
ret
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ecx, ecx
mov cx, word [esi + 0x3184]
push ecx
call edi
test ah, 0x80
je 0x4b97a6
push 0x12
call edi
mov dl, byte [esi + 0x3186]
sar eax, 0xf
shr dl, 2
and eax, 1
and edx, 1
xor eax, edx
test ax, ax
jne 0x4b97a6
push 0x11
call edi
mov cl, byte [esi + 0x3186]
sar eax, 0xf
shr cl, 1
and eax, 1
and ecx, 1
xor eax, ecx
test ax, ax
jne 0x4b97a6
push 0x10
call edi
mov dl, byte [esi + 0x3186]
sar eax, 0xf
and eax, 1
and edx, 1
xor eax, edx
test ax, ax
jne 0x4b97a6
pop edi
mov eax, 1
pop esi
ret
xor eax, eax
mov ax, word [esi + 0x3110]
push eax
call edi
test ah, 0x80
je 0x4b9812
push 0x12
call edi
mov cl, byte [esi + 0x3112]
sar eax, 0xf
shr cl, 2
and eax, 1
and ecx, 1
xor eax, ecx
test ax, ax
jne 0x4b9812
push 0x11
call edi
mov dl, byte [esi + 0x3112]
sar eax, 0xf
shr dl, 1
and eax, 1
and edx, 1
xor eax, edx
test ax, ax
jne 0x4b9812
push 0x10
call edi
mov cl, byte [esi + 0x3112]
sar eax, 0xf
and eax, 1
and ecx, 1
xor eax, ecx
test ax, ax
jne 0x4b9812
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x4bac80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5b0de0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp]
push eax
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp]
mov byte [esp + 0x14], 1
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4bad17
push 0x6458b4
lea edx, [esp + 0xc]
push 0x6597a8
push edx
call sub.MFC42.DLL_operator_3
lea ecx, [esp + 0x1c]
lea edx, [esp + 4]
push ecx
push eax
push edx
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_operator_4
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x18], 3
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 4]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp]
mov ecx, dword [esp + 0x20]
push eax
call fcn.004797d0
lea ecx, [esp]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4bfa20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
lea edi, [esi + 4]
push edi
push 0x20019
push 0
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4bfa8f
mov eax, dword [esi + 8]
lea ecx, [esp + 0xc]
lea ebx, [esi + 0x10]
push ecx
lea edx, [esp + 0x14]
push ebx
push edx
push 0
push eax
mov eax, dword [edi]
push eax
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4bfa86
mov ecx, dword [edi]
mov dword [esi + 0x18], 1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx]
pop edi
pop esi
pop ebx
add esp, 8
ret
mov edx, dword [edi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x4bfaa0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
mov eax, dword [esi + 0xc]
mov edx, dword [esi]
lea edi, [esi + 4]
push ecx
push edi
push 0
push 0x20006
push 0
push 0x658680
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4bfafa
mov eax, dword [esi + 8]
mov edx, dword [edi]
lea ecx, [esi + 0x10]
push 4
push ecx
push 4
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4bfaf1
mov dword [esi + 0x18], 1
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ecx
ret

Function at 0x4bfaa1
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
mov eax, dword [esi + 0xc]
mov edx, dword [esi]
lea edi, [esi + 4]
push ecx
push edi
push 0
push 0x20006
push 0
push 0x658680
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4bfafa
mov eax, dword [esi + 8]
mov edx, dword [edi]
lea ecx, [esi + 0x10]
push 4
push ecx
push 4
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4bfaf1
mov dword [esi + 0x18], 1
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ecx
ret
Function at 0x4bfc00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5b1229
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 8]
mov dword [esp + 0x1c], 1
mov ecx, edi
call sub.MFC42.DLL_CString::CString_3
lea ebp, [esi + 0xc]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_3
lea ebx, [esi + 0x10]
mov byte [esp + 0x1c], 3
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x14]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString_3
push 0x658680
mov ecx, ebx
mov byte [esp + 0x20], 5
call fcn.004bd21e
lea eax, [esp + 0x28]
lea ecx, [esi + 0x14]
push eax
call sub.MFC42.DLL_CString::operator_3
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi + 0x1c], ecx
xor ebx, ebx
push 0x6458b4
lea ecx, [esp + 0x28]
mov dword [esi], edx
mov dword [esi + 0x18], ebx
call sub.MFC42.DLL_CString::TrimLeft_1
push 0x5c
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, ebp
mov byte [esp + 0x20], 6
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 5
call sub.MFC42.DLL_CString::CString
push 0x6458b4
mov ecx, ebp
call sub.MFC42.DLL_CString::TrimRight_2
mov ecx, dword [esp + 0x24]
push 0x5c
mov ebp, dword [ecx - 8]
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::ReverseFind
sub ebp, eax
lea edx, [esp + 0x2c]
push ebp
push edx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Right
push eax
mov ecx, edi
mov byte [esp + 0x20], 7
call sub.MFC42.DLL_CString::operator_3
mov byte [esp + 0x1c], 5
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
push 0x6458b4
mov ecx, edi
call sub.MFC42.DLL_CString::TrimLeft_1
push 0x6458b4
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight_2
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.004bfdf0
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10