joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c9a0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f8d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x455440]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c9f2
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], 1
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40ca40
call fcn.00401380
test eax, eax
jns 0x40ca46
push eax
push 0x47
mov edx, str.Path::ReadFileToString
mov ecx, str.path.cpp
call fcn.0040bca0
mov edi, eax
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push edi
movlpd qword [esp + 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
jne 0x40ca73
call fcn.00401380
test eax, eax
js 0x40ca98
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
test esi, esi
jns 0x40ca9c
push 0x80070057
push 0x325
mov edx, str.ATL::CSimpleStringT_char_0_::PrepareWrite
mov ecx, str.C:Program_FilesMicrosoft_Visual_Studio_12.0VC_atlmfcinclude_atlsimpstr.h
call fcn.0040bca0
mov esi, dword [esp + 0x24]
mov ebx, dword [ebp + 8]
mov ecx, 1
mov eax, dword [ebx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x40caba
push esi
mov ecx, ebx
call fcn.004066b0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push esi
push dword [ebx]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40cb1a
call fcn.00401380
test eax, eax
js 0x40cb25
push esi
mov ecx, ebx
call fcn.0040ce20
mov dword [esp + 0x38], 0xffffffff
test edi, edi
je 0x40cb03
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x1c], 0
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0x14], esi
je 0x40cae0
mov eax, 0x80070026
push eax
push 0x4d
mov edx, str.Path::ReadFileToString
mov ecx, str.path.cpp
call fcn.0040bca0
int3
Function at 0x40cb40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f918
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x455440]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040c8d0
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], 1
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40cbc7
call fcn.00401380
cmp eax, 0x800700b7
je 0x40cbcd
test eax, eax
jns 0x40cbcd
push eax
push 0x60
mov edx, str.Path::WriteBytesToFile
mov ecx, str.path.cpp
call fcn.0040bca0
mov edi, eax
mov dword [esp + 0x14], edi
push 0
lea eax, [esp + 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40cc00
call fcn.00401380
test eax, eax
jns 0x40cc00
push eax
push 0x63
mov edx, str.Path::WriteBytesToFile
mov ecx, str.path.cpp
call fcn.0040bca0
mov dword [esp + 0x28], 0xffffffff
test edi, edi
je 0x40cc1b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40de40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fc18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x455440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 0
push dword [eax]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x40df02
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40dec0
movzx eax, ax
or eax, 0x80070000
push eax
mov edx, 0x1b
mov ecx, str.Version::Version
call fcn.00411130
sub esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.0040db50
mov byte [ebp - 4], 1
lea eax, [ebp - 0x34]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40e01a
push eax
call fcn.00422f1c
add esp, 4
jmp 0x40e01a
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 5
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x40df43
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40df31
movzx eax, ax
or eax, 0x80070000
push eax
push 0x22
mov edx, str.Version::Version
mov ecx, str.version.cpp
call fcn.0040bca0
mov eax, dword [ebp + 8]
push esi
push ebx
push dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40df7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40df69
movzx eax, ax
or eax, 0x80070000
push eax
push 0x25
mov edx, str.Version::Version
mov ecx, str.version.cpp
call fcn.0040bca0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x44baec
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x40dfc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40dfb3
movzx eax, ax
or eax, 0x80070000
push eax
push 0x2a
mov edx, str.Version::Version
mov ecx, str.version.cpp
call fcn.0040bca0
mov ecx, edi
call fcn.00406aa0
mov eax, dword [ebp - 0x14]
mov ecx, edi
movzx eax, word [eax + 0xa]
push eax
call fcn.0040e260
mov eax, dword [ebp - 0x14]
mov ecx, edi
movzx eax, word [eax + 8]
push eax
call fcn.0040e260
mov eax, dword [ebp - 0x14]
mov ecx, edi
movzx eax, word [eax + 0xe]
push eax
call fcn.0040e260
mov eax, dword [ebp - 0x14]
mov ecx, edi
movzx eax, word [eax + 0xc]
push eax
call fcn.0040e260
mov byte [ebp - 4], 1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40f950
Capabilities:
Compare security identifiers
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44018e
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x455440]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x455440]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0xc0]
mov dword [esp + 0x34], eax
mov eax, dword [eax]
test eax, eax
jne 0x40fb51
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x20]
push eax
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
test eax, eax
jne 0x40f9ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40f9da
movzx eax, ax
or eax, 0x80070000
push eax
push 0x98
mov edx, str.Environment::GetActiveUserToken
mov ecx, str.environment.cpp
call fcn.0040bca0
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
call fcn.0040f1f0
mov dword [esp + 0xb0], 0
lea edi, [eax + 4]
mov dword [esp + 0x18], edi
mov dword [esp + 0xb0], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00401950
mov ebx, dword [esp + 0x30]
dec ebx
test ebx, ebx
jle 0x40fb4f
mov esi, ebx
shl esi, 4
mov eax, dword [esp + 0x1c]
mov eax, dword [esi + eax + 0xc]
test eax, eax
je 0x40fb43
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x40fb43
mov eax, dword [esp + 0x1c]
push dword [esi + eax + 4]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0xb0], 1
test edi, edi
jne 0x40fa8d
mov dword [esp + 0xb0], 0xffffffff
jmp 0x40fb3f
mov dword [esp + 0x20], vtable.ATL::CAccessToken.0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov byte [esp + 0xb0], 2
lea eax, [esp + 0x38]
push eax
push 0xb
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40fb14
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x20]
call dword [eax + 4]
mov eax, dword [esp + 0x38]
push ecx
mov dword [esp + 0x28], eax
call fcn.0040fbb0
add esp, 4
test al, al
je 0x40faf7
mov ecx, dword [esp + 0x24]
call fcn.0040f810
cmp eax, 0x2000
jne 0x40fb14
push dword [esp + 0x34]
push 1
push 3
push 0
push 0x2000000
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x40fb75
mov byte [esp + 0xb0], 1
lea ecx, [esp + 0x20]
call fcn.00410970
mov dword [esp + 0xb0], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x18]
dec ebx
sub esi, 0x10
test ebx, ebx
jg 0x40fa33
xor eax, eax
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00422df2
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x34]
mov esi, dword [eax]
mov byte [esp + 0xb0], 1
lea ecx, [esp + 0x20]
call fcn.00410970
mov dword [esp + 0xb0], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0
mov eax, esi
jmp 0x40fb51
Function at 0x40fd40
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44022f
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x455440]
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 esi, ecx
mov dword [ebp - 0xec], esi
mov dword [esi], vtable.ATL::CAccessToken.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0
mov edx, 3
lea ecx, [ebp - 0xd8]
call fcn.00401c10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, dword [eax]
call fcn.0040f1f0
mov ebx, eax
mov dword [ebp - 0xe4], ebx
mov byte [ebp - 4], 2
mov edx, 3
lea ecx, [ebp - 0xe0]
call fcn.00401c10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [eax]
call fcn.0040f090
mov ecx, eax
mov dword [ebp - 0xe8], ecx
mov byte [ebp - 4], 4
lea eax, [ecx + 4]
test eax, eax
je 0x40fe47
lea edi, [ebx + 4]
test edi, edi
je 0x40fe47
cmp byte [ecx + 0x48], 0
je 0x40fe47
mov ebx, dword [sym.imp.ADVAPI32.dll_IsValidSid]
push eax
call ebx
test eax, eax
setne al
test al, al
je 0x40fe47
mov eax, dword [ebp - 0xe4]
cmp byte [eax + 0x48], 0
je 0x40fe47
push edi
call ebx
test eax, eax
setne al
test al, al
je 0x40fe47
mov eax, dword [ebp - 0xe8]
push edi
add eax, 4
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne bl
jmp 0x40fe49
xor bl, bl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00401950
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xdc]
dec dword [eax]
jne 0x40fe95
mov edi, dword [ebp - 0xe0]
test edi, edi
je 0x40fe87
mov ecx, edi
call fcn.00406ca0
push edi
call fcn.00422ded
add esp, 4
mov dword [ebp - 0xe0], 0
push dword [ebp - 0xdc]
call fcn.00422ded
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd0]
call fcn.00401950
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xd4]
dec dword [eax]
jne 0x40fee4
mov edi, dword [ebp - 0xd8]
test edi, edi
je 0x40fed6
mov ecx, edi
call fcn.00406ca0
push edi
call fcn.00422ded
add esp, 4
mov dword [ebp - 0xd8], 0
push dword [ebp - 0xd4]
call fcn.00422ded
add esp, 4
test bl, bl
je 0x40ff04
push str.Process_is_already_impersonated
push 0x147
push str.ScopedImpersonation::ScopedImpersonation
call fcn.004110a0
add esp, 0xc
jmp 0x40ff92
mov edx, 3
lea ecx, [ebp - 0xd8]
call fcn.00401c10
mov byte [ebp - 4], 5
mov ecx, dword [eax]
call fcn.0040f950
mov dword [esi + 4], eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xd4]
dec dword [eax]
jne 0x40ff62
mov edi, dword [ebp - 0xd8]
test edi, edi
je 0x40ff54
mov ecx, edi
call fcn.00406ca0
push edi
call fcn.00422ded
add esp, 4
mov dword [ebp - 0xd8], 0
push dword [ebp - 0xd4]
call fcn.00422ded
add esp, 4
mov ecx, esi
call fcn.00410120
test al, al
jne 0x40ff92
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40ff7f
movzx eax, ax
or eax, 0x80070000
push eax
mov edx, 0x14c
mov ecx, str.ScopedImpersonation::ScopedImpersonation
call fcn.00411130
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, esi
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.00422df2
mov esp, ebp
pop ebp
ret
Function at 0x4112f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x455440]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
mov esi, ecx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41133b
push dword [esi]
push str.File_not_found___ls_
push 7
push str.Signature::IsValid
call fcn.004110a0
add esp, 0x10
xor al, al
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00422df2
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
xorps xmm0, xmm0
movq qword [esp + 8], xmm0
push 0x2c
mov dword [esp + 0xc], eax
lea eax, [esp + 0x1c]
push 0
mov dword [esp + 0x18], 0
push eax
mov dword [esp + 0x10], 0x10
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.004260c0
add esp, 0xc
mov dword [esp + 0x14], 0x30
lea eax, [esp + 4]
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x24], 2
push eax
push 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 1
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0xaac56b
mov dword [esp + 0x54], 0x11d0cd44
mov dword [esp + 0x58], 0xc000c28c
mov dword [esp + 0x5c], 0xee95c24f
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
cmp eax, 0x800b0001
jg 0x411431
je 0x411425
cmp eax, 0x80092026
jne 0x4114ef
push str.CRYPT_E_SECURITY_SETTINGS_error
push 0x3b
jmp 0x4114e2
push str.The_trust_provider_is_not_recognized_on_this_system
push 0x38
jmp 0x4114e2
cmp eax, 0x800b0100
jg 0x4114a8
je 0x411471
cmp eax, 0x800b0002
je 0x411468
cmp eax, 0x800b0003
je 0x41145f
cmp eax, 0x800b0004
jne 0x4114ef
push str.The_signature_is_present__but_not_trusted
push 0x37
jmp 0x4114e2
push str.The_trust_provider_does_not_support_the_form_specified_for_the_subject
push 0x3a
jmp 0x4114e2
push str.The_trust_provider_does_not_support_the_specified_action
push 0x39
jmp 0x4114e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x411483
movzx eax, ax
or eax, 0x80070000
push eax
mov edx, 0x35
mov ecx, str.Signature::IsValid
call fcn.00411130
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00422df2
mov esp, ebp
pop ebp
ret
cmp eax, 0x800b0111
je 0x4114db
test eax, eax
jne 0x4114ef
push dword [esi]
push str.Signature_is_valid___ls_
push 0x34
push str.Signature::IsValid
call fcn.004110a0
add esp, 0x10
mov al, 1
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00422df2
mov esp, ebp
pop ebp
ret
push str.The_signature_is_present__but_specifically_disallowed
push 0x36
push str.Signature::IsValid
call fcn.004110a0
add esp, 0xc
mov ecx, dword [esp + 0x54]
xor al, al
pop esi
xor ecx, esp
call fcn.00422df2
mov esp, ebp
pop ebp
ret
Function at 0x412500
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4408f8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x455440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412560
push dword [esi]
push str.File_does_not_exist___ls_
push 0x2c
push str.ClidSet::FromPath
call fcn.004110a0
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004015a0
xor ecx, ecx
mov edi, eax
test edi, edi
setne cl
test ecx, ecx
jne 0x41258b
push 0x80004005
push 0xcd
mov edx, str.ATL::CSimpleStringT_char_0_::CSimpleStringT
mov ecx, str.C:Program_FilesMicrosoft_Visual_Studio_12.0VC_atlmfcinclude_atlsimpstr.h
call fcn.0040bca0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.0040c9a0
mov ecx, ebx
push dword [eax]
call fcn.00412120
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4125d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x413070
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x440b98
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x455440]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, edx
mov edx, 1
lea ecx, [esp + 0x1c]
call fcn.00401c10
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x14]
push 0x1a
push ecx
mov ecx, dword [eax]
call fcn.0040f570
mov byte [esp + 0x30], 1
push str.yabrowser
push dword [eax]
lea eax, [esp + 0x18]
push str._sYandexclids__s.xml
push eax
call fcn.00406b20
add esp, 0x10
mov byte [esp + 0x30], 2
lea ecx, [esp + 0xc]
push dword [esp + 0x10]
call fcn.00405110
mov byte [esp + 0x30], 1
or esi, 0xffffffff
mov edx, dword [esp + 0x10]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x413116
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x30], 6
lea eax, [esp + 0xc]
push eax
mov ecx, edi
call fcn.00412500
mov byte [esp + 0x30], 1
lea eax, [esp + 0xc]
mov dword [esp + 0x18], eax
mov byte [esp + 0x30], 1
mov ecx, esi
mov edx, dword [esp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x413156
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x30], 0
lea eax, [esp + 0x14]
mov dword [esp + 0x18], eax
mov byte [esp + 0x30], 0
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x413183
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x20]
dec dword [eax]
jne 0x4131bf
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4131b3
mov ecx, esi
call fcn.00406ca0
push esi
call fcn.00422ded
add esp, 4
mov dword [esp + 0x1c], 0
push dword [esp + 0x20]
call fcn.00422ded
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4138a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0xc
cmp dword [eax], 0
jne 0x4138b3
xor eax, eax
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 8]
mov dword [ebp - 4], 0
push edx
lea edx, [ebp - 4]
mov dword [ebp - 8], 4
push edx
lea edx, [ebp - 0xc]
push edx
push 0
push dword [ecx + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4138e9
cmp eax, 2
je 0x4138ef
test eax, eax
jg 0x4138fb
jmp 0x413903
cmp dword [ebp - 0xc], 4
jne 0x4138f6
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, 0xd
movzx eax, ax
or eax, 0x80070000
push eax
push 0x43
mov edx, str.RegKey::operator_unsigned_long
mov ecx, str.reg_key.cpp
call fcn.0040bca0
int3

Function at 0x413970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4139e1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4139af
cmp eax, 2
jne 0x4139cb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4139db
test ecx, ecx
je 0x4139d6
test cl, 1
jne 0x4139cb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4139db
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4141f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
call fcn.00425f9c
add esp, 4
mov edi, eax
push dword [ebp + 0x10]
call fcn.00425f9c
add esp, 4
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x20], esi
test edi, edi
je 0x41424b
test esi, esi
je 0x41424b
push dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
mov eax, dword [eax + 0x30]
push esi
push edi
push ebx
push dword [ebp + 8]
call eax
or eax, edx
jne 0x414250
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x414250
mov ebx, 8
mov eax, dword [ebp - 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [eax]
test eax, eax
je 0x414388
test edi, edi
je 0x414395
test byte [eax + 0x18], 8
je 0x4142ed
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], 0
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4142ed
push eax
call fcn.00423ebd
mov esi, eax
add esp, 4
test esi, esi
je 0x4142ed
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x4142e4
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], 0x5c
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x4142d0
mov dword [ebp - 8], eax
jmp 0x4142e4
mov eax, dword [ebp - 8]
xor edx, edx
add edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
adc ecx, 0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
push esi
call fcn.00422f1c
add esp, 4
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x270]
push eax
push dword [ebp + 0x18]
mov esi, str._unknown_
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.004143e0
test eax, eax
je case.0x414319.7
mov eax, dword [ebp - 0x250]
cmp eax, 9
ja case.0x414319.7
jmp dword [eax*4 + 0x4143b0]
mov esi, str._nosymbols_
jmp case.0x414319.7
mov esi, str.COFF
jmp case.0x414319.7
mov esi, 0x44e66c
jmp case.0x414319.7
mov esi, 0x44e670
jmp case.0x414319.7
mov esi, str._exported_
jmp case.0x414319.7
mov esi, str._deferred_
jmp case.0x414319.7
mov esi, 0x44e68c
jmp case.0x414319.7
mov esi, str.Virtual
jmp case.0x414319.7
mov esi, 0x44e698
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x12c]
push dword [ebp - 0x18]
push edx
mov ecx, dword [eax]
push esi
push ebx
push dword [ebp + 0x1c]
mov eax, dword [ecx]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [eax + 8]
mov esi, dword [ebp - 0x20]
test edi, edi
je 0x414395
push edi
call fcn.00422f1c
add esp, 4
test esi, esi
je 0x4143a2
push esi
call fcn.00422f1c
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x18