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

Disassembly:
push 0x10c
mov eax, 0x465dce
call fcn.00464982
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x10c]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
push 0x1ec
push str.c:jenkinsworkspaceClientClientWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 0
call fcn.0040c45a
and dword [ebp - 4], 0
mov edx, str.Start_ClearDefaultProtocolHandler...
mov ecx, 0x490340
call fcn.0041044a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10c]
call fcn.0040c5f9
push esi
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociations_
lea ecx, [ebp - 0x108]
call fcn.00410690
xor esi, esi
lea ecx, [ebp - 0xf0]
inc esi
mov edx, eax
mov dword [ebp - 4], esi
mov dword [esp], str.UserChoice
call fcn.0040ba0a
pop ecx
push esi
push edi
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.0040ff69
lea ecx, [ebp - 0xf0]
mov esi, eax
call fcn.0040acc1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.0040acc1
test esi, esi
je 0x40f361
xor ebx, ebx
lea eax, [ebp - 0xd8]
push 0xc8
push ebx
push eax
mov dword [ebp - 0x110], ebx
call fcn.0045e110
add esp, 0xc
mov dword [ebp - 0x114], 0xc6
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
mov ebx, str.Progid
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x40f2ee
push 0x1fd
push str.c:jenkinsworkspaceClientClientWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x10c]
call fcn.0040c45a
push edi
push ecx
mov edx, str.RegQueryValueEx_fail_error_code:
mov dword [ebp - 4], 3
mov ecx, 0x490340
call fcn.0041044a
pop ecx
mov ecx, eax
call fcn.0040a31e
lea ecx, [ebp - 0x10c]
jmp 0x40f355
cmp dword [ebp - 0x110], 1
jne 0x40f35a
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xd8]
push eax
call fcn.00410355
test eax, eax
jne 0x40f35a
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test edi, edi
je 0x40f35a
push 0x208
push str.c:jenkinsworkspaceClientClientWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x118]
call fcn.0040c45a
push edi
push ecx
mov edx, str.RegDeleteValue_fail_error_code:
mov dword [ebp - 4], 4
mov ecx, 0x490340
call fcn.0041044a
pop ecx
mov ecx, eax
call fcn.0040a31e
lea ecx, [ebp - 0x118]
call fcn.0040c5f9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0046493d
ret 0x10
Function at 0x40f369
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x164
mov eax, 0x465e3f
call fcn.00464982
mov dword [ebp - 0x168], ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x164]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
push 0x216
mov dword [ebp - 0x15c], eax
xor eax, eax
push str.c:jenkinsworkspaceClientClientWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push eax
mov dword [ebp - 0x160], eax
call fcn.0040c45a
and dword [ebp - 4], 0
mov edx, str.Start_ResetDefaultProtocolHandler...
mov ecx, 0x490340
call fcn.0041044a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x164]
call fcn.0040c5f9
push esi
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociations_
lea ecx, [ebp - 0x13c]
call fcn.00410690
xor esi, esi
lea ecx, [ebp - 0x124]
inc esi
mov edx, eax
mov dword [ebp - 4], esi
mov dword [esp], str.UserChoice
call fcn.0040ba0a
pop ecx
push esi
push edi
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.0040ff69
lea ecx, [ebp - 0x124]
mov edi, eax
call fcn.0040acc1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.0040acc1
test edi, edi
je 0x40f599
mov esi, 0x47a6ec
lea ecx, [ebp - 0x154]
push esi
call fcn.0040a58e
push str.Progid
lea ecx, [ebp - 0x10c]
mov dword [ebp - 4], 3
call fcn.0040a58e
push esi
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 4
call fcn.0040a58e
push 1
push ecx
mov ecx, dword [ebp - 0x168]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0xf4]
push eax
push edi
call fcn.00410037
lea ecx, [ebp - 0xf4]
mov esi, eax
call fcn.0040acc1
lea ecx, [ebp - 0x10c]
call fcn.0040acc1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x154]
call fcn.0040acc1
test esi, esi
je 0x40f592
xor ebx, ebx
lea eax, [ebp - 0xdc]
push 0xc8
push ebx
push eax
mov dword [ebp - 0x158], ebx
call fcn.0045e110
add esp, 0xc
mov dword [ebp - 0x16c], 0xc6
lea eax, [ebp - 0x16c]
mov esi, str.Progid
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x158]
push eax
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f51e
cmp dword [ebp - 0x158], 1
jne 0x40f51e
mov ecx, dword [ebp - 0x15c]
lea eax, [ebp - 0xdc]
push eax
call fcn.00410355
test eax, eax
je 0x40f592
mov eax, dword [ebp - 0x15c]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40f52e
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
add eax, eax
push eax
push ecx
push 1
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x40f588
push 0x230
push str.c:jenkinsworkspaceClientClientWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x170]
call fcn.0040c45a
push esi
push ecx
mov edx, str.RegSetValueEx_fail_error_code:
mov dword [ebp - 4], 5
mov ecx, 0x490340
call fcn.0041044a
pop ecx
mov ecx, eax
call fcn.0040a31e
lea ecx, [ebp - 0x170]
call fcn.0040c5f9
mov dword [ebp - 0x160], 1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x160]
call fcn.0046493d
ret 0x10
Function at 0x40f609
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0x224
mov eax, 0x465e84
call fcn.00464982
mov dword [ebp - 0x224], ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0x208
push esi
push eax
call fcn.0045e110
add esp, 0xc
mov dword [ebp - 0x21c], esi
xorps xmm0, xmm0
movlpd qword [ebp - 0x230], xmm0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x40f7dd
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x40f6c5
cmp esi, 2
je 0x40f7dd
push 0x264
push str.c:jenkinsworkspaceClientClientWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x224]
call fcn.0040c45a
xor edx, edx
mov ecx, 0x490340
mov dword [ebp - 4], edx
mov edx, str.RegOpenKeyEx_fail_error_code:
push esi
call fcn.0041044a
mov ecx, eax
call fcn.0040a31e
lea ecx, [ebp - 0x224]
call fcn.0040c5f9
xor eax, eax
jmp 0x40f7e0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
lea esi, [edi + eax*2]
pop eax
cmp word [esi - 2], ax
je 0x40f744
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
jmp 0x40f744
xor eax, eax
mov ecx, 0x208
mov word [esi], ax
xor edx, edx
mov eax, edi
cmp word [eax], dx
je 0x40f700
add eax, 2
sub ecx, 1
jne 0x40f6f3
test ecx, ecx
je 0x40f733
mov edx, ecx
lea eax, [ebp - 0x218]
push ecx
neg edx
push eax
sbb edx, edx
lea eax, [ecx - 0x208]
and edx, eax
mov eax, 0x208
add edx, eax
sub eax, ecx
push ecx
add eax, eax
neg ecx
sbb ecx, ecx
and ecx, eax
add ecx, edi
call fcn.0040d97f
mov ecx, dword [ebp - 0x224]
push edi
push ebx
call fcn.0040f609
test eax, eax
je 0x40f77d
xor ecx, ecx
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x230]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
push ecx
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40f6e5
xor eax, eax
mov word [esi - 2], ax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
je 0x40f7dd
push 0x298
push str.c:jenkinsworkspaceClientClientWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x228]
call fcn.0040c45a
push esi
mov edx, str.RegDeleteKey_fail_error_code
mov dword [ebp - 4], 1
mov ecx, 0x490340
call fcn.0041044a
mov ecx, eax
call fcn.0040a31e
lea ecx, [ebp - 0x228]
jmp 0x40f6b9
xor eax, eax
inc eax
call fcn.0046493d
ret 8
Function at 0x40f7e8
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0x804
mov eax, 0x465ec9
call fcn.00464982
mov dword [ebp - 0x810], ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
push 0x7d0
push eax
mov dword [ebp - 0x800], eax
mov dword [ebp - 0x804], eax
lea eax, [ebp - 0x7e0]
push eax
call fcn.0045e110
and dword [ebp - 0x7fc], 0
lea ecx, [ebp - 0x80c]
add esp, 0xc
mov dword [ebp - 0x808], 0x7ce
push 0x2a7
push str.c:jenkinsworkspaceClientClientWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 0
call fcn.0040c45a
and dword [ebp - 4], 0
mov edx, str.Start_ResetProtoShellOpenCmd...
mov ecx, 0x490340
call fcn.0041044a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80c]
call fcn.0040c5f9
push esi
mov edx, str.SoftwareClasses_
lea ecx, [ebp - 0x7f8]
call fcn.00410690
pop ecx
push 0
push edi
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.0040ff69
lea ecx, [ebp - 0x7f8]
mov esi, eax
call fcn.0040acc1
test esi, esi
je 0x40f9a6
lea eax, [ebp - 0x800]
xor ebx, ebx
push eax
push 0x2001f
push ebx
push str.DefaultIcon
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0x47a6ec
test eax, eax
jne 0x40f922
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x7e0]
push eax
lea eax, [ebp - 0x7fc]
push eax
push ebx
push edi
push dword [ebp - 0x800]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f922
cmp dword [ebp - 0x7fc], 1
jne 0x40f922
mov ecx, dword [ebp - 0x810]
lea eax, [ebp - 0x7e0]
push eax
call fcn.00410355
test eax, eax
jne 0x40f922
push edi
push dword [ebp - 0x800]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x804]
push eax
push 0x2001f
push ebx
push str.shellopencommand
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f99f
lea eax, [ebp - 0x808]
mov dword [ebp - 0x7fc], ebx
push eax
lea eax, [ebp - 0x7e0]
mov dword [ebp - 0x808], 0x7ce
push eax
lea eax, [ebp - 0x7fc]
push eax
push ebx
push edi
push dword [ebp - 0x804]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f99f
cmp dword [ebp - 0x7fc], 1
jne 0x40f99f
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x7e0]
push eax
call fcn.00410355
test eax, eax
jne 0x40f99f
push edi
push dword [ebp - 0x804]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x800], 0
je 0x40f9bb
push dword [ebp - 0x800]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x804], 0
je 0x40f9d0
push dword [ebp - 0x804]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0046493d
ret 0x10
Function at 0x410037
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7e0
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [ecx + 0x7c], ebx
jne 0x410126
cmp dword [ebp + 0x18], ebx
mov ecx, 0x20119
mov edx, 0x20019
mov dword [ebp - 0x7d8], ebx
cmove ecx, edx
cmp dword [eax + 0x10], ebx
je 0x4100a3
cmp dword [eax + 0x14], 8
jb 0x410084
mov eax, dword [eax]
lea edx, [ebp - 0x7d8]
push edx
push ecx
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410126
mov edi, dword [ebp - 0x7d8]
push 0x7d0
lea eax, [ebp - 0x7d4]
mov dword [ebp - 0x7dc], ebx
push ebx
push eax
call fcn.0045e110
add esp, 0xc
mov dword [ebp - 0x7e0], 0x7ce
cmp dword [esi + 0x14], 8
jb 0x4100d0
mov esi, dword [esi]
lea eax, [ebp - 0x7e0]
push eax
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0x7dc]
push eax
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp dword [ebp - 0x7d8], ebx
je 0x410104
push dword [ebp - 0x7d8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x410126
cmp dword [ebp - 0x7dc], 1
jne 0x410126
lea eax, [ebp - 0x7d4]
push eax
call fcn.0043d5e8
pop ecx
test eax, eax
je 0x410126
xor eax, eax
jmp 0x410129
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a206
leave
ret 0x14

Function at 0x410bb3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
mov edi, 0x20019
mov dword [ebp - 4], esi
push edi
push esi
push 0x47af28
push SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410c6d
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x47af5c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410c51
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push esi
push 0x47af64
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x410c51
cmp dword [ebp - 0xc], 1
je 0x410c31
cmp dword [ebp - 0xc], 2
jne 0x410c51
cmp dword [ebp - 4], esi
je 0x410c3f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x410c4d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x410c6f
cmp dword [ebp - 4], esi
je 0x410c5f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x410c6d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
leave
ret 0x10
Function at 0x410c75
Capabilities:
Create directory
Print debug messages

Disassembly:
push 0x14
mov eax, 0x46615a
call fcn.0046494e
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [esi], ebx
je 0x410d67
cmp dword [edi], ebx
jne 0x410cb2
push 0x24
call fcn.0045a443
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.00402795
mov dword [edi], eax
test eax, eax
je 0x410d67
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
cmp byte [esi + 9], 0
jne 0x410d0a
push ecx
push dword [esi + 4]
push dword [esi]
push ecx
call fcn.00410bb3
test al, al
je 0x410d0a
mov ecx, dword [edi]
lea eax, [ebp - 0x20]
push eax
push 0x47933b
push dword [esi]
call fcn.00402c78
test eax, eax
je 0x410d0a
mov edi, dword [ebp - 0x20]
cmp edi, dword [ebp - 0x1c]
je 0x410d07
push str._CPluginImpHelper::GetInstallPath__Get_Install_Path:
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x410d41
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi]
lea eax, [ebp - 0x20]
push eax
call fcn.0040304c
mov edi, dword [ebp - 0x20]
test eax, eax
je 0x410d43
cmp edi, dword [ebp - 0x1c]
je 0x410d43
lea eax, [edi + 8]
push eax
push dword [esi + 4]
push dword [esi]
call fcn.0043dad4
add esp, 0xc
cmp byte [esi + 8], 0
je 0x410d41
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov bl, 1
test edi, edi
je 0x410d63
mov eax, dword [ebp - 0x18]
mov ecx, 0x110
sub eax, edi
cdq
idiv ecx
imul ecx, eax, 0x110
push ecx
push edi
call fcn.00403711
pop ecx
pop ecx
mov al, bl
jmp 0x410d69
xor al, al
call fcn.00464928
ret 8
Function at 0x411401
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x104
lea eax, [ebp - 0x110]
push esi
push 0
push eax
call fcn.0045e110
add esp, 0xc
lea eax, [ebp - 0x110]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x411477
push str.winsxsx86_microsoft.vc90.crt_
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.0043dbbb
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x411477
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
jmp 0x411479
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045a206
leave
ret

Function at 0x411520
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.0045e110
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop esi
test eax, eax
jne 0x41157e
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41159c
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x4115a0
sub eax, 1
je 0x4115a0
sub eax, 1
jne 0x41159c
cmp dword [ebp - 0x11c], 6
jb 0x4115a0
xor al, al
jmp 0x4115a2
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a206
leave
ret 4

Function at 0x411b60
Capabilities:
Get common file path

Disassembly:
test ecx, ecx
je 0x411b79
push 1
push 2
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x411b79
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x411f30
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
test esi, esi
je 0x411f72
push 0xf0000000
push 0x18
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x411f72
lea edi, [esi + 4]
push edi
push ebx
push ebx
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x411f72
cmp dword [edi], ebx
je 0x411f72
mov bl, 1
jmp 0x411f78
push esi
call fcn.00411ef3
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 4
Function at 0x411f81
Capabilities:
Hash data via wincrypt

Disassembly:
push 0x54
mov eax, 0x46625f
call fcn.00464982
mov esi, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
push 0x40
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x5c], 1
push eax
call fcn.0045e110
add esp, 0xc
test edi, edi
je 0x412014
test ebx, ebx
je 0x412014
cmp dword [ebp + 0x14], 0
jle 0x412014
push 0
push dword [ebp + 0x14]
push ebx
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x412014
push 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x40
push eax
lea eax, [ebp - 0x54]
push eax
push 2
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x412014
lea edx, [ebp - 0x54]
add edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
push esi
call fcn.004130aa
pop ecx
mov eax, esi
call fcn.0046493d
ret 0x10

Function at 0x4122a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4122c7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ccc0
jmp 0x41237c
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4122e9
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4122eb
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x412370
jg 0x412300
test esi, esi
je 0x412370
test ecx, ecx
jl 0x412353
jg 0x41230a
test eax, eax
je 0x412353
cmp edi, ecx
jg 0x41231e
jl 0x412314
cmp esi, eax
jae 0x41231e
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.0045ea40
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
mov eax, dword [ebp + 8]
add eax, ecx
test edi, edi
jl 0x412370
jg 0x412356
test esi, esi
je 0x412370
jmp 0x412356
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x412370
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.00441c37
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412390
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jg 0x4123b7
jl 0x4123ae
test edi, edi
jne 0x4123b7
xor eax, eax
xor edx, edx
jmp 0x4124b7
cmp dword [ebx + 0x38], 0
je 0x4123cc
push esi
push edi
push dword [ebp + 8]
call fcn.0040cdb0
jmp 0x4124b7
mov eax, dword [ebx + 0x1c]
mov ecx, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov ecx, dword [eax]
test ecx, ecx
je 0x41241f
mov eax, dword [ebx + 0x2c]
cmp dword [eax], 0
jbe 0x41241f
cmp dword [eax], edi
mov esi, edi
cmovb esi, dword [eax]
push esi
push ecx
push dword [ebp + 8]
call fcn.0045ea40
mov eax, dword [ebx + 0x2c]
mov ecx, edi
mov edx, dword [ebp + 8]
sub ecx, esi
add edx, esi
mov dword [esp + 0x1c], ecx
add esp, 0xc
mov dword [esp + 0xc], edx
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x14], ecx
add dword [eax], esi
mov esi, dword [ebp + 0x10]
jmp 0x412426
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x4124aa
mov ecx, ebx
call fcn.00412c7e
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp eax, 0xfff
jbe 0x412482
mov ecx, dword [esp + 0xc]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call fcn.0044203f
mov ecx, dword [esp + 0x1c]
add esp, 0x10
mov edx, dword [esp + 0x10]
add ecx, eax
sub edx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
cmp eax, 0xfff
jne 0x41247e
cmp edx, eax
ja 0x412446
jmp 0x412486
sub edi, edx
jmp 0x4124b0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, eax
test eax, eax
je 0x4124ae
push dword [ebx + 0x4c]
push edx
push 1
push dword [esp + 0x18]
call fcn.0044203f
mov ecx, dword [esp + 0x24]
add esp, 0x10
sub ecx, eax
jmp 0x4124ae
mov ecx, dword [esp + 0x14]
sub edi, ecx
sbb esi, 0
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc