joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41320e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0xab9858]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x413254
cmp word [ebx], dx
jne 0x413254
or byte [eax + edi + 0x28], 4
jmp 0x413259
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4133bc
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41339c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41329a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4132d0
cmp eax, edx
jae 0x4132de
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x413275
jmp 0x4133bc
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413397
cmp dword [ebp - 0x18], 0
je 0x413397
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0xab9858]
test byte [eax + edi + 0x28], 0x48
je 0x41336d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x413331
mov word [esi], cx
jmp 0x413368
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0xab9858]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0xab9858]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0xab9858]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4133bc
pop eax
cmp word [ebp - 4], ax
jne 0x41337d
cmp esi, ebx
jne 0x41337d
mov word [esi], ax
jmp 0x4133b9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00413c47
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4133bc
push 0xd
pop eax
jmp 0x413378
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0xab9858]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4133b6
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4133bc
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100089c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x1008be80]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0x43f0066e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
sub eax, 0xfc1d22fb
je 0x10008b44
jmp 0x100089fb
mov eax, dword [ebp - 0x24]
sub eax, 0xd06a589
je 0x10008af2
jmp 0x10008a0e
mov eax, dword [ebp - 0x24]
sub eax, 0x43f0066e
je 0x10008a4c
jmp 0x10008a21
mov eax, dword [ebp - 0x24]
sub eax, 0x460a4066
je 0x10008a9a
jmp 0x10008a34
mov eax, dword [ebp - 0x24]
sub eax, 0x7ff511d7
je 0x10008ae6
jmp 0x10008a47
jmp 0x10008b4b
mov eax, dword [0x1008d374]
mov ecx, dword [0x1008d370]
mov edx, eax
add edx, 0x929bd12e
sub edx, 1
sub edx, 0x929bd12e
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xfc1d22fb
mov ecx, 0x460a4066
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x10008b4b
push eax
mov eax, esp
mov dword [ebp - 0x14], eax
mov eax, dword [0x1008d374]
mov ecx, dword [0x1008d370]
xor esi, esi
sub esi, 1
mov edx, eax
add edx, esi
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xfc1d22fb
mov ecx, 0x7ff511d7
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x10008b4b
mov dword [ebp - 0x18], 0xd06a589
jmp 0x10008b4b
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [ebp - 0x10]
mov edi, dword [edx]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x63
sub byte [edi], 0x27
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x10008b12
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.10025460
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x18], 0x460a4066
jmp 0x100089e5
Function at 0x1002a47c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1002a4bb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002a4bb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002a4bb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1002a4bb
cmp dword [ecx + 0x74], 0xe
jbe 0x1002a4bb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1002ce44
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1002cee1
push ebx
push esi
call fcn.1002ce0d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1002cda1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002ce8e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002cee0
push edi
push eax
call fcn.1002b742
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002ceae
call fcn.1002b790
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002cedf
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002cda1
add esp, 0x20
test eax, eax
jne 0x1002cecd
push edi
call fcn.1002b790
jmp 0x1002ced5
push ebx
call fcn.1002b790
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1002d14e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10035430
push 0x10035428
push str.FlsAlloc
push 0x1f
call fcn.1002d06a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002d182
push dword [ebp + 8]
mov ecx, esi
call dword [0x10033150]
call esi
jmp 0x1002d188
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002d1cc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10035440
push 0x10035438
push str.FlsGetValue
push 0x21
call fcn.1002d06a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002d203
push dword [ebp + 8]
mov ecx, esi
call dword [0x10033150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002d20b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10035448
push 0x10035440
push str.FlsSetValue
push 0x22
call fcn.1002d06a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002d245
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10033150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10032750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003277d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003277d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401744
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ecx + 0x28]
test edi, edi
jne 0x401768
push edi
push esi
push dword [ebp + 8]
push edx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setg al
jmp 0x401778
mov eax, dword [edi]
push esi
push dword [ebp + 8]
push edx
push edi
call dword [eax + 0xc]
test eax, eax
setns al
test al, al
jne 0x40177f
and dword [esi], 0
pop edi
movzx eax, al
pop esi
pop ebp
ret 8
Function at 0x4042ae
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x45b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
mov edx, ecx
push edi
push 0x105
lea ecx, [ebp - 0x210]
mov dword [ebx], 9
call fcn.0040ba65
lea ecx, [ebp - 0x210]
call fcn.00405c5d
mov edi, eax
xor esi, esi
test edi, edi
je 0x40430d
xor edx, edx
mov ecx, edi
call fcn.0040b79b
push edi
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40430d
test al, 0x10
jne 0x40430d
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d667
leave
ret
Function at 0x404c53
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x45b070]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x45cd0c], 0
jne 0x404d03
and dword [ebp - 0x6c], 0
lea eax, [ebp - 0x6c]
push esi
push eax
push 0x20019
push ecx
mov edx, str.SOFTWAREMicrosoftInternet_Explorer
mov dword [ebp - 0x70], 0x64
mov ecx, 0x80000002
call fcn.0040c046
xor esi, esi
inc esi
test eax, eax
jne 0x404ced
movzx eax, byte [ebp - 0x68]
xor ecx, ecx
cmp dword [ebp - 0x74], esi
cmove eax, ecx
mov byte [ebp - 0x68], al
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x74]
push eax
push ecx
push str.Version
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404ced
cmp word [ebp - 0x68], ax
je 0x404ced
push 0xa
pop edx
lea ecx, [ebp - 0x68]
call fcn.0040bd13
mov ecx, dword [0x45cd08]
cmp eax, 4
cmova ecx, esi
mov dword [0x45cd08], ecx
cmp dword [ebp - 0x6c], 0
mov dword [0x45cd0c], esi
pop esi
je 0x404d03
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [0x45cd08]
xor ecx, ebp
call fcn.0042d667
leave
ret

Function at 0x404d14
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x45b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov edi, ecx
push 0x20
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], esi
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404e1a
cmp word [ebp - 0x210], si
je 0x404e1a
push ebx
test edi, edi
je 0x404dcd
lea ecx, [ebp - 0x210]
mov ebx, esi
call fcn.0040b82d
mov ecx, dword [ebp - 0x210]
dec eax
mov dword [ebp - 0x218], eax
call fcn.0040bbef
mov cx, word [edi]
mov dx, ax
call fcn.0040bbef
cmp ax, dx
jne 0x404dbd
cmp ebx, dword [ebp - 0x218]
je 0x404dd3
inc ebx
mov cx, word [edi + ebx*2]
call fcn.0040bbef
mov cx, word [ebp + ebx*2 - 0x210]
mov dx, ax
call fcn.0040bbef
cmp dx, ax
je 0x404d96
movzx ecx, word [edi + ebx*2]
movzx eax, word [ebp + ebx*2 - 0x210]
sub ecx, eax
jmp 0x404dcf
mov ecx, esi
test ecx, ecx
jne 0x404e19
push esi
push 0x10
push 0x402335
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_DdeInitializeW]
mov edx, dword [ebp - 0x214]
mov ecx, edi
call fcn.00404e2a
mov esi, eax
test esi, esi
jne 0x404e04
mov ecx, edi
call fcn.00405040
mov esi, eax
cmp dword [ebp - 0x214], 0
je 0x404e19
push dword [ebp - 0x214]
call dword [sym.imp.USER32.dll_DdeUninitialize]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042d667
leave
ret
Function at 0x405c84
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x45b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, eax
mov dword [ebp - 0x4fc], eax
mov dword [ebp - 0x4f8], eax
mov ebx, edx
mov dword [ebp - 0x4f0], eax
mov edx, ecx
mov dword [ebp - 0x4f4], eax
lea eax, [ebp - 0x4fc]
push eax
push 0x20019
push ecx
mov ecx, Ordinal_1
call fcn.0040c046
test eax, eax
jne 0x405e64
lea eax, [ebp - 0x4f8]
mov edx, str.CurVer
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0x4fc]
call fcn.0040c046
test eax, eax
jne 0x405d86
movzx eax, byte [ebp - 0xd0]
xor ecx, ecx
cmp dword [ebp - 0x4ec], 1
mov dword [ebp - 0x500], 0xca
cmove eax, ecx
mov byte [ebp - 0xd0], al
lea eax, [ebp - 0x500]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x4ec]
push eax
push ecx
push ecx
push dword [ebp - 0x4f8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405d86
cmp dword [ebp - 0x4ec], 1
jne 0x405e64
cmp word [ebp - 0xd0], di
je 0x405d86
lea eax, [ebp - 0x4f0]
push eax
push 0x20019
push ecx
lea edx, [ebp - 0xd0]
mov ecx, Ordinal_1
call fcn.0040c046
test eax, eax
jne 0x405e64
push 0x105
mov edx, 0x433494
lea ecx, [ebp - 0x2dc]
call fcn.0040ba65
push 0x105
mov edx, ebx
lea ecx, [ebp - 0x2dc]
call fcn.0040bab0
push 0x105
mov edx, 0x433924
lea ecx, [ebp - 0x2dc]
call fcn.0040bab0
cmp dword [ebp - 0x4f0], edi
lea eax, [ebp - 0x4f4]
mov ecx, dword [ebp - 0x4fc]
lea edx, [ebp - 0x2dc]
cmovne ecx, dword [ebp - 0x4f0]
push eax
push 0x20019
push ecx
call fcn.0040c046
test eax, eax
jne 0x405e64
lea eax, [ebp - 0x504]
mov dword [ebp - 0x504], 0x208
push eax
push esi
lea eax, [ebp - 0x4ec]
xor edx, edx
push eax
push ecx
mov ecx, dword [ebp - 0x4f4]
call fcn.0040c0d9
test eax, eax
jne 0x405e64
cmp dword [ebp - 0x4ec], 1
je 0x405e2e
cmp dword [ebp - 0x4ec], 2
jne 0x405e64
cmp dword [ebp - 0x4ec], 2
jne 0x405e61
mov ebx, 0x104
lea ecx, [ebp - 0x4e8]
push ebx
mov edx, esi
call fcn.0040ba65
push ebx
push esi
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x405e64
xor edi, edi
inc edi
cmp dword [ebp - 0x4f4], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x405e7b
push dword [ebp - 0x4f4]
call esi
xor ebx, ebx
mov dword [ebp - 0x4f4], ebx
cmp dword [ebp - 0x4f0], ebx
je 0x405e93
push dword [ebp - 0x4f0]
call esi
mov dword [ebp - 0x4f0], ebx
cmp dword [ebp - 0x4f8], ebx
je 0x405ea9
push dword [ebp - 0x4f8]
call esi
mov dword [ebp - 0x4f8], ebx
cmp dword [ebp - 0x4fc], ebx
je 0x405ebf
push dword [ebp - 0x4fc]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d667
leave
ret 8
Function at 0x40792a
Capabilities:
Delete registry value

Disassembly:
push 0x20
mov eax, 0x42f5f2
call fcn.0042ece7
mov ebx, edx
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov edi, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x18]
mov edx, str.SOFTWARE
push eax
lea eax, [ebp - 0x28]
push eax
sub esp, 0x14
call fcn.0040c0a2
test eax, eax
jne 0x407a53
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
mov edx, 0x433ab4
push eax
sub esp, 0x14
call fcn.0040c0a2
test eax, eax
jne 0x407a53
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
mov edx, str.Internet_Explorer
push eax
sub esp, 0x14
call fcn.0040c0a2
test eax, eax
jne 0x407a53
cmp dword [ebp + 8], edi
mov eax, str.Default_HTML_Editor
mov ecx, dword [ebp - 0x14]
mov esi, str.Default_MHTML_Editor
cmove esi, eax
mov edx, esi
call fcn.0040957f
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
mov edx, esi
push eax
sub esp, 0x14
call fcn.0040c0a2
test eax, eax
jne 0x407a53
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
mov edx, 0x433aec
push eax
sub esp, 0x14
call fcn.0040c0a2
test eax, eax
jne 0x407a53
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
mov edx, 0x4333f8
push eax
sub esp, 0x14
call fcn.0040c0a2
test eax, eax
jne 0x407a53
push str.Description
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 0x1c]
xor esi, esi
push esi
mov ecx, ebx
call fcn.004091c6
call fcn.00404c53
test eax, eax
je 0x407a50
push esi
push esi
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
xor edi, edi
inc edi
cmp dword [ebp - 0x1c], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x407a64
push dword [ebp - 0x1c]
call esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x20], ebx
je 0x407a73
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x10], ebx
je 0x407a80
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x407a8d
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x24], ebx
je 0x407a9a
push dword [ebp - 0x24]
call esi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x28], ebx
je 0x407aa7
push dword [ebp - 0x28]
call esi
mov eax, edi
call fcn.0042ecc5
ret 4
Function at 0x409715
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov eax, ecx
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push esi
lea ecx, [ebp - 8]
mov dword [ebp - 4], esi
push ecx
push esi
mov ebx, edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409749
cmp dword [ebp - 8], 1
mov ecx, dword [ebp - 4]
je 0x40974b
mov ecx, esi
mov edi, dword [ebp + 0xc]
mov eax, 0x208
mov esi, dword [ebp + 8]
cmp ecx, eax
cmovb ecx, eax
add ecx, 2
mov dword [ebp - 4], ecx
cmp ecx, dword [edi]
jbe 0x409791
cmp dword [esi], 0
je 0x40977a
mov ecx, dword [esi]
call fcn.00402061
and dword [esi], 0
and dword [edi], 0
mov ecx, dword [ebp - 4]
call fcn.0040202c
mov dword [esi], eax
test eax, eax
je 0x4097b4
mov eax, dword [ebp - 4]
xor ecx, ecx
mov dword [edi], eax
mov eax, dword [esi]
mov word [eax], cx
lea eax, [ebp - 4]
mov edx, ebx
push eax
push dword [esi]
lea eax, [ebp - 8]
push eax
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.0040c0d9
test eax, eax
je 0x4097b1
mov ecx, dword [esi]
xor edx, edx
mov word [ecx], dx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409c87
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov ebx, edx
mov eax, ecx
xor esi, esi
mov dword [ebp - 0x14], ebx
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
call fcn.0040b82d
mov ecx, ebx
mov dword [ebp - 4], eax
call fcn.00409c32
mov ebx, eax
mov edi, 0x432850
test ebx, ebx
cmovne edi, ebx
xor eax, eax
cmp word [edi], ax
je 0x409cf2
mov eax, edi
push dword [ebp - 4]
mov edx, dword [ebp - 0xc]
lea ecx, [eax + 2]
cmp eax, edi
mov dword [ebp - 0x10], ecx
cmova eax, ecx
mov ecx, eax
call fcn.0040b8d8
test eax, eax
je 0x409d69
mov ecx, dword [ebp - 0x10]
push 0x3b
pop edx
call fcn.0040b844
test eax, eax
jne 0x409cc3
mov edx, dword [ebp - 4]
mov ecx, edi
lea edx, [edx + 2]
call fcn.0040baeb
mov esi, eax
test esi, esi
je 0x409d69
mov ecx, esi
call fcn.0040b82d
mov dword [ebp - 0x10], eax
lea ecx, [esi + eax*2]
cmp ecx, esi
jbe 0x409d1f
push 0x3b
pop eax
mov word [ecx], ax
add ecx, 2
mov edi, dword [ebp - 4]
test ecx, ecx
je 0x409d32
mov edx, dword [ebp - 0xc]
lea eax, [edi + 1]
push eax
call fcn.0040ba65
push 1
push dword [ebp - 0x14]
lea edx, [ebp - 8]
mov ecx, 0x80000002
call fcn.0040638e
test eax, eax
je 0x409d69
mov eax, dword [ebp - 0x10]
add eax, edi
lea eax, [eax*2 + 2]
push eax
push esi
push 1
xor eax, eax
push eax
push str.KnownIDs
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
je 0x409d74
mov ecx, ebx
call fcn.00402061
test esi, esi
je 0x409d7f
mov ecx, esi
call fcn.00402061
cmp dword [ebp - 8], 0
pop edi
pop esi
pop ebx
je 0x409d91
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x40beee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x45b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x220]
push edi
push eax
push 0x20219
xor ebx, ebx
mov edi, str.SoftwareMicrosoftOffice16.0common_filespaths
push ebx
push edi
push 0x80000002
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
call esi
test eax, eax
jne 0x40c00f
lea eax, [ebp - 0x21c]
push eax
push 0x20119
push ebx
push edi
push 0x80000002
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40c007
movzx eax, byte [ebp - 0x210]
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x218], 0x20a
inc edx
mov esi, ebx
cmp dword [ebp - 0x214], edx
cmove eax, ecx
mov byte [ebp - 0x210], al
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push str.mso.dll
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bffd
cmp dword [ebp - 0x214], 1
jne 0x40bffd
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x20a
push eax
lea eax, [ebp - 0x210]
mov byte [ebp - 0x210], bl
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push str.mso.dll
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bffd
inc eax
cmp dword [ebp - 0x214], eax
cmove esi, eax
push dword [ebp - 0x21c]
call edi
mov ebx, esi
push dword [ebp - 0x220]
call edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d667
leave
ret