joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ad10
Capabilities:
Get file version info

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481888
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x4ac084]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
movq qword [ecx], xmm0
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x44ae2d
xor esi, esi
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
test edi, edi
je 0x44adab
push edi
lea ecx, [ebp - 0x2c]
call fcn.004289f0
test al, al
je 0x44ada8
call fcn.00404570
mov esi, dword [ebp - 0x2c]
push esi
push edi
push 0
push dword [ebp - 0x34]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x44ae1c
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 0x4913ac
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x44ae1c
cmp dword [ebp - 0x18], 0x34
jne 0x44ae1c
mov ecx, dword [ebp - 0x30]
cmp dword [ecx], 0xfeef04bd
jne 0x44ae1c
mov edx, dword [ebp - 0x38]
mov edi, 1
movzx eax, word [ecx + 0xa]
mov word [edx], ax
movzx eax, word [ecx + 8]
mov word [edx + 2], ax
movzx eax, word [ecx + 0xe]
mov word [edx + 4], ax
movzx eax, word [ecx + 0xc]
mov word [edx + 6], ax
jmp 0x44ae1e
xor edi, edi
test esi, esi
je 0x44ae2b
push esi
call fcn.00461787
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00458d41
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x44b790
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4ac084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], edi
mov eax, dword [esi]
mov edx, dword [eax - 8]
add edx, edx
mov dword [ebp - 8], edx
shr edx, 1
js 0x44b8ab
mov ebx, 1
mov ecx, ebx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x44b7d9
push edx
mov ecx, esi
call fcn.00403880
push 0
lea eax, [ebp - 8]
push eax
push dword [esi]
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x44b85e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x7a
je 0x44b823
call edi
test eax, eax
jle 0x44b898
pop edi
movzx eax, ax
pop esi
or eax, 0x80070000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458d41
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 8]
shr ecx, 1
js 0x44b8b5
mov eax, dword [esi]
sub ebx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, ecx
or ebx, eax
jge 0x44b844
push ecx
mov ecx, esi
call fcn.00403880
push 0
lea eax, [ebp - 8]
push eax
push dword [esi]
push 0
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x44b7fe
mov ecx, dword [ebp - 8]
shr ecx, 1
cmp ecx, 0xffffffff
jne 0x44b880
mov eax, dword [esi]
test eax, eax
jne 0x44b872
xor ecx, ecx
jmp 0x44b884
push dword [eax - 8]
push eax
call fcn.0045ed24
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x44b8ab
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x44b8ab
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00458d41
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.004039a0
push 0x80070057
call fcn.004039a0
int3

Function at 0x44bcf0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4819b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ac084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push edi
push 0x491d78
push 3
push 0
push 0x4836c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [edi + 8], eax
test eax, eax
js 0x44bda3
mov eax, dword [edi]
push 0x49c5d8
mov dword [ebp - 0x10], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x44bd59
push 0x8007000e
call fcn.004039a0
mov ecx, dword [ebp - 0x10]
lea ebx, [edi + 4]
push ebx
push 0
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 4], 0
mov eax, dword [ecx]
push esi
push ecx
call dword [eax + 0xc]
push esi
mov dword [edi + 8], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [edi + 8], 0
jl 0x44bda3
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebx]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [edi + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4578f0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482a50
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4ac084]
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 edi, ecx
call fcn.00403450
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x457939
push 0x80004005
call fcn.004039a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
push dword [edi + 0x40]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
call fcn.00403ac0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x24], 0
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov ebx, eax
test ebx, ebx
js 0x457a05
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov ebx, eax
test ebx, ebx
js 0x457a05
push dword [ebp - 0x24]
lea ecx, [ebp - 0x28]
call fcn.00408350
test eax, eax
je 0x457a05
push dword [ebp - 0x24]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
mov eax, dword [edi + 0x34]
dec eax
push eax
call fcn.00457d70
mov esi, dword [ebp - 0x2c]
mov edi, eax
test edi, edi
js 0x457a21
push 1
push dword [ebp - 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4579e4
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4579e4
xor edi, edi
jmp 0x457a21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x4579e0
cmp edi, 3
je 0x4579e0
test edi, edi
jle 0x457a21
movzx edi, di
or edi, 0x80070000
jmp 0x457a21
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x457a13
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, 0x80000000
mov edi, 0x80040104
cmovne edi, ebx
mov edx, dword [ebp - 0x28]
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x457a42
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x457a5e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.00458d41
mov esp, ebp
pop ebp
ret
Function at 0x457a80
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482a90
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4ac084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.00403450
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x457ac9
push 0x80004005
call fcn.004039a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
call fcn.00403450
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x457af7
push 0x80004005
call fcn.004039a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004578f0
mov ecx, dword [ebp - 0x10]
mov edi, eax
mov ebx, dword [ecx + 0x34]
dec ebx
test ebx, ebx
jle 0x457b87
nop dword [eax]
lea edx, [ebp - 0x18]
lea eax, [ebx - 1]
push edx
push eax
mov dword [ebp - 0x1c], eax
call fcn.00457d70
mov esi, dword [ebp - 0x18]
mov edi, eax
test edi, edi
js 0x457b7d
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.00457d70
mov edi, eax
test edi, edi
js 0x457b7d
push 1
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x457b7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x457b7d
cmp eax, 3
je 0x457b7d
test eax, eax
jg 0x457b74
mov edi, eax
jmp 0x457b7d
movzx edi, ax
or edi, 0x80070000
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
test ebx, ebx
jg 0x457b20
mov edx, dword [ebp - 0x14]
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x457ba8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x457bc4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4582f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482b40
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4ac084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
call fcn.00403450
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x45833b
push 0x80004005
call fcn.004039a0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
movq qword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x1c], 0
call fcn.00458b60
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00457a80
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 0
call fcn.00457d70
mov edi, eax
test edi, edi
js 0x4583f2
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.004576a0
mov edi, eax
test edi, edi
js 0x4583f2
push 0
push 0x80000080
push 2
lea ecx, [ebp - 0x34]
call fcn.00458bf0
mov esi, dword [ebp - 0x14]
push eax
push 5
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x44], eax
cmp eax, 0xffffffff
je 0x4583f5
cmp dword [ecx + 0x30], 0
jne 0x4583ee
push 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push 2
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0xfeff
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
jmp 0x458410
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
js 0x458410
test eax, eax
jg 0x458407
mov edi, eax
jmp 0x458410
movzx edi, ax
or edi, 0x80070000
lea ecx, [ebp - 0x34]
call fcn.00458b90
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x458437
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.00458d41
mov esp, ebp
pop ebp
ret
Function at 0x458560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4ac084]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x44], 0xffffffff
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
jne 0x458593
mov eax, 0x80040101
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458d41
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x458610
test ebx, ebx
je 0x458610
push esi
xor esi, esi
mov dword [ebp - 8], esi
test edi, edi
je 0x4585d6
nop dword [eax]
push 0
lea eax, [ebp - 8]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + esi]
push eax
push dword [ecx + 0x44]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4585eb
add esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp esi, edi
jb 0x4585b0
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458d41
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4585d8
pop esi
movzx eax, ax
pop edi
or eax, 0x80070000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458d41
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, 0x80070057
pop edi
xor ecx, ebp
pop ebx
call fcn.00458d41
mov esp, ebp
pop ebp
ret 8

Function at 0x4586a0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
push edi
push 0
push 2
push 5
mov esi, ecx
call fcn.004589f0
add esp, 0xc
mov ecx, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
test al, al
mov edi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
cmove edi, ecx
push 0
push 0x18
push edi
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x45870d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4586f8
push 8
push 0x18
push edi
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x45870d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], 0
test eax, eax
jle 0x45870f
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
ret
xor eax, eax
pop edi
pop esi
ret
Function at 0x458720
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482b70
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4ac084]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, ecx
mov dword [ebp - 0x24], edx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
test edi, edi
je 0x458859
test esi, esi
je 0x458859
test ebx, ebx
je 0x458859
cmp dword [edi], 0
je 0x458852
mov eax, dword [esi]
test eax, eax
je 0x458852
mov ecx, dword [ebx]
test ecx, ecx
je 0x458852
push ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 1
push 0
push dword [edx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x4587d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], 0
test eax, eax
jle 0x45885e
movzx eax, ax
or eax, 0x80070000
jmp 0x45885e
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebx]
jbe 0x45881b
push eax
mov dword [ebp - 4], 0
call fcn.00459284
add esp, 4
mov dword [ebp - 0x1c], eax
push dword [esi]
push dword [edi]
push dword [ebp - 0x18]
push eax
call fcn.00458ac0
mov esi, dword [edi]
push esi
call fcn.00458d52
add esp, 0x14
test esi, esi
je 0x45880e
mov dword [edi], 0x8123
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
push dword [ebx]
mov eax, dword [ebp - 0x24]
push esi
push dword [edi]
push 0
push 1
push 0
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x45884e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4587bd
xor eax, eax
jmp 0x45885e
mov eax, 0x80070057
jmp 0x45885e
mov eax, 0x80004003
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00458d41
mov esp, ebp
pop ebp
ret 0xc
Function at 0x458880
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
test edi, edi
je 0x458980
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x458980
push esi
lea ecx, [eax + 8]
mov dword [edi], 0
push ecx
push 1
push 0x660e
push dword [eax]
xor esi, esi
mov dword [ebp - 8], ecx
mov dword [ebp + 0xc], esi
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x458913
mov eax, dword [ebp - 4]
push ebx
push esi
push 0x40
push 1
push dword [eax + 4]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x458913
push dword [ebx]
lea ecx, [ebp + 0xc]
call fcn.00402d50
mov esi, dword [ebp + 0xc]
test al, al
jne 0x4588fa
mov edi, 0x8007000e
jmp 0x458928
mov eax, dword [ebp - 4]
push ebx
push esi
push 0x40
push 1
push dword [eax + 4]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
jne 0x458964
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x458928
movzx edi, di
or edi, 0x80070000
mov eax, dword [ebp - 8]
mov eax, dword [eax]
test eax, eax
je 0x458941
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 8]
mov dword [eax], 0
mov eax, dword [ebp + 8]
push esi
mov dword [eax], 0
mov dword [ebx], 0
call fcn.00458d52
add esp, 4
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, esi
xor esi, esi
mov dword [edi], eax
xor edi, edi
push esi
call fcn.00458d52
add esp, 4
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, 0x80004003
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x474634
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004742f4

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x21a22c56
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x2b643915
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0x45
mov dword [ebp - 8], 0x500e
movzx eax, byte [0x5d3008]
sub eax, 0x44a74
mov word [0x5d300c], ax
mov ecx, dword [ebp + 8]
sub ecx, 0xeb7f
movzx edx, word [0x5d300c]
sub ecx, edx
add ecx, dword [0x5d3020]
add ecx, dword [0x5d3020]
mov dword [0x5d3020], ecx
movzx eax, word [0x5d300c]
add eax, 0x45
sub eax, dword [ebp - 0xc]
mov dword [0x5d3020], eax
mov ecx, dword [ebp + 0xc]
mov dword [0x5eca8c], ecx
push 0x5eb288
mov edx, dword [0x5d3084]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [0x5eca8c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx edx, word [0x5d300c]
imul edx, edx, 3
add edx, dword [ebp - 0xc]
mov dword [0x5d3020], edx
push 0x5eb2c0
push 0x537
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [0x5d3020], eax
movzx eax, byte [0x5d3008]
imul eax, dword [ebp - 0xc]
add eax, dword [ebp - 0xc]
mov byte [0x5d3008], al
mov ecx, dword [ebp - 0xc]
add ecx, 0xf
movzx edx, byte [0x5d3008]
sub ecx, edx
mov word [0x5d300c], cx
movzx eax, word [0x5d300c]
imul eax, eax, 3
add eax, dword [ebp - 0xc]
mov byte [0x5d3008], al
mov ecx, dword [0x5d3020]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx*2]
movzx ecx, word [0x5d300c]
or al, 0x30
pop ebp
add byte [ebx], ch
enter 0xffffffffffff8966, 0xd
or al, 0x30
pop ebp
add byte [edi], cl
mov bh, 0x15
or al, 0x30
pop ebp
add byte [ebx + 0x4c8d0845], cl
add al, bh

Function at 0x54aff0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 3
mov dword [ebp - 4], 5
movzx eax, word [0x5d300c]
mov ecx, dword [0x5d3068]
lea edx, [ecx + eax*2]
mov eax, dword [0x5d3068]
sub eax, edx
mov dword [0x5d3068], eax
mov dword [ebp - 4], 0x132
mov ecx, dword [0x5d3068]
imul ecx, ecx, 3
movzx edx, byte [0x5d3008]
add ecx, edx
mov word [0x5d300c], cx
mov eax, dword [0x5d3068]
add eax, 0x45
movzx ecx, word [0x5d300c]
sub eax, ecx
mov dword [ebp - 8], eax
movzx edx, byte [0x5d3008]
push edx
call fcn.0054a730
add esp, 4
mov word [0x5d300c], ax
movzx eax, word [0x5d300c]
imul eax, dword [0x5d3068]
movzx ecx, byte [0x5d3008]
add eax, ecx
mov word [0x5d300c], ax
push 0x5d54a0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 8], eax
movzx eax, word [0x5d300c]
add eax, dword [0x5d3068]
mov ecx, dword [ebp - 8]
lea edx, [eax + ecx - 0x39]
mov dword [0x5d3068], edx
mov eax, dword [0x5d3068]
sub eax, 0xeb7f
movzx ecx, word [0x5d300c]
sub eax, ecx
add eax, dword [ebp - 4]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
movzx eax, word [0x5d300c]
mov esp, ebp
pop ebp
ret
Function at 0x54b260
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5d4020]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x24], 7
mov eax, dword [0x5d3068]
imul eax, eax, 3
add eax, dword [0x5d3004]
mov word [0x5d300c], ax
mov ecx, dword [0x5d3068]
imul ecx, dword [0x5d3024]
movzx edx, word [0x5d300c]
add ecx, edx
mov dword [0x5d3024], ecx
movzx eax, word [ebp - 0x24]
movzx ecx, word [0x5d300c]
imul eax, ecx
add eax, dword [0x5d3068]
mov word [0x5d300c], ax
movzx edx, byte [0x5d3008]
push edx
call fcn.0054a730
add esp, 4
mov word [0x5d300c], ax
movzx eax, word [0x5d300c]
add eax, 0xf
sub eax, dword [0x5d3024]
mov dword [0x5d3068], eax
push 0x537
push 0x5eb2c0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [0x5d3024], eax
movzx ecx, word [ebp - 0x24]
movzx edx, word [0x5d300c]
imul ecx, edx
add ecx, dword [0x5d3068]
mov word [0x5d300c], cx
push 0x5cc7a8
push 0x5d54a0
mov ax, word [0x5d300c]
push eax
mov ecx, dword [0x5d3024]
push ecx
push 0x5cc7ac
push 0x5ecb68
call fcn.0054d450
add esp, 8
mov ecx, eax
call fcn.0054ba20
mov ecx, eax
call fcn.0054b810
push eax
call fcn.0054d450
add esp, 8
push eax
call fcn.0054d8a0
add esp, 8
push str.Mind_B
lea ecx, [ebp - 0x20]
call fcn.0054bc30
mov edx, dword [0x5d3024]
imul edx, dword [0x5d3068]
add edx, dword [0x5d3004]
mov dword [0x5d3068], edx
push 0x537
push 0x5eb2c0
push str.loud
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movzx eax, word [ebp - 0x24]
imul eax, eax, 3
add eax, dword [0x5d3068]
mov word [0x5d300c], ax
movzx ecx, word [0x5d300c]
add ecx, 3
movzx edx, word [ebp - 0x24]
sub ecx, edx
mov byte [0x5d3008], cl
mov eax, dword [0x5d3024]
add eax, 0x45
sub eax, dword [0x5d3004]
mov dword [0x5d3068], eax
mov ecx, dword [0x5d3004]
sub ecx, 0xeb7f
movzx edx, word [0x5d300c]
sub ecx, edx
add ecx, dword [0x5d3068]
add ecx, dword [0x5d3068]
mov dword [0x5d3068], ecx
movzx eax, word [ebp - 0x24]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x20]
call fcn.0054bc70
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553edc
mov esp, ebp
pop ebp
ret