joyce8/EMBER2024-capa huggingface dataset:
Function at 0x563910
Capabilities:
Write file on windows

Disassembly:
push 0x28
mov eax, 0x6a5f54
call fcn.0056e2a9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x30], esi
xor ecx, ecx
mov ebx, ecx
test eax, eax
je 0x563a5e
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x2c], cl
mov dword [ebp - 4], ecx
push ecx
push ecx
push esi
call fcn.00563a69
add esp, 0xc
test eax, eax
je 0x563963
cmp dword [eax + 0x14], 7
jne 0x563963
xor edi, edi
jmp 0x5639ac
mov byte [ebp - 4], 1
mov edi, dword [esi + 0x18]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push str.xml_version_1.0__encoding_utf_8__standalone_yes_
lea ecx, [esi + 0x30]
call fcn.0041ca69
push eax
push 7
lea ecx, [esi + 0x30]
call fcn.0041c9c6
push eax
push edi
mov esi, dword [ebp - 0x30]
mov ecx, esi
call fcn.0050595c
xor edi, edi
push edi
push edi
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0049a103
add esp, 0x14
mov dword [ebp - 4], edi
push edi
push 0x80000080
push 2
push edi
push 1
push 0xc0000000
push dword [ebp - 0x34]
call fcn.005654e9
add esp, 0x1c
mov esi, eax
cmp esi, 0xffffffff
je 0x563a23
mov dword [ebp - 0x30], edi
mov word [ebp - 0x34], 0xbbef
mov byte [ebp - 0x32], 0xbf
push edi
lea eax, [ebp - 0x30]
push eax
push 3
lea eax, [ebp - 0x34]
push eax
push esi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
test eax, eax
je 0x563a10
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
push ecx
lea ecx, [ebp - 0x30]
push ecx
push dword [ebp - 0x1c]
push eax
push esi
call edi
test eax, eax
jne 0x563a18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x563a2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041c86a
jmp 0x563a61
push 0x57
pop ebx
mov eax, ebx
call fcn.0056e1f6
ret

Function at 0x564e5d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x783760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.00644240
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
neg eax
pop esi
call fcn.0056e1bf
mov esp, ebp
pop ebp
ret
Function at 0x564fd6
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x783760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
xor esi, esi
push eax
push 0x28
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x56504e
push edi
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push esi
push dword [ebp - 0x18]
xor edi, edi
inc edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x56504d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
cmovne esi, edi
pop edi
cmp dword [ebp - 0x18], 0
je 0x56505d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0056e1bf
mov esp, ebp
pop ebp
ret

Function at 0x5650c3
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0056e5a0
mov eax, dword [0x783760]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov word [ebp - 0x1008], 0x500
mov dword [ebp - 0x100c], ebx
test eax, eax
je 0x5650fb
mov dword [ebp - 0x1010], eax
jmp 0x565122
lea eax, [ebp - 0x1010]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x5651ba
mov eax, dword [ebp - 0x1010]
lea ecx, [ebp - 0x1018]
push ecx
push 0x1000
lea ecx, [ebp - 0x1004]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x1010]
test eax, eax
jne 0x565150
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5651ba
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1014]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x5651ba
push esi
mov esi, ebx
cmp dword [ebp - 0x1004], ebx
jbe 0x5651ad
push dword [ebp + esi*8 - 0x1000]
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x5651aa
inc esi
cmp esi, dword [ebp - 0x1004]
jb 0x565188
jmp 0x5651ad
xor ebx, ebx
inc ebx
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0056e1bf
mov esp, ebp
pop ebp
ret
Function at 0x5651cb
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0056e5a0
mov eax, dword [0x783760]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov word [ebp - 0x1008], 0x500
mov dword [ebp - 0x100c], ebx
test eax, eax
je 0x565203
mov dword [ebp - 0x1010], eax
jmp 0x56522a
lea eax, [ebp - 0x1010]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x5652c2
mov eax, dword [ebp - 0x1010]
lea ecx, [ebp - 0x1018]
push ecx
push 0x1000
lea ecx, [ebp - 0x1004]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x1010]
test eax, eax
jne 0x565258
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5652c2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1014]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x222
push 0x20
push 2
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x5652c2
push esi
mov esi, ebx
cmp dword [ebp - 0x1004], ebx
jbe 0x5652b5
push dword [ebp + esi*8 - 0x1000]
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x5652b2
inc esi
cmp esi, dword [ebp - 0x1004]
jb 0x565290
jmp 0x5652b5
xor ebx, ebx
inc ebx
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0056e1bf
mov esp, ebp
pop ebp
ret

Function at 0x5652d3
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x783760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x565321
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeDebugPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x565332
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0056e1bf
mov esp, ebp
pop ebp
ret
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
jmp 0x565323

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5657fa
test al, 0x10
jne 0x5657fa
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x5657fe
Capabilities:
Get session user name

Disassembly:
push 4
mov eax, 0x6a62f5
call fcn.0056e207
mov eax, dword fs:[0x2c]
xor esi, esi
mov ecx, dword [0x7e8494]
mov ebx, 0x7e7f70
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7e7f8c]
cmp eax, dword [ecx + 4]
jle 0x565867
mov edi, 0x7e7f8c
push edi
call fcn.0056e069
cmp dword [0x7e7f8c], 0xffffffff
pop ecx
jne 0x565867
mov dword [ebp - 4], esi
mov ecx, ebx
push 0x700d94
call fcn.0041d41a
push 0x6ac1d5
call fcn.0056e584
or dword [ebp - 4], 0xffffffff
push edi
call fcn.0056e02a
pop ecx
pop ecx
push 0x700d98
mov ecx, ebx
mov dword [ebp - 0x10], esi
call fcn.004179fb
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x10]
push eax
push esi
call edi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5658c0
xor ecx, ecx
inc eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056e306
mov esi, eax
pop ecx
test esi, esi
je 0x5658c0
lea eax, [ebp - 0x10]
push eax
push esi
call edi
test eax, eax
je 0x5658b9
push esi
mov ecx, ebx
call fcn.004179fb
push esi
call fcn.0056e30f
pop ecx
cmp dword [0x7e7f88], 8
mov eax, 0x7e7f74
cmovae eax, dword [0x7e7f74]
call fcn.0056e1d0
ret
Function at 0x5679a1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x783760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x134], esi
test esi, esi
je 0x567ae9
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_SetActiveWindow]
push esi
call edi
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0x43
mov esi, eax
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [ebp - 0x134]
shr esi, 3
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp - 0x134]
call ebx
mov ebx, dword [ebp - 0x134]
push ebx
call edi
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
and esi, 1
jne 0x567a2e
push 0x43
xor edi, edi
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x567a30
xor edi, edi
mov esi, 0x11c
lea eax, [ebp - 0x130]
push esi
push edi
push eax
call fcn.00644240
add esp, 0xc
mov dword [ebp - 0x130], esi
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x12c], 0xa
jae 0x567ae7
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ebx, dword [sym.imp.USER32.dll_ShowCursor]
push edi
call ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.USER32.dll_SetCursorPos]
add eax, 0xa
push eax
mov eax, dword [ebp - 0x14]
add eax, 0xa
push eax
call edi
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.USER32.dll_mouse_event]
add eax, 0xa
push 0
push 0
push eax
mov eax, dword [ebp - 0x14]
add eax, 0xa
push eax
push 0x8002
call esi
mov eax, dword [ebp - 0x10]
push 0
push 0
add eax, 0xa
push eax
mov eax, dword [ebp - 0x14]
add eax, 0xa
push eax
push 0x8004
call esi
push dword [ebp - 0x134]
push dword [ebp - 0x138]
call edi
push 1
call ebx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0056e1bf
mov esp, ebp
pop ebp
ret

Function at 0x567af8
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x6a65ad
call fcn.0056e207
push 0x1c
call fcn.0056def4
pop ecx
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 4], esi
test eax, eax
je 0x567b24
push dword [ebp + 8]
mov ecx, eax
call fcn.0041d41a
jmp 0x567b26
mov eax, esi
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x567b45
push esi
push esi
push eax
push 0x567b4b
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0056e1d0
ret
Function at 0x567f8c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
je 0x567fbf
cmp dword [ebp - 8], 2
je 0x567fbf
cmp dword [ebp - 8], 7
jne 0x568002
cmp dword [ebp - 4], esi
je 0x568002
push edi
push dword [ebp - 4]
call fcn.0056e306
mov edi, eax
pop ecx
test edi, edi
je 0x568001
lea eax, [ebp - 4]
push eax
push edi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x567ff7
mov ecx, dword [ebp + 0x10]
push edi
call fcn.004041d0
xor esi, esi
inc esi
push 1
push edi
call fcn.0056df27
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x56805a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x6a6605
call fcn.0056e207
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x1c]
push 0x4000
call fcn.0041f109
mov esi, dword [ebp - 0x18]
sub esi, dword [ebp - 0x1c]
sar esi, 1
lea eax, [esi + esi]
push eax
push edi
push dword [ebp - 0x1c]
call fcn.00644240
add esp, 0xc
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x10]
push edi
push edi
push dword [ebp + 0x14]
push edi
push eax
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x5680c5
push dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
call fcn.004041d0
inc edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0041f0e1
mov eax, edi
call fcn.0056e1d0
ret
Function at 0x5681ad
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0x228
mov eax, 0x6a662b
call fcn.0056e23b
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x22c]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x234], ebx
call fcn.004173bc
mov dword [ebp - 4], esi
lea eax, [ebp - 0x22c]
push ebx
push edi
push 0x701080
push eax
call fcn.0041ccda
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
push 0xf003f
cmovae eax, dword [ebp - 0x228]
push eax
call fcn.00567b83
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
add esp, 0x18
test edi, edi
je 0x568263
jmp 0x568248
cmp dword [ebp - 0x214], 8
lea ecx, [ebp - 0x210]
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push ecx
push eax
call fcn.005681ad
pop ecx
pop ecx
test eax, eax
je 0x5682a7
push 0x100
lea eax, [ebp - 0x210]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x568221
push edi
call ebx
push 0xf003f
push dword [ebp - 0x230]
call fcn.00567b83
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x568290
push dword [ebp - 0x234]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
push edi
sbb esi, esi
inc esi
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.0041786a
mov eax, esi
call fcn.0056e1e5
ret
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x568290

Function at 0x568312
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 3
push dword [ebp + 8]
xor esi, esi
call fcn.00567b83
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x568355
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 5
je 0x56834e
xor ecx, ecx
inc ecx
cmp eax, 2
cmovne esi, ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5683cc
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xc
mov eax, 0x6a665b
call fcn.0056e207
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x18]
push 0x100
call fcn.0041f109
mov esi, dword [ebp - 0x14]
sub esi, dword [ebp - 0x18]
sar esi, 1
lea eax, [esi + esi]
push eax
push ebx
push dword [ebp - 0x18]
call fcn.00644240
add esp, 0xc
push esi
push dword [ebp - 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ecx, dword [ebp + 0x10]
mov esi, eax
test esi, esi
jne 0x568429
push dword [ebp - 0x18]
jmp 0x56842e
push 0x701484
call fcn.004179fb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041f0e1
mov eax, esi
call fcn.0056e1d0
ret
Function at 0x568447
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x6a667e
call fcn.0056e207
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1c]
push 0x4000
call fcn.0041f109
mov esi, dword [ebp - 0x18]
sub esi, dword [ebp - 0x1c]
sar esi, 1
lea eax, [esi + esi]
push eax
push ebx
push dword [ebp - 0x1c]
call fcn.00644240
add esp, 0xc
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x10]
push ebx
push ebx
push dword [ebp + 0x14]
push ebx
push eax
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ecx, dword [ebp + 0x10]
mov esi, eax
test esi, esi
jne 0x5684b5
push dword [ebp - 0x1c]
call fcn.004041d0
jmp 0x5684c0
push ebx
push 0x701488
call fcn.004044d0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0041f0e1
mov eax, esi
call fcn.0056e1d0
ret

Function at 0x568736
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x568749
xor eax, eax
jmp 0x568817
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005688e6
test eax, eax
je 0x568742
push ebx
mov ecx, esi
call fcn.00568972
mov ebx, eax
test ebx, ebx
je 0x568816
push edi
push 0x40
push 0x3000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x568809
push dword [ebp + 8]
mov ecx, esi
push edi
call fcn.005689d5
mov eax, dword [esi + 0x10]
cmp dword [eax + 0xa0], 0
jbe 0x5687ad
cmp dword [eax + 0xa4], 0
jbe 0x5687ad
push edi
mov ecx, esi
call fcn.00568bf9
push edi
mov ecx, esi
call fcn.00568a6b
test eax, eax
jne 0x5687c8
push 0x8000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x568809
lea eax, [ebp + 8]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 0x10]
xor ebx, ebx
push ebx
push 1
push edi
mov dword [eax + 0x34], edi
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x28]
add eax, edi
mov dword [esi + 4], eax
call eax
test eax, eax
jne 0x56880d
push ebx
push ebx
push edi
call dword [esi + 4]
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 4], ebx
xor eax, eax
jmp 0x568815
xor eax, eax
mov dword [esi + 8], edi
inc eax
mov dword [esi], eax
pop edi
pop ebx
pop esi
pop ebp
ret 8
Function at 0x5688e6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], 0x40
push edi
mov edi, ecx
jb 0x56896a
mov edx, dword [ebp + 8]
mov eax, 0x5a4d
mov dword [edi + 0xc], edx
cmp word [edx], ax
jne 0x56896a
mov ecx, dword [edx + 0x3c]
lea eax, [ecx + 0xf8]
cmp dword [ebp + 0xc], eax
jb 0x56896a
add ecx, edx
mov dword [edi + 0x10], ecx
cmp dword [ecx], 0x4550
jne 0x56896a
mov ax, word [ecx + 0x16]
mov edx, 0x2002
and ax, dx
cmp ax, dx
jne 0x56896a
mov eax, 0xe0
cmp word [ecx + 0x14], ax
jne 0x56896a
mov eax, dword [edi + 0x10]
add ecx, 0xf8
mov dword [edi + 0x14], ecx
mov edx, esi
movzx edi, word [eax + 6]
test edi, edi
je 0x568967
add ecx, 0x10
mov eax, dword [ecx + 4]
add eax, dword [ecx]
cmp eax, dword [ebp + 0xc]
ja 0x56896a
inc edx
add ecx, 0x28
cmp edx, edi
jl 0x568955
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x569d29
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push dword [ebp + 8]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
call fcn.0056a265
mov edi, eax
test edi, edi
je 0x569dfd
push esi
push 0xa8
push 0x701740
push 1
push edi
call fcn.0056f19a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x569dfc
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0056a140
test eax, eax
je 0x569df2
cmp edi, 0x10
jne 0x569d9d
mov edx, dword [ebp + 0x14]
mov ecx, esi
push 8
sub edx, esi
pop edi
mov al, byte [ecx + 8]
xor al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
sub edi, 1
jne 0x569d8d
jmp 0x569def
cmp edi, 0x20
jne 0x569dc1
mov edx, dword [ebp + 0x14]
lea ecx, [esi + 0x10]
push 8
pop edi
mov al, byte [ecx - 0x10]
xor al, byte [ecx - 8]
xor al, byte [ecx + 8]
xor al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
sub edi, 1
jne 0x569dab
jmp 0x569def
cmp edi, 0x40
jne 0x569def
mov edx, dword [ebp + 0x14]
lea ecx, [esi + 0x30]
push 8
pop edi
mov al, byte [ecx - 0x30]
xor al, byte [ecx - 0x28]
xor al, byte [ecx - 0x20]
xor al, byte [ecx - 0x18]
xor al, byte [ecx - 0x10]
xor al, byte [ecx - 8]
xor al, byte [ecx + 8]
xor al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
sub edi, 1
jne 0x569dcf
xor ebx, ebx
inc ebx
push 1
push esi
call fcn.0056df27
pop ecx
pop ecx
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x569ec1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [ebp + 8]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
call fcn.0056a265
mov esi, eax
test esi, esi
je 0x569f7b
push edi
push 0xf3
push 0x701768
push 1
push esi
call fcn.0056f19a
mov edi, eax
add esp, 0x10
test edi, edi
je 0x569f7a
push esi
push edi
call fcn.0059e3f3
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0056a140
test eax, eax
je 0x569f70
cmp esi, 0x10
jne 0x569f42
push esi
mov esi, dword [ebp + 0x14]
push edi
push esi
call fcn.00643300
mov ecx, dword [ebp - 4]
lea eax, [esi + 0x10]
add esp, 0xc
push eax
push 0x10
push esi
push dword [ebp + 8]
call fcn.0056a140
jmp 0x569f6d
push 0x20
cmp esi, 0x40
jne 0x569f61
mov edx, dword [ebp + 0x14]
mov ecx, edi
sub edx, edi
pop esi
mov al, byte [ecx + 0x20]
xor al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
sub esi, 1
jne 0x569f51
jmp 0x569f6d
push edi
push dword [ebp + 0x14]
call fcn.00643300
add esp, 0xc
xor ebx, ebx
inc ebx
push 1
push edi
call fcn.0056df27
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x58cf9f
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [ebp + 8]
xor esi, esi
call fcn.00647fd1
pop ecx
lea ebx, [eax*2 + 2]
test ebx, ebx
je 0x58d01b
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x58d01b
push edi
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x58d014
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
test eax, eax
je 0x58d014
push ebx
push dword [ebp + 8]
push eax
call fcn.00643300
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret