joyce8/EMBER2024-capa huggingface dataset:
Function at 0xceef10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xd039fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xcef002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00cf2dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xcef002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00cea6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00cf320b
push 0x10
call fcn.00cf31d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xceefc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00cdf1c0
jmp 0xceefc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00ceeb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xceeff0
mov ecx, edi
call fcn.00cdf2c0
push edi
call fcn.00cf31c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xcef021
inc ebx
cmp ebx, 0x20
jb 0xceef3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xcf0250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd04808
push 0xcf4288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xcf0329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xcf0329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00cf31d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xcf0329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xcf0329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xcf032c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00cf0351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xcf0d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xcf0d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xcf0d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xcf0d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xcf0d94
push eax
push esi
call fcn.00cf320b
add esp, 8
pop esi
ret 0x10

Function at 0xcf0da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xcf0e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xcf0e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xd09320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00cf2dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xcf0dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xcf0e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xcf0ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xcf0eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xd09320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00cf2dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xcf0eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xcf0e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xcf1000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xcf1131
push esi
call fcn.00cf4145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00ce3080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xcf1131
push 0
push ebp
call fcn.00ce33a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00ce3260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xcf108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00ce32f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xcf1121
push 0xd09918
push edi
call fcn.00cf23f0
push eax
push ebx
push esi
call fcn.00cf0f60
push 0xd098f8
push edi
call fcn.00cf23f0
push eax
push ebx
push esi
call fcn.00cf0f60
push 0xd098d8
push edi
call fcn.00cf23f0
push eax
push ebx
push esi
call fcn.00cf0f60
push 0xd098c0
push edi
call fcn.00cf23f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00cf0f60
push 0xd098a0
push edi
call fcn.00cf23f0
push eax
push ebx
push esi
call fcn.00cf0f60
push 0xd09888
push edi
call fcn.00cf23f0
push eax
push ebx
push esi
call fcn.00cf0f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xcf21b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00cf2140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00cf2140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00cf2140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00cf2140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xcf2bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xcf2c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd0487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xcf2c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xcf2c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x10001270
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
nop
nop
push ebp
mov ebp, esp
add esp, 9
add esp, 0xfffffff7
add esp, 0x29
add esp, 0xffffffd7
push 0x2d1b
mov esp, ebp
nop
nop
pop ebp
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 4]
mov dword [ebp - 8], edi
nop
push ebp
mov ebp, esp
inc ecx
dec ecx
add esp, 4
add esp, 0xfffffffc
push ebx
pop ebx
add esp, 6
add esp, 0xfffffffa
nop
mov esp, ebp
nop
pop ebp
mov eax, dword [eax]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea esi, [ecx + eax + 0x18]
mov dword [ebp - 4], 0
jbe 0x100013fa
add esi, 0x10
push ebp
nop
mov ebp, esp
add esp, 2
sub esp, 2
add esp, 1
add esp, 0xffffffff
add esp, 8
add esp, 0xfffffff8
nop
mov esp, ebp
nop
pop ebp
cmp dword [esi], 0
jne 0x10001362
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + 0x38]
test ebx, ebx
jle 0x100013dd
nop
nop
push ebp
nop
nop
mov ebp, esp
add esp, 9
sub esp, 9
add esp, 6
add esp, 0xfffffffa
add esp, 6
sub esp, 6
nop
nop
mov esp, ebp
nop
pop ebp
mov eax, dword [esi - 4]
push 4
push 0x1000
push ebx
add eax, edi
push eax
call dword [0x1002cf40]
nop
push ebp
nop
mov ebp, esp
inc ecx
dec ecx
add esp, 3
sub esp, 3
add esp, 7
sub esp, 7
inc ecx
dec ecx
nop
mov esp, ebp
nop
nop
pop ebp
push ebx
push 0
push eax
mov dword [esi - 8], eax
call fcn.1000eaa0
add esp, 0xc
jmp 0x100013dd
push ebp
mov ebp, esp
test esi, esi
add esp, 0xe
add esp, 0xfffffff2
inc ecx
dec ecx
mov esp, ebp
pop ebp
mov ecx, dword [esi]
mov edx, dword [esi - 4]
push 4
push 0x1000
push ecx
add edx, edi
push edx
call dword [0x1002cf40]
mov edi, eax
nop
push ebp
nop
nop
mov ebp, esp
inc ecx
dec ecx
add esp, 5
add esp, 0xfffffffb
mov esp, ebp
nop
pop ebp
mov ecx, dword [esi + 4]
mov eax, dword [esi]
add ecx, dword [ebp + 8]
push eax
push ecx
push edi
call fcn.10001000
add esp, 0xc
nop
nop
push ebp
nop
mov ebp, esp
inc ecx
dec ecx
inc ecx
dec ecx
test esi, esi
push ebx
pop ebx
nop
nop
mov esp, ebp
pop ebp
mov dword [esi - 8], edi
nop
nop
push ebp
nop
mov ebp, esp
add esp, 0xa
add esp, 0xfffffff6
inc ecx
dec ecx
test esi, esi
test esi, esi
mov esp, ebp
pop ebp
mov edi, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
mov eax, dword [ebp - 4]
movzx edx, word [ecx + 6]
add eax, 1
add esi, 0x28
cmp eax, edx
mov dword [ebp - 4], eax
jl 0x100012d5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp method.CMyDialog.virtual_312
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x10002ee9
cmp dword [edi + 0x54], 0
jne 0x10002ee9
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.1000b65f
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.10002e90
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8
Function at 0x10008347
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x1000838a
call fcn.1000b65f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1000838a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100083a5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.10007efe
test ebx, ebx
mov esi, eax
je 0x100083a3
test edi, edi
je 0x100083a3
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x1000f8f7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002bb1c]
jne 0x1000f901
repz ret
jmp fcn.1001652c
Function at 0x1001beb0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10015f0e
xor ebx, ebx
cmp dword [0x1002f9e8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1001bf85
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1001bef0
xor eax, eax
jmp 0x1001c049
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002697c
push edi
call esi
cmp eax, ebx
je 0x1001bee9
push eax
call fcn.10015eab
mov dword [esp], 0x1002696c
push edi
mov dword [0x1002f9e8], eax
call esi
push eax
call fcn.10015eab
mov dword [esp], 0x10026958
push edi
mov dword [0x1002f9ec], eax
call esi
push eax
call fcn.10015eab
mov dword [0x1002f9f0], eax
lea eax, [ebp - 8]
push eax
call fcn.10012066
test eax, eax
pop ecx
pop ecx
je 0x1001bf53
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001394a
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1001bf85
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10015eab
cmp eax, ebx
pop ecx
mov dword [0x1002f9f8], eax
je 0x1001bf85
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10015eab
pop ecx
mov dword [0x1002f9f4], eax
mov eax, dword [0x1002f9f4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1001bffe
cmp dword [0x1002f9f8], esi
je 0x1001bffe
push eax
call fcn.10015f17
pop ecx
call eax
cmp eax, ebx
je 0x1001bfcb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1002f9f8]
call fcn.10015f17
pop ecx
call eax
test eax, eax
je 0x1001bfcb
test byte [ebp - 0x18], 1
jne 0x1001bffe
lea eax, [ebp - 0xc]
push eax
call fcn.1001209d
test eax, eax
pop ecx
je 0x1001bfe6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001394a
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1001bff5
or dword [ebp + 0x10], 0x200000
jmp 0x1001c02f
or dword [ebp + 0x10], 0x40000
jmp 0x1001c02f
mov eax, dword [0x1002f9ec]
cmp eax, esi
je 0x1001c02f
push eax
call fcn.10015f17
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001c02f
mov eax, dword [0x1002f9f0]
cmp eax, esi
je 0x1001c02f
push dword [ebp - 4]
push eax
call fcn.10015f17
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1002f9e8]
call fcn.10015f17
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402270
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
mov edi, ecx
push esi
mov esi, edx
push ebx
sub esp, 0x2c
mov ecx, dword [0x41846c]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x402380
mov eax, dword [0x418470]
cmp eax, ebx
jle 0x402340
mov dword [esp], 0
call sub.gdi32.dll_GetStockObject
sub esp, 4
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.user32.dll_FillRect
mov eax, dword [0x41846c]
xor ecx, ecx
sub esp, 0xc
cmp ebx, 1
jle 0x4022da
mov ecx, dword [eax + ebx*4 - 8]
cmp ecx, dword [0x418474]
jge 0x402331
lea ebx, [eax + ebx*4 - 4]
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x28], ecx
mov dword [esp + 0xc], esi
mov edi, dword [esi + 0x14]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x439
mov dword [esp], eax
call sym.unk_169
mov dword [ebx], eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x10
mov dword [esi + 0x14], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x439
mov dword [esp], eax
call sym.unk_169
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
shl eax, 3
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapReAlloc
sub esp, 0x10
test eax, eax
je 0x402331
shl dword [0x418470], 1
mov dword [0x41846c], eax
jmp 0x40229e
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [0x418470], 0x20
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
sub esp, 0xc
mov dword [0x41846c], eax
test eax, eax
jne 0x40229e
jmp 0x402331

Function at 0x4031b0
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], 0x4184c4
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.PageMargin
mov dword [esp], eax
call sub.advapi32.dll_RegSetValueExW
sub esp, 0x18
leave
ret

Function at 0x4031f0
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 0x40323a
lea edx, [ebp - 0xc]
mov dword [esp + 0x10], 0x4184c4
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 sub.advapi32.dll_RegQueryValueExW
sub esp, 0x18
test eax, eax
je 0x403264
mov dword [0x4184c4], 0x6dd
mov dword [0x4184cc], 0x6dd
mov dword [0x4184c8], 0x589
mov dword [0x4184d0], 0x589
leave
ret
cmp dword [ebp - 0xc], 0x10
jne 0x40323a
jmp 0x403262
Function at 0x403270
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], 0x418464
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.PreviewPages
mov dword [esp], eax
call sub.advapi32.dll_RegSetValueExW
sub esp, 0x18
leave
ret

Function at 0x4032b0
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 0x4032fa
lea edx, [ebp - 0xc]
mov dword [esp + 0x10], 0x418464
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 sub.advapi32.dll_RegQueryValueExW
sub esp, 0x18
test eax, eax
je 0x403310
mov dword [0x418464], 1
leave
ret
cmp dword [ebp - 0xc], 4
jne 0x4032fa
mov eax, dword [0x418464]
test eax, eax
jle 0x4032fa
cmp eax, 2
jle 0x403304
mov dword [0x418464], 2
leave
ret
Function at 0x403ff0
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 sub.kernel32.dll_GetModuleHandleW
mov dword [0x418460], 1
mov dword [0x418478], 0
mov edi, eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [esp + 4], 0x7d4
mov dword [0x4184c0], eax
mov eax, dword [ebp + 8]
mov dword [0x41847c], 0
mov dword [esp], eax
mov dword [0x4184b8], 0
mov dword [0x4184bc], 0
call sub.user32.dll_GetDlgItem
mov ecx, 0x3f2
mov edx, 0x5a8
sub esp, 8
mov ebx, eax
xor eax, eax
cmp dword [0x418464], 1
mov dword [esp], 6
setg al
mov esi, eax
mov eax, ebx
add esi, 0x5ab
call sym.unk_27
mov dword [esp], 7
mov eax, ebx
mov ecx, 0x3f9
mov edx, 0x5a9
call sym.unk_27
mov dword [esp], 8
mov eax, ebx
mov ecx, 0x3fa
mov edx, 0x5aa
call sym.unk_27
mov dword [esp], 9
mov edx, esi
mov eax, ebx
mov ecx, 0x3fb
call sym.unk_27
mov dword [esp], 0xa
mov eax, ebx
mov ecx, 0x3fc
mov edx, 0x5ad
call sym.unk_27
mov dword [esp], 0xb
mov eax, ebx
mov ecx, 0x3fd
mov edx, 0x5ae
call sym.unk_27
mov dword [esp], 0xc
mov ecx, 0x3e8
mov eax, ebx
mov edx, 0x5af
call sym.unk_27
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 sub.user32.dll_CreateWindowExW
mov dword [ebp - 0x7c], 0x50
sub esp, 0x30
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x40a
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
call sym.unk_169
mov eax, dword [ebp + 8]
sub esp, 0x10
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x7e0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0xa
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 sub.user32.dll_CreateWindowExW
sub esp, 0x30
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404250
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 sub.user32.dll_GetDlgItem
mov edx, dword [0x41846c]
mov dword [0x418488], 0
mov dword [0x41848c], 0
sub esp, 8
mov edi, eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [0x418460], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
mov eax, dword [0x4184bc]
mov dword [0x41846c], 0
mov dword [0x418470], 0
sub esp, 0xc
test eax, eax
jle 0x4042df
mov eax, dword [0x418468]
mov dword [0x418464], eax
mov eax, dword [0x418478]
test eax, eax
je 0x404322
mov dword [esp + 4], 7
mov dword [esp], eax
call sub.gdi32.dll_GetCurrentObject
mov esi, eax
mov eax, dword [0x418478]
sub esp, 8
mov dword [esp], eax
call sub.gdi32.dll_DeleteDC
sub esp, 4
mov dword [esp], esi
call sub.gdi32.dll_DeleteObject
mov dword [0x418478], 0
sub esp, 4
mov eax, dword [0x41847c]
test eax, eax
je 0x404365
mov dword [esp + 4], 7
mov dword [esp], eax
call sub.gdi32.dll_GetCurrentObject
mov esi, eax
mov eax, dword [0x41847c]
sub esp, 8
mov dword [esp], eax
call sub.gdi32.dll_DeleteDC
sub esp, 4
mov dword [esp], esi
call sub.gdi32.dll_DeleteObject
mov dword [0x41847c], 0
sub esp, 4
mov dword [esp], ebx
mov ebx, 6
mov dword [esp + 4], 0x7d4
call sub.user32.dll_GetDlgItem
sub esp, 8
mov esi, eax
nop
mov dword [esp + 8], ebx
add ebx, 1
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x410
mov dword [esp], esi
call sym.unk_169
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x402
mov dword [esp], esi
call sym.unk_169
sub esp, 0x10
cmp ebx, 0xe
jne 0x404380
mov dword [esp], edi
call sub.user32.dll_DestroyWindow
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret