joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100062eb
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100062eb
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100062eb
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100062eb
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100062eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100062eb
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100062eb
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100062eb
push 0xd008
push edi
call fcn.100062eb
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100062eb
int3

Function at 0x100062eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x100062fa
pop dword [ebp - 0x30]
mov eax, 0x100062fa
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x38bec
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x6d0b4bbc
add ecx, 0x92f4fb28
xor edx, edx
add edx, eax
mov ebx, 0x10018600
add ebx, dword [ebp - 0x30]
mov edi, 0xc695d0d4
mov dword [ebp - 4], 0x98fc9acd
mov esi, dword [ebx]
add dword [ebp - 0x1c], edi
xor esi, edi
mov dword [ebp - 0x1c], 0x3ce16935
mov dword [edx], esi
add dword [ebp - 0x28], edx
add edx, 0x125c5728
sub edx, 0x125c5724
add ebx, 4
loop 0x10006345
add eax, 0x10e63
xor ebx, ebx
add ebx, eax
add eax, 0x6791b847
add eax, 0x986e47be
mov ecx, 0xf83bfff6
sub ecx, 0xe83bfff6
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x455f46
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4d131c
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x4d1357
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x4d1334
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x4d1373
dec esi
je 0x4d136c
dec esi
jne 0x4d1378
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc

Function at 0x4579a4
Capabilities:
Terminate process

Disassembly:
jmp 0x4e1f90
cmp ecx, dword [0x51d8fc]
jne 0x4e1f99
ret
jmp fcn.004e1fb0

Function at 0x4c8b80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x51d8fc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xac], ecx
mov ecx, dword [ebp - 0xac]
call fcn.00456784
mov eax, dword [ebp - 0xac]
mov dword [eax], 0x3c
mov ecx, dword [ebp - 0xac]
mov dword [ecx + 8], 0x400000
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax + 8]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0xac]
mov byte [edx + 0xc], 0
push 0x94
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.00457fe9
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x4c8c22
cmp dword [ebp - 0x9c], 5
jb 0x4c8c20
mov edx, dword [ebp - 0xac]
mov byte [edx + 0xc], 1
jmp 0x4c8c50
cmp dword [ebp - 0x90], 1
jne 0x4c8c50
cmp dword [ebp - 0x9c], 4
ja 0x4c8c46
cmp dword [ebp - 0x9c], 4
jne 0x4c8c50
cmp dword [ebp - 0x98], 0
jbe 0x4c8c50
mov eax, dword [ebp - 0xac]
mov byte [eax + 0xc], 1
mov ecx, dword [ebp - 0xac]
mov dword [ecx + 0x10], 0x710
mov edx, dword [ebp - 0xac]
mov dword [edx + 0x14], 0x5107b8
mov ecx, dword [ebp - 0xac]
add ecx, 0x18
call fcn.00458b01
test eax, eax
jge 0x4c8cd2
push str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
push 0
mov ecx, 0x51ed60
call fcn.00457701
push eax
push 0x3c
push 0x5107c8
lea ecx, [ebp - 0xa8]
call fcn.00456f0e
push eax
call fcn.0045664e
add esp, 0x10
xor eax, eax
jne 0x4c8ccb
push 0x51081c
push 0
push 0x3d
push 0x510820
push 2
call fcn.00455a6e
add esp, 0x14
cmp eax, 1
jne 0x4c8ccb
int3
mov byte [0x51ec64], 1
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 4]
call fcn.004579a4
mov esp, ebp
pop ebp
ret
Function at 0x4de990
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, 4
call fcn.004d6c80
mov dword [ebp - 0x64], esp
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x10], eax
push 0x1c
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4de9c4
xor eax, eax
jmp 0x4dead2
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
sub eax, 1
not eax
and eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x520704]
sub ecx, 1
neg ecx
sbb ecx, ecx
and ecx, 0xfffffff1
add ecx, 0x11
imul ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x60]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 8]
jae 0x4dea17
xor eax, eax
jmp 0x4dead2
cmp dword [0x520704], 1
je 0x4dea9d
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
push 0x1c
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4dea41
xor eax, eax
jmp 0x4dead2
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x48]
and ecx, 0x1000
je 0x4dea26
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x44]
and eax, 0x100
je 0x4dea6c
mov eax, 1
jmp 0x4dead2
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x5c]
jae 0x4dea78
xor eax, eax
jmp 0x4dead2
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp - 8]
jae 0x4dea86
mov eax, dword [ebp - 8]
mov dword [ebp - 0x5c], eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
jmp 0x4deaa3
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
mov ecx, dword [0x520704]
sub ecx, 1
neg ecx
sbb ecx, ecx
and ecx, 0x103
add ecx, 1
mov dword [ebp - 4], ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x64]
mov esp, ebp
pop ebp
ret
Function at 0x4e1eb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x4e1ed6
xor eax, eax
jmp 0x4e1f5d
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4550
je 0x4e1ef1
xor eax, eax
jmp 0x4e1f5d
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0x10b
je 0x4e1f17
cmp dword [ebp - 0x14], 0x20b
je 0x4e1f37
jmp 0x4e1f5b
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x5c], 0xe
ja 0x4e1f24
xor eax, eax
jmp 0x4e1f5d
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0xd0], 0
setne cl
mov eax, ecx
jmp 0x4e1f5d
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x6c], 0xe
ja 0x4e1f4a
xor eax, eax
jmp 0x4e1f5d
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp dword [ecx + 0xe0], 0
setne al
jmp 0x4e1f5d
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4e70d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5149c8
push 0x45802a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
call fcn.0045697d
mov dword [ebp - 4], 0
cmp dword [0x520744], 1
jne 0x4e7119
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x520740], 1
mov cl, byte [ebp + 0x10]
mov byte [0x52073c], cl
cmp dword [ebp + 0xc], 0
jne 0x4e717e
cmp dword [0x523b74], 0
je 0x4e716c
mov edx, dword [0x523b70]
sub edx, 4
mov dword [0x523b70], edx
mov eax, dword [0x523b70]
cmp eax, dword [0x523b74]
jb 0x4e716c
mov ecx, dword [0x523b70]
cmp dword [ecx], 0
je 0x4e716a
mov edx, dword [0x523b70]
call dword [edx]
jmp 0x4e713b
push 0x51cd14
push 0x51cb0c
call fcn.004e72f0
add esp, 8
push 0x51d020
push 0x51ce18
call fcn.004e72f0
add esp, 8
cmp dword [0x520748], 0
jne 0x4e71b7
push 0xffffffffffffffff
call fcn.00457edb
add esp, 4
and eax, 0x20
je 0x4e71b7
mov dword [0x520748], 1
call fcn.00458d95
mov dword [ebp - 4], 0xffffffff
call fcn.004e71c5
jmp 0x4e71d1
cmp dword [ebp + 0x10], 0
je 0x4e71d9
jmp 0x4e71ef
mov dword [0x520744], 1
mov eax, dword [ebp + 8]
push eax
call fcn.004582f5
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x60514d0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x60514ec
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
je 0x60514ec
mov dword [esi], 0
push 0xf0000000
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
pop esi
test eax, eax
je 0x6051506
xor eax, eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x6051518
movzx eax, ax
or eax, 0x80070000
ret

Function at 0x6051520
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x613b150]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x605154e
mov eax, 0x8007139f
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.060eb877
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 4]
push ebx
lea ebx, [edi + 4]
test eax, eax
je 0x605156a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
je 0x605156a
mov dword [ebx], 0
push esi
sub esp, 8
mov ecx, edi
call fcn.06051970
lea esi, [edi + 0x28]
xorps xmm0, xmm0
movq qword [esi], xmm0
movq qword [esi + 8], xmm0
movq qword [esi + 0x10], xmm0
push str.sha256
movq qword [esi + 0x18], xmm0
call fcn.06055f20
add esp, 4
test eax, eax
jne 0x60515a6
mov eax, 0x80004005
jmp 0x60515b4
push eax
lea ecx, [edi + 8]
mov edx, esi
call fcn.06052810
add esp, 4
mov edx, 0x10
lea ecx, [edi + 8]
lea esp, [esp]
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec edx
jne 0x60515c0
test eax, eax
js 0x6051657
movq xmm0, qword [esi]
movq qword [ebp - 0x14], xmm0
movq xmm0, qword [esi + 8]
mov dword [ebp - 0x20], 0x208
mov dword [ebp - 0x1c], 0x660e
mov dword [ebp - 0x18], 0x10
movq qword [ebp - 0xc], xmm0
mov eax, 0x20
mov edi, edi
mov byte [esi], 0
lea esi, [esi + 1]
dec eax
jne 0x6051600
push ebx
push 1
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov edx, 0x1c
lea ecx, [ebp - 0x20]
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec edx
jne 0x6051623
test eax, eax
jne 0x6051655
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x6051657
pop esi
movzx eax, ax
pop ebx
or eax, 0x80070000
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.060eb877
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.060eb877
mov esp, ebp
pop ebp
ret 8
Function at 0x6052dd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88c
mov eax, dword [0x613b150]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
push edi
cmp ax, word [0x613ff10]
je 0x6052eb8
push 3
lea eax, [ebp - 0x888]
push 0x613fb00
lea ecx, [ebp - 0x88c]
mov dword [ebp - 0x88c], eax
call fcn.06051ae0
sub esp, 0x84
mov edi, esp
push dword [0x613ff00]
lea eax, [ebp - 0x804]
push str.__xml_version_1.0__encoding_UTF_8____r_n_Status_ExitCode__d__Description__s___
push 0x800
mov ecx, 0x21
lea esi, [ebp - 0x88c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.06055bc0
mov eax, dword [ebp - 0x88c]
lea ecx, [ebp - 0x888]
add esp, 0x94
cmp eax, ecx
je 0x6052e62
push eax
call fcn.060ebabe
add esp, 4
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x613ff10
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x6052eb8
lea ecx, [ebp - 0x804]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6052e90
push 0
lea eax, [ebp - 0x808]
push eax
sub ecx, edx
push ecx
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.060eb877
mov esp, ebp
pop ebp
ret

Function at 0x6052f10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x613b150]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x44
lea eax, [ebp - 0x50]
push 0
push eax
mov esi, ecx
mov dword [ebp - 8], 0xffffffff
call fcn.060eefa0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
xorps xmm0, xmm0
push esi
push 0
mov dword [ebp - 0x50], 0x44
movq qword [ebp - 0x60], xmm0
movq qword [ebp - 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x6052f8a
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.060eb877
mov esp, ebp
pop ebp
ret
push 0x493e0
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x5c]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.060eb877
mov esp, ebp
pop ebp
ret
Function at 0x6053120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x613b150]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
mov esi, edx
call fcn.060eefa0
push 1
push 0x613292c
push 0x613f700
mov dword [ebp - 0x408], 0x400
call fcn.060eda85
add esp, 0x18
lea eax, [ebp - 0x40c]
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x60531ee
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push 0
push edi
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x60531ee
lea eax, [ebp - 0x404]
push eax
push 0x200
push 0x613f700
call fcn.060ed36a
add esp, 0xc
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 0x613f700
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.060eb877
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 0x613292c
pop esi
call fcn.060eb877
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x613b150]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.060eefa0
push 0x104
lea eax, [ebp - 0x20c]
push 0x6140528
push eax
call fcn.060eda85
push str.SepManagementClient.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.060ed2fe
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 4]
cmp eax, 0xffffffff
setne al
xor ecx, ebp
call fcn.060eb877
mov esp, ebp
pop ebp
ret
Function at 0x6053340
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1244
call fcn.060ee370
mov eax, dword [0x613b150]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1008]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov byte [ebp - 0x1240], 0
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x605338b
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.060eb877
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1008]
push ebx
push esi
shr eax, 2
push edi
xor edi, edi
mov dword [ebp - 0x1244], eax
test eax, eax
je 0x60534ca
jmp 0x60533b0
mov esi, dword [ebp + edi*4 - 0x1004]
test esi, esi
je 0x60534b1
movq xmm0, qword [str._unknown_]
mov eax, dword [0x6132f00]
push 0x1f4
mov dword [ebp - 0x1204], eax
movq qword [ebp - 0x1214], xmm0
movq xmm0, qword [0x6132ef8]
lea eax, [ebp - 0x1200]
push 0
push eax
movq qword [ebp - 0x120c], xmm0
call fcn.060eefa0
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x6053448
lea eax, [ebp - 0x100c]
push eax
push 4
lea eax, [ebp - 0x123c]
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x6053448
push 0x104
lea eax, [ebp - 0x1214]
push eax
push dword [ebp - 0x123c]
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
lea eax, [ebp - 0x1214]
push eax
mov esi, str.smc.exe
call fcn.060edc65
add esp, 4
lea esp, [esp]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x6053486
test cx, cx
je 0x6053482
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x6053486
add eax, 4
add esi, 4
test cx, cx
jne 0x6053460
xor eax, eax
jmp 0x605348b
sbb eax, eax
or eax, 1
mov ecx, dword [ebp - 0x1240]
movzx ecx, cl
test eax, eax
mov eax, 1
cmove ecx, eax
push ebx
mov dword [ebp - 0x1240], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1244]
inc edi
cmp edi, eax
jb 0x60533b0
mov ebx, dword [ebp - 0x1240]
test bl, bl
jne 0x6053573
jmp 0x60534d0
mov ebx, dword [ebp - 0x1240]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x1238]
push eax
push edi
mov dword [ebp - 0x1238], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x605356c
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov edi, edi
lea eax, [ebp - 0x1214]
push eax
mov esi, str.smc.exe
call fcn.060edc65
add esp, 4
mov cx, word [eax]
cmp cx, word [esi]
jne 0x605353a
test cx, cx
je 0x6053536
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x605353a
add eax, 4
add esi, 4
test cx, cx
jne 0x6053514
xor ecx, ecx
jmp 0x605353f
sbb ecx, ecx
or ecx, 1
mov eax, dword [ebp - 0x1240]
movzx eax, al
test ecx, ecx
mov ecx, 1
cmove eax, ecx
mov byte [ebp - 0x1240], al
lea eax, [ebp - 0x1238]
push eax
push edi
call ebx
test eax, eax
jne 0x6053500
mov ebx, dword [ebp - 0x1240]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.060eb877
mov esp, ebp
pop ebp
ret
Function at 0x6053590
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x613b150]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.060eefa0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push 0x6140528
push eax
call fcn.060eda85
add esp, 0xc
lea eax, [ebp - 0x210]
push str.SepManagementClient.dll
push 0x104
push eax
call fcn.060ed2fe
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6053621
call fcn.060538a0
test al, al
je 0x6053621
call fcn.06053290
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.060eb877
mov esp, ebp
pop ebp
ret
call fcn.06053340
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.060eb877
mov esp, ebp
pop ebp
ret
Function at 0x60581d0
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x60
push 0
push esi
call fcn.060eefa0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov eax, 1
pop esi
ret

Function at 0x60582f0
Capabilities:
Hash data using sha224

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.060eefa0
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov dword [esi + 8], 0x3070dd17
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
mov eax, 1
pop esi
ret

Function at 0x6058630
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.060eefa0
add esp, 0xc
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 + 0x6c], 0x20
mov eax, 1
pop esi
ret