joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450d50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
mov eax, dword [0x4f6840]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4f7a90], 0
push edi
mov edi, dword [ebp + 8]
je 0x450f26
cmp dword [0x4f7a8c], 0
push esi
jne 0x450e46
cmp word [0x4f7a7c], 0
jne 0x450de6
mov eax, dword [0x4fb650]
xorps xmm0, xmm0
mov dword [ebp - 0x1ac], eax
lea eax, [ebp - 0x1bc]
push eax
mov dword [ebp - 0x1bc], 3
mov dword [ebp - 0x1b8], 0x450ab0
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b0], 0
movups xmmword [ebp - 0x1a8], xmm0
mov dword [ebp - 0x198], str.SizeTipClass
call dword [sym.imp.USER32.dll_RegisterClassA]
mov word [0x4f7a7c], ax
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0x18
call esi
push 0x17
mov dword [0x4f7a84], eax
call esi
push 0x154
mov dword [0x4f7a88], eax
lea eax, [ebp - 0x188]
push 0
push eax
call fcn.0046d9d0
add esp, 0xc
mov dword [ebp - 0x18c], 0x158
lea eax, [ebp - 0x18c]
push 0
push eax
push 0x158
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [0x4f7a80], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push dword [ebp + 0xc]
push str._dx_d
push eax
call fcn.00408a10
mov eax, dword [0x4f7a8c]
add esp, 0x10
test eax, eax
jne 0x450f1a
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea ecx, [ebp - 0x24]
mov esi, eax
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x450e80
lea eax, [ebp - 0x194]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0x34]
mov esi, 0x10
mov eax, dword [ebp - 0x190]
cmp edx, esi
mov ecx, dword [ebp - 0x30]
push 0
push dword [0x4fb650]
cmovl edx, esi
sub ecx, eax
push 0
push 0
push eax
push dword [ebp - 0x194]
cmp ecx, esi
lea eax, [ebp - 0x24]
cmovl ecx, esi
push ecx
push edx
push 0x80000000
push eax
movzx eax, word [0x4f7a7c]
push eax
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 4
push eax
mov dword [0x4f7a8c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c107
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0046c107
mov esp, ebp
pop ebp
ret

Function at 0x4566d0
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push 0x4563a0
push 0
push 0x6f
push dword [0x4fb650]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
pop esi
ret
Function at 0x45c510
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x4f6840]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 1
jne 0x45c559
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4f9210]
js 0x45c545
cmp eax, 0x32
jl 0x45c641
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
call esi
mov dword [0x4f9210], eax
jmp 0x45c629
cmp eax, 3
jne 0x45c5e8
push 0x6c
push dword [0x4fb61c]
call fcn.00403080
mov ecx, dword [0x4f91e4]
add esp, 8
mov esi, eax
test ecx, ecx
je 0x45c591
push 0x20001
push 0
push dword [esi]
call ecx
test eax, eax
jne 0x45c629
push dword [esi]
lea eax, [ebp - 0x58]
push str.Unable_to_play_sound_file_n_s_nUsing_default_sound_instead
push eax
call fcn.00408a10
push dword [0x4cd5a4]
lea eax, [ebp - 0xbc]
push str._.70s_Sound_Error
push eax
call fcn.00408a10
add esp, 0x18
lea eax, [ebp - 0xbc]
push 0x30
push eax
lea eax, [ebp - 0x58]
push eax
push dword [0x4fb658]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
push 0x66
push dword [0x4fb61c]
call fcn.00403580
add esp, 0xc
jmp 0x45c629
cmp eax, 4
jne 0x45c629
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4f9214]
js 0x45c602
cmp eax, 0x32
jl 0x45c641
cmp dword [0x4fb590], 2
jne 0x45c61a
push 0x64
push 0x320
call dword [sym.imp.KERNEL32.dll_Beep]
jmp 0x45c622
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
call esi
mov dword [0x4f9214], eax
mov eax, dword [0x4fb64c]
cmp dword [eax + 0x134], 0
jne 0x45c641
push 2
call fcn.0045d690
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046c107
mov esp, ebp
pop ebp
ret

Function at 0x45e9d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [0x4fb658]
push 0x45c120
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret

Function at 0x45f270
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4f6840]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push 0x14
push ecx
push 0x1004
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0x18]
push eax
call fcn.0047a2d8
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov dword [0x4f7c68], eax
call fcn.0046c107
mov esp, ebp
pop ebp
ret
Function at 0x45fc10
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
lea eax, [ebx + 1]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x45fcb7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x45fcb6
push ebx
push dword [ebp + 0xc]
push edi
call fcn.0046d450
add esp, 0xc
mov byte [edi + ebx], 0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, dword [ebp + 0x14]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
test ebx, ebx
jne 0x45fc75
push 0
push 1
push 0x8002
push dword [0x4fb658]
call edi
push dword [0x4fb658]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x45fc9c
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x45fca3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
jne 0x45fcb6
push ebx
push ebx
push 0x8002
push dword [0x4fb658]
call edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4616d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x1034
push 1
call fcn.0040e5e0
mov ecx, dword [ebp + 8]
add esp, 8
mov edi, eax
lea ebx, [edi + 4]
mov dword [ebx], ecx
push 0
push 0
push 0
push 0
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x1030], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
mov eax, dword [0x4f9240]
mov dword [edi + 0x18], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
test eax, eax
jne 0x46175c
push 0x461420
call fcn.004505d0
add esp, 4
mov dword [0x4f9240], eax
push edi
push eax
call fcn.0044f760
add esp, 8
lea eax, [ebp - 4]
push eax
push 0
push ebx
push 0x461790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x1c], 1
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x461940
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x1034
push 1
call fcn.0040e5e0
mov ecx, dword [ebp + 8]
add esp, 8
mov edi, eax
lea ebx, [edi + 4]
mov dword [ebx], ecx
push 0
push 0
push 0
push 0
mov dword [edi], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x38]
push eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.0040dc10
mov eax, dword [ebp + 0xc]
add esp, 4
mov dword [edi + 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
mov eax, dword [0x4f9240]
mov dword [edi + 0x44], 0
test eax, eax
jne 0x4619e3
push 0x461420
call fcn.004505d0
add esp, 4
mov dword [0x4f9240], eax
push edi
push eax
call fcn.0044f760
add esp, 8
lea eax, [ebp - 4]
push eax
push 0
push ebx
push 0x461a10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463060
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4f9a6c], 0
push esi
push edi
jne 0x4630bc
push str.secur32.dll
call fcn.004631b0
push str.sspicli.dll
mov esi, eax
call fcn.004631b0
add esp, 8
test esi, esi
je 0x4630a9
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4f9a68], eax
mov dword [0x4f9a6c], 1
jmp 0x4630c1
xor eax, eax
mov dword [0x4f9a6c], 1
mov dword [0x4f9a68], eax
jmp 0x4630c1
mov eax, dword [0x4f9a68]
test eax, eax
je 0x463121
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 0
push 8
call eax
push 1
push dword [ebp - 4]
call fcn.0040e5e0
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 8
call dword [0x4f9a68]
movzx edi, al
test al, al
je 0x463118
push 0x40
push esi
call fcn.0046d320
add esp, 8
test eax, eax
je 0x46316a
mov byte [eax], 0
xor eax, eax
test edi, edi
pop edi
cmovne eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.0040e5c0
add esp, 4
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 4]
push eax
push 0
mov dword [ebp - 4], 0
call edi
test eax, eax
jne 0x463144
mov eax, pe_nt_image_headers32
mov dword [ebp - 4], eax
jmp 0x463147
mov eax, dword [ebp - 4]
push 1
push eax
call fcn.0040e5e0
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
call edi
mov edi, eax
test edi, edi
jne 0x46316a
push esi
call fcn.0040e5c0
add esp, 4
xor eax, eax
test edi, edi
pop edi
cmovne eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4631b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x4f9a78]
push esi
push edi
test ecx, ecx
jne 0x4631f6
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor esi, esi
lea eax, [esi + esi*2]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push 1
add esi, 0x200
push esi
push ecx
call fcn.0040e680
add esp, 0xc
mov dword [0x4f9a78], eax
push esi
push eax
call edi
mov ecx, dword [0x4f9a78]
cmp eax, esi
jge 0x4631c7
push 0
push dword [ebp + 8]
push 0x4e6b2c
push ecx
call fcn.0040de70
add esp, 0x10
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov edi, eax
call fcn.0040e5c0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x465a40
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x4f6840]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x12c]
push edi
push 0x107
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x12c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x465a71
mov ax, word [0x4e74cc]
mov word [ecx], ax
mov al, byte [0x4e74ce]
mov byte [ecx + 2], al
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x465ad7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop
lea eax, [ebp - 0x26c]
push 0x140
push eax
call esi
add esp, 8
lea eax, [ebp - 0x26c]
push eax
push edi
call ebx
test eax, eax
jne 0x465ab0
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x274]
push 4
push eax
call esi
add esp, 8
cmp dword [0x4fa16c], 0
jne 0x465b74
push str.advapi32.dll
call fcn.004631b0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
mov dword [0x4fa16c], eax
test eax, eax
je 0x465b27
push str.CryptAcquireContextA
push eax
call edi
mov ecx, eax
mov eax, dword [0x4fa16c]
jmp 0x465b29
xor ecx, ecx
mov dword [0x4fa160], ecx
test eax, eax
je 0x465b44
push str.CryptGenRandom
push eax
call edi
mov ecx, eax
mov eax, dword [0x4fa16c]
jmp 0x465b46
xor ecx, ecx
mov dword [0x4fa164], ecx
test eax, eax
je 0x465b68
push str.CryptReleaseContext
push eax
call edi
cmp dword [0x4fa16c], 0
mov dword [0x4fa168], eax
je 0x465bd7
jmp 0x465b79
mov dword [0x4fa168], 0
jmp 0x465bd7
mov eax, dword [0x4fa168]
mov ecx, dword [0x4fa160]
test ecx, ecx
je 0x465bd7
cmp dword [0x4fa164], 0
je 0x465bd7
test eax, eax
je 0x465bd7
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x270]
push eax
call ecx
test eax, eax
je 0x465bd7
lea eax, [ebp - 0x24]
push eax
push 0x20
push dword [ebp - 0x270]
call dword [0x4fa164]
test eax, eax
je 0x465bc9
lea eax, [ebp - 0x24]
push 0x20
push eax
call esi
add esp, 8
push 0
push dword [ebp - 0x270]
call dword [0x4fa168]
push esi
call fcn.004684e0
add esp, 4
call fcn.00465dc0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046c107
mov esp, ebp
pop ebp
ret
Function at 0x465c60
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4f6840]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.0043a5e0
add esp, 8
call dword [sym.imp.USER32.dll_GetCapture]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.0043a5e0
add esp, 8
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.0043a5e0
add esp, 8
push 0x1cbf
call dword [sym.imp.USER32.dll_GetQueueStatus]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push 4
push eax
call fcn.0043a5e0
add esp, 8
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x54]
push 8
push eax
call fcn.0043a5e0
add esp, 8
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.0043a5e0
add esp, 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0043a5e0
add esp, 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0043a5e0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.0046c107
mov esp, ebp
pop ebp
ret
Function at 0x4660f0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
nop dword [eax]
cmp dword [ebp + 0xc], 0
je 0x46610f
mov dword [ebp + 0xc], 0
jmp 0x466140
lea eax, [edi + 0x14]
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x466140
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x3e5
je 0x4661bc
test ebx, ebx
je 0x466140
cmp ebx, 0x217
jne 0x466179
mov eax, dword [edi + 0x2c]
mov ebx, dword [edi + 0x10]
push ebx
push 0x4660d0
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x10]
call eax
add esp, 0xc
test eax, eax
je 0x466162
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push edi
call fcn.00466060
add esp, 8
test eax, eax
jne 0x466100
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
call fcn.00463270
push eax
push str.Error_while_listening_to_named_pipe:__s
call fcn.0040df30
add esp, 0xc
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
mov ecx, dword [eax + 0x2c]
push edi
push 0
push dword [eax + 0xc]
mov esi, dword [ecx]
call fcn.00464680
add esp, 4
push eax
mov eax, dword [ebp + 8]
push 1
push dword [eax + 0x2c]
mov eax, dword [esi]
call eax
push edi
call fcn.0040e5c0
add esp, 0x1c
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4664c0
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x4fa190], 0
jne 0x4665bf
push edi
push str.winspool.drv
call fcn.004631b0
push str.spoolss.dll
mov edi, eax
call fcn.004631b0
add esp, 8
test edi, edi
je 0x466567
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumPrintersA
push edi
call esi
push str.OpenPrinterA
push edi
mov dword [0x4fa170], eax
call esi
push str.ClosePrinter
push edi
mov dword [0x4fa174], eax
call esi
push str.StartDocPrinterA
push edi
mov dword [0x4fa178], eax
call esi
push str.EndDocPrinter
push edi
mov dword [0x4fa17c], eax
call esi
push str.StartPagePrinter
push edi
mov dword [0x4fa180], eax
call esi
push str.EndPagePrinter
push edi
mov dword [0x4fa184], eax
call esi
push str.WritePrinter
push edi
mov dword [0x4fa188], eax
call esi
pop esi
mov dword [0x4fa18c], eax
mov dword [0x4fa190], 1
pop edi
ret
xor eax, eax
mov dword [0x4fa170], 0
mov dword [0x4fa174], 0
mov dword [0x4fa178], 0
mov dword [0x4fa17c], 0
mov dword [0x4fa180], 0
mov dword [0x4fa184], 0
mov dword [0x4fa188], 0
mov dword [0x4fa18c], eax
mov dword [0x4fa190], 1
pop edi
ret
Function at 0x466cf0
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x4fa1a0], 0
jne 0x466e77
push esi
push str.advapi32.dll
mov dword [0x4fa1a0], 1
call fcn.004631b0
add esp, 4
mov dword [0x4fa1a8], eax
test eax, eax
je 0x466e6e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSecurityInfo
push eax
call esi
mov dword [0x4fb558], eax
test eax, eax
je 0x466e6e
mov eax, dword [0x4fa1a8]
test eax, eax
je 0x466e64
push str.SetSecurityInfo
push eax
call esi
mov dword [0x4fb554], eax
test eax, eax
je 0x466e6e
mov eax, dword [0x4fa1a8]
test eax, eax
je 0x466e51
push str.OpenProcessToken
push eax
call esi
mov dword [0x4fb568], eax
test eax, eax
je 0x466e6e
mov eax, dword [0x4fa1a8]
test eax, eax
je 0x466e3e
push str.GetTokenInformation
push eax
call esi
mov dword [0x4fb564], eax
test eax, eax
je 0x466e6e
mov eax, dword [0x4fa1a8]
test eax, eax
je 0x466e2b
push 0x4e77c4
push eax
call esi
mov dword [0x4fb560], eax
test eax, eax
je 0x466e6e
mov eax, dword [0x4fa1a8]
test eax, eax
je 0x466e18
push 0x4e77e4
push eax
call esi
mov dword [0x4fb55c], eax
test eax, eax
je 0x466e6e
mov eax, dword [0x4fa1a8]
test eax, eax
je 0x466e05
push str.SetEntriesInAclA
push eax
call esi
mov dword [0x4fb550], eax
test eax, eax
je 0x466e6e
mov eax, 1
mov dword [0x4fa1a4], eax
pop esi
ret
xor eax, eax
mov dword [0x4fb550], 0
mov dword [0x4fa1a4], eax
pop esi
ret
xor eax, eax
mov dword [0x4fb55c], 0
mov dword [0x4fa1a4], eax
pop esi
ret
xor eax, eax
mov dword [0x4fb560], 0
mov dword [0x4fa1a4], eax
pop esi
ret
xor eax, eax
mov dword [0x4fb564], 0
mov dword [0x4fa1a4], eax
pop esi
ret
xor eax, eax
mov dword [0x4fb568], 0
mov dword [0x4fa1a4], eax
pop esi
ret
mov dword [0x4fb554], 0
xor eax, eax
mov dword [0x4fa1a4], eax
pop esi
ret
mov eax, dword [0x4fa1a4]
ret
Function at 0x467f70
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4f6840]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
call fcn.00467c40
add esp, 4
call fcn.004624b0
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x110]
push eax
push str.SoftwareSimonTathamPuTTY
push 0x80000001
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x467fcd
push dword [ebp - 0x110]
call fcn.00468780
add esp, 4
push dword [ebp - 0x110]
call ebx
lea eax, [ebp - 0x110]
push eax
push str.SoftwareSimonTatham
push 0x80000001
call edi
test eax, eax
jne 0x46804f
push esi
push str.PuTTY
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x105
lea eax, [ebp - 0x10c]
push eax
push 0
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [ebp - 0x110]
mov esi, eax
call ebx
test esi, esi
pop esi
je 0x46804f
lea eax, [ebp - 0x110]
push eax
push str.Software
push 0x80000001
call edi
test eax, eax
jne 0x46804f
push str.SimonTatham
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 0x110]
call ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0046c107
mov esp, ebp
pop ebp
ret

Function at 0x468080
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTathamPuTTYSessions
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4680ee
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4680a6
sub eax, edx
push 1
lea eax, [eax + eax*2]
inc eax
push eax
call fcn.0040e5e0
mov esi, eax
push esi
push edi
call fcn.004682d0
add esp, 0x10
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push esi
call fcn.0040e5c0
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00462740
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x468120
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
lea edi, [eax + eax*2]
push 1
push edi
call fcn.0040e5e0
mov esi, dword [ebp + 8]
add esp, 8
mov ebx, eax
mov edx, dword [esi + 4]
push edi
push ebx
push edx
push dword [esi]
lea ecx, [edx + 1]
mov dword [esi + 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x468171
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push esi
push ebx
call fcn.00468c30
push ebx
call fcn.0040e5c0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
push ebx
call fcn.0040e5c0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret