joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ba30
Capabilities:
Check os version
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584df8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6039b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], 0
je 0x44bab6
mov eax, dword [0x604884]
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x44ba9a
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x44ba85
mov dword [0x604884], 1
jmp 0x44ba9e
push esi
push dword [ebp + 0xc]
mov dword [0x604884], 0
call fcn.0044ca20
jmp 0x44bae1
test eax, eax
je 0x44baab
push esi
push dword [ebp + 0xc]
call fcn.0044bb20
test eax, eax
jne 0x44bae1
push esi
push dword [ebp + 0xc]
call fcn.0044ca20
jmp 0x44bae1
push dword [ebp + 0xc]
call fcn.0044c740
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
call esi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44bb03
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44ca20
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585016
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x6039b0]
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 ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44cbbc
mov edi, dword [ebp - 0x21c]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], eax
call fcn.00402a00
mov ecx, eax
test ecx, ecx
jne 0x44cad0
push 0x80004005
call fcn.00402a80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x21c]
push dword [esi + 8]
push dword [esi]
push str.__s___s
push eax
call fcn.004063c0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00553bc0
add esp, 0x1c
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.0044cc80
mov esi, dword [ebp - 0x21c]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0055d308
add esp, 8
test eax, eax
je 0x44cb86
test esi, esi
jne 0x44cb5b
lea eax, [esi + 0xd]
jmp 0x44cb8c
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44cb60
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x44cb8c
mov eax, dword [ebp - 0x220]
xor ebx, ebx
mov byte [ebp - 4], 0
test eax, eax
sete bl
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x44cbaf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x44cbbe
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x44cbbe
xor ebx, ebx
mov eax, ebx
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.0055042c
mov esp, ebp
pop ebp
ret 8

Function at 0x44cbe0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x60cd78], 0
mov dword [ebp - 8], 0
jne 0x44cc0d
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push 0x60cd78
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ecx, dword [ebp + 8]
push 0x60cd78
call fcn.00407740
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x44cc30
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x60cb78], 0
mov dword [ebp - 8], 0
jne 0x44cc5f
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push 0x60cb78
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
mov ecx, dword [ebp + 8]
push 0x60cb78
call fcn.00407740
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x44cc80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44ccf1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x44ccbf
cmp eax, 2
jne 0x44ccdb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x44cceb
test ecx, ecx
je 0x44cce6
test cl, 1
jne 0x44ccdb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x44cceb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x44fd10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x44fd6f
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x44fd78
test ecx, ecx
je 0x44fd6f
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x44fd30
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44ffc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push ebx
push esi
push edi
nop dword [eax + eax]
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x60d460], ecx
inc eax
cmp eax, 0x100
jb 0x44ffd0
cmp eax, 0x800
jae 0x4500a3
nop dword [eax]
mov edx, dword [eax*4 + 0x60d060]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x60d460]
mov dword [eax*4 + 0x60d460], edx
inc eax
cmp eax, 0x800
jb 0x450080
lea ecx, [ebp - 0x20]
mov dword [0x60b0b8], 0x450cd0
call fcn.00450dd0
test eax, eax
je 0x45015c
mov edi, dword [ebp - 0x10]
xor ecx, ecx
mov esi, edi
mov eax, 0x604788
shr esi, 8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
nop dword [eax]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax - 8], ebx
jne 0x4500f7
mov ebx, dword [ebp - 0x18]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x14]
jne 0x4500f7
cmp dword [eax], ebx
je 0x450106
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x4500e0
or ecx, 0xffffffff
sub ecx, 0
je 0x450143
sub ecx, 1
je 0x450132
sub ecx, 1
jne 0x45015c
cmp esi, 6
jb 0x45015c
jne 0x450152
cmp edi, 0xf
jb 0x45015c
mov dword [0x60b0b8], 0x450d70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 5
jb 0x45015c
jne 0x450152
cmp edi, 6
jb 0x45015c
cmp edi, 0xa
jmp 0x450150
cmp esi, 6
jb 0x45015c
jne 0x450152
cmp edi, 0x100c
je 0x45015c
mov dword [0x60b0b8], 0x450d70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452ab0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov eax, dword [eax]
and eax, 7
cmp edx, 5
jae 0x452ad0
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ecx
push esi
mov dword [ebp - 8], edx
nop dword [eax]
lea esi, [edi + ecx]
cmp esi, edx
jae 0x452af9
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x452af6
inc esi
cmp esi, edx
jb 0x452ae7
mov ecx, dword [ebp - 4]
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x452c09
cmp ecx, 3
jbe 0x452b38
xor eax, eax
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test cl, cl
je 0x452b76
cmp cl, 0xff
je 0x452b76
mov edx, dword [ebp - 8]
and eax, 3
add eax, eax
mov ecx, 1
or eax, 1
add edi, ecx
mov ecx, dword [ebp - 4]
jmp 0x452ae0
dec ecx
shl eax, cl
and eax, 7
je 0x452b10
movzx ecx, byte [eax + 0x5dab2c]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x5dab24], 0
mov cl, byte [edx + 4]
je 0x452b60
test cl, cl
je 0x452b60
cmp cl, 0xff
jne 0x452b10
mov edx, dword [ebp - 8]
and eax, 3
mov ecx, dword [ebp - 4]
add eax, eax
mov ebx, edi
or eax, 1
inc edi
jmp 0x452ae0
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
sub edx, edi
lea ebx, [edx - 5]
test eax, eax
je 0x452bd2
movzx edx, byte [eax + 0x5dab2c]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x452bbe
cmp dl, 0xff
jne 0x452bd2
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0xc]
shl edx, cl
dec edx
xor edx, ebx
jmp 0x452b94
mov edx, dword [ebp - 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
add edi, ecx
mov ecx, dword [ebp - 4]
jmp 0x452ae0
pop esi
pop ebx
cmp ecx, 3
jbe 0x452c1e
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x452f60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585048
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x453109
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407740
mov dword [ebp - 4], 0
xor esi, esi
nop dword [eax + eax]
mov eax, dword [esi + 0x5dab48]
test eax, eax
je 0x45305f
push eax
push dword [ebp - 0x14]
call fcn.0055d308
add esp, 8
test eax, eax
je 0x45308b
add esi, 4
cmp esi, 8
jb 0x452fc0
xor esi, esi
nop dword [eax]
mov eax, dword [esi + 0x5dab3c]
test eax, eax
je 0x45305f
push eax
push dword [ebp - 0x14]
call fcn.0055d308
add esp, 8
test eax, eax
je 0x453069
add esi, 4
cmp esi, 0xc
jb 0x452ff0
xor esi, esi
mov eax, dword [esi + 0x5dab34]
test eax, eax
je 0x45305f
push eax
push dword [ebp - 0x14]
call fcn.0055d308
add esp, 8
test eax, eax
je 0x45303d
add esi, 4
cmp esi, 8
jb 0x453014
xor esi, esi
jmp 0x4530e5
push 0x24
call fcn.0055091d
mov esi, eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov dword [esi], vtable.PowerPointConverter.0
jmp 0x4530ab
push 0x80004005
call fcn.00402a80
push 0x24
call fcn.0055091d
mov esi, eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov dword [esi], vtable.ExcelConverter.0
jmp 0x4530ab
push 0x24
call fcn.0055091d
mov esi, eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov dword [esi], vtable.WordConverter.0
mov dword [esi + 0x20], 0
add esp, 4
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [ebp - 0x18], esi
mov dword [esi + 4], 0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x453107
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055042c
mov esp, ebp
pop ebp
ret
Function at 0x453210
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
mov edx, dword [esi]
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
mov ecx, esi
push eax
call dword [edx + 8]
mov edi, eax
test edi, edi
jne 0x453251
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov edi, eax
test edi, edi
jne 0x453251
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 4]
mov edi, eax
test edi, edi
je 0x453294
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], edi
push ebx
lea ebx, [esi + 0x18]
test eax, eax
je 0x45326c
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], 0
push 0
push 0
push ebx
push 0x400
push dword [esi + 0x1c]
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [ebx]
pop ebx
test eax, eax
je 0x453294
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x4561a0
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x60b0cc], 0
jne 0x4563e3
push 0x48
call fcn.0055ed12
add esp, 4
mov dword [0x60b0c0], eax
test eax, eax
je 0x4561f4
push 0x1000
call fcn.0055ed12
add esp, 4
mov dword [0x60b0c4], eax
test eax, eax
jne 0x4561fc
push dword [0x60b0c0]
call fcn.00556b67
add esp, 4
mov dword [0x60b0c0], 0
xor al, al
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0xc
mov dword [0x60b0c8], 0
sub eax, 0x5daec4
mov dword [ebp - 8], eax
mov eax, 0x10
push esi
sub eax, 0x5daec4
xor esi, esi
push edi
mov dword [ebp - 4], eax
mov edi, 8
mov eax, 0x14
sub edi, 0x5daec4
sub eax, 0x5daec4
mov dword [ebp - 0xc], eax
nop dword [eax]
mov eax, dword [0x60b0c0]
lea edx, [edi + 0x5daec4]
mov ecx, dword [esi + 0x5daec0]
add edx, esi
mov dword [esi + eax], ecx
mov eax, dword [0x60b0c0]
mov ecx, dword [esi + 0x5daec4]
mov dword [esi + eax + 4], ecx
mov eax, dword [0x60b0c0]
mov ecx, dword [esi + 0x5daec8]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 0x5daecc]
lea edx, [eax + 0x5daec4]
mov eax, dword [0x60b0c0]
add edx, esi
mov dword [edx + eax], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x5daed0]
lea edx, [eax + 0x5daec4]
mov eax, dword [0x60b0c0]
add edx, esi
mov dword [edx + eax], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x5daed4]
lea edx, [eax + 0x5daec4]
mov eax, dword [0x60b0c0]
add edx, esi
add esi, 0x18
mov dword [edx + eax], ecx
cmp esi, 0x48
jl 0x456240
xor eax, eax
nop dword [eax]
mov esi, 0x100
nop word [eax + eax]
mov ecx, dword [0x60b0c4]
mov edx, dword [eax + 0x5daf20]
mov dword [eax + ecx], edx
add eax, 4
sub esi, 1
jne 0x4562e0
cmp eax, 0x1000
jl 0x4562d0
xor edi, edi
lea ecx, [esi + 0x24]
movzx eax, byte [esi + str.a7b863b0_61b0_4825_a7d4_d93c6a2fad6e]
mov byte [ebp - 1], al
lea eax, [esi + 1]
cdq
idiv ecx
movzx eax, byte [edx + str.a7b863b0_61b0_4825_a7d4_d93c6a2fad6e]
mov byte [ebp - 2], al
lea eax, [esi + 2]
cdq
idiv ecx
movzx eax, byte [edx + str.a7b863b0_61b0_4825_a7d4_d93c6a2fad6e]
mov byte [ebp - 3], al
lea eax, [esi + 3]
cdq
idiv ecx
mov ecx, dword [0x60b0c0]
movzx eax, byte [edx + str.a7b863b0_61b0_4825_a7d4_d93c6a2fad6e]
mov byte [ebp - 4], al
mov eax, dword [ebp - 4]
xor dword [ecx + edi], eax
lea eax, [esi + 4]
cdq
mov ecx, 0x24
idiv ecx
add edi, 4
mov esi, edx
cmp edi, 0x48
jl 0x456303
mov dword [ebp - 8], 0
xor esi, esi
mov dword [ebp - 4], 0
nop
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00455cc0
mov ecx, dword [0x60b0c0]
mov eax, dword [ebp - 4]
mov dword [esi + ecx], eax
mov eax, dword [0x60b0c0]
mov ecx, dword [ebp - 8]
mov dword [esi + eax + 4], ecx
add esi, 8
cmp esi, 0x48
jl 0x456370
xor esi, esi
nop
mov edi, 0x80
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00455cc0
mov ecx, dword [0x60b0c4]
mov eax, dword [ebp - 4]
mov dword [esi + ecx], eax
mov eax, dword [0x60b0c4]
mov ecx, dword [ebp - 8]
mov dword [esi + eax + 4], ecx
add esi, 8
sub edi, 1
jne 0x4563a5
cmp esi, 0x1000
jl 0x4563a0
pop edi
mov byte [0x60b0cc], 1
pop esi
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x457300
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
lea eax, [ebp - 0x308]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x420], esi
call fcn.00553bc0
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x100
push 0
push eax
call fcn.00553bc0
add esp, 0xc
mov dword [ebp - 0x40c], 0x100
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x100
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.00553bc0
add esp, 0xc
lea eax, [ebp - 0x408]
push 0x100
push 0
push eax
call fcn.00553bc0
add esp, 0xc
mov dword [ebp - 0x418], 0x100
lea eax, [ebp - 0x414]
mov dword [ebp - 0x410], 0x100
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x308]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
push 1
push str.S__lu_
mov edi, eax
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.004576a0
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x418], eax
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x457413
movzx eax, byte [edi + 5]
sub ecx, edx
push eax
mov eax, 0x100
sub eax, ecx
push str.__lu
push eax
lea eax, [ebp - 0x108]
add eax, ecx
push eax
call fcn.004576a0
add dword [ebp - 0x418], eax
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
xor edi, edi
movzx eax, byte [eax]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x4574b3
mov ebx, dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov esi, eax
nop dword [eax]
push edi
lea eax, [ebp - 0x208]
push eax
call ebx
push dword [eax]
mov eax, 0x100
sub eax, dword [ebp - 0x418]
push 0x5e98f4
push eax
lea eax, [ebp - 0x108]
add eax, dword [ebp - 0x418]
push eax
call fcn.004576a0
add dword [ebp - 0x418], eax
inc edi
add esp, 0x10
cmp edi, esi
jl 0x457470
mov esi, dword [ebp - 0x420]
lea edx, [ebp - 0x108]
mov ecx, 0x100
sub edx, esi
lea eax, [ecx + 0x7ffffefe]
test eax, eax
je 0x4574d9
mov al, byte [edx + esi]
test al, al
je 0x4574d9
mov byte [esi], al
inc esi
sub ecx, 1
jne 0x4574c0
test ecx, ecx
lea eax, [esi - 1]
mov ecx, dword [ebp - 4]
cmovne eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
mov byte [eax], 0
mov al, 1
call fcn.0055042c
mov esp, ebp
pop ebp
ret
Function at 0x459e90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
lea ebx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x459ea0
sub eax, ebx
sar eax, 1
add eax, eax
push eax
push dword [ebp + 8]
push 1
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop edi
sbb eax, eax
and eax, 0x80004005
pop ebx
pop ebp
ret
Function at 0x45a280
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x424]
mov ecx, dword [ebp + 8]
push edx
push 0xf003f
push 0
push eax
push ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45a42a
push ebx
push esi
push edi
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x45a361
push 0x20a
xor esi, esi
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.00553bc0
add esp, 0xc
cmp dword [ebp - 0x420], esi
jbe 0x45a361
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
nop word [eax + eax]
push 0x105
lea eax, [ebp - 0x41c]
push eax
push esi
push dword [ebp - 0x424]
call ebx
test eax, eax
jne 0x45a358
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x424]
call edi
inc esi
cmp esi, dword [ebp - 0x420]
jb 0x45a330
push dword [ebp - 0x424]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x20a
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], 0
push 0
push eax
call fcn.00553bc0
push dword [ebp - 0x428]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00565616
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.005537c7
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x45a3d1
lea eax, [ebp - 0x210]
push 0x2f
push eax
call fcn.005537c7
mov esi, eax
add esp, 8
test esi, esi
je 0x45a427
mov eax, esi
lea ecx, [ebp - 0x210]
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x20a
jae 0x45a43a
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x424]
push eax
push 0xf003f
push ecx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45a41f
lea eax, [esi + 2]
push eax
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x424]
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055042c
mov esp, ebp
pop ebp
ret 8
call fcn.00550c48
int3