joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4081f4
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 0x438e54
push Ordinal_1
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40828b
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 0x408280
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 str.InsecureQI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408280
cmp dword [ebp - 0xc], edi
jne 0x408280
mov edi, dword [ebp - 0x10]
cmp edi, 3
ja 0x408280
cmp dword [ebp - 4], eax
je 0x40828d
push dword [ebp - 4]
call esi
jmp 0x40828d
cmp dword [ebp - 4], 0
je 0x40828b
push dword [ebp - 4]
call esi
xor edi, edi
cmp dword [ebp - 8], 0
je 0x408298
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40856a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x493c34], 0
je 0x408582
mov eax, dword [0x493c38]
jmp 0x408650
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 0x4085d0
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x493c38
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4085d0
cmp dword [ebp - 8], 4
je 0x408629
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
test eax, eax
je 0x4085e1
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 0x408631
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x493c38
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408631
cmp dword [ebp - 8], 4
jne 0x408631
mov esi, dword [0x493c38]
jmp 0x408637
mov dword [0x493c38], esi
cmp dword [ebp - 4], 0
mov byte [0x493c34], 1
je 0x40864d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40927b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x490270]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
mov edi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x20c]
push esi
push 0x2b
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4092e4
cmp word [ebp - 0x20c], si
je 0x4092e4
push ecx
push edi
mov edx, str.Microsoft_Shared
lea ecx, [ebp - 0x20c]
call fcn.004092f6
mov esi, eax
test esi, esi
jne 0x4092e6
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00430c8a
mov esp, ebp
pop ebp
ret
Function at 0x40a553
Capabilities:
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433733
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x490270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edx, 0x4f8
mov dword [esi + 4], eax
xor eax, eax
push 7
pop ecx
mov dword [esi], 0x43a430
and dword [esi + 0x18], 0
mov dword [esi + 0x1c], ecx
mov word [esi + 8], ax
and dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov ecx, 0x8dc24f
mov word [esi + 0x20], ax
mov eax, 0x4391f4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], str.StringType
push eax
push str.Mso::Licensing::Telemetry::ResultTelemetry_5_4_::ResultTelemetry
push 0x64
mov dword [ebp - 0x10], str.WCHAR
mov dword [ebp - 0x20], str.ResultCodeType
mov dword [ebp - 0x1c], str.uint32_t
call fcn.00408c09
push ecx
push ecx
mov ecx, esi
call fcn.0040a65e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push esi
push edi
xor edi, edi
mov esi, 0x811c9dc5
test edx, edx
je 0x40b287
movzx eax, byte [edi + ecx]
xor eax, esi
imul esi, eax, 0x1000193
inc edi
cmp edi, edx
jb 0x40b276
pop edi
mov eax, esi
pop esi
ret

Function at 0x40cb99
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
mov eax, dword [0x490270]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ecx + 0x20]
mov eax, dword [ebp + 8]
push esi
cmp edx, 0xffffffff
je 0x40cbf3
and dword [ebp - 0x39c], 0
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x40cbc9
mov ecx, dword [eax]
push 0
lea esi, [ebp - 0x39c]
push esi
push dword [eax + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
test eax, eax
pop esi
setne al
xor ecx, ebp
call fcn.00430c8a
mov esp, ebp
pop ebp
ret 8
push str.trying_to_write_to_a_from_a_file_thats_not_open
push ecx
lea ecx, [ebp - 0x398]
call fcn.0040defc
push 0x48da88
lea eax, [ebp - 0x398]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x40cd3d
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40cd4a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40cd9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40cd9c
cmp eax, 5
jne 0x40cd94
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40cd6f
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x40cd83
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40cd9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40cd9c
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x40f973
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433e5b
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x490270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x2a8]
mov dword [ebp - 0x240], eax
xor ebx, ebx
xor eax, eax
mov esi, dword [ebp + 0xc]
stosd dword es:[edi], eax
push 6
pop ecx
push 8
stosd dword es:[edi], eax
mov dword [ebp - 0x23c], 0x10
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x298]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2a8]
mov byte [ebp - 0x280], bl
mov dword [ebp - 0x288], eax
lea edi, [ebp - 0x30]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x40fa0c
mov ebx, 0x8000ffff
jmp 0x40fb49
push 0x208
lea eax, [ebp - 0x238]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test esi, esi
jne 0x40faa9
mov dword [ebp - 4], ebx
call fcn.00413df1
lea ecx, [ebp - 0x274]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
cmp dword [ebp - 0x274], 1
jne 0x40fa76
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_688]
lea ecx, [ebp - 0x274]
mov esi, eax
call fcn.00410160
push 1
push eax
mov ecx, esi
call fcn.004101d7
lea ecx, [ebp - 0x274]
mov ebx, dword [eax]
call fcn.004100fa
jmp 0x40fb45
lea ecx, [ebp - 0x274]
call fcn.00410122
cmp dword [eax + 0x14], 8
jb 0x40fa89
mov eax, dword [eax]
mov edi, 0x104
lea edx, [ebp - 0x238]
push edi
mov ecx, eax
call fcn.00402dd4
lea ecx, [ebp - 0x274]
call fcn.004100fa
jmp 0x40fabc
mov edi, 0x104
lea edx, [ebp - 0x238]
push edi
mov ecx, esi
call fcn.00402dd4
mov esi, dword [sym.imp.Mso20Win32Client.dll_Ordinal_502]
lea eax, [ebp - 0x238]
push edi
push eax
push 0x43b38c
call esi
push edi
lea eax, [ebp - 0x238]
push eax
push str.AttemptGetKey
call esi
lea eax, [ebp - 0x30]
push eax
push 0x4409a0
lea ecx, [ebp - 0x2a8]
call fcn.0040f09f
test al, al
je 0x40fa02
mov esi, dword [ebp - 0x240]
lea eax, [ebp - 0x298]
xor ecx, ecx
cmp byte [ebp - 0x280], cl
push 4
cmove eax, ecx
lea ecx, [ebp - 0x238]
push ecx
push eax
mov ecx, esi
call fcn.0040f0fb
test al, al
je 0x40fa02
xor ecx, ecx
lea eax, [esi + 0x10]
cmp byte [esi + 0x28], cl
cmovne ecx, eax
push ecx
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_1392]
test eax, eax
jne 0x40fba3
xor ebx, ebx
inc ebx
test ebx, ebx
jns 0x40fba3
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x248], str.HRESULT
push eax
lea eax, [ebp - 0x258]
mov dword [ebp - 0x244], ebx
push eax
push str.C2RWrappers::FindAttemptGetKey
push 0x32
push 0x2d
pop edx
mov ecx, 0x150c160
mov dword [ebp - 0x24c], 0x4397a0
mov dword [ebp - 0x258], 0x4391f4
mov dword [ebp - 0x254], str.Information
mov dword [ebp - 0x250], str.Failed_to_find_AttemptGetKey_registry_value.
call fcn.00408c09
lea ecx, [ebp - 0x2a8]
call fcn.0040f046
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430c8a
mov esp, ebp
pop ebp
ret 8
Function at 0x415c75
Capabilities:
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433733
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x490270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edx, 0x4f8
mov dword [esi + 4], eax
xor eax, eax
push 7
pop ecx
mov dword [esi], 0x43da44
and dword [esi + 0x18], 0
mov dword [esi + 0x1c], ecx
mov word [esi + 8], ax
and dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov ecx, 0x8dc24b
mov word [esi + 0x20], ax
mov eax, 0x4391f4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], str.StringType
push eax
push str.Mso::Licensing::Telemetry::ResultTelemetry_5_13_::ResultTelemetry
push 0x64
mov dword [ebp - 0x10], str.WCHAR
mov dword [ebp - 0x20], str.ResultCodeType
mov dword [ebp - 0x1c], str.HRESULT
call fcn.00408c09
push ecx
push ecx
mov ecx, esi
call fcn.00415d25
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41a5f2
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
xor edx, edx
movzx eax, byte [edx + edi]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
cmp edx, 4
jb 0x41a601
mov eax, dword [ecx + 0x18]
pop edi
and eax, esi
pop esi
pop ebp
ret 4

Function at 0x41d910
Capabilities:
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433733
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x490270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edx, 0x4f8
mov dword [esi + 4], eax
xor eax, eax
push 7
pop ecx
mov dword [esi], 0x43f640
and dword [esi + 0x18], 0
mov dword [esi + 0x1c], ecx
mov word [esi + 8], ax
and dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov ecx, 0x8dc24b
mov word [esi + 0x20], ax
mov eax, 0x4391f4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], str.StringType
push eax
push str.Mso::Licensing::Telemetry::ResultTelemetry_10_7_::ResultTelemetry
push 0x64
mov dword [ebp - 0x10], str.WCHAR
mov dword [ebp - 0x20], str.ResultCodeType
mov dword [ebp - 0x1c], str.HRESULT
call fcn.00408c09
push ecx
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0041d9c2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x424c7f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
mov eax, dword [0x490270]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x394], 0
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0xffffffff
je 0x424d44
push 0
lea ecx, [ebp - 0x394]
push ecx
push dword [ebp + 0xc]
push eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x424cf9
mov ecx, dword [ebp + 0xc]
call fcn.0040257c
mov dword [ebp - 0x398], eax
lea eax, [ebp - 0x394]
push eax
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x398]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea ecx, [ebp - 0x390]
call fcn.00425181
jmp 0x424d51
mov eax, dword [ebp - 0x394]
cmp eax, dword [ebp + 0xc]
je 0x424d33
mov ecx, dword [ebp + 0xc]
call fcn.0040257c
mov dword [ebp - 0x398], eax
lea eax, [ebp - 0x394]
push eax
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x398]
push eax
push ecx
push ecx
lea ecx, [ebp - 0x390]
call fcn.004251a6
jmp 0x424d51
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00430c8a
mov esp, ebp
pop ebp
ret 0xc
push ecx
push ecx
lea ecx, [ebp - 0x390]
call fcn.0041e170
push 0x48da88
lea eax, [ebp - 0x390]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x424d63
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
mov eax, dword [0x490270]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x398]
push edi
mov edi, ecx
push eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [ebp - 0x394], 0
jl 0x424da1
jg 0x424dd8
cmp dword [ebp - 0x398], 0xffffffff
ja 0x424dd8
push esi
push dword [ebp - 0x398]
mov ecx, esi
call fcn.0040acae
mov edx, dword [esi]
mov eax, dword [esi + 4]
push 0
pop ecx
sub eax, edx
push ecx
cmove edx, ecx
mov ecx, edi
push eax
push edx
call fcn.00424c7f
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00430c8a
mov esp, ebp
pop ebp
ret 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea ecx, [ebp - 0x390]
call fcn.004251c8
push 0x48da88
lea eax, [ebp - 0x390]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x4273ca
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, edx
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4273e5
push edx
push 0x4a355c
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_2055]
push esi
push edi
xor edi, edi
push edi
push edi
push 0x80
push 3
push edi
push edi
push Ordinal_1
push ecx
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_913]
mov esi, eax
cmp esi, 0xffffffff
jne 0x427415
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x427500
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push esi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x427431
test esi, esi
je 0x42740e
push esi
jmp 0x427408
mov eax, dword [ebp - 0x10]
push ebx
mov ebx, dword [ebp - 0x14]
cmp eax, edi
jg 0x4274d3
jl 0x4274d3
cmp ebx, 1
jbe 0x4274d3
cmp eax, edi
jl 0x42745a
jg 0x4274d3
cmp ebx, 0xffffffff
ja 0x4274d3
push ebx
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
call fcn.00409a95
test al, al
jne 0x427474
cmp dword [ebp - 4], edi
je 0x4274d3
push dword [ebp - 4]
jmp 0x4274cc
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
mov edi, dword [ebp - 4]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x427491
cmp dword [ebp - 8], ebx
je 0x427497
test edi, edi
je 0x4274d3
jmp 0x4274cb
cmp byte [edi], 0xff
jne 0x4274cb
cmp byte [edi + 1], 0xfe
jne 0x4274cb
and dword [ebp - 4], 0
lea eax, [ebx - 2]
shr eax, 1
lea ecx, [ebp - 4]
push eax
lea eax, [edi + 2]
push eax
call fcn.00425cf5
test eax, eax
jns 0x4274e2
cmp dword [ebp - 4], 0
je 0x4274cb
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_456]
pop ecx
test esi, esi
je 0x4274de
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4274ff
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
push edi
mov dword [ecx], eax
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_456]
pop ecx
test esi, esi
je 0x4274fd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4276db
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor esi, esi
push esi
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
push ecx
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_913]
mov edi, eax
cmp edi, 0xffffffff
je 0x4277ac
push esi
lea eax, [ebp - 0xc]
mov word [ebp - 4], 0xfeff
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42772d
mov eax, 0x80004005
jmp 0x4277ae
push str.__xml_version_1.0__encoding_UTF_16____r_n_HeartbeatCache__
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00425d2e
push esi
mov esi, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x427766
test esi, esi
je 0x427723
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x427723
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x4391f4
push eax
push str.HeartbeatAdapter::CreateEmptyCacheFile
push 0x32
push 0x2d
pop edx
mov ecx, 0x7a05d8
mov dword [ebp - 0x14], str.Information
mov dword [ebp - 0x10], str.Successfully_created_empty_cache_file
call fcn.0040a95e
test esi, esi
je 0x4277ac
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4277b4
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x435a31
call fcn.004327ba
mov esi, ecx
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00428178
mov edi, dword [ebp - 0x10]
mov ebx, eax
test ebx, ebx
js 0x427903
mov eax, 0x4391f4
mov dword [ebp - 0x20], str.CacheFile
mov dword [ebp - 0x24], eax
mov ecx, 0x7a05d9
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1c], edi
push eax
push str.HeartbeatAdapter::SaveCacheFile
push 0x32
push 0x2d
pop edx
mov dword [ebp - 0x2c], str.Information
mov dword [ebp - 0x28], str.Saving_updated_cache_file
call fcn.00408c09
and dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
mov ecx, dword [esi]
test ecx, ecx
jne 0x427836
mov ebx, 0x8007000e
jmp 0x4278f1
mov eax, dword [ecx]
push ecx
call dword [eax + 0x38]
lea edx, [ebp - 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov ebx, eax
test ebx, ebx
js 0x4278f1
xor ebx, ebx
push ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_913]
mov esi, eax
cmp esi, 0xffffffff
je 0x4278e6
push ebx
lea eax, [ebp - 0x18]
mov word [ebp - 0x10], 0xfeff
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4278e1
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push 0
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4278e1
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x4391f4
push eax
push str.HeartbeatAdapter::SaveCacheFile
push 0x32
push 0x2d
pop edx
mov ecx, 0x7a05da
mov dword [ebp - 0x2c], str.Information
mov dword [ebp - 0x28], str.Successfully_saved_the_updated_cache
call fcn.0040a95e
xor ebx, ebx
jmp 0x4278e6
mov ebx, 0x80004005
test esi, esi
je 0x4278f1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x427903
and dword [ebp - 0x14], 0
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
je 0x42790e
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, ebx
call fcn.0043278e
ret
Function at 0x42fb34
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Reference public rsa key

Disassembly:
push 0x10
mov eax, 0x435ff4
call fcn.004327ba
mov ebx, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov edi, esi
cmp dword [ebp + 0x14], esi
mov dword [ebp - 0x14], esi
setne al
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
test al, al
je 0x42fc87
push 0xf0000000
push 0x18
push esi
push esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x42fb8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042f63a
mov esi, eax
jmp 0x42fc8c
lea eax, [ebp - 0x10]
push eax
push 1
push 0x6610
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x42fb77
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push 0x114
push 0x490540
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x42fb77
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
push esi
push esi
push 1
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x42fb77
mov eax, dword [ebp - 0x1c]
lea esi, [eax + 0x14]
cmp esi, eax
ja 0x42fbef
mov esi, 0x80070216
jmp 0x42fc8c
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x42fc08
mov esi, 0x8007000e
jmp 0x42fc8c
xor ecx, ecx
mov dword [edi], esi
inc ecx
mov dword [edi + 8], 0x10000
mov dword [edi + 4], ecx
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [edi + 0x10]
push eax
push 0
push ecx
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x42fb77
mov eax, dword [ebp + 0x14]
push edi
push esi
push dword [ebp + 8]
call dword [eax + 0x54]
mov esi, eax
test esi, esi
js 0x42fc8c
cmp dword [ebx + 4], 0
je 0x42fc60
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and dword [ebx + 4], 0
mov eax, dword [ebp - 0x10]
and dword [ebp - 0x10], 0
cmp dword [ebx], 0
mov dword [ebx + 4], eax
je 0x42fc7c
push 0
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and dword [ebx], 0
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x14], 0
mov dword [ebx], eax
jmp 0x42fc8c
mov esi, 0x80070057
cmp dword [ebp - 0x18], 0
je 0x42fc9b
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x10], 0
je 0x42fcaa
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x14], 0
je 0x42fcbb
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test edi, edi
je 0x42fcc6
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x42fcd9
call fcn.00401e9c
mov eax, esi
call fcn.0043278e
ret 0x14