joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458500
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x214]
push edi
mov edi, ecx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4585b0
push 0x25
mov ecx, esi
call sub.MFC42u.DLL_CString::Find
test eax, eax
jl 0x458575
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0xf4]
test al, al
jne 0x458575
mov eax, dword [esi]
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x458575
cmp eax, 0x103
jae 0x458575
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x4a01d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov eax, dword [esi]
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jbe 0x4585b0
cmp eax, 0x103
jae 0x4585b0
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x4a01d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
pop edi
pop esi
add esp, 0x20c
ret 4

Function at 0x459610
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2ac
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2bc]
mov ebp, dword [esp + 0x2c4]
xor ebx, ebx
mov ax, word [esi]
push edi
mov dword [esp + 0x1c], 0x3a0000
mov word [esp + 0x1c], ax
push ebx
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0x28]
push ebx
push 3
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x2d0]
mov ecx, dword [esp + 0x2d8]
push ebx
push 3
lea edx, [esp + 0x28]
push 0x80000000
push edx
mov dword [esp + 0x30], 0x5c005c
mov dword [esp + 0x34], 0x5c002e
mov dword [esp + 0x3c], ebx
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
mov dword [esp + 0x24], eax
je 0x459718
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0xc4]
push 0x200
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 0x200
jne 0x45970d
lea eax, [esp + 0xbf]
push 8
push eax
push str.NTFS
call dword [sym.imp.MSVCRT.dll_strncmp]
mov ecx, dword [esp + 0x2d8]
add esp, 0xc
test eax, eax
push ecx
push ebp
push edi
lea edx, [esp + 0x30]
push esi
lea eax, [esp + 0xcc]
push edx
push eax
jne 0x459703
call fcn.0045c130
jmp 0x459708
call fcn.0045a5c0
add esp, 0x18
mov ebx, eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x2ac
ret
Function at 0x459730
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp], eax
mov edx, dword [esp + 0x20]
mov dword [esp + 4], eax
push esi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [eax]
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, esi
pop esi
sete al
add esp, 0x14
ret

Function at 0x45a8d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp], eax
mov edx, dword [esp + 0x20]
mov dword [esp + 4], eax
push esi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [eax]
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, esi
pop esi
sete al
add esp, 0x14
ret

Function at 0x45e270
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov dword [esi + 0xe8], 0
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x45dbf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xcc], eax
jne 0x45e2b6
mov ecx, dword [0x5166dc]
push eax
push eax
mov edx, dword [ecx*4 + 0x4e5008]
mov ecx, esi
push edx
call sub.MFC42u.DLL_CWnd::MessageBoxW
pop esi
pop ecx
ret
Function at 0x464759
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4879b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
lea ebx, [esi + 0x60]
mov ecx, ebx
call fcn.0040c100
mov ecx, dword [esi + 0xd4]
mov edx, dword [esi + 0xd0]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call fcn.0041f230
add esp, 0xc
cmp al, 1
jne 0x4648a4
push ebp
push edi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0x28], esi
mov ebp, dword [eax]
lea edi, [eax + 4]
cmp ebp, esi
jbe 0x464883
push 0
push 0
push 0
push 0
push edi
push esi
push 1
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::InsertItem
lea eax, [edi + 0x28]
mov ecx, ebx
push eax
push 1
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x234]
lea edx, [esp + 0x10]
push ecx
push str.0x_04X
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 2
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x238]
lea edx, [esp + 0x10]
push ecx
push str.0x_08X
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 3
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x230]
lea edx, [esp + 0x10]
push ecx
push 0x4a13f0
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 4
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x23c]
lea edx, [esp + 0x10]
push ecx
push 0x4a13f0
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 5
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
inc esi
add edi, 0x240
cmp esi, ebp
jb 0x4647af
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov esi, dword [esp + 0x1c]
pop edi
pop ebp
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_4
mov ecx, dword [esi + 0x80]
push 0
push 0
push 0x1004
push ecx
mov dword [esp + 0x30], 1
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [0x5166dc]
mov ecx, dword [esi + 0xcc]
push eax
mov eax, dword [edx*4 + 0x4e5cf8]
lea edx, [esp + 0x10]
push eax
push ecx
push str.__s__s__d_
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0x14
mov ecx, esi
push eax
call sub.MFC42u.DLL_CWnd::SetWindowTextW
push 0
mov ecx, ebx
call fcn.0040c4f0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4669d0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x487bfc
push eax
mov dword fs:[0], esp
sub esp, 0x354
push ebx
push ebp
mov ebp, dword [esp + 0x370]
xor bl, bl
push edi
mov edi, ecx
test ebp, ebp
jbe 0x466b90
push 0
push str.All_Files__._.
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x38]
call sub.MFC42u.DLL_CFileDialog::CFileDialog
lea ecx, [esp + 0x20]
mov dword [esp + 0x368], 0
call sub.MFC42u.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x466b65
lea eax, [esp + 0xc]
push esi
push eax
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CFileDialog::GetPathName
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x36c], 1
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x466a84
mov eax, dword [0x5166dc]
push 0x34
mov ecx, edi
mov edx, dword [eax*4 + 0x4e6720]
mov eax, dword [eax*4 + 0x4e6714]
push edx
push eax
call sub.MFC42u.DLL_CWnd::MessageBoxW
cmp eax, 6
jne 0x466b53
push ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x466b35
mov ecx, dword [esp + 0x374]
mov edx, dword [edi + 0x214]
mov eax, dword [edi + 0x210]
push esi
push ebp
push ecx
push edx
push eax
call fcn.004200a0
add esp, 0x14
cmp al, 1
jne 0x466b0d
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CFile::CFile
mov ecx, dword [esp + 0x10]
push 0
push 0x1001
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x378], 2
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x466afc
push ebp
push esi
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CFile::Write
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CFile::Close
mov bl, 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x36c], 1
call fcn.0047f9b4
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp bl, 1
jne 0x466b35
mov eax, dword [0x5166dc]
push 0
mov edx, dword [eax*4 + 0x4e6720]
mov eax, dword [eax*4 + 0x4e672c]
push edx
push eax
jmp 0x466b4c
mov eax, dword [0x5166dc]
push 0
mov ecx, dword [eax*4 + 0x4e6720]
mov edx, dword [eax*4 + 0x4e6738]
push ecx
push edx
mov ecx, edi
call sub.MFC42u.DLL_CWnd::MessageBoxW
lea ecx, [esp + 0x10]
mov byte [esp + 0x36c], 0
call sub.MFC42u.DLL_CString::CString
pop esi
lea ecx, [esp + 0xd0]
mov dword [esp + 0x368], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x368], 0xffffffff
call fcn.0047f8e8
mov ecx, dword [esp + 0x360]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x360
ret 8
Function at 0x46ae06
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x488188
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x60]
mov ecx, edi
call fcn.0040c100
mov ecx, esi
call fcn.0046ab90
test eax, eax
jne 0x46ae2b
push esi
push 0x46a9b0
call dword [sym.imp.USER32.dll_EnumWindows]
push 3
mov ecx, edi
call fcn.0040c4f0
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [esi + 0xd0]
push 0
test eax, eax
push 0
mov dword [esp + 0x1c], 0
push 0x1004
jne 0x46ae8f
mov eax, dword [esi + 0x80]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x5166dc]
push eax
mov eax, dword [esi + 0xcc]
mov edx, dword [ecx*4 + 0x4e72b0]
lea ecx, [esp + 0xc]
push edx
push eax
push str.__s__s__d_
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0x14
jmp 0x46aebc
mov edx, dword [esi + 0x80]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [0x5166dc]
lea edx, [esp + 0xc]
mov ecx, dword [eax*4 + 0x4e72b0]
push ecx
push str._s__d_
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
mov eax, dword [esp + 8]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CWnd::SetWindowTextW
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x46c2d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x5568a8]
push ebx
cmp eax, 1
push ebp
jne 0x46c337
mov ebx, dword [esp + 0xc]
push 1
lea eax, [ebx + 0xf]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x46c337
mov ebp, dword [esp + 0x10]
push esi
push edi
mov ecx, 0x10
mov edi, ebp
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
je 0x46c30c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46c337
lea ecx, [esp + 0xc]
push ecx
push 0x40
push 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp]
mov dword [ebx], edx
mov eax, dword [ebp + 4]
mov dword [ebx + 4], eax
mov ecx, dword [ebp + 8]
mov dword [ebx + 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 0xc], edx
pop ebp
pop ebx
ret

Function at 0x46c340
Capabilities:
Continue service
Query service status
Start service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x46c3c1
push ebx
push esi
push 0x54
push str.CryptSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x46c3bc
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x46c3b9
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x46c3a6
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret
cmp eax, 7
jne 0x46c3b9
lea ecx, [esp + 0xc]
push ecx
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret
Function at 0x46c6f0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4928a0
push 0x47fe4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, 0xffffffff
je 0x46c7f7
call fcn.0046c340
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46c7e4
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x28]
push eax
push ebx
lea ecx, [ebp - 0x20]
push ecx
push 0x46c6c0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x46c7f0
mov dword [ebp - 4], ebx
mov edx, dword [ebp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x46c799
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], 0x20100607
jne 0x46c7c3
mov ebx, 1
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x46c7f0
push edi
push esi
call fcn.0046c3d0
add esp, 8
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d9b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x488480
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
xor edi, edi
mov ebx, eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], edi
mov word [esp + 0x14], di
mov dword [esp + 0x16], ebx
mov word [esp + 0x1a], ax
call sub.MFC42u.DLL_CString::CString_4
push 0x4e7664
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 1
call fcn.0047f984
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 8]
cmp eax, edi
mov dword [esp + 0x10], eax
jle 0x46da5c
push ebp
lea ebp, [esp + 0x18]
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
mov si, word [edx + edi*2]
push esi
call sub.MFC42u.DLL_CString::operator_2
cmp si, 0x2e
jne 0x46da52
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
lea ecx, [esp + 0x10]
mov word [ebp], ax
push 0x5165f8
call sub.MFC42u.DLL_CString::operator
mov ebx, dword [esp + 0x1a]
add ebp, 2
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x46da13
pop ebp
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
and esi, 0xffff
mov edx, dword [esp + 0x1a]
shl esi, 8
and ebx, 0xffff
and ecx, 0xffff
add esi, ebx
and edx, 0xffff
shl esi, 8
add esi, ecx
lea ecx, [esp + 0xc]
shl esi, 8
add esi, edx
mov byte [esp + 0x28], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x46dc90
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4884c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
push 0xcb
mov dword [esp + 0x18], ebp
call sub.MFC42u.DLL_CDialog::CDialog
mov dword [ebp], 0x48acdc
xor edi, edi
lea ecx, [ebp + 0x60]
mov dword [esp + 0x24], edi
call fcn.0040b710
mov ebx, 1
mov dword [ebp], 0x492978
mov byte [esp + 0x24], bl
mov dword [ebp + 0xcc], edi
mov dword [ebp + 0xd0], edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x46dd02
mov dword [ebp + 0xd0], ebx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, edi
je 0x46ddb5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlFormatCurrentUserKeyPath
push esi
call edi
push str.RtlFreeUnicodeString
push esi
mov ebx, eax
call edi
mov esi, eax
test ebx, ebx
mov dword [esp + 0x2c], esi
je 0x46ddb5
test esi, esi
je 0x46ddb5
lea ecx, [esp + 0x14]
push ecx
call ebx
test eax, eax
jne 0x46ddb5
mov edx, dword [esp + 0x14]
and edx, 0xffff
add edx, 2
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp + 0xcc], edi
je 0x46ddae
mov ecx, dword [esp + 0x14]
xor eax, eax
and ecx, 0xffff
add ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [ebp + 0xcc]
and ecx, 0xffff
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
call esi
push ebp
push 0x600
mov ecx, ebp
call fcn.00403a90
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x46f670
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x214]
push edi
mov edi, ecx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x46f720
push 0x25
mov ecx, esi
call sub.MFC42u.DLL_CString::Find
test eax, eax
jl 0x46f6e5
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0xf4]
test al, al
jne 0x46f6e5
mov eax, dword [esi]
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x46f6e5
cmp eax, 0x103
jae 0x46f6e5
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x4a01d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov eax, dword [esi]
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jbe 0x46f720
cmp eax, 0x103
jae 0x46f720
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x4a01d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
pop edi
pop esi
add esp, 0x20c
ret 4
Function at 0x46fc10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x488680
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push ebp
push esi
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_4
xor ebp, ebp
push 0x100000
mov dword [esp + 0x34], ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x46fdc7
push edi
lea ecx, [esp + 0x18]
call fcn.0042f370
mov edi, dword [esp + 0x3c]
mov byte [esp + 0x34], 1
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0x18]
push eax
push edi
call fcn.0042f5b0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push 0x20019
call fcn.0042f450
push eax
lea ecx, [esp + 0x24]
call fcn.0042f460
push eax
call fcn.0041f4e0
add esp, 0x10
cmp al, 1
jne 0x46fdae
mov dword [esp + 0x3c], ebp
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
push 0
push 0
push 1
push 0
push 0x100000
push esi
push 1
push ecx
push edx
push 0x21
call fcn.0041f560
add esp, 0x28
cmp al, 1
jne 0x46fda3
mov eax, dword [esi + 0x10]
cmp eax, 2
jb 0x46fd9a
cmp dword [esi + 8], 0xffffffff
je 0x46fd9a
shr eax, 1
lea ecx, [esp + 0x10]
mov di, word [esi + eax*2 + 0x14]
lea eax, [esi + eax*2 + 0x14]
mov word [eax], 0
lea eax, [esi + 0x14]
push eax
push 0x4a01d8
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esi + 0x10]
add esp, 0xc
shr edx, 1
push 0
push 0
mov word [esi + edx*2 + 0x14], di
mov eax, dword [ebx + 0xc0]
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
mov edi, eax
push 0
lea ebp, [ebx + 0xa0]
push ecx
push edi
push 1
mov ecx, ebp
call sub.MFC42u.DLL_CListCtrl::InsertItem
mov edx, dword [esp + 0x40]
mov ecx, ebp
push edx
push 1
push edi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov eax, dword [esi + 8]
cmp dword [eax + esi], 0
je 0x46fd79
lea ecx, [esp + 0x10]
push str.Enabled
push ecx
jmp 0x46fd83
lea edx, [esp + 0x10]
push str.Disable
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x18]
add esp, 8
mov ecx, ebp
push eax
push 2
push edi
call sub.MFC42u.DLL_CListCtrl::SetItemText
inc dword [esp + 0x3c]
jmp 0x46fcae
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.0042f420
pop edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8