joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443960
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4c811f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x4ea0ac]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x4439cb
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x4439cd
mov esi, edi
test esi, esi
je 0x443a97
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x443a8c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x443a0f
cmp eax, 2
je 0x443a0f
cmp eax, 6
je 0x443a0f
cmp eax, 7
jne 0x443a8c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.004ab160
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebp
jne 0x443a72
lea ecx, [esp + 0x14]
call fcn.004ab5ae
cmp esi, dword [esp + 0x14]
je 0x443a67
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.004ab189
add esp, 4
jmp 0x443aa9
call fcn.004ab189
add esp, 4
lea ecx, [esp + 0x10]
push 0x4fec74
call fcn.004ab5ae
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x443a97
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x443aa9
push eax
lea ecx, [esp + 0x14]
call fcn.004ab5ae
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004ab19a
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.004ab425
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x443bf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x443c27
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x443c2a
mov esi, dword [ebp + 8]
test esi, esi
je 0x443ddb
call fcn.0044e4d0
test eax, eax
je 0x443d14
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x443c4b
mov dword [ebp + 0x10], eax
jmp 0x443c7e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.0041a790
mov ecx, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp + 0x10], ebx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x443dcf
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x443cb8
cmp eax, 2
je 0x443cb8
cmp eax, 6
je 0x443cb8
cmp eax, 7
jne 0x443dcf
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.004ab160
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x443dba
mov ecx, dword [ebp + 0x18]
call fcn.00431c70
cmp esi, dword [ebp + 8]
je 0x443da4
jmp 0x443d9d
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x443dcf
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x443d4e
cmp eax, 2
je 0x443d4e
cmp eax, 6
je 0x443d4e
cmp eax, 7
jne 0x443dcf
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.004ab160
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x443dba
mov ecx, dword [ebp + 0x18]
call fcn.00431d40
cmp esi, dword [ebp + 8]
je 0x443da4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004ab189
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.004ab189
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x4fec74
call fcn.00431d40
cmp esi, dword [ebp + 8]
je 0x443ddb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x444800
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c81e8
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x444856
lea ecx, [ebp + 0x14]
lea edx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x444859
mov esi, dword [ebp + 8]
test esi, esi
je 0x44493f
call fcn.0044e4d0
test eax, eax
je 0x4448da
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x444875
xor ebx, ebx
jmp 0x4448a5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.0041a790
mov eax, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [ebp + 0x18]
push edi
call fcn.0041937c
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x444933
cmp esi, dword [ebp + 8]
je 0x4448d3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x444941
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
push edx
call fcn.0042b810
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [ebp + 0x10]
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x444924
cmp esi, dword [ebp + 8]
je 0x44490e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0042c020
mov eax, 1
jmp 0x444941
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0042c020
cmp esi, dword [ebp + 8]
je 0x44493f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4455f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x445768
mov eax, dword [esp + 0x10]
test eax, eax
je 0x445747
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x445646
mov eax, 0x104
mov dword [esp + 0x1c], eax
inc eax
push eax
call fcn.004ab160
mov esi, eax
add esp, 4
test esi, esi
je 0x445768
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x44575f
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44575f
mov edi, dword [esp + 0x20]
test edi, edi
je 0x44575f
push ebp
push edi
call fcn.004455f0
add esp, 8
test eax, eax
je 0x445754
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x501264]
test eax, eax
je 0x4456f1
test ebp, ebp
je 0x4456f1
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x44575f
jmp 0x4456fd
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x44575f
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x44573e
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x44575f
mov eax, dword [esp + 0x14]
jmp 0x44569a
push esi
call fcn.004ab189
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x44575f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004ab189
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x4465f0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4c8356
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x138]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.004a9fde
mov ebp, dword [esp + 0x140]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.004a9fde
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
test ecx, edx
je 0x44672a
mov cl, byte [0x4eeb02]
mov dx, word [0x4eeb00]
mov byte [esp + 0x12], cl
mov cl, dl
mov word [esp + 0x10], dx
add cl, al
lea edx, [esp + 0x10]
mov byte [esp + 0x10], cl
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], bl
call fcn.004ab493
mov eax, dword [esi + 8]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x13c], ebx
call fcn.004aa220
mov edx, dword [0x4ea0ac]
mov dword [esp + 0x14], edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x28]
push 0x104
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x140], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x12f], bl
call fcn.004ab5ae
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.004aa220
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.004ab425
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0xffffffff
call fcn.004ab425
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
jb 0x44664b
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x446760
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4c8376
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x138]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.00436aa0
mov ebp, dword [esp + 0x140]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.00436aa0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
test ecx, edx
je 0x44689a
mov cl, byte [0x4eeb02]
mov dx, word [0x4eeb00]
mov byte [esp + 0x12], cl
mov cl, dl
mov word [esp + 0x10], dx
add cl, al
lea edx, [esp + 0x10]
mov byte [esp + 0x10], cl
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], bl
call fcn.0042b670
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x13c], ebx
call fcn.00437120
mov edx, dword [0x4d0978]
mov dword [esp + 0x14], edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x28]
push 0x104
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x140], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x12f], bl
call fcn.0042c2e0
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.00437120
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.0042c020
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0xffffffff
call fcn.0042c020
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
jb 0x4467bb
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x4468d0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4c8396
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.00438670
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.00438670
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x446a09
mov edx, dword [0x4eeb04]
mov cx, word [0x4eeb08]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.00431120
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.00438d00
mov edx, dword [0x4d097c]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.00431c70
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.00438d00
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.00431990
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.00431990
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x44692b
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret
Function at 0x44cf50
Capabilities:
Get user security identifier

Disassembly:
mov eax, dword [0x5013cc]
sub esp, 0xa0
push ebx
xor ebx, ebx
push ebp
cmp eax, ebx
push edi
jne 0x44cf9c
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, 2
jne 0x44cf97
mov dword [0x5013d0], eax
mov dword [0x5013cc], eax
cmp dword [0x5013d0], ebx
jne 0x44cfb0
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa0
ret
mov ebp, dword [esp + 0xb0]
mov edi, dword [esp + 0xb4]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push ebp
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x44cffc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x44cffc
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa0
ret
mov ecx, dword [esp + 0xc]
push esi
push ecx
call fcn.004ab160
mov edx, dword [esp + 0x18]
mov dword [edi], eax
lea eax, [edx + edx]
push eax
call fcn.004ab160
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x44d041
test esi, esi
je 0x44d052
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x18]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x44d04e
push esi
call fcn.004ab189
add esp, 4
test ebx, ebx
jne 0x44d061
mov edi, dword [edi]
test edi, edi
je 0x44d061
push edi
call fcn.004ab189
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x44d770
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
mov eax, dword [0x501374]
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
jne 0x44d95b
push 1
push 0x501380
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
push 0x501380
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea ecx, [ebp - 0x34]
mov dword [0x501398], 0xc
mov dword [0x5013a0], esi
mov dword [0x50139c], 0x501380
call fcn.004385a0
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], esi
call fcn.004a9b9b
mov eax, dword [0x5013d4]
mov byte [ebp - 4], 1
cmp eax, esi
mov dword [ebp - 0x24], str.S_1_1_0
mov dword [ebp - 0x20], str.S_1_15_2_1
mov dword [ebp - 0x1c], str.S_1_15_2_2
mov ebx, 3
jne 0x44d871
mov ecx, 0x24
xor eax, eax
lea edi, [ebp - 0xd8]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xdc], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xcc]
mov ecx, 2
cmp eax, ecx
jne 0x44d867
mov eax, dword [ebp - 0xd8]
cmp eax, 6
ja 0x44d85d
jne 0x44d867
cmp dword [ebp - 0xd4], ecx
jb 0x44d867
mov dword [0x5013d8], 1
mov dword [0x5013d4], 1
cmp dword [0x5013d8], esi
jne 0x44d87e
mov ebx, 1
cmp ebx, esi
jle 0x44d8c5
lea esi, [ebp - 0x24]
mov edi, ebx
mov ecx, dword [esi]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00431120
mov edx, dword [ebp - 0x30]
push eax
push edx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00438d00
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00431990
mov eax, dword [ebp - 0x40]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
call fcn.004a9dbf
add esi, 4
dec edi
jne 0x44d887
xor esi, esi
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x34]
push ecx
push edx
push 0x5013b8
mov byte [ebp - 4], 3
call fcn.0044d330
add esp, 0xc
cmp eax, esi
jne 0x44d919
lea eax, [ebp - 0x18]
push 0x4ddba8
push eax
mov dword [ebp - 0x18], esi
call fcn.00419d30
push 1
push 0x5013b8
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
push 0x5013b8
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, 0x44d917
ret
mov eax, 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], eax
mov dword [0x5013a8], 0xc
mov dword [0x5013b0], esi
mov dword [0x5013ac], 0x5013b8
mov dword [0x501374], eax
mov byte [ebp - 4], 0
call fcn.004a9bce
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.004385b0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44deb0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x501554]
test eax, eax
jne 0x44df9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x5013f0
mov dword [0x501554], 1
mov dword [0x5013f0], 0x94
call esi
mov edx, dword [0x501400]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x4eebf8], eax
je 0x44df7e
push edi
push 0x501488
mov dword [0x501488], 0x9c
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x50154c], eax
call edi
mov dword [0x501550], eax
mov eax, dword [0x50154c]
pop edi
test eax, eax
push 0x501528
je 0x44df4c
call eax
jmp 0x44df52
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x50148c]
cmp eax, 6
jae 0x44df6a
cmp eax, 5
jne 0x44df7e
cmp dword [0x501490], 2
jb 0x44df7e
cmp word [0x501528], 9
jne 0x44df7e
mov dword [0x5013e4], 1
push 0x5013f8
push 0x5013f4
call fcn.0044e2d0
add esp, 8
call fcn.0044dfb0
mov eax, 1
pop esi
ret
mov eax, 1
ret

Function at 0x44efd0
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d09a8
push 0x4200a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x501558]
xor ebx, ebx
cmp eax, ebx
jne 0x44f130
mov byte [ebp - 0x11c], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x44f12b
mov byte [ebp - 0x224], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x223]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.user32.dll
lea ecx, [ebp - 0x11c]
push ecx
push str._s_s
lea edx, [ebp - 0x224]
push edx
call fcn.00419b2f
add esp, 0x10
mov dword [ebp - 0x22c], ebx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x120], eax
push eax
call fcn.004ab160
add esp, 4
mov esi, eax
mov dword [ebp - 0x238], esi
cmp esi, ebx
je 0x44f12b
push esi
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x44f122
mov dword [ebp - 0x230], ebx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x230]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x44f122
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov ecx, dword [eax]
mov dword [0x501558], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x44f122
push esi
call fcn.004ab189
add esp, 4
mov eax, dword [0x501558]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret