joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443ca0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x443de0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
push edi
ja 0x443e60
je 0x443e51
cmp eax, 0x80000101
ja 0x443e4a
je 0x443e51
cmp eax, 0x80000004
je 0x443e2d
cmp eax, 0x80000005
jne 0x443e75
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], 3
test eax, eax
je 0x443ebb
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x443ebb
mov ebp, dword [esp + 0x44]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 1
mov ebx, ecx
inc ebx
jmp 0x443ebb
cmp eax, 0x80000201
jne 0x443e75
mov ebx, 4
lea ebp, [esp + 0x44]
mov dword [esp + 0xc], ebx
jmp 0x443ebb
cmp eax, 0x80000401
je 0x443ea6
cmp eax, 0x80000501
je 0x443e92
cmp eax, 0x80000601
je 0x443e7e
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.00448704
jmp 0x443eb3
fld dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.00448704
jmp 0x443eb3
mov eax, dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
lea ebp, [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00446120
mov edi, dword [esp + 0x3c]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x20], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 0
test edx, edx
je 0x443f96
test ecx, ecx
je 0x443f96
inc ecx
push esi
push ecx
call fcn.004489d7
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004489b0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x443f38
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x443f8c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x443f81
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00448768
add esp, 4
pop esi
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x443fb0
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.0043fee0
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x444007
push ebx
push edi
call fcn.0043ff70
push esi
mov ebx, esi
call fcn.0043fee0
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x443fde
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x444170
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0x444183
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.004466f0
add esp, 4
test eax, eax
jne 0x444195
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x24]
test edi, edi
jg 0x4441a4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x4441fb
mov ebx, dword [ebx + 4]
push edi
call fcn.004489d7
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push esi
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4441de
push ebp
call fcn.00448768
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.00446440
push ebp
mov esi, eax
call fcn.00448768
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x44423d
mov ebx, dword [ebx + 4]
lea edx, [edi + 8]
push edx
call fcn.0043fee0
mov esi, eax
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0x44423a
push esi
call fcn.0043ff70
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4443f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x444403
xor eax, eax
pop esi
add esp, 0x10
ret
push esi
call fcn.004466f0
add esp, 4
test eax, eax
jne 0x444415
pop esi
add esp, 0x10
ret
mov eax, dword [esi]
mov ecx, 1
push ebx
push ebp
cmp eax, ecx
push edi
mov dword [esp + 0x10], 0
jne 0x4444d6
mov eax, dword [esi + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x14], ecx
jle 0x444553
lea ebx, [esp + 0x34]
mov eax, dword [ebx + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0x44445e
mov esi, dword [ebx]
jmp 0x444472
push ebx
call fcn.004468a0
mov esi, eax
add esp, 4
test esi, esi
je 0x4444b6
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x44449d
lea edx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44449d
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x4444aa
push esi
call fcn.00448fae
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x444553
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x44444e
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
cmp eax, 2
jne 0x444553
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
jle 0x444553
dec eax
lea ebx, [esp + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0x444507
mov esi, dword [ebx]
jmp 0x44451b
push ebx
call fcn.004468a0
mov esi, eax
add esp, 4
test esi, esi
je 0x444545
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x444538
mov eax, dword [esp + 0x18]
push ecx
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
test ebp, ebp
je 0x444545
push esi
call fcn.00448fae
add esp, 4
mov eax, dword [esp + 0x24]
add ebx, 0xc
dec eax
mov dword [esp + 0x24], eax
jne 0x4444f7
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
Function at 0x4445f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x444631.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x444631.2
jmp dword [eax*4 + 0x4446bc]
mov word [esp + 0x48], di
jmp 0x44466a
mov word [esp + 0x48], 2
jmp 0x44466a
mov word [esp + 0x48], 3
jmp 0x44466a
mov word [esp + 0x48], 4
jmp 0x44466a
mov word [esp + 0x48], 7
jmp 0x44466a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x4446b4
cmp dword [esp + 0x70], edi
je 0x4446a0
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x444e50
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x444e63
xor eax, eax
pop esi
add esp, 8
ret
push esi
call fcn.004466f0
add esp, 4
test eax, eax
jne 0x444e75
pop esi
add esp, 8
ret
mov eax, dword [esi]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push edi
mov dword [esp + 0x10], 0
jne 0x444eec
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x444f1e
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x444ed8
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x444ea8
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 8
ret
cmp eax, 2
jne 0x444f1e
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x444f1e
lea edi, [esp + 0x2c]
lea ebx, [eax - 1]
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, dword [eax + 4]
add eax, 8
push ecx
push eax
mov ecx, esi
call dword [edx + 0x24]
add edi, 0xc
dec ebx
jne 0x444f07
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x402518
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
jmp 0x452090
push 0xffffffffffffffff
push 0x528feb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x3c]
call fcn.004d01b0
xor edi, edi
lea eax, [esp + 0xc]
push edi
push eax
push edi
push 0x30
mov dword [esp + 0x34], edi
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
sub ecx, eax
xor eax, eax
cmp ecx, 0x320
mov dword [esi + 0x24], edi
setg al
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, 1
mov dword [esi], 2
mov dword [esi + 0x1c], eax
mov dword [esi + 0x14], eax
or eax, 0xffffffff
mov dword [esi + 4], 2
mov dword [esi + 0x20], edi
mov dword [esi + 0x10], 0x1e00000
mov dword [esi + 0x18], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
call fcn.00401f28
neg eax
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x1b0], edi
sbb eax, eax
mov dword [esi + 0x1b8], edi
neg eax
inc eax
mov dword [esi + 0x1bc], edi
mov dword [esi + 0x34], eax
mov dword [esi + 0x1b4], 0x3ff00000
mov dword [esi + 0x1c0], 0x320
mov dword [esi + 0x1c4], 0x258
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x402577
Capabilities:
Encode data using xor

Disassembly:
jmp 0x42b5d0
push ecx
push 0
push 0
push 0
lea eax, [esp + 0xc]
push 0
push eax
push 0
push 0
push 0x553028
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
mov eax, 0x13371337
je 0x42b5fa
mov eax, dword [esp]
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jbe 0x42b624
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
shr edx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x551f64]
xor eax, edx
inc ecx
dec esi
jne 0x42b608
pop ebx
pop esi
pop ecx
ret 8
Function at 0x4029b4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x42b650
push ecx
push 0
push 0
push 0
lea eax, [esp + 0xc]
push 0
push eax
push 0
push 0
push 0x553028
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
mov eax, 0x13371337
je 0x42b67a
mov eax, dword [esp]
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jbe 0x42b6a4
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
shr edx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x551f64]
xor eax, edx
inc ecx
dec esi
jne 0x42b688
pop ebx
mov edx, dword [esp + 0x14]
xor ecx, ecx
cmp edx, eax
pop esi
sete cl
mov eax, ecx
pop ecx
ret 0xc
Function at 0x402b08
Capabilities:
Inspect load icon resource

Disassembly:
jmp 0x45b3c0
push 0xffffffffffffffff
push 0x529af9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004fe0ee
push 0x2f62
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x36b5
push eax
call edi
mov ebx, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push 0x36b6
push eax
call edi
mov ebp, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push 0x36b7
push eax
call edi
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push 0x4e51
push eax
call edi
push ebx
lea ecx, [esi + 0xe0]
mov edi, eax
call fcn.0048c1e0
push ebp
lea ecx, [esi + 0xa0]
call fcn.0048c1e0
mov eax, dword [esp + 0x18]
lea ebp, [esi + 0x60]
push eax
mov ecx, ebp
call fcn.0048c1e0
lea ecx, [esi + 0x120]
test ecx, ecx
je 0x45b484
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x45b484
push edi
call fcn.0048c1e0
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov edi, dword [eax + 0xac]
mov ecx, dword [edi + 8]
mov dword [edi + 0x18], 0x19
mov edx, dword [ecx]
mov eax, dword [edx - 8]
test eax, eax
je 0x45b58d
mov eax, dword [edi + 4]
xor ebx, ebx
test eax, eax
jle 0x45b574
lea ecx, [esp + 0x14]
call fcn.004fdecc
lea eax, [esp + 0x1c]
mov dword [esp + 0x128], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 1
lea ecx, [esp + 0x20]
push 0x104
push ecx
lea edx, [esp + 0x20]
push ebx
push edx
mov ecx, edi
call sub.MFC42.DLL_CRecentFileList::GetDisplayName
test eax, eax
je 0x45b554
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push 0
mov edx, dword [ecx + 0x20]
push 0x143
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 4
mov ebp, eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x128], 1
je 0x45b53d
mov ecx, dword [edi + 8]
lea edx, [ecx + ebx*4]
mov ecx, eax
push edx
call sub.MFC42.DLL_CString::CString_1
jmp 0x45b53f
xor eax, eax
push eax
mov eax, dword [esp + 0x14]
push ebp
push 0x151
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi + 4]
inc ebx
cmp ebx, eax
jl 0x45b4b6
mov edx, dword [esp + 0x10]
push 0
push 0
push 0x14e
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x45b5a1
push 0
mov ecx, ebp
call sub.MFC42.DLL_CWnd::EnableWindow
mov ecx, dword [esp + 0x10]
push 0
call sub.MFC42.DLL_CWnd::EnableWindow
mov edi, dword [esi + 0x164]
xor ecx, ecx
test edi, edi
setne cl
push ecx
push 0x2f75
mov ecx, esi
call sub.MFC42.DLL_CWnd::CheckDlgButton
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x40313e
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x46a7e0
sub esp, 8
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push 0x566a74
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x46a83b
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x14]
push edx
push eax
push esi
push str.AcquireOptions
push ecx
mov dword [esp + 0x20], 0x74
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret 4
Function at 0x46ee20
Capabilities:
Create process on windows
Get graphical window text
Hide graphical window

Disassembly:
mov ax, word [esp + 4]
sub esp, 0x20
cmp ax, 1
push ebp
push esi
push edi
mov esi, ecx
jne 0x46ee85
mov eax, dword [esi + 0x90]
test eax, eax
jne 0x46ef21
mov eax, dword [esi + 0x84]
push 0x19d7
push eax
mov dword [esi + 0x90], 1
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0xa
push 0xa
mov edi, eax
push 0xffffffffffffffd8
push 0xffffffffffffffd8
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x46ef21
cmp ax, 0x400
jne 0x46ef21
mov edx, dword [esi + 0x84]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
lea ecx, [esp + 0x10]
push 0x20
push ecx
push 0x19d7
push edx
call ebp
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, dword [esi + 0x48]
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x46eee1
test cl, cl
je 0x46eedd
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x46eee1
add eax, 2
add edi, 2
test cl, cl
jne 0x46eeb9
xor eax, eax
jmp 0x46eee6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
jne 0x46ef21
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0xc]
push esi
push 0x470de0
push eax
push 0x1966
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edx, dword [esi + 0x84]
push 0x5688a4
push 0x19d7
push edx
call ebp
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [esp + 0x34]
and eax, 0xffff
sub eax, 0x19d1
je 0x46ef69
dec eax
je 0x46ef3f
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret 8
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x84]
push 5
push 0
push 0
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x20
ret 8
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x84]
push edx
push 0xf
push eax
push ecx
call fcn.0046e9a7
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x20
ret 8

Function at 0x471190
Capabilities:
Set registry value

Disassembly:
sub esp, 0x30
mov edx, dword [esp + 0x34]
lea eax, [esp]
lea ecx, [esp + 0x34]
push eax
push ecx
push 0
push 0x20006
push 0
push 0x5688a4
push 0
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4711ff
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 4]
push eax
push ecx
mov dword [esp + 0xc], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 4]
push 0x2c
push edx
push 3
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x30
ret
Function at 0x4713b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x34
lea eax, [esp + 0x38]
push esi
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4713eb
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push esi
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, esi
pop esi
add esp, 0x34
ret
push edi
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, 0x2c
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
lea edx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x40]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop edi
je 0x471450
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, esi
pop esi
add esp, 0x34
ret
mov eax, dword [esp + 0x14]
cmp eax, 6
mov esi, eax
je 0x471460
cmp eax, 2
jne 0x471468
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x48]
cmp eax, 0xa
je 0x471475
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowPlacement]
mov eax, esi
pop esi
add esp, 0x34
ret

Function at 0x476360
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x476389
xor eax, eax
add esp, 8
ret
mov ecx, dword [esp]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
push esi
push edx
lea eax, [esp + 0x14]
push 0
push eax
push 0
push ebx
push ecx
mov dword [esp + 0x34], 0
call ebp
mov esi, eax
test esi, esi
jne 0x47642a
mov edx, dword [esp + 0x1c]
push edi
inc edx
push edx
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x14]
add esp, 4
mov edi, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
push esi
push ebx
push edx
call ebp
test eax, eax
mov dword [esp + 0x24], eax
jne 0x47641c
mov eax, dword [esp + 0x20]
mov esi, edi
mov byte [edi + eax], 0
mov al, byte [edi]
test al, al
je 0x47641c
mov ebx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push 0
push 0x143
push ebx
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x476401
push edi
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x28]
add esp, 4
pop edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
pop ebp
sete al
pop ebx
add esp, 8
ret