joyce8/EMBER2024-capa huggingface dataset:
Function at 0x677250
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x80
call fcn.00564f40
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor eax, eax
push edi
test esi, esi
je 0x67727b
mov ebx, dword [esp + 0x94]
mov eax, 1
mov dword [ebx], esi
jmp 0x67728d
mov ebx, dword [esp + 0x94]
mov ecx, dword [ebx]
mov dword [esp + 0xa0], ecx
mov esi, ecx
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x677433
push esi
call fcn.0066ed30
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x6772c3
push str.j____int_sizeof_ctx__key_
push 0x68
push str..cryptohmachmac.c
call fcn.0064d440
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0x677320
mov edx, dword [esp + 0xa4]
lea edi, [ebx + 4]
push edx
push esi
push edi
call fcn.006600a0
add esp, 0xc
test eax, eax
je 0x677426
mov eax, dword [esp + 0x98]
push ebp
push eax
push edi
call fcn.00660250
add esp, 0xc
test eax, eax
je 0x677426
lea esi, [ebx + 0x4c]
lea ecx, [ebx + 0x50]
push esi
push ecx
push edi
call fcn.00660380
add esp, 0xc
test eax, eax
je 0x677426
jmp 0x67735f
test ebp, ebp
jl 0x67732c
cmp ebp, 0x80
jle 0x677340
push str.len_0__len__int_sizeof_ctx__key_
push 0x75
push str..cryptohmachmac.c
call fcn.0064d440
add esp, 0xc
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov edx, ecx
lea edi, [ebx + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x4c]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0x677384
mov ecx, 0x80
xor eax, eax
sub ecx, esi
lea edi, [esi + ebx + 0x50]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xa0]
xor eax, eax
mov cl, byte [ebx + eax + 0x50]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x67738d
mov ebp, dword [esp + 0xa4]
lea edi, [ebx + 0x1c]
push ebp
push esi
push edi
call fcn.006600a0
add esp, 0xc
test eax, eax
je 0x677426
push esi
call fcn.0066ed30
lea edx, [esp + 0x14]
push eax
push edx
push edi
call fcn.00660250
add esp, 0x10
test eax, eax
je 0x677426
xor eax, eax
mov cl, byte [ebx + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x6773d4
lea edi, [ebx + 0x34]
push ebp
push esi
push edi
call fcn.006600a0
add esp, 0xc
test eax, eax
je 0x677426
push esi
call fcn.0066ed30
lea edx, [esp + 0x14]
push eax
push edx
push edi
call fcn.00660250
add esp, 0x10
test eax, eax
je 0x677426
lea eax, [ebx + 0x1c]
add ebx, 4
push eax
push ebx
call fcn.00660420
add esp, 8
test eax, eax
jne 0x67743c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret
test eax, eax
je 0x677412
jmp 0x67738b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x80
ret
Function at 0x6a0af0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.00564f40
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
xor eax, eax
mov ebx, dword [esi + 0x160]
mov dword [esi], eax
mov dword [esi + 8], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
cmp edi, 0xc
mov dword [ebp - 4], ebx
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x16c], eax
mov dword [esi + 0x168], eax
jne 0x6a0b68
mov eax, dword [ebp + 0xc]
mov ecx, esi
mov edi, 1
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov byte [esi + 0xf], 1
mov dword [ecx + 8], eax
jmp 0x6a0c7b
cmp edi, 0x10
mov dword [ebp - 0xc], edi
jb 0x6a0bb1
mov eax, edi
shr eax, 4
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
mov eax, esi
sub ecx, esi
mov edx, 0x10
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
dec edx
jne 0x6a0b84
mov ebx, dword [ebp - 4]
lea ecx, [esi + 0x60]
push ecx
push esi
call ebx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add esp, 8
add edx, 0x10
sub edi, 0x10
dec eax
mov dword [ebp + 0xc], edx
mov dword [ebp + 8], eax
jne 0x6a0b78
xor eax, eax
cmp edi, eax
je 0x6a0bd1
jbe 0x6a0bc7
mov ecx, dword [ebp + 0xc]
mov eax, esi
sub ecx, esi
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec edi
jne 0x6a0bbe
lea eax, [esi + 0x60]
push eax
push esi
call ebx
add esp, 8
mov eax, dword [ebp - 0xc]
mov ecx, 3
xor edx, edx
call fcn.006f5e10
mov edi, edx
mov dl, byte [esi + 8]
mov ecx, edi
mov ebx, eax
mov al, byte [esi + 9]
mov dword [ebp - 8], edi
shr ecx, 0x18
xor dl, cl
mov cl, byte [esi + 0xa]
mov byte [esi + 8], dl
mov edx, edi
shr edx, 0x10
xor al, dl
mov dl, byte [esi + 0xb]
mov byte [esi + 9], al
mov eax, edi
shr eax, 8
xor cl, al
mov eax, ebx
mov byte [esi + 0xa], cl
mov cl, byte [ebp - 8]
xor dl, cl
mov ecx, 0x18
mov byte [esi + 0xb], dl
mov edx, edi
call fcn.00584710
mov cl, byte [esi + 0xc]
mov edx, edi
xor cl, al
mov eax, ebx
mov byte [esi + 0xc], cl
mov ecx, 0x10
call fcn.00584710
mov dl, byte [esi + 0xd]
mov ecx, 8
xor dl, al
mov eax, ebx
mov byte [esi + 0xd], dl
mov edx, edi
call fcn.00584710
mov cl, byte [esi + 0xe]
lea edx, [esi + 0x60]
xor cl, al
mov al, byte [esi + 0xf]
xor al, bl
push edx
push esi
mov byte [esi + 0xe], cl
mov byte [esi + 0xf], al
call dword [ebp - 4]
mov eax, dword [esi + 0xc]
add esp, 8
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
bswap eax
mov edi, eax
mov ecx, dword [esi + 0x174]
lea edx, [esi + 0x20]
push ecx
push edx
push esi
call dword [esi + 0x170]
add esp, 0xc
inc edi
mov dword [ebp + 0xc], edi
mov eax, dword [ebp + 0xc]
bswap eax
mov dword [esi + 0xc], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6a7150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.00564f40
mov eax, dword [ebp + 0x20]
push ebx
push esi
push edi
mov ecx, dword [eax]
test ecx, ecx
mov dword [ebp - 4], ecx
je 0x6a719d
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x6a719d
mov edx, dword [ebp + 0x1c]
mov esi, dword [ebp + 8]
mov dl, byte [ecx + edx]
mov al, byte [esi]
xor dl, al
mov eax, dword [ebp + 0xc]
mov byte [eax], dl
mov edx, dword [ebp + 0x10]
inc eax
inc esi
dec edx
inc ecx
and ecx, 0xf
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], esi
mov dword [ebp + 0x10], edx
mov dword [ebp - 4], ecx
jne 0x6a716c
mov esi, dword [ebp + 0x18]
mov eax, dword [esi + 0xc]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x18]
bswap eax
mov ebx, eax
mov eax, dword [ebp + 0x10]
cmp eax, 0x10
jb 0x6a722d
mov edi, dword [ebp + 0x10]
shr edi, 4
add ebx, edi
cmp ebx, edi
mov dword [ebp + 0x18], ebx
jae 0x6a71cb
sub edi, ebx
xor ebx, ebx
mov dword [ebp + 0x18], ebx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push ecx
push edi
push edx
push eax
call dword [ebp + 0x24]
add esp, 0x14
mov eax, dword [ebp + 0x18]
bswap eax
test ebx, ebx
mov dword [esi + 0xc], eax
jne 0x6a720a
mov cl, byte [esi + 0xb]
mov eax, 0xb
inc cl
mov byte [esi + 0xb], cl
jne 0x6a720a
test eax, eax
je 0x6a720a
mov cl, byte [eax + esi - 1]
dec eax
inc cl
mov byte [eax + esi], cl
je 0x6a71fa
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
shl edi, 4
sub eax, edi
add ecx, edi
add edx, edi
cmp eax, 0x10
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], edx
jae 0x6a71b5
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x6a72be
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
mov edx, edi
xor ecx, ecx
push esi
push eax
mov dword [edx], ecx
push 1
push edi
push edi
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
call dword [ebp + 0x24]
add esp, 0x14
inc ebx
mov dword [ebp + 0x18], ebx
mov eax, dword [ebp + 0x18]
bswap eax
test ebx, ebx
mov dword [esi + 0xc], eax
jne 0x6a7288
mov cl, byte [esi + 0xb]
mov eax, 0xb
inc cl
mov byte [esi + 0xb], cl
jne 0x6a7288
test eax, eax
je 0x6a7288
mov cl, byte [eax + esi - 1]
dec eax
inc cl
mov byte [eax + esi], cl
je 0x6a7278
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
dec ecx
sub esi, edi
sub edx, edi
inc ecx
lea eax, [ebx + edi]
add ebx, ecx
mov dword [ebp - 4], ebx
mov bl, byte [esi + eax]
xor bl, byte [eax]
inc eax
dec ecx
mov byte [edx + eax - 1], bl
jne 0x6a72a2
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x20]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x6ab6b0
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x6ab796
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x18]
cmp edi, 3
jl 0x6ab723
xor edx, edx
xor eax, eax
mov dh, byte [esi]
mov al, byte [esi + 2]
mov dl, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
inc ecx
and edx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x6ab77a
xor edx, edx
mov dl, byte [esi]
shl edx, 0x10
cmp edi, 2
jne 0x6ab736
xor eax, eax
mov ah, byte [esi + 1]
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
cmp edi, 1
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
jne 0x6ab766
mov ebx, 0x3d
jmp 0x6ab774
shr edx, 6
and edx, 0x3f
xor ebx, ebx
mov bl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x6ab6ca
pop esi
pop ebx
mov eax, ebp
pop edi
mov byte [ecx], 0
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov eax, ebp
pop edi
pop ebp
mov byte [ecx], 0
ret
Function at 0x6d77a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov ecx, dword [eax + 4]
push edi
cmp ecx, dword [ebx + 4]
jge 0x6d77b9
mov esi, ebx
mov ebx, eax
jmp 0x6d77bb
mov esi, eax
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 4]
cmp eax, dword [edi + 8]
jg 0x6d77cb
mov eax, edi
jmp 0x6d77d5
push eax
push edi
call fcn.0065db70
add esp, 8
test eax, eax
jne 0x6d77dd
pop edi
pop esi
pop ebx
ret
mov ecx, dword [ebx + 4]
xor eax, eax
test ecx, ecx
jle 0x6d7801
push ebp
mov edx, dword [esi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
mov ebp, dword [ecx + eax*4]
mov ecx, dword [edi]
xor edx, ebp
mov dword [ecx + eax*4], edx
mov ecx, dword [ebx + 4]
inc eax
cmp eax, ecx
jl 0x6d77e7
pop ebp
cmp eax, dword [esi + 4]
jge 0x6d7818
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
mov ecx, dword [esi + 4]
inc eax
cmp eax, ecx
jl 0x6d7806
mov eax, dword [esi + 4]
test eax, eax
mov dword [edi + 4], eax
jle 0x6d7839
mov ecx, dword [edi]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x6d7836
dec eax
test eax, eax
jg 0x6d7828
mov dword [edi + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x6f7b07
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x6f7b38
call fcn.005678b3
mov dword [eax], esi
call fcn.005678a0
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0056544b
add esp, 0x14
or eax, 0xffffffff
jmp 0x6f7b73
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x6f7b55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005678c6
pop ecx
jmp 0x6f7b33
test byte [ebp + 0xc], 0x80
je 0x6f7b60
and eax, 0xfffffffe
jmp 0x6f7b63
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x6f7b46
xor eax, eax
pop esi
pop ebp
ret

Function at 0x6f87b5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x6f87e6
call fcn.005678b3
mov dword [eax], esi
call fcn.005678a0
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0056544b
add esp, 0x14
push 0x16
pop eax
jmp 0x6f883b
test dword [ebp + 0xc], 0xfffffff9
jne 0x6f87c2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x6f8813
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005678c6
pop ecx
call fcn.005678a0
mov eax, dword [eax]
jmp 0x6f883b
test al, 0x10
jne 0x6f8839
test al, 1
je 0x6f8839
test byte [ebp + 0xc], 2
je 0x6f8839
call fcn.005678b3
mov dword [eax], 5
call fcn.005678a0
mov dword [eax], 0xd
jmp 0x6f880a
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4019c2
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, str.SHCore.dll
push ebx
push esi
push edi
push 0x800
call fcn.00401916
mov esi, eax
test esi, esi
je 0x401a05
push str.SetProcessDpiAwareness
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4019f6
push 2
call eax
jmp 0x4019fc
call dword [sym.imp.USER32.dll_SetProcessDPIAware]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401a0b
call dword [sym.imp.USER32.dll_SetProcessDPIAware]
xor ebx, ebx
push ebx
push 0x40d1a8
push 0x40d784
mov dword [ebp - 4], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov eax, dword [ebp + 8]
mov dword [0x40da60], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call dword [sym.imp.KERNEL32.dll_GetSystemDEPPolicy]
cmp eax, 2
jne 0x401a42
push 1
call dword [sym.imp.KERNEL32.dll_SetProcessDEPPolicy]
push str.WM_CHECK_VER
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x40d790], eax
mov edi, ebx
jmp 0x401a58
xor ebx, ebx
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
push 0xffffffffffffffff
push 1
push ebx
call fcn.0040535d
mov esi, dword [ebp + 8]
mov bl, al
test bl, bl
je 0x401a77
cmp esi, 0xffffffff
jne 0x401a88
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 5
jl 0x401a56
test bl, bl
je 0x401ad8
cmp esi, 0xffffffff
je 0x401ad8
test esi, esi
je 0x401b28
mov eax, dword [0x40d790]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x401ae3
xor ebx, ebx
push ebx
push ebx
push eax
push esi
call edi
cmp eax, 0xf
je 0x401ae3
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x8642
push eax
push ebx
push 0x4a
push esi
mov dword [ebp - 0xc], 0x14
mov dword [ebp - 8], str._tsr_exit
call edi
test eax, eax
jne 0x401b28
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x10], 0x8642
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x401af7
sub ecx, ebx
mov dword [ebp - 8], edx
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
xor eax, eax
push eax
push 0x4a
push esi
call edi
neg eax
sbb eax, eax
neg eax
jmp 0x401ada
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
call fcn.00401e42
jmp 0x401ada
Function at 0x401fef
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x40d118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40d804]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x120], ecx
push edi
inc ebx
xor edi, edi
test eax, eax
jne 0x4020b4
mov esi, 0x114
lea eax, [ebp - 0x118]
push esi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jbe 0x402068
mov dword [0x40d804], ebx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407209
mov esp, ebp
pop ebp
ret
jne 0x4020ac
cmp dword [ebp - 0x110], ebx
jb 0x402098
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x4020a4
cmp dword [ebp - 0x11c], edi
je 0x4020a4
mov dword [0x40d804], 2
jmp 0x4020b9
mov dword [0x40d804], ebx
jmp 0x402055
push 2
pop eax
mov dword [0x40d804], eax
cmp eax, 2
jne 0x402055
mov esi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push edi
call esi
mov ebx, eax
push ebx
call esi
test ebx, ebx
je 0x4020de
push dword [ebp - 0x120]
call ebx
mov edi, eax
test edi, edi
je 0x4020de
cmp edi, 1
jne 0x4020e8
mov dword [0], 1
mov eax, edi
jmp 0x402057

Function at 0x40232f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push edx
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x402376
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40237d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareMicrosoftOffice16.0OneNoteOptionsOutlookAndWeb
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4023e4
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4023b0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [ebp + 0xc]
push 1
push esi
push str.ScreenClippingsID
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4023eb
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push edx
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40241f
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4

Function at 0x40259e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwarePoliciesMicrosoftOffice16.0OneNoteOptionsOther
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402606
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.RunSystemTrayApp
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x402606
cmp dword [ebp - 0xc], 4
jne 0x402606
cmp dword [ebp - 0x10], 0
setne al
jmp 0x402608
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40260c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.0040259e
test al, al
jne 0x40267e
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftOffice16.0OneNoteOptionsOther
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40267e
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.RunSystemTrayApp
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x40267e
cmp dword [ebp - 0xc], 4
jne 0x40267e
cmp dword [ebp - 0x10], 0
jne 0x40267e
xor al, al
jmp 0x402680
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4031d6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
push esi
mov esi, ecx
cmp esi, 1
je 0x4032b7
cmp esi, 2
je 0x4032b0
cmp esi, 3
je 0x403295
cmp esi, 0xa
je 0x403274
lea eax, [esi - 0x3e9]
cmp eax, 2
ja 0x40326d
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
lea eax, [esp + 0x10]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftOffice16.0OneNoteOptionsOther
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x403264
push 4
lea eax, [esi - 0x3e8]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 4
push ebx
push str.SystemTrayAppDefaultBehavior
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor cl, cl
call fcn.00402ce5
jmp 0x4032c3
call fcn.00402278
jmp 0x4032c3
call fcn.0040259e
test al, al
jne 0x4032c3
xor ebx, ebx
push ebx
push ebx
push dword [0x40da58]
push dword [0x40da54]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4032c3
xor ebx, ebx
mov byte [0x40da5c], bl
mov byte [0x40da65], bl
mov byte [0x40d808], bl
call fcn.004035dc
jmp 0x4032c3
mov ecx, 0x40958c
jmp 0x4032bc
mov ecx, str._sidenote
xor dl, dl
call fcn.0040270c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret