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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43bdc8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x450440]
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 0x409f32
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 0x409f80
call fcn.00401360
test eax, eax
jns 0x409f86
push eax
push 0x47
mov edx, str.Path::ReadFileToString
mov ecx, str.path.cpp
call fcn.004091e0
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 0x409fb3
call fcn.00401360
test eax, eax
js 0x409fd8
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
test esi, esi
jns 0x409fdc
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.004091e0
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 0x409ffa
push esi
mov ecx, ebx
call fcn.00405e80
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 0x40a05a
call fcn.00401360
test eax, eax
js 0x40a065
push esi
mov ecx, ebx
call fcn.0040a360
mov dword [esp + 0x38], 0xffffffff
test edi, edi
je 0x40a043
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 0x40a020
mov eax, 0x80070026
push eax
push 0x4d
mov edx, str.Path::ReadFileToString
mov ecx, str.path.cpp
call fcn.004091e0
int3
Function at 0x40a080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43be08
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x450440]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00409e10
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 0x40a107
call fcn.00401360
cmp eax, 0x800700b7
je 0x40a10d
test eax, eax
jns 0x40a10d
push eax
push 0x60
mov edx, str.Path::WriteBytesToFile
mov ecx, str.path.cpp
call fcn.004091e0
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 0x40a140
call fcn.00401360
test eax, eax
jns 0x40a140
push eax
push 0x63
mov edx, str.Path::WriteBytesToFile
mov ecx, str.path.cpp
call fcn.004091e0
mov dword [esp + 0x28], 0xffffffff
test edi, edi
je 0x40a15b
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 0x40b920
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c1b8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x450440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 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 - 0x14]
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], 0
push dword [eax]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x40b9b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40b9a0
movzx eax, ax
or eax, 0x80070000
push eax
mov edx, 0x19
mov ecx, str.Version::Version
call fcn.0040e950
add esp, 4
jmp 0x40bac9
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 3
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x40b9f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40b9e7
movzx eax, ax
or eax, 0x80070000
push eax
push 0x1f
mov edx, str.Version::Version
mov ecx, str.version.cpp
call fcn.004091e0
mov eax, dword [ebp + 8]
push esi
push ebx
push dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40ba31
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40ba1f
movzx eax, ax
or eax, 0x80070000
push eax
push 0x22
mov edx, str.Version::Version
mov ecx, str.version.cpp
call fcn.004091e0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x449640
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x40ba7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40ba69
movzx eax, ax
or eax, 0x80070000
push eax
push 0x27
mov edx, str.Version::Version
mov ecx, str.version.cpp
call fcn.004091e0
mov eax, dword [ebp - 0x10]
mov ecx, edi
movzx eax, word [eax + 0xa]
push eax
call fcn.0040bcd0
mov eax, dword [ebp - 0x10]
mov ecx, edi
movzx eax, word [eax + 8]
push eax
call fcn.0040bcd0
mov eax, dword [ebp - 0x10]
mov ecx, edi
movzx eax, word [eax + 0xe]
push eax
call fcn.0040bcd0
mov eax, dword [ebp - 0x10]
mov ecx, edi
movzx eax, word [eax + 0xc]
push eax
call fcn.0040bcd0
mov byte [ebp - 4], 1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x18], 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 0x40c3b0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43c350
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x450440]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0x54]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c419
push dword [esi + 0x54]
push str.File_doesnt_exist__ls
push 0xc
push str.Process::Run
call fcn.0040e8c0
add esp, 0x10
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push dword [ebp + 8]
or eax, 0x400
push dword [esi + 0x54]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push str.__s___s
push eax
call fcn.00406090
add esp, 0x10
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], 0
mov byte [esp + 0x30], 1
mov edx, 3
lea ecx, [esp + 0x1c]
call fcn.00401c30
mov byte [esp + 0x30], 2
mov ecx, dword [eax]
push 1
call fcn.0040d040
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
sete bl
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x20]
dec dword [eax]
jne 0x40c4c2
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x40c4b6
mov ecx, edi
call fcn.00406210
push edi
call fcn.004127b0
add esp, 4
mov dword [esp + 0x1c], 0
push dword [esp + 0x20]
call fcn.004127b0
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test bl, bl
je 0x40c4ed
call edi
test eax, eax
jle 0x40c4da
movzx eax, ax
or eax, 0x80070000
push eax
mov edx, 0x15
mov ecx, str.Process::Run
call fcn.0040e950
add esp, 4
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x40c50b
push dword [eax - 0xc]
lea ecx, [esp + 0x14]
call fcn.00405d30
mov eax, dword [esp + 0x10]
push esi
lea ecx, [esi + 0x10]
push ecx
push 0
push ebx
push dword [esp + 0x28]
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40c54f
call edi
test eax, eax
jle 0x40c538
movzx eax, ax
or eax, 0x80070000
push eax
mov edx, 0x19
mov ecx, str.Process::Run
call fcn.0040e950
add esp, 4
xor bl, bl
jmp 0x40c551
mov bl, 1
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c565
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov dword [esp + 0x30], 0xffffffff
or ecx, 0xffffffff
mov esi, dword [esp + 0x10]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c58b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40d040
Capabilities:
Compare security identifiers
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43c6be
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x450440]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x450440]
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 0x40d241
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 0x40d0df
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40d0ca
movzx eax, ax
or eax, 0x80070000
push eax
push 0x98
mov edx, str.Environment::GetActiveUserToken
mov ecx, str.environment.cpp
call fcn.004091e0
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
call fcn.0040c8e0
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.00401970
mov ebx, dword [esp + 0x30]
dec ebx
test ebx, ebx
jle 0x40d23f
mov esi, ebx
shl esi, 4
mov eax, dword [esp + 0x1c]
mov eax, dword [esi + eax + 0xc]
test eax, eax
je 0x40d233
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x40d233
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 0x40d17d
mov dword [esp + 0xb0], 0xffffffff
jmp 0x40d22f
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 0x40d204
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.0040d2a0
add esp, 4
test al, al
je 0x40d1e7
mov ecx, dword [esp + 0x24]
call fcn.0040cf00
cmp eax, 0x2000
jne 0x40d204
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 0x40d265
mov byte [esp + 0xb0], 1
lea ecx, [esp + 0x20]
call fcn.0040e190
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 0x40d123
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.0041f9e6
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.0040e190
mov dword [esp + 0xb0], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0
mov eax, esi
jmp 0x40d241
Function at 0x40d4e0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c79f
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x450440]
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.00401c30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, dword [eax]
call fcn.0040c8e0
mov ebx, eax
mov dword [ebp - 0xe4], ebx
mov byte [ebp - 4], 2
mov edx, 3
lea ecx, [ebp - 0xe0]
call fcn.00401c30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [eax]
call fcn.0040c780
mov ecx, eax
mov dword [ebp - 0xe8], ecx
mov byte [ebp - 4], 4
lea eax, [ecx + 4]
test eax, eax
je 0x40d5e7
lea edi, [ebx + 4]
test edi, edi
je 0x40d5e7
cmp byte [ecx + 0x48], 0
je 0x40d5e7
mov ebx, dword [sym.imp.ADVAPI32.dll_IsValidSid]
push eax
call ebx
test eax, eax
setne al
test al, al
je 0x40d5e7
mov eax, dword [ebp - 0xe4]
cmp byte [eax + 0x48], 0
je 0x40d5e7
push edi
call ebx
test eax, eax
setne al
test al, al
je 0x40d5e7
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 0x40d5e9
xor bl, bl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00401970
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xdc]
dec dword [eax]
jne 0x40d635
mov edi, dword [ebp - 0xe0]
test edi, edi
je 0x40d627
mov ecx, edi
call fcn.00406210
push edi
call fcn.004127b0
add esp, 4
mov dword [ebp - 0xe0], 0
push dword [ebp - 0xdc]
call fcn.004127b0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd0]
call fcn.00401970
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xd4]
dec dword [eax]
jne 0x40d684
mov edi, dword [ebp - 0xd8]
test edi, edi
je 0x40d676
mov ecx, edi
call fcn.00406210
push edi
call fcn.004127b0
add esp, 4
mov dword [ebp - 0xd8], 0
push dword [ebp - 0xd4]
call fcn.004127b0
add esp, 4
test bl, bl
je 0x40d6a4
push str.Process_is_already_impersonated
push 0x147
push str.ScopedImpersonation::ScopedImpersonation
call fcn.0040e8c0
add esp, 0xc
jmp 0x40d732
mov edx, 3
lea ecx, [ebp - 0xd8]
call fcn.00401c30
mov byte [ebp - 4], 5
mov ecx, dword [eax]
call fcn.0040d040
mov dword [esi + 4], eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xd4]
dec dword [eax]
jne 0x40d702
mov edi, dword [ebp - 0xd8]
test edi, edi
je 0x40d6f4
mov ecx, edi
call fcn.00406210
push edi
call fcn.004127b0
add esp, 4
mov dword [ebp - 0xd8], 0
push dword [ebp - 0xd4]
call fcn.004127b0
add esp, 4
mov ecx, esi
call fcn.0040d910
test al, al
jne 0x40d732
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40d71f
movzx eax, ax
or eax, 0x80070000
push eax
mov edx, 0x14d
mov ecx, str.ScopedImpersonation::ScopedImpersonation
call fcn.0040e950
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.0041f9e6
mov esp, ebp
pop ebp
ret
Function at 0x40fb80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ce48
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x450440]
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 0x40fbe0
push dword [esi]
push str.File_does_not_exist___ls_
push 0x2c
push str.ClidSet::FromPath
call fcn.0040e8c0
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.004015c0
xor ecx, ecx
mov edi, eax
test edi, edi
setne cl
test ecx, ecx
jne 0x40fc0b
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.004091e0
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.00409ee0
mov ecx, ebx
push dword [eax]
call fcn.0040f7a0
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 0x40fc57
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 0x4106d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43d0d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x450440]
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.00401c30
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x14]
push 0x1a
push ecx
mov ecx, dword [eax]
call fcn.0040cc60
mov byte [esp + 0x30], 1
push str.yabrowser
push dword [eax]
lea eax, [esp + 0x18]
push str._sYandexclids__s.xml
push eax
call fcn.00406090
add esp, 0x10
mov byte [esp + 0x30], 2
lea ecx, [esp + 0xc]
push dword [esp + 0x10]
call fcn.00404e30
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 0x410776
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.0040fb80
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 0x4107b6
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 0x4107e3
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 0x41081f
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x410813
mov ecx, esi
call fcn.00406210
push esi
call fcn.004127b0
add esp, 4
mov dword [esp + 0x1c], 0
push dword [esp + 0x20]
call fcn.004127b0
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 0x410c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0xc
cmp dword [eax], 0
jne 0x410c33
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 0x410c69
cmp eax, 2
je 0x410c6f
test eax, eax
jg 0x410c7b
jmp 0x410c83
cmp dword [ebp - 0xc], 4
jne 0x410c76
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.004091e0
int3
Function at 0x411500
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.00422a3c
add esp, 4
mov edi, eax
push dword [ebp + 0x10]
call fcn.00422a3c
add esp, 4
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x20], esi
test edi, edi
je 0x41155b
test esi, esi
je 0x41155b
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 0x411560
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x411560
mov ebx, 8
mov eax, dword [ebp - 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [eax]
test eax, eax
je 0x411698
test edi, edi
je 0x4116a5
test byte [eax + 0x18], 8
je 0x4115fd
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 0x4115fd
push eax
call fcn.00420b0c
mov esi, eax
add esp, 4
test esi, esi
je 0x4115fd
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x4115f4
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 0x4115e0
mov dword [ebp - 8], eax
jmp 0x4115f4
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.0041fb10
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.004116f0
test eax, eax
je case.0x411629.7
mov eax, dword [ebp - 0x250]
cmp eax, 9
ja case.0x411629.7
jmp dword [eax*4 + 0x4116c0]
mov esi, str._nosymbols_
jmp case.0x411629.7
mov esi, str.COFF
jmp case.0x411629.7
mov esi, 0x44a31c
jmp case.0x411629.7
mov esi, 0x44a320
jmp case.0x411629.7
mov esi, str._exported_
jmp case.0x411629.7
mov esi, str._deferred_
jmp case.0x411629.7
mov esi, 0x44a33c
jmp case.0x411629.7
mov esi, str.Virtual
jmp case.0x411629.7
mov esi, 0x44a348
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 0x4116a5
push edi
call fcn.0041fb10
add esp, 4
test esi, esi
je 0x4116b2
push esi
call fcn.0041fb10
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x18