joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4980ec
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov bl, 1
lea esi, [ebp - 0x421]
mov eax, edi
mov edx, ebx
call fcn.00497ea0
mov byte [esi], al
inc ebx
inc esi
cmp bl, 0x41
jne 0x498108
mov bl, 0x1c
mov esi, 0x4b0074
lea edi, [ebp - 0x41]
movzx edx, byte [esi]
mov eax, dword [ebp - 8]
call fcn.00497ea0
mov byte [edi], al
movzx edx, byte [esi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.00497ea0
mov byte [edi + 0x1c], al
inc edi
inc esi
dec bl
jne 0x498124
mov bl, 1
lea esi, [ebp - 0x3a1]
mov ecx, esi
lea eax, [ebp - 0x421]
mov edx, ebx
call fcn.00498080
inc ebx
add esi, 0x30
cmp bl, 0x11
jne 0x49814e
mov bl, 1
mov eax, 0x4affa4
lea edx, [ebp - 0xa1]
cmp bl, 0x20
ja 0x498187
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
jmp 0x498194
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
inc ebx
inc edx
inc eax
cmp bl, 0x41
jne 0x498173
mov byte [ebp - 9], 1
lea esi, [ebp - 0x3a1]
cmp byte [ebp + 8], 0
je 0x4981be
lea ecx, [ebp - 0x61]
mov edx, esi
lea eax, [ebp - 0x81]
call fcn.00497f08
jmp 0x4981e5
movzx eax, byte [ebp - 9]
mov edx, 0x11
sub edx, eax
mov eax, edx
add eax, eax
lea eax, [eax + eax*2]
lea edx, [ebp + eax*8 - 0x3d1]
lea ecx, [ebp - 0x61]
lea eax, [ebp - 0x81]
call fcn.00497f08
mov bl, 0x20
lea eax, [ebp - 0xa1]
movzx edx, byte [eax]
xor byte [eax + 0x40], dl
inc eax
dec bl
jne 0x4981ed
push esi
lea esi, [ebp - 0x81]
lea edi, [ebp - 0xa1]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea esi, [ebp - 0x61]
lea edi, [ebp - 0x81]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
inc byte [ebp - 9]
add esi, 0x30
cmp byte [ebp - 9], 0x11
jne 0x4981a6
mov bl, 0x40
mov esi, 0x4affe4
lea eax, [ebp - 0x3e1]
movzx edx, byte [esi]
cmp dl, 0x20
ja 0x498253
movzx edx, dl
movzx edx, byte [ebp + edx - 0x82]
mov byte [eax], dl
jmp 0x498260
movzx edx, dl
movzx edx, byte [ebp + edx - 0xc2]
mov byte [eax], dl
inc eax
inc esi
dec bl
jne 0x49823c
mov bl, 1
lea esi, [ebp - 0x3e1]
movzx ecx, byte [esi]
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.00497ec8
inc ebx
inc esi
cmp bl, 0x41
jne 0x49826e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49de84
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, ecx
mov dword [esp], edx
mov ebp, eax
xor esi, esi
mov ebx, dword [esp]
jmp 0x49de98
inc ebx
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
test edx, edx
jg 0x49de97
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
mov ebx, eax
mov eax, edi
mov edx, ebx
call fcn.00404e2c
xor ebx, ebx
cmp esi, dword [esp]
jge 0x49dffa
inc ebx
mov eax, edi
call fcn.00404cf8
movzx edx, byte [ebp + esi]
and dl, 0xfc
movzx edx, dl
shr edx, 2
movzx edx, byte [edx + 0x4b0438]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 1]
cmp eax, dword [esp]
jge 0x49dfb3
inc ebx
mov eax, edi
call fcn.00404cf8
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [ebp + esi + 1]
and cl, 0xf0
movzx ecx, cl
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + 0x4b0438]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 2]
cmp eax, dword [esp]
jge 0x49df82
inc ebx
mov eax, edi
call fcn.00404cf8
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [ebp + esi + 2]
and cl, 0xc0
movzx ecx, cl
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + 0x4b0438]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.00404cf8
movzx edx, byte [ebp + esi + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + 0x4b0438]
mov byte [eax + ebx - 1], dl
jmp 0x49dfee
inc ebx
mov eax, edi
call fcn.00404cf8
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx edx, byte [edx + 0x4b0438]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.00404cf8
mov byte [eax + ebx - 1], 0x3d
jmp 0x49dfee
inc ebx
mov eax, edi
call fcn.00404cf8
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edx, byte [edx + 0x4b0438]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.00404cf8
mov byte [eax + ebx - 1], 0x3d
inc ebx
mov eax, edi
call fcn.00404cf8
mov byte [eax + ebx - 1], 0x3d
add esi, 3
cmp esi, dword [esp]
jl 0x49deca
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x49e1d4
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404aa0
mov dword [ebp - 0xc], eax
cmp byte [ebp + 0xc], 0
je 0x49e233
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [esi]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
call fcn.0049e140
mov ebx, eax
cmp ebx, dword [esi]
jle 0x49e3ba
mov eax, dword [ebp - 4]
call fcn.00404ca0
mov edx, dword [esi]
dec edx
add eax, edx
mov edx, ebx
sub edx, dword [esi]
mov ecx, edi
call fcn.0049de84
mov dword [esi], ebx
jmp 0x49e3ba
xor ebx, ebx
mov edx, dword [ebp - 8]
add edx, 3
mov eax, edi
call fcn.00404e2c
jmp 0x49e3a6
inc ebx
cmp ebx, dword [ebp - 8]
jle 0x49e253
dec ebx
jmp 0x49e3b1
mov eax, edi
call fcn.00404cf8
mov edx, dword [esi]
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + edx - 1]
and dl, 0xfc
movzx edx, dl
shr edx, 2
movzx edx, byte [edx + 0x4b0438]
mov byte [eax + ebx - 1], dl
mov eax, dword [esi]
inc eax
cmp eax, dword [ebp - 0xc]
jg 0x49e363
inc ebx
mov eax, edi
call fcn.00404cf8
lea eax, [eax + ebx - 1]
push eax
mov eax, dword [esi]
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
and al, 3
movzx eax, al
shl eax, 4
mov edx, dword [esi]
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + edx]
and dl, 0xf0
movzx edx, dl
shr edx, 4
add eax, edx
movzx eax, byte [eax + 0x4b0438]
pop edx
mov byte [edx], al
mov eax, dword [esi]
add eax, 2
cmp eax, dword [ebp - 0xc]
jg 0x49e32e
inc ebx
mov eax, edi
call fcn.00404cf8
lea eax, [eax + ebx - 1]
push eax
mov eax, dword [esi]
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax]
and al, 0xf
movzx eax, al
add eax, eax
add eax, eax
mov edx, dword [esi]
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + edx + 1]
and dl, 0xc0
movzx edx, dl
shr edx, 6
add eax, edx
movzx eax, byte [eax + 0x4b0438]
pop edx
mov byte [edx], al
inc ebx
mov eax, edi
call fcn.00404cf8
mov edx, dword [esi]
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + edx + 1]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + 0x4b0438]
mov byte [eax + ebx - 1], dl
jmp 0x49e3a3
inc ebx
mov eax, edi
call fcn.00404cf8
mov edx, dword [esi]
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + edx]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx edx, byte [edx + 0x4b0438]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.00404cf8
mov byte [eax + ebx - 1], 0x3d
jmp 0x49e3a3
inc ebx
mov eax, edi
call fcn.00404cf8
mov edx, dword [esi]
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + edx - 1]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edx, byte [edx + 0x4b0438]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.00404cf8
mov byte [eax + ebx - 1], 0x3d
inc ebx
mov eax, edi
call fcn.00404cf8
mov byte [eax + ebx - 1], 0x3d
add dword [esi], 3
mov eax, dword [esi]
cmp eax, dword [ebp - 0xc]
jle 0x49e247
mov eax, edi
mov edx, ebx
call fcn.00404e2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49f968
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebp, ecx
mov dword [esp], edx
mov esi, eax
movzx edx, byte [esi]
mov byte [esp + 4], dl
shl edx, 7
and dl, 0xff
movzx eax, byte [esi + 1]
movzx ecx, al
shr ecx, 1
or dl, cl
mov byte [esp + 5], dl
shl eax, 6
and al, 0xff
movzx edx, byte [esi + 2]
movzx ecx, dl
shr ecx, 2
or al, cl
mov byte [esp + 6], al
shl edx, 5
and dl, 0xff
movzx eax, byte [esi + 3]
movzx ecx, al
shr ecx, 3
or dl, cl
mov byte [esp + 7], dl
shl eax, 4
and al, 0xff
movzx edx, byte [esi + 4]
shr edx, 4
or al, dl
mov byte [esp + 8], al
movzx eax, byte [esi + 4]
add eax, eax
add eax, eax
add eax, eax
and al, 0xff
movzx edx, byte [esi + 5]
shr edx, 5
or al, dl
mov byte [esp + 9], al
movzx eax, byte [esi + 5]
add eax, eax
add eax, eax
and al, 0xff
movzx edx, byte [esi + 6]
shr edx, 6
or al, dl
mov byte [esp + 0xa], al
movzx eax, byte [esi + 6]
add eax, eax
and al, 0xff
mov byte [esp + 0xb], al
mov edi, 8
lea eax, [esp + 4]
mov edx, 1
xor esi, esi
mov ecx, edx
movzx ebx, byte [eax]
shl ebx, cl
mov ecx, ebx
xor ecx, esi
and ecx, 1
mov esi, ecx
inc edx
cmp edx, 8
jne 0x49fa19
movzx edx, byte [eax]
and dl, 0xfe
mov ecx, esi
or dl, cl
mov byte [eax], dl
inc eax
dec edi
jne 0x49fa14
mov eax, ebp
mov edx, 8
call fcn.00404e2c
push 1
mov eax, ebp
call fcn.00404cf8
mov edx, eax
lea ecx, [esp + 8]
mov eax, dword [esp + 4]
call fcn.004980ec
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a958c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a9778
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4a9790
mov eax, dword [ebx + 0x340]
call fcn.0044394c
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402b10
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0040991c
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0040d9ec
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x361]
mov ecx, 0x4a97b4
call fcn.00404aec
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x361]
call fcn.00404878
mov eax, dword [ebp - 4]
call fcn.00404ca0
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
lea eax, [ebp - 0x14]
call fcn.004a894c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x365]
call fcn.0047ab64
mov edx, dword [ebx + 0x361]
mov eax, dword [ebx + 0x365]
call fcn.0047ab08
mov eax, dword [ebx + 0x365]
mov eax, dword [eax + 0x5d]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebx + 0x33c]
mov eax, dword [eax + 0x244]
call fcn.004717a8
mov edi, eax
test edi, edi
jle 0x4a96b2
mov esi, 1
mov edx, esi
dec edx
mov eax, dword [ebx + 0x33c]
mov eax, dword [eax + 0x244]
call fcn.004717e0
call fcn.004710e4
test al, al
je 0x4a96ae
mov edx, esi
dec edx
mov eax, dword [ebx + 0x33c]
mov eax, dword [eax + 0x244]
call fcn.004717e0
mov edx, dword [eax + 0x24]
mov eax, dword [ebx + 0x365]
mov eax, dword [eax + 0x5d]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec edi
jne 0x4a966c
mov esi, dword [ebx + 0x365]
push esi
lea edi, [esi + 0x69]
mov esi, 0x4a97c0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
mov eax, esi
call fcn.0047bbac
mov eax, dword [ebx + 0x365]
cmp dword [eax + 0x1a9], 0
jne 0x4a96f1
mov ecx, 0x4a97d4
mov dl, 1
mov eax, dword [0x407ddc]
call fcn.0040cca0
call fcn.004041ec
cmp dword [ebx + 0x355], 0x500000
jbe 0x4a9707
mov dword [ebx + 0x355], 0x500000
mov eax, dword [ebx + 0x365]
mov esi, dword [eax + 0x1a9]
cmp esi, dword [ebx + 0x355]
jbe 0x4a975d
mov dword [ebp - 0x24], esi
xor eax, eax
mov dword [ebp - 0x20], eax
fild qword [ebp - 0x24]
fdiv dword [0x4a9854]
call fcn.00402bd8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x10
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, 0x4a9860
mov dl, 1
mov eax, dword [0x407ddc]
call fcn.0040ccdc
call fcn.004041ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a977f
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404804
ret
Function at 0x4057c0
Capabilities:
Listen for remote procedure calls

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
xor eax, eax
mov edx, 0x6c0074
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x54
mov word [ebp - 0x38], ax
mov eax, 0x630063
movdqu xmm0, xmmword [str.ncacn_nppipe_sv]
mov dword [ebp - 0x14], edx
xor edx, edx
movups xmmword [ebp - 0x48], xmm0
movdqu xmm0, xmmword [0x40ec60]
mov dword [ebp - 0x18], eax
mov word [ebp - 0x10], dx
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.kernel32.dll_CreateThreadpoolCleanupGroup]
mov dword [0x415004], eax
test eax, eax
je 0x4058c0
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x48]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.rpcrt4.dll_RpcServerUseProtseqEpW]
sub esp, 0x10
mov ebx, eax
test eax, eax
je 0x405860
test byte [section..data], 2
jne 0x405950
lea esp, [ebp - 8]
mov eax, ebx
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [0x40c188]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.rpcrt4.dll_RpcServerRegisterIf]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4058e8
test byte [section..data], 2
je 0x405852
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RpcServerRegisterIf_failed_with_error__lu_n
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x405852
test byte [section..data], 2
jne 0x405988
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
lea esp, [ebp - 8]
pop ecx
mov eax, ebx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 8], 1
mov dword [esp + 4], 0x4d2
mov dword [esp], 1
call dword [sym.imp.rpcrt4.dll_RpcServerListen]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4059c0
test byte [section..data], 2
je 0x405852
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RpcServerListen_failed_with_error__lu_n
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x405852
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RpcServerUseProtseq_failed_with_error__lu_n
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 8]
mov eax, ebx
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], 0x40e4f4
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4058cd
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x415000
mov dword [esp + 4], 0x3e8
mov dword [esp], 0xffffffff
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
sub esp, 0x10
jmp 0x405852
Function at 0x405b50
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0x18
test ecx, ecx
je 0x405bb0
cmp word [ecx], 0
mov eax, ecx
je 0x405bd0
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x405b70
sub eax, ebx
add eax, 2
mov dword [esp + 0x10], ebx
mov dword [esp], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], edx
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
sub esp, 8
cmp eax, 2
cmove eax, ebx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, 2
jmp 0x405b7e

Function at 0x405be0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
sub esp, 0x1c
test ecx, ecx
je 0x405c3c
cmp word [ecx], 0
mov eax, ecx
je 0x405c5d
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405bf8
add eax, 2
cmp word [eax], 0
jne 0x405bf8
sub eax, ecx
add eax, 2
mov dword [esp], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 7
mov dword [esp + 8], 0
mov dword [esp + 4], edx
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov esi, dword [ebp - 4]
sub esp, 0x18
leave
ret
mov dword [ebp - 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 4]
sub esp, 8
cmp eax, 2
leave
cmove eax, ecx
ret
mov eax, 2
jmp 0x405c0f
Function at 0x4074f0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
lea ecx, [ebp + 8]
sub esp, 8
mov ebx, dword [ecx]
mov edi, dword [ebx + 8]
lea esi, [edi + 0x18]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
lock sub dword [ebx + 0xc], 1
jne 0x40751f
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x407538
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
sub esp, 8
mov dword [edx + 4], eax
mov edx, dword [ebx]
mov dword [eax], edx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [esp], ebx
call sym._free_service_entry
jmp 0x40751f

Function at 0x4076d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 8]
mov edi, dword [esi + 8]
lea eax, [edi + 0x18]
add edi, 0x10
mov dword [ebp - 0x10], eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [esp + 4], 0
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov ebx, dword [edi]
sub esp, 8
cmp edi, ebx
jne 0x40771e
jmp 0x407743
mov ebx, dword [ebx]
cmp ebx, edi
je 0x407743
cmp dword [ebx + 0x68], esi
jne 0x407718
mov dword [ebx + 0x18], 1
mov dword [ebx + 0x68], 0
sub dword [esi + 0x10], 1
mov dword [esp], esi
call sym._release_process
mov ebx, dword [ebx]
cmp ebx, edi
jne 0x40771e
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x409090
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x10]
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [eax], 0
lea eax, [ebp - 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
je 0x409108
mov edi, eax
cmp eax, 2
je 0x4091e0
xor ecx, ecx
test byte [0x40c080], 2
jne 0x409128
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x409168
cmp eax, 2
jne 0x40911c
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x409168
mov edi, 0x70c
jmp 0x4090e7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Error__ld_while_reading_value__s_n
mov dword [esp + 8], 0x40f890
mov dword [esp + 4], 0x40c080
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
mov ecx, dword [ebp - 0x18]
jmp 0x4090f2
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x1c], eax
call eax
mov dword [esp + 0xc], esi
mov ecx, eax
lea eax, [ebp - 0x14]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov dword [esp], eax
call ebx
mov ecx, dword [ebp - 0x18]
sub esp, 0x18
test eax, eax
mov edi, eax
jne 0x4090e9
mov eax, dword [ebp - 0x14]
xor edx, edx
and eax, 0xfffffffe
cmp dword [ebp - 0x10], 2
mov word [ecx + eax], dx
je 0x4091f0
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor edi, edi
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov dword [esp], ecx
mov esi, dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call esi
mov ecx, dword [ebp - 0x18]
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x14], eax
mov ebx, eax
jne 0x409230
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
jmp 0x4090e9
lea eax, [eax + eax]
mov dword [ebp - 0x18], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov ecx, dword [ebp - 0x18]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [ebp - 0x1c], eax
call esi
mov ecx, dword [ebp - 0x18]
sub esp, 0xc
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
jmp 0x4090fb
Function at 0x409270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x14]
lea esi, [ebp - 0x10]
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [ebp - 0x18], eax
call eax
sub esp, 0x18
test eax, eax
je 0x409330
mov ebx, eax
xor edx, edx
cmp eax, 2
je 0x4093d0
test byte [0x40c080], 2
jne 0x4092f0
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Error__ld_while_reading_value__s_n
mov dword [esp + 8], str.load_reg_multisz
mov dword [esp + 4], 0x40c080
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
mov edx, dword [ebp - 0x18]
jmp 0x4092d4
mov eax, dword [ebp - 0x10]
cmp eax, 7
je 0x409360
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x409344
cmp eax, 1
je 0x409360
mov ebx, 0x70c
xor edx, edx
test byte [0x40c080], 2
je 0x4092d4
jmp 0x4092f0
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x14], edi
mov dword [ebp - 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x18]
call eax
mov edx, dword [ebp - 0x1c]
sub esp, 0x18
test eax, eax
mov ebx, eax
jne 0x4092cb
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
xor esi, esi
xor edx, edx
and eax, 0xfffffffe
mov word [ecx + eax], dx
mov word [ecx + eax + 2], si
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 2
xor ebx, ebx
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret