joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bc17
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x603d8c
call fcn.00465b38
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
push 0x69dc58
lea ecx, [ebp - 0x14]
call fcn.005ece05
xor ebx, ebx
cmp dword [0x66b2ec], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
jle 0x40bc7f
mov edi, 0x66b2cc
push dword [edi - 4]
lea ecx, [ebp - 0x14]
call fcn.005edf3b
push 0xffffffffffffffff
lea ecx, [esi + 0x174]
push dword [edi]
push dword [edi + 4]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00432f99
inc dword [ebp - 0x10]
add edi, 0xc
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x66b2ec]
jl 0x40bc4b
push 0xfffffffffffffff0
push dword [esi + 0x190]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and al, 0xfd
or al, 0xd
push eax
push 0xfffffffffffffff0
push dword [esi + 0x190]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0x1037
push dword [esi + 0x190]
call edi
or al, 0x20
lea ecx, [esi + 0x174]
push eax
mov dword [ebp - 0x10], ecx
call fcn.0043357b
lea ecx, [ebp - 0x1c]
call fcn.005e4ce0
push ebx
push ebx
push 0x20
push 0x12
push 0x12
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.005e4da5
lea eax, [ebp - 0x1c]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x18]
push eax
push 1
push 0x1003
push dword [esi + 0x190]
call edi
push eax
call fcn.005e4d72
mov ecx, dword [ebp - 0x10]
push ebx
push ebx
call fcn.0043388f
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.005e4d09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.005ecd91
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40ce40
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x60400f
call fcn.00465b38
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
and dword [ebp - 0x18], 0
push dword [esi + 4]
push 0
push str.OeaSandBoxLastName
push str.OeaSandBoxConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
inc edi
cmp edi, 0x64
jl 0x40ce76
push 1
pop edi
mov ebx, 0x69dc58
lea ecx, [ebp - 0x14]
push ebx
call fcn.00480200
push edi
lea eax, [ebp - 0x14]
push 0x66a3b8
push eax
mov dword [ebp - 4], 1
call fcn.00483a80
add esp, 0xc
push dword [esi + 4]
push dword [ebp - 0x14]
push str.OeaSandBoxLastName
push str.OeaSandBoxConfig
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebx
lea ecx, [ebp - 0x10]
call fcn.00480200
push dword [esi + 0x1c]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push edi
push str.OeaSandbox_d__d
push eax
call fcn.00483a80
mov ecx, dword [ebp + 8]
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
call fcn.0047fff0
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00480a70
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00480a70
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40d0af
Capabilities:
Get common file path

Disassembly:
mov eax, 0x604077
call fcn.00465b38
sub esp, 0x420
push esi
mov dword [ebp - 0x14], ecx
push edi
xor esi, esi
push 0x69dc58
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], esi
call fcn.00480200
cmp dword [ebp + 0xc], esi
mov dword [ebp - 4], 1
je 0x40d242
push dword [ebp + 0xc]
call fcn.00465c4f
cmp eax, 3
pop ecx
jbe 0x40d242
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x222]
mov word [ebp - 0x224], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x104
lea eax, [ebp - 0x224]
push esi
push eax
push dword [ebp + 0xc]
call fcn.004533d6
add esp, 0xc
lea ecx, [ebp - 0x10]
push 0x200
call fcn.00481730
push 0x400
push 0
push eax
mov dword [ebp + 0xc], eax
call fcn.00466010
add esp, 0xc
push 0x5c
pop eax
cmp word [ebp - 0x224], ax
jne 0x40d1dd
cmp word [ebp - 0x222], ax
jne 0x40d1dd
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004663c1
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
pop ecx
je 0x40d238
and word [ebp - 0x42c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x42a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x42c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40d238
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push eax
call fcn.0040cfd7
mov ecx, dword [ebp - 0x18]
add ecx, 2
push ecx
movzx ecx, word [ebp - 0x42c]
push ecx
push dword [eax]
push str._sDrive_cOutgoing_s_
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea ecx, [ebp - 0x14]
jmp 0x40d233
cmp word [ebp - 0x222], 0x3a
jne 0x40d242
cmp word [ebp - 0x220], ax
jne 0x40d242
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004663c1
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40d238
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
call fcn.0040cfd7
movzx ecx, word [ebp - 0x224]
add esi, 2
push esi
push ecx
push dword [eax]
push str._sDrive_cOutgoing_s_
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea ecx, [ebp - 0x18]
call fcn.00480a70
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00481810
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0047fff0
mov dword [ebp - 0x1c], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00480a70
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40e383
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x604390
call fcn.00465b38
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
push 0x69dc58
lea ecx, [ebp - 0x14]
call fcn.005ece05
xor ebx, ebx
cmp dword [0x66b4e8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
jle 0x40e3eb
mov edi, 0x66b4d4
push dword [edi - 4]
lea ecx, [ebp - 0x14]
call fcn.005edf3b
push 0xffffffffffffffff
lea ecx, [esi + 0x8c]
push dword [edi]
push dword [edi + 4]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00432f99
inc dword [ebp - 0x10]
add edi, 0xc
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x66b4e8]
jl 0x40e3b7
push 0xfffffffffffffff0
push dword [esi + 0xa8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and al, 0xfd
or al, 0xd
push eax
push 0xfffffffffffffff0
push dword [esi + 0xa8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0x1037
push dword [esi + 0xa8]
call edi
or al, 0x20
lea ecx, [esi + 0x8c]
push eax
mov dword [ebp - 0x10], ecx
call fcn.0043357b
lea ecx, [ebp - 0x1c]
call fcn.005e4ce0
push ebx
push ebx
push 0x20
push 0x12
push 0x12
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.005e4da5
lea eax, [ebp - 0x1c]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x18]
push eax
push 1
push 0x1003
push dword [esi + 0xa8]
call edi
push eax
call fcn.005e4d72
mov ecx, dword [ebp - 0x10]
push ebx
push ebx
call fcn.0043388f
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.005e4d09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.005ecd91
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40fe62
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x60457f
call fcn.00465b38
sub esp, 0x78
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], edi
cmp dword [eax - 8], edi
je 0x40ff6f
lea eax, [esi + 4]
lea ecx, [ebp - 0x10]
push eax
call fcn.0047fff0
push 0x66b518
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.004816b0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ff88
lea ecx, [ebp - 0x50]
xor ebx, ebx
call fcn.004091e3
mov esi, dword [esi + 8]
lea eax, [ebp - 0x50]
push ebx
push eax
push esi
mov byte [ebp - 4], 1
call fcn.004ee4a0
add esp, 0xc
test eax, eax
je 0x40ff04
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x4c]
or ebx, eax
mov eax, dword [ebp - 0x20]
mov esi, 0x66b510
xor ecx, ecx
push esi
or edi, ecx
mov dword [ebp - 0x18], eax
call fcn.00465c4f
push eax
push esi
push dword [ebp - 0x18]
call fcn.00466bdc
add esp, 0x10
test eax, eax
jne 0x40ff75
and byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00409264
xor esi, esi
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x1c], esi
call fcn.004091e3
lea eax, [ebp - 0x84]
push esi
push eax
mov byte [ebp - 4], 2
push dword [ebp - 0x10]
call fcn.004ee4a0
add esp, 0xc
test eax, eax
je 0x40ff4c
mov ecx, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x80]
xor eax, eax
xor edx, edx
or eax, ecx
or esi, edx
mov dword [ebp - 0x1c], eax
and byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.00409264
cmp esi, edi
jl 0x40ff88
jg 0x40ff66
cmp dword [ebp - 0x1c], ebx
jb 0x40ff88
mov dword [ebp - 0x14], 1
jmp 0x40ff88
or dword [ebp - 0x14], 0xffffffff
jmp 0x40ff94
and byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x14], 1
call fcn.00409264
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00480a70
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4101ab
Capabilities:
Delete directory

Disassembly:
mov eax, 0x6045e8
call fcn.00465b38
sub esp, 0x1c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x410314
push dword [ebp + 8]
call fcn.00465c4f
test eax, eax
pop ecx
je 0x410314
push ebx
push esi
push dword [ebp + 8]
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], edi
call fcn.00480200
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
call fcn.005e65fe
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
push edi
push 1
pop esi
push esi
push dword [ebp + 8]
call fcn.004e93d0
add esp, 0x10
test eax, eax
je 0x4102e7
cmp dword [ebp - 0x20], edi
je 0x410306
xor ebx, ebx
cmp dword [ebp - 0x20], edi
jle 0x41027c
mov esi, 0x66b54c
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
push dword [eax + ebx*4]
call fcn.00480200
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004816b0
mov eax, dword [ebp - 0x24]
push edi
push dword [ebp - 0x10]
mov eax, dword [eax + ebx*4]
push eax
call fcn.004e6d50
add esp, 0xc
test eax, eax
je 0x41028a
mov eax, dword [ebp - 0x24]
push dword [eax + ebx*4]
call fcn.004e6370
pop ecx
mov byte [ebp - 4], 1
test eax, eax
lea ecx, [ebp - 0x10]
je 0x410291
call fcn.00480a70
inc ebx
cmp ebx, dword [ebp - 0x20]
jl 0x410225
push 1
pop esi
push dword [ebp + 8]
call fcn.004e9650
pop ecx
mov dword [ebp - 0x14], esi
jmp 0x4102e7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00480a70
test ebx, ebx
jl 0x4102e7
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
push dword [eax + edi*4]
call fcn.00480200
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004816b0
mov eax, dword [ebp - 0x24]
push 0
mov eax, dword [eax + edi*4]
push eax
push dword [ebp - 0x10]
call fcn.004e7460
add esp, 0xc
test eax, eax
jne 0x4102d6
push dword [ebp - 0x10]
call fcn.004e6370
pop ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00480a70
inc edi
cmp edi, ebx
jle 0x41029a
and byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.005e6631
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00480a70
mov eax, dword [ebp - 0x14]
pop esi
pop ebx
jmp 0x410316
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x410285
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x410323
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410337
push 1
pop esi
mov eax, esi
pop esi
ret

Function at 0x410375
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x6045fc
call fcn.00465b38
push ecx
add ecx, 4
push esi
push ecx
lea ecx, [ebp - 0x10]
xor esi, esi
call fcn.0047fff0
push str._old_
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.004816b0
push str.OeaUpdateTag.dat
lea ecx, [ebp - 0x10]
call fcn.004816b0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4103bd
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00480a70
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4103d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x604610
call fcn.00465b38
push ecx
add ecx, 4
push esi
push ecx
lea ecx, [ebp - 0x10]
xor esi, esi
call fcn.0047fff0
push 0x66b518
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.004816b0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410413
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00480a70
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x41042e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x604634
call fcn.00465b38
sub esp, 0x40
push ebx
push esi
push edi
xor ebx, ebx
push 0x69dc58
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.005ece05
mov dword [ebp - 4], ebx
call fcn.004d82e0
test eax, eax
je 0x4104d7
push 0x66b650
call fcn.004e07d0
push eax
lea eax, [ebp - 0x10]
push str._sdrivers_s
push eax
call fcn.005e20b1
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4105a0
lea ecx, [ebp - 0x4c]
call fcn.004091e3
lea eax, [ebp - 0x4c]
push ebx
push eax
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call fcn.004ee4a0
add esp, 0xc
test eax, eax
je 0x4104c0
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
xor ecx, ecx
xor esi, esi
or ecx, eax
mov eax, dword [ebp + 8]
or edx, esi
mov dword [eax], ecx
mov dword [eax + 4], edx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], bl
call fcn.00409264
jmp 0x4105a0
mov dword [ebp - 0x18], ebx
call fcn.004d8300
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41050a
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push str.Wow64DisableWow64FsRedirection
push edi
call esi
cmp eax, ebx
je 0x41050d
lea ecx, [ebp - 0x18]
push ecx
call eax
jmp 0x41050d
mov edi, dword [ebp + 8]
push 0x66b5dc
call fcn.004e07d0
push eax
lea eax, [ebp - 0x10]
push str._sdrivers_s
push eax
call fcn.005e20b1
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41057f
lea ecx, [ebp - 0x4c]
call fcn.004091e3
lea eax, [ebp - 0x4c]
push ebx
push eax
mov byte [ebp - 4], 2
push dword [ebp - 0x10]
call fcn.004ee4a0
add esp, 0xc
test eax, eax
je 0x41056d
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
xor ecx, ecx
xor ebx, ebx
or ecx, eax
mov eax, dword [ebp + 8]
or edx, ebx
mov dword [eax], ecx
mov dword [eax + 4], edx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], bl
call fcn.00409264
call fcn.004d8300
test eax, eax
je 0x4105a0
push str.Wow64RevertWow64FsRedirection
push edi
call esi
cmp eax, ebx
je 0x410599
push dword [ebp - 0x18]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x6a3388], ebx
pop edi
pop esi
pop ebx
je 0x4105c7
push dword [ebp - 0x14]
push str.IsExistDrvInSystem_bExist__d_
push str.CopyModule
push 4
push 0x6a2af4
call fcn.004cdcb0
add esp, 0x14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.005ecd91
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4109e3
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410a03
test al, 1
je 0x410a03
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x410b91
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.005ed33d
mov ecx, esi
call fcn.005e2360
mov ecx, esi
call fcn.005e226f
push 0x22
mov ecx, esi
call fcn.005e1ade
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x410c85
push edi
push ebx
push 0x66ae40
mov ecx, esi
call fcn.005e1d4b
push ebx
push 0x66ae34
mov ecx, esi
mov edi, eax
call fcn.005e1d4b
cmp edi, 0xffffffff
je 0x410bfd
mov eax, dword [esi]
mov eax, dword [eax - 8]
sub eax, edi
sub eax, 4
add edi, 4
push eax
push edi
jmp 0x410c11
cmp eax, 0xffffffff
je 0x410c18
mov ecx, dword [esi]
mov ecx, dword [ecx - 8]
sub ecx, eax
sub ecx, 4
add eax, 4
push ecx
push eax
mov ecx, esi
call fcn.005e1766
push 0x25
mov ecx, esi
call fcn.005ed2cd
cmp eax, 0xffffffff
je 0x410c68
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x104
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, esi
call fcn.005ecd19
lea eax, [ebp - 0x208]
mov ecx, esi
push eax
push ebx
call fcn.005e1861
push 0x3a
mov ecx, esi
call fcn.005e1d1b
cmp eax, ebx
pop edi
jl 0x410c85
cmp eax, 1
je 0x410c85
dec eax
mov ecx, esi
push eax
push ebx
call fcn.005e1766
push 1
pop eax
pop esi
pop ebx
leave
ret
Function at 0x410c8c
Capabilities:
Create directory
Get file attributes

Disassembly:
mov eax, 0x604710
call fcn.00465b38
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x410d87
push ebx
call fcn.00465c4f
test eax, eax
pop ecx
je 0x410d87
push ebx
lea ecx, [ebp + 8]
call fcn.005ece05
and dword [ebp - 4], 0
push 3
push 0x5c
lea ecx, [ebp + 8]
call fcn.005ed2db
mov edi, 0x66bcd8
push 4
push edi
push ebx
mov esi, eax
call fcn.00465b57
add esp, 0xc
test eax, eax
jne 0x410cfa
push edi
call fcn.00465c4f
pop ecx
push eax
push 0x5c
lea ecx, [ebp + 8]
call fcn.005ed2db
inc eax
push eax
jmp 0x410d10
push 2
push 0x66a238
push ebx
call fcn.00465b57
add esp, 0xc
test eax, eax
jne 0x410d1c
inc esi
push esi
push 0x5c
lea ecx, [ebp + 8]
call fcn.005ed2db
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x410d9a
lea eax, [ebp - 0x10]
push esi
push eax
lea ecx, [ebp + 8]
call fcn.005e1c4f
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
jne 0x410d50
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x410d52
test al, 0x10
je 0x410d70
inc esi
lea ecx, [ebp + 8]
push esi
push 0x5c
call fcn.005ed2db
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.005ecd91
jmp 0x410d1f
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.005ecd91
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.005ecd91
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
mov esi, dword [ebp + 8]
call fcn.004cccf0
push eax
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.005ecd91
push 1
pop eax
jmp 0x410d89
Function at 0x412714
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x604aac
call fcn.00465b38
sub esp, 0x3c
and dword [ebp - 0x14], 0
add ecx, 0x190
push ecx
lea ecx, [ebp - 0x10]
call fcn.005ecafe
and dword [ebp - 4], 0
push 0x66a230
lea ecx, [ebp - 0x10]
call fcn.005e21dc
push str.OeaReader.dll
lea ecx, [ebp - 0x10]
call fcn.005ed182
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4127c7
push esi
push edi
lea ecx, [ebp - 0x48]
xor edi, edi
xor esi, esi
call fcn.004091e3
lea eax, [ebp - 0x48]
push esi
push eax
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call fcn.004ee4a0
add esp, 0xc
test eax, eax
je 0x412792
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
xor ecx, ecx
or edi, eax
or esi, ecx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00409264
cmp esi, 0x30038
jl 0x4127b7
jg 0x4127b0
cmp edi, 0xdd21fd
jb 0x4127b7
mov dword [ebp - 0x14], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.005ecd91
pop edi
pop esi
jmp 0x4127da
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 1
call fcn.005ecd91
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov dword fs:[0], ecx
leave
ret
Function at 0x41456e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x604e94
call fcn.00465b38
sub esp, 0x418
push ebx
xor ebx, ebx
cmp dword [0x69df24], ebx
push esi
mov esi, ecx
jne 0x414744
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21a]
mov word [ebp - 0x21c], bx
mov dword [0x69df24], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x10]
push eax
call fcn.005ece05
push 0x66b0e4
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.005e21dc
mov ebx, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x21c]
push 0x103
push eax
push dword [ebp - 0x10]
call ebx
lea edi, [esi + 0x184]
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call fcn.005ecf28
push str.OCularOEA_
mov ecx, edi
call fcn.005ed182
push dword [edi]
mov ecx, esi
call fcn.00410c8c
lea edi, [esi + 0x188]
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call fcn.005ecf28
push str.OEATemp_
mov ecx, edi
call fcn.005ed182
push dword [edi]
mov ecx, esi
call fcn.00410c8c
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x422]
mov word [ebp - 0x424], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x424]
push 0x23
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x424]
lea ecx, [ebp - 0x14]
push eax
call fcn.005ece05
push 0x66b0e4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005e21dc
lea eax, [ebp - 0x424]
push 0x103
push eax
push dword [ebp - 0x14]
call ebx
lea edi, [esi + 0x18c]
lea eax, [ebp - 0x424]
push eax
mov ecx, edi
call fcn.005ecf28
push str.OEAViewer_
mov ecx, edi
call fcn.005ed182
push dword [edi]
mov ecx, esi
call fcn.00410c8c
push str.Auth_
mov ecx, edi
call fcn.005ed182
push dword [edi]
mov ecx, esi
call fcn.00410c8c
lea edi, [esi + 0x190]
lea eax, [ebp - 0x424]
push eax
mov ecx, edi
call fcn.005ecf28
push str.OEAViewerModule_
mov ecx, edi
call fcn.005ed182
push dword [edi]
mov ecx, esi
call fcn.00410c8c
push str.OeaViewer.ini
add esi, 0x1c0
push dword [edi]
push 0x66b78c
push esi
call fcn.005e20b1
and byte [ebp - 4], 0
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.005ecd91
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.005ecd91
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [0x69df24]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret