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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49867b
mov eax, dword fs:[0]
push eax
mov eax, 0x10034
call fcn.00466610
mov eax, dword [0x4c6190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10020], edx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10024], ecx
mov ecx, dword [edx + 8]
or ecx, 0x20019
mov dword [ebp - 0x10014], 0
cmp dword [eax + 0x14], 8
jb 0x451f83
mov eax, dword [eax]
lea edi, [ebp - 0x10014]
push edi
push ecx
push 0
push eax
push dword [edx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x10014]
mov dword [ebp - 0x10040], ecx
mov dword [ebp - 4], 0
test ecx, ecx
je 0x4520f9
push esi
push dword [esi + 4]
push dword [esi]
call fcn.00401cb0
mov eax, dword [esi]
add esp, 0xc
mov dword [esi + 4], eax
xor edi, edi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10018]
mov dword [ebp - 0x10018], 0x7fff
push eax
lea eax, [ebp - 0x10010]
push eax
push edi
push dword [ebp - 0x10014]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x1001c], eax
test eax, eax
jne 0x4520d0
mov dword [ebp - 0x1003c], eax
push dword [ebp - 0x10018]
mov dword [ebp - 0x1002c], eax
lea ecx, [ebp - 0x1003c]
mov word [ebp - 0x1003c], ax
mov byte [ebp - 4], al
lea eax, [ebp - 0x10010]
push eax
mov dword [ebp - 0x10028], 7
call fcn.00402010
mov eax, dword [esi + 4]
mov byte [ebp - 4], 2
cmp eax, dword [esi + 8]
je 0x452071
movups xmm0, xmmword [ebp - 0x1003c]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1002c]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov ecx, 7
add dword [esi + 4], 0x18
mov word [ebp - 0x1003c], ax
jmp 0x452086
lea ecx, [ebp - 0x1003c]
push ecx
push eax
mov ecx, esi
call fcn.00409d80
mov ecx, dword [ebp - 0x10028]
mov byte [ebp - 4], 0
cmp ecx, 8
jb 0x4520ca
mov edx, dword [ebp - 0x1003c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4520ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x452172
push ecx
push edx
call fcn.00465ef5
add esp, 8
inc edi
jmp 0x451fc7
mov eax, dword [ebp - 0x1001c]
inc edi
test eax, eax
je 0x451fc7
cmp eax, 0x103
je 0x45210f
push esi
push dword [esi + 4]
push dword [esi]
call fcn.00401cb0
mov eax, dword [esi]
add esp, 0xc
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x1001c]
mov ecx, dword [ebp - 0x10020]
push eax
push dword [ebp - 0x10024]
call fcn.0044f5e0
xor esi, esi
jmp 0x452142
mov eax, dword [ebp - 0x10020]
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 0x10024]
test eax, eax
je 0x45212c
mov dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
imul ecx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, dword [ebp - 0x10014]
test eax, eax
je 0x452153
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.00465ee7
mov esp, ebp
pop ebp
ret 0xc
call fcn.00469eed
int3
Function at 0x4526a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4c6190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov edx, dword [eax + 8]
push esi
or edx, 0x20019
mov dword [ebp - 0x14], eax
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x4526d9
mov ecx, dword [ecx]
lea esi, [ebp - 0x10]
push esi
push edx
push 0
push ecx
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x45271f
cmp dword [ebx + 0x14], 8
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
jb 0x452707
mov ebx, dword [ebx]
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45272d
mov ecx, dword [ebp - 0x14]
push eax
push edi
call fcn.0044f5e0
xor edi, edi
jmp 0x452744
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], 0
test edi, edi
je 0x452741
mov dword [edi], 0
mov edi, dword [ebp - 8]
test esi, esi
je 0x45274f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465ee7
mov esp, ebp
pop ebp
ret 0xc

Function at 0x452a60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4c6190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov edx, dword [eax + 8]
push esi
or edx, 2
mov dword [ebp - 0xc], eax
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 0x14]
jb 0x452a96
mov ecx, dword [ecx]
lea esi, [ebp - 8]
push esi
push edx
push 0
push ecx
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 8]
test esi, esi
je 0x452acc
cmp dword [ebx + 0x14], 8
jb 0x452ab6
mov ebx, dword [ebx]
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x452ada
mov ecx, dword [ebp - 0xc]
push eax
push edi
call fcn.0044f5e0
mov bl, al
jmp 0x452af0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], 0
test edi, edi
je 0x452aee
mov dword [edi], 0
mov bl, 1
test esi, esi
je 0x452afb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465ee7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4532a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4c6190]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov edx, dword [ecx + 8]
push esi
or edx, 2
mov dword [ebp - 0xc], ecx
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 8], 0
jb 0x4532da
mov eax, dword [eax]
lea esi, [ebp - 8]
push esi
push edx
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 8]
test esi, esi
je 0x453321
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
lea ecx, [eax*2 + 2]
jb 0x453304
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 8
jb 0x45330f
mov eax, dword [eax]
push ecx
push ebx
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x45332f
mov ecx, dword [ebp - 0xc]
push eax
push edi
call fcn.0044f5e0
mov bl, al
jmp 0x453345
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], 0
test edi, edi
je 0x453343
mov dword [edi], 0
mov bl, 1
test esi, esi
je 0x453350
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465ee7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x453370
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4987bd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4c6190]
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, dword [ebp + 8]
mov dword [ebp - 0x28], 0
xor edx, edx
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov word [ebp - 0x28], cx
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 4], 1
cmp eax, 8
lea ecx, [ebp - 0x28]
mov eax, esi
cmovae ecx, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x4533d8
mov eax, dword [esi]
push edx
push ecx
push eax
call edi
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jbe 0x4533f9
sub eax, ecx
lea ecx, [ebp - 0x28]
push 0
push eax
call fcn.0040ed20
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
jmp 0x4533c4
test eax, eax
jne 0x453416
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
jmp 0x453440
lea edx, [eax - 1]
cmp edx, ecx
ja 0x453433
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edx
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax + edx*2], cx
jmp 0x453440
sub edx, ecx
lea ecx, [ebp - 0x28]
push 0
push edx
call fcn.0040ed20
movups xmm0, xmmword [ebp - 0x28]
movq xmm1, qword [esi + 0x10]
movups xmm2, xmmword [esi]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [ebp - 0x30], xmm1
mov ecx, dword [ebp - 0x2c]
movq qword [esi + 0x10], xmm0
movq qword [ebp - 0x18], xmm1
movups xmmword [ebp - 0x40], xmm2
movups xmmword [ebp - 0x28], xmm2
cmp ecx, 8
jb 0x4534a1
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x453497
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4534bc
push ecx
push edx
call fcn.00465ef5
add esp, 8
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.00465ee7
mov esp, ebp
pop ebp
ret
call fcn.00469eed
int3
Function at 0x454f60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498b0e
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4c6190]
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
mov dword [ebp - 0x3c], edi
mov esi, dword [ebp + 0x14]
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov edx, dword [esi + 0x10]
mov eax, dword [ebp + 0xc]
add edx, dword [ebx + 0x10]
mov dword [ebp - 0x30], eax
xor eax, eax
add edx, 0x32
mov dword [ebp - 0x38], ebx
push 0
setb al
mov dword [ebp - 0x34], esi
neg eax
or eax, edx
push eax
call fcn.004134d0
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x454fd7
mov esi, dword [esi]
mov dword [ebp - 0x34], esi
cmp dword [ebx + 0x14], 0x10
jb 0x454fe2
mov ebx, dword [ebx]
mov dword [ebp - 0x38], ebx
mov eax, dword [edi]
mov ecx, edi
push dword [ebp - 0x2c]
call dword [eax + 0x24]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
push dword [ebp - 0x38]
cmp dword [ebp - 0x14], 0x10
push dword [ebp - 0x2c]
movzx ebx, word [edi + 0xa]
push dword [ebp - 0x40]
movzx esi, word [edi + 8]
movzx edx, word [edi + 6]
movzx ecx, word [edi + 2]
push eax
movzx eax, word [edi + 0xe]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x30]
movzx eax, word [edi + 0xc]
mov dword [ebp - 0x48], eax
push dword [ebp - 0x48]
movzx eax, word [edi]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
push ebx
push esi
push edx
push ecx
push eax
push 0x49b178
push 0xffffffffffffffff
push dword [ebp - 0x18]
push edi
call fcn.00455830
add esp, 0x40
test eax, eax
jle 0x4550cf
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
ja 0x455077
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
cmovae ecx, dword [ebp - 0x28]
mov byte [ecx + eax], 0
jmp 0x455084
sub eax, ecx
lea ecx, [ebp - 0x28]
push 0
push eax
call fcn.0040c260
mov edi, dword [ebp - 0x3c]
cmp byte [edi + 8], 0
je 0x45509f
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea esi, [edi + 0x10]
push esi
mov dword [ebp - 0x3c], esi
call fcn.00465199
add esp, 4
test eax, eax
jne 0x45511d
mov ecx, dword [edi + 0x40]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x4550c6
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
call dword [eax + 0x14]
push esi
call fcn.004651aa
add esp, 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4550ff
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4550f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x455123
push ecx
push edx
call fcn.00465ef5
add esp, 8
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.00465ee7
mov esp, ebp
pop ebp
ret 0x10
push eax
call fcn.004653e9
call fcn.00469eed
int3
Function at 0x45597e
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x4c6190]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
call eax
test al, al
je 0x4559ae
push 0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push dword [esp + 0x20]
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.00465ee7
add esp, 8
ret 8

Function at 0x455a7e
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x40
mov eax, dword [0x4c6190]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
mov esi, ecx
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
call eax
test al, al
je 0x455b06
push 0x34
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00468120
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x455ab6
cmp dword [esp + 0x34], 1
ja 0x455b06
xor eax, eax
push eax
mov word [esp + 8], ax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 2
lea eax, [esp + 0x10]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x455af4
cmp dword [esp + 8], 2
jne 0x455af4
mov ax, word [esp + 4]
cmp al, 0xff
jne 0x455af4
cmp ah, 0xfe
jne 0x455af4
mov byte [esi + 4], 0
mov al, 1
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00465ee7
add esp, 0x40
ret
mov ecx, dword [esp + 0x40]
xor al, al
pop esi
xor ecx, esp
call fcn.00465ee7
add esp, 0x40
ret
Function at 0x455bd0
Capabilities:
Check if file exists
Create directory
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498c6d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c6190]
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
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov bl, 1
mov eax, dword [ebp + 0x10]
mov ecx, edi
push 0x5c
mov dword [ebp - 0x2c], eax
call fcn.00455e50
mov esi, eax
mov dword [ebp - 0x28], 0
push esi
push 0
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 4], 0xffffffff
call fcn.00410100
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x455c74
test eax, 0x400
je 0x455c91
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x455d20
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x2c]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x455d20
cmp esi, 0xffffffff
jne 0x455c9a
xor bl, bl
jmp 0x455cde
mov eax, dword [edi + 0x10]
inc esi
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x455ca8
mov edx, dword [edi]
cmp esi, eax
jae 0x455cdb
sub eax, esi
lea ecx, [edx + esi*2]
mov esi, 0
je 0x455cd1
cmp word [ecx], 0x5c
je 0x455ccf
nop
cmp eax, 1
je 0x455cd1
add ecx, 2
dec eax
cmp word [ecx], 0x5c
jne 0x455cc0
mov esi, ecx
test esi, esi
je 0x455cdb
sub esi, edx
sar esi, 1
jmp 0x455cde
or esi, 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x455d14
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x455d0a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x455d48
push ecx
push edx
call fcn.00465ef5
add esp, 8
test bl, bl
jne 0x455c14
mov al, 1
jmp 0x455d2a
lea ecx, [ebp - 0x28]
call fcn.004022e0
xor al, al
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.00465ee7
mov esp, ebp
pop ebp
ret 0xc
call fcn.00469eed
int3
Function at 0x4577f0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
xor esi, esi
cmp byte [esp + 0x14], 0
push edi
mov edi, dword [esp + 0x14]
je 0x457843
test edi, edi
je 0x457843
push 0xc
push esi
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x457843
push 0
lea eax, [esi + 4]
mov dword [esi + 4], 0
push eax
push 1
push 0x49b390
mov dword [esi], 0xc
mov dword [esi + 8], 0
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
jne 0x457871
test edi, edi
je 0x457871
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x457871
push edi
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov ebx, eax
test esi, esi
je 0x4578a7
mov edi, dword [esi + 4]
test edi, edi
je 0x457899
call ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push eax
call edi
push esi
push 0
call ebp
push eax
call edi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call ebp
push eax
call edi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x458130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4991ea
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4c6190]
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, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp dword [ecx + 0x14], 8
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], eax
jb 0x4581ac
mov ecx, dword [ecx]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x18]
or eax, 1
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4582a8
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, edi
jb 0x4581d9
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x458202
cmp eax, 2
jne 0x45829f
cmp ecx, 0xea
jne 0x45829f
mov eax, dword [ebp - 0x14]
mov ecx, esi
inc eax
push 0
shr eax, 1
push eax
call fcn.0040ec90
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x458228
mov eax, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x458230
mov edi, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x458289
push eax
mov eax, dword [ebp - 0x14]
mov ecx, esi
shr eax, 1
push eax
call fcn.0040ec90
mov eax, dword [esi + 0x10]
test eax, eax
je 0x45829f
mov edx, dword [esi + 0x14]
mov ecx, esi
cmp edx, 8
jb 0x45826a
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], 0
jne 0x45829f
lea ecx, [eax - 1]
mov eax, esi
cmp edx, 8
jb 0x45827e
mov eax, dword [esi]
xor edx, edx
mov dword [esi + 0x10], ecx
mov word [eax + ecx*2], dx
jmp 0x45829f
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x458293
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.00465ee7
mov esp, ebp
pop ebp
ret
Function at 0x4582d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
mov eax, dword [0x4c6190]
xor eax, esp
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x24]
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 8], 0
mov dword [esp + 0xc], edi
jb 0x458304
mov ecx, dword [ecx]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x30]
or eax, 1
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45836d
cmp dword [esi + 0x14], 8
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
jb 0x458333
mov esi, dword [esi]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push esi
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x458363
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x10], 4
cmovne eax, edi
mov dword [esp + 0xc], eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.00465ee7
add esp, 0x14
ret

Function at 0x4587f0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x4c6190]
xor eax, esp
mov dword [esp + 0x10], eax
lea eax, [esp]
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 dword [esp + 4], eax
test eax, eax
je 0x458861
lea eax, [esp + 4]
push eax
push dword [esp + 4]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [esp]
neg eax
sbb eax, eax
and dword [esp + 8], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
test eax, eax
mov ecx, dword [esp + 0x10]
setne al
xor ecx, esp
call fcn.00465ee7
add esp, 0x14
ret
Function at 0x45d370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4c6190]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4c8605], 0
jne 0x45d3f8
push 0x49b788
lea ecx, [ebp - 0x28]
call fcn.00401a50
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 0
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 0
push ecx
push 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], 4
cmovae eax, dword [ebp - 0x28]
push 0x49b804
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x45d3e9
cmp dword [ebp - 8], 4
jne 0x45d3e9
cmp dword [ebp - 0xc], eax
sete byte [0x4c8604]
lea ecx, [ebp - 0x28]
mov byte [0x4c8605], 1
call fcn.004022e0
mov ecx, dword [ebp - 4]
mov al, byte [0x4c8604]
xor ecx, ebp
call fcn.00465ee7
mov esp, ebp
pop ebp
ret

Function at 0x45d670
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
cmp dword [ebx + 4], 0
je 0x45d737
push 0
call fcn.004597f0
test al, al
je 0x45d737
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebx + 4]
mov edi, eax
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x45d6d5
push 0
push 0xf120
push 0x112
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push edi
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
push esi
call edi
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebx + 4]
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [ebx + 4]
call esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetActiveWindow]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret