joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45345e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x45348b
call fcn.004543d0
mov dword [eax], esi
call fcn.004543bd
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00452a36
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4534a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004543e3
pop ecx
jmp 0x453486
test byte [esp + 0xc], 0x80
je 0x4534b5
and eax, 0xfffffffe
jmp 0x4534b8
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x45349a
xor eax, eax
pop esi
ret

Function at 0x4657fb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00459456
xor ebx, ebx
cmp dword [0x49ffb8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4658d0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x46583b
xor eax, eax
jmp 0x465994
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x465834
push eax
call fcn.004593f3
mov dword [esp], 0x47d788
push edi
mov dword [0x49ffb8], eax
call esi
push eax
call fcn.004593f3
mov dword [esp], 0x47d774
push edi
mov dword [0x49ffbc], eax
call esi
push eax
call fcn.004593f3
mov dword [0x49ffc0], eax
lea eax, [ebp - 8]
push eax
call fcn.004535a2
test eax, eax
pop ecx
pop ecx
je 0x46589e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045293a
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4658d0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004593f3
cmp eax, ebx
pop ecx
mov dword [0x49ffc8], eax
je 0x4658d0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004593f3
pop ecx
mov dword [0x49ffc4], eax
mov eax, dword [0x49ffc4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x465949
cmp dword [0x49ffc8], esi
je 0x465949
push eax
call fcn.0045945f
pop ecx
call eax
cmp eax, ebx
je 0x465916
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x49ffc8]
call fcn.0045945f
pop ecx
call eax
test eax, eax
je 0x465916
test byte [ebp - 0x18], 1
jne 0x465949
lea eax, [ebp - 0xc]
push eax
call fcn.004535d9
test eax, eax
pop ecx
je 0x465931
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045293a
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x465940
or dword [ebp + 0x10], 0x200000
jmp 0x46597a
or dword [ebp + 0x10], 0x40000
jmp 0x46597a
mov eax, dword [0x49ffbc]
cmp eax, esi
je 0x46597a
push eax
call fcn.0045945f
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x46597a
mov eax, dword [0x49ffc0]
cmp eax, esi
je 0x46597a
push dword [ebp - 4]
push eax
call fcn.0045945f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x49ffb8]
call fcn.0045945f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46f0b0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x49b7f0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046f045
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00455660
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x46f0ff
cmp dword [ebp - 0x1c], 5
jb 0x46f117
jmp 0x46f113
cmp dword [ebp - 0x10], 1
jne 0x46f117
cmp dword [ebp - 0x1c], 4
ja 0x46f113
jne 0x46f117
cmp dword [ebp - 0x18], 0
jbe 0x46f117
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x47f84c
call fcn.00418a30
test eax, eax
jge 0x46f138
mov byte [0x4a141c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00451053
add ebp, 0x78
leave
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..retplne
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x16f900ba
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..reloc
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x42651956
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x403190
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45a06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x45bbe4]
push ebx
xor ebx, ebx
push esi
test eax, eax
jne 0x40321f
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.00429740
add esp, 0xc
mov esi, ebx
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [esi + 0x451ce4]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x403207
push 8
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x45bbe4], eax
jmp 0x40320c
mov eax, dword [0x45bbe4]
test eax, eax
jne 0x40321f
add esi, 4
cmp esi, 0xc
jb 0x4031c7
mov eax, dword [0x45bbf0]
jmp 0x40325c
push str.FDICreate
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDIDestroy
push dword [0x45bbe4]
mov dword [0x45bbe8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICopy
push dword [0x45bbe4]
mov dword [0x45bbec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45bbf0], eax
cmp dword [0x45bbe8], ebx
je 0x403272
cmp dword [0x45bbec], ebx
je 0x403272
test eax, eax
je 0x403272
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00427412
mov esp, ebp
pop ebp
ret

Function at 0x403f44
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45a06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push esi
push 0x403fe0
push ebx
push ebx
call fcn.0043044e
add esp, 0x18
mov ecx, esi
push eax
call fcn.0040423e
cmp dword [esi], ebx
je 0x403f81
cmp dword [esi], 0xffffffff
je 0x403f81
mov al, 1
jmp 0x403fc1
xor eax, eax
mov dword [ebp - 0x10], ebx
push str.Failed_to_create_thread_for_async_http_requests
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], ax
mov byte [ebp - 8], bl
call fcn.004011b7
lea eax, [ebp - 0x20]
push eax
push eax
push 0x5b
push str.install_util::AsyncHttpRequestSender::TaskRunner::InitializeThread
push 1
call fcn.00415994
add esp, 0x14
lea ecx, [ebp - 0x20]
call fcn.00402499
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00427412
mov esp, ebp
pop ebp
ret
Function at 0x406d1b
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20f4
call fcn.004283b0
mov eax, dword [0x45a06c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edx + 0x10], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x406d80
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
lea ecx, [ebp - 0x20b0]
call fcn.00402499
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427412
mov esp, ebp
pop ebp
ret
cmp dword [edx + 0x14], 8
mov dword [ebp - 0x20b4], 0x824
jb 0x406d92
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]
test eax, eax
je 0x406dec
cmp dword [ebp - 0x20b4], 0
je 0x406dec
and dword [ebp - 0x20a0], 0
lea ecx, [ebp - 0x20b0]
xor eax, eax
push 7
pop edi
mov word [ebp - 0x20b0], ax
lea eax, [ebp - 0x1050]
push eax
mov dword [ebp - 0x209c], edi
call fcn.004067a8
mov ebx, dword [ebp - 0x20a0]
jmp 0x406e06
xor ebx, ebx
xor eax, eax
push 7
pop edi
mov dword [ebp - 0x20a0], ebx
mov dword [ebp - 0x209c], edi
mov word [ebp - 0x20b0], ax
test ebx, ebx
je 0x406d56
push 0x38
lea eax, [ebp - 0x20ec]
push 0
push eax
call fcn.00429740
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 0x406d56
push dword [ebp - 0x20e0]
mov ecx, esi
call fcn.00406783
jmp 0x406d62
Function at 0x4083d5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x45a06c]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.00409965
mov ecx, esi
call fcn.0040a0e0
sub esp, 0x18
mov ecx, esp
call fcn.00421a96
lea ecx, [esp + 0x3c]
call fcn.00421ce7
add esp, 0x18
lea edx, [esp + 0x24]
lea ecx, [esp + 0xc]
call fcn.00406ec6
push eax
lea ecx, [esi + 0x68]
call fcn.00405ab4
lea ecx, [esp + 0xc]
call fcn.00402499
lea ecx, [esp + 0x24]
call fcn.00402525
mov ecx, dword [esi + 0x14]
add ecx, 0x4c
mov edx, ecx
cmp dword [ecx + 0x14], 0x10
jb 0x408448
mov edx, dword [ecx]
mov eax, dword [ecx + 0x10]
add eax, edx
cmp dword [ecx + 0x14], 0x10
jb 0x408455
mov ecx, dword [ecx]
push ecx
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00405bf0
cmp dword [eax + 0x14], 8
jb 0x408469
mov eax, dword [eax]
mov edx, eax
mov ecx, str.lang
call fcn.0041fa88
lea ecx, [esp + 0xc]
call fcn.00402499
lea eax, [esi + 0x20]
mov ecx, esi
push eax
call fcn.00406f86
lea edx, [esi + 0x38]
cmp dword [edx + 0x14], 8
jb 0x408494
mov edx, dword [edx]
mov edi, str.InstallerData
mov ecx, edi
call fcn.0041fa88
lea edx, [esi + 0x50]
cmp dword [edx + 0x14], 8
jb 0x4084ab
mov edx, dword [edx]
mov ecx, str.ClidsFile
call fcn.0041fa88
mov ecx, dword [esi + 0x14]
call fcn.00404eb8
mov ecx, esi
call fcn.004088c8
mov ebx, eax
test ebx, ebx
je 0x4084f4
xor edi, edi
cmp dword [esi + 0x10], edi
je 0x408560
push edi
push dword [esi + 0x88]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x408554
mov ecx, dword [esi + 0x10]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x408554
mov ecx, edi
call fcn.0041fc57
mov ecx, str.ClidsFile
call fcn.0041fc57
mov ecx, 0x452388
call fcn.0041fc57
call fcn.00404f54
mov eax, dword [esi + 0x14]
xor edi, edi
cmp dword [eax + 0xc0], edi
je 0x408535
add eax, 0xb0
cmp dword [eax + 0x14], 8
jb 0x40852e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0x14]
cmp dword [eax + 0xd8], edi
je 0x408554
add eax, 0xc8
cmp dword [eax + 0x14], 8
jb 0x40854d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x10], edi
je 0x408560
mov ecx, esi
call fcn.004096b4
test ebx, ebx
mov ecx, esi
sete al
movzx eax, al
push eax
call fcn.00407d36
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00427412
mov esp, ebp
pop ebp
ret
Function at 0x40a4af
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
mov dword [esi], 0x457198
jne 0x40a4c4
pop esi
jmp fcn.0040a699
cmp byte [esi + 0x14], 0
jne 0x40a4d3
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, esi
pop esi
jmp fcn.0040a500

Function at 0x40a500
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45a06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0x7530
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40a579
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x20]
xor eax, eax
mov byte [esi + 0x15], 1
push str.The_elevated_installer_hangs_and_must_be_forcibly_terminated.
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], ax
mov byte [ebp - 8], al
call fcn.004011b7
lea eax, [ebp - 0x20]
push eax
push eax
push 0x502
push str.Installer::ElevatedProcessHolder::EnsureProcessFinished
push 1
call fcn.00415994
add esp, 0x14
lea ecx, [ebp - 0x20]
call fcn.00402499
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, esi
call fcn.0040a699
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00427412
mov esp, ebp
pop ebp
ret
Function at 0x40bec9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
push edi
mov eax, esi
mov edi, ecx
and eax, 0xf
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push dword [ebp + 8]
shr esi, 4
mov ebx, eax
inc esi
movzx ecx, si
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x40bf30
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x40bf30
mov esi, dword [ebp - 4]
xor eax, eax
movzx edx, word [ecx]
add ecx, 2
test dx, dx
je 0x40bf2a
cmp eax, esi
je 0x40bf49
lea ecx, [ecx + edx*2]
inc eax
cmp eax, 0x10
jl 0x40bf18
and dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
lea eax, [ecx + edx*2]
push eax
push ecx
mov ecx, edi
call fcn.0040e3d5
jmp 0x40bf40

Function at 0x40bf58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x4531b8
mov ebx, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
test eax, eax
je 0x40bfc1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40bfc1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 4]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
and dword [edi + 0x10], 0
add eax, esi
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
cmp esi, eax
je 0x40bfcf
sub eax, esi
mov ecx, edi
push eax
push esi
call fcn.0040256f
jmp 0x40bfcf
and dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c194
Capabilities:
Identify system language via api

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, 0x41f
cmp eax, ecx
ja 0x40c22d
je 0x40c224
sub eax, 0x404
cmp eax, 0x15
ja case.0x40c1c0.1030
movzx eax, byte [eax + 0x40c2b8]
jmp dword [eax*4 + 0x40c290]
push 2
push 0x4536a8
jmp 0x40c277
push 2
push 0x4535a8
jmp 0x40c277
push 2
push 0x453598
jmp 0x40c277
push 2
push 0x4535fc
jmp 0x40c277
push 2
push 0x4536d4
jmp 0x40c277
push 5
push str.pt_BR
jmp 0x40c277
push 5
push str.zh_TW
jmp 0x40c277
push 2
push 0x4535ac
jmp 0x40c277
push 2
push 0x4535bc
jmp 0x40c277
push 2
push 0x4536ac
jmp 0x40c277
sub eax, 0x422
je 0x40c270
sub eax, 0x1d
je 0x40c267
sub eax, 0x3c5
je 0x40c25e
sub eax, 0x12
je 0x40c255
sub eax, 0x3f4
jne case.0x40c1c0.1030
push 2
push 0x45359c
jmp 0x40c277
push 5
push str.pt_PT
jmp 0x40c277
push 5
push str.zh_CN
jmp 0x40c277
push 2
push 0x4536b0
jmp 0x40c277
push 2
push 0x4535d4
and dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.0040256f
mov eax, esi
pop esi
ret
Function at 0x40c4c6
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 0x40c4d8
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 0x40c52b
cmp dword [edi + 0x14], 0x10
lea eax, [edi + 0x10]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
jb 0x40c508
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 0x40c527
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp eax, dword [ecx]
jne 0x40c527
mov bl, 1
test esi, esi
je 0x40c532
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 0x40c53b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [edx + 0x14], 8
push ebx
push esi
push edi
mov edi, ecx
jb 0x40c54e
mov edx, dword [edx]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c580
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], bl
push eax
jmp 0x40c604
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ecx
push ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], ebx
call fcn.0040dabe
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push ebx
mov ebx, dword [ebp - 0x14]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x40c5dc
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x40c5dc
and dword [edi + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
cmp ebx, eax
je 0x40c5ea
sub eax, ebx
mov ecx, edi
push eax
push ebx
call fcn.0040256f
jmp 0x40c5ea
and dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
test ebx, ebx
je 0x40c5ff
mov eax, dword [ebp - 0xc]
push 1
sub eax, ebx
push eax
push ebx
call fcn.0040110b
add esp, 0xc
test esi, esi
je 0x40c60a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cc3f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
push esi
push edi
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x10], eax
jne 0x40cc61
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x40ccc7
push ecx
push 0x104
lea ecx, [ebp - 0xc]
call fcn.0040db0f
cmp dword [edi + 0x14], 8
jb 0x40cc77
mov edi, dword [edi]
push ebx
mov ebx, dword [ebp - 0xc]
xor eax, eax
push ebx
push eax
push 0x4535a0
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40cc9e
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x40ccbe
mov eax, ebx
cmp ebx, dword [ebp - 8]
je 0x40ccb4
xor ecx, ecx
cmp word [eax], cx
je 0x40ccb4
add eax, 2
cmp eax, dword [ebp - 8]
jne 0x40cca7
push ecx
push eax
push ebx
mov ecx, esi
call fcn.0040e3d5
lea ecx, [ebp - 0xc]
call fcn.0040e041
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d0ae
Capabilities:
Check http status code
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x45a06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x28], ebx
je 0x40d0d1
xor eax, eax
jmp 0x40d23c
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push eax
push 0x8000
push dword [esi + 0x60]
push dword [esi + 0x5c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40d151
mov edx, str.internet_read_
lea ecx, [ebp - 0x1c]
call fcn.0040b6fd
push eax
lea ecx, [esi + 0x18]
call fcn.00405ab4
lea ecx, [ebp - 0x1c]
call fcn.00402499
xor eax, eax
mov dword [ebp - 0x10], ebx
push str.Download_chunk_error.
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], ax
mov byte [ebp - 8], bl
call fcn.004011b7
lea eax, [ebp - 0x20]
push eax
push eax
push 0x38a
push str.lite_installer::Downloader::ReadChunk
push 1
call fcn.00415994
add esp, 0x14
lea ecx, [ebp - 0x20]
call fcn.00402499
jmp 0x40d0ca
push 4
pop edi
push ebx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], ebx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], edi
push eax
push 0x20000013
push dword [esi + 0x5c]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40d1aa
cmp dword [ebp - 0x28], 0xc8
je 0x40d1aa
xor eax, eax
mov dword [ebp - 0x10], ebx
push str.HTTP_request_status_isnt_OK
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], ax
mov byte [ebp - 8], bl
call fcn.004011b7
lea eax, [ebp - 0x20]
push eax
push eax
push 0x393
jmp 0x40d135
cmp dword [ebp - 0x24], ebx
jbe 0x40d20d
mov ecx, dword [esi + 0x4c]
push dword [ebp - 0x24]
push dword [esi + 0x60]
mov eax, dword [ecx]
call dword [eax]
test al, al
jne 0x40d20d
mov edx, str.write_file_
lea ecx, [ebp - 0x1c]
call fcn.0040b6fd
push eax
lea ecx, [esi + 0x18]
call fcn.00405ab4
lea ecx, [ebp - 0x1c]
call fcn.00402499
xor eax, eax
mov dword [ebp - 0x10], ebx
push str.Write_file_error.
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], ax
mov byte [ebp - 8], bl
call fcn.004011b7
lea eax, [ebp - 0x20]
push eax
push eax
push 0x39a
jmp 0x40d135
cmp dword [esi + 0x48], ebx
jne 0x40d239
push ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], ebx
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x34], edi
push eax
push 0x20000005
push dword [esi + 0x5c]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40d239
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427412
mov esp, ebp
pop ebp
ret
Function at 0x40d24d
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x45a06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x28], ebx
jne 0x40d36c
push ebx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], ebx
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], 4
push eax
push 0x20000013
push dword [esi + 0x5c]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40d2a1
cmp dword [ebp - 0x48], 0xc8
jne 0x40d2a1
mov al, 1
jmp 0x40d36e
push 0xa
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x48]
call fcn.0042ca62
add esp, 0xc
mov dword [ebp - 0x34], ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], bl
push 0x11
push str.final_query_info_
call fcn.0040256f
lea ecx, [ebp - 0x10]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d2d4
sub ecx, edx
lea eax, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.004025bb
push 1
push 0x4533f8
mov ecx, eax
call fcn.004025bb
cmp dword [eax + 0x14], 0x10
jb 0x40d300
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.0040b6fd
push eax
lea ecx, [esi + 0x18]
call fcn.00405ab4
lea ecx, [ebp - 0x28]
call fcn.00402499
lea ecx, [ebp - 0x44]
call fcn.00402525
xor eax, eax
mov dword [ebp - 0x1c], ebx
push str.Unsuccessful_download:
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 0x14], bl
call fcn.004011b7
push esi
mov ecx, eax
call fcn.004023c1
lea eax, [ebp - 0x2c]
push eax
push eax
push 0x3b8
push str.lite_installer::Downloader::FinalizeDownload
push 1
call fcn.00415994
add esp, 0x14
lea ecx, [ebp - 0x2c]
call fcn.00402499
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00427412
mov esp, ebp
pop ebp
ret