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

Disassembly:
mov eax, 0x2010
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x200c], eax
push esi
mov esi, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
cmp edi, esi
je 0x49774a
push dword [esp + 0x2024]
push esi
push edi
call fcn.0049dc20
lea eax, [esp + 8]
push eax
push 1
push 0
push str.SoftwareWinRARGeneral
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49781f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x497770
sub ecx, edx
mov eax, 0x7ff
sar ecx, 1
sub eax, ecx
add eax, eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1018]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push str.LanguageFolder
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x497815
mov word [esp + 0x14], ax
lea eax, [esp + 0x14]
push 0x800
push eax
lea eax, [esp + 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x800
lea eax, [esp + 0x18]
push eax
call fcn.00484610
push 0x800
push esi
call fcn.00486220
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0049dbe0
lea eax, [esp + 0x14]
push eax
call fcn.004750c0
test al, al
je 0x497815
push dword [esp + 0x2024]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0049dc20
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
xor ecx, esp
call fcn.00507712
add esp, 0x2010
ret 0xc

Function at 0x497840
Capabilities:
Check os version

Disassembly:
mov eax, 0x1120
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x111c], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x1130]
cmp byte [esi], 0
je 0x497881
push dword [0x5b76d8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x5b76dc]
mov dword [0x5b76d8], eax
mov byte [esi], 0
lea eax, [esp + 0x124]
push 0x800
test edi, edi
je 0x49789a
push edi
push eax
call fcn.0049dc20
jmp 0x4978a3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x800
push str.rarlng.dll
lea eax, [esp + 0x12c]
push eax
call fcn.00486320
push 0x800
lea eax, [esp + 0x128]
push eax
push eax
call fcn.00497710
lea eax, [esp + 8]
mov dword [esp + 8], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x18], 2
jne 0x497911
mov eax, dword [esp + 0xc]
cmp eax, 5
ja 0x4978fd
jne 0x497911
cmp word [esp + 0x11c], 2
jb 0x497911
push 2
push 0
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x49791f
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x5b76d8], eax
pop edi
setne al
mov byte [esi], al
test al, al
mov eax, dword [esp + 0x1128]
pop esi
mov dword [0x5b76dc], eax
jne 0x497942
mov dword [0x5b76d8], eax
mov ecx, dword [esp + 0x111c]
xor ecx, esp
call fcn.00507712
add esp, 0x1120
ret 8
Function at 0x498330
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
cmp dword [esp + 8], 0
mov edx, dword [esp + 0xc]
push esi
mov esi, ecx
push edi
movups xmm2, xmmword [esi + 8]
lea edi, [esi + 0x18]
jbe 0x4983a5
mov ecx, dword [esp + 0xc]
mov eax, ecx
add ecx, 0x10
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 4]
movups xmm3, xmmword [eax]
mov eax, ecx
dec ecx
add eax, eax
movups xmm1, xmmword [edi + eax*8]
pxor xmm1, xmm3
test ecx, ecx
jle 0x498381
mov eax, ecx
shl eax, 4
add eax, edi
movups xmm0, xmmword [eax]
dec ecx
lea eax, [eax - 0x10]
aesdec xmm1, xmm0
test ecx, ecx
jg 0x498371
cmp byte [esi + 1], 0
movups xmm0, xmmword [edi]
aesdeclast xmm1, xmm0
je 0x498393
pxor xmm1, xmm2
mov eax, edx
movaps xmm2, xmm3
add edx, 0x10
sub dword [esp + 0x10], 1
movups xmmword [eax], xmm1
jne 0x498346
pop edi
movups xmmword [esi + 8], xmm2
pop esi
ret 0xc
Function at 0x498870
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0xc]
movups xmm1, xmmword [esi + 8]
lea ecx, [esi + 0x18]
jbe 0x4988e6
mov eax, edi
add edi, 0x10
cmp byte [esi + 1], 0
movups xmm0, xmmword [eax]
je 0x498898
pxor xmm0, xmm1
movups xmm1, xmmword [ecx]
mov edx, dword [esi + 4]
pxor xmm1, xmm0
cmp edx, 1
jle 0x4988c4
lea eax, [ecx + 0x10]
lea ecx, [edx - 1]
lea ecx, [ecx]
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x10]
aesenc xmm1, xmm0
sub ecx, 1
jne 0x4988b0
lea ecx, [esi + 0x18]
add edx, edx
movups xmm0, xmmword [ecx + edx*8]
mov edx, dword [esp + 0x14]
mov eax, edx
add edx, 0x10
sub dword [esp + 0x10], 1
aesenclast xmm1, xmm0
mov dword [esp + 0x14], edx
movups xmmword [eax], xmm1
jne 0x498886
pop edi
movups xmmword [esi + 8], xmm1
pop esi
ret 0xc

Function at 0x4988f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x10], eax
push ebp
push edi
mov edi, ecx
mov ebp, 1
cmp dword [edi + 4], ebp
jle 0x498a2f
push ebx
push esi
mov esi, 0x10
jmp 0x498920
xor eax, eax
movzx ecx, byte [esi + edi + 0x1b]
movzx edx, byte [esi + edi + 0x1a]
movzx ebx, byte [eax + ecx*4 + 0x5bea58]
xor bl, byte [eax + edx*4 + 0x5be658]
movzx ecx, byte [esi + edi + 0x19]
movzx edx, byte [esi + edi + 0x1e]
xor bl, byte [eax + ecx*4 + 0x5be258]
movzx ecx, byte [esi + edi + 0x18]
xor bl, byte [eax + ecx*4 + 0x5bde58]
movzx ecx, byte [esi + edi + 0x1f]
mov byte [esp + eax + 0x10], bl
movzx ebx, byte [eax + ecx*4 + 0x5bea58]
xor bl, byte [eax + edx*4 + 0x5be658]
movzx ecx, byte [esi + edi + 0x1d]
movzx edx, byte [edi + esi + 0x22]
xor bl, byte [eax + ecx*4 + 0x5be258]
movzx ecx, byte [esi + edi + 0x1c]
xor bl, byte [eax + ecx*4 + 0x5bde58]
movzx ecx, byte [edi + esi + 0x23]
mov byte [esp + eax + 0x14], bl
movzx ebx, byte [eax + ecx*4 + 0x5bea58]
xor bl, byte [eax + edx*4 + 0x5be658]
movzx ecx, byte [edi + esi + 0x21]
movzx edx, byte [esi + edi + 0x26]
xor bl, byte [eax + ecx*4 + 0x5be258]
movzx ecx, byte [edi + esi + 0x20]
xor bl, byte [eax + ecx*4 + 0x5bde58]
movzx ecx, byte [esi + edi + 0x27]
mov byte [esp + eax + 0x18], bl
movzx ebx, byte [eax + ecx*4 + 0x5bea58]
movzx ecx, byte [esi + edi + 0x25]
xor bl, byte [eax + edx*4 + 0x5be658]
xor bl, byte [eax + ecx*4 + 0x5be258]
movzx ecx, byte [esi + edi + 0x24]
xor bl, byte [eax + ecx*4 + 0x5bde58]
mov byte [esp + eax + 0x1c], bl
inc eax
cmp eax, 4
jl 0x498922
mov eax, dword [esp + 0x10]
inc ebp
mov dword [edi + esi + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [edi + esi + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [edi + esi + 0x20], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + esi + 0x24], eax
add esi, 0x10
cmp ebp, dword [edi + 4]
jl 0x498920
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
pop edi
pop ebp
xor ecx, esp
call fcn.00507712
add esp, 0x14
ret
Function at 0x499cb0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x20]
test eax, eax
jne 0x499cd5
push edi
push 0
push ebp
call fcn.00520500
mov eax, dword [esp + 0x1c]
add esp, 0xc
push edi
push ebp
push dword [esp + 0x20]
mov ecx, esi
push dword [esp + 0x20]
push eax
call fcn.00499a10
test al, al
jne 0x499d90
cmp dword [esp + 0x14], 0
push ebx
jne 0x499d50
cmp dword [esi + 0x24], edi
je 0x499d25
push dword [esi + 0x20]
call fcn.0050786d
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00507864
add esp, 8
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
xor ebx, ebx
test edi, edi
je 0x499d50
mov ebp, dword [esp + 0x1c]
nop
movzx edx, word [ebx + ebp]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x20]
mov eax, dword [eax + edx*4]
mov dword [ecx + ebx*4], eax
add ebx, 2
cmp ebx, edi
jb 0x499d30
mov ebp, dword [esp + 0x20]
jmp 0x499d50
mov ecx, dword [esi + 0xc]
xor edx, edx
imul ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x1c]
add ecx, dword [esp + 0x14]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esi + 4]
mov ebx, dword [eax + ecx*4]
test edi, edi
je 0x499d89
mov edi, edi
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + edx*4]
mov eax, dword [esi]
add ecx, ebx
mov ax, word [eax + ecx*4]
xor word [edx + ebp], ax
add edx, 2
cmp edx, edi
jb 0x499d70
pop ebx
lea ebx, [ebx]
pop edi
pop esi
pop ebp
ret 0x14

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

Disassembly:
mov eax, 0x1004
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push esi
mov esi, dword [esp + 0x1010]
mov ebx, ecx
cmp byte [esi], 0
je 0x49ad99
push ebp
push edi
lea edi, [ebx + 0x101e]
push edi
call fcn.00486220
mov ebp, eax
cmp ebp, edi
jbe 0x49ad05
xor eax, eax
push edi
mov word [ebp - 2], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x5c
mov word [ebp - 2], cx
cmp eax, 0xffffffff
je 0x49ad05
test eax, 0x400
je 0x49ad05
mov byte [esi], 0
push str.System_Volume_Information_
push edi
call fcn.0052087b
add esp, 8
test eax, eax
jne 0x49ad34
cmp byte [esi], al
je 0x49ad97
mov ecx, dword [ebx + 0x40f0]
test ecx, ecx
je 0x49ad39
push 1
push 1
push eax
push edi
call fcn.00466d60
test al, al
je 0x49ad39
mov byte [esi], 0
jmp 0x49ad97
cmp byte [esi], 0
je 0x49ad97
mov ecx, dword [ebx + 0x30e0]
test ecx, ecx
je 0x49ad4e
push edi
call fcn.0049dd10
mov ebp, dword [ebx + 0x30e4]
test ebp, ebp
je 0x49ad71
mov esi, dword [ebx + 0x30ec]
mov ecx, ebp
push 1
call fcn.0041e780
mov ecx, dword [ebp + 4]
mov eax, dword [ebp]
mov dword [eax + ecx*4 - 4], esi
push 0x800
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00484690
lea eax, [esp + 0x10]
push eax
push 0x57
call fcn.00415840
mov ecx, 0x5b77e4
call fcn.0046e910
pop edi
pop ebp
mov ecx, dword [esp + 0x1008]
pop esi
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x1004
ret 4
Function at 0x49b050
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp], eax
push ebp
push esi
push edi
mov edi, dword [0x5bee60]
test edi, edi
jne 0x49b0d2
cmp byte [0x5bee5c], 0
jne 0x49b0d2
push str.Crypt32.dll
call fcn.0049e6b0
mov dword [0x5bee58], eax
test eax, eax
je 0x49b0bd
push str.CryptProtectMemory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptUnprotectMemory
push dword [0x5bee58]
mov dword [0x5bee60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [0x5bee60]
mov esi, eax
mov dword [0x5bee64], esi
mov byte [0x5bee5c], 1
jmp 0x49b0d8
mov esi, dword [0x5bee64]
mov edi, dword [0x5bee60]
mov byte [0x5bee5c], 1
jmp 0x49b0d8
mov esi, dword [0x5bee64]
mov ebp, dword [esp + 0x18]
xor ecx, ecx
mov eax, ebp
and eax, 0xfffffff0
cmp byte [esp + 0x20], cl
setne cl
cmp byte [esp + 0x1c], 0
je 0x49b142
test edi, edi
je 0x49b161
push ecx
push eax
push dword [esp + 0x1c]
mov ecx, edi
call dword [0x540780]
call edi
test eax, eax
jne 0x49b185
push str.CryptProtectMemory_failed
push 0x5b77e4
call fcn.0046e4f0
add esp, 8
mov ecx, 0x5b77e4
call fcn.0046e910
push 2
mov ecx, 0x5b77e4
call fcn.0046e4b0
pop edi
pop esi
pop ebp
mov ecx, dword [esp]
xor ecx, esp
call fcn.00507712
pop ecx
ret 0x10
test esi, esi
je 0x49b161
push ecx
push eax
push dword [esp + 0x1c]
mov ecx, esi
call dword [0x540780]
call esi
test eax, eax
jne 0x49b185
push str.CryptUnprotectMemory_failed
jmp 0x49b10e
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test ebp, ebp
je 0x49b184
mov esi, dword [esp + 0x18]
add bl, 0x4b
lea ecx, [edx + esi]
lea eax, [edx + ebx]
inc edx
xor byte [ecx], al
cmp edx, ebp
jb 0x49b177
pop ebx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00507712
pop ecx
ret 0x10
Function at 0x49c7a0
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x4c
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
push edi
mov dword [esp + 0x14], eax
mov ebx, dword [esi + 0x18]
mov ebp, dword [esi + 0x18]
and ebx, 0x3f
mov edi, dword [esi + 0x1c]
shld edi, ebp, 3
mov byte [esi + ebx + 0x20], 0x80
inc ebx
shl ebp, 3
mov dword [esp + 0x10], edi
cmp ebx, 0x38
je 0x49c838
jbe 0x49c80b
cmp ebx, 0x40
jae 0x49c807
mov ecx, 0x40
lea edi, [esi + 0x20]
sub ecx, ebx
add edi, ebx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x10]
xor ebx, ebx
jmp 0x49c80f
test ebx, ebx
jne 0x49c820
push 1
lea eax, [esi + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push esi
call fcn.0049b680
mov eax, 0x38
sub eax, ebx
push eax
lea eax, [esi + 0x20]
add eax, ebx
push 0
push eax
call fcn.00520500
add esp, 0xc
push 1
lea eax, [esi + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
bswap edi
bswap ebp
push esi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], ebp
call fcn.0049b680
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x4c
ret 8

Function at 0x49c8c0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4
Function at 0x49cb10
Capabilities:
Hash data using sha256

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov esi, dword [ebx + 0x20]
mov ebp, dword [ebx + 0x20]
and esi, 0x3f
mov edi, dword [ebx + 0x24]
shld edi, ebp, 3
mov byte [esi + ebx + 0x28], 0x80
inc esi
shl ebp, 3
mov dword [esp + 0x10], edi
cmp esi, 0x38
je 0x49cb88
jbe 0x49cb66
cmp esi, 0x40
jae 0x49cb62
mov ecx, 0x40
lea edi, [ebx + 0x28]
sub ecx, esi
add edi, esi
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x10]
xor esi, esi
jmp 0x49cb6a
test esi, esi
jne 0x49cb70
push ebx
call fcn.0049ceb0
mov eax, 0x38
sub eax, esi
push eax
lea eax, [ebx + 0x28]
add eax, esi
push 0
push eax
call fcn.00520500
add esp, 0xc
bswap edi
bswap ebp
push ebx
mov dword [ebx + 0x60], edi
mov dword [ebx + 0x64], ebp
call fcn.0049ceb0
mov eax, dword [ebx]
mov ecx, dword [esp + 0x1c]
bswap eax
pop edi
pop esi
mov dword [ecx], eax
mov eax, dword [ebx + 4]
bswap eax
mov dword [ecx + 4], eax
mov eax, dword [ebx + 8]
bswap eax
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0xc]
bswap eax
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 0x10]
bswap eax
mov dword [ecx + 0x10], eax
mov eax, dword [ebx + 0x14]
bswap eax
mov dword [ecx + 0x14], eax
mov eax, dword [ebx + 0x18]
bswap eax
mov dword [ecx + 0x18], eax
mov eax, dword [ebx + 0x1c]
bswap eax
mov dword [ecx + 0x1c], eax
mov dword [ebx], 0x6a09e667
mov dword [ebx + 4], 0xbb67ae85
mov dword [ebx + 8], 0x3c6ef372
mov dword [ebx + 0xc], 0xa54ff53a
mov dword [ebx + 0x10], 0x510e527f
mov dword [ebx + 0x14], 0x9b05688c
mov dword [ebx + 0x18], 0x1f83d9ab
mov dword [ebx + 0x1c], 0x5be0cd19
pop ebp
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
pop ebx
pop ecx
ret 8

Function at 0x49cc30
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
ret 4
Function at 0x49ceb0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
sub esp, 0x124
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
mov ebx, dword [esp + 0x12c]
xor ecx, ecx
push ebp
push esi
push edi
mov dword [esp + 0x2c], ebx
lea edx, [ebx + 0x28]
mov eax, dword [edx]
lea edx, [edx + 4]
bswap eax
mov dword [esp + ecx*4 + 0x30], eax
inc ecx
cmp ecx, 0x10
jb 0x49ced8
lea eax, [esp + 0x68]
mov ebp, 0x30
mov edx, dword [eax - 0x34]
lea eax, [eax + 4]
mov esi, dword [eax - 4]
mov edi, edx
mov ecx, edx
rol edi, 0xe
ror ecx, 7
xor edi, ecx
shr edx, 3
xor edi, edx
mov ecx, esi
mov edx, esi
rol ecx, 0xd
rol edx, 0xf
xor edx, ecx
shr esi, 0xa
xor edx, esi
add edi, edx
add edi, dword [eax - 0x3c]
add edi, dword [eax - 0x18]
mov dword [eax + 4], edi
sub ebp, 1
jne 0x49cef2
mov eax, dword [ebx]
mov ebp, eax
mov edi, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x1c]
xor ebx, ebx
mov dword [esp + 0x20], eax
jmp 0x49cf66
mov edx, dword [esp + 0x24]
mov esi, edi
mov dword [esp + 0x24], edi
ror esi, 0xb
mov eax, edi
rol eax, 7
mov ecx, edi
xor esi, eax
not ecx
and ecx, dword [esp + 0x18]
mov eax, edi
ror eax, 6
xor esi, eax
mov eax, edx
and eax, edi
mov edi, dword [esp + 0x1c]
xor ecx, eax
mov eax, dword [esp + 0x18]
add esi, ecx
mov dword [esp + 0x18], edx
add esi, dword [ebx + 0x550b58]
mov edx, ebp
add esi, dword [esp + ebx + 0x30]
add ebx, 4
add esi, dword [esp + 0x20]
mov dword [esp + 0x20], eax
add edi, esi
ror edx, 0xd
mov eax, ebp
rol eax, 0xa
xor edx, eax
mov eax, ebp
ror eax, 2
xor edx, eax
mov eax, dword [esp + 0x14]
mov ecx, eax
and eax, dword [esp + 0x10]
xor ecx, dword [esp + 0x10]
and ecx, ebp
xor ecx, eax
mov eax, dword [esp + 0x14]
add edx, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov ecx, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
lea ebp, [edx + esi]
cmp ebx, 0x100
jb 0x49cf62
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add eax, ebp
add dword [ebx + 0x10], edi
add dword [ebx + 4], ecx
mov ecx, dword [esp + 0x130]
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
add dword [ebx + 8], eax
mov eax, dword [esp + 0x1c]
add dword [ebx + 0xc], eax
mov eax, dword [esp + 0x24]
add dword [ebx + 0x14], eax
mov eax, dword [esp + 0x18]
add dword [ebx + 0x18], eax
mov eax, dword [esp + 0x20]
add dword [ebx + 0x1c], eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x124
ret 4
Function at 0x49e620
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x30]
mov word [esp + 0x34], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [esp], ecx
test ecx, ecx
je 0x49e690
lea eax, [esp]
push eax
push dword [esp + 8]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [esp + 4]
neg eax
sbb eax, eax
and dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x10]
setne al
xor ecx, esp
call fcn.00507712
add esp, 0x14
ret

Function at 0x49e6b0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
lea eax, [esp + 4]
push 0x800
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x49e6fc
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00507712
add esp, 0x1004
ret 4
push 0x800
lea eax, [esp + 8]
push eax
push esi
push eax
call fcn.00485ce0
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x1004]
pop esi
xor ecx, esp
call fcn.00507712
add esp, 0x1004
ret 4

Function at 0x49e830
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x14], eax
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x49e88e
lea eax, [esp + 8]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp + 0x1c]
cmp eax, 1
jne 0x49e8a0
push SysReAllocString
push 5
jmp 0x49e8ee
cmp eax, 3
jne 0x49e8c1
push 0
push 0
push 0
call sub.POWRPROF.dll_SetSuspendState
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00507712
add esp, 0x18
ret 4
cmp eax, 2
jne 0x49e8e2
push 0
push 0
push 1
call sub.POWRPROF.dll_SetSuspendState
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00507712
add esp, 0x18
ret 4
cmp eax, 4
jne 0x49e8f4
push SysReAllocString
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00507712
add esp, 0x18
ret 4
Function at 0x49ec10
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x49ec8c
push ebp
push edi
lea edi, [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x49ece0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
jne 0x49ec68
push str.CreateThread_failed
push 0x5b77e4
call fcn.0046e4f0
add esp, 8
mov ecx, 0x5b77e4
call fcn.0046e910
push 2
mov ecx, 0x5b77e4
call fcn.0046e4b0
mov dword [edi], ebp
inc dword [esi + 0x104]
mov eax, dword [0x5c2e7c]
test eax, eax
je 0x49ec82
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x49ec20
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x4ae690
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x5a4
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x5a0], eax
push ebx
mov ebx, dword [esp + 0x5ac]
push edi
mov edi, dword [esp + 0x5b4]
call fcn.00478e40
test eax, eax
jne 0x4ae6cd
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4ae7c1
push esi
mov edi, edi
cmp word [edi], 0
mov dword [0x5c4cd8], 0
je 0x4ae7c0
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ae7b3
xor esi, esi
mov dword [esp + 0xc], 0xc8
lea eax, [esp + 0x14]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push esi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4ae78b
jmp 0x4ae730
lea eax, [esp + 0x1c]
push eax
push edi
push 0x550f34
lea eax, [esp + 0x1b8]
push 0x200
push eax
call fcn.00402930
add esp, 0x14
lea eax, [esp + 0x1ac]
push eax
push ebx
call fcn.004ae9d0
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0xc8
push eax
push 0
push 0
push 0
lea eax, [esp + 0x1c]
inc esi
push eax
lea eax, [esp + 0x30]
push eax
push esi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4ae730
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ae79a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4ae7b3
mov eax, dword [0x5c4cd8]
inc eax
mov dword [0x5c4cd8], eax
jmp 0x4ae7b8
mov eax, dword [0x5c4cd8]
test eax, eax
jne 0x4ae6d0
pop esi
mov ecx, dword [esp + 0x5a8]
pop edi
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x5a4
ret 8