joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402fd0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x16c
push ebx
push ebp
push esi
push edi
xor edx, edx
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], edx
mov byte [esp + 0x64], dl
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
mov ecx, 0x45
mov dword [esp + 0x18], eax
lea edi, [esp + 0x65]
mov dword [esp + 0x1c], eax
lea ebx, [esp + 0x64]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
or ecx, 0xffffffff
mov edi, 0x41311c
xor eax, eax
mov dword [esp + 0x10], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
lea ebx, [esp + 0x64]
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, 0x414404
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebx, [esp + 0x64]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x413118
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebx, [esp + 0x64]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x180]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
lea ebx, [esp + 0x64]
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41311c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x184]
cmp edi, edx
je 0x40311b
or ecx, 0xffffffff
lea ebx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
lea eax, [esp + 0x20]
push ecx
push eax
push edx
push edx
push edx
push edx
push edx
lea ecx, [esp + 0x80]
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403152
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret
Function at 0x403440
Capabilities:
Query service status

Disassembly:
sub esp, 0x2c
push ebx
push SysReAllocString
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x4034f9
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 4
push eax
push ebx
mov byte [esp + 0x20], 0x73
mov byte [esp + 0x21], 0x70
mov byte [esp + 0x22], 0x69
mov byte [esp + 0x23], 0x64
mov byte [esp + 0x24], 0x65
mov byte [esp + 0x25], 0x72
mov byte [esp + 0x26], 0x6e
mov byte [esp + 0x27], 0x74
mov byte [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4034e8
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [esp + 0x24]
cmp eax, 1
je 0x4034d6
cmp eax, 3
je 0x4034d6
push esi
mov edi, 1
call ebp
push ebx
call ebp
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push esi
xor edi, edi
call ebp
push ebx
call ebp
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov edi, dword [esp + 0x10]
push ebx
call ebp
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 4]
pop ebx
add esp, 0x2c
ret

Function at 0x403510
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov al, 0x73
lea ecx, [esp]
mov byte [esp + 0xb], al
mov byte [esp + 0xc], al
lea eax, [esp]
mov byte [esp], 0x56
push eax
push ecx
mov byte [esp + 9], 0x63
mov byte [esp + 0xa], 0x53
mov byte [esp + 0xb], 0x70
mov byte [esp + 0xc], 0x69
mov byte [esp + 0xd], 0x64
mov byte [esp + 0xe], 0x65
mov byte [esp + 0xf], 0x72
mov byte [esp + 0x10], 0x43
mov byte [esp + 0x11], 0x6c
mov byte [esp + 0x12], 0x61
mov byte [esp + 0x15], 0
call dword [sym.imp.USER32.dll_FindWindowA]
neg eax
sbb eax, eax
neg eax
add esp, 0x10
ret
test byte [0x4143f8], 2
je 0x40353f
call fcn.00403440
test eax, eax
je 0x40353c
push str.Start
push 7
call fcn.00406970
add esp, 8
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
ret
xor eax, eax
ret
jmp 0x4033d0

Function at 0x403720
Capabilities:
Set current directory

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push ebx
call fcn.00408890
mov edx, eax
add esp, 8
test edx, edx
je 0x403773
mov edi, 0x4158d4
or ecx, 0xffffffff
xor eax, eax
push ebx
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]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
pop ebx
ret
mov edi, 0x413180
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
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
pop ebx
ret
Function at 0x404630
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x14
xor eax, eax
push ebx
mov dword [esp + 5], eax
push esi
mov dword [esp + 0xd], eax
push edi
mov dword [esp + 0x15], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x19], eax
push 0x14
push ecx
mov word [esp + 0x25], ax
push str.Language
push 1
mov byte [esp + 0x1c], 0
mov byte [esp + 0x2f], al
call fcn.00406a20
add esp, 0x10
test eax, eax
je 0x40473c
mov esi, 0x4158c0
lea eax, [esp + 0xc]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4046a5
test cl, cl
je 0x4046a1
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4046a5
add eax, 2
add esi, 2
test cl, cl
jne 0x40467d
xor eax, eax
jmp 0x4046aa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4047b3
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
push esi
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.004037a0
add esp, 0xc
test eax, eax
jne 0x404716
lea ecx, [esp + 0xc]
push 0x14
push ecx
push 3
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edx, [esp + 0xc]
push edx
call fcn.00410736
push esi
push ebx
push eax
call fcn.004037a0
add esp, 0x10
test eax, eax
jne 0x404716
push esi
push ebx
push 0x413194
call fcn.004037a0
add esp, 0xc
test eax, eax
jne 0x404716
push ebx
call fcn.004039e0
add esp, 4
lea edi, [esp + 0xc]
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, 0x4158c0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40478d
lea ecx, [esp + 0xc]
push 0x14
push ecx
push 3
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edx, [esp + 0xc]
push edx
call fcn.00410736
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
push esi
push ebx
push eax
call fcn.004037a0
add esp, 0x10
test eax, eax
jne 0x40478d
push esi
push ebx
push 0x413194
call fcn.004037a0
add esp, 0xc
test eax, eax
jne 0x40478d
push ebx
call fcn.004039e0
add esp, 4
lea edi, [ebx + 0xc30]
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, 0x414508
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x4047c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
mov eax, dword [0x415a3c]
sub esp, 0x24c
cmp eax, 2
push ebx
push esi
push edi
jl 0x404974
mov eax, dword [0x415a40]
push str._uninstall
mov ecx, dword [eax + 4]
push ecx
call fcn.004107e0
add esp, 8
test eax, eax
jne 0x404864
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push 0x4140e0
push 0x4140e0
call esi
test eax, eax
je 0x404826
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x10
push eax
call edi
push 0x4140e0
push 0x4140e0
call esi
test eax, eax
jne 0x40480d
lea edx, [esp + 0xc]
mov byte [esp + 0xc], 0x56
push edx
push 5
mov byte [esp + 0x15], 0x63
mov byte [esp + 0x16], 0x72
mov byte [esp + 0x17], 0x6d
mov byte [esp + 0x18], 0x6f
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1a], 0
call fcn.00406390
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x24c
ret
mov eax, dword [0x415a40]
push str._send
mov ecx, dword [eax + 4]
push ecx
call fcn.004107e0
add esp, 8
test eax, eax
jne 0x404974
mov ecx, 0x40
lea edi, [esp + 0x15]
mov byte [esp + 0x14], al
mov edx, dword [esp + 0x25c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x18]
push str._s_sned.
push eax
call fcn.004086ce
lea ecx, [esp + 0x20]
push 0x5c
push ecx
call fcn.00408890
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4048c3
inc ebx
jmp 0x4048c7
lea ebx, [esp + 0x14]
lea edx, [esp + 0x118]
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
jne 0x4048ff
lea ecx, [esp + 0x14]
mov byte [ebx], 0
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x24c
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x11c], 0x10
je 0x40493f
lea edi, [esp + 0x148]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x18]
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x11c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404906
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x18]
mov byte [ebx], 0
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x24c
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x24c
ret
Function at 0x404990
Capabilities:
Check os version

Disassembly:
sub esp, 0xcc
push esi
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x38]
xor esi, esi
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], 0x9c
call edi
test eax, eax
jne 0x4049dc
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0x94
push ecx
call edi
test eax, eax
jne 0x4049dc
pop edi
pop esi
add esp, 0xcc
ret
mov eax, dword [esp + 0x48]
dec eax
je 0x404aa5
dec eax
jne 0x404ab2
mov eax, dword [esp + 0x3c]
mov esi, 2
cmp eax, 5
jne 0x404a1e
mov eax, dword [esp + 0x40]
test eax, eax
jbe 0x404a1e
cmp eax, 1
mov esi, 6
jne 0x404a1e
cmp word [esp + 0xcc], 2
jb 0x404a1e
mov esi, 0xe
cmp byte [esp + 0xd2], 3
jne 0x404a39
or esi, 0x100
pop edi
mov eax, esi
pop esi
add esp, 0xcc
ret
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 8]
push 0x30
stosw word es:[edi], ax
push edx
push str.ProductType
push 0xa
stosb byte es:[edi], al
call fcn.00406a20
add esp, 0x10
test eax, eax
je 0x404ab2
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [esp + 8]
push eax
push str.LANMANNT
call edi
test eax, eax
jne 0x404a84
or esi, 0x100
lea ecx, [esp + 8]
push ecx
push str.SERVERNT
call edi
test eax, eax
jne 0x404ab2
or esi, 0x100
pop edi
mov eax, esi
pop esi
add esp, 0xcc
ret
mov eax, dword [esp + 0x40]
xor edx, edx
test eax, eax
setne dl
mov esi, edx
mov eax, esi
pop edi
pop esi
add esp, 0xcc
ret
Function at 0x406390
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x10c
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x114]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.00404e00
add esp, 8
lea edx, [esp + 8]
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
pop edi
jne 0x40640b
mov edx, dword [esp + 0x114]
mov eax, dword [esp]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10c
ret
Function at 0x406420
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x160
push ebx
push ebp
push esi
push edi
xor edx, edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x6d]
mov byte [esp + 0x6c], dl
mov dword [esp + 0x28], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
lea ebx, [esp + 0x6c]
rep stosd dword es:[edi], eax
mov edi, 0x41311c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x10], 0x5c
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [esp + 0x6c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov byte [esp + 0x11], 0x53
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x174]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x12], 0x70
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov al, 0x65
and ecx, 3
mov byte [esp + 0x15], al
rep movsb byte es:[edi], byte [esi]
mov cl, 0x74
mov bl, 0x72
mov byte [esp + 0x18], cl
mov byte [esp + 0x1a], al
mov byte [esp + 0x1c], al
mov byte [esp + 0x22], al
mov byte [esp + 0x24], cl
mov byte [esp + 0x25], al
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x13], 0x69
mov byte [esp + 0x14], 0x64
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], 0x6e
mov byte [esp + 0x19], 0x2e
mov byte [esp + 0x1b], 0x78
mov byte [esp + 0x1d], 0x22
mov byte [esp + 0x1e], 0x20
mov byte [esp + 0x1f], 0x2f
mov byte [esp + 0x20], 0x63
mov byte [esp + 0x21], bl
mov byte [esp + 0x23], 0x61
mov byte [esp + 0x26], dl
lea ebx, [esp + 0x6c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
push edx
push edx
push edx
push edx
lea ecx, [esp + 0x88]
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406578
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x160
ret
Function at 0x406820
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x114]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.00404e00
add esp, 8
lea edx, [esp + 8]
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4068b0
mov edx, dword [esp + 0x11c]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [esp + 0x120]
push 1
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x10c
ret

Function at 0x4068c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x114]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.00404e00
add esp, 8
lea edx, [esp + 8]
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
pop edi
jne 0x40695e
mov ecx, dword [esp]
lea edx, [esp + 0x118]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x124]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x406953
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10c
ret

Function at 0x406970
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov dword [esp + 0xc], 4
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x11c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00404e00
add esp, 8
lea edx, [esp + 4]
lea eax, [esp + 0x14]
push edx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x406a13
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 8]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406a08
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0x114
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
add esp, 0x114
ret
Function at 0x406a20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x11c]
push esi
dec eax
push edi
mov dword [esp + 0x124], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x118]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00404e00
add esp, 8
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [esp + 0x120]
test eax, eax
jne 0x406ad3
mov eax, dword [esp + 0x11c]
lea ecx, [esp + 0x124]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push esi
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406ac8
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x10c
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
add esp, 0x10c
ret

Function at 0x406af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x18]
push eax
push 0x20019
push 0
dec esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x406b5e
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 8]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406b53
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
xor eax, eax
pop esi
pop ecx
ret
Function at 0x407ed0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x158
push ebx
push ebp
push esi
push edi
xor edx, edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x65]
mov byte [esp + 0x64], dl
mov dword [esp + 0x20], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
lea ebx, [esp + 0x64]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, 0x41311c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
lea ebx, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x414404
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebx, [esp + 0x64]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Update.exe_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebx, [esp + 0x64]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x16c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
push edx
push edx
push edx
push edx
lea ecx, [esp + 0x80]
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x407fe4
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x158
ret