joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455d70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, ecx
push edi
mov dword [esi + 4], 0
mov dword [esi], 0
mov eax, ebp
cmp ebp, 0x8000
jb 0x455d95
mov eax, 0x8000
mov edi, dword [esp + 0x10]
push ebx
push eax
mov eax, dword [esi + 0xc]
push edi
push eax
call fcn.004e03c0
mov eax, 1
add esp, 0xc
xor bl, bl
cmp ebp, eax
jbe 0x455dbb
xor bl, byte [eax + edi]
inc eax
cmp eax, ebp
jb 0x455db3
push 8
mov ecx, esi
call fcn.00445970
mov esi, dword [esp + 0x1c]
mov dword [esi + 0x14], 0
cmp bl, byte [edi]
pop ebx
jne 0x455dfc
push ebp
push edi
push 0xffffffffffffffff
call fcn.00438d20
xor edx, edx
not eax
xor ecx, ecx
cmp dword [ecx + 0x50e2f4], eax
jne 0x455df3
cmp dword [ecx + 0x50e2f0], ebp
je 0x455e6b
add ecx, 0xc
inc edx
cmp ecx, 0x48
jb 0x455de3
push 1
mov ecx, esi
call fcn.00455ce0
mov eax, dword [esi + 0x14]
lea ecx, [eax + 1]
mov dword [esi + 0x14], ecx
lea edx, [eax + eax*4]
mov eax, dword [esi]
lea eax, [eax + edx*8]
lea ecx, [eax + 0xc]
mov dword [eax + 0x14], ecx
mov ecx, 3
mov dword [eax + 0x18], ecx
mov dword [eax + 8], ecx
lea edx, [eax + 0x1c]
xor ecx, ecx
mov dword [eax], 0x16
mov dword [eax + 0x24], edx
cmp dword [esi + 0x14], ecx
jle 0x455e65
xor edx, edx
lea esp, [esp]
mov eax, dword [esi]
add eax, edx
cmp dword [eax + 0x14], 0
jne 0x455e50
lea edi, [eax + 0xc]
mov dword [eax + 0x14], edi
cmp dword [eax + 0x24], 0
jne 0x455e5c
lea edi, [eax + 0x1c]
mov dword [eax + 0x24], edi
inc ecx
add edx, 0x28
cmp ecx, dword [esi + 0x14]
jl 0x455e40
pop edi
pop esi
pop ebp
ret 0xc
lea ecx, [edx + edx*2]
mov edi, dword [ecx*4 + 0x50e2f8]
test edi, edi
je 0x455dfc
push 1
mov ecx, esi
call fcn.00455ce0
mov eax, dword [esi + 0x14]
mov ecx, dword [esi]
lea edx, [eax + 1]
mov dword [esi + 0x14], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
lea ecx, [eax + 0xc]
mov dword [ecx], edi
pop edi
mov dword [eax + 0x14], ecx
mov ecx, 3
lea edx, [eax + 0x1c]
pop esi
mov dword [eax], 0x28
mov dword [eax + 0x24], edx
mov dword [eax + 0x18], ecx
mov dword [eax + 8], ecx
pop ebp
ret 0xc
Function at 0x460ed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x418
mov eax, dword [0x50fb70]
xor eax, esp
mov dword [esp + 0x414], eax
mov eax, dword [esp + 0x41c]
push ebx
mov ebx, dword [esp + 0x424]
push ebp
push esi
push edi
push 5
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [0x5275b4]
push eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [0x5275b4]
mov esi, eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, dword [0x5275b4]
push esi
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.004dfec6
mov edi, eax
add esp, 4
test edi, edi
jne 0x460f49
mov dword [ebx], eax
jmp 0x461089
push esi
push ebp
push edi
call fcn.004e03c0
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
add esp, 0xc
and eax, 0xffff0000
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
cmp eax, 0xffff0000
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push eax
sete bl
call fcn.004608b0
mov ebp, dword [esp + 0x1c]
test al, al
je 0x460fd0
mov ecx, edi
test bl, bl
je 0x460f96
lea ecx, [edi + 8]
movsx edx, word [ecx + 0xe]
imul edx, ebp
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx edx, word [ecx + 0x10]
imul edx, dword [esp + 0x10]
mov word [ecx + 0xe], ax
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov word [ecx + 0x10], ax
xor ecx, ecx
test bl, bl
setne cl
mov eax, 0xffff
lea ecx, [ecx*4 + 9]
cmp word [edi + ecx*2], ax
lea edx, [edi + ecx*2]
jne 0x460ff3
mov eax, 2
jmp 0x461010
mov eax, edx
lea esi, [eax + 2]
jmp 0x461000
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x461000
sub eax, esi
sar eax, 1
inc eax
lea edx, [edx + eax*2]
mov ecx, 0xffff
cmp word [edx], cx
jne 0x461024
mov eax, 2
jmp 0x461040
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x461030
sub eax, esi
sar eax, 1
inc eax
mov ecx, dword [esp + 0x14]
push ecx
push 1
push 0x200
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [edx + eax*2]
push edx
call fcn.004606d0
lea eax, [esp + 0x24]
push eax
call fcn.004e3d15
mov ecx, dword [esp + 0x24]
add esp, 4
mov dword [ecx], eax
cmp ebp, 0x64
jne 0x461087
cmp dword [esp + 0x10], ebp
jne 0x461087
push edi
call fcn.004df66f
add esp, 4
xor edi, edi
mov eax, edi
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004df824
add esp, 0x418
ret 8
Function at 0x461180
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x2010
call fcn.004df840
mov eax, dword [0x50fb70]
xor eax, esp
mov dword [esp + 0x200c], eax
push ebx
mov ebx, dword [esp + 0x2020]
push esi
mov esi, dword [esp + 0x201c]
push edi
mov edi, dword [esp + 0x2024]
cmp edi, esi
je 0x4611bc
push ebx
push esi
push edi
call fcn.00466b20
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SoftwareWinRARGeneral
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46128d
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4611e2
sub eax, edx
sar eax, 1
mov ecx, 0x7ff
sub ecx, eax
add ecx, ecx
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x101c]
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.LanguageFolder
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x461282
push 0x800
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1020]
push edx
mov word [esp + 0x24], ax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x800
lea eax, [esp + 0x1c]
push eax
call fcn.00450c80
push 0x800
push esi
call fcn.00451140
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00466ba0
lea edx, [esp + 0x18]
push edx
call fcn.00443510
test al, al
je 0x461282
push ebx
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.00466b20
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2018]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004df824
add esp, 0x2010
ret 0xc

Function at 0x461370
Capabilities:
Check os version

Disassembly:
mov eax, 0x1118
call fcn.004df840
mov eax, dword [0x50fb70]
xor eax, esp
mov dword [esp + 0x1114], eax
push esi
mov esi, ecx
cmp byte [esi], 0
je 0x4613ab
mov eax, dword [0x5275b4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x5275b0]
mov dword [0x5275b4], ecx
mov byte [esi], 0
mov eax, dword [esp + 0x1124]
lea edx, [esp + 0x118]
test eax, eax
je 0x4613d1
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4613c0
jmp 0x4613df
push 0x800
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x800
push str.rarlng.dll
lea eax, [esp + 0x120]
push eax
call fcn.00451310
push 0x800
lea ecx, [esp + 0x11c]
push ecx
mov edx, ecx
push edx
call fcn.00461180
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x14], 2
jne 0x46144b
mov eax, dword [esp + 8]
cmp eax, 5
ja 0x461437
jne 0x46144b
cmp dword [esp + 0xc], 1
jbe 0x46144b
push 2
push 0
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x461459
lea edx, [esp + 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x5275b4], eax
setne al
mov byte [esi], al
test al, al
mov eax, dword [esp + 0x1120]
pop esi
mov dword [0x5275b0], eax
jne 0x46147b
mov dword [0x5275b4], eax
mov ecx, dword [esp + 0x1114]
xor ecx, esp
call fcn.004df824
add esp, 0x1118
ret 8
Function at 0x4614a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x14
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
push ebx
mov edx, ecx
mov ecx, dword [ebp + 0x10]
movdqu xmm0, xmmword [edx + 8]
push esi
lea esi, [edx + 8]
push edi
mov dword [esp + 0x1c], esi
mov edi, eax
mov ebx, ecx
lea esi, [edx + 0x18]
jbe 0x461536
lea ecx, [ecx]
mov eax, edi
movdqu xmm1, xmmword [eax]
add edi, 0x10
cmp byte [edx + 1], 0
mov dword [esp + 0x18], edi
je 0x4614e9
pxor xmm0, xmm1
jmp 0x4614ed
movdqa xmm0, xmm1
mov eax, dword [edx + 4]
cmp eax, 1
movdqu xmm1, xmmword [esi]
pxor xmm0, xmm1
jle 0x461518
lea ecx, [esi + 0x10]
lea edi, [eax - 1]
movdqu xmm1, xmmword [ecx]
add ecx, 0x10
sub edi, 1
aesenc xmm0, xmm1
jne 0x461503
mov edi, dword [esp + 0x18]
shl eax, 4
movdqu xmm1, xmmword [eax + esi]
add eax, esi
mov eax, ebx
add ebx, 0x10
sub dword [ebp + 0xc], 1
aesenclast xmm0, xmm1
movdqu xmmword [eax], xmm0
jne 0x4614d0
mov eax, dword [esp + 0x1c]
pop edi
pop esi
movdqu xmmword [eax], xmm0
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x461550
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push ecx
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 0x10]
push ebx
mov edx, ecx
movdqu xmm2, xmmword [edx + 8]
push esi
lea ecx, [edx + 8]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov ebx, eax
lea esi, [edx + 0x18]
jbe 0x4615e3
lea esp, [esp]
mov eax, edi
movdqu xmm1, xmmword [eax]
mov eax, dword [edx + 4]
mov ecx, eax
shl ecx, 4
movdqu xmm0, xmmword [ecx + esi]
add ecx, esi
dec eax
add edi, 0x10
pxor xmm0, xmm1
test eax, eax
jle 0x4615b9
mov ecx, eax
shl ecx, 4
add ecx, esi
movdqu xmm3, xmmword [ecx]
dec eax
sub ecx, 0x10
aesdec xmm0, xmm3
test eax, eax
jg 0x4615a8
cmp byte [edx + 1], 0
movdqu xmm3, xmmword [esi]
aesdeclast xmm0, xmm3
je 0x4615cc
pxor xmm0, xmm2
mov eax, ebx
add ebx, 0x10
sub dword [ebp + 0xc], 1
movdqa xmm2, xmm1
movdqu xmmword [eax], xmm0
jne 0x461580
mov ecx, dword [esp + 0xc]
pop edi
pop esi
movdqu xmmword [ecx], xmm2
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x461840
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x50fb70]
xor eax, esp
mov dword [esp + 0x10], eax
push ebp
push edi
mov ebp, ecx
mov edi, 1
cmp dword [ebp + 4], edi
jle 0x46197a
push ebx
push esi
lea esi, [ebp + 0x28]
lea ecx, [ebp + 0x2c]
jmp 0x461870
xor eax, eax
jmp 0x461880
movzx edx, byte [ecx - 1]
movzx edx, byte [eax + edx*4 + 0x52a620]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x52aa20]
movzx ebx, byte [ecx - 3]
xor dl, byte [eax + ebx*4 + 0x52ae20]
movzx ebx, byte [ecx - 4]
xor dl, byte [eax + ebx*4 + 0x52b220]
movzx ebx, byte [ecx + 2]
mov byte [esp + eax + 0x10], dl
movzx edx, byte [ecx + 3]
movzx edx, byte [eax + edx*4 + 0x52a620]
xor dl, byte [eax + ebx*4 + 0x52aa20]
movzx ebx, byte [ecx + 1]
xor dl, byte [eax + ebx*4 + 0x52ae20]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x52b220]
movzx ebx, byte [ecx + 6]
mov byte [esp + eax + 0x14], dl
movzx edx, byte [ecx + 7]
movzx edx, byte [eax + edx*4 + 0x52a620]
xor dl, byte [eax + ebx*4 + 0x52aa20]
movzx ebx, byte [ecx + 5]
xor dl, byte [eax + ebx*4 + 0x52ae20]
movzx ebx, byte [ecx + 4]
xor dl, byte [eax + ebx*4 + 0x52b220]
movzx ebx, byte [ecx + 0xa]
mov byte [esp + eax + 0x18], dl
movzx edx, byte [ecx + 0xb]
movzx edx, byte [eax + edx*4 + 0x52a620]
xor dl, byte [eax + ebx*4 + 0x52aa20]
movzx ebx, byte [ecx + 9]
xor dl, byte [eax + ebx*4 + 0x52ae20]
movzx ebx, byte [ecx + 8]
xor dl, byte [eax + ebx*4 + 0x52b220]
inc eax
cmp eax, 4
mov byte [esp + eax + 0x1b], dl
jl 0x461880
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
inc edi
add ecx, 0x10
add esi, 0x10
cmp edi, dword [ebp + 4]
jl 0x461870
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
pop edi
pop ebp
xor ecx, esp
call fcn.004df824
add esp, 0x14
ret
Function at 0x463650
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 4], 0
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, ecx
jne 0x463671
push edi
push 0
push ebp
call fcn.004e0730
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edi
push ebp
push eax
push ebx
push ecx
mov ecx, esi
call fcn.004631f0
test al, al
jne 0x463730
test ebx, ebx
jne 0x4636f0
cmp dword [esi + 0x24], edi
je 0x4636c4
mov edx, dword [esi + 0x20]
push edx
call fcn.004e07e4
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004df63a
add esp, 8
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
xor eax, eax
test edi, edi
jbe 0x4636f0
lea ebx, [ebx]
mov ecx, dword [esp + 0x1c]
movzx edx, word [eax + ecx]
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 0x20]
mov edx, dword [ecx + edx*4]
mov dword [ebx + eax*4], edx
add eax, 2
cmp eax, edi
jb 0x4636d0
mov ebx, dword [esp + 0x18]
nop
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x1c]
imul eax, ebx
add eax, dword [esp + 0x14]
mov edx, dword [ecx + eax*4]
mov eax, dword [esi + 4]
mov ecx, dword [eax + edx*4]
xor eax, eax
test edi, edi
jbe 0x463730
lea esp, [esp]
mov edx, dword [esi + 0x20]
mov edx, dword [edx + eax*4]
mov ebx, dword [esi]
add edx, ecx
mov dx, word [ebx + edx*4]
xor word [eax + ebp], dx
add eax, 2
cmp eax, edi
jb 0x463710
lea esp, [esp]
pop edi
pop esi
pop ebp
pop ebx
ret 0x14

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

Disassembly:
mov eax, 0x1050
call fcn.004df840
mov eax, dword [0x50fb70]
xor eax, esp
mov dword [esp + 0x104c], eax
push ebx
mov ebx, dword [esp + 0x1058]
cmp byte [ebx], 0
push ebp
mov ebp, ecx
je 0x4639d3
push esi
push edi
lea esi, [ebp + 0x101e]
push esi
call fcn.00451140
mov edi, eax
cmp edi, esi
jbe 0x463955
xor eax, eax
push esi
mov word [edi - 2], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x5c
mov word [edi - 2], cx
cmp eax, 0xffffffff
je 0x463955
test eax, 0x400
je 0x463955
mov byte [ebx], 0
push str.System_Volume_Information_
push esi
call fcn.004e3d6d
add esp, 8
test eax, eax
jne 0x463984
cmp byte [ebx], al
je 0x4639d1
mov ecx, dword [ebp + 0x4024]
test ecx, ecx
je 0x463989
push 1
push 1
push eax
push esi
call fcn.00436c10
test al, al
je 0x463989
mov byte [ebx], 0
jmp 0x4639d1
cmp byte [ebx], 0
je 0x4639d1
push 0x800
lea edx, [esp + 0x60]
push edx
push esi
call fcn.00451e50
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x10]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0x54
mov dword [esp + 0x10], eax
mov dword [esp + 0x50], 1
call fcn.004689f0
mov ecx, 0x5275b8
call fcn.0043d760
pop edi
pop esi
mov ecx, dword [esp + 0x1054]
pop ebp
pop ebx
xor ecx, esp
call fcn.004df824
add esp, 0x1050
ret 4
Function at 0x4640a0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [0x52d848]
push esi
test ecx, ecx
jne 0x4640f9
cmp byte [0x52d844], cl
jne 0x4640f9
push str.Crypt32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x52d840], eax
test eax, eax
je 0x4640ec
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptProtectMemory
push eax
call esi
mov dword [0x52d848], eax
mov eax, dword [0x52d840]
push str.CryptUnprotectMemory
push eax
call esi
mov dword [0x52d84c], eax
mov ecx, dword [0x52d848]
mov byte [0x52d844], 1
mov esi, dword [esp + 0xc]
mov edx, esi
and edx, 0xf
mov eax, esi
sub eax, edx
cmp byte [esp + 0x10], 0
je 0x46414b
test ecx, ecx
je 0x46416a
push 0
push eax
mov eax, dword [esp + 0x10]
push eax
call ecx
test eax, eax
jne 0x46418d
push str.CryptProtectMemory_failed
push 0x5275b8
call fcn.0043d980
add esp, 8
mov ecx, 0x5275b8
call fcn.0043d760
push 2
mov ecx, 0x5275b8
call fcn.0043d5f0
pop esi
ret 0xc
mov ecx, dword [0x52d84c]
test ecx, ecx
je 0x46416a
mov edx, dword [esp + 8]
push 0
push eax
push edx
call ecx
test eax, eax
jne 0x46418d
push str.CryptUnprotectMemory_failed
jmp 0x464124
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
test esi, esi
jbe 0x46418d
mov dl, al
mov eax, dword [esp + 8]
add dl, 0x4b
push ebx
mov bl, dl
add bl, cl
xor byte [ecx + eax], bl
inc ecx
cmp ecx, esi
jb 0x464180
pop ebx
pop esi
ret 0xc

Function at 0x465d40
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret 4

Function at 0x465f70
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
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], ecx
mov dword [eax + 0x24], ecx
ret 4
Function at 0x4664d0
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x13c]
mov ecx, dword [esi + 0x20]
push edi
lea eax, [esi + 0x2c]
push 0
mov dword [esp + 0x14], eax
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x24]
push 8
push eax
push ecx
call fcn.004e07b0
mov edi, dword [esi + 0x20]
and edi, 0x3f
mov byte [edi + esi + 0x2c], 0x80
inc edi
mov ebp, eax
mov ebx, edx
cmp edi, 0x38
je 0x46652a
and edi, 0x3f
jne 0x46651c
push esi
call fcn.00465fc0
mov edx, dword [esp + 0x10]
mov byte [edx + edi], 0
inc edi
cmp edi, 0x38
jne 0x466511
mov eax, ebx
shr eax, 0x18
mov byte [edi + esi + 0x2c], al
shld ebx, ebp, 8
shl ebp, 8
mov ecx, ebx
mov edx, ecx
shr edx, 0x18
mov byte [edi + esi + 0x2d], dl
mov eax, ebp
shld ecx, eax, 8
shl eax, 8
mov edx, ecx
shld ecx, eax, 8
shr edx, 0x18
mov byte [edi + esi + 0x2e], dl
shl eax, 8
mov edx, ecx
shld ecx, eax, 8
shr edx, 0x18
shl eax, 8
mov byte [edi + esi + 0x2f], dl
mov edx, ecx
shld ecx, eax, 8
shr edx, 0x18
shl eax, 8
mov byte [edi + esi + 0x30], dl
mov edx, ecx
shld ecx, eax, 8
shl eax, 8
mov dword [esp + 0x14], eax
mov eax, ecx
shr edx, 0x18
shr eax, 0x18
shr ecx, 0x10
push esi
mov byte [edi + esi + 0x31], dl
mov byte [edi + esi + 0x32], al
mov byte [edi + esi + 0x33], cl
call fcn.00465fc0
mov edi, dword [esp + 0x144]
xor ebp, ebp
xor eax, eax
mov edx, eax
and edx, 3
mov ecx, 3
sub ecx, edx
add ecx, ecx
mov edx, eax
shr edx, 2
mov edx, dword [esi + edx*4]
add ecx, ecx
add ecx, ecx
shr edx, cl
inc eax
mov byte [eax + edi - 1], dl
cmp eax, 0x20
jb 0x4665b3
push 0x20
lea eax, [esp + 0x20]
push eax
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
call fcn.004641a0
push 0x100
lea ecx, [esp + 0x40]
push ecx
call fcn.004641a0
mov edx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
jmp fcn.004641a0

Function at 0x4672c0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
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 0x467313
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push SysReAllocString
push 0xd
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret
Function at 0x467e50
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi], ebp
jbe 0x467ecd
push ebx
push edi
lea ebx, [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x467de0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x467ea8
push str.CreateThread_failed
push 0x5275b8
call fcn.0043d980
add esp, 8
mov ecx, 0x5275b8
call fcn.0043d760
push 2
mov ecx, 0x5275b8
call fcn.0043d5f0
mov dword [ebx], edi
inc dword [esi + 0x84]
mov eax, dword [0x53186c]
test eax, eax
je 0x467ec3
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebp
add ebx, 4
cmp ebp, dword [esi]
jb 0x467e60
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret
Function at 0x46cb10
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
mov esi, dword [esp + 0x418]
push edi
mov ebx, ecx
movzx edi, word [ebx]
sub edi, dword [esi + 0x654]
mov dword [esp + 0x14], ebx
push edi
push esi
call fcn.0046c900
mov dl, byte [esi + 0xa6c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
sub eax, 6
lea ebp, [esp + 0x18]
xor ecx, ecx
lea ecx, [ecx]
movzx ebx, byte [eax + 6]
add eax, 6
cmp byte [ebx + esi + 0x66c], dl
je 0x46cb50
movzx ebx, byte [eax + 1]
mov dword [ebp], eax
add ecx, ebx
add ebp, 4
sub edi, 1
jne 0x46cb50
add dword [esi + 0x4a84], ecx
mov eax, dword [esi + 0x4a78]
xor edx, edx
div dword [esi + 0x4a84]
xor edx, edx
mov edi, eax
mov eax, dword [esi + 0x4a74]
sub eax, dword [esi + 0x4a70]
mov dword [esi + 0x4a78], edi
div edi
mov ebx, dword [esi + 0x4a84]
cmp eax, ebx
jl 0x46cbb6
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x408
ret 4
cmp eax, ecx
mov edx, dword [esp + 0x18]
lea edi, [esp + 0x18]
jge 0x46cc33
movzx ecx, byte [edx + 1]
cmp ecx, eax
jg 0x46cbe0
lea ebx, [ebx]
mov edx, dword [edi + 4]
movzx ebx, byte [edx + 1]
add edi, 4
add ecx, ebx
cmp ecx, eax
jle 0x46cbd0
mov edi, dword [esp + 0x10]
mov dword [esi + 0x4a80], ecx
movzx eax, byte [edx + 1]
sub ecx, eax
mov dword [esi + 0x4a7c], ecx
mov cl, byte [edi + 2]
cmp cl, 7
jae 0x46cc19
add byte [edi + 3], 0xff
jne 0x46cc19
mov ax, word [edi]
add ax, ax
mov word [edi], ax
mov al, 3
shl al, cl
inc cl
mov byte [edi + 2], cl
mov byte [edi + 3], al
mov ecx, dword [esp + 0x14]
push edx
push esi
call fcn.0046c8c0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4
mov edi, dword [esp + 0x14]
mov dword [esi + 0x4a7c], ecx
mov dword [esi + 0x4a80], ebx
movzx ecx, word [edi]
sub ecx, dword [esi + 0x654]
lea eax, [esp + 0x18]
sub eax, 4
mov edx, dword [eax + 4]
movzx edx, byte [edx]
mov bl, byte [esi + 0xa6c]
add eax, 4
sub ecx, 1
mov byte [edx + esi + 0x66c], bl
jne 0x46cc53
mov cx, word [esi + 0x4a84]
mov eax, dword [esp + 0x10]
add word [eax], cx
movzx edx, word [edi]
pop edi
mov dword [esi + 0x654], edx
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4

Function at 0x470480
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4f68be
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x50fb70]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 4], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov byte [esp + 0x10], 1
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov byte [esp + 0x10], 2
mov dword [eax + 0x10], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x14], ecx
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret