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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 0
call fcn.0040d210
test al, al
je 0x40d171
cmp dword [edi + 0x14], 0x10
jb 0x40d0e9
mov eax, dword [edi]
jmp 0x40d0eb
mov eax, edi
lea ecx, [ebp - 0x20]
push ecx
push 0
lea ecx, [ebp - 0x24]
push ecx
push 0
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d171
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x40d117
cmp eax, 2
je 0x40d117
cmp eax, 6
jne 0x40d171
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40d171
inc eax
push eax
call fcn.00497f5e
inc dword [ebp - 0x20]
add esp, 4
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x28], eax
jb 0x40d136
mov edi, dword [edi]
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0
push 0
push edi
push dword [ebx + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
push ecx
mov byte [ecx + eax], 0
lea ecx, [ebp - 0x1c]
call fcn.00405750
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00404c10
lea ecx, [ebp - 0x1c]
call fcn.00404f10
jmp 0x40d182
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497ebf
mov esp, ebp
pop ebp
ret 8

Function at 0x40d1a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea edx, [ecx + 4]
xor bl, bl
cmp dword [edx + 0x14], 0x10
jb 0x40d1b2
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
mov eax, dword [ecx + 0x24]
or eax, 0x20019
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d1f9
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x40d1d9
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40f480
Capabilities:
Check for peb ntglobalflag flag
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9b87
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x537474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
push 0
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00411ab0
mov dword [edi], eax
lea esi, [edi + 8]
mov dword [ebp - 4], 0
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00411ab0
mov dword [esi], eax
lea esi, [edi + 0x10]
mov byte [ebp - 4], 1
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00411ab0
mov dword [esi], eax
lea esi, [edi + 0x18]
mov byte [ebp - 4], 2
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00411ab0
mov dword [esi], eax
lea esi, [edi + 0x20]
mov byte [ebp - 4], 3
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00411ab0
mov dword [esi], eax
lea esi, [edi + 0x28]
mov byte [ebp - 4], 4
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00411ab0
mov dword [esi], eax
lea esi, [edi + 0x30]
mov byte [ebp - 4], 5
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00411ab0
mov dword [esi], eax
lea esi, [edi + 0x38]
mov byte [ebp - 4], 6
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00411ab0
mov dword [esi], eax
lea esi, [edi + 0x40]
mov byte [ebp - 4], 7
mov dword [ebp - 0x14], esi
mov dword [esi], 0
push 0
push 0
mov dword [esi + 4], 0
call fcn.00411ab0
mov dword [esi], eax
lea esi, [edi + 0x48]
mov byte [ebp - 4], 8
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00411ab0
mov dword [esi], eax
lea esi, [edi + 0x50]
mov byte [ebp - 4], 9
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00411ab0
mov dword [esi], eax
lea esi, [edi + 0x58]
mov byte [ebp - 4], 0xa
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00411ab0
mov dword [esi], eax
lea esi, [edi + 0x60]
mov byte [ebp - 4], 0xb
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00411ab0
mov dword [esi], eax
lea esi, [edi + 0x68]
mov byte [ebp - 4], 0xc
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00411ab0
mov dword [esi], eax
lea esi, [edi + 0x70]
mov byte [ebp - 4], 0xd
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00411ab0
mov dword [esi], eax
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
Function at 0x40fd50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, dword [eax]
cmp esi, eax
je 0x40fe10
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop dword [eax + eax]
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
jb 0x40fd8b
mov ecx, dword [ecx]
sub esp, 0x18
mov eax, esp
push ecx
push eax
call fcn.00402380
add esp, 8
lea ecx, [ebp - 0x20]
call fcn.00412b80
add esp, 0x18
lea eax, [ebp - 0x20]
cmp dword [ebp - 0xc], 8
cmovae eax, dword [ebp - 0x20]
push eax
call ebx
test eax, eax
mov eax, dword [ebp - 0xc]
je 0x40fe25
cmp eax, 8
jb 0x40fe06
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
ja 0x40fe76
add eax, eax
cmp eax, 0x1000
jb 0x40fdfd
test cl, 0x1f
jne 0x40fe76
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40fe76
sub ecx, eax
cmp ecx, 4
jb 0x40fe76
cmp ecx, 0x23
ja 0x40fe76
mov ecx, eax
push ecx
call fcn.00471ca4
add esp, 4
mov esi, dword [esi]
cmp esi, dword [edi]
jne 0x40fd80
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret 4
cmp eax, 8
jb 0x40fe61
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
ja 0x40fe76
add eax, eax
cmp eax, 0x1000
jb 0x40fe58
test cl, 0x1f
jne 0x40fe7b
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40fe80
sub ecx, eax
cmp ecx, 4
jb 0x40fe85
cmp ecx, 0x23
ja 0x40fe8a
mov ecx, eax
push ecx
call fcn.00471ca4
add esp, 4
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497ebf
mov esp, ebp
pop ebp
ret 4
call fcn.004a5de4
call fcn.004a5de4
call fcn.004a5de4
call fcn.004a5de4
call fcn.004a5de4
int3
Function at 0x40fe90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, dword [eax]
cmp esi, eax
je 0x40ff50
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop dword [eax + eax]
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
jb 0x40fecb
mov ecx, dword [ecx]
sub esp, 0x18
mov eax, esp
push ecx
push eax
call fcn.00402380
add esp, 8
lea ecx, [ebp - 0x20]
call fcn.00412b80
add esp, 0x18
lea eax, [ebp - 0x20]
cmp dword [ebp - 0xc], 8
cmovae eax, dword [ebp - 0x20]
push eax
call ebx
test eax, eax
mov eax, dword [ebp - 0xc]
jne 0x40ff65
cmp eax, 8
jb 0x40ff46
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
ja 0x40ffb6
add eax, eax
cmp eax, 0x1000
jb 0x40ff3d
test cl, 0x1f
jne 0x40ffb6
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40ffb6
sub ecx, eax
cmp ecx, 4
jb 0x40ffb6
cmp ecx, 0x23
ja 0x40ffb6
mov ecx, eax
push ecx
call fcn.00471ca4
add esp, 4
mov esi, dword [esi]
cmp esi, dword [edi]
jne 0x40fec0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret 4
cmp eax, 8
jb 0x40ffa1
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
ja 0x40ffb6
add eax, eax
cmp eax, 0x1000
jb 0x40ff98
test cl, 0x1f
jne 0x40ffbb
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40ffc0
sub ecx, eax
cmp ecx, 4
jb 0x40ffc5
cmp ecx, 0x23
ja 0x40ffca
mov ecx, eax
push ecx
call fcn.00471ca4
add esp, 4
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497ebf
mov esp, ebp
pop ebp
ret 4
call fcn.004a5de4
call fcn.004a5de4
call fcn.004a5de4
call fcn.004a5de4
call fcn.004a5de4
int3
Function at 0x415090
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x4150a8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x4150fb
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x4150c9
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x4150ec
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor eax, ecx
mov dword [ebp - 8], eax
jmp 0x4150c0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx*4 + 0x539948], eax
jmp 0x41509f
jmp 0x415106
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x800
jae 0x41513e
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x539548]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
shr edx, 8
xor edx, dword [ecx*4 + 0x539948]
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x539948], edx
jmp 0x4150fd
mov dword [0x53b948], fcn.0041a290
call fcn.00415570
test eax, eax
jne 0x41515b
mov dword [0x53b948], 0x41a3a0
mov esp, ebp
pop ebp
ret

Function at 0x415250
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x415266
xor eax, eax
jmp 0x41529f
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
call fcn.004a4ff1
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp eax, dword [ebp - 4]
jne 0x415291
xor eax, eax
jmp 0x41529f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.004a4bed
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4152b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x4152c6
xor eax, eax
jmp 0x4152ff
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
call fcn.004a5bb2
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp eax, dword [ebp - 4]
jne 0x4152f1
xor eax, eax
jmp 0x4152ff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.004a4bed
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4210f0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
add ecx, 2
mov dword [ebp - 0x22c], ecx
mov edx, dword [ebp - 0x218]
mov ax, word [edx]
mov word [ebp - 0x21a], ax
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21a], 0
jne 0x42111b
mov ecx, dword [ebp - 0x218]
sub ecx, dword [ebp - 0x22c]
sar ecx, 1
mov dword [ebp - 0x230], ecx
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x224], edx
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0049d060
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x224]
add eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004a1643
add esp, 0xc
mov byte [ebp - 0x20d], 1
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x234], 0
jmp 0x4211c4
mov edx, dword [ebp - 0x214]
add edx, 1
mov dword [ebp - 0x214], edx
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x224]
jg 0x421289
mov ecx, dword [ebp - 0x214]
movzx edx, word [ebp + ecx*2 - 0x20c]
cmp edx, 0x5c
jne 0x421284
mov eax, dword [ebp - 0x214]
mov cx, word [ebp + eax*2 - 0x20c]
mov word [ebp - 0x220], cx
mov edx, dword [ebp - 0x214]
shl edx, 1
mov dword [ebp - 0x228], edx
cmp dword [ebp - 0x228], 0x208
jae 0x42121e
jmp 0x421223
call fcn.00497de3
xor eax, eax
mov ecx, dword [ebp - 0x228]
mov word [ebp + ecx - 0x20c], ax
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x421260
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x421260
mov byte [ebp - 0x20d], 0
jmp 0x421289
mov ecx, dword [ebp - 0x214]
mov dx, word [ebp - 0x220]
mov word [ebp + ecx*2 - 0x20c], dx
mov eax, dword [ebp - 0x214]
add eax, 1
mov dword [ebp - 0x234], eax
jmp 0x4211b5
movzx eax, byte [ebp - 0x20d]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x4212a0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x5008f4
mov eax, dword [ebp + 8]
push eax
call fcn.00421440
add esp, 8
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x4212e6
push 5
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4213f7
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x210], 0
mov edx, 1
test edx, edx
je 0x4213e9
mov dword [ebp - 0x214], 1
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0049d060
add esp, 0xc
cmp dword [ebp - 0x210], 0
jne 0x421353
mov edx, dword [ebp + 8]
push edx
push 0x500900
lea eax, [ebp - 0x20c]
push eax
call fcn.00421410
add esp, 0xc
jmp 0x421372
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x500910
lea eax, [ebp - 0x20c]
push eax
call fcn.00421410
add esp, 0x10
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421396
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x4213be
cmp dword [ebp - 0x210], 0xa
jl 0x4213aa
jmp 0x4213f7
mov eax, dword [ebp - 0x210]
add eax, 1
mov dword [ebp - 0x210], eax
jmp 0x4212fa
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004a16b7
add esp, 8
push 5
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4213f7
push 5
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x4237e0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xff8
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x7d0
lea eax, [ebp - 0xfa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, 0x17
mov esi, str.Program_FilesInternet_Exploreriexplore.exe
lea edi, [ebp - 0xf98]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xfa8], ecx
mov edx, dword [ebp - 0xfa8]
mov dword [ebp - 0xfb4], edx
mov eax, dword [ebp - 0xfa8]
mov cx, word [eax]
mov word [ebp - 0xfae], cx
add dword [ebp - 0xfa8], 2
cmp word [ebp - 0xfae], 0
jne 0x423830
mov edx, dword [ebp - 0xfa8]
sub edx, dword [ebp - 0xfb4]
mov eax, dword [ebp - 0xfb4]
mov dword [ebp - 0xfb8], eax
mov dword [ebp - 0xfbc], edx
lea ecx, [ebp - 0xfa4]
add ecx, 0xfffffffe
mov dword [ebp - 0xfac], ecx
mov edx, dword [ebp - 0xfac]
mov ax, word [edx + 2]
mov word [ebp - 0xfb0], ax
add dword [ebp - 0xfac], 2
cmp word [ebp - 0xfb0], 0
jne 0x42387e
mov edi, dword [ebp - 0xfac]
mov esi, dword [ebp - 0xfb8]
mov edx, dword [ebp - 0xfbc]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x3c
push 0
lea eax, [ebp - 0xff8]
push eax
call fcn.0049d060
add esp, 0xc
mov dword [ebp - 0xfec], 0x500ed0
mov dword [ebp - 0xff4], 0x200
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xfe4], ecx
mov dword [ebp - 0xfdc], 1
push 1
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0x500edc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x423925
lea eax, [ebp - 0xfa4]
push eax
call fcn.004242f0
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x423970
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x430], 0
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0049d060
add esp, 0xc
xor edx, edx
mov word [ebp - 0x414], dx
push 0x206
push 0
lea eax, [ebp - 0x412]
push eax
call fcn.0049d060
add esp, 0xc
mov dword [ebp - 0x444], 0x104
mov dword [ebp - 0x448], 1
lea ecx, [ebp - 0x42c]
push ecx
push 0x20019
push 0
push 0x500cec
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x423a4f
xor eax, eax
jmp 0x423bb5
lea edx, [ebp - 0x424]
push edx
push 0x20019
push 0
push 0x500cf8
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x423a85
xor eax, eax
jmp 0x423bb5
lea ecx, [ebp - 0x428]
push ecx
push 0x20019
push 0
push 0x500d04
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x423abb
xor eax, eax
jmp 0x423bb5
mov dword [ebp - 0x430], 0x104
mov dword [ebp - 0x434], 1
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x434]
push edx
push 0
push 0x500d20
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
push eax
call fcn.004a6747
add esp, 4
mov dword [ebp - 0x420], eax
push 0x500d24
mov ecx, dword [ebp - 0x420]
push ecx
call fcn.00421440
add esp, 8
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x423b4e
xor eax, eax
jmp 0x423bb5
mov edx, dword [ebp - 0x41c]
add edx, 2
mov dword [ebp - 0x420], edx
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x438], eax
push 0x500d28
mov ecx, dword [ebp - 0x420]
push ecx
call fcn.00421440
add esp, 8
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x423b90
xor eax, eax
jmp 0x423bb5
xor edx, edx
mov eax, dword [ebp - 0x41c]
mov word [eax], dx
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x423bb0
xor eax, eax
jmp 0x423bb5
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x423dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x428], 0
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0049d060
add esp, 0xc
xor edx, edx
mov word [ebp - 0x414], dx
push 0x206
push 0
lea eax, [ebp - 0x412]
push eax
call fcn.0049d060
add esp, 0xc
mov dword [ebp - 0x440], 0x104
mov dword [ebp - 0x444], 1
lea ecx, [ebp - 0x424]
push ecx
push 0x20019
push 0
push str.htmlfile
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x423eaf
xor eax, eax
jmp 0x423fb2
lea edx, [ebp - 0x41c]
push edx
push 0x20019
push 0
push str.shell
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x423ee5
xor eax, eax
jmp 0x423fb2
lea ecx, [ebp - 0x420]
push ecx
push 0x20019
push 0
push str.opencommand
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x423f1b
xor eax, eax
jmp 0x423fb2
mov dword [ebp - 0x428], 0x104
mov dword [ebp - 0x42c], 1
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x42c]
push edx
push 0
push 0x500dc4
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
push eax
call fcn.004a6747
add esp, 4
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x430]
push edx
call fcn.00421440
add esp, 8
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
jne 0x423fad
xor eax, eax
jmp 0x423fb2
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret