joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56dd90
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a11db
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x82f184]
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 - 0x48], edi
mov dword [ebp - 0x4c], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x56df0a
mov eax, dword [edi]
xor ecx, ecx
inc eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0078f0da
xor ebx, ebx
mov dword [edi + 4], eax
add esp, 4
cmp dword [edi], ebx
jle 0x56deda
nop
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov edx, dword [eax + ebx*4]
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x48], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x56de52
sub eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push edx
call fcn.004044f0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00405710
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
mov eax, dword [edi + 0xc]
push ecx
cmp dword [edi + 0x10], eax
je 0x56de9d
mov ecx, eax
call fcn.00406bb0
add dword [edi + 0xc], 0x18
jmp 0x56dea6
push eax
lea ecx, [edi + 8]
call fcn.0056e010
mov ecx, dword [edi + 0xc]
add ecx, 0xffffffe8
cmp dword [ecx + 0x14], 0x10
jb 0x56deb4
mov ecx, dword [ecx]
mov eax, dword [edi + 4]
mov dword [eax + ebx*4], ecx
lea ecx, [ebp - 0x40]
call fcn.00407a10
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404490
inc ebx
cmp ebx, dword [edi]
jl 0x56de30
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push dword [ebp - 0x44]
mov dword [eax + ecx*4], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret
push str.Failed_to_parse_command_line_arguments
lea ecx, [ebp - 0x1c]
call fcn.0041f340
push 0x824aa0
lea eax, [ebp - 0x1c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x575cb0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a1dee
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x82f184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], 0
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
mov edx, dword [esi + 8]
shr edx, 3
and dl, 1
mov byte [edi + 0x6c], dl
mov edx, dword [ebp + 0x10]
push ecx
mov dword [edi + 0x70], edx
push dword [esi + 0x18]
call fcn.00409b30
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x57cc70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x57ccfb
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x57ccbd
cmp eax, 2
jne 0x57ccd9
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x57ccf5
test ecx, ecx
je 0x57ccf0
test cl, 1
jne 0x57ccd9
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x57ccf5
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 0xc

Function at 0x57cd10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x57cd4b
cmp dword [edi], 2
jae 0x57cd4b
pop edi
mov eax, 0x7a
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x57cdbd
cmp dword [ebp - 8], 7
jne 0x57cdb8
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x57cda0
test cl, 1
jne 0x57cdb8
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x57cdb8
cmp word [esi + eax*2 - 2], 0
jne 0x57cdb8
cmp eax, 1
jbe 0x57cda0
cmp word [esi + eax*2 - 4], 0
jne 0x57cdb8
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0xd
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x57d980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push esi
mov esi, ecx
mov dword [esp + 8], esi
cmp edx, 0x80000001
jne 0x57da44
mov dword [esp + 0xc], 0x11
xor ecx, ecx
mov dword [esp + 0x10], 0xf200f0
mov dword [esp + 0x14], 0xe200ff
mov dword [esp + 0x18], 0xfe00e3
mov dword [esp + 0x1c], 0xed00eb
mov dword [esp + 0x20], 0x840092
mov dword [esp + 0x24], 0x97008c
mov dword [esp + 0x28], 0x90009b
mov dword [esp + 0x2c], 0x820095
mov dword [esp + 0x30], 0xc9009a
nop
lea eax, [ecx + 0xb8]
xor word [esp + ecx*2 + 0x10], ax
inc ecx
mov eax, dword [esp + 0xc]
cmp ecx, eax
jb 0x57d9f0
xor ecx, ecx
mov word [esp + eax*2 + 0x10], cx
xor eax, eax
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
mov dword [esi + 0x14], 7
lea edx, [ecx + 2]
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x57da21
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004044f0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
cmp edx, reloc.WS2_32.dll_closesocket
jne 0x57dad1
mov eax, 0xa
mov dword [esp + 0x10], 0xf200f0
mov dword [esp + 0xc], eax
xor ecx, ecx
mov dword [esp + 0x14], 0xe200ff
mov dword [esp + 0x18], 0xe800e3
mov dword [esp + 0x1c], 0xfa00ed
mov dword [esp + 0x20], 0x920092
mov dword [esp + 0x24], 0xc2
nop dword [eax + eax]
lea eax, [ecx + 0xb8]
xor word [esp + ecx*2 + 0x10], ax
inc ecx
mov eax, dword [esp + 0xc]
cmp ecx, eax
jb 0x57da90
xor ecx, ecx
mov word [esp + eax*2 + 0x10], cx
xor eax, eax
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
mov dword [esi + 0x14], 7
lea edx, [ecx + 2]
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x57dac1
jmp 0x57da2c
cmp edx, reloc.OLEAUT32.dll_SysReAllocString
jne 0x57db49
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x12
mov dword [esp + 0x10], 0xf200f0
mov dword [esp + 0x14], 0xe200ff
mov dword [esp + 0x18], 0xf100e3
mov dword [esp + 0x1c], 0xfc00f1
mov dword [esp + 0x20], 0x8d0081
mov dword [esp + 0x24], 0x8e009d
mov dword [esp + 0x28], 0x860085
mov dword [esp + 0x2c], 0x8e008e
mov dword [esp + 0x30], 0x8c0086
mov dword [esp + 0x34], 0xca
call fcn.00403e20
push eax
mov ecx, esi
call fcn.004040b0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
cmp edx, 0x80000000
jne 0x57dbb9
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x11
mov dword [esp + 0x10], 0xf200f0
mov dword [esp + 0x14], 0xe200ff
mov dword [esp + 0x18], 0xfe00e3
mov dword [esp + 0x1c], 0xfe00f2
mov dword [esp + 0x20], 0x920093
mov dword [esp + 0x24], 0x900087
mov dword [esp + 0x28], 0x97009b
mov dword [esp + 0x2c], 0x880089
mov dword [esp + 0x30], 0xc9009c
call fcn.00403e20
push eax
mov ecx, esi
call fcn.004040b0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x7cd378
call fcn.004040b0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x57e4b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x28], 0
je 0x57e512
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x14], 8
jb 0x57e4c8
mov edx, dword [edx]
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x57e4d3
mov esi, dword [esi]
test edx, edx
je 0x57e512
mov ecx, edx
push ebx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x57e4e0
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebx
test eax, eax
jne 0x57e512
pop edi
mov al, 1
pop esi
pop ebp
ret 8
pop edi
xor al, al
pop esi
pop ebp
ret 8

Function at 0x57e7a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ecx + 0x28], 0
mov eax, dword [ebp + 8]
je 0x57e7f3
cmp dword [eax + 0x14], 8
mov dword [ebp - 8], 0
jb 0x57e7c8
mov eax, dword [eax]
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push edx
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0x10]
push edx
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x57e7f3
cmp dword [ebp - 0x10], 4
mov eax, dword [ebp - 8]
je 0x57e7f6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 8

Function at 0x57e810
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ecx + 0x28], 0
mov edx, dword [ebp + 8]
je 0x57e860
cmp dword [edx + 0x14], 8
jb 0x57e831
mov edx, dword [edx]
mov eax, dword [ebp + 0xc]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x57e860
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 8
Function at 0x57e880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 8], eax
cmp byte [edi + 0x28], 0
je 0x57e914
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x57e8b1
mov eax, dword [esi]
push ebx
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x57e914
cmp dword [ebp - 0xc], 3
jne 0x57e914
push dword [ebx]
call fcn.0078f0da
mov ecx, dword [ebp - 8]
add esp, 4
mov dword [ecx], eax
cmp dword [esi + 0x14], 8
jb 0x57e8e4
mov esi, dword [esi]
push ebx
push eax
lea eax, [ebp - 8]
push eax
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x57e914
cmp dword [ebp - 8], 3
jne 0x57e914
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x57f200
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a29a6
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x30d80
call fcn.0078f690
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30d6c], ecx
mov edi, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x30d68], edi
movq qword [ebp - 0x30d64], xmm0
mov dword [ebp - 0x30d5c], 0
mov dword [ebp - 0x30d74], edi
mov dword [ebp - 0x30d64], 0
mov dword [ebp - 0x30d60], 0
mov dword [ebp - 0x30d5c], 0
mov dword [ebp - 4], 0
cmp byte [ecx + 0x28], 0
jne 0x57f2b3
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
jmp 0x57f3f2
mov edi, dword [ebp - 0x30d6c]
xor esi, esi
lea eax, [ebp - 0x30d70]
mov dword [ebp - 0x30d68], 0x186a0
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x30d68]
push eax
lea eax, [ebp - 0x30d58]
push eax
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x57f3d2
test eax, eax
jne 0x57f3cc
mov dword [ebp - 0x30d7c], eax
mov word [ebp - 0x30d8c], ax
lea eax, [ebp - 0x30d58]
mov dword [ebp - 0x30d78], 7
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x57f320
sub eax, edx
lea ecx, [ebp - 0x30d8c]
sar eax, 1
push eax
lea eax, [ebp - 0x30d58]
push eax
call fcn.004044f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30d60]
cmp dword [ebp - 0x30d5c], eax
je 0x57f3aa
movups xmm0, xmmword [ebp - 0x30d8c]
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0x30d8c]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x30d7c]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ebp - 0x30d60], 0x18
mov dword [ebp - 0x30d7c], 0
mov dword [ebp - 0x30d78], 7
mov word [ebp - 0x30d8c], ax
mov byte [ebp - 4], al
call fcn.00404490
inc esi
jmp 0x57f2bb
lea ecx, [ebp - 0x30d8c]
push ecx
push eax
lea ecx, [ebp - 0x30d64]
call fcn.004081e0
lea ecx, [ebp - 0x30d8c]
mov byte [ebp - 4], 0
call fcn.00404490
inc esi
jmp 0x57f2bb
mov edi, dword [ebp - 0x30d74]
mov eax, dword [ebp - 0x30d64]
mov dword [edi], eax
mov eax, dword [ebp - 0x30d60]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x30d5c]
mov dword [edi + 8], eax
lea ecx, [ebp - 0x30d64]
mov dword [ebp - 0x30d64], 0
mov dword [ebp - 0x30d60], 0
mov dword [ebp - 0x30d5c], 0
call fcn.00404220
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x57f440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a29e6
mov eax, dword fs:[0]
push eax
mov eax, 0x30d74
call fcn.0078f690
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x30d64], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x30d60], esi
movq qword [ebp - 0x30d5c], xmm0
mov dword [ebp - 0x30d54], 0
mov dword [ebp - 0x30d68], esi
mov dword [ebp - 0x30d5c], 0
mov dword [ebp - 0x30d58], 0
mov dword [ebp - 0x30d54], 0
mov dword [ebp - 4], 0
cmp byte [eax + 0x28], 0
jne 0x57f4e1
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
jmp 0x57f63f
xor edi, edi
mov dword [ebp - 0x30d60], 0x186a0
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x30d60]
push ecx
lea ecx, [ebp - 0x30d50]
push ecx
push edi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x57f625
mov esi, dword [ebp - 0x30d64]
nop dword [eax]
test eax, eax
jne 0x57f5ea
mov dword [ebp - 0x30d70], eax
mov word [ebp - 0x30d80], ax
lea eax, [ebp - 0x30d50]
mov dword [ebp - 0x30d6c], 7
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x57f550
sub eax, edx
lea ecx, [ebp - 0x30d80]
sar eax, 1
push eax
lea eax, [ebp - 0x30d50]
push eax
call fcn.004044f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30d58]
cmp dword [ebp - 0x30d54], eax
je 0x57f5c8
movups xmm0, xmmword [ebp - 0x30d80]
mov dword [eax + 0x10], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x30d70]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ebp - 0x30d58], 0x18
mov dword [ebp - 0x30d70], 0
mov dword [ebp - 0x30d6c], 7
mov word [ebp - 0x30d80], ax
jmp 0x57f5db
lea ecx, [ebp - 0x30d80]
push ecx
push eax
lea ecx, [ebp - 0x30d5c]
call fcn.004081e0
lea ecx, [ebp - 0x30d80]
mov byte [ebp - 4], 0
call fcn.00404490
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x30d60]
mov dword [ebp - 0x30d60], 0x186a0
push eax
lea eax, [ebp - 0x30d50]
inc edi
push eax
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x57f520
mov esi, dword [ebp - 0x30d68]
mov eax, dword [ebp - 0x30d5c]
mov dword [esi], eax
mov eax, dword [ebp - 0x30d58]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x30d54]
mov dword [esi + 8], eax
lea ecx, [ebp - 0x30d5c]
mov dword [ebp - 0x30d5c], 0
mov dword [ebp - 0x30d58], 0
mov dword [ebp - 0x30d54], 0
call fcn.00404220
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.0076d59e
mov esp, ebp
pop ebp
ret 4
Function at 0x583300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a3069
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x82f184]
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
cmp byte [edi + 0x28], 0
mov esi, dword [ebp + 8]
jne 0x583340
xor al, al
jmp 0x583509
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
push esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00403b80
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 2
push eax
call fcn.00418540
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
mov bl, al
call fcn.00404220
lea ecx, [ebp - 0x4c]
call fcn.00404490
test bl, bl
je 0x5833d0
push esi
lea ecx, [ebp - 0x4c]
call fcn.00403150
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 3
push eax
call fcn.00418800
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00404220
lea ecx, [ebp - 0x4c]
call fcn.00404490
mov dword [ebp - 0x58], 3
xor eax, eax
mov dword [ebp - 0x54], 0x99009a
mov dword [ebp - 0x50], 0xbb0098
nop word [eax + eax]
lea ecx, [eax + 0xb8]
xor word [ebp + eax*2 - 0x54], cx
inc eax
mov ecx, dword [ebp - 0x58]
cmp eax, ecx
jb 0x5833f0
xor eax, eax
lea edx, [edi + 0xc]
mov word [ebp + ecx*2 - 0x54], ax
lea ecx, [ebp - 0xb8]
push 1
call fcn.00581590
add esp, 4
mov edi, eax
mov dword [ebp - 4], 4
mov edx, 0xc
mov dword [ebp - 0x48], edx
xor ecx, ecx
mov dword [ebp - 0x44], 0xdc00ca
mov dword [ebp - 0x40], 0x9b00dd
mov dword [ebp - 0x3c], 0xc500d9
mov dword [ebp - 0x38], 0xd000ce
mov dword [ebp - 0x34], 0xb500b2
mov dword [ebp - 0x30], 0xe100e2
mov dword [ebp - 0x2c], 0xc4
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x44], ax
inc ecx
mov edx, dword [ebp - 0x48]
cmp ecx, edx
jb 0x583461
xor eax, eax
mov word [ebp + edx*2 - 0x44], ax
lea eax, [ebp - 0x44]
push edi
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00413810
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00408060
push esi
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.00413520
push 0x7d5280
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
call fcn.00408060
add esp, 0x28
lea ecx, [ebp - 0x70]
call fcn.00404490
lea ecx, [ebp - 0x88]
call fcn.00404490
lea ecx, [ebp - 0xa0]
call fcn.00404490
lea ecx, [ebp - 0xb8]
call fcn.00404490
push ecx
push 0
lea ecx, [ebp - 0x28]
call fcn.004130e0
add esp, 8
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.00404490
mov al, bl
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.0076d59e
mov esp, ebp
pop ebp
ret 8
Function at 0x583530
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a30b6
mov eax, dword fs:[0]
push eax
mov eax, 0x204c
call fcn.0078f690
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2028], ecx
cmp byte [ebp + 0x10], 0
mov esi, dword [ebp + 0xc]
mov eax, esi
mov edi, dword [ebp + 8]
je 0x58358e
cmp dword [esi + 0x14], 8
jb 0x58357d
mov eax, dword [esi]
push 0
push 0x100
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
jmp 0x58359e
cmp dword [esi + 0x14], 8
jb 0x583596
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x58374e
mov eax, dword [ebp + 0x10]
movzx ecx, al
mov eax, esi
shl ecx, 8
add ecx, 0xf003f
mov dword [ebp - 0x2020], 0
cmp dword [esi + 0x14], 8
jb 0x5835c9
mov eax, dword [esi]
lea edx, [ebp - 0x2020]
push edx
push ecx
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x58374e
lea eax, [ebp - 0x201c]
mov dword [ebp - 0x2014], 0x1000
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x2014]
push eax
lea eax, [ebp - 0x2010]
push eax
push 0
push dword [ebp - 0x2020]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x583732
nop
push 0x7cd374
lea eax, [ebp - 0x2058]
push esi
push eax
call fcn.00421b40
add esp, 0xc
mov edx, eax
lea ecx, [ebp - 0x2010]
mov dword [ebp - 4], 0
lea eax, [ecx + 2]
mov dword [ebp - 0x2024], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x583650
sub ecx, dword [ebp - 0x2024]
lea eax, [ebp - 0x2010]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.00407c50
mov dword [ebp - 0x2030], 0
xor ecx, ecx
mov dword [ebp - 0x202c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2040], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2030], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2028]
lea eax, [ebp - 0x2040]
push eax
push edi
mov byte [ebp - 4], 1
call fcn.00583530
lea ecx, [ebp - 0x2040]
mov dword [ebp - 0x2024], eax
call fcn.00404490
lea ecx, [ebp - 0x2058]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
mov eax, dword [ebp - 0x2024]
test eax, eax
jne 0x58374e
lea eax, [ebp - 0x201c]
mov dword [ebp - 0x2014], 0x1000
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x2014]
push eax
lea eax, [ebp - 0x2010]
push eax
push 0
push dword [ebp - 0x2020]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x583620
push dword [ebp - 0x2020]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x14], 8
jb 0x583746
mov esi, dword [esi]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
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.0076d59e
mov esp, ebp
pop ebp
ret 0xc