joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a100
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
jbe 0x40a123
push edi
mov edi, dword [esp + 0xc]
push ebx
mov dl, byte [eax + edi]
mov bl, byte [ecx + 4]
xor bl, dl
inc eax
cmp eax, esi
mov byte [ecx + 4], bl
jb 0x40a111
pop ebx
pop edi
pop esi
ret 8

Function at 0x40a8d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a8f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c2e0
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x40a916
test byte [esp + 8], 2
je 0x40a916
mov dword [0x413e38], 0xd
mov dword [0x413e3c], 5
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x40a920
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40a94a
test byte [esp + 0xc], 0x80
je 0x40a93c
and al, 0xfe
jmp 0x40a93e
or al, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40a95e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c2e0
add esp, 4
or eax, 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x40ac80
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x413e80]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40ac9f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x413e7c], 1
mov byte [0x413e78], bl
jne 0x40acf9
mov ecx, dword [0x41534c]
test ecx, ecx
je 0x40ace7
mov esi, dword [0x415348]
sub esi, 4
cmp esi, ecx
jb 0x40ace7
mov eax, dword [esi]
test eax, eax
je 0x40ace0
call eax
mov ecx, dword [0x41534c]
sub esi, 4
cmp esi, ecx
jae 0x40acd2
push 0x411024
push 0x411018
call fcn.0040ad30
add esp, 8
push 0x411030
push 0x411028
call fcn.0040ad30
add esp, 8
test ebx, ebx
jne 0x40ad20
push ebp
mov dword [0x413e80], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x40de90
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x411978
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40deb4
add eax, 8
inc ebp
cmp eax, 0x411a08
jb 0x40dea5
cmp ecx, dword [ebp*8 + 0x411978]
jne 0x40e05b
mov eax, dword [0x413e8c]
cmp eax, 1
je 0x40e01d
test eax, eax
jne 0x40dee0
cmp dword [0x411440], 1
je 0x40e01d
cmp ecx, 0xfc
je 0x40e05b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40df1b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40df64
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x410488
add ebx, ecx
push ebx
call fcn.0040ec00
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x410468
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x41197c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040f690
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x415240]
test eax, eax
je 0x40e02e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40e038
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x41197c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x40f360
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x415340]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40f50d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x415240]
lea edi, [ecx*4 + 0x415240]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40f50d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40f3ce
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40f3df
push 2
push ebp
push eax
call fcn.0040ef20
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40f53e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x40f489
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40f43a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40f427
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40f40a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f52f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x40f485
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40f406
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40f4fe
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f4d2
cmp eax, 5
jne 0x40f4bb
mov dword [0x413e3c], eax
mov dword [0x413e38], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0040c2e0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x40f4f2
cmp byte [ebp], 0x1a
jne 0x40f4f2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x413e38], 0x1c
jmp 0x40f517
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x413e38], 9
pop edi
pop esi
pop ebp
mov dword [0x413e3c], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40f485
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f56f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x40f489
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40f489
Function at 0x4269d4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [fcn.0040e020]
test eax, eax
je 0x426a13
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426a13
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426a13
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x426a13
cmp dword [ecx + 0x74], 0xe
jbe 0x426a13
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x431ec0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x431eed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x431eed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40157d
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push 0x818
push 0x420770
call fcn.00413000
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push dword [ebp + 8]
push 0x429630
mov ecx, 0x42965c
call fcn.0040126a
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], ebx
mov esi, 0x42060c
lea edi, [ebp - 0x28]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00408ec9
pop ecx
pop ecx
mov esi, eax
cmp esi, ebx
je 0x40169e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnregServer
push esi
call edi
test eax, eax
je 0x40169b
push str.RegServer
push esi
call edi
test eax, eax
je 0x40169b
push 4
push str.auto
push esi
call fcn.00413870
add esp, 0xc
test eax, eax
jne 0x401625
mov dword [0x428064], ebx
mov dword [str.jau_m], 0x420630
jmp 0x401683
push 9
push str.scheduled
push esi
call fcn.00413870
add esp, 0xc
test eax, eax
jne 0x401645
mov dword [0x429654], 1
jmp 0x401683
push 7
push str.pending
push esi
call fcn.00413870
add esp, 0xc
test eax, eax
jne 0x401665
mov dword [0x429658], 1
jmp 0x401683
push 4
push str.test
push esi
call fcn.00413870
add esp, 0xc
test eax, eax
jne 0x401683
lea eax, [esi + 5]
push eax
call fcn.0040edb7
pop ecx
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00408ec9
pop ecx
pop ecx
mov esi, eax
cmp esi, ebx
jne 0x4015df
jmp 0x40169e
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x24], ebx
je 0x401787
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
push str.SunJavaUpdateCheckerMutex
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x401749
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401749
call fcn.0040bc9a
test eax, eax
jne 0x40172b
mov edi, 0x400
push edi
lea eax, [ebp - 0x428]
push eax
push 0x72
push dword [0x4298c0]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
call esi
push edi
lea eax, [ebp - 0x828]
push eax
push 0x75
push dword [0x4298c0]
call esi
push 0x10
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x828]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x1c], 0x80004005
jmp 0x40177e
push dword [0x428068]
push 0x42066c
push ebx
call fcn.0040caec
add esp, 0xc
call fcn.00401531
mov dword [ebp - 0x1c], eax
jmp 0x40177e
mov dword [ebp - 0x1c], 0x64
cmp dword [ebp - 0x20], ebx
je 0x40177e
cmp dword [0x428064], ebx
jne 0x401765
cmp dword [0x429654], ebx
je 0x40177e
push dword [0x428068]
push 0x420674
push ebx
call fcn.0040caec
add esp, 0xc
call fcn.0040ef7d
or dword [ebp - 4], 0xffffffff
call fcn.004017a4
mov ecx, 0x42965c
call fcn.004014df
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x1c]
call fcn.0041303b
ret 0x10
Function at 0x402f0a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.00402e4b
cmp eax, esi
jne 0x402f82
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x402f4b
lea eax, [ebp - 0x110]
push eax
call fcn.00402f0a
cmp eax, esi
jne 0x402f81
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call edi
test eax, eax
lea ecx, [ebp - 4]
je 0x402f3b
call fcn.00402e34
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00402e34
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x403357
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x403362
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x403988
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push 0x460
push 0x420b38
call fcn.00413000
xor ebx, ebx
inc ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], 4
xor esi, esi
push esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4039bc
mov eax, ebx
jmp 0x403b05
push str.http:__java.sun.com
push 0x420964
lea eax, [ebp - 0x170]
push eax
call fcn.00413cde
add esp, 0xc
mov dword [ebp - 4], esi
push esi
push esi
push esi
push esi
push 0x420968
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x403af9
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x70], 0x3c
lea eax, [ebp - 0x370]
mov dword [ebp - 0x60], eax
mov eax, 0x100
mov dword [ebp - 0x5c], eax
mov word [ebp - 0x58], si
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x470]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x70]
push eax
push esi
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push esi
push esi
push 3
push 0x420970
push 0x420971
push dword [ebp - 0x58]
push dword [ebp - 0x60]
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x2c], eax
cmp eax, esi
je 0x403af9
push esi
push 0x4400000
push esi
push 0x420972
push 0x420974
lea ecx, [ebp - 0x270]
push ecx
push 0x420980
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, esi
je 0x403af9
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x403ad1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
sub eax, 0x2ee2
je 0x403ace
sub eax, 5
je 0x403ace
sub eax, 0x16
jne 0x403ad1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x403af9
cmp dword [ebp - 0x20], 0x197
jne 0x403af9
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
call fcn.00403b0d
mov eax, dword [ebp - 0x1c]
call fcn.0041303b
ret
Function at 0x4051ab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push esi
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], si
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40522f
cmp dword [ebp + 0xc], esi
je 0x40521a
push dword [ebp - 0x14]
call fcn.00404d21
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 4], 0x669
jne 0x40521d
mov dword [ebp - 4], esi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
jmp 0x405238
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x405931
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x604
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x604], bl
mov ecx, 0xff
lea edi, [ebp - 0x603]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
cmp dword [esi + 0x184c], ebx
mov byte [ebp - 0x204], bl
pop ecx
lea edi, [ebp - 0x203]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x405981
cmp dword [esi + 0x58], ebx
je 0x405981
xor ecx, ecx
jmp 0x405984
xor ecx, ecx
inc ecx
cmp dword [ebp + 0xc], ebx
jne 0x4059c5
mov eax, dword [esi + 0x1848]
cmp eax, ebx
je 0x405997
cmp ecx, ebx
je 0x4059c5
mov edx, dword [esi]
push eax
push ecx
push esi
call dword [edx + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x4059bb
push 1
call fcn.0040fc6e
test eax, eax
pop ecx
je 0x4059c5
mov eax, 0x80070204
jmp 0x405aba
call fcn.0040b9be
jmp 0x405ab8
cmp dword [esi + 0x184c], ebx
je 0x4059db
push 0x80
lea eax, [esi + 8]
push eax
call fcn.0040adef
push 0x104
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.004052d1
mov edi, eax
cmp edi, ebx
jl 0x405aa4
push str.Download_Status:_Download_Complete
call fcn.0040cc59
mov eax, dword [esi]
pop ecx
lea ecx, [ebp - 0x104]
push ecx
push esi
call dword [eax + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x405a39
push dword [ebp + 0xc]
mov eax, dword [esi]
push 1
lea ecx, [ebp - 0x104]
push ecx
push esi
call dword [eax + 0x24]
mov edi, eax
cmp edi, ebx
jge 0x405ab8
push str.Download_Status:_Verification_of_Downloaded_File_Signature_Failed
jmp 0x405ab2
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x72
push dword [0x4298c0]
call esi
push 0x400
lea eax, [ebp - 0x604]
push eax
push 0x74
push dword [0x4298c0]
call esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x604]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xfffffffffffffffb
call fcn.0040f3ee
call fcn.0040d39a
mov dword [esp], str.Download_Status:_Verification_of_Downloaded_File_Version_Failed
jmp 0x405ab2
push 0xfffffffffffffffa
call fcn.0040f3ee
mov dword [esp], str.Download_Status:_Download_Failed
call fcn.0040cc59
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40b43a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebx, ebx
push ebx
push ebx
mov dword [esi + 0xc], 0xbc2
mov eax, dword [0x4298bc]
push 1
push ebx
mov dword [esi + 0x18], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x20], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x38], eax
call fcn.0040baa4
mov dword [esi + 0x3c], eax
call fcn.0040ef1e
push dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esi + 0x40], eax
call edi
push dword [esi + 0x24]
call edi
push dword [esi + 0x38]
call edi
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x40b363
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40b4c1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x20]
call edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, 0x104
push ebx
lea eax, [esi + 0x58]
push eax
push 0x7b
push dword [esi + 0x18]
call edi
push ebx
lea eax, [ebp - 0x104]
push eax
push 0x7c
push dword [esi + 0x18]
call edi
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.0040ada6
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x40b7ef
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
lea eax, [ebp - 8]
push eax
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40b823
xor eax, eax
jmp 0x40b888
push edi
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x38], bl
lea edi, [ebp - 0x37]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x1e
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetTimeFromSystemTime]
test eax, eax
pop edi
jne 0x40b856
mov byte [ebp - 0x38], bl
push esi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x38]
push eax
push 1
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret