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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbd00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 0x100
mov dword [ebp - 4], ebx
call fcn.004f266a
mov dword [ebp - 0x18], eax
mov edi, 0x528484
or ecx, 0xffffffff
xor eax, eax
add esp, 4
lea edx, [ebp - 0x220]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x1c], 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
mov cl, byte [eax + esi]
cmp cl, 0x5c
je 0x4ab4ff
mov byte [ebp + eax - 0xa0], cl
inc eax
jmp 0x4ab4ed
mov byte [ebp + eax - 0xa0], bl
inc eax
xor edx, edx
mov cl, byte [eax + esi]
cmp cl, bl
je 0x4ab51b
mov byte [ebp + edx - 0x120], cl
inc eax
inc edx
jmp 0x4ab509
lea ecx, [ebp - 0xa0]
push str.HKEY_LOCAL_MACHINE
push ecx
mov byte [ebp + edx - 0x120], bl
mov dword [ebp - 0x20], 0x100
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4ab5a3
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x120]
push edx
push 0x20019
push ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4ab5df
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x14]
push edi
push edx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4ab5a3
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x220]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
push edx
call fcn.004f265f
add esp, 4
lea eax, [ebp - 0x220]
push eax
call fcn.004fa6c0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 0x528484
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ab600
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x290
lea eax, [esp + 0x100]
push esi
push edi
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
lea ecx, [esp + 0x88]
push 0x10
push ecx
call sub.WS2_32.dll_gethostname
test eax, eax
je 0x4ab656
mov edi, str.Unknown
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x88]
push ecx
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4ab685
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
push eax
call sub.WS2_32.dll_inet_ntoa
push eax
call fcn.004fa6c0
add esp, 4
lea edx, [esp + 8]
mov edi, eax
jmp 0x4ab68e
lea edx, [esp + 8]
mov edi, str.Unknown
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ax, 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x29c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x290
ret
Function at 0x4abbf0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x200
push esi
push eax
call fcn.004fa6c0
push eax
lea ecx, [esp + 0xc]
push 0x50d39c
push ecx
call fcn.004f175f
lea edx, [esp + 0x14]
push edx
call fcn.004fa6c0
push eax
lea eax, [esp + 0x11c]
push 0x5228c0
push eax
call fcn.004f175f
add esp, 0x20
lea ecx, [esp + 0x104]
lea edx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4abc5b
or eax, 0xffffffff
pop esi
add esp, 0x200
ret
mov edx, dword [0xf3f474]
push ebx
mov ebx, edx
push edi
shl ebx, 8
lea edi, [esp + 0x10c]
or ecx, 0xffffffff
xor eax, eax
add ebx, 0xf15b08
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
pop edi
cmp edx, 0x14
mov dword [0xf3f474], edx
pop ebx
jne 0x4abcaa
mov dword [0xf3f474], 0
mov eax, 1
pop esi
add esp, 0x200
ret

Function at 0x4abe70
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push 0x100
push 0
push eax
call fcn.004f2f2b
add esp, 0xc
cmp eax, 0xffffffff
je 0x4abe98
push eax
call fcn.004f2e00
add esp, 4
mov eax, 1
ret
push 0xffffffffffffffff
call fcn.004f2e00
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4abeb8
cmp eax, 3
je 0x4abeb8
mov eax, 1
ret
or eax, 0xffffffff
ret
Function at 0x4ae520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbe40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30c
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], esp
push 0x64
call fcn.004f266a
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x1f4
call fcn.004f266a
add esp, 4
mov ebx, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], 0x100
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
mov dword [ebp - 0x20], 1
call fcn.004fa6c0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x124]
push eax
push str._s_s
push ecx
call fcn.004f175f
add esp, 0x10
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x124]
push edx
push 0x20019
push 0
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ae6ed
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
push ecx
push ebx
push edx
push eax
mov eax, dword [ebp - 0x14]
push str.load
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4ae6ed
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x318]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x318]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4ae6ed
mov ebx, dword [0xf23368]
mov edi, str.HKEY_USERS
lea ecx, [ebx + ebx*4]
lea edx, [ebx + ecx*2]
or ecx, 0xffffffff
shl edx, 6
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [edx + 0xe61b08]
mov eax, ecx
mov dword [ebp + 8], esi
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x124]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [edx + 0xe61b48]
mov eax, ecx
mov dword [ebp + 8], esi
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.load
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 0xe61c48]
sub edi, ecx
mov eax, ecx
mov dword [ebp + 8], esi
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [edx + 0xe61cc8]
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x318]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
mov dword [0xf23368], ebx
mov ebx, dword [ebp - 0x18]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004f265f
add esp, 4
push ebx
call fcn.004f265f
add esp, 4
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4af030
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbe60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 0x40
mov dword [ebp - 4], ebx
call fcn.004f266a
add esp, 4
push 0x100
call fcn.004f266a
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], edi
push 8
call fcn.004f266a
add esp, 4
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push ebx
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.begin....
mov ecx, 0xf558a0
mov esi, eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
push esi
mov ecx, 0xf558a0
call fcn.004f0ba3
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
test esi, esi
jne 0x4af128
mov ecx, dword [ebp - 0x14]
push 0x100
push edi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
je 0x4af121
mov ecx, dword [ebp + 8]
mov edx, ebx
shl edx, 6
add edx, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x18]
jmp 0x4af0dc
mov ecx, dword [ebp + 0xc]
mov dword [ecx], ebx
jmp 0x4af174
push esi
mov ecx, 0xf558a0
call fcn.004f0ba3
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov edi, str.NULL
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [eax], 0
push str.end....
mov ecx, 0xf558a0
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4af6c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbe90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x310
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], esp
push 0x64
call fcn.004f266a
add esp, 4
mov dword [ebp - 0x20], eax
push 0x1f4
call fcn.004f266a
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], 0x100
push str.SoftwareMicrosoftCommand_Processor
mov dword [ebp - 0x24], 1
call fcn.004fa6c0
push eax
lea eax, [ebp - 0x128]
push 0x50d39c
push eax
call fcn.004f175f
add esp, 0x10
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x128]
push ecx
push 0x20019
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4af866
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
push edi
push ecx
push 0
push str.AutoRun
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4af866
or ecx, 0xffffffff
lea edx, [ebp - 0x31c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [0xf23368]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + ebx*4]
mov edi, str.HKEY_LOCAL_MACHINE
lea edx, [ebx + ecx*2]
or ecx, 0xffffffff
shl edx, 6
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [edx + 0xe61b08]
mov eax, ecx
mov dword [ebp - 0x14], esi
mov esi, edi
mov edi, dword [ebp - 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x128]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [edx + 0xe61b48]
mov eax, ecx
mov dword [ebp - 0x14], esi
mov esi, edi
mov edi, dword [ebp - 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.AutoRun
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 0xe61c48]
sub edi, ecx
mov eax, ecx
mov dword [ebp - 0x14], esi
mov esi, edi
mov edi, dword [ebp - 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [edx + 0xe61cc8]
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x31c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x1c]
mov dword [0xf23368], ebx
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x20]
push edx
call fcn.004f265f
add esp, 4
push edi
call fcn.004f265f
add esp, 4
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b17a0
Capabilities:
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x298
push ebp
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20006
push 0
push 0
push closesocket
mov dword [esp + 0x1c], 0
call esi
test eax, eax
jne 0x4b17e4
lea ecx, [esp + 8]
push ecx
push str.exefile_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 8]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.exefile_shellopencommand
push closesocket
call esi
test eax, eax
je 0x4b1819
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x298
ret
lea ecx, [esp + 0x1c]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
xor esi, esi
push edx
push eax
push esi
push esi
push ecx
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x34], 1
call edi
lea edx, [esp + 0x20]
lea eax, [esp + 0xa4]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push esi
push esi
push edx
call edi
test eax, eax
jne 0x4b1917
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x24]
push eax
push 0x50d39c
push ecx
call fcn.004f175f
lea edx, [esp + 0x30]
push 0x5287b8
push edx
call fcn.004f2d80
add esp, 0x14
test eax, eax
je 0x4b18b3
lea eax, [esp + 0x24]
push 0x5287b4
push eax
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x4b18b8
mov esi, 1
lea ecx, [esp + 0x24]
push 0x50dc3c
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4b18d3
mov esi, 1
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x1ac]
push str._s_1_s__
push ecx
mov byte [esp + 0x20], 0x22
mov byte [esp + 0x21], 0
call fcn.004f175f
lea edx, [esp + 0x34]
lea eax, [esp + 0x1b4]
push edx
push eax
call fcn.004f61e0
add esp, 0x18
test eax, eax
jne 0x4b1917
cmp esi, 1
jne 0x4b196a
lea ecx, [esp + 0x10]
mov al, 0x25
push ecx
mov byte [esp + 0x14], 0x22
mov byte [esp + 0x15], al
mov byte [esp + 0x16], 0x31
mov byte [esp + 0x17], 0x22
mov byte [esp + 0x18], 0x20
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], 0x2a
mov byte [esp + 0x1b], 0
call fcn.004fa6c0
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x14]
push 1
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call ebp
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x298
ret
Function at 0x4b1980
Capabilities:
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x298
push ebp
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20006
push 0
push 0
push closesocket
mov dword [esp + 0x1c], 0
call esi
test eax, eax
jne 0x4b19c4
lea ecx, [esp + 8]
push ecx
push str.piffile_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 8]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.piffile_shellopencommand
push closesocket
call esi
test eax, eax
je 0x4b19f9
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x298
ret
lea ecx, [esp + 0x1c]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
xor esi, esi
push edx
push eax
push esi
push esi
push ecx
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x34], 1
call edi
lea edx, [esp + 0x20]
lea eax, [esp + 0xa4]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push esi
push esi
push edx
call edi
test eax, eax
jne 0x4b1af7
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x24]
push eax
push 0x50d39c
push ecx
call fcn.004f175f
lea edx, [esp + 0x30]
push 0x5287b8
push edx
call fcn.004f2d80
add esp, 0x14
test eax, eax
je 0x4b1a93
lea eax, [esp + 0x24]
push 0x5287b4
push eax
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x4b1a98
mov esi, 1
lea ecx, [esp + 0x24]
push 0x50dc3c
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4b1ab3
mov esi, 1
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x1ac]
push str._s_1_s__
push ecx
mov byte [esp + 0x20], 0x22
mov byte [esp + 0x21], 0
call fcn.004f175f
lea edx, [esp + 0x34]
lea eax, [esp + 0x1b4]
push edx
push eax
call fcn.004f61e0
add esp, 0x18
test eax, eax
jne 0x4b1af7
cmp esi, 1
jne 0x4b1b4a
lea ecx, [esp + 0x10]
mov al, 0x25
push ecx
mov byte [esp + 0x14], 0x22
mov byte [esp + 0x15], al
mov byte [esp + 0x16], 0x31
mov byte [esp + 0x17], 0x22
mov byte [esp + 0x18], 0x20
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], 0x2a
mov byte [esp + 0x1b], 0
call fcn.004fa6c0
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x14]
push 1
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call ebp
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x298
ret
Function at 0x4b1b60
Capabilities:
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x198
push ebp
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20006
push 0
push 0
push closesocket
mov dword [esp + 0x1c], 0
call esi
test eax, eax
jne 0x4b1ba4
lea ecx, [esp + 8]
push ecx
push str.scrfile_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 8]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.scrfile_shellopencommand
push closesocket
call esi
test eax, eax
je 0x4b1bd9
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x198
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x34], 0x100
mov dword [esp + 0x24], 1
call esi
lea edx, [esp + 0x1c]
lea eax, [esp + 0xa0]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push edx
call esi
test eax, eax
jne 0x4b1c70
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x20]
push eax
push 0x50d39c
push ecx
call fcn.004f175f
lea edx, [esp + 0x2c]
push 0x5287b8
push edx
call fcn.004f2d80
add esp, 0x14
test eax, eax
je 0x4b1c70
lea eax, [esp + 0x20]
push 0x5287f4
push eax
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x4b1cc5
lea ecx, [esp + 0x10]
push edi
mov al, 0x22
push ecx
mov byte [esp + 0x18], al
mov byte [esp + 0x19], 0x25
mov byte [esp + 0x1a], 0x31
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], 0x20
mov byte [esp + 0x1d], 0x2f
mov byte [esp + 0x1e], 0x53
mov byte [esp + 0x1f], 0
call fcn.004fa6c0
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x14]
push 1
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
mov eax, dword [esp + 8]
push eax
call ebp
pop esi
mov eax, 1
pop ebp
add esp, 0x198
ret
Function at 0x4b1ce0
Capabilities:
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x298
push ebp
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20006
push 0
push 0
push closesocket
mov dword [esp + 0x1c], 0
call esi
test eax, eax
jne 0x4b1d24
lea ecx, [esp + 8]
push ecx
push str.cmdfile_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 8]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.cmdfile_shellopencommand
push closesocket
call esi
test eax, eax
je 0x4b1d59
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x298
ret
lea ecx, [esp + 0x1c]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
xor esi, esi
push edx
push eax
push esi
push esi
push ecx
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x34], 1
call edi
lea edx, [esp + 0x20]
lea eax, [esp + 0xa4]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push esi
push esi
push edx
call edi
test eax, eax
jne 0x4b1e57
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x24]
push eax
push 0x50d39c
push ecx
call fcn.004f175f
lea edx, [esp + 0x30]
push 0x5287b8
push edx
call fcn.004f2d80
add esp, 0x14
test eax, eax
je 0x4b1df3
lea eax, [esp + 0x24]
push 0x5287b4
push eax
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x4b1df8
mov esi, 1
lea ecx, [esp + 0x24]
push 0x50dc3c
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4b1e13
mov esi, 1
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x1ac]
push str._s_1_s__
push ecx
mov byte [esp + 0x20], 0x22
mov byte [esp + 0x21], 0
call fcn.004f175f
lea edx, [esp + 0x34]
lea eax, [esp + 0x1b4]
push edx
push eax
call fcn.004f61e0
add esp, 0x18
test eax, eax
jne 0x4b1e57
cmp esi, 1
jne 0x4b1eaa
lea ecx, [esp + 0x10]
mov al, 0x25
push ecx
mov byte [esp + 0x14], 0x22
mov byte [esp + 0x15], al
mov byte [esp + 0x16], 0x31
mov byte [esp + 0x17], 0x22
mov byte [esp + 0x18], 0x20
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], 0x2a
mov byte [esp + 0x1b], 0
call fcn.004fa6c0
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x14]
push 1
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call ebp
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x298
ret