joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003d580
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10078263
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.1006cd9b
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.10072403
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.1007391f
test eax, eax
je 0x1003d69c
mov ecx, dword [esp + 0x3c]
call fcn.10072430
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x1003d660
push edi
mov ecx, esi
call fcn.1006fa7b
mov ecx, esi
call fcn.1003d800
cmp dword [esp + 0x38], 1
jne 0x1003d695
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.1006fbb6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x1003f750
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x1003f783
push esi
call fcn.1004da70
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1003f77c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x1003f809
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1003f7f2
mov eax, dword [esi + 8]
test eax, eax
je 0x1003f7a7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x1003f7ee
cmp eax, 2
je 0x1003f7f2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1003f79a
cmp eax, 3
je 0x1003f7cd
cmp eax, 1
jne 0x1003f79a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x1003f79a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1003f79a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.1003f830
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x1003f818
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.1003f830
add esp, 4
pop esi
ret

Function at 0x10040090
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x100400b1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x100400b1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x100400b1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10040500
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x1004050b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x1004060e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x1007e618]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1007e618]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1007e618]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1007e618]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1007e618]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1007e618]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1007e618]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x1007e618]
xor eax, edx
inc ecx
dec edi
jne 0x10040526
pop edi
test esi, esi
je 0x10040630
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x1007e618]
xor eax, edx
inc ecx
dec esi
jne 0x10040612
pop esi
pop ebx
not eax
ret
Function at 0x1006db77
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1006dbaf
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1006bc48
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1006bc20
jmp 0x1006dbbb
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1006f269
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1006f2ab
call fcn.10074c04
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1006f2ab
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1006f2a2
xor eax, eax
jmp 0x1006f2b3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1006f2b9
pop edi
pop esi
pop ebx
ret 4
Function at 0x40149b
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x14]
push edi
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [str.ce:_]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5d4]
mov dword [ebp - 0x30], eax
call fcn.00401494
mov edi, dword [ebp - 0x14]
mov eax, dword [0x41b5d8]
add edi, 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b5dc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], eax
pop esi
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov edx, dword [ebp - 8]
mov eax, edx
mov ecx, dword [0x2d399cc]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401524
push 0x418248
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0x2d399cc]
add eax, dword [ebp - 0x20]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d399c8]
mov dword [ebp - 0x1c], 0xedeb2e40
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp ecx, 0x3eb
mov dword [0x2d399c8], eax
mov eax, dword [0x2d39920]
cmove eax, dword [ebp - 0x1c]
mov dword [0x2d39920], eax
lea eax, [edi + edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [0x2d399c4], 0xf4ea3dee
call fcn.00401471
mov ecx, dword [ebp - 0x10]
xor ecx, eax
sub ebx, ecx
mov dword [ebp - 0x10], ecx
mov eax, ebx
mov dword [ebp - 0x2c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x4014ec
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], ebx
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4015f4
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x2d399cc]
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x2d39924]
test esi, esi
je 0x401637
cmp eax, 0x959
jne 0x401623
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
call fcn.0040149b
add edi, 8
dec esi
je 0x401637
mov eax, dword [0x2d399cc]
jmp 0x40160a
pop edi
pop esi
ret 4
Function at 0x40d039
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a36c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404f15
mov dword [ebp - 0x14], eax
cmp dword [0x440080], esi
jne 0x40d12c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d0b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d20c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d20c
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d20c
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x440080], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x440084], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x440088], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x440090], eax
test eax, eax
je 0x40d129
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44008c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d151
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d144
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d166
push 4
pop eax
jmp 0x40d20e
cmp dword [ebp - 0x14], esi
je 0x40d166
push dword [0x440080]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d14b
mov eax, dword [0x44008c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d1c4
cmp dword [0x440090], edi
je 0x40d1c4
push eax
call ebx
push dword [0x440090]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d1c4
test eax, eax
je 0x40d1c4
call ecx
test eax, eax
je 0x40d1b9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d1b9
test byte [ebp - 8], 1
jne 0x40d1c4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d1f4
mov eax, dword [0x440084]
cmp eax, edi
je 0x40d1f1
push eax
call ebx
test eax, eax
je 0x40d1f1
call eax
mov esi, eax
test esi, esi
je 0x40d1f1
mov eax, dword [0x440088]
cmp eax, edi
je 0x40d1f1
push eax
call ebx
test eax, eax
je 0x40d1f1
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x440080]
call ebx
test eax, eax
je 0x40d20c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d20e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004041fb
mov esp, ebp
pop ebp
ret
Function at 0x401f00
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x2c
mov edx, dword [0x41844c]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
test edx, edx
je 0x402010
mov eax, dword [0x418450]
cmp eax, edi
jle 0x401fd0
mov dword [esp], 0
call sym._GetStockObject_4
sub esp, 4
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._FillRect_12
mov eax, dword [0x41844c]
xor edx, edx
sub esp, 0xc
cmp edi, 1
jle 0x401f6d
mov edx, dword [eax + edi*4 - 8]
cmp edx, dword [0x418454]
jge 0x401fc4
mov dword [ebx + 0x28], edx
mov edx, dword [ebx + 0x14]
lea edi, [eax + edi*4 - 4]
mov dword [ebp - 0x1c], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x439
mov dword [esp], esi
call sym._SendMessageW_16
mov edx, dword [ebp - 0x1c]
sub esp, 0x10
mov dword [edi], eax
mov dword [ebx + 0x14], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x439
mov dword [esp], esi
call sym._SendMessageW_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
shl eax, 3
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
test eax, eax
je 0x401fc4
mov dword [0x41844c], eax
shl dword [0x418450], 1
jmp 0x401f2e
mov dword [0x418450], 0x20
mov eax, dword fs:[0x18]
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [0x41844c], eax
sub esp, 0xc
test eax, eax
jne 0x401f2e
jmp 0x401fc4

Function at 0x402da0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], 0x4184a4
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.PageMargin
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
leave
ret

Function at 0x402de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], 0x10
test eax, eax
je 0x402e2a
lea edx, [ebp - 0xc]
mov dword [esp + 0x10], 0x4184a4
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.PageMargin
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
je 0x402e58
mov dword [0x4184a4], 0x6dd
mov dword [0x4184ac], 0x6dd
mov dword [0x4184a8], 0x589
mov dword [0x4184b0], 0x589
leave
ret
cmp dword [ebp - 0xc], 0x10
jne 0x402e2a
jmp 0x402e52
Function at 0x402e60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0x418444
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.PreviewPages
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
leave
ret

Function at 0x402ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], 4
test eax, eax
je 0x402eea
lea edx, [ebp - 0xc]
mov dword [esp + 0x10], 0x418444
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.PreviewPages
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
je 0x402f00
mov dword [0x418444], 1
leave
ret
cmp dword [ebp - 0xc], 4
jne 0x402eea
mov eax, dword [0x418444]
test eax, eax
jle 0x402eea
cmp eax, 2
jle 0x402ef4
mov dword [0x418444], 2
leave
ret
Function at 0x403c20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [0x418440], 1
mov dword [0x418458], 0
mov esi, eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [0x41845c], 0
mov dword [0x4184a0], eax
mov dword [0x418498], 0
mov dword [0x41849c], 0
mov dword [esp + 4], 0x7d4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._GetDlgItem_8
mov ecx, 0x3f2
mov edx, 0x5a8
sub esp, 8
mov ebx, eax
xor eax, eax
cmp dword [0x418444], 1
mov dword [esp], 6
setg al
mov edi, eax
mov eax, ebx
add edi, 0x5ab
call dbg.AddTextButton
mov dword [esp], 7
mov eax, ebx
mov ecx, 0x3f9
mov edx, 0x5a9
call dbg.AddTextButton
mov dword [esp], 8
mov eax, ebx
mov ecx, 0x3fa
mov edx, 0x5aa
call dbg.AddTextButton
mov dword [esp], 9
mov edx, edi
mov eax, ebx
mov ecx, 0x3fb
call dbg.AddTextButton
mov dword [esp], 0xa
mov eax, ebx
mov ecx, 0x3fc
mov edx, 0x5ad
call dbg.AddTextButton
mov dword [esp], 0xb
mov eax, ebx
mov ecx, 0x3fd
mov edx, 0x5ae
call dbg.AddTextButton
mov dword [esp], 0xc
mov ecx, 0x3e8
mov eax, ebx
mov edx, 0x5af
call dbg.AddTextButton
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x41142e
mov dword [esp], 0
call sym._CreateWindowExW_48
mov dword [ebp - 0x7c], 0x50
mov dword [ebp - 0x5c], eax
sub esp, 0x30
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x78], 0x371
mov dword [ebp - 0x74], 0x140
mov dword [ebp - 0x54], 0x16
mov dword [ebp - 0x44], 0x16
mov dword [ebp - 0x58], 0x5a
mov dword [ebp - 0x50], 0x5a
mov dword [ebp - 0x38], 0x64
mov dword [ebp - 0x48], 0xd
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x40a
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x7e0
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0xc8
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50300000
mov dword [esp + 8], 0
mov dword [esp + 4], str.PrtPreview
mov dword [esp], 0
call sym._CreateWindowExW_48
sub esp, 0x30
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403e80
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov dword [esp + 4], 0x7e0
mov dword [esp], ebx
call sym._GetDlgItem_8
mov edx, dword [0x41844c]
mov dword [0x418468], 0
mov dword [0x41846c], 0
sub esp, 8
mov edi, eax
mov dword [0x418440], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [0x41849c]
mov dword [0x41844c], 0
mov dword [0x418450], 0
sub esp, 0xc
test eax, eax
jle 0x403f10
mov eax, dword [0x418448]
mov dword [0x418444], eax
mov eax, dword [0x418458]
test eax, eax
je 0x403f53
mov dword [esp + 4], 7
mov dword [esp], eax
call sym._GetCurrentObject_8
mov esi, eax
mov eax, dword [0x418458]
sub esp, 8
mov dword [esp], eax
call sym._DeleteDC_4
sub esp, 4
mov dword [esp], esi
call sym._DeleteObject_4
mov dword [0x418458], 0
sub esp, 4
mov eax, dword [0x41845c]
test eax, eax
je 0x403f96
mov dword [esp + 4], 7
mov dword [esp], eax
call sym._GetCurrentObject_8
mov esi, eax
mov eax, dword [0x41845c]
sub esp, 8
mov dword [esp], eax
call sym._DeleteDC_4
sub esp, 4
mov dword [esp], esi
call sym._DeleteObject_4
mov dword [0x41845c], 0
sub esp, 4
mov dword [esp], ebx
mov ebx, 6
mov dword [esp + 4], 0x7d4
call sym._GetDlgItem_8
sub esp, 8
mov esi, eax
mov dword [esp + 8], ebx
add ebx, 1
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x410
mov dword [esp], esi
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x402
mov dword [esp], esi
call sym._SendMessageW_16
sub esp, 0x10
cmp ebx, 0xe
jne 0x403fb0
mov dword [esp], edi
call sym._DestroyWindow_4
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404de0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
mov edx, global_wszProgramKey
push ebx
sub esp, 0x5c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0x5c
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x404e00
sub edx, 0x411540
sar edx, 1
cmp word [edi], 0
mov eax, edx
je 0x404e2f
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x404e20
sub eax, edi
sar eax, 1
add eax, edx
lea eax, [eax + eax + 4]
mov dword [esp + 4], 8
mov dword [esp + 8], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, eax
sub esp, 0xc
xor eax, eax
test ebx, ebx
je 0x404f90
lea esi, [esi]
movzx edx, word [eax + 0x411540]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x404e68
cmp word [ebx], 0
mov edx, ebx
je 0x404e91
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x404e88
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebp + eax - 0x1c]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404e98
cmp word [ebx], 0
mov edx, ebx
je 0x404ec1
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x404eb8
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404ec8
test esi, esi
je 0x404f58
mov dword [esp + 0x20], esi
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0x2001f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000001
call sym._RegCreateKeyExW_36
sub esp, 0x24
mov esi, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, esi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], 0x2001f
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x80000001
call sym._RegOpenKeyExW_20
sub esp, 0x14
mov esi, eax
jmp 0x404f24
lea esp, [ebp - 0xc]
mov esi, 1
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret