joyce8/EMBER2024-capa huggingface dataset:
Function at 0x535c40
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x5e30a4]
push ebp
push esi
push edi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x80]
mov esi, ecx
mov ecx, dword [esp + 0x7c]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, esi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
call fcn.00535ab0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00535b70
xor ebp, ebp
lea ecx, [ecx]
movzx edx, byte [esp + ebp + 0xc]
push edx
lea eax, [esp + 0x84]
push 0x571a3c
push eax
call fcn.00553270
lea eax, [esp + 0x8c]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x535cd4
mov edi, 0x75e6c0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x535ce5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebp
cmp ebp, 0x10
rep movsb byte es:[edi], byte [esi]
jl 0x535cb0
mov ecx, dword [esp + 0x74]
pop edi
pop esi
mov eax, 0x75e6c0
pop ebp
call fcn.0055613e
add esp, 0x6c
ret 8

Function at 0x535d20
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x5e30a4]
mov dword [esp + 0x58], eax
xor eax, eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
mov esi, ecx
mov ecx, dword [esp + 0x64]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
mov ecx, esi
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
call fcn.00535ab0
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 4]
push eax
push ecx
mov ecx, esi
call fcn.00535b70
mov ecx, dword [esp + 0x5c]
pop esi
call fcn.0055613e
add esp, 0x5c
ret 0xc
Function at 0x537120
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5e30a4]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
mov edi, dword [esp + 0x224]
push edi
push ebp
mov dword [esp + 0x220], eax
lea eax, [esp + 0x20]
push str._s_s
push eax
mov ebx, ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x28]
push ecx
call fcn.004bcf00
add esp, 0x14
push 0
push 0
push 3
push 0
push 1
push closesocket
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5371ca
push edi
push ebp
lea eax, [esp + 0x20]
push 0x5857a8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x28]
push ecx
call fcn.004bcf00
add esp, 0x14
push 0
push 0
push 3
push 0
push 1
push closesocket
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5371ca
xor al, al
jmp 0x537244
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [esp + 0x10]
shl edi, 0x10
or edi, eax
push edi
call fcn.0054bf29
add esp, 4
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
push eax
push esi
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test esi, esi
je 0x537206
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebx + 4]
push edi
push edx
mov ecx, ebx
call fcn.00535c40
movzx ecx, byte [esp + 0x228]
imul ecx, ecx, 0x21
lea edx, [ecx + ebx + 8]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x537221
mov eax, dword [ebx + 4]
test eax, eax
je 0x537242
push eax
call fcn.005543c2
add esp, 4
mov dword [ebx + 4], 0
mov al, 1
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0055613e
add esp, 0x20c
ret 0xc
Function at 0x537260
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x5e30a4]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x114], eax
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SoftwareSoftnyxGunboundWC
push reloc.WS2_32.dll_bind
mov ebx, ecx
call esi
test eax, eax
jne 0x5372ce
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.Location
push ecx
mov dword [esp + 0x24], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5372ff
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SoftwareSoftnyxGunboundWC
push reloc.WS2_32.dll_getsockname
call esi
test eax, eax
je 0x537298
mov ax, word [0x58652c]
mov cl, byte [0x58652e]
mov word [esp + 0x14], ax
mov byte [esp + 0x16], cl
push 0
push 0x571aa8
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.00537120
test al, al
jne 0x53732d
pop esi
pop ebx
mov ecx, dword [esp + 0x10c]
call fcn.0055613e
add esp, 0x110
ret 4
push 0x21
call fcn.0054bf29
mov dword [ebx + 4], eax
add esp, 4
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
lea eax, [ebx + 8]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x537358
push edi
mov edi, dword [ebx + 4]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x537366
mov edx, dword [esp + 0x120]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
push 0x20
push eax
mov ecx, ebx
call fcn.00535d20
mov eax, dword [ebx + 4]
test eax, eax
pop edi
je 0x5373a9
push eax
call fcn.005543c2
add esp, 4
mov dword [ebx + 4], 0
mov ecx, dword [esp + 0x114]
pop esi
mov al, 1
pop ebx
call fcn.0055613e
add esp, 0x110
ret 4
Function at 0x54c278
Capabilities:
Clear file content
Encode data using xor
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5658c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x11b4]
mov dword [esp + 0x14], 1
call fcn.00551460
lea ecx, [esi + 0x105c]
mov byte [esp + 0x14], 0
call fcn.00552580
add esi, 0x20
mov dword [esp + 4], esi
mov eax, dword [esi]
mov dword [esp + 0x14], 2
cmp eax, 0xffffffff
je 0x54c3ef
push ebp
push edi
lea edi, [esi + 0x101c]
push edi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x1034]
test eax, eax
je 0x54c2e4
mov ecx, dword [esi + 0x1038]
cmp ecx, eax
mov eax, 0x5e066c
ja 0x54c2e9
mov eax, 0x884cdc
push eax
xor eax, eax
mov ax, word [esi + 0x102a]
xor ecx, ecx
mov cx, word [esi + 0x1028]
push eax
xor edx, edx
xor eax, eax
mov dx, word [esi + 0x1026]
mov ax, word [esi + 0x1024]
push ecx
push edx
xor ecx, ecx
push eax
mov cx, word [esi + 0x1022]
xor edx, edx
mov dx, word [esi + 0x101e]
xor eax, eax
mov ax, word [edi]
push ecx
push edx
push eax
push 0x5e0614
lea ebp, [esi + 0x1c]
call fcn.00552c30
add esp, 4
push eax
push ebp
call fcn.00553270
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0x28
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x1030]
not ecx
dec ecx
test eax, eax
je 0x54c387
test ecx, ecx
jle 0x54c3b7
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x1030]
add edx, 2
mov dword [esi + 0x1030], edx
add dl, 0x43
xor byte [eax], dl
inc eax
lea edx, [edi + eax]
cmp edx, ecx
jl 0x54c369
jmp 0x54c3b7
test ecx, ecx
jle 0x54c3b7
mov edi, 0xffffffe4
push ebx
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x102c]
lea edx, [edx + edx*2 + 1]
mov dword [esi + 0x102c], edx
mov bl, byte [eax]
add dl, 0x76
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [eax + edi]
cmp edx, ecx
jl 0x54c395
pop ebx
cmp dword [esi + 0x1034], 0x3e7
je 0x54c3d5
lea eax, [esp + 0x10]
push 0
push eax
push ecx
mov ecx, dword [esi]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi], 0xffffffff
pop ebp
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x54dea0
Capabilities:
Check for software breakpoints
Encode data using xor
Write file on windows

Disassembly:
mov eax, 0x1008
call fcn.005574a0
push ebx
push esi
mov esi, dword [esp + 0x1014]
cmp dword [esi], 0xffffffff
je 0x54e025
mov eax, dword [esi + 0x1034]
test eax, eax
je 0x54dee7
mov ecx, dword [esp + 0x1018]
cmp byte [ecx], 0x21
je 0x54dee7
mov ecx, dword [esi + 0x1038]
cmp ecx, eax
ja 0x54e025
inc ecx
mov dword [esi + 0x1038], ecx
lea ebx, [esi + 4]
push ebx
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1018]
lea edx, [esp + 0x101c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00554d83
add esp, 0xc
lea edx, [esi + 0x101c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, fcn.00553270
cmp byte [eax], 0xcc
je 0x54e01e
mov ecx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ecx], 0xcc
je 0x54e01e
xor eax, eax
push ebp
mov ax, word [esi + 0x102a]
lea edx, [esp + 0x14]
push edi
push edx
xor ecx, ecx
push eax
mov cx, word [esi + 0x1028]
xor edx, edx
mov dx, word [esi + 0x1026]
xor eax, eax
mov ax, word [esi + 0x1024]
push ecx
push edx
push eax
push 0x5e0d6c
lea ebp, [esi + 0x1c]
call fcn.00552c30
add esp, 4
push eax
push ebp
call fcn.00553270
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x1030]
not ecx
dec ecx
test eax, eax
je 0x54dfce
test ecx, ecx
jle 0x54dff8
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, 2
mov ebx, dword [esi + 0x1030]
add ebx, edx
mov dword [esi + 0x1030], ebx
add bl, 0x43
xor byte [eax], bl
inc eax
lea ebx, [edi + eax]
cmp ebx, ecx
jl 0x54dfad
mov ebx, dword [esp + 0x10]
jmp 0x54dff8
test ecx, ecx
jle 0x54dff8
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x102c]
lea edx, [edx + edx*2 + 1]
mov dword [esi + 0x102c], edx
add dl, 0x76
xor byte [eax], dl
inc eax
lea edx, [eax + edi]
cmp edx, ecx
jl 0x54dfdb
lea eax, [esp + 0x14]
push 0
push eax
push ecx
mov ecx, dword [esi]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
add esp, 0x1008
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
xor al, al
pop ebx
add esp, 0x1008
ret
Function at 0x54e0e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push ebp
push esi
lea eax, [esp + 8]
push edi
mov ebp, ecx
push eax
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x5e0e2c
call fcn.00552ca0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x5e0e18
mov esi, eax
call fcn.00552ca0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
push eax
push esi
call edi
test eax, eax
je 0x54e169
push 0x5e0e00
call fcn.00552ca0
add esp, 4
push eax
push esi
call edi
test eax, eax
je 0x54e169
mov eax, dword [esp + 0x10]
cmp eax, 5
jb 0x54e156
jne 0x54e16d
cmp dword [esp + 0x14], 1
jae 0x54e16d
pop edi
mov byte [ebp + 0x127c], 1
pop esi
mov al, 1
pop ebp
add esp, 0x94
ret
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x1c], 2
jne 0x54e1a3
cmp eax, 5
mov byte [0x884ca2], 1
jne 0x54e197
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x54e197
mov ecx, dword [0x5e05fc]
lea edx, [ecx + ecx]
mov dword [0x5e05fc], edx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x94
ret
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x94
ret
Function at 0x54e650
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x1c]
test al, al
jne 0x54e65e
mov al, 1
pop esi
ret
push edi
push 0x5e0ff8
lea edi, [esi + 0x20]
call fcn.00552ca0
push eax
push edi
call fcn.0054dea0
mov ecx, dword [esi + 0x11fc]
lea eax, [esi + 0x1228]
push eax
push ecx
call dword [esi + 0x1284]
mov eax, dword [esi + 0x14]
add esp, 0x14
test eax, eax
mov byte [esi + 0x1c], 0
je 0x54e69c
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x1224]
push 0x7d0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x54e6d8
push 0x5e0fe0
call fcn.00552ca0
push eax
push edi
call fcn.0054dea0
mov eax, dword [esi + 0x1224]
add esp, 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x1224]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1220]
test eax, eax
je 0x54e6f6
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x5e0fcc
mov dword [esi + 0x1280], 0
mov dword [esi + 0x1284], 0
call fcn.00552ca0
push eax
push edi
call fcn.0054dea0
add esp, 0xc
mov al, 1
pop edi
pop esi
ret

Function at 0x54e820
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x54e86b
push edi
push edi
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x54e86b
lea edi, [esp + 0x10]
push 0x5e1050
call fcn.00552ca0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
add esp, 4
push eax
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x54e8d3
push 0x5e1044
call fcn.00552ca0
add esp, 4
push eax
push esi
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x54e8d3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push 0x5e1020
call fcn.00552ca0
add esp, 4
add ebp, 0x20
push eax
push ebp
call fcn.0054dea0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x54e8f3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x54e919
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 4
Function at 0x54e930
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x54e97b
push edi
push edi
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x54e97b
lea edi, [esp + 0x10]
push 0x5e0e60
call fcn.00552ca0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
add esp, 4
push eax
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x54e9e3
push 0x5e0e54
call fcn.00552ca0
add esp, 4
push eax
push esi
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x54e9e3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push 0x5e1080
call fcn.00552ca0
add esp, 4
add ebp, 0x20
push eax
push ebp
call fcn.0054dea0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x54ea2d
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x54ea2d
push 0x5e1064
call fcn.00552ca0
add ebp, 0x20
push eax
push ebp
call fcn.0054dea0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 4

Function at 0x54ea50
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [0x884ca1]
test al, al
je 0x54ea63
xor eax, eax
mov esp, ebp
pop ebp
ret
mov al, byte [ecx + 0x1269]
mov dword [ebp - 4], 0
test al, al
je 0x54ea8b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov al, byte fs:[0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x54fcd0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5658fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
call fcn.00553100
mov ebx, dword [esp + 0x430]
lea eax, [esp + 8]
push eax
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x430], 0
call fcn.00553150
test al, al
jne 0x54fd72
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov eax, dword [0x884ca4]
test eax, eax
je 0x54fd72
push esi
mov esi, dword [esp + 0x420]
call edi
push eax
push esi
push ebx
push 0x5e1780
call fcn.00552ca0
mov ecx, dword [0x884ca4]
add esp, 4
add ecx, 0x20
push eax
push ecx
call fcn.0054dea0
add esp, 0x14
pop esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x5e174c
call fcn.00552ca0
add esp, 4
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
pop ebx
test eax, eax
jne 0x54fe19
cmp dword [esp + 0xc], 2
jne 0x54fdd9
mov eax, dword [esp + 0x42c]
lea ecx, [esp + 0x10]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0
push eax
call fcn.00552ca0
mov ecx, dword [esp + 0x1c]
add esp, 4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
mov ecx, dword [esp + 4]
cmp eax, ecx
je 0x54fe48
mov edx, dword [0x884ca4]
test edx, edx
je 0x54fe7f
push ecx
push eax
push 0x5e1734
call fcn.00552ca0
add esp, 4
push eax
mov eax, dword [0x884ca4]
add eax, 0x20
push eax
jmp 0x54fe77
mov ecx, dword [0x884ca4]
test ecx, ecx
je 0x54fe44
push eax
push 0x5e171c
call fcn.00552ca0
mov ecx, dword [0x884ca4]
add esp, 4
add ecx, 0x20
push eax
push ecx
call fcn.0054dea0
add esp, 0xc
mov eax, dword [esp]
mov ecx, dword [esp + 0x430]
cmp eax, ecx
je 0x54feaa
mov edx, dword [0x884ca4]
test edx, edx
je 0x54fe7f
push ecx
push eax
push 0x5e1704
call fcn.00552ca0
mov edx, dword [0x884ca4]
add esp, 4
add edx, 0x20
push eax
push edx
call fcn.0054dea0
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x420], 0xffffffff
call fcn.00553140
xor al, al
mov ecx, dword [esp + 0x418]
mov dword fs:[0], ecx
add esp, 0x424
ret
lea ecx, [esp + 0x14]
mov dword [esp + 0x420], 0xffffffff
call fcn.00553140
mov ecx, dword [esp + 0x418]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x424
ret
Function at 0x550f10
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x540
push ebx
lea eax, [esp + 0x33c]
push 0x104
xor bl, bl
push eax
push 0
mov byte [esp + 0x13], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
lea ecx, [esp + 0x13c]
push 0x104
lea edx, [esp + 0x348]
push ecx
push edx
call fcn.00555288
add esp, 4
inc eax
push eax
lea eax, [esp + 0x350]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x134]
push 0x5c
push ecx
call fcn.005573ea
add esp, 8
test eax, eax
je 0x550f7f
mov byte [eax], bl
lea edx, [esp + 8]
push edx
push 3
push 0
push 0x5e1a10
call fcn.00552ca0
add esp, 4
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5510f4
push ebp
mov edx, dword [esp + 0xc]
push eax
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push eax
push eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x44]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x30], 0x104
mov ebp, 1
call ebx
cmp eax, 0x103
je 0x5510dc
push esi
push edi
test eax, eax
jne 0x5510aa
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x244]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x248]
push ecx
call fcn.005573ea
add esp, 8
test eax, eax
je 0x551028
mov byte [eax], 0
lea edx, [esp + 0x140]
lea eax, [esp + 0x244]
push edx
push eax
call fcn.0055469e
add esp, 8
test eax, eax
jne 0x5510aa
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push eax
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5510aa
mov eax, dword [0x884ca4]
test eax, eax
je 0x551091
lea edx, [esp + 0x1c]
push edx
push 0x5e19f8
call fcn.00552ca0
add esp, 4
push eax
mov eax, dword [0x884ca4]
add eax, 0x20
push eax
call fcn.0054dea0
add esp, 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x5510aa
mov byte [esp + 0x13], 1
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push 0
lea edx, [esp + 0x4c]
mov eax, ebp
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], 0x104
push eax
inc ebp
call ebx
cmp eax, 0x103
jne 0x550fe1
pop edi
pop esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0xb]
pop ebp
pop ebx
add esp, 0x540
ret
mov al, bl
pop ebx
add esp, 0x540
ret
Function at 0x551100
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push ebx
push eax
push 0xf003f
push 0
push 0x5e1a70
xor bl, bl
call fcn.00552ca0
add esp, 4
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x551161
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push eax
push 0x5e1a58
call fcn.00552ca0
mov edx, dword [esp + 0x18]
add esp, 4
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x551156
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret