joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48cfa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x414
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x418]
push ebx
push ebp
mov ebp, dword [esp + 0x424]
push esi
push edi
push 5
push eax
push dword [0x57f310]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push dword [0x57f310]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [0x57f310]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
call fcn.004fe8be
mov esi, eax
add esp, 4
test esi, esi
jne 0x48d014
mov dword [ebp], eax
jmp 0x48d146
push edi
push ebx
push esi
call fcn.004fa2e0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x20]
movzx ebx, word [esi + 2]
add esp, 0xc
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x20]
call fcn.0048caa0
test al, al
je 0x48d097
mov edi, esi
cmp ebx, 0xffff
jne 0x48d05b
lea edi, [esi + 8]
movsx ecx, word [edi + 0xe]
mov eax, 0x51eb851f
imul ecx, dword [esp + 0x10]
imul ecx
mov eax, 0x51eb851f
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov word [edi + 0xe], cx
movsx ecx, word [edi + 0x10]
imul ecx, dword [esp + 0x14]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov word [edi + 0x10], ax
xor edx, edx
cmp ebx, 0xffff
mov ebx, 0xffff
sete dl
lea edx, [edx*8 + 0x12]
add edx, esi
cmp word [edx], bx
jne 0x48d0bc
mov ecx, 2
jmp 0x48d0d1
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48d0c1
sub ecx, edi
sar ecx, 1
inc ecx
cmp word [edx + ecx*2], bx
lea edi, [edx + ecx*2]
jne 0x48d0e1
mov ebx, 2
jmp 0x48d0f8
mov edx, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x48d0e6
sub edx, ecx
sar edx, 1
lea ebx, [edx + 1]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push 0x200
push eax
push str.CAPTION
push dword [esp + 0x24]
call fcn.0048cb50
test al, al
lea eax, [esp + 0x20]
jne 0x48d11f
lea eax, [edi + ebx*2]
push eax
call fcn.004fe8d4
add esp, 4
mov dword [ebp], eax
cmp dword [esp + 0x10], 0x64
jne 0x48d144
cmp dword [esp + 0x14], 0x64
jne 0x48d144
push esi
call fcn.004fe8b9
add esp, 4
xor esi, esi
mov eax, esi
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f833c
add esp, 0x414
ret 8
Function at 0x48e270
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x2010
call fcn.004f8350
mov eax, dword [0x544354]
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 0x48e2aa
push dword [esp + 0x2024]
push esi
push edi
call fcn.004947d0
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 0x48e37f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48e2d0
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 0x48e375
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.0047bc90
push 0x800
push esi
call fcn.0047d830
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00494790
lea eax, [esp + 0x14]
push eax
call fcn.0046cad0
test al, al
je 0x48e375
push dword [esp + 0x2024]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.004947d0
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.004f833c
add esp, 0x2010
ret 0xc

Function at 0x48e3a0
Capabilities:
Check os version

Disassembly:
mov eax, 0x1120
call fcn.004f8350
mov eax, dword [0x544354]
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 0x48e3e1
push dword [0x57f310]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x57f314]
mov dword [0x57f310], eax
mov byte [esi], 0
lea eax, [esp + 0x124]
push 0x800
test edi, edi
je 0x48e3fa
push edi
push eax
call fcn.004947d0
jmp 0x48e403
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.0047d930
push 0x800
lea eax, [esp + 0x128]
push eax
push eax
call fcn.0048e270
lea eax, [esp + 8]
mov dword [esp + 8], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x18], 2
jne 0x48e471
mov eax, dword [esp + 0xc]
cmp eax, 5
ja 0x48e45d
jne 0x48e471
cmp word [esp + 0x11c], 2
jb 0x48e471
push 2
push 0
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x48e47f
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x57f310], eax
pop edi
setne al
mov byte [esi], al
test al, al
mov eax, dword [esp + 0x1128]
pop esi
mov dword [0x57f314], eax
jne 0x48e4a2
mov dword [0x57f310], eax
mov ecx, dword [esp + 0x111c]
xor ecx, esp
call fcn.004f833c
add esp, 0x1120
ret 8
Function at 0x48ee90
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 0x48ef05
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 0x48eee1
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 0x48eed1
cmp byte [esi + 1], 0
movups xmm0, xmmword [edi]
aesdeclast xmm1, xmm0
je 0x48eef3
pxor xmm1, xmm2
mov eax, edx
movaps xmm2, xmm3
add edx, 0x10
sub dword [esp + 0x10], 1
movups xmmword [eax], xmm1
jne 0x48eea6
pop edi
movups xmmword [esi + 8], xmm2
pop esi
ret 0xc
Function at 0x48f3f0
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 0x48f466
mov eax, edi
add edi, 0x10
cmp byte [esi + 1], 0
movups xmm0, xmmword [eax]
je 0x48f418
pxor xmm0, xmm1
movups xmm1, xmmword [ecx]
mov edx, dword [esi + 4]
pxor xmm1, xmm0
cmp edx, 1
jle 0x48f444
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 0x48f430
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 0x48f406
pop edi
movups xmmword [esi + 8], xmm1
pop esi
ret 0xc

Function at 0x48f470
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x10], eax
push ebp
push edi
mov edi, ecx
mov ebp, 1
cmp dword [edi + 4], ebp
jle 0x48f5af
push ebx
push esi
mov esi, 0x10
jmp 0x48f4a0
xor eax, eax
movzx ecx, byte [esi + edi + 0x1b]
movzx edx, byte [esi + edi + 0x1a]
movzx ebx, byte [eax + ecx*4 + 0x586690]
xor bl, byte [eax + edx*4 + 0x586290]
movzx ecx, byte [esi + edi + 0x19]
movzx edx, byte [esi + edi + 0x1e]
xor bl, byte [eax + ecx*4 + 0x585e90]
movzx ecx, byte [esi + edi + 0x18]
xor bl, byte [eax + ecx*4 + 0x585a90]
movzx ecx, byte [esi + edi + 0x1f]
mov byte [esp + eax + 0x10], bl
movzx ebx, byte [eax + ecx*4 + 0x586690]
xor bl, byte [eax + edx*4 + 0x586290]
movzx ecx, byte [esi + edi + 0x1d]
movzx edx, byte [edi + esi + 0x22]
xor bl, byte [eax + ecx*4 + 0x585e90]
movzx ecx, byte [esi + edi + 0x1c]
xor bl, byte [eax + ecx*4 + 0x585a90]
movzx ecx, byte [edi + esi + 0x23]
mov byte [esp + eax + 0x14], bl
movzx ebx, byte [eax + ecx*4 + 0x586690]
xor bl, byte [eax + edx*4 + 0x586290]
movzx ecx, byte [edi + esi + 0x21]
movzx edx, byte [esi + edi + 0x26]
xor bl, byte [eax + ecx*4 + 0x585e90]
movzx ecx, byte [edi + esi + 0x20]
xor bl, byte [eax + ecx*4 + 0x585a90]
movzx ecx, byte [esi + edi + 0x27]
mov byte [esp + eax + 0x18], bl
movzx ebx, byte [eax + ecx*4 + 0x586690]
movzx ecx, byte [esi + edi + 0x25]
xor bl, byte [eax + edx*4 + 0x586290]
xor bl, byte [eax + ecx*4 + 0x585e90]
movzx ecx, byte [esi + edi + 0x24]
xor bl, byte [eax + ecx*4 + 0x585a90]
mov byte [esp + eax + 0x1c], bl
inc eax
cmp eax, 4
jl 0x48f4a2
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 0x48f4a0
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
pop edi
pop ebp
xor ecx, esp
call fcn.004f833c
add esp, 0x14
ret
Function at 0x490830
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 0x490855
push edi
push 0
push ebp
call fcn.004fa860
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.00490590
test al, al
jne 0x490910
cmp dword [esp + 0x14], 0
push ebx
jne 0x4908d0
cmp dword [esi + 0x24], edi
je 0x4908a5
push dword [esi + 0x20]
call fcn.004f8488
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f847f
add esp, 8
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
xor ebx, ebx
test edi, edi
je 0x4908d0
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 0x4908b0
mov ebp, dword [esp + 0x20]
jmp 0x4908d0
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 0x490909
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 0x4908f0
pop ebx
lea ebx, [ebx]
pop edi
pop esi
pop ebp
ret 0x14

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

Disassembly:
mov eax, 0x1004
call fcn.004f8350
mov eax, dword [0x544354]
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 0x4919b9
push ebp
push edi
lea edi, [ebx + 0x101e]
push edi
call fcn.0047d830
mov ebp, eax
cmp ebp, edi
jbe 0x491925
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 0x491925
test eax, 0x400
je 0x491925
mov byte [esi], 0
push str.System_Volume_Information_
push edi
call fcn.004fae43
add esp, 8
test eax, eax
jne 0x491954
cmp byte [esi], al
je 0x4919b7
mov ecx, dword [ebx + 0x40f0]
test ecx, ecx
je 0x491959
push 1
push 1
push eax
push edi
call fcn.0045ef30
test al, al
je 0x491959
mov byte [esi], 0
jmp 0x4919b7
cmp byte [esi], 0
je 0x4919b7
mov ecx, dword [ebx + 0x30e0]
test ecx, ecx
je 0x49196e
push edi
call fcn.004948c0
mov ebp, dword [ebx + 0x30e4]
test ebp, ebp
je 0x491991
mov esi, dword [ebx + 0x30ec]
mov ecx, ebp
push 1
call fcn.0041ad70
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.0047bd10
lea eax, [esp + 0x10]
push eax
push 0x57
call fcn.00412af0
mov ecx, 0x57f41c
call fcn.00466a60
pop edi
pop ebp
mov ecx, dword [esp + 0x1008]
pop esi
pop ebx
xor ecx, esp
call fcn.004f833c
add esp, 0x1004
ret 4
Function at 0x491c70
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [0x586a98]
push ebx
push esi
test ecx, ecx
jne 0x491cdf
cmp byte [0x586a94], cl
jne 0x491cdf
push str.Crypt32.dll
call fcn.00495260
mov dword [0x586a90], eax
test eax, eax
je 0x491ccb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptProtectMemory
push eax
call esi
push str.CryptUnprotectMemory
push dword [0x586a90]
mov dword [0x586a98], eax
call esi
mov ecx, dword [0x586a98]
mov dword [0x586a9c], eax
mov byte [0x586a94], 1
jmp 0x491ce4
mov eax, dword [0x586a9c]
mov ecx, dword [0x586a98]
mov byte [0x586a94], 1
jmp 0x491ce4
mov eax, dword [0x586a9c]
mov esi, dword [esp + 0x10]
xor ebx, ebx
mov edx, esi
and edx, 0xfffffff0
cmp byte [esp + 0x18], bl
setne bl
cmp byte [esp + 0x14], 0
je 0x491d3a
test ecx, ecx
je 0x491d51
push ebx
push edx
push dword [esp + 0x14]
call ecx
test eax, eax
jne 0x491d75
push str.CryptProtectMemory_failed
push 0x57f41c
call fcn.00466660
add esp, 8
mov ecx, 0x57f41c
call fcn.00466a60
push 2
mov ecx, 0x57f41c
call fcn.00466620
pop esi
pop ebx
ret 0x10
test eax, eax
je 0x491d51
push ebx
push edx
push dword [esp + 0x14]
call eax
test eax, eax
jne 0x491d75
push str.CryptUnprotectMemory_failed
jmp 0x491d12
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test esi, esi
je 0x491d75
push edi
mov edi, dword [esp + 0x10]
add bl, 0x4b
lea ecx, [edx + edi]
lea eax, [edx + ebx]
inc edx
xor byte [ecx], al
cmp edx, esi
jb 0x491d67
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x493380
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x4c
mov eax, dword [0x544354]
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 0x493418
jbe 0x4933eb
cmp ebx, 0x40
jae 0x4933e7
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 0x4933ef
test ebx, ebx
jne 0x493400
push 1
lea eax, [esi + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00492260
mov eax, 0x38
sub eax, ebx
push eax
lea eax, [esi + 0x20]
add eax, ebx
push 0
push eax
call fcn.004fa860
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.00492260
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.004f833c
add esp, 0x4c
ret 8

Function at 0x4934a0
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 0x4936f0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
mov ebx, dword [esp + 8]
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 + 0x14], edi
cmp esi, 0x38
je 0x493767
jbe 0x493745
cmp esi, 0x40
jae 0x493741
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 + 0x14]
xor esi, esi
jmp 0x493749
test esi, esi
jne 0x49374f
push ebx
call fcn.00493a90
mov eax, 0x38
sub eax, esi
push eax
lea eax, [ebx + 0x28]
add eax, esi
push 0
push eax
call fcn.004fa860
add esp, 0xc
bswap edi
bswap ebp
push ebx
mov dword [ebx + 0x60], edi
mov dword [ebx + 0x64], ebp
call fcn.00493a90
mov eax, dword [ebx]
mov ecx, dword [esp + 0x18]
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
ret 8

Function at 0x493810
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 0x493a90
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
sub esp, 0x124
mov eax, dword [0x544354]
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 0x493ab8
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 0x493ad2
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 0x493b46
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 + 0x5261d8]
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 0x493b42
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.004f833c
add esp, 0x124
ret 4
Function at 0x4951d0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x544354]
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 0x495240
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.004f833c
add esp, 0x14
ret

Function at 0x495260
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.004f8350
mov eax, dword [0x544354]
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 0x4952ac
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004f833c
add esp, 0x1004
ret 4
push 0x800
lea eax, [esp + 8]
push eax
push esi
push eax
call fcn.0047d340
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.004f833c
add esp, 0x1004
ret 4

Function at 0x4953c0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
mov eax, dword [0x544354]
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 0x49541e
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 0x495430
push SysReAllocString
push 5
jmp 0x49547e
cmp eax, 3
jne 0x495451
push 0
push 0
push 0
call sub.POWRPROF.dll_SetSuspendState
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004f833c
add esp, 0x18
ret 4
cmp eax, 2
jne 0x495472
push 0
push 0
push 1
call sub.POWRPROF.dll_SetSuspendState
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004f833c
add esp, 0x18
ret 4
cmp eax, 4
jne 0x495484
push SysReAllocString
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004f833c
add esp, 0x18
ret 4
Function at 0x4957a0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x49581c
push ebp
push edi
lea edi, [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x4958c0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
jne 0x4957f8
push str.CreateThread_failed
push 0x57f41c
call fcn.00466660
add esp, 8
mov ecx, 0x57f41c
call fcn.00466a60
push 2
mov ecx, 0x57f41c
call fcn.00466620
mov dword [edi], ebp
inc dword [esi + 0x84]
mov eax, dword [0x58aab4]
test eax, eax
je 0x495812
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x4957b0
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret