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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x508
mov eax, dword [0x7594d0ac]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x508], eax
mov eax, dword [ebx + 0x4e0]
mov word [ebp - 0x28], 0x5c
mov word [ebp - 0x26], 0x5c
movzx ecx, word [eax + 0x60]
push esi
mov esi, dword [eax + 0x64]
mov eax, ecx
push edi
shr ecx, 2
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx + 0x4e0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx eax, word [eax + 0x60]
shr eax, 1
xor edi, edi
mov word [ebp + eax*2 - 0x24], di
lea eax, [ebp - 0x28]
push eax
push 0x75929a00
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea esi, [ebx + 0x580]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [0x7594d118], edi
je 0x759308ec
mov ebx, dword [ebx + 0x4e0]
movzx eax, word [ebx + 0x50]
cmp eax, edi
jne 0x75930904
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.75921930
leave
ret 8
cmp eax, edi
jbe 0x759299dc
cmp eax, 0x104
lea eax, [ebp - 0x2f8]
jae 0x75930939
push esi
jmp 0x7593093e
cmp eax, 0x206
ja 0x75930933
mov esi, dword [ebx + 0x54]
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebp - 0x2f8]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
shr eax, 1
rep movsb byte es:[edi], byte [esi]
and word [ebp + eax*2 - 0x2f8], 0
xor edi, edi
jmp 0x75930945
lea eax, [ebp - 0x2f8]
push 0x7592902c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [ebp - 0x508]
cmp esi, edi
mov ebx, 0x75923fcc
je 0x75930978
cmp word [esi], di
je 0x75930978
push 0x64
lea eax, [ebp - 0xf0]
push eax
push ebx
mov word [ebp - 0xf0], di
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x104
lea eax, [ebp - 0x500]
push eax
lea eax, [ebp - 0x2f8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
je 0x759309c6
lea esi, [eax + eax]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 0x504], eax
je 0x759309cc
mov ecx, esi
mov edi, eax
mov eax, ecx
shr ecx, 2
lea esi, [ebp - 0x500]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
jmp 0x759309cc
mov dword [ebp - 0x504], edi
mov eax, dword [ebp - 0x508]
cmp eax, edi
je 0x759309f5
cmp word [eax], di
je 0x759309f5
cmp word [ebp - 0xf0], di
je 0x759309ed
lea eax, [ebp - 0xf0]
push eax
jmp 0x759309ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [ebp - 0x504]
jmp 0x759299f0
Function at 0x75929a1d
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push dword [edi + 0x58]
xor esi, esi
mov dword [edi + 0x4c0], esi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x75930a2d
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x96
push 0x40
mov dword [ebp - 8], 0x4b
call ebx
mov esi, eax
test esi, esi
je 0x75930a1f
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push esi
push 0xc
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x75930a16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
mov dword [ebp + 8], eax
je 0x75929b20
cmp eax, 0xea
je 0x75929b20
cmp eax, 0x54b
je 0x75929aa6
cmp eax, 0x534
jne 0x75929b11
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
xor ecx, ecx
cmp dword [ebp + 8], ecx
je 0x75930a3b
push dword [edi + 0x4bc]
push dword [edi + 0x56c]
call fcn.7592771c
mov ebx, eax
test ebx, ebx
je 0x75930a67
cmp dword [ebx + 8], 4
je 0x75930a5f
push 0x75929b2c
call fcn.75929b3b
push ebx
mov dword [edi + 0x4c0], eax
call fcn.759292d3
test esi, esi
je 0x75929afd
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [edi + 0x4c0], 0
je 0x75930a7c
pop edi
pop esi
pop ebx
leave
ret 4
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jbe 0x75929a67
jmp 0x75929aa6
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x75930a00
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call ebx
mov esi, eax
test esi, esi
jne 0x75929a67
jmp 0x75930a1f
and dword [ebp + 8], 0
jmp 0x75929aa6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x75929aa6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x75929aac
cmp word [esi], cx
mov eax, esi
je 0x75930a4f
cmp word [eax], 0x5c
je 0x75930a59
inc eax
inc eax
cmp word [eax], cx
jne 0x75930a42
cmp word [eax], 0x5c
jne 0x75929ab7
mov word [eax], cx
push esi
jmp 0x75930a6c
push dword [ebx + 0x18]
jmp 0x75929ae1
push 0x75930a94
call fcn.75929b3b
mov dword [edi + 0x4c0], eax
jmp 0x75929af2
push 0x7592902c
call fcn.75929b3b
mov dword [edi + 0x4c0], eax
jmp 0x75929b0a

Function at 0x75929bbc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push 0x75929c00
push dword [0x7594d180]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x75929bfa
inc eax
cmp dword [ebp - 4], eax
jne 0x75929bfa
leave
ret 8
xor eax, eax
jmp 0x75929bf6
Function at 0x7592a07b
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xe
push dword [ebp + 8]
call edi
mov esi, eax
inc esi
lea eax, [esi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x7592a0d6
push ebx
push esi
push 0xd
push dword [ebp + 8]
call edi
push 0x7592a0e0
push ebx
call dword [sym.imp.msvcrt.dll_wcspbrk]
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x7592a0eb
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x7594d3a4], 0xffffffff
push esi
jne 0x7592a150
push 0x100
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x7592a195
push 0x80
push esi
push 0x75922eac
push 0x7592a1a4
push 0x75922808
mov word [esi], 0x30
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
and dword [0x7594d3a4], 0
cmp word [esi], 0x30
je 0x7592a149
jmp 0x75a36af8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x7594d3a4], 1
jne 0x7592a195
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 8]
push 0x7592a1c3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x7592a19a
push 0xfffffffffffffffe
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x7594d3a4], 0
pop esi
leave
ret 4
push 1
call dword [sym.imp.ADVAPI32.dll_NotifyBootConfigStatus]
jmp 0x7592a18e

Function at 0x7592a803
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor edi, edi
push edi
push 0x7592a898
push 0x80000002
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
cmp eax, edi
jne 0x7592a892
lea eax, [ebp - 4]
push eax
push 0x2001f
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call esi
cmp eax, edi
jne 0x7592a892
cmp dword [ebp + 0xc], edi
je 0x759338e3
push 4
push dword [ebp + 0x14]
push 4
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
jne 0x7592a892
xor ebx, ebx
cmp dword [ebp - 8], edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x7592a87f
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], edi
je 0x7592a889
push dword [ebp - 4]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10
mov ebx, eax
jmp 0x7592a86f
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x7592a869
Function at 0x7592aaa8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x75926438
push 0x80000002
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7592ab45
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push 4
pop edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x75926544
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x7592ab07
mov dword [ebp - 0x18], 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push ebx
mov ebx, 0x7592ab4c
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
call esi
test eax, eax
je 0x75930c3b
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 0
pop edi
pop esi
je 0x75930c71
xor eax, eax
inc eax
pop ebx
leave
ret
xor eax, eax
jmp 0x7592ab42
cmp dword [ebp - 8], edi
jne 0x75930c45
cmp dword [ebp - 0x14], eax
jmp 0x75930c5f
cmp dword [ebp - 8], 1
jne 0x7592ab2a
push 0
push ebx
push 0x75922808
call dword [sym.imp.KERNEL32.dll_GetProfileIntW]
test eax, eax
je 0x7592ab2a
mov dword [ebp - 0x10], 1
jmp 0x7592ab2a
cmp dword [ebp - 0x10], 0
jne 0x7592ab3f
xor ebx, ebx
jmp 0x7592ab45

Function at 0x7592af8f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7592b058
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call edi
mov ebx, eax
cmp ebx, esi
je 0x7592b061
push dword [ebp - 4]
push 0x40
call edi
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x75930e4e
mov eax, dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push esi
push 0x7592b08c
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
push esi
push 0x7592b06c
push dword [ebp + 8]
call edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebx], si
mov edi, dword [ebp - 0xc]
jne 0x75930e5a
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call esi
push edi
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x7592b058
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x7592b061
cmp word [edi], si
je 0x7592b04c
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor eax, eax
inc eax
jmp 0x7592b05a
Function at 0x7592b493
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
cmp dword [0x7594d448], 0
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, 0x967
jne 0x7592b4f5
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x20]
push eax
push 0x968
push dword [ebp + 8]
call edi
push eax
call esi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 8]
call edi
push eax
call esi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
sub ecx, eax
sub eax, dword [ebp - 0x30]
mov dword [0x7594d448], ecx
mov dword [0x7594d3f0], eax
cmp dword [ebp + 0xc], 0
jne 0x75932fca
push ebx
push dword [ebp + 8]
call edi
xor esi, esi
mov edi, eax
push esi
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push esi
push dword [0x7594d448]
push 2
push 0x7594d3e0
push dword [ebp + 8]
call fcn.759266c5
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x30]
push eax
push 0x968
push dword [ebp + 8]
call edi
push eax
call esi
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x20]
cmp eax, dword [0x7594d3f0]
je 0x7592b530
push ebx
push dword [ebp + 8]
call edi
push 0
mov esi, eax
mov eax, dword [0x7594d448]
push 0
neg eax
push eax
push 2
push 0x7594d3e0
push dword [ebp + 8]
call fcn.759266c5
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x7592b530
Function at 0x7592bd44
Capabilities:
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x7594d0ac]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], eax
lea eax, [esi + 0x28]
xor ebx, ebx
cmp word [eax], bx
push edi
je 0x75933e0e
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esi + 0x230]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x11
pop ecx
lea edx, [ebp - 0x428]
push edx
xor eax, eax
lea edx, [ebp - 0x46c]
push edx
mov edx, dword [esi + 0x18]
lea edi, [ebp - 0x46c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x43c]
or edx, 4
mov dword [ebp - 0x440], eax
mov ax, word [esi + 0x20]
push edx
lea edx, [ebp - 0x414]
mov dword [ebp - 0x46c], 0x44
mov dword [ebp - 0x464], 0x7592bea8
mov word [ebp - 0x43c], ax
mov eax, dword [ecx]
push edx
call dword [eax + 4]
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x7592be91
push dword [ebp - 0x428]
lea edi, [esi + 0x438]
mov ecx, edi
call fcn.7592bf00
cmp dword [ebp - 0x424], ebx
je 0x7592be29
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x440], ebx
mov eax, dword [ebp - 0x428]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x420]
mov dword [esi + 0x10], eax
jne 0x7592be91
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x24
mov ebx, eax
call fcn.7592becf
test eax, eax
je 0x7592bea4
push ebx
push edi
push esi
mov ecx, eax
call fcn.7592c034
test eax, eax
mov dword [esi + 0x440], eax
je 0x7592be86
mov ecx, eax
call fcn.7592bf5d
test al, al
je 0x7592be86
test ebx, ebx
je 0x7592be91
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test ebx, ebx
je 0x7592be91
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
pop ebx
call fcn.75921930
leave
ret
xor eax, eax
jmp 0x7592be64
mov dword [ebp - 0x418], 0xc0000001
jmp 0x7592be91

Function at 0x7592bf6b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.7592bb8e
and dword [esi + 0xc], 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
or eax, 4
push eax
push esi
push 0x759226e1
push dword [ebp + 8]
mov dword [esi], 0x75922538
push 0
mov byte [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xc], eax
je 0x7592bfbb
mov ecx, esi
call fcn.7592bba7
cmp dword [ebp + 0x10], 0
jne 0x759342f1
mov eax, esi
pop esi
leave
ret 0xc
push dword [ebp + 0x10]
mov ecx, esi
call fcn.75947d58
jmp 0x7592bfbb
Function at 0x7592c1c8
Capabilities:
Get token privileges

Disassembly:
cmp dword [edi + 4], ebx
jne 0x7592c245
mov eax, dword [esi]
sub eax, dword [ebp - 4]
dec eax
push eax
lea eax, [edi + 0xc]
push eax
push edi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
dec dword [esi]
jmp 0x7592c24b
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
call fcn.7592c105
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [eax], ebx
call fcn.7592c12c
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 3
push dword [ebp + 8]
call edi
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x7592c299
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push 3
push dword [ebp + 8]
call edi
test eax, eax
je 0x75933e00
cmp dword [esi], ebx
mov dword [ebp - 4], ebx
jbe 0x7592c252
lea edi, [esi + 4]
mov eax, dword [edi]
cmp eax, 0x12
je 0x7592c28e
cmp eax, 0x17
je 0x7592c19e
inc dword [ebp - 4]
add edi, 0xc
mov eax, dword [ebp - 4]
cmp eax, dword [esi]
jb 0x7592c235
cmp esi, ebx
je 0x7592c299
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
push ebx
push esi
call fcn.7592b8fc
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtFilterToken]
cmp esi, ebx
mov edi, eax
je 0x7592c27d
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0xc]
call fcn.7592c110
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [edi + 4], ebx
je 0x7592c1a7
jmp 0x7592c23c
mov dword [ebp - 0x10], 1
jmp 0x7592c256
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
jmp 0x7592c252

Function at 0x7592c390
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x7594d0ac]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edx, [ebp - 0x214]
push edx
lea edx, [ebp - 0x20c]
push edx
lea edx, [ebp - 0x210]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edx
push eax
mov dword [ebp - 0x214], 0x208
call fcn.75922519
mov ebx, eax
test ebx, ebx
jne 0x7592c409
cmp dword [ebp - 0x210], 1
je 0x75934368
cmp dword [ebp - 0x210], 2
jne 0x7592c41a
mov edi, 0x104
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x75934380
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.75921930
leave
ret 8
push 0xd
pop ebx
jmp 0x7592c409
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x7592c409
push edi
jmp 0x7593436d

Function at 0x7592c9d0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x20
add esi, 0x1c
push esi
push dword [ebp + 0xc]
push dword [0x7594d0b8]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x7592f339
pop esi
pop ebp
ret 8
push 0x7592f3b8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x7592f358
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x7592c9f6
Function at 0x7592d453
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x7594d0ac]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x620], ecx
xor ecx, ecx
push eax
mov dword [esi], ecx
lea eax, [ebp - 0x204]
mov dword [edi], ecx
push eax
mov dword [ebp - 0x624], ecx
mov dword [ebx], 1
call dword [sym.imp.msvcrt.dll_wcscpy]
push dword [ebp - 0x620]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x204]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x7592ed6a
mov eax, dword [ebp + 0x10]
mov dword [edi], eax
mov eax, dword [0x7594d0b8]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x624]
pop edi
pop esi
pop ebx
call fcn.75921930
leave
ret 0x18
cmp dword [ebp - 0x624], 0
je 0x7592d4dc
jmp 0x7592d4e8
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x62c]
push eax
push 0
push 0
push dword [ebp - 0x628]
mov dword [ebp - 0x620], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x7592ee49
push 0x105
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x7592ee49
lea eax, [ebp - 0x410]
push 0x2c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x7592ee49
and word [eax], 0
add eax, 2
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
test eax, eax
pop ecx
jge 0x7592ee49
neg eax
mov dword [edi], eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
test eax, eax
mov dword [esi], eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x62c]
push eax
setne cl
push 0
push 0x7592ee5c
push dword [ebp - 0x628]
mov dword [ebp - 0x620], 4
mov dword [ebp - 0x624], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
cmp dword [ebp - 0x630], eax
sete al
mov dword [ebx], eax
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x7592d4fd
Function at 0x7592db6b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x7594d0ac]
push esi
mov dword [ebp - 4], eax
push edi
mov esi, 0x7594d1b0
mov eax, dword [esi]
test eax, eax
je 0x7592dbb9
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
push dword [0x7594d0b8]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x7592dbb9
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 8]
push eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeString]
add esi, 0x10
cmp esi, 0x7594d230
jl 0x7592db85
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop edi
lea eax, [ebp - 0x210]
push eax
push 0x7594d234
lea eax, [ebp - 0x214]
push eax
push 0
push 0x7592dc58
push dword [0x7594d180]
mov dword [ebp - 0x210], edi
call esi
lea eax, [ebp - 0x210]
push eax
push 0x7594d230
lea eax, [ebp - 0x214]
push eax
push 0
push 0x7592dc2c
push dword [0x7594d180]
mov dword [ebp - 0x210], edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
inc eax
pop esi
call fcn.75921930
leave
ret