joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4deec0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x5bd500
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push edi
mov dword [esp + 0xc], 0x5d005c
mov eax, dword [0x6754d4]
xor ebx, ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 8], eax
mov cl, 0x21
mov al, 0x20
mov dl, 0x25
mov byte [esp + 0x13], cl
mov byte [esp + 0x15], al
mov byte [esp + 0x1b], al
mov byte [esp + 0x1d], cl
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x10], 0x2b
mov byte [esp + 0x11], 0x26
mov byte [esp + 0x12], dl
mov byte [esp + 0x14], 0x24
mov byte [esp + 0x16], 0x22
mov byte [esp + 0x17], 0x27
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], 0x23
mov byte [esp + 0x1a], 0x2b
mov byte [esp + 0x1c], 0x2a
mov byte [esp + 0x1e], 0x26
mov byte [esp + 0x1f], bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x5c], 1
cmp ecx, ebx
jle 0x4def67
mov dl, byte [esp + eax + 0x10]
xor dl, 0x12
mov byte [esp + eax + 0x10], dl
inc eax
cmp eax, ecx
jl 0x4def57
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push 0x64efb0
push edx
call fcn.00593b08
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
mov byte [esp + 0x20], 0xa1
mov byte [esp + 0x21], 0xc1
mov byte [esp + 0x22], 0x60
mov byte [esp + 0x23], 0x5b
mov byte [esp + 0x24], 0xb5
mov byte [esp + 0x25], 0xfd
mov byte [esp + 0x26], 0x7d
mov byte [esp + 0x27], 0x8d
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], bl
mov byte [esp + 0x30], bl
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], bl
mov byte [esp + 0x47], bl
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], bl
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], bl
mov byte [esp + 0x4e], bl
mov byte [esp + 0x4f], bl
mov byte [esp + 0x50], bl
mov byte [esp + 0x51], bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x20]
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
lea eax, [esp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00439390
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x20]
push ecx
push 0x64efb0
push edx
call fcn.00593b08
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x5c], bl
call fcn.0059ad3d
mov ecx, dword [esp + 0x54]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret
Function at 0x4e0c90
Capabilities:
Encode data using xor
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5bd698
push eax
mov dword fs:[0], esp
sub esp, 0x18
push edi
call fcn.004df0b0
test eax, eax
jne 0x4e0e0a
mov eax, dword [0x6754d4]
mov dword [esp + 8], eax
mov al, 0x66
lea edi, [esp + 0x14]
mov byte [esp + 0x14], al
mov byte [esp + 0x19], al
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x15], 0x64
mov byte [esp + 0x16], 0x74
mov byte [esp + 0x17], 0x60
mov byte [esp + 0x18], 0x76
mov byte [esp + 0x1a], 0
mov dword [esp + 0x24], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4e0d0c
mov dl, byte [esp + eax + 0x14]
xor dl, 0x12
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, ecx
jl 0x4e0cfc
lea ecx, [esp + 0x14]
lea edx, [esp + 8]
push ecx
push 0x64efb0
push edx
call fcn.00593b08
mov edx, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 4]
push eax
mov eax, dword [0x67a050]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4e0dc1
mov ecx, dword [esp + 4]
lea edx, [esp + 0x10]
push ecx
lea eax, [ecx - 0x1323f333]
mov dword [esp + 0x14], esp
mov ecx, esp
push edx
push 0
mov dword [ecx], eax
call fcn.00580063
add esp, 4
lea ecx, [esp + 0x1c]
push eax
call fcn.0044d250
mov ecx, eax
call fcn.0044d260
mov ecx, dword [eax]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0x6526c4]
test eax, eax
je 0x4e0db0
cmp edx, 5
jge 0x4e0da9
cmp edx, 0xffffffff
jge 0x4e0df9
call fcn.004e0070
jmp 0x4e0df9
cmp edx, 0x37
jge 0x4e0dba
cmp edx, 0xffffffff
jge 0x4e0df9
call fcn.004e0070
jmp 0x4e0df9
lea ecx, [esp + 4]
push ecx
call fcn.00580063
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [0x67a050]
add edx, 0x1323f333
add esp, 4
mov dword [esp + 4], edx
lea edx, [esp + 4]
push 4
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.0059ad3d
mov ecx, dword [esp + 0x1c]
pop edi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4e2d90
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd910
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
lea eax, [ebp + 0x10]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ecx
xor esi, esi
mov ecx, dword [ebp + 0xc]
push eax
push 0x20019
push esi
push ecx
push edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 0x20019
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4e2dfc
push 0x666414
mov ecx, dword [ebp + 8]
call fcn.0059b03f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x1c]
push esi
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x34]
push edx
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push esi
lea edx, [ebp - 0x20]
push ecx
push edx
push esi
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4e2e2e
push 0x666474
jmp 0x4e2de1
mov eax, dword [ebp + 0xc]
inc eax
push eax
mov dword [ebp + 0xc], eax
call fcn.005970d9
mov ebx, eax
mov eax, dword [ebp - 0x14]
add esp, 4
inc eax
mov dword [ebp - 0x14], eax
push eax
call fcn.005970d9
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
add esp, 4
inc eax
mov dword [ebp - 0x18], eax
push eax
call fcn.005970d9
mov edi, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x30], eax
cmp esi, dword [ebp - 0x20]
jae 0x4e2ec2
push 0x64fb50
mov ecx, edi
call fcn.0059b03f
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x3c]
push edx
push 0
push 0
lea eax, [ebp - 0x24]
push 0
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x10]
push eax
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4e2ead
push 0x666454
mov ecx, edi
call fcn.0059b03f
inc esi
jmp 0x4e2e69
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
push edx
push eax
push ebx
push edi
call fcn.004e2f10
inc esi
jmp 0x4e2e69
push ebx
call fcn.00597102
mov ecx, dword [ebp - 0x2c]
add esp, 4
push ecx
call fcn.00597102
mov edx, dword [ebp - 0x30]
add esp, 4
push edx
call fcn.00597102
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4e3ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
mov dword [ebp], 0x5e84ac
mov dword [ebp + 0x930], esi
mov dword [ebp + 0x92c], esi
call fcn.00433b40
mov edx, dword [0x67a050]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea eax, [ebp + 4]
push ecx
push eax
push esi
push esi
push 0x6665b4
push edx
mov dword [esp + 0x28], 0x24a
call ebx
test eax, eax
je 0x4e3b0f
mov ecx, 0x82
xor eax, eax
lea edi, [ebp + 0x44]
mov byte [ebp + 0x24c], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x67ae38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebp + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x24e]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x67a050]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push 0
push 0x6665a0
push edx
mov dword [esp + 0x28], 0x24a
call ebx
test eax, eax
je 0x4e3b73
mov ecx, 0x82
xor eax, eax
lea edi, [ebp + 0x28e]
mov byte [ebp + 0x496], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x67ae34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebp + 0x24e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x498]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x67a050]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push 0
push 0x666590
push edx
mov dword [esp + 0x28], 0x24a
call ebx
test eax, eax
je 0x4e3bda
mov ecx, 0x82
xor eax, eax
lea edi, [ebp + 0x4d8]
mov byte [ebp + 0x6e0], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x67ae2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebp + 0x498]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x6e2]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x67a050]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push 0
push 0x666580
push edx
mov dword [esp + 0x28], 0x24a
call ebx
test eax, eax
je 0x4e3c41
mov ecx, 0x82
xor eax, eax
lea edi, [ebp + 0x722]
mov byte [ebp + 0x92a], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x67ae30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebp + 0x6e2]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4e3cb0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x67a050]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esi + 4]
push 0x24a
push eax
push 0
push 0
push 0x6665b4
push ecx
call edi
mov eax, dword [0x67a050]
lea edx, [esi + 0x24e]
push 0x24a
push edx
push 0
push 0
push 0x6665a0
push eax
call edi
mov edx, dword [0x67a050]
lea ecx, [esi + 0x498]
push 0x24a
push ecx
push 0
push 0
push 0x666590
push edx
call edi
mov eax, dword [0x67a050]
add esi, 0x6e2
push 0x24a
push esi
push 0
push 0
push 0x666580
push eax
call edi
pop edi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd9f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x92c]
mov dword [ebp - 0x10], esp
cmp eax, ebx
jne 0x4e3e0e
call fcn.004e3d30
test al, al
jne 0x4e3e0e
lea ecx, [ebp - 0x21c]
call fcn.00480870
mov eax, dword [0x6754d4]
mov dword [ebp - 4], ebx
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
push 0x6665e0
push ecx
call fcn.00593b08
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x21c]
push 1
push edx
call fcn.00480980
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0059ad3d
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
call fcn.00480970
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e3dfb
push 0x20001
push ebx
push edi
mov dword [ebp - 4], 2
call dword [esi + 0x92c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e4130
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push 0
push eax
push 0
push 0xf003f
mov esi, ecx
push 0
mov ecx, dword [0x67a050]
push 0x679a28
push 0
push 0x652c20
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4e4269
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esi + 8]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x18]
push 0x666684
push eax
call edi
mov edx, dword [esp + 8]
lea ecx, [esi + 4]
push 4
push ecx
push 4
push 0
push 0x666674
push edx
call edi
mov ecx, dword [esp + 8]
lea eax, [esi + 0xc]
push 4
push eax
push 4
push 0
push 0x66666c
push ecx
call edi
mov eax, dword [esp + 8]
lea edx, [esi + 0x10]
push 4
push edx
push 4
push 0
push 0x666664
push eax
call edi
mov edx, dword [esp + 8]
lea ecx, [esi + 0x14]
push 4
push ecx
push 4
push 0
push 0x66665c
push edx
call edi
mov ecx, dword [esp + 8]
lea eax, [esi + 0x18]
push 4
push eax
push 4
push 0
push 0x666654
push ecx
call edi
mov eax, dword [esp + 8]
lea edx, [esi + 0x1c]
push 4
push edx
push 4
push 0
push 0x66664c
push eax
call edi
mov edx, dword [esp + 8]
lea ecx, [esi + 0x20]
push 4
push ecx
push 4
push 0
push 0x666644
push edx
call edi
mov ecx, dword [esp + 8]
lea eax, [esi + 0x24]
push 4
push eax
push 4
push 0
push 0x66663c
push ecx
call edi
mov eax, dword [esp + 8]
lea edx, [esi + 0x28]
push 4
push edx
push 4
push 0
push 0x666630
push eax
call edi
mov ecx, dword [esp + 8]
add esi, 0x2c
push 4
push esi
push 4
push 0
push 0x666624
push ecx
call edi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ecx
ret
Function at 0x4e4bb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
mov edx, dword [0x67a050]
push esi
mov esi, ecx
lea eax, [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
mov ebx, 4
push 0x6666bc
push edx
mov dword [esp + 0x24], ebx
call edi
test eax, eax
jne 0x4e4bfe
push eax
push 0x400
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00581190
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov eax, dword [esi + 0xc]
test eax, eax
jg 0x4e4c1c
jl 0x4e4c0e
mov eax, dword [esi + 8]
test eax, eax
ja 0x4e4c1c
mov dword [esi + 8], 0x2800
mov dword [esi + 0xc], 0
mov eax, dword [0x67a050]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push 0x6666b0
push eax
mov dword [esp + 0x24], ebx
call edi
test eax, eax
jne 0x4e4c4b
mov eax, dword [esp + 0x10]
test eax, eax
setne cl
mov byte [esi + 0x11], cl
mov al, byte [esi + 0x11]
test al, al
je 0x4e4c56
mov byte [esi + 0x10], 1
mov ecx, dword [0x67a050]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0x6666a4
push ecx
mov dword [esp + 0x24], ebx
call edi
test eax, eax
jne 0x4e4c86
mov eax, dword [esp + 0x10]
test eax, eax
setne dl
mov byte [esi + 0x12], dl
mov edx, dword [0x67a050]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push 0x666694
push edx
mov dword [esp + 0x24], ebx
call edi
test eax, eax
jne 0x4e4cb6
mov eax, dword [esp + 0x10]
test eax, eax
setne al
mov byte [esi + 0x13], al
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x4e4cc0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push 0x400
push eax
push ecx
call fcn.00580720
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 8]
push 4
push edx
mov dword [esp + 0x10], eax
mov eax, dword [0x67a050]
push 4
push 0
push 0x6666bc
push eax
call edi
mov dl, byte [esi + 0x11]
mov eax, dword [0x67a050]
xor ecx, ecx
push 4
test dl, dl
lea edx, [esp + 0xc]
push edx
push 4
push 0
push 0x6666b0
setne cl
push eax
mov dword [esp + 0x20], ecx
call edi
mov dl, byte [esi + 0x12]
mov eax, dword [0x67a050]
xor ecx, ecx
push 4
test dl, dl
lea edx, [esp + 0xc]
push edx
push 4
push 0
push 0x6666a4
setne cl
push eax
mov dword [esp + 0x20], ecx
call edi
mov al, byte [esi + 0x13]
lea edx, [esp + 8]
push 4
xor ecx, ecx
push edx
push 4
test al, al
mov eax, dword [0x67a050]
push 0
setne cl
push 0x666694
push eax
mov dword [esp + 0x20], ecx
call edi
pop edi
pop esi
pop ecx
ret
Function at 0x4e9a90
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5be166
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x230
push ebx
push ebp
push esi
xor esi, esi
test eax, eax
push edi
mov ebx, ecx
mov eax, 0x6668a8
jne 0x4e9ac5
mov eax, 0x666874
lea ecx, [esp + 0x34]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0x679a28
push 0
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4e9ca3
xor ebp, ebp
lea ecx, [esp + 0x30]
lea edx, [esp + 0x13c]
push ecx
lea ecx, [esp + 0x2c]
mov eax, 0x104
push edx
push ecx
lea edx, [esp + 0x38]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
push 0
lea ecx, [esp + 0x48]
mov eax, ebp
push edx
mov edx, dword [esp + 0x34]
push ecx
push eax
push edx
inc ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x4e9ca3
test eax, eax
jne 0x4e9af5
cmp dword [esp + 0x28], 1
jne 0x4e9af5
lea eax, [esp + 0x24]
lea ecx, [esp + 0x38]
push eax
push 0x6514b0
push ecx
call fcn.005803bc
add esp, 0xc
cmp eax, 1
jne 0x4e9af5
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4e9af5
lea edx, [esp + 0x38]
push 0x20
push edx
call fcn.0057e940
mov edx, eax
add esp, 8
test edx, edx
je 0x4e9af5
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jb 0x4e9af5
mov eax, dword [0x6754d4]
inc edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24c], 0
call fcn.0059aec6
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x10]
push eax
call fcn.0059aec6
mov eax, dword [esp + 0x250]
mov ecx, dword [esp + 0x24]
test eax, eax
mov byte [esp + 0x1c], 1
mov dword [esp + 0x18], ecx
je 0x4e9c2d
mov esi, dword [ebx + 0x12c]
lea edi, [ebx + 0x124]
push 0xffffffffffffffff
mov ecx, edi
lea edx, [esi + 1]
push edx
call fcn.004816b0
mov edx, dword [edi + 4]
lea eax, [esp + 0x10]
shl esi, 4
add esi, edx
push eax
mov ecx, esi
call fcn.0059ae76
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 4]
call fcn.0059ae76
mov edx, dword [esp + 0x18]
mov dword [esi + 8], edx
mov al, byte [esp + 0x1c]
mov byte [esi + 0xc], al
jmp 0x4e9c75
mov esi, dword [ebx + 0x140]
lea edi, [ebx + 0x138]
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
mov ecx, edi
call fcn.004816b0
mov eax, dword [edi + 4]
lea edx, [esp + 0x10]
shl esi, 4
add esi, eax
push edx
mov ecx, esi
call fcn.0059ae76
lea eax, [esp + 0x14]
lea ecx, [esi + 4]
push eax
call fcn.0059ae76
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], ecx
mov dl, byte [esp + 0x1c]
mov byte [esi + 0xc], dl
mov esi, 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x248], esi
call fcn.0059ad3d
lea ecx, [esp + 0x10]
mov dword [esp + 0x248], 0xffffffff
call fcn.0059ad3d
jmp 0x4e9af5
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x240]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x23c
ret 4
Function at 0x4e9cd0
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5be180
push eax
mov dword fs:[0], esp
sub esp, 0x10
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
push eax
xor ebp, ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push ebp
push 0xf003f
push ebp
push 0x679a28
push ebp
push 0x65633c
push reloc.WSOCK32.dll_accept
call ebx
test eax, eax
jne 0x4e9ecd
mov edi, dword [esp + 0x30]
mov eax, 0x6668f4
cmp edi, ebp
jne 0x4e9d33
mov eax, 0x6668e4
mov edx, dword [esp + 0x18]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp edi, ebp
mov eax, 0x6668f4
jne 0x4e9d4d
mov eax, 0x6668e4
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
push ebp
push 0xf003f
push ebp
push 0x679a28
push ebp
push eax
mov eax, dword [esp + 0x38]
push eax
call ebx
test eax, eax
jne 0x4e9ecd
cmp edi, ebp
je 0x4e9e1d
mov eax, dword [esi + 0x12c]
mov dword [esp + 0x10], ebp
cmp eax, ebp
jle 0x4e9eb9
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
or ebx, 0xffffffff
mov ecx, dword [esi + 0x128]
lea eax, [ecx + edi]
mov cl, byte [ecx + edi + 0xc]
test cl, cl
je 0x4e9e02
mov edx, dword [0x6754d4]
mov dword [esp + 0x30], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
push ecx
push edx
lea eax, [esp + 0x38]
push 0x6668dc
push eax
mov dword [esp + 0x38], 0
call fcn.00593b08
mov ecx, dword [esi + 0x128]
mov edx, dword [esp + 0x40]
add esp, 0x10
mov eax, dword [ecx + edi]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [esp + 0x1c]
push 1
push 0
push edx
push eax
call ebp
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], ebx
call fcn.0059ad3d
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x12c]
inc eax
add edi, 0x10
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4e9d99
jmp 0x4e9eb9
mov eax, dword [esi + 0x140]
mov dword [esp + 0x30], ebp
cmp eax, ebp
jle 0x4e9eb9
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
or ebx, 0xffffffff
mov ecx, dword [esi + 0x13c]
lea eax, [edi + ecx]
mov cl, byte [edi + ecx + 0xc]
test cl, cl
je 0x4e9ea3
mov edx, dword [0x6754d4]
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x6668dc
push eax
mov dword [esp + 0x38], 1
call fcn.00593b08
mov ecx, dword [esi + 0x13c]
mov edx, dword [esp + 0x20]
add esp, 0x10
mov eax, dword [edi + ecx]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [esp + 0x1c]
push 1
push 0
push edx
push eax
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], ebx
call fcn.0059ad3d
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x140]
inc eax
add edi, 0x10
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x4e9e3a
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x4e9ef0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x679a28
push 0
push 0x65633c
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4e9f4f
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 4]
push 4
push eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 8]
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
ret 8