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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10080d2b
push ebx
push esi
call fcn.10080c57
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1007df29
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10080cd8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10080d2a
push edi
push eax
call fcn.10078463
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10080cf8
call fcn.10078429
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10080d29
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1007df29
add esp, 0x20
test eax, eax
jne 0x10080d17
push edi
call fcn.10078429
jmp 0x10080d1f
push ebx
call fcn.10078429
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10080d2e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10080d3f
pop esi
ret
push ebx
push edi
push esi
call fcn.10080c57
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10078463
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10080d67
push ebx
push esi
push edi
call fcn.10061cc0
add esp, 0xc
push 0
call fcn.10078429
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10081137
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10080d7c

Function at 0x1008331c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10078884
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1008338b
cmp esi, dword [ebp - 4]
je 0x10083386
cmp dword [ebp + 0xc], 0
je 0x10083386
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10083363
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10082e6c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1008338d
xor eax, eax
inc eax
jmp 0x1008338d
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100833f2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100b8560]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10078884
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10078884
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10083469
cmp word [ecx], dx
je 0x10083469
mov eax, dword [0x1009e1bc]
push edi
dec eax
push eax
push 0x1009e0a8
call fcn.10083391
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100834dc
cmp word [eax], dx
je 0x100834dc
mov eax, dword [edi]
test eax, eax
je 0x1008348d
cmp word [eax], dx
je 0x1008348d
lea eax, [ebp - 0x10]
push eax
call fcn.10082d72
jmp 0x10083496
lea eax, [ebp - 0x10]
push eax
call fcn.10082e0d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10083506
mov eax, dword [0x1009e0a4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1009dd98
call fcn.10083391
add esp, 0xc
test al, al
je 0x10083506
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100834d1
cmp word [eax], di
je 0x100834d1
lea eax, [ebp - 0x10]
push eax
call fcn.10082d72
pop ecx
jmp 0x10083508
lea eax, [ebp - 0x10]
push eax
call fcn.10082e0d
jmp 0x100834ce
mov eax, dword [edi]
test eax, eax
je 0x100834f3
cmp word [eax], dx
je 0x100834f3
lea eax, [ebp - 0x10]
push eax
call fcn.10082d27
pop ecx
jmp 0x10083506
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100835d1
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10083216
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100835d1
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100835d1
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100835d1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1008355e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1007aab8
test ebx, ebx
je 0x100835cc
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1007aab8
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100835d1
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100835d1
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1006fe50
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100835d3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100608cb
leave
ret
Function at 0x10088b60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10088b8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10088b8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404de5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408688
cmp edx, dword [eax]
je 0x404e07
add eax, 8
inc ecx
cmp eax, 0x408718
jl 0x404df8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408688]
jne 0x404f35
mov eax, dword [0x408a48]
cmp eax, 1
je 0x404f0f
test eax, eax
jne 0x404e38
cmp dword [0x4085d4], 1
je 0x404f0f
cmp edx, 0xfc
je 0x404f35
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404e6f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004032f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004033f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404eb2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004033f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4065d0
push edi
call fcn.00405720
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004032f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403300
lea eax, [ebp - 0xa0]
push 0x4065b0
push eax
call fcn.00403300
push dword [esi + 0x40868c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403300
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405697
add esp, 0x2c
pop edi
jmp 0x404f35
lea eax, [ebp + 8]
lea esi, [esi + 0x40868c]
push 0
push eax
push dword [esi]
call fcn.004033f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x268919db
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x47550d0
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x1000cc50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push edi
xor edi, edi
test eax, eax
je 0x1000cc95
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x1000cc95
push esi
push ebx
mov esi, dword [ecx]
mov ecx, dword [ecx + 8]
mov eax, esi
cdq
xor eax, edx
sub eax, edx
and eax, 7
xor eax, edx
mov ebx, eax
mov eax, esi
sub ebx, edx
neg ebx
cdq
sbb ebx, ebx
and edx, 7
add eax, edx
sar eax, 3
neg ebx
add eax, edi
test ecx, ecx
lea edi, [eax + ebx]
jne 0x1000cc64
pop ebx
pop esi
mov eax, edi
pop edi
ret
Function at 0x1003aed0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
xor eax, eax
mov dword [0x1009d578], eax
mov ecx, 9
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
rdtsc
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
add edx, eax
add eax, eax
nop
nop
rdtsc
sub eax, dword [ebp - 8]
sbb edx, dword [ebp - 4]
dec ecx
jg 0x1003aee8
sub eax, 2
add dword [0x1009d578], eax
cmp ecx, 0xffffffe1
jne 0x1003aee8
mov eax, dword [0x1009d578]
shr eax, 5
mov dword [0x1009d578], eax
mov esp, ebp
pop ebp
ret
Function at 0x10043fd0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x28
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 8]
push esi
push eax
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call fcn.100361b0
add esp, 8
cmp eax, 1
jne 0x10044102
mov ecx, dword [str.Application_User_Data]
lea edx, [esp + 0x30]
lea eax, [esp + 8]
push edx
mov edx, dword [str.SoftwareIntelIndeo5.0]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push 0
push 0xf003f
push 0
push ecx
push 0
push edx
push 0x80000001
call esi
test eax, eax
jne 0x100440e6
mov edx, dword [str.Decoder]
lea eax, [esp + 0x30]
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call esi
test eax, eax
jne 0x100440e6
mov edx, dword [str.Scalability_Levels]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x20]
push 4
push ecx
push 4
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
call esi
mov edx, dword [str.Delta_frames_on_off]
mov eax, dword [esp + 4]
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push 0
push edx
push eax
call esi
mov edx, dword [str.Transparency]
mov eax, dword [esp + 4]
lea ecx, [esp + 0x1c]
push 4
push ecx
push 4
push 0
push edx
push eax
call esi
mov edx, dword [str.Tile_Width]
mov eax, dword [esp + 4]
lea ecx, [esp + 0x24]
push 4
push ecx
push 4
push 0
push edx
push eax
call esi
mov edx, dword [str.Tile_Height]
mov eax, dword [esp + 4]
lea ecx, [esp + 0x28]
push 4
push ecx
push 4
push 0
push edx
push eax
call esi
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x100440f7
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x10044102
push eax
call esi
pop esi
add esp, 0x28
ret
Function at 0x10044110
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
mov ecx, dword [str.SoftwareIntelIndeo5.0]
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x1c]
push edi
push eax
push 0xf003f
push 0
mov edi, 4
push ecx
push 0x80000001
mov dword [esp + 0x34], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], edi
call esi
mov ebp, dword [esp + 0x28]
test eax, eax
jne 0x10044265
mov eax, dword [str.Decoder]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push 1
push 0
push eax
push ecx
call esi
test eax, eax
jne 0x10044265
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
push edx
mov edx, dword [str.Scalability_Levels]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x100441ad
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x14], ecx
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [str.Delta_frames_on_off]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x100441db
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 8], ecx
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [str.Transparency]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x10044209
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0x10], ecx
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
push edx
mov edx, dword [str.Tile_Width]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x10044237
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x18], ecx
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
push edx
mov edx, dword [str.Tile_Height]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x10044265
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x1c], ecx
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10044276
push eax
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10044281
push eax
call esi
pop edi
mov dword [ebp], 0
mov dword [ebp + 0xc], 0
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x10044d20
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
mov edx, dword [str.Application_User_Data]
push ebp
push esi
lea eax, [esp + 0x10]
push edi
lea ecx, [esp + 0x10]
xor ebp, ebp
push eax
mov eax, dword [str.SoftwareIntelIndeo5.0]
push ecx
push ebp
push 0xf003f
push ebp
push edx
push ebp
push eax
push 0x80000001
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10044e9a
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
mov ecx, dword [edi + 0x14]
push edx
push 4
push eax
mov eax, dword [str.EnabledAccessKey]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
call esi
test eax, eax
jne 0x10044e9a
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10044da2
mov edx, dword [edi + 4]
mov dword [esp + 0xc], edx
jmp 0x10044daa
mov dword [esp + 0xc], 0
mov ecx, dword [str.AccessKey]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push ecx
push edx
call esi
test eax, eax
jne 0x10044e9a
mov ecx, dword [str.MinViewportWidth]
mov edx, dword [esp + 0x10]
lea eax, [edi + 8]
push 4
push eax
push 4
push 0
push ecx
push edx
call esi
test eax, eax
jne 0x10044e9a
mov ecx, dword [str.MinViewportHeight]
mov edx, dword [esp + 0x10]
lea eax, [edi + 0xc]
push 4
push eax
push 4
push 0
push ecx
push edx
call esi
test eax, eax
jne 0x10044e9a
mov eax, dword [edi + 0x10]
sub eax, 4
je 0x10044e2a
dec eax
je 0x10044e20
mov dword [esp + 0xc], 1
jmp 0x10044e32
mov dword [esp + 0xc], 5
jmp 0x10044e32
mov dword [esp + 0xc], 4
mov ecx, dword [str.Transparency]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push ecx
push edx
call esi
test eax, eax
jne 0x10044e9a
mov eax, dword [edi + 0x1c]
mov edx, dword [str.QuickCompress]
lea ecx, [esp + 0xc]
push 4
push ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
push 4
push 0
push edx
push eax
call esi
test eax, eax
jne 0x10044e9a
mov ecx, dword [edi + 0x18]
lea edx, [esp + 0xc]
push 4
push edx
push 4
push eax
mov eax, dword [str.Scalability]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
call esi
test eax, eax
jne 0x10044e9a
mov ebp, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10044ea9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x10044ec0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
mov ecx, dword [str.SoftwareIntelIndeo5.0]
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor ebx, ebx
push eax
push 0xf003f
push ebx
push ecx
push 0x80000001
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x10045091
mov edi, dword [esp + 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
lea eax, [edi + 4]
push edx
mov edx, dword [str.AccessKey]
push eax
mov eax, dword [esp + 0x18]
push ecx
push ebx
push edx
push eax
call esi
cmp eax, ebx
jne 0x10045091
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [str.EnabledAccessKey]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push eax
push ebx
push ecx
push edx
call esi
cmp eax, ebx
jne 0x10045091
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10044f64
cmp eax, 1
jne 0x10045091
mov dword [edi + 0x14], eax
mov edx, dword [str.MinViewportWidth]
lea eax, [esp + 0x14]
lea ebp, [edi + 8]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ebp
push ecx
push ebx
push edx
push eax
call esi
cmp eax, ebx
jne 0x10045091
mov eax, dword [str.MinViewportHeight]
lea ecx, [esp + 0x14]
lea ebx, [edi + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push ebx
push edx
push 0
push eax
push ecx
call esi
test eax, eax
jne 0x10045091
mov ebp, dword [ebp]
test ebp, ebp
jne 0x10044fbf
cmp dword [ebx], 0
je 0x10044fe7
test ebp, ebp
jbe 0x10045091
mov ebx, dword [ebx]
test ebx, ebx
jbe 0x10045091
cmp ebp, dword [0x100921d0]
ja 0x10045091
cmp ebx, dword [0x100921d4]
ja 0x10045091
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
mov edx, dword [str.Transparency]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
call esi
test eax, eax
jne 0x10045091
mov eax, dword [esp + 0x18]
cmp eax, 5
je 0x10045021
cmp eax, 4
je 0x10045021
cmp eax, 1
jne 0x10045091
lea ecx, [esp + 0x14]
mov dword [edi + 0x10], eax
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [str.QuickCompress]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push eax
push 0
push ecx
push edx
call esi
test eax, eax
jne 0x10045091
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10045054
cmp eax, 1
jne 0x10045091
mov dword [edi + 0x1c], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [str.Scalability]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0
push eax
push ecx
call esi
test eax, eax
jne 0x10045091
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10045086
cmp eax, 1
jne 0x10045091
mov dword [edi + 0x18], eax
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100450a0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x100465d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x30
push esi
push str.ir50_lcs.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x1004668a
push str.SetRTEKey
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10046683
mov edx, dword [esp + 0x38]
lea ecx, [esp + 4]
push ecx
push 0x80719708
mov ecx, dword [edx + 0x60]
mov edx, dword [ecx + 0xf0]
mov ecx, dword [edx + 0x104]
push ecx
call eax
cmp dword [esp + 4], 0x80423718
jne 0x10046683
mov edx, dword [str.capivi5]
mov eax, dword [0x1009dc74]
mov dword [esp + 0xc], edx
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push 0x80000000
mov dword [esp + 0x44], 0x1f
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10046683
mov edx, dword [esp + 8]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x10046683
mov ecx, dword [esp + 0x38]
mov eax, 1
cmp ecx, eax
jge 0x1004668c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop esi
add esp, 0x30
ret
Function at 0x1004a3c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1007dccb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1c]
push edi
lea edi, [esi + 4]
push eax
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x14], esi
mov dword [esi], fcn.1007a980
call fcn.100755a1
xor eax, eax
lea ecx, [esi + 0x80]
mov dword [esp + 0x14], eax
mov dword [esi + 0x10], eax
call fcn.1004a050
mov ecx, dword [esp + 0xc]
mov dword [edi], 0x10092880
mov dword [esi], 0x100927d0
mov dword [esi + 0x28], 0x58
mov dword [esi + 0x2c], 0x30355649
mov dword [esi + 0x30], 0x10005
mov dword [esi + 0x38], 2
mov dword [esi + 0x3c], 0x8000004f
mov dword [esi + 0x34], 6
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 0xc
Function at 0x1004c2c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, dword [0x100a8d90]
push ebx
mov ebx, dword [esp + 0x110]
push ebp
mov ebp, dword [esp + 0x110]
mov eax, dword [ebx]
push esi
push edi
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
mov dword [ebx], eax
je 0x1004c38e
lea edx, [esp + 0x10]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x1004c3cb
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xf], 0x5c
je 0x1004c34e
mov edi, 0x1009e0f8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1009e0ec
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10077060
add esp, 8
test eax, eax
jne 0x1004c3cb
mov edi, 0x1009e0ec
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov dword [ebx], ecx
mov edi, 0x1009e0ec
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret 8