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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
push esi
mov esi, 0xff
push edi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x813]
mov byte [ebp - 0x814], bl
mov byte [ebp - 0x414], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x413]
mov dword [ebp - 0xc], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], 0x400
mov dword [ebp - 4], ebx
push dword [eax + 0x50]
lea eax, [ebp - 0x814]
push 0x4cb218
push eax
call fcn.004956af
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x20007
push ebx
push 0x4cb1f0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408b21
push str.Error:_unable_to_delete_local_borrow_info._n
push dword [0x4e4aac]
call fcn.00406306
mov ecx, dword [0x4e4ab0]
push 0xffffffffffffff86
pop eax
push ebx
push esi
push ebx
push ebx
push 0x24f
push eax
mov dword [ecx + 0x80], eax
push dword [0x4e4ab0]
call fcn.004247a0
mov eax, dword [0x4e4ab0]
add esp, 0x24
mov eax, dword [eax + 0x80]
jmp 0x408c38
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push ebx
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 1
call esi
test eax, eax
jne 0x408c2d
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x414], bl
lea eax, [ebp - 0x814]
push eax
call fcn.00495790
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00497090
add esp, 0x10
test eax, eax
jne 0x408bb6
mov eax, dword [ebp + 0xc]
lea edi, [eax + 4]
push edi
call fcn.00495790
pop ecx
push eax
push edi
push edi
call fcn.00495790
lea edi, [ebp - 0x414]
sub edi, eax
lea eax, [ebp - 0x414]
push eax
call fcn.00495790
pop ecx
add edi, eax
pop ecx
push edi
call fcn.00497090
add esp, 0xc
test eax, eax
je 0x408bdb
mov eax, dword [ebp - 0x10]
push ebx
push ebx
inc dword [ebp - 0x10]
push ebx
lea ecx, [ebp - 8]
push ebx
push ecx
lea ecx, [ebp - 0x414]
mov dword [ebp - 8], 0x400
push ecx
push eax
push dword [ebp - 0xc]
jmp 0x408b41
lea eax, [ebp - 4]
push 1
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.0041abc0
add esp, 0x14
cmp dword [ebp - 4], ebx
je 0x408c2d
jbe 0x408c13
mov eax, dword [ebp - 0x14]
add eax, ebx
inc ebx
inc ebx
mov cl, byte [eax]
not cl
mov byte [eax], cl
cmp ebx, dword [ebp - 4]
jb 0x408c01
push 1
lea eax, [ebp - 0x414]
push dword [ebp - 4]
push dword [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.0041aec8
add esp, 0x14
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408c3d
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
mov esi, 0xff
push edi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x80b]
mov byte [ebp - 0x80c], bl
mov byte [ebp - 0x40c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x40b]
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], 0x400
push dword [eax + 0x50]
lea eax, [ebp - 0x80c]
push 0x4cb218
push eax
call fcn.004956af
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20007
push ebx
push 0x4cb1f0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408d03
push str.Error:_unable_to_delete_local_borrow_info._n
push dword [0x4e4aac]
call fcn.00406306
mov ecx, dword [0x4e4ab0]
push 0xffffffffffffff86
pop eax
push ebx
push esi
push ebx
push ebx
push 0x24f
push eax
mov dword [ecx + 0x80], eax
push dword [0x4e4ab0]
call fcn.004247a0
mov eax, dword [0x4e4ab0]
add esp, 0x24
mov eax, dword [eax + 0x80]
jmp 0x408ded
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push ebx
push eax
lea eax, [ebp - 0x40c]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
call esi
test eax, eax
jne 0x408de2
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x40c], bl
lea eax, [ebp - 0x80c]
push eax
call fcn.00495790
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.00497090
add esp, 0x10
test eax, eax
jne 0x408dbd
mov eax, dword [ebp + 0xc]
lea edi, [eax + 4]
push edi
call fcn.00495790
pop ecx
push eax
push edi
push edi
call fcn.00495790
lea edi, [ebp - 0x40c]
sub edi, eax
lea eax, [ebp - 0x40c]
push eax
call fcn.00495790
pop ecx
add edi, eax
pop ecx
push edi
call fcn.00497090
add esp, 0xc
test eax, eax
jne 0x408dbd
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 4]
call edi
push 0x4cb224
push dword [ebp - 4]
call edi
push dword [ebp + 0xc]
call fcn.00408df2
pop ecx
mov eax, dword [ebp - 0xc]
push ebx
push ebx
inc dword [ebp - 0xc]
push ebx
lea ecx, [ebp - 8]
push ebx
push ecx
lea ecx, [ebp - 0x40c]
mov dword [ebp - 8], 0x400
push ecx
push eax
push dword [ebp - 4]
jmp 0x408d23
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42840b
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push esi
push edi
mov byte [ebp - 0x404], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x80c], 0
mov dword [ebp - 0x808], 0
mov byte [ebp - 0x804], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x803]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 0x400
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x50]
push ecx
push 0x4d2ad0
lea edx, [ebp - 0x404]
push edx
call fcn.004956af
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
push 0x20007
push 0
push 0x4d2adc
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x428508
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x4284c3
xor edx, edx
test edx, edx
je 0x4284c3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x810], ecx
jmp 0x4284cd
mov dword [ebp - 0x810], 0xffffff86
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x810]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x267
push 0xffffffffffffff86
mov ecx, dword [ebp + 8]
push ecx
call fcn.004247a0
add esp, 0x1c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
jmp 0x428629
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x804]
push ecx
mov edx, dword [ebp - 0x808]
mov dword [ebp - 0x814], edx
mov eax, dword [ebp - 0x814]
push eax
mov ecx, dword [ebp - 0x80c]
push ecx
mov edx, dword [ebp - 0x808]
add edx, 1
mov dword [ebp - 0x808], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x42861a
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x804], 0
lea ecx, [ebp - 0x404]
push ecx
call fcn.00495790
add esp, 4
push eax
lea edx, [ebp - 0x404]
push edx
lea eax, [ebp - 0x804]
push eax
call fcn.00497090
add esp, 0xc
test eax, eax
jne 0x42860e
mov ecx, dword [ebp + 0xc]
add ecx, 4
push ecx
call fcn.00495790
add esp, 4
push eax
mov edx, dword [ebp + 0xc]
add edx, 4
push edx
lea eax, [ebp - 0x804]
push eax
call fcn.00495790
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
push ecx
call fcn.00495790
add esp, 4
sub esi, eax
lea edx, [ebp + esi - 0x804]
push edx
call fcn.00497090
add esp, 0xc
test eax, eax
jne 0x42860e
lea eax, [ebp - 0x804]
push eax
mov ecx, dword [ebp - 0x80c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.LM_BORROW
mov edx, dword [ebp - 0x80c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042862f
add esp, 8
mov dword [ebp - 4], 0x400
jmp 0x428508
mov edx, dword [ebp - 0x80c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44fed2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0
je 0x44fee6
mov eax, dword [ebp + 0x10]
mov dword [0x4e8024], eax
jmp 0x44fef0
mov dword [0x4e8024], 0xffffffff
mov ecx, dword [ebp + 0x14]
mov dword [0x4e8020], ecx
cmp dword [0x4e2754], 0
je 0x44ff11
mov edx, dword [0x4e802c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x44ff82
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4e802c], eax
cmp dword [0x4e802c], 0
jne 0x44ff31
xor eax, eax
jmp 0x44ff87
push 4
push 1
call fcn.00498585
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44ff4a
xor eax, eax
jmp 0x44ff87
mov eax, dword [ebp - 4]
mov ecx, dword [0x4e802c]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
push edx
push 0
push 0x44fe3f
call fcn.00499aec
add esp, 0xc
mov dword [0x4e2754], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x4e2754], 0
jne 0x44ff82
xor eax, eax
jmp 0x44ff87
mov eax, dword [0x4e2754]
mov esp, ebp
pop ebp
ret

Function at 0x44ffa9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.00498791
add esp, 4
mov dword [0x4e274c], eax
cmp dword [0x4e274c], 0
je 0x44ffd0
mov eax, dword [0x4e274c]
jmp 0x450049
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0
push str.SOFTWAREFLEXlm_License_Manager
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x450047
mov dword [ebp - 0xc], 0xc7
lea edx, [ebp - 0xc]
push edx
push 0x4e2684
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x450039
mov dword [0x4e274c], 0x4e2684
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4e274c]
jmp 0x450049
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x450049
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x465d00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x4d58a8
lea eax, [ebp - 0x14]
push eax
call fcn.00495810
add esp, 8
mov dword [ebp - 0x24], 0
jmp 0x465d29
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 3
jge 0x465d4a
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x465d40
jmp 0x465d4a
mov al, byte [ebp - 0x14]
add al, 1
mov byte [ebp - 0x14], al
jmp 0x465d20
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x483e20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x11c]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x483f89
mov dword [ebp - 0x120], 0x104
mov dword [ebp - 0x10], 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x483f7a
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x483f61
mov dword [ebp - 0x120], 0
lea ecx, [ebp - 0x120]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
push 0x4d7944
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x120]
add ecx, 1
push ecx
call fcn.00495701
add esp, 4
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.ServiceName
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 0
je 0x483f55
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00495810
add esp, 8
mov edx, dword [ebp - 0x14]
push edx
call fcn.00495b3c
add esp, 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x120], 0x104
jmp 0x483e6c
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x483f90
mov eax, 0xffffff01
jmp 0x483f92
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x465b57
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x496d50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0045903e
and dword [ebp - 0x14], 0
cmp dword [0x49beb4], 0
mov dword [ebp - 0x18], eax
jne 0x465c0a
push 0x472b30
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x465cb2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x472b24
push ebx
call edi
test eax, eax
je 0x465cb2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x472b14
push ebx
mov dword [0x49beb4], eax
call edi
push eax
call esi
push 0x472b00
push ebx
mov dword [0x49beb8], eax
call edi
push eax
call esi
push 0x472ae4
push ebx
mov dword [0x49bebc], eax
call edi
push eax
call esi
mov dword [0x49bec4], eax
test eax, eax
je 0x465c0a
push 0x472acc
push ebx
call edi
push eax
call esi
mov dword [0x49bec0], eax
mov eax, dword [0x49bec0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x465c63
cmp dword [0x49bec4], ecx
je 0x465c63
push eax
call esi
push dword [0x49bec4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x465c63
test ebx, ebx
je 0x465c63
call edi
test eax, eax
je 0x465c5a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x465c5a
test byte [ebp - 8], 1
jne 0x465c63
or dword [ebp + 0x10], 0x200000
jmp 0x465c96
mov eax, dword [0x49beb8]
cmp eax, dword [ebp - 0x18]
je 0x465c96
push eax
call esi
test eax, eax
je 0x465c96
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x465c96
mov eax, dword [0x49bebc]
cmp eax, dword [ebp - 0x18]
je 0x465c96
push eax
call esi
test eax, eax
je 0x465c96
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49beb4]
call esi
test eax, eax
je 0x465cb2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x465cb4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044e488
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x4015b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43d553
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45308c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.004140a1
xor ecx, ecx
lea ebp, [esi + 0x10]
mov dword [esi], vtable.CMemDC.0
mov dword [esp + 0x28], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], vtable.CBitmap.0
mov ebx, dword [esp + 0x30]
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
mov byte [esp + 0x28], 1
sete al
mov dword [esi + 0x30], eax
cmp eax, ecx
je 0x401680
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
lea edi, [esi + 0x20]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0041456a
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.0041483c
test ebp, ebp
je 0x40165e
mov ebp, dword [ebp + 4]
mov ecx, dword [esi + 4]
push ebp
push ecx
call fcn.004148cb
mov edx, dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [edi]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004141bd
jmp 0x401692
mov edx, dword [ebx + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4

Function at 0x401be0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4

Function at 0x401c00
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x45308c]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x401c65
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0042a8de
add esp, 0x14
ret
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov eax, dword [esp + 4]
cmp eax, ebx
je 0x401c85
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 8]
pop ebx
xor ecx, esp
call fcn.0042a8de
add esp, 0x14
ret
Function at 0x401d20
Capabilities:
Delete file

Disassembly:
sub esp, 0x20
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov dword [esp], eax
lea edx, [esp]
mov eax, 0x450
push edx
mov dword [esp + 8], 3
mov word [esp + 0x14], ax
mov dword [esp + 0xc], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
add esp, 0x20
ret 4

Function at 0x401eb0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x45308c]
xor eax, esp
mov dword [esp + 0x214], eax
mov ecx, dword [esp + 0x224]
mov eax, dword [esp + 0x220]
push esi
push edi
mov edi, dword [esp + 0x224]
push ecx
push eax
lea eax, [esp + 0x120]
push 0x440d48
push eax
mov esi, 0x2001f
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x104
call fcn.00401d80
add esp, 0x10
call fcn.004041e0
test eax, eax
je 0x401f15
mov esi, 0x2011f
lea ecx, [esp + 8]
push ecx
push esi
push 0
lea edx, [esp + 0x124]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401fdf
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push eax
call esi
lea ecx, [esp + 0x14]
push str.WinUar
push ecx
call fcn.0042a920
add esp, 8
test eax, eax
je 0x401fc4
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push str.WinUarBackup
push edx
mov dword [esp + 0x28], 0x104
call esi
test eax, eax
jne 0x401fc4
lea eax, [esp + 0x14]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401fa0
mov ecx, dword [esp + 0xc]
sub eax, edx
mov edx, dword [esp + 8]
inc eax
push eax
lea eax, [esp + 0x18]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push str.WinUarBackup
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
call fcn.0042a8de
add esp, 0x218
ret 0xc