joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002c35e
Capabilities:
Query or enumerate registry value

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x100c5700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov ecx, esi
push edi
mov edi, dword [ebp + 8]
push 0x100adfc8
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x240], eax
call fcn.1000b07f
mov eax, dword [ebp - 0x240]
xor ecx, ecx
push pe_nt_image_headers32
push ecx
mov dword [eax], ecx
lea eax, [ebp - 0x238]
mov dword [ebx], ecx
mov bl, cl
push eax
mov dword [edi], ecx
call fcn.10062dd0
add esp, 0xc
mov dword [ebp - 0x23c], 0x11c
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1002c441
mov ecx, dword [ebp - 0x120]
mov bl, 1
mov eax, dword [ebp - 0x238]
mov dword [edi], eax
mov eax, dword [ebp - 0x234]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x120], pe_nt_image_headers32
mov dword [ecx], eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0
push 2
push str.BuildLab
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push dword [0x100c5028]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
js 0x1002c441
push esi
lea eax, [ebp - 0x11c]
push eax
call fcn.1002bfe4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006077c
leave
ret 0x10
push ebp
mov ebp, esp
pop ebp
jmp 0x1002c35c

Function at 0x1002e9d1
Capabilities:
Check if file exists

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100c5700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1002e243
cmp dword [ebp - 0xc], 0
je 0x1002ea0f
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002ea0f
mov bl, 1
jmp 0x1002ea11
xor bl, bl
lea ecx, [ebp - 0x1c]
call fcn.10009715
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1006077c
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x1002e9cf
Function at 0x10031a72
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100c5700]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 8
pop esi
cmp dword [0x100cba94], esi
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
mov eax, 0x100cba80
xorps xmm0, xmm0
cmovae eax, dword [0x100cba80]
push 0
push eax
push SysReAllocString
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], esi
mov esi, 0x80070000
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x10031b0e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.LastUpdate
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x10031afd
cmp dword [ebp - 0x14], 0xb
je 0x10031b05
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
xor ecx, ebp
mov edx, dword [ebp - 8]
pop esi
call fcn.1006077c
leave
ret

Function at 0x10034c52
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100c5700]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100cba94], 8
lea ecx, [ebp - 0x10]
push esi
mov eax, 0x100cba80
cmovae eax, dword [0x100cba80]
xor esi, esi
push esi
push ecx
push esi
push 0x20006
push esi
push esi
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x10034cd1
push esi
call fcn.1006a553
pop ecx
push 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0xb
push esi
push str.LastUpdate
push dword [ebp - 0x10]
mov dword [ebp - 8], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1006077c
leave
ret

Function at 0x100370f8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.10035100
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x1003711e
jmp 0x10036add
Function at 0x10037726
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x420
mov eax, 0x10090310
call fcn.100614ea
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, eax
push 0x100adfc8
mov dword [ebp - 0x42c], eax
call fcn.1000b07f
lea eax, [ebp + 8]
mov ecx, esi
push eax
mov edi, 0x80004004
call fcn.10036f03
mov dword [ebp - 0x428], eax
cmp eax, dword [esi]
je 0x1003785a
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x410]
mov esi, 0x400
mov ebx, 0x2001b
push esi
push 0
push eax
call fcn.10062dd0
xor eax, eax
mov dword [ebp - 0x414], esi
lea edi, [ebp - 0x424]
add esp, 0xc
stosd dword es:[edi], eax
lea ecx, [ebp - 0x424]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x428]
add eax, 0x14
push eax
call fcn.100370c5
mov eax, dword [ebp - 0x420]
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x424]
mov dword [ebp - 0x428], eax
cmp esi, eax
je 0x1003784a
add esi, 0x18
mov eax, ebx
lea ecx, [esi + 4]
or eax, 0x10000
cmp byte [esi + 0x1c], 0
cmovne ebx, eax
cmp dword [esi + 0x18], 8
jb 0x100377e9
mov ecx, dword [ecx]
cmp dword [esi], 8
lea eax, [esi - 0x14]
jb 0x100377f3
mov eax, dword [eax]
lea edx, [ebp - 0x414]
push edx
lea edx, [ebp - 0x410]
push edx
lea edx, [ebp - 0x418]
push edx
push ebx
push ecx
push eax
push dword [esi - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x10037836
add esi, 0x38
lea eax, [esi - 0x18]
cmp eax, dword [ebp - 0x428]
jne 0x100377d0
jmp 0x1003784f
mov ecx, dword [ebp - 0x42c]
lea eax, [ebp - 0x410]
push eax
call fcn.1000b07f
jmp 0x1003784f
mov edi, 0x80004004
lea ecx, [ebp - 0x424]
call fcn.1002cdc6
mov eax, edi
call fcn.10061499
ret 8
Function at 0x10039965
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xdc
mov eax, 0x100909c2
call fcn.100614ea
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xa8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0x98
push ebx
mov dword [ebp - 0xb8], ebx
push eax
mov dword [edi], ebx
call fcn.10062dd0
add esp, 0xc
lea ecx, [ebp - 0xa8]
push 1
call fcn.10021398
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x10], bl
je 0x100399bf
push str.Wow6432Node_
lea eax, [ebp - 0xa8]
push eax
call fcn.10019d50
push str.LocalServer32
push esi
push str.CLSID_
lea eax, [ebp - 0xa8]
push eax
call fcn.10019d50
push eax
call fcn.10019d50
push eax
call fcn.10019d50
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0xa4]
call fcn.100189d5
cmp dword [ebp - 0xd4], 8
lea ecx, [ebp - 0xb0]
push 5
pop eax
push ecx
mov dword [ebp - 0xac], eax
mov esi, SysReAllocString
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xe8]
cmovae eax, dword [ebp - 0xe8]
push 0x20019
push ebx
push eax
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10039a87
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0xa4]
call fcn.100189d5
cmp dword [ebp - 0xbc], 8
lea ecx, [ebp - 0xb0]
push 0xf
pop eax
push ecx
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xd0]
cmovae eax, dword [ebp - 0xd0]
push 0x20119
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov byte [ebp - 0xb1], bl
test eax, eax
jne 0x10039a8e
mov byte [ebp - 0xb1], 1
mov eax, dword [ebp - 0xac]
test al, 2
je 0x10039ab2
and eax, 0xfffffffd
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xac], eax
call fcn.10009715
mov eax, dword [ebp - 0xac]
test al, 1
je 0x10039ac1
lea ecx, [ebp - 0xe8]
call fcn.10009715
cmp byte [ebp - 0xb1], 0
je 0x10039b35
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], ebx
push eax
push ebx
push ebx
push 2
push ebx
push ebx
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x10039b29
push dword [ebp - 0xac]
call fcn.1006a6c0
mov esi, eax
pop ecx
test esi, esi
je 0x10039b29
lea eax, [ebp - 0xac]
push eax
push esi
push ebx
push 2
push ebx
push ebx
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x10039b22
mov dword [edi], esi
mov bl, 1
jmp 0x10039b29
push esi
call fcn.100662f4
pop ecx
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xa8]
call fcn.10021e11
mov al, bl
call fcn.10061499
ret 0xc
Function at 0x10039cd2
Capabilities:
Get file version info

Disassembly:
push 0x2cc
mov eax, 0x10090a00
call fcn.100614ea
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
mov ecx, eax
mov edi, dword [ebp + 0x10]
push 0x100adfc8
mov dword [ebp - 0x2c0], eax
call fcn.1000b07f
push dword [ebp + 0x1c]
lea eax, [ebp - 0x2bc]
push esi
push eax
call fcn.10039965
test al, al
je 0x10039ed5
cmp dword [ebp - 0x2bc], ebx
je 0x10039ed5
push dword [ebp - 0x2bc]
mov esi, 0x104
lea eax, [ebp - 0x218]
push edi
push esi
push eax
call fcn.10039b4a
test al, al
je 0x10039ec9
cmp word [ebp - 0x218], bx
je 0x10039ec9
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x10039ec9
push dword [ebp + 0x14]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.1002ba8d
test eax, eax
js 0x10039ec9
push ebx
lea eax, [ebp - 0x218]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x10039ec9
push edi
call fcn.1006a6c0
mov esi, eax
pop ecx
test esi, esi
je 0x10039ec9
push esi
push edi
push ebx
lea eax, [ebp - 0x218]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10039ec2
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x2b8]
push eax
push 0x100af3a4
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10039ec2
push 0x98
lea eax, [ebp - 0x2b4]
push ebx
push eax
call fcn.10062dd0
add esp, 0xc
lea ecx, [ebp - 0x2b4]
push 1
call fcn.10021398
mov eax, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 4], ebx
movzx eax, word [eax + 0xa]
push eax
call fcn.10021b00
mov edi, 0x100afa18
lea eax, [ebp - 0x2b4]
push edi
push eax
call fcn.10019d50
mov eax, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x2b4]
movzx eax, word [eax + 8]
push eax
call fcn.10021b00
push edi
lea eax, [ebp - 0x2b4]
push eax
call fcn.10019d50
mov eax, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x2b4]
movzx eax, word [eax + 0xe]
push eax
call fcn.10021b00
push edi
lea eax, [ebp - 0x2b4]
push eax
call fcn.10019d50
mov eax, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x2b4]
movzx eax, word [eax + 0xc]
push eax
call fcn.10021b00
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x2b0]
call fcn.100189d5
mov ecx, dword [ebp - 0x2c0]
lea eax, [ebp - 0x2d8]
push eax
call fcn.100088a1
lea ecx, [ebp - 0x2d8]
call fcn.10009715
lea ecx, [ebp - 0x2b4]
mov bl, 1
call fcn.10021e11
push esi
call fcn.100662f4
pop ecx
push dword [ebp - 0x2bc]
call fcn.100662f4
pop ecx
mov al, bl
call fcn.10061499
ret 0x18

Function at 0x1003a522
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [eax + 0x1c]
push dword [eax + 0x18]
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
pop ebp
ret 4
Function at 0x1003a5f2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push dword [ebp + 8]
push eax
call fcn.1002e243
cmp dword [eax + 0x14], 8
jb 0x1003a60c
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.10009715
mov eax, esi
pop esi
leave
ret 8

Function at 0x1003a772
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push dword [ebp + 8]
push eax
call fcn.1002e243
cmp dword [eax + 0x14], 8
jb 0x1003a78c
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.10009715
mov eax, esi
pop esi
leave
ret 4

Function at 0x1003a962
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push dword [ebp + 8]
push eax
call fcn.1002e243
cmp dword [eax + 0x14], 8
jb 0x1003a97c
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.10009715
mov eax, esi
pop esi
leave
ret 4

Function at 0x1003ab32
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.WININET.dll_InternetCheckConnectionW]

Function at 0x1003ae22
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push dword [ebp + 8]
push eax
call fcn.1002e243
cmp dword [eax + 0x14], 8
jb 0x1003ae3c
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.10009715
mov eax, esi
pop esi
leave
ret 4

Function at 0x1003b0e2
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push dword [ebp + 8]
push eax
call fcn.1002e243
cmp dword [eax + 0x14], 8
jb 0x1003b0fc
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.10009715
mov eax, esi
pop esi
leave
ret 8

Function at 0x1003b2d2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100701ce
add esp, 0xc
pop ebp
ret 0xc
Function at 0x1003dc42
Capabilities:
Delete file

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x100c5700]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
xor edi, edi
cmp dword [esi + 0x14], 8
jb 0x10022bec
mov eax, dword [esi]
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x10022c2d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 8
jb 0x10022c0e
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10022c2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1006077c
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x10022bc6

Function at 0x1003dc92
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10022f97

Function at 0x1003dce2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100234af

Function at 0x1003dde2
Capabilities:
Get common file path

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100c5700]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
xor esi, esi
mov dword [ebp - 0x210], 0x104
push esi
push eax
call fcn.10062dd0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USERENV.dll_GetDefaultUserProfileDirectoryW]
test eax, eax
je 0x10024880
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.1000b07f
jmp 0x10024894
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1006077c
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x1002481d
Function at 0x1003de62
Capabilities:
Query or enumerate registry value

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x100c5700]
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 0x1002524d
mov ecx, dword [ecx]
lea esi, [ebp - 0x830]
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 - 0x82c], 0x820
test eax, eax
cmovle esi, eax
and dword [ebp - 0x828], 0
test esi, esi
js 0x100252f5
cmp dword [edi + 0x14], 8
jb 0x1002528a
mov edi, dword [edi]
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x828]
push eax
push 0
push edi
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x100252e9
cmp dword [ebp - 0x828], 1
je 0x100252d9
cmp dword [ebp - 0x828], 2
je 0x100252d9
mov esi, 0x8007065d
jmp 0x100252e9
lea eax, [ebp - 0x824]
mov ecx, ebx
push eax
xor esi, esi
call fcn.1000b07f
push dword [ebp - 0x830]
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.1006077c
leave
ret 0x14
push ebp
mov ebp, esp
pop ebp
jmp 0x10025215
Function at 0x1003de82
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push 0x34
mov eax, 0x1008d6cd
call fcn.100614ea
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x100253fd
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x3c], ebx
xor eax, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 1
push eax
call 0x10025308
mov edi, eax
test edi, edi
js 0x10025518
push 0xf0000040
push 0x18
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
setne cl
test eax, eax
je 0x1002546a
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 0x800c
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
setne cl
test cl, cl
je 0x100254f8
push 4
pop ecx
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ecx
push eax
lea eax, [ebp - 0x20]
push eax
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x100254f8
cmp dword [ebp - 0x28], 8
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x3c]
add eax, eax
push ebx
push eax
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
setne bl
test eax, eax
je 0x100254f2
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x3d]
push ecx
push eax
mov ecx, esi
mov dword [ebp - 0x18], eax
call fcn.10015878
push 0
lea eax, [ebp - 0x18]
push eax
push dword [esi]
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0x14]
test eax, eax
setne bl
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test bl, bl
jne 0x10025518
jmp 0x1002550e
push dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x10025518
mov dword [esi + 4], eax
mov eax, dword [esi]
mov ecx, 0x80004005
cmp eax, dword [esi + 4]
mov eax, dword [ebp - 0x28]
cmove edi, ecx
cmp eax, 8
jb 0x10025560
mov ecx, dword [ebp - 0x3c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ecx
cmp eax, 0x1000
jb 0x10025557
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10007782
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
call fcn.1006078a
pop ecx
pop ecx
mov eax, edi
call fcn.10061499
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x100253e4

Function at 0x1003df12
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10025b1e
Function at 0x1003df52
Capabilities:
Query or enumerate registry value

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100c5700]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
xor esi, esi
push esi
push eax
call fcn.10062dd0
add esp, 0xc
mov dword [ebp - 0x214], 1
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x1009b3f8
push str.SoftwareMicrosoftOneDrive
call fcn.10025ad5
push eax
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1002600a
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.1000b07f
jmp 0x1002600f
mov esi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1006077c
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x10025f86

Function at 0x1003df72
Capabilities:
Query or enumerate registry value

Disassembly:
nop
push ebp
mov ebp, esp
pop ebp
jmp 0x100261f1

Function at 0x1003df92
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100262d1

Function at 0x1003dfa2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100263ab
Function at 0x1003e042
Capabilities:
Decode data using base64 via winapi
Encode data using base64 via winapi

Disassembly:
push 0xa4
mov eax, 0x1008dab6
call fcn.100614ea
xor eax, eax
lea edi, [ebp - 0x88]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], 7
mov word [ebp - 0xac], ax
mov byte [ebp - 4], 2
call fcn.1003940d
mov edi, eax
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [edi]
mov esi, dword [ecx + 0x170]
mov ecx, esi
call dword [0x10096750]
mov ecx, edi
call esi
push 0x64
pop ebx
test eax, eax
js 0x1002707c
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x78]
sub eax, dword [ebp - 0x88]
and dword [ebp - 0x78], 0
push ecx
push 0
push 0x40000001
push eax
push dword [ebp - 0x88]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
push dword [ebp - 0x78]
mov esi, eax
lea edi, [ebp - 0x94]
test esi, esi
lea ecx, [ebp - 0x94]
setne byte [ebp - 0xad]
xor eax, eax
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
call fcn.100207b2
mov byte [ebp - 4], 3
test esi, esi
je 0x10027004
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x78]
sub eax, dword [ebp - 0x88]
push ecx
push dword [ebp - 0x94]
push 0x40000001
push eax
push dword [ebp - 0x88]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
setne byte [ebp - 0xad]
push ebx
lea eax, [ebp - 0x74]
push edi
push eax
call fcn.10062dd0
add esp, 0xc
cmp byte [ebp - 0xad], 0
je 0x10027060
push edi
push edi
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], ebx
push eax
lea eax, [ebp - 0x74]
push eax
push 1
push dword [ebp - 0x78]
push dword [ebp - 0x94]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x10027060
call fcn.1003940d
push dword [ebp + 8]
mov edi, eax
push dword [ebp - 0x74]
mov ecx, dword [edi]
mov esi, dword [ecx + 0xa0]
mov ecx, esi
call dword [0x10096750]
mov ecx, edi
call esi
mov ebx, eax
mov edx, dword [ebp - 0x94]
test edx, edx
je 0x1002707c
mov ecx, dword [ebp - 0x8c]
sub ecx, edx
and ecx, 0xfffffffe
push ecx
push edx
call fcn.100077ab
mov ecx, dword [ebp - 0x88]
test ecx, ecx
je 0x100270b4
mov eax, dword [ebp - 0x80]
sub eax, ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], eax
cmp eax, 0x1000
jb 0x100270ab
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.10007782
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x7c]
push eax
push ecx
call fcn.1006078a
pop ecx
pop ecx
mov eax, ebx
call fcn.10061499
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x10026eef