joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ecf3
Capabilities:
Get file version info

Disassembly:
push 0x1b0
mov eax, 0x4f0e21
call fcn.004cb117
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push 0x50a79a
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1bc], esi
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x1b8], ebx
call fcn.0044dacf
mov edi, 0x104
push edi
lea eax, [ebp - 0x117]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1b8], 1
mov byte [ebp - 0x118], bl
call fcn.004ca820
push edi
push dword [ebp - 0x19c]
lea eax, [ebp - 0x118]
push eax
call fcn.004cdd16
add esp, 0x18
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x1a8], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x45eec1
push edi
call fcn.004cddf9
pop ecx
push eax
push edi
push dword [ebp - 0x1a8]
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x118]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x45edc0
push dword [ebp - 0x1a4]
call fcn.004cb541
pop ecx
jmp 0x45eec1
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x1ac]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x1a4]
mov dword [ebp - 0x19c], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x45eec1
mov edi, dword [ebp - 0x19c]
shr edi, 2
mov dword [ebp - 0x1a0], ebx
cmp edi, ebx
jle 0x45eec1
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 0x1a0]
lea eax, [eax + ecx*4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push str.FileVersion
push ecx
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x198]
push 0x7f
push eax
call fcn.0045ebfb
add esp, 0x18
cmp eax, ebx
jl 0x45ee64
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x198]
push eax
push dword [ebp - 0x1a4]
mov dword [ebp - 0x1b4], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x45ee74
inc dword [ebp - 0x1a0]
cmp dword [ebp - 0x1a0], edi
jl 0x45ee03
jmp 0x45eec1
mov edi, dword [ebp - 0x1b0]
push edi
call fcn.004ca000
pop ecx
push eax
push edi
mov ecx, esi
call fcn.0044d934
mov eax, dword [esi + 0x10]
xor edi, edi
xor ecx, ecx
cmp eax, ebx
jbe 0x45eec1
mov ebx, dword [esi + 0x14]
cmp ebx, 0x10
jb 0x45eea1
mov edx, dword [esi]
jmp 0x45eea3
mov edx, esi
cmp byte [edx + ecx], 0x2e
jne 0x45eeaf
inc edi
cmp edi, 3
je 0x45eeb6
inc ecx
cmp ecx, eax
jb 0x45ee98
jmp 0x45eec1
sub eax, ecx
push eax
push ecx
mov ecx, esi
call fcn.0044d6bb
mov eax, esi
call fcn.004cb19a
ret 8
Function at 0x45f0c9
Capabilities:
Enumerate files on windows

Disassembly:
push 0x364
mov eax, 0x4f0f19
call fcn.004cb117
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov edi, ecx
mov ecx, dword [esi]
push eax
push ecx
lea eax, [ebp - 0x370]
push eax
mov ecx, esi
call fcn.0045f085
xor ebx, ebx
cmp byte [edi + 4], bl
je 0x45f1b8
push 0x200
lea eax, [ebp - 0x210]
push eax
mov ecx, edi
call fcn.0045ea19
test al, al
je 0x45f1b8
push 0x13c
lea eax, [ebp - 0x368]
push ebx
push eax
mov dword [ebp - 0x36c], ebx
call fcn.004ca820
push 1
lea eax, [ebp - 0x210]
push 0x5137d0
push eax
call fcn.004cdc29
add esp, 0x18
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x45f1b8
test byte [ebp - 0x36c], 0x10
je 0x45f19f
lea eax, [ebp - 0x340]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0044dacf
lea eax, [ebp - 0x22c]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00457897
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x22c]
call fcn.0044d2a1
lea eax, [ebp - 0x36c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x45f161
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi + 4]
sub eax, dword [esi]
push 0x1c
cdq
pop ecx
idiv ecx
call fcn.004cb19a
ret 4

Function at 0x462021
Capabilities:
Write file on windows

Disassembly:
push 0x424
mov eax, 0x4f1401
call fcn.004cb117
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x430]
call fcn.0044e7e3
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 0x10
jb 0x46204d
mov esi, dword [esi]
push 2
push esi
lea ecx, [ebp - 0x430]
call fcn.0045f2ee
mov byte [ebp - 0x411], al
test al, al
je 0x4620e2
and dword [ebp - 0x418], 0
cmp dword [edi + 0x14], 0x10
jb 0x462074
mov edi, dword [edi]
push 0x4f5adc
lea eax, [ebp - 0x418]
push edi
push eax
call fcn.004cbb6f
add esp, 0xc
cmp dword [ebp - 0x418], 0
je 0x4620d0
mov esi, 0x400
jmp 0x4620ab
push 1
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.004cb4c7
add esp, 0x10
push esi
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x430]
call fcn.0045f40c
push dword [ebp - 0x418]
test eax, eax
jne 0x462099
call fcn.004cba28
pop ecx
jmp 0x4620d7
mov byte [ebp - 0x411], 0
lea ecx, [ebp - 0x430]
call fcn.0045f392
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.0045f47f
mov al, byte [ebp - 0x411]
call fcn.004cb19a
ret
Function at 0x462176
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.004ca820
xor edi, edi
inc edi
mov eax, edi
mov word [ebp - 0x24], ax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], edi
cmp dword [ebp + 0x34], esi
je 0x4621c1
cmp dword [ebp + 0x38], 0x10
mov eax, dword [ebp + 0x24]
jae 0x4621c1
lea eax, [ebp + 0x24]
cmp dword [ebp + 0x1c], 0x10
mov ecx, dword [ebp + 8]
jae 0x4621cd
lea ecx, [ebp + 8]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x54]
push edx
push eax
push esi
push esi
push esi
push esi
push esi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
je 0x4621ff
cmp byte [ebp + 0x40], 0
je 0x4621ff
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push edi
lea ecx, [ebp + 8]
call fcn.0044d2a1
push esi
push edi
lea ecx, [ebp + 0x24]
call fcn.0044d2a1
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x462795
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x530630]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xb
xor ebx, ebx
mov dword [ebp - 0x140], ebx
pop ecx
mov esi, str.SOFTWAREMicrosoftWindows_Imaging_Component
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
push 0x103
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x137]
push ebx
push eax
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x138], bl
call fcn.004ca820
add esp, 0xc
lea eax, [ebp - 0x13c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x34]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x462842
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x138]
push eax
push ebx
push ebx
push str.InstalledVersion
push dword [ebp - 0x13c]
mov dword [ebp - 0x140], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x144]
lea eax, [ebp - 0x138]
push eax
call fcn.0044dacf
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x144]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cab85
leave
ret
Function at 0x462869
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x64
mov eax, 0x4f1496
call fcn.004cb117
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], 1
call fcn.0044d9de
mov edi, 0x50bfdc
push edi
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.0044dacf
lea eax, [ebp - 0x64]
push eax
push esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x6c], 1
call fcn.004649ba
pop ecx
pop ecx
test al, al
jne 0x4628e8
push 0x4f5ae4
lea ecx, [ebp - 0x2c]
call fcn.0044dacf
lea eax, [ebp - 0x2c]
push eax
push esi
mov dword [ebp - 4], 2
mov dword [ebp - 0x6c], 3
call fcn.004649ba
pop ecx
pop ecx
mov byte [ebp - 0x65], 1
test al, al
je 0x4628eb
mov byte [ebp - 0x65], bl
xor esi, esi
inc esi
test byte [ebp - 0x6c], 2
je 0x462902
and dword [ebp - 0x6c], 0xfffffffd
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0044d2a1
test byte [ebp - 0x6c], 1
mov dword [ebp - 4], ebx
je 0x462915
push ebx
push esi
lea ecx, [ebp - 0x64]
call fcn.0044d2a1
cmp byte [ebp - 0x65], bl
je 0x46292b
push edi
call fcn.004ca000
pop ecx
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.0044da04
xor edi, edi
cmp dword [ebp - 0x38], ebx
jbe 0x4629a7
push edi
lea ecx, [ebp - 0x48]
call fcn.00461ffe
cmp byte [eax], 0x5c
je 0x46294e
push edi
lea ecx, [ebp - 0x48]
call fcn.00461ffe
cmp byte [eax], 0x2f
jne 0x4629a1
push edi
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.0044dafe
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x462968
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x462997
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x462980
lea eax, [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x462994
cmp dword [ebp - 0x70], ebx
mov dword [ebp - 0x70], esi
jne 0x462997
mov dword [ebp - 0x70], ebx
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0044d2a1
inc edi
cmp edi, dword [ebp - 0x38]
jb 0x462932
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.0044d2a1
mov eax, dword [ebp - 0x70]
call fcn.004cb19a
ret
Function at 0x462a1c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x130
mov eax, 0x4f14c6
call fcn.004cb117
xor ebx, ebx
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x114], bl
call fcn.004ca820
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
push 0x20019
push ebx
push str.SystemCurrentControlSetControlSession_ManagerEnvironment
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x13c], 0x104
mov dword [ebp - 0x138], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x462ae3
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push str.PROCESSOR_ARCHITECTURE
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x462ad7
lea eax, [ebp - 0x114]
push eax
call fcn.004ca000
pop ecx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.0044d934
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x4f6710
push esi
call fcn.004ca000
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x130]
call fcn.0044cf89
push ebx
cmp eax, 0xffffffff
push 1
lea ecx, [ebp - 0x130]
setne byte [ebp - 0x131]
call fcn.0044d2a1
mov al, byte [ebp - 0x131]
call fcn.004cb19a
ret
Function at 0x462bbc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x190
mov eax, 0x4f1523
call fcn.004cb117
mov eax, dword [ebp + 0x24]
mov esi, dword [ebp + 0x28]
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 4], ebx
jae 0x462be8
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x462c11
mov byte [ebp - 0x195], bl
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.0044d2a1
mov al, byte [ebp - 0x195]
call fcn.004cb19a
ret
push 0x13c
lea eax, [ebp - 0x190]
push ebx
push eax
mov dword [ebp - 0x194], ebx
call fcn.004ca820
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0x1c], 0x10
jae 0x462c38
lea eax, [ebp + 8]
lea ecx, [ebp - 0x194]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
test eax, eax
je 0x462bf4
xor eax, eax
mov word [ebp - 0x54], ax
lea edi, [ebp - 0x52]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0x31
lea eax, [ebp - 0x43]
push ebx
push eax
mov byte [ebp - 0x44], bl
call fcn.004ca820
movzx eax, word [ebp - 0x48]
push eax
movzx eax, word [ebp - 0x4a]
push eax
movzx eax, word [ebp - 0x4c]
push eax
movzx eax, word [ebp - 0x4e]
push eax
movzx eax, word [ebp - 0x52]
push eax
movzx eax, word [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push str._04d__02d__02d__02d:_02d:_02d
push eax
call fcn.00461f95
lea eax, [ebp - 0x44]
push eax
call fcn.004ca000
mov ecx, dword [ebp - 0x19c]
add esp, 0x30
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0044d934
mov ecx, dword [ebp - 0x178]
xor eax, eax
xor edi, edi
add eax, dword [ebp - 0x174]
mov byte [ebp - 0x195], 1
adc ecx, edi
mov dword [esi], eax
mov dword [esi + 4], ecx
jmp 0x462bfa
Function at 0x462ce3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x4f1553
call fcn.004cb117
mov ebx, dword [ebp + 8]
push str.SOFTWARE
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x38], 1
call fcn.0044dacf
and dword [ebp - 4], 0
mov esi, 0x50bfdc
push esi
call fcn.004ca000
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0044da04
mov edi, str.JLSoft
push edi
mov dword [ebp - 0x30], eax
call fcn.004ca000
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push edi
call fcn.0044da04
push esi
mov edi, eax
call fcn.004ca000
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0044da04
push ebx
call fcn.004ca000
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0044da04
mov eax, dword [ebp - 0x2c]
xor esi, esi
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x34], esi
jae 0x462d6d
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x34]
push ecx
push 0x20019
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x462dc2
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push 0x4f5f3c
push dword [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x3c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x462db9
cmp dword [ebp - 0x30], esi
jne 0x462db9
mov dword [ebp - 0x38], esi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0044d2a1
mov eax, dword [ebp - 0x38]
call fcn.004cb19a
ret
Function at 0x462dd6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x50
mov eax, 0x4f1580
call fcn.004cb117
mov ebx, dword [ebp + 8]
push str.SOFTWARE
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x5c], 1
call fcn.0044dacf
and dword [ebp - 4], 0
mov esi, 0x50bfdc
push esi
call fcn.004ca000
pop ecx
push eax
push esi
lea ecx, [ebp - 0x4c]
call fcn.0044da04
mov edi, str.JLSoft
push edi
mov dword [ebp - 0x50], eax
call fcn.004ca000
pop ecx
mov ecx, dword [ebp - 0x50]
push eax
push edi
call fcn.0044da04
push esi
mov edi, eax
call fcn.004ca000
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0044da04
push ebx
call fcn.004ca000
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0044da04
xor eax, eax
mov word [ebp - 0x20], ax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
stosw word es:[edi], ax
mov eax, dword [ebp - 0x4c]
xor edi, edi
pop esi
mov dword [ebp - 0x54], edi
cmp dword [ebp - 0x38], esi
jae 0x462e70
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x54]
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x462f2e
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push str.UPGLASTTM
push dword [ebp - 0x54]
mov dword [ebp - 0x58], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call esi
test eax, eax
jne 0x462f2e
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ax, word [ebp - 0x30]
cmp ax, word [ebp - 0x20]
jne 0x462f20
mov ax, word [ebp - 0x2e]
cmp ax, word [ebp - 0x1e]
jne 0x462f20
mov ax, word [ebp - 0x2a]
cmp ax, word [ebp - 0x1a]
jne 0x462f20
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
push edi
push edi
push str.Interval
push dword [ebp - 0x54]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x58], 4
call esi
test eax, eax
jne 0x462f20
cmp dword [ebp - 0x50], edi
je 0x462f20
movzx eax, word [ebp - 0x18]
movzx ecx, word [ebp - 0x28]
sub ecx, eax
movzx eax, word [ebp - 0x16]
imul ecx, ecx, 0x3c
sub ecx, eax
movzx eax, word [ebp - 0x26]
add ecx, eax
cmp dword [ebp - 0x50], ecx
sbb esi, esi
neg esi
jmp 0x462f23
mov esi, dword [ebp - 0x5c]
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x462f31
mov esi, dword [ebp - 0x5c]
push edi
push 1
lea ecx, [ebp - 0x4c]
call fcn.0044d2a1
mov eax, esi
call fcn.004cb19a
ret
Function at 0x463284
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1674
mov eax, dword fs:[0]
push eax
mov eax, 0x2888
call fcn.004cd0e0
mov eax, dword [0x530630]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x28]
xor ebx, ebx
mov dword [ebp - 0x2890], esi
mov dword [ebp - 0x2894], edi
mov dword [ebp - 0x2888], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x1c], ebx
je 0x4634ac
push 1
push ebx
lea eax, [ebp - 0x2884]
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 0x2884], 0x25
call fcn.0044cf89
cmp eax, 0xffffffff
je 0x4634ac
mov ecx, dword [edi + 0xec]
mov eax, dword [ecx]
mov dword [ebp - 0x288c], eax
cmp eax, ecx
je 0x463448
mov esi, 0x50ae8c
mov dword [ebp - 0x2818], 0xf
mov dword [ebp - 0x281c], ebx
mov byte [ebp - 0x282c], bl
push esi
mov byte [ebp - 4], 1
lea edi, [eax + 0xc]
call fcn.004ca000
pop ecx
push eax
push esi
lea ecx, [ebp - 0x282c]
call fcn.0044da04
push 0xffffffffffffffff
push ebx
push edi
mov ecx, eax
call fcn.0044d801
push esi
mov dword [ebp - 0x2888], eax
call fcn.004ca000
pop ecx
mov ecx, dword [ebp - 0x2888]
push eax
push esi
call fcn.0044da04
add edi, 0x1c
push edi
lea ecx, [ebp - 0x2848]
call fcn.0044d9de
push 0x4f5ae4
lea ecx, [ebp - 0x2864]
mov byte [ebp - 4], 2
call fcn.0044dacf
push 0x50bfdc
lea ecx, [ebp - 0x2880]
mov byte [ebp - 4], 3
call fcn.0044dacf
lea eax, [ebp - 0x2864]
push eax
lea eax, [ebp - 0x2880]
push eax
lea eax, [ebp - 0x2848]
push eax
mov byte [ebp - 4], 4
call fcn.00462730
add esp, 0xc
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x2880]
call fcn.0044d2a1
push ebx
push edi
lea ecx, [ebp - 0x2864]
mov byte [ebp - 4], 2
call fcn.0044d2a1
lea eax, [ebp - 0x2848]
push eax
lea eax, [ebp - 0x282c]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00462730
add esp, 0xc
push ebx
push edi
lea ecx, [ebp - 0x2848]
call fcn.0044d2a1
push ebx
push edi
lea ecx, [ebp - 0x282c]
mov byte [ebp - 4], bl
call fcn.0044d2a1
lea ecx, [ebp - 0x288c]
call fcn.0044d016
mov eax, dword [ebp - 0x288c]
mov ecx, dword [ebp - 0x2894]
cmp eax, dword [ecx + 0xec]
jne 0x463319
mov esi, dword [ebp - 0x2890]
cmp dword [ebp + 0x2c], ebx
je 0x4634ac
cmp dword [ebp + 0x1c], ebx
je 0x4634ac
push 1
push ebx
lea eax, [ebp - 0x2884]
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 0x2884], 0x25
call fcn.0044cf89
cmp eax, 0xffffffff
je 0x4634ac
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x46347c
lea eax, [ebp + 0xc]
push 0x2800
lea ecx, [ebp - 0x2810]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x2810]
push eax
call fcn.004ca000
pop ecx
push eax
lea eax, [ebp - 0x2810]
push eax
lea ecx, [ebp + 0xc]
call fcn.0044d934
lea eax, [ebp + 0xc]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.0044db2c
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.0044d2a1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cab85
leave
ret
Function at 0x463d0c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0x48
mov eax, 0x4f13a6
call fcn.004cb117
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x4c]
push eax
push 0x4f82e0
push 1
xor ebx, ebx
push ebx
push 0x4f8340
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x463d4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x463e2f
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
cmp eax, ebx
je 0x463dc4
sub eax, esi
mov edi, eax
cmp edi, 2
jl 0x463dc4
push esi
lea ecx, [ebp - 0x2c]
call fcn.0044dacf
dec edi
push edi
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0044dafe
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0044db2c
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.0044d2a1
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
jae 0x463dab
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0044d2a1
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
lea edx, [ebp - 0x54]
push edx
push 0x4f8320
push eax
call dword [ecx]
test eax, eax
js 0x463d44
cmp dword [ebp - 0x50], ebx
je 0x463e0e
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jg 0x463e0e
lea eax, [esi + esi]
call fcn.004cbbc0
mov eax, esp
push 3
push esi
push dword [ebp - 0x50]
push eax
call fcn.0044e7ab
mov ebx, eax
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx]
push 2
push ebx
push ecx
call dword [eax + 0x18]
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
lea esp, [ebp - 0x64]
call fcn.004cb19a
ret