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

Disassembly:
mov eax, 0x88
call fcn.10107480
mov eax, dword [0x101be8d0]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
push edi
mov edi, dword [esp + 0x9c]
test ebx, ebx
je 0x100ee2c3
cmp ebx, dword [esi]
je 0x100ee2ba
test edi, edi
je 0x100ee350
cmp dword [esp + 0xa0], eax
jl 0x100ee350
mov eax, 1
mov dword [esi], ebx
jmp 0x100ee2cd
mov ebx, dword [esi]
test ebx, ebx
je 0x100ee350
test edi, edi
je 0x100ee3ae
push ebp
push ebx
call fcn.100a2720
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x100ee2fd
push 0x28
push str.cryptohmachmac.c
push str.assertion_failed:_j____int_sizeof_ctx__key_
call fcn.100a16f0
add esp, 0xc
mov eax, dword [esp + 0xa4]
cmp ebp, eax
pop ebp
jge 0x100ee36a
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 4]
push ecx
push ebx
push edx
call fcn.100b4740
add esp, 0xc
test eax, eax
je 0x100ee350
mov eax, dword [esp + 0xa0]
mov ecx, dword [esi + 4]
push eax
push edi
push ecx
call fcn.100b48f0
add esp, 0xc
test eax, eax
je 0x100ee350
mov eax, dword [esi + 4]
lea edi, [esi + 0x10]
push edi
lea edx, [esi + 0x14]
push edx
push eax
call fcn.100b4900
add esp, 0xc
test eax, eax
jne 0x100ee38b
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.101044ca
add esp, 0x88
ret
cmp eax, 0x80
ja 0x100ee350
push eax
lea ecx, [esi + 0x14]
push edi
push ecx
call fcn.10105350
mov edx, dword [esp + 0xac]
lea edi, [esi + 0x10]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x100ee3b6
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x14]
push 0
push ecx
call fcn.10104ed0
add esp, 0xc
jmp 0x100ee3b6
test eax, eax
je 0x100ee459
xor eax, eax
jmp 0x100ee3c0
mov dl, byte [esi + eax + 0x14]
xor dl, 0x36
mov byte [esp + eax + 0x10], dl
inc eax
cmp eax, 0x80
jl 0x100ee3c0
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 8]
push edi
push ebx
push eax
call fcn.100b4740
add esp, 0xc
test eax, eax
je 0x100ee350
push ebx
call fcn.100a2720
mov edx, dword [esi + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.100b48f0
add esp, 0x10
test eax, eax
je 0x100ee350
xor eax, eax
nop
mov cl, byte [esi + eax + 0x14]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x100ee410
mov edx, dword [esi + 0xc]
push edi
push ebx
push edx
call fcn.100b4740
add esp, 0xc
test eax, eax
je 0x100ee350
push ebx
call fcn.100a2720
mov ecx, dword [esi + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.100b48f0
add esp, 0x10
test eax, eax
je 0x100ee350
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
call fcn.100b4980
add esp, 8
test eax, eax
je 0x100ee350
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.101044ca
add esp, 0x88
ret
Function at 0x100f3570
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x100f3653
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x100f35ee
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x100f3640
shl edx, 0x10
cmp edi, 2
jne 0x100f35ff
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x100f362d
lea edx, [edi + 0x3c]
jmp 0x100f363a
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x100f3590
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x101044ca
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101be8d0]
jne 0x101044d4
repz ret
jmp fcn.1010bfa6

Function at 0x10119f74
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1010c2cc
and dword [ebp - 4], 0
cmp dword [0x101c5b78], 0
mov ebx, eax
jne 0x1011a025
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1011a0d6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1011a0d6
push eax
call fcn.1010c25a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101c5b78], eax
call esi
push eax
call fcn.1010c25a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101c5b7c], eax
call esi
push eax
call fcn.1010c25a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101c5b80], eax
call esi
push eax
call fcn.1010c25a
pop ecx
mov dword [0x101c5b88], eax
test eax, eax
je 0x1011a025
push 0x1019d7b0
push edi
call esi
push eax
call fcn.1010c25a
pop ecx
mov dword [0x101c5b84], eax
mov eax, dword [0x101c5b84]
cmp eax, ebx
je 0x1011a07d
cmp dword [0x101c5b88], ebx
je 0x1011a07d
push eax
call fcn.1010c2d5
push dword [0x101c5b88]
mov esi, eax
call fcn.1010c2d5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1011a07d
test edi, edi
je 0x1011a07d
call esi
test eax, eax
je 0x1011a074
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1011a074
test byte [ebp - 0xc], 1
jne 0x1011a07d
or dword [ebp + 0x10], 0x200000
jmp 0x1011a0b6
mov eax, dword [0x101c5b7c]
cmp eax, ebx
je 0x1011a0b6
push eax
call fcn.1010c2d5
pop ecx
test eax, eax
je 0x1011a0b6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1011a0b6
mov eax, dword [0x101c5b80]
cmp eax, ebx
je 0x1011a0b6
push eax
call fcn.1010c2d5
pop ecx
test eax, eax
je 0x1011a0b6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101c5b78]
call fcn.1010c2d5
pop ecx
test eax, eax
je 0x1011a0d6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1011a0d8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41d190
cmp edx, dword [eax]
je 0x41978b
add eax, 8
inc ecx
cmp eax, 0x41d220
jl 0x41977c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41d190]
jne 0x4198b9
mov eax, dword [0x41dbb0]
cmp eax, 1
je 0x419893
test eax, eax
jne 0x4197bc
cmp dword [0x41d0e4], 1
je 0x419893
cmp edx, 0xfc
je 0x4198b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4197f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041a670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041a490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x419836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041a490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41c45c
push edi
call fcn.0041af00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041a670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041a680
lea eax, [ebp - 0xa0]
push 0x41c43c
push eax
call fcn.0041a680
push dword [esi + 0x41d194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041a680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041ae75
add esp, 0x2c
pop edi
jmp 0x4198b9
lea eax, [ebp + 8]
lea esi, [esi + 0x41d194]
push 0
push eax
push dword [esi]
call fcn.0041a490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3fe36064
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..reloc
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7aea15c6
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x406227
Capabilities:
Query environment variable

Disassembly:
push 0x408
mov eax, 0x59c04c
call fcn.00462cd6
push 0x208
xor esi, esi
lea eax, [ebp - 0x3e4]
push esi
push eax
call fcn.00463cc0
add esp, 0xc
lea eax, [ebp - 0x3e4]
push 0x104
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 7
pop edi
test eax, eax
je 0x4062c2
xor eax, eax
mov dword [ebp - 0x3ec], esi
mov word [ebp - 0x3fc], ax
lea ecx, [ebp - 0x3fc]
lea eax, [ebp - 0x3e4]
mov dword [ebp - 0x3e8], edi
push eax
call fcn.004096b4
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x3fc]
cmp dword [ebp - 0x3e8], 8
mov edx, str._UserProfile_
cmovae ecx, dword [ebp - 0x3fc]
call fcn.0041dc19
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3fc]
call fcn.0040aa69
push 0xc8
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.00463cc0
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x64
push eax
push str.USERDNSDOMAIN
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40634a
xor eax, eax
mov dword [ebp - 0x3ec], esi
mov word [ebp - 0x3fc], ax
lea ecx, [ebp - 0x3fc]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x3e8], edi
push eax
call fcn.004096b4
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x3fc]
cmp dword [ebp - 0x3e8], 8
mov edx, str._UserDnsDomain_
cmovae ecx, dword [ebp - 0x3fc]
call fcn.0041dc19
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3fc]
call fcn.0040aa69
push 0xc8
lea eax, [ebp - 0x1dc]
push esi
push eax
call fcn.00463cc0
add esp, 0xc
lea eax, [ebp - 0x1dc]
push 0x64
push eax
push str.USERNAME
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4063d2
xor eax, eax
mov dword [ebp - 0x3ec], esi
mov word [ebp - 0x3fc], ax
lea ecx, [ebp - 0x3fc]
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0x3e8], edi
push eax
call fcn.004096b4
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x3fc]
cmp dword [ebp - 0x3e8], 8
mov edx, str._UserName_
cmovae ecx, dword [ebp - 0x3fc]
call fcn.0041dc19
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3fc]
call fcn.0040aa69
push 0x3c
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.00463cc0
add esp, 0xc
lea eax, [ebp - 0x4c]
push 0x1e
push eax
push str.COMPUTERNAME
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40644a
xor eax, eax
mov dword [ebp - 0x404], esi
mov word [ebp - 0x414], ax
lea ecx, [ebp - 0x414]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x400], edi
push eax
call fcn.004096b4
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x400], 8
mov edx, str._ComputerName_
cmovae ecx, dword [ebp - 0x414]
call fcn.0041dc19
lea ecx, [ebp - 0x414]
call fcn.0040aa69
call fcn.00462c80
ret
Function at 0x4069d2
Capabilities:
Accept command line arguments

Disassembly:
push 0x74
mov eax, 0x59c182
call fcn.00462cd6
mov eax, dword [ebp + 8]
and dword [ebp - 0x14], 0
mov esi, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x4069f0
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov ecx, esi
mov dword [ebp - 0x48], ebx
call fcn.0040929f
xor edi, edi
cmp dword [ebp - 0x14], edi
jle 0x406b10
push dword [ebx + edi*4]
lea ecx, [ebp - 0x2c]
call fcn.004094f1
and dword [ebp - 4], 0
xor eax, eax
and dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
push ecx
push 0x3a
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040941c
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406ab2
and dword [ebp - 0x50], 0
lea ecx, [ebp - 0x60]
xor eax, eax
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
lea eax, [ebx + 1]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004097e9
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x44]
call fcn.004094b8
lea ecx, [ebp - 0x60]
call fcn.0040aa69
and dword [ebp - 0x50], 0
lea ecx, [ebp - 0x60]
xor eax, eax
mov dword [ebp - 0x4c], 7
push ebx
push eax
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x2c]
push eax
call fcn.004097e9
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004094b8
lea ecx, [ebp - 0x60]
call fcn.0040aa69
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x78]
call fcn.004099f8
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0040a0b9
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call fcn.0040a0ef
lea ecx, [ebp - 0x60]
call fcn.0040aa69
lea ecx, [ebp - 0x78]
call fcn.0040aa69
lea ecx, [ebp - 0x44]
call fcn.0040aa69
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040aa69
mov ebx, dword [ebp - 0x48]
inc edi
cmp edi, dword [ebp - 0x14]
jl 0x406a12
call fcn.00462c80
ret 8
Function at 0x407c71
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x63800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x407c93
mov eax, dword [eax]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov edx, 0x20d
mov dword [ebp - 0x14], eax
mov ecx, str.d:dbs_shodct0423_142515cmd2clientonedriveproduct_standaloneupdater_standaloneupdaterlib_standaloneupdater.cpp
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], str.ErrorCode
push eax
push 1
push 1
push 0xde7065b6
push 0x5eff88
push str.StandaloneUpdater::GrabUpdateMutex
mov dword [ebp - 0x1c], 5
call fcn.0041da21
call fcn.0041de26
test edi, edi
je 0x407d4d
push ebx
push edi
mov dword [esi + 0x60], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x407d4b
cmp eax, 0x80
je 0x407d4b
mov ecx, dword [ebp - 0x20]
mov edx, 0x21b
movzx eax, cx
or eax, 0x80070000
mov dword [ebp - 0x18], str.result
test ecx, ecx
mov dword [ebp - 0x1c], 3
cmovle eax, ecx
mov ecx, str.d:dbs_shodct0423_142515cmd2clientonedriveproduct_standaloneupdater_standaloneupdaterlib_standaloneupdater.cpp
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 1
push 1
push 0x406
push 0x5eff88
push str.StandaloneUpdater::GrabUpdateMutex
call fcn.0041da21
call fcn.0041de26
jmp 0x407d4d
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462c5a
leave
ret
Function at 0x408d60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2ac
mov eax, 0x59c572
call fcn.00462cd6
mov ebx, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x22c], str.result
mov dword [ebp - 0x230], 3
call 0x43a3ba
mov dword [ebp - 0x228], eax
mov edx, 0x412
lea eax, [ebp - 0x230]
mov ecx, str.d:dbs_shodct0423_142515cmd2clientonedriveproduct_standaloneupdater_standaloneupdaterlib_standaloneupdater.cpp
push eax
push 1
push 1
push 0x6bfc1c6
push 0x5eff88
push str.StandaloneUpdater::SetBestKnownCurrentVersionString
call fcn.0041da21
call fcn.0041de26
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00463cc0
add esp, 0xc
mov dword [ebp - 0x298], 1
lea eax, [ebp - 0x294]
mov dword [ebp - 0x294], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x298]
push eax
push 0x5f18a0
push str.SoftwareMicrosoftOneDrive
call fcn.0043b708
push eax
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor esi, esi
test eax, eax
jne 0x408e40
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.004096b4
jmp 0x408e45
mov esi, 0x80004005
lea eax, [ebp - 0x230]
mov dword [ebp - 0x22c], str.result
push eax
push 1
push 1
push 0x6bfc1c7
push 0x5eff88
push str.StandaloneUpdater::SetBestKnownCurrentVersionString
mov edx, 0x414
mov dword [ebp - 0x230], 3
mov ecx, str.d:dbs_shodct0423_142515cmd2clientonedriveproduct_standaloneupdater_standaloneupdaterlib_standaloneupdater.cpp
mov dword [ebp - 0x228], esi
call fcn.0041da21
call fcn.0041de26
cmp dword [ebx + 0x6c], 1
je 0x408e9d
cmp dword [ebx + 0x6c], 2
jne 0x408fad
push dword [ebp - 0x29c]
xor esi, esi
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x280], esi
mov dword [ebp - 0x27c], esi
call fcn.00409706
push dword [ebp - 0x2a0]
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], esi
call fcn.00409706
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x260]
push edi
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x24c], esi
call fcn.00409706
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
xor eax, eax
mov dword [ebp - 0x238], esi
push 0x5ef158
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.004096b4
mov dword [ebp - 4], 3
lea esi, [ebp - 0x290]
lea edi, [ebx + 0x74]
and dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
and dword [ebp - 0x21c], 0
push esi
call fcn.00409706
push edi
lea edx, [ebp - 0x230]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b8]
call fcn.0040c7b9
push eax
mov ecx, edi
call fcn.004094b8
lea ecx, [ebp - 0x2b8]
call fcn.0040aa69
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.0040aa69
add esi, 0x18
lea eax, [ebp - 0x230]
cmp esi, eax
jne 0x408f35
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x290]
push fcn.0040aaa0
push 4
push 0x18
push eax
call fcn.004628c3
call fcn.00462c80
ret 0xc
Function at 0x415c24
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xa4
mov eax, 0x59d51a
call fcn.00462cd6
mov ebx, ecx
push 0x64
pop esi
push esi
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00463cc0
xor eax, eax
mov dword [ebp - 0x98], esi
lea edi, [ebp - 0x94]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], edi
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], edi
call fcn.004825be
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], edi
xor eax, eax
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x9c], 7
mov word [ebp - 0xb0], ax
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 4
push eax
call fcn.0043b38c
test eax, eax
js 0x415d5f
cmp dword [ebp - 0x9c], 8
lea eax, [ebp - 0xb0]
push dword [ebp - 0xa0]
cmovae eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0x80]
push eax
call fcn.0041539e
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x94]
call fcn.0040e537
test eax, eax
js 0x415d5f
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x88]
call fcn.004838a9
mov esi, eax
test esi, esi
js 0x415d5f
mov ecx, dword [ebp - 0x84]
test ecx, ecx
jne 0x415d19
mov eax, edi
mov ecx, edi
jmp 0x415d1f
mov eax, dword [ecx + 8]
add ecx, 0xc
push edi
push edi
lea edx, [ebp - 0x98]
push edx
lea edx, [ebp - 0x7c]
push edx
push 1
push eax
push ecx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x415d4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x415d5f
mov cl, byte [ebp - 0x7c]
lea edx, [ebx + 4]
call fcn.0043b499
jmp 0x415d6c
push 0x5effb0
lea ecx, [ebx + 4]
call fcn.004096b4
lea ecx, [ebp - 0xb0]
call fcn.0040aa69
xor ecx, ecx
lea eax, [ebp - 0x80]
xchg dword [eax], ecx
test ecx, ecx
je 0x415d87
call fcn.00415424
xor ecx, ecx
lea eax, [ebp - 0x84]
xchg dword [eax], ecx
test ecx, ecx
je 0x415d9a
call fcn.00415424
lea ecx, [ebp - 0x88]
call fcn.00482629
lea ecx, [ebp - 0x94]
call fcn.0040e585
call fcn.00462c80
ret
Function at 0x41a5a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x63800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
shl eax, 8
push esi
add eax, 0x20019
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x41a5d5
mov ecx, dword [ecx]
lea esi, [ebp - 0x14]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 8], 4
test eax, eax
cmovle esi, eax
test esi, esi
js 0x41a64c
cmp dword [edi + 0x14], 8
jb 0x41a605
mov edi, dword [edi]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x41a643
cmp dword [ebp - 0xc], 4
jne 0x41a63e
mov eax, dword [ebp - 0x10]
xor esi, esi
mov dword [ebx], eax
jmp 0x41a643
mov esi, 0x8007065d
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462c5a
leave
ret 0x14

Function at 0x41a692
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x63800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
shl eax, 8
push esi
add eax, 0x20019
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x41a6c8
mov ecx, dword [ecx]
lea esi, [ebp - 0x218]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x214], 0x208
test eax, eax
cmovle esi, eax
and dword [ebp - 0x210], 0
test esi, esi
js 0x41a767
cmp dword [edi + 0x14], 8
jb 0x41a705
mov edi, dword [edi]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push edi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x41a75b
cmp dword [ebp - 0x210], 1
jne 0x41a756
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
xor esi, esi
call fcn.004096b4
jmp 0x41a75b
mov esi, 0x8007065d
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462c5a
leave
ret 0x14