joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4584f4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0xffffff9d
jne 0x458549
mov dword [0x5541e0], 0xffffffff
mov dword [ebp - 8], 0
jmp 0x45851c
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jae 0x458544
mov ecx, dword [ebp - 8]
shl ecx, 4
mov dword [ecx + 0x5541a8], 0
mov edx, dword [ebp - 8]
shl edx, 4
mov dword [edx + 0x5541ac], 0
jmp 0x458513
jmp 0x4586f7
cmp dword [ebp + 0x10], 4
jb 0x458565
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x30]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4586f7
cmp dword [ebp + 0x10], 0
jl 0x458571
cmp dword [ebp + 0x10], 4
jb 0x458576
jmp 0x4586f7
cmp dword [0x5541e0], 0
jge 0x458588
cmp dword [0x5541e0], 4
jae 0x45859f
push 0
mov eax, dword [0x5541e0]
shl eax, 4
mov ecx, dword [eax + 0x5541a8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp + 0x10]
mov dword [0x5541e0], edx
mov eax, dword [0x5541e0]
shl eax, 4
cmp dword [eax + 0x5541ac], 0
jne 0x4585e8
mov ecx, dword [0x5541e0]
shl ecx, 4
mov edx, dword [ecx + 0x5541a8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004586fb
add esp, 8
mov ecx, dword [0x5541e0]
shl ecx, 4
mov dword [ecx + 0x5541ac], 1
push 0
push 0
push 0xaec
mov edx, dword [0x5541e0]
shl edx, 4
mov eax, dword [edx + 0x5541a8]
push eax
mov ecx, dword [0x5541e0]
shl ecx, 4
call dword [ecx + 0x5541a0]
push 5
mov edx, dword [0x5541e0]
shl edx, 4
mov eax, dword [edx + 0x5541a8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 8], 0
jmp 0x45863a
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 3
jae 0x4586f7
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x5541e8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4586f2
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x5541ec]
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax + 0x138]
and edx, 1
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*8 + 0x5541ec]
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + edx + 0x138]
and ecx, 2
test ecx, ecx
je 0x4586f2
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x5541ec]
imul eax, eax, 0x32
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax + 0x13b]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*8 + 0x5541ec]
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + edx + 0x138]
and cl, 0xfd
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x5541ec]
mov edx, dword [ebp + 0xc]
mov byte [edx + eax + 0x138], cl
jmp 0x458631
mov esp, ebp
pop ebp
ret
Function at 0x4587f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and eax, 0xff
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
and ecx, 0xffff
sar ecx, 8
and ecx, 0xff
and ecx, 0xff
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 0x80000000
jae 0x458845
mov edx, dword [ebp - 8]
shr edx, 0x10
and edx, 0xffff
and edx, 0xffff
mov dword [ebp - 0x14], edx
jmp 0x45886a
cmp dword [ebp - 0x10], 4
jae 0x458863
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
and ah, 0x7f
mov dword [ebp - 0x14], eax
jmp 0x45886a
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 5
jne 0x45887d
cmp dword [ebp - 4], 2
jne 0x45887d
mov dword [ebp - 0xc], 8
cmp dword [ebp - 0x10], 5
jne 0x458890
cmp dword [ebp - 4], 1
jne 0x458890
mov dword [ebp - 0xc], 7
cmp dword [ebp - 0x10], 5
jne 0x4588a3
cmp dword [ebp - 4], 0
jne 0x4588a3
mov dword [ebp - 0xc], 6
cmp dword [ebp - 0x10], 4
jne 0x4588b6
cmp dword [ebp - 4], 0
jne 0x4588b6
mov dword [ebp - 0xc], 4
cmp dword [ebp - 0x10], 3
jne 0x4588c9
cmp dword [ebp - 4], 0
jne 0x4588c9
mov dword [ebp - 0xc], 5
cmp dword [ebp - 0x10], 4
jne 0x4588dc
cmp dword [ebp - 4], 1
jne 0x4588dc
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4588e3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push edi
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
cmp dword [0x56b1cc], 0
jne 0x458b10
call sub.KERNEL32.DLL_GetCurrentProcessId
push eax
push str.TerminalServerFlexlmMutex
push 0x554348
lea eax, [ebp - 0x104]
push eax
call fcn.004faaa4
add esp, 0x10
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x458995
xor eax, eax
jmp 0x458b1c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x4589b1
push 0xffffffffffffffff
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [0x56b1cc], 0
jne 0x458af6
call fcn.004587f0
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
sub ecx, 4
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x124], 4
ja case.default.0x4589f7
mov edx, dword [ebp - 0x124]
jmp dword [edx*4 + 0x458b21]
push 0x554350
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [0x56b1dc], eax
cmp dword [0x56b1dc], 0
je 0x458aaf
push str.WTSEnumerateSessionsA
mov eax, dword [0x56b1dc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x56b1d4], eax
cmp dword [0x56b1d4], 0
je 0x458aaf
push 0x554378
mov ecx, dword [0x56b1dc]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x56b1d8], eax
cmp dword [0x56b1d8], 0
je 0x458aaf
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x114]
push eax
push 1
push 0
push 0
call dword [0x56b1d4]
cmp dword [ebp - 0x114], 0
je 0x458a89
mov ecx, dword [ebp - 0x114]
cmp dword [ecx + 8], 0
jne 0x458a98
mov edx, dword [ebp - 0x114]
push edx
call dword [0x56b1d8]
jmp 0x458aaf
mov eax, dword [ebp - 0x114]
push eax
call dword [0x56b1d8]
mov dword [0x56b1d0], 1
mov ecx, dword [0x56b1dc]
push ecx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [0x56b1dc], 0
jmp case.default.0x4589f7
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je case.default.0x4589f7
mov dword [0x56b1d0], 1
mov dword [0x56b1cc], 1
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
cmp dword [0x56b1d0], 0
setne al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x458b40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xd0]
mov edx, dword [ecx + 0x10a4]
and edx, 0x40
test edx, edx
jne 0x458b6d
xor eax, eax
jmp 0x458d4e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x134]
and ecx, 0x80
test ecx, ecx
jne 0x458bdd
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x134]
or al, 0x80
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x134], eax
push str.BUG_B
push 0x45
push 0x44
push str.FLEXLM__c_c_sADDATE
lea edx, [ebp - 0x2cc]
push edx
call fcn.004faaa4
add esp, 0x14
lea eax, [ebp - 0x2cc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043dc14
add esp, 8
test eax, eax
je 0x458bdd
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x134]
or ah, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x134], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x134]
and eax, 0x100
test eax, eax
je 0x458c53
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x458c12
xor edx, edx
test edx, edx
je 0x458c12
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x2d0], ecx
jmp 0x458c1c
mov dword [ebp - 0x2d0], 0xffffffa8
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2d0]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x138
push 0xffffffffffffffa8
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040e2a0
add esp, 0x1c
mov eax, 0xffffffa8
jmp 0x458d4e
mov byte [ebp - 0x204], 0x5c
mov byte [ebp - 0x203], 0
push 0
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00458d52
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x458c87
mov eax, dword [ebp - 4]
jmp 0x458d4e
push 0x200
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push 0
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00458d52
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x458cbf
mov eax, dword [ebp - 4]
jmp 0x458d4e
mov byte [ebp - 0x204], 0x2f
mov byte [ebp - 0x202], 0x61
mov byte [ebp - 0x201], 0x72
mov byte [ebp - 0x203], 0x76
mov byte [ebp - 0x200], 0
push 0
lea ecx, [ebp - 0x204]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00458d52
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x458d05
mov eax, dword [ebp - 4]
jmp 0x458d4e
mov byte [ebp - 0x204], 0x2f
mov byte [ebp - 0x200], 0
mov byte [ebp - 0x202], 0x6d
mov byte [ebp - 0x203], 0x74
mov byte [ebp - 0x201], 0x70
push 0
lea eax, [ebp - 0x204]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00458d52
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x458d4b
mov eax, dword [ebp - 4]
jmp 0x458d4e
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x45fc77
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x45fcb8
cmp dword [ebp + 0x10], 0
je 0x45fcb8
cmp dword [ebp + 0x14], 0
je 0x45fcb8
cmp dword [ebp + 0x18], 0
jne 0x45fcbd
jmp 0x45fd9c
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045f043
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45fd9c
cmp dword [ebp - 0xc], 0
je 0x45fd9c
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45fd9c
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00412d80
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x45fd9c
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45fd9c
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 1
je 0x45fd6e
mov edx, dword [ebp + 0x14]
cmp dword [edx], 2
jne 0x45fd87
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045f507
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x45fd9c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
cmp dword [ebp - 0x10], 0
je 0x45fdb5
mov eax, dword [ebp - 0x10]
push eax
call fcn.00412fae
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x45fdce
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00412fae
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x45fdd5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x45fe16
cmp dword [ebp + 0x10], 0
je 0x45fe16
cmp dword [ebp + 0x14], 0
je 0x45fe16
cmp dword [ebp + 0x18], 0
jne 0x45fe1b
jmp 0x45fefa
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045f30a
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x45fefa
cmp dword [ebp - 0xc], 0
je 0x45fefa
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45fefa
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00412d80
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45fefa
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45fefa
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 1
je 0x45fecc
mov edx, dword [ebp + 0x14]
cmp dword [edx], 2
jne 0x45fee5
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045f3b3
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x45fefa
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
cmp dword [ebp - 0x14], 0
je 0x45ff13
mov eax, dword [ebp - 0x14]
push eax
call fcn.00412fae
add esp, 4
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
je 0x45ff2c
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00412fae
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x45ff97
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x45ffd1
cmp dword [ebp + 0x10], 0
je 0x45ffd1
cmp dword [ebp + 0x18], 0
je 0x45ffd1
cmp dword [ebp + 0x1c], 0
jne 0x45ffd6
jmp 0x460060
cmp dword [ebp + 0x14], 1
je 0x45ffe2
cmp dword [ebp + 0x14], 2
jne 0x460041
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045f043
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x460001
jmp 0x460060
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045f043
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x460020
jmp 0x460060
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
jmp 0x460060
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
je 0x460079
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00412fae
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [ebp - 8], 0
je 0x460092
mov edx, dword [ebp - 8]
push edx
call fcn.00412fae
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x460099
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x4600d3
cmp dword [ebp + 0x10], 0
je 0x4600d3
cmp dword [ebp + 0x18], 0
je 0x4600d3
cmp dword [ebp + 0x1c], 0
jne 0x4600d8
jmp 0x46016a
cmp dword [ebp + 0x14], 1
je 0x4600e4
cmp dword [ebp + 0x14], 2
jne 0x46014b
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045f30a
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x460103
jmp 0x46016a
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045f30a
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x460122
jmp 0x46016a
mov eax, dword [ebp - 0xc]
shl eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
jmp 0x46016a
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
je 0x460183
mov edx, dword [ebp - 0x10]
push edx
call fcn.00412fae
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [ebp - 8], 0
je 0x46019c
mov eax, dword [ebp - 8]
push eax
call fcn.00412fae
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4601ef
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x460229
cmp dword [ebp + 0xc], 0
jne 0x460229
jmp 0x4602d1
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp dword [ebp - 0x10], 0
je 0x4602d1
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00412d80
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4602d1
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4602d1
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045f507
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4602d1
cmp dword [ebp + 0x10], 0
je 0x4602cb
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jle 0x4602a5
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004fb620
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004fb090
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0xc], 0
je 0x4602ea
mov edx, dword [ebp - 0xc]
push edx
call fcn.00412fae
add esp, 4
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x460303
mov eax, dword [ebp - 0xc]
push eax
call fcn.00412fae
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x46030a
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
je 0x460344
cmp dword [ebp + 0xc], 0
jne 0x460344
jmp 0x4603ee
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp dword [ebp - 0x10], 0
je 0x4603ee
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00412d80
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4603ee
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4603ee
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045f3b3
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4603ee
cmp dword [ebp + 0x10], 0
je 0x4603e8
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jle 0x4603c2
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004fb620
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004fb090
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 0
je 0x460407
mov edx, dword [ebp - 8]
push edx
call fcn.00412fae
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x460420
mov eax, dword [ebp - 0xc]
push eax
call fcn.00412fae
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x460530
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045f043
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x460636
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x460636
cmp dword [ebp + 0x14], 0
je 0x460636
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00412d80
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x460636
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x460636
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045f507
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46061d
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x14]
jle 0x4605fe
mov ecx, dword [ebp + 0x14]
sub ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004fdb10
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0x10]
mov byte [edx], 0
jmp 0x460636
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004fb620
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x46064f
mov edx, dword [ebp - 8]
push edx
call fcn.00412fae
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x460668
mov eax, dword [ebp - 4]
push eax
call fcn.00412fae
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x460681
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00412fae
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret