joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e6f99
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100e6f15
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100e7108
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100e7108
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100e70bd
jg 0x100e6ff5
test eax, eax
je 0x100e70b3
push 1
push 0x1000
call fcn.100e1170
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100e7018
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100e70aa
push 0x8000
push ebx
call fcn.100e6a12
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100e7041
jg 0x100e703c
cmp ecx, 0x1000
jb 0x100e7041
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100dcd06
add esp, 0x10
cmp eax, 0xffffffff
je 0x100e7086
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100e703c
jl 0x100e706d
test ecx, ecx
jne 0x100e702e
push dword [ebp - 0xc]
push ebx
call fcn.100e6a12
push esi
call fcn.100dfa38
add esp, 0xc
xor ebx, ebx
jmp 0x100e7116
cmp byte [edi + 0x24], 0
je 0x100e709d
cmp dword [edi + 0x20], 5
jne 0x100e709d
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100e70a8
mov ebx, dword [edi + 0x18]
jmp 0x100e70aa
xor ebx, ebx
push esi
call fcn.100dfa38
pop ecx
jmp 0x100e7116
test ecx, ecx
jg 0x100e707f
jl 0x100e70bd
test eax, eax
jae 0x100e707f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100da0ea
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100e70dd
cmp byte [edi + 0x1c], 0
je 0x100e707f
jmp 0x100e710e
push ebx
call fcn.100e6eab
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100e707f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100e7116
cmp byte [edi + 0x1c], 0
je 0x100e7113
mov ebx, dword [edi + 0x18]
jmp 0x100e7116
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100da0ea
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100e843a
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 0x100e84d7
push ebx
push esi
call fcn.100e8403
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.100e46ee
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100e8484
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100e84d6
push edi
push eax
call fcn.100dfa72
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100e84a4
call fcn.100dfa38
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100e84d5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100e46ee
add esp, 0x20
test eax, eax
jne 0x100e84c3
push edi
call fcn.100dfa38
jmp 0x100e84cb
push ebx
call fcn.100dfa38
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 0x100e84da
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100e84eb
pop esi
ret
push ebx
push edi
push esi
call fcn.100e8403
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100dfa72
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100e8513
push ebx
push esi
push edi
call fcn.100c2ee0
add esp, 0xc
push 0
call fcn.100dfa38
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100e8c6d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100e8788

Function at 0x100eb71b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100ddcbc
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 0x100eb78a
cmp esi, dword [ebp - 4]
je 0x100eb785
cmp dword [ebp + 0xc], 0
je 0x100eb785
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100eb762
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100eb26d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100eb78c
xor eax, eax
inc eax
jmp 0x100eb78c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100eb7f1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10133400]
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.100ddcbc
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.100ddcbc
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 0x100eb868
cmp word [ecx], dx
je 0x100eb868
mov eax, dword [0x10116d74]
push edi
dec eax
push eax
push 0x10116c60
call fcn.100eb790
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100eb8db
cmp word [eax], dx
je 0x100eb8db
mov eax, dword [edi]
test eax, eax
je 0x100eb88c
cmp word [eax], dx
je 0x100eb88c
lea eax, [ebp - 0x10]
push eax
call fcn.100eb173
jmp 0x100eb895
lea eax, [ebp - 0x10]
push eax
call fcn.100eb20e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100eb905
mov eax, dword [0x10116c5c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10116950
call fcn.100eb790
add esp, 0xc
test al, al
je 0x100eb905
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100eb8d0
cmp word [eax], di
je 0x100eb8d0
lea eax, [ebp - 0x10]
push eax
call fcn.100eb173
pop ecx
jmp 0x100eb907
lea eax, [ebp - 0x10]
push eax
call fcn.100eb20e
jmp 0x100eb8cd
mov eax, dword [edi]
test eax, eax
je 0x100eb8f2
cmp word [eax], dx
je 0x100eb8f2
lea eax, [ebp - 0x10]
push eax
call fcn.100eb128
pop ecx
jmp 0x100eb905
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 0x100eb9d0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100eb615
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100eb9d0
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100eb9d0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100eb9d0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100eb95d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100e1922
test ebx, ebx
je 0x100eb9cb
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100e1922
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100eb9d0
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 0x100eb9d0
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100e2ee1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100eb9d2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100c0c44
leave
ret
Function at 0x100efc10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100efc3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100efc3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x42e930
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e000]
push edi
jmp 0x42e94a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42e951
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42e940
mov eax, 1
add ebx, ebx
jne 0x42e963
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42e958
jne 0x42e974
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42e958
xor ecx, ecx
sub eax, 3
jb 0x42e988
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42e9fa
mov ebp, eax
add ebx, ebx
jne 0x42e993
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42e9a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42e9c4
inc ecx
add ebx, ebx
jne 0x42e9b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42e9a5
jne 0x42e9c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42e9a5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42e9e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42e9d5
jmp 0x42e946
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42e9e4
add edi, ecx
jmp 0x42e946
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42ea02
cmp byte [edi], 0x12
jne 0x42ea02
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42ea07
lea edi, [esi + 0x2c000]
mov eax, dword [edi]
or eax, eax
je 0x42ea7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x37fb0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x38090]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42ea34
mov ecx, edi
jns 0x42ea63
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x38098]
or eax, eax
je 0x42ea79
mov dword [ebx], eax
add ebx, 4
jmp 0x42ea51
call dword [esi + 0x38094]
mov ebp, dword [esi + 0x3809c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42eab3
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x401a50
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x41e978]
push esi
push edi
push 0
push 0
push pe_nt_image_headers32
push 0x3f1
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
test eax, eax
je 0x401b29
mov ecx, dword [0x41e978]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x3f2
push ecx
mov dword [0x41ea94], 0
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
mov edx, dword [0x41e978]
push 0
push 0x3f3
push edx
call esi
push eax
call edi
mov eax, dword [0x41e978]
push 0
push 0x401
push eax
call esi
push eax
call edi
mov ecx, dword [0x41e978]
push 5
push 0x3f5
push ecx
call esi
push eax
call edi
mov edx, dword [0x41e978]
push 0
push 0x3f2
push edx
call esi
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call edi
mov eax, dword [0x41e978]
push 0
push 0x3f3
push eax
call esi
push eax
call edi
mov ecx, dword [0x41e978]
push 0
push 0x401
push ecx
call esi
push eax
call edi
mov edx, dword [0x41e978]
push 1
push 0x3f5
push edx
call esi
push eax
call edi
pop edi
pop esi
ret
mov eax, dword [0x41e978]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 5
push 0x3f2
push eax
mov dword [0x41ea94], 1
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
mov ecx, dword [0x41e978]
push 5
push 0x3f3
push ecx
call esi
push eax
call edi
mov edx, dword [0x41e978]
push 5
push 0x401
push edx
call esi
push eax
call edi
mov eax, dword [0x41e978]
push 0
push 0x3f5
push eax
call esi
push eax
call edi
mov ecx, dword [0x41e978]
push 1
push 0x3f2
push ecx
call esi
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call edi
mov edx, dword [0x41e978]
push 1
push 0x3f3
push edx
call esi
push eax
call edi
mov eax, dword [0x41e978]
push 1
push 0x401
push eax
call esi
push eax
call edi
mov ecx, dword [0x41e978]
push 0
push 0x3f5
push ecx
call esi
push eax
call edi
pop edi
pop esi
ret
Function at 0x404d50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push esi
xor esi, esi
push eax
push 1
push esi
push str.SoftwareOntrackPowerDeskCurrentVersionPDFind
push 0x80000001
mov dword [esp + 0x20], 3
mov dword [esp + 0x1c], 0x20
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404db6
mov edx, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push esi
push str.Columns
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404dab
mov esi, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x404dc0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20
push ebx
xor ebx, ebx
cmp word [0x41d078], 0x9c54
je 0x404ddb
mov eax, 1
pop ebx
add esp, 0x20
ret
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x101d
push esi
call edi
push 0
push 1
push 0x101d
push esi
mov dword [esp + 0x1c], eax
call edi
push 0
push 2
push 0x101d
push esi
mov dword [esp + 0x20], eax
call edi
push 0
push 3
push 0x101d
push esi
mov dword [esp + 0x24], eax
call edi
push 0
push 4
push 0x101d
push esi
mov dword [esp + 0x28], eax
call edi
push 0
push 5
push 0x101d
push esi
mov dword [esp + 0x2c], eax
call edi
push 0
push 6
push 0x101d
push esi
mov dword [esp + 0x30], eax
call edi
push 0
push 7
push 0x101d
push esi
mov dword [esp + 0x34], eax
call edi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x30]
push eax
push 2
push 0
push str.SoftwareOntrackPowerDeskCurrentVersionPDFind
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x404eb4
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
push 0x20
push ecx
push 3
push eax
push str.Columns
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x404ea9
mov ebx, 1
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
add esp, 0x20
ret
Function at 0x405880
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov eax, dword [0x422b20]
mov ecx, dword [esp + 4]
sub esp, 0x264
mov edx, dword [esp + 0x26c]
or edx, 0x40000348
push esi
push 0
push eax
push 0x79
push ecx
push 0x14
push 0x14
push 0
push 0
push edx
push 0x41e998
push 0x41d780
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x4058cf
pop esi
add esp, 0x264
ret
push ebx
push edi
lea eax, [esp + 0xc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x4001
lea ecx, [esp + 0x114]
push 0x160
push ecx
lea edx, [esp + 0x18]
push 0
push edx
call ebx
mov edi, eax
push 0x4000
lea eax, [esp + 0x114]
push 0x160
push eax
lea ecx, [esp + 0x18]
push 0
push ecx
call ebx
test edi, edi
mov ebx, eax
je 0x405945
test ebx, ebx
je 0x405945
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0x1003
push esi
call edi
push ebx
push 0
push 0x1003
push esi
call edi
push esi
call fcn.00404ec0
add esp, 4
mov eax, esi
pop edi
pop ebx
pop esi
add esp, 0x264
ret
Function at 0x406d30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x41ea64]
sub esp, 0x28
push ebp
push esi
or esi, 0xffffffff
or ebp, 0xffffffff
test eax, eax
je 0x406df3
push ebx
mov ebx, dword [esp + 0x38]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, ebx
mov ecx, dword [0x41ea64]
neg eax
sbb eax, eax
and eax, 2
and eax, 0xffff
push eax
push esi
push 0x100c
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
jle 0x406de2
mov eax, dword [0x41ea64]
lea edx, [esp + 0x10]
push edx
push 0
push 0x1005
push eax
mov dword [esp + 0x20], 4
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0
call edi
test eax, eax
je 0x406d54
mov eax, dword [esp + 0x30]
test eax, eax
je 0x406d54
mov eax, dword [eax]
test eax, eax
je 0x406d54
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406ddb
mov ecx, dword [0x41ea64]
push 0
push esi
push 0x1008
push ecx
call edi
test eax, eax
je 0x406d54
mov esi, ebp
jmp 0x406d54
mov ebp, esi
jmp 0x406d54
push 1
call fcn.0040b1c0
add esp, 4
call fcn.00409130
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x28
ret

Function at 0x407a60
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [0x41eaa0]
test esi, esi
je 0x407a8d
mov edx, dword [esp + 0xc]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret

Function at 0x407a90
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [0x41eaa0]
test eax, eax
jne 0x407a9c
pop ecx
ret
mov edx, dword [esp + 0xc]
lea ecx, [esp]
push ecx
lea ecx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
pop ecx
ret
Function at 0x407b90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push 1
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0x2c
call fcn.00407ad0
add esp, 4
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push 1
push ebx
push str.SoftwareOntrackPowerDeskCurrentVersionPDFind
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407ca9
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 8]
push edi
push ecx
lea edx, [esp + 0x14]
push 0x41d068
push edx
push ebx
push str.Global_Settings
push eax
call esi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push 0x41d7e0
push edx
push ebx
mov edi, 4
push str.Save_Settings_On_Exit
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call esi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push 0x41ea94
push edx
push ebx
push str.Show_Path
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call esi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push 0x41d7c0
push edx
push ebx
push str.Drives
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call esi
mov eax, dword [0x41d7c0]
cmp eax, ebx
jne 0x407c75
mov eax, edi
mov dword [0x41d7c0], eax
pop edi
xor ecx, ecx
pop esi
mov edx, 1
shl edx, cl
test eax, edx
je 0x407c8d
mov byte [ecx + 0x41d098], 1
jmp 0x407c93
mov byte [ecx + 0x41d098], bl
inc ecx
cmp ecx, 0x1a
jl 0x407c79
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00407e10
mov dword [0x41d08c], ebx
mov dword [0x41d068], ebx
pop ebx
add esp, 0xc
ret
Function at 0x4084b0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x318
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
xor ebx, ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ebx
lea edx, [esp + 0x2c]
push ecx
push edx
push ebx
push 0x80000000
xor esi, esi
mov dword [esp + 0x30], 0x104
mov dword [0x41e9cc], ebx
call ebp
test eax, eax
jne 0x408631
mov eax, dword [0x41e9cc]
cmp eax, 0xc8
jge 0x408636
cmp byte [esp + 0x1c], 0x2e
jne 0x408606
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x80000000
call fcn.00407940
add esp, 0xc
test eax, eax
je 0x408606
lea ecx, [esp + 0x224]
push ecx
push ebx
call fcn.00407a90
add esp, 8
test eax, eax
je 0x408601
lea edx, [esp + 0x224]
push edx
push ebx
push 0x80000000
call fcn.00407940
add esp, 0xc
test eax, eax
je 0x408601
lea eax, [esp + 0x120]
push eax
push ebx
call fcn.00407a90
add esp, 8
test eax, eax
je 0x408601
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x408601
push 0x50
call fcn.00412b24
mov ecx, dword [0x41e9cc]
add esp, 4
cmp eax, ebx
mov dword [ecx*4 + 0x4226e0], eax
je 0x408601
lea edx, [esp + 0x1c]
push 0xa
push edx
push eax
call fcn.004132d0
mov eax, dword [0x41e9cc]
lea edx, [esp + 0x12c]
push 0x46
push edx
mov ecx, dword [eax*4 + 0x4226e0]
mov byte [ecx + 9], bl
mov eax, dword [0x41e9cc]
mov ecx, dword [eax*4 + 0x4226e0]
add ecx, 0xa
push ecx
call fcn.004132d0
mov edx, dword [0x41e9cc]
add esp, 0x18
mov eax, dword [edx*4 + 0x4226e0]
mov byte [eax + 0x4f], bl
mov eax, dword [0x41e9cc]
inc eax
mov dword [0x41e9cc], eax
call fcn.00407890
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
inc esi
push edx
push eax
push esi
push 0x80000000
mov dword [esp + 0x30], 0x104
call ebp
test eax, eax
je 0x4084f4
mov eax, dword [0x41e9cc]
pop edi
pop esi
pop ebp
cmp eax, ebx
pop ebx
jle 0x408653
push 0x408660
push 4
push eax
push 0x4226e0
call fcn.00413408
add esp, 0x10
add esp, 0x318
ret