joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e8e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x468080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x105
lea eax, [ebp - 0x218]
mov ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
lea ecx, [esi - 1]
cmp ecx, 0x103
ja 0x403f67
mov ebx, dword [ebx]
mov ecx, ebx
call fcn.0040b9b7
add eax, 0xc
add esi, eax
lea eax, [esi + esi]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x403f67
push esi
lea edx, [ebp - 0x218]
mov ecx, edi
call fcn.0040bc07
push esi
mov edx, str._notepad__
mov ecx, edi
call fcn.0040bc56
push esi
mov edx, ebx
mov ecx, edi
call fcn.0040bc56
push esi
mov edx, 0x43c6d4
mov ecx, edi
call fcn.0040bc56
push 0x44
lea eax, [ebp - 0x270]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x228]
mov edx, edi
push eax
lea eax, [ebp - 0x270]
push eax
sub esp, 0x18
call fcn.0040cecd
test eax, eax
je 0x403f5f
push dword [ebp - 0x228]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x224]
call esi
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004370bb
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x468080]
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.0040bc07
lea ecx, [ebp - 0x210]
call fcn.00405a58
mov edi, eax
xor esi, esi
test edi, edi
je 0x403fd5
xor edx, edx
mov ecx, edi
call fcn.0040b931
push edi
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403fd5
test al, 0x10
jne 0x403fd5
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004370bb
leave
ret
Function at 0x404972
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x468080]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x469270], 0
jne 0x404a1b
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.0040c1f1
xor esi, esi
inc esi
test eax, eax
jne 0x404a05
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 0x404a05
cmp word [ebp - 0x68], ax
je 0x404a05
push 0xa
pop edx
lea ecx, [ebp - 0x68]
call fcn.0040bec7
cmp eax, 4
jbe 0x404a05
mov dword [0x46926c], esi
cmp dword [ebp - 0x6c], 0
mov dword [0x469270], esi
pop esi
je 0x404a1b
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [0x46926c]
xor ecx, ebp
call fcn.004370bb
leave
ret

Function at 0x404a2c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x468080]
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 0x404adb
cmp word [ebp - 0x210], si
je 0x404adb
lea eax, [ebp - 0x210]
mov ecx, esi
lea eax, [eax + 2]
inc ecx
cmp word [eax], si
jne 0x404a7a
push ecx
lea edx, [ebp - 0x210]
mov ecx, edi
call fcn.0040bb72
test eax, eax
je 0x404adb
push esi
push 0x10
push 0x401f92
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_DdeInitializeW]
mov edx, dword [ebp - 0x214]
mov ecx, edi
call fcn.00404aeb
mov esi, eax
test esi, esi
jne 0x404ac6
mov ecx, edi
call fcn.00404d0c
mov esi, eax
cmp dword [ebp - 0x214], 0
je 0x404adb
push dword [ebp - 0x214]
call dword [sym.imp.USER32.dll_DdeUninitialize]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004370bb
leave
ret
Function at 0x405a7f
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
mov eax, dword [0x468080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x504], edx
push esi
mov esi, dword [ebp + 8]
mov ebx, eax
push edi
mov dword [ebp - 0x4fc], eax
mov edi, 0x20019
mov dword [ebp - 0x4f8], eax
mov edx, ecx
mov dword [ebp - 0x4f0], eax
mov dword [ebp - 0x4f4], eax
lea eax, [ebp - 0x4fc]
push eax
push edi
push ecx
mov ecx, Ordinal_1
call fcn.0040c1f1
test eax, eax
jne 0x405c7e
lea eax, [ebp - 0x4f8]
mov edx, str.CurVer
push eax
push edi
push ecx
mov ecx, dword [ebp - 0x4fc]
call fcn.0040c1f1
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405b84
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 edi
test eax, eax
jne 0x405b84
cmp dword [ebp - 0x4ec], 1
jne 0x405c7e
cmp word [ebp - 0xd0], bx
je 0x405b84
lea eax, [ebp - 0x4f0]
push eax
push 0x20019
push ecx
lea edx, [ebp - 0xd0]
mov ecx, Ordinal_1
call fcn.0040c1f1
test eax, eax
jne 0x405c7e
push 0x105
mov edx, 0x43c3a4
lea ecx, [ebp - 0x2dc]
call fcn.0040bc07
mov edx, dword [ebp - 0x504]
lea ecx, [ebp - 0x2dc]
push 0x105
call fcn.0040bc56
push 0x105
mov edx, 0x43c86c
lea ecx, [ebp - 0x2dc]
call fcn.0040bc56
cmp dword [ebp - 0x4f0], ebx
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.0040c1f1
test eax, eax
jne 0x405c7e
cmp dword [ebp - 0x4ec], 1
mov dword [ebp - 0x508], 0x208
jne 0x405c10
test esi, esi
je 0x405c10
mov byte [esi], bl
lea eax, [ebp - 0x508]
push eax
push esi
lea eax, [ebp - 0x4ec]
push eax
push 0
push 0
push dword [ebp - 0x4f4]
call edi
test eax, eax
jne 0x405c7e
cmp dword [ebp - 0x4ec], 1
je 0x405c41
cmp dword [ebp - 0x4ec], 2
jne 0x405c44
xor eax, eax
inc eax
test eax, eax
je 0x405c7e
cmp dword [ebp - 0x4ec], 2
jne 0x405c7b
mov edi, 0x104
lea ecx, [ebp - 0x4e8]
push edi
mov edx, esi
call fcn.0040bc07
push edi
push esi
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x405c7e
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x4f4], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x405c95
push dword [ebp - 0x4f4]
call esi
and dword [ebp - 0x4f4], 0
cmp dword [ebp - 0x4f0], 0
je 0x405cad
push dword [ebp - 0x4f0]
call esi
and dword [ebp - 0x4f0], 0
cmp dword [ebp - 0x4f8], 0
je 0x405cc5
push dword [ebp - 0x4f8]
call esi
and dword [ebp - 0x4f8], 0
cmp dword [ebp - 0x4fc], 0
je 0x405cdd
push dword [ebp - 0x4fc]
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004370bb
leave
ret 8
Function at 0x4078b9
Capabilities:
Delete registry value

Disassembly:
push 0x20
mov eax, 0x438e08
call fcn.00438668
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.0040c24b
test eax, eax
jne 0x4079e2
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
mov edx, 0x43c9fc
push eax
sub esp, 0x14
call fcn.0040c24b
test eax, eax
jne 0x4079e2
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.0040c24b
test eax, eax
jne 0x4079e2
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.0040956d
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.0040c24b
test eax, eax
jne 0x4079e2
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
mov edx, 0x43ca34
push eax
sub esp, 0x14
call fcn.0040c24b
test eax, eax
jne 0x4079e2
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
mov edx, 0x43c308
push eax
sub esp, 0x14
call fcn.0040c24b
test eax, eax
jne 0x4079e2
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.004091be
call fcn.00404972
test eax, eax
je 0x4079df
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 0x4079f3
push dword [ebp - 0x1c]
call esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x20], ebx
je 0x407a02
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x10], ebx
je 0x407a0f
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x407a1c
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x24], ebx
je 0x407a29
push dword [ebp - 0x24]
call esi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x28], ebx
je 0x407a36
push dword [ebp - 0x28]
call esi
mov eax, edi
call fcn.0043863c
ret 4
Function at 0x4096fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov eax, ecx
mov ebx, edx
xor edx, edx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 4]
mov dword [ebp - 4], edx
push ecx
push edx
lea ecx, [ebp - 8]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 8]
test eax, eax
jne 0x409733
cmp ecx, 1
jne 0x409733
mov eax, dword [ebp - 4]
jmp 0x409735
xor eax, eax
mov edi, dword [ebp + 0xc]
mov edx, 0x208
mov esi, dword [ebp + 8]
cmp eax, edx
cmovb eax, edx
add eax, 2
mov dword [ebp - 4], eax
cmp eax, dword [edi]
jbe 0x409783
cmp dword [esi], 0
je 0x409766
push dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
and dword [esi], 0
and dword [edi], 0
mov eax, dword [ebp - 4]
pop ecx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [esi], eax
pop ecx
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
mov ecx, dword [ebp - 8]
mov eax, dword [esi]
cmp ecx, 1
jne 0x409791
test eax, eax
je 0x409791
mov byte [eax], 0
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
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 0x409c8d
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 - 4], esi
call fcn.0040b9b7
mov ecx, ebx
mov dword [ebp - 8], eax
call fcn.00409c38
mov ebx, eax
mov edi, 0x43b75c
test ebx, ebx
cmovne edi, ebx
xor eax, eax
cmp word [edi], ax
je 0x409cf8
mov eax, edi
push dword [ebp - 8]
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.0040bb72
test eax, eax
jne 0x409d6b
mov ecx, dword [ebp - 0x10]
push 0x3b
pop edx
call fcn.0040b9ce
test eax, eax
jne 0x409cc9
mov edx, dword [ebp - 8]
mov ecx, edi
lea edx, [edx + 2]
call fcn.0040bc95
mov esi, eax
test esi, esi
je 0x409d6b
mov ecx, esi
call fcn.0040b9b7
mov dword [ebp - 0x10], eax
lea ecx, [esi + eax*2]
cmp ecx, esi
jbe 0x409d25
push 0x3b
pop eax
mov word [ecx], ax
add ecx, 2
mov edi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
lea eax, [edi + 1]
push eax
call fcn.0040bc07
push 1
push dword [ebp - 0x14]
lea edx, [ebp - 4]
mov ecx, 0x80000002
call fcn.004061ad
test eax, eax
je 0x409d6b
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 - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test ebx, ebx
je 0x409d79
push ebx
call edi
pop ecx
test esi, esi
je 0x409d81
push esi
call edi
pop ecx
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x409d93
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x40c099
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x468080]
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 0x40c1ba
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 0x40c1b2
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 0x40c1a8
cmp dword [ebp - 0x214], 1
jne 0x40c1a8
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 0x40c1a8
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.004370bb
leave
ret
Function at 0x40d19a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x50]
push 0x3c
push 0
push eax
mov esi, edx
mov ebx, ecx
or edi, 0x40
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x40], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
mov dword [ebp - 0x50], 0x3c
sete al
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x24], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x40d1fd
cmp dword [ebp - 0x18], 0
je 0x40d1fd
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x14], vtable.Mso::Logging::StructuredObject_unsigned_int__1_.0
mov word [ebp - 8], ax
lea eax, [ebp - 0x14]
push eax
push str.HevShellExecuteEx_
push ecx
mov ecx, 0x170b0c6
mov dword [ebp - 0x10], str.Param
mov dword [ebp - 0xc], esi
call fcn.00401ce6
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40f96a
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov ecx, 0x811c9dc5
cmp dword [ebp + 8], esi
jbe 0x40f98d
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc esi
cmp esi, dword [ebp + 8]
jb 0x40f97b
mov eax, ecx
pop esi
leave
ret 4

Function at 0x410d56
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
push 0xffff
push edx
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, dword [ebp - 4]
mov ecx, eax
mov edx, dword [ebp + 0xc]
push 2
pop ebx
cmp esi, ebx
jae 0x410d9c
cmp edx, 1
je 0x410d9a
cmp edx, ebx
jne 0x410d9c
mov ecx, ebx
call fcn.004101f1
test eax, eax
jne 0x410ddd
test ecx, ecx
jne 0x410ddd
cmp edx, ebx
je 0x410db2
cmp edx, 1
jne 0x410dbe
shr esi, 1
xor eax, eax
mov word [edi + esi*2 - 2], ax
mov edx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x10]
cmp edx, eax
je 0x410ddd
sub edx, 1
je 0x410dd7
sub edx, 1
jne 0x410ddb
cmp eax, 1
jne 0x410ddb
jmp 0x410ddd
cmp eax, ebx
je 0x410ddd
mov ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
leave
ret 0xc
Function at 0x41136a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov dword [ebp - 0x1c], edx
mov ebx, ecx
mov edi, 0x43e54c
mov cl, byte [edi]
or esi, 0xffffffff
mov edx, ebx
mov dword [ebp - 0xc], esi
call fcn.00410e26
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x41149f
push ecx
push 0x469690
lea ecx, [ebp - 0x38]
call fcn.0040f277
xor esi, esi
mov dword [ebp - 0x14], esi
cmp esi, 4
jge 0x411494
movzx eax, byte [ebx + 0x14]
lea ecx, [ebp - 0x2c]
mov edx, dword [ebx + 0x10]
and dword [ebp - 8], 0
push 0
push eax
push dword [ebp - 0x18]
mov byte [ebp - 1], 0
push 0
call fcn.00410394
lea ecx, [ebp - 8]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x24]
push eax
call fcn.00411fae
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4113fb
and dword [ebp - 0x28], 0
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0xc], 0
jne 0x411476
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push dword [ebp - 0x1c]
mov dword [eax], ecx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push 0
push dword [ebx]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
mov dword [ebp - 0xc], ecx
call fcn.004101f1
test eax, eax
je 0x41143d
mov ecx, dword [ebx + 0x10]
call fcn.0041020e
mov byte [ebp - 1], 1
jmp 0x411476
mov esi, ecx
test ecx, ecx
jne 0x411473
movzx edx, word [ebx + 0x18]
mov eax, edx
and eax, 0xf
cmp dword [ebp - 0x10], eax
je 0x41146f
cmp dword [ebp - 0x10], 3
jne 0x411467
mov eax, dword [ebp + 0xc]
cmp dword [eax], 4
jne 0x411467
and dl, 0xf
cmp dl, 4
je 0x41146f
push 2
pop ecx
push ecx
mov dword [ebp - 0xc], ecx
pop esi
test ecx, ecx
je 0x4114ae
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x411486
and dword [ebp - 8], 0
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp byte [ebp - 1], 0
mov dword [ebp - 0x14], esi
jne 0x4113ae
lea ecx, [ebp - 0x38]
call fcn.0040f24d
mov esi, dword [ebp - 0xc]
inc edi
cmp edi, 0x43e54f
jne 0x411381
jmp 0x4114c6
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4114be
and dword [ebp - 8], 0
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x38]
call fcn.0040f24d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4126da
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], 0x20a
mov word [eax], dx
lea edx, [ebp - 4]
push edx
push eax
push 0
push 2
push str.mso.dll
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
neg eax
sbb al, al
inc al
leave
ret 8
Function at 0x4140b2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, ecx
push eax
push 0x20019
push 0
push str.CLSID
push Ordinal_1
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x414149
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 8]
call edi
test eax, eax
jne 0x41413e
push 4
pop edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4400f4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41413e
cmp dword [ebp - 0xc], edi
jne 0x41413e
mov edi, dword [ebp - 0x10]
cmp edi, 3
ja 0x41413e
cmp dword [ebp - 4], eax
je 0x41414b
push dword [ebp - 4]
call esi
jmp 0x41414b
cmp dword [ebp - 4], 0
je 0x414149
push dword [ebp - 4]
call esi
xor edi, edi
cmp dword [ebp - 8], 0
je 0x414156
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414449
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x4694f4], 0
je 0x41445e
mov eax, dword [0x4694f8]
leave
ret
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4144ac
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x4694f8
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4144ac
cmp dword [ebp - 8], 4
je 0x414505
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
test eax, eax
je 0x4144bd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41450d
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x4694f8
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41450d
cmp dword [ebp - 8], 4
jne 0x41450d
mov esi, dword [0x4694f8]
jmp 0x414513
mov dword [0x4694f8], esi
cmp dword [ebp - 4], 0
mov al, 1
mov byte [0x4694f4], al
je 0x414529
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x415198
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, edx
mov dword [ebp - 4], ecx
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [ebp + ecx - 4]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x4151ab
push edx
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040f53f
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4151d8
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 4]
jne 0x4151e1
xor al, al
jmp 0x4151f7
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
je 0x4151fc
mov edx, dword [esi]
lea eax, [ecx + 0x10]
push eax
mov ecx, esi
call dword [edx + 0xc]
mov al, 1
pop esi
leave
ret 4
push 0
push 0x1e3c3840
call fcn.0040e5ee
int3

Function at 0x415702
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, word [eax]
mov dword [ebp + 8], eax
movzx eax, byte [ebp + ecx + 8]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 2
jb 0x415715
mov eax, edx
pop ebp
ret 4